1
0

configure 575 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210132111321213213132141321513216132171321813219132201322113222132231322413225132261322713228132291323013231132321323313234132351323613237132381323913240132411324213243132441324513246132471324813249132501325113252132531325413255132561325713258132591326013261132621326313264132651326613267132681326913270132711327213273132741327513276132771327813279132801328113282132831328413285132861328713288132891329013291132921329313294132951329613297132981329913300133011330213303133041330513306133071330813309133101331113312133131331413315133161331713318133191332013321133221332313324133251332613327133281332913330133311333213333133341333513336133371333813339133401334113342133431334413345133461334713348133491335013351133521335313354133551335613357133581335913360133611336213363133641336513366133671336813369133701337113372133731337413375133761337713378133791338013381133821338313384133851338613387133881338913390133911339213393133941339513396133971339813399134001340113402134031340413405134061340713408134091341013411134121341313414134151341613417134181341913420134211342213423134241342513426134271342813429134301343113432134331343413435134361343713438134391344013441134421344313444134451344613447134481344913450134511345213453134541345513456134571345813459134601346113462134631346413465134661346713468134691347013471134721347313474134751347613477134781347913480134811348213483134841348513486134871348813489134901349113492134931349413495134961349713498134991350013501135021350313504135051350613507135081350913510135111351213513135141351513516135171351813519135201352113522135231352413525135261352713528135291353013531135321353313534135351353613537135381353913540135411354213543135441354513546135471354813549135501355113552135531355413555135561355713558135591356013561135621356313564135651356613567135681356913570135711357213573135741357513576135771357813579135801358113582135831358413585135861358713588135891359013591135921359313594135951359613597135981359913600136011360213603136041360513606136071360813609136101361113612136131361413615136161361713618136191362013621136221362313624136251362613627136281362913630136311363213633136341363513636136371363813639136401364113642136431364413645136461364713648136491365013651136521365313654136551365613657136581365913660136611366213663136641366513666136671366813669136701367113672136731367413675136761367713678136791368013681136821368313684136851368613687136881368913690136911369213693136941369513696136971369813699137001370113702137031370413705137061370713708137091371013711137121371313714137151371613717137181371913720137211372213723137241372513726137271372813729137301373113732137331373413735137361373713738137391374013741137421374313744137451374613747137481374913750137511375213753137541375513756137571375813759137601376113762137631376413765137661376713768137691377013771137721377313774137751377613777137781377913780137811378213783137841378513786137871378813789137901379113792137931379413795137961379713798137991380013801138021380313804138051380613807138081380913810138111381213813138141381513816138171381813819138201382113822138231382413825138261382713828138291383013831138321383313834138351383613837138381383913840138411384213843138441384513846138471384813849138501385113852138531385413855138561385713858138591386013861138621386313864138651386613867138681386913870138711387213873138741387513876138771387813879138801388113882138831388413885138861388713888138891389013891138921389313894138951389613897138981389913900139011390213903139041390513906139071390813909139101391113912139131391413915139161391713918139191392013921139221392313924139251392613927139281392913930139311393213933139341393513936139371393813939139401394113942139431394413945139461394713948139491395013951139521395313954139551395613957139581395913960139611396213963139641396513966139671396813969139701397113972139731397413975139761397713978139791398013981139821398313984139851398613987139881398913990139911399213993139941399513996139971399813999140001400114002140031400414005140061400714008140091401014011140121401314014140151401614017140181401914020140211402214023140241402514026140271402814029140301403114032140331403414035140361403714038140391404014041140421404314044140451404614047140481404914050140511405214053140541405514056140571405814059140601406114062140631406414065140661406714068140691407014071140721407314074140751407614077140781407914080140811408214083140841408514086140871408814089140901409114092140931409414095140961409714098140991410014101141021410314104141051410614107141081410914110141111411214113141141411514116141171411814119141201412114122141231412414125141261412714128141291413014131141321413314134141351413614137141381413914140141411414214143141441414514146141471414814149141501415114152141531415414155141561415714158141591416014161141621416314164141651416614167141681416914170141711417214173141741417514176141771417814179141801418114182141831418414185141861418714188141891419014191141921419314194141951419614197141981419914200142011420214203142041420514206142071420814209142101421114212142131421414215142161421714218142191422014221142221422314224142251422614227142281422914230142311423214233142341423514236142371423814239142401424114242142431424414245142461424714248142491425014251142521425314254142551425614257142581425914260142611426214263142641426514266142671426814269142701427114272142731427414275142761427714278142791428014281142821428314284142851428614287142881428914290142911429214293142941429514296142971429814299143001430114302143031430414305143061430714308143091431014311143121431314314143151431614317143181431914320143211432214323143241432514326143271432814329143301433114332143331433414335143361433714338143391434014341143421434314344143451434614347143481434914350143511435214353143541435514356143571435814359143601436114362143631436414365143661436714368143691437014371143721437314374143751437614377143781437914380143811438214383143841438514386143871438814389143901439114392143931439414395143961439714398143991440014401144021440314404144051440614407144081440914410144111441214413144141441514416144171441814419144201442114422144231442414425144261442714428144291443014431144321443314434144351443614437144381443914440144411444214443144441444514446144471444814449144501445114452144531445414455144561445714458144591446014461144621446314464144651446614467144681446914470144711447214473144741447514476144771447814479144801448114482144831448414485144861448714488144891449014491144921449314494144951449614497144981449914500145011450214503145041450514506145071450814509145101451114512145131451414515145161451714518145191452014521145221452314524145251452614527145281452914530145311453214533145341453514536145371453814539145401454114542145431454414545145461454714548145491455014551145521455314554145551455614557145581455914560145611456214563145641456514566145671456814569145701457114572145731457414575145761457714578145791458014581145821458314584145851458614587145881458914590145911459214593145941459514596145971459814599146001460114602146031460414605146061460714608146091461014611146121461314614146151461614617146181461914620146211462214623146241462514626146271462814629146301463114632146331463414635146361463714638146391464014641146421464314644146451464614647146481464914650146511465214653146541465514656146571465814659146601466114662146631466414665146661466714668146691467014671146721467314674146751467614677146781467914680146811468214683146841468514686146871468814689146901469114692146931469414695146961469714698146991470014701147021470314704147051470614707147081470914710147111471214713147141471514716147171471814719147201472114722147231472414725147261472714728147291473014731147321473314734147351473614737147381473914740147411474214743147441474514746147471474814749147501475114752147531475414755147561475714758147591476014761147621476314764147651476614767147681476914770147711477214773147741477514776147771477814779147801478114782147831478414785147861478714788147891479014791147921479314794147951479614797147981479914800148011480214803148041480514806148071480814809148101481114812148131481414815148161481714818148191482014821148221482314824148251482614827148281482914830148311483214833148341483514836148371483814839148401484114842148431484414845148461484714848148491485014851148521485314854148551485614857148581485914860148611486214863148641486514866148671486814869148701487114872148731487414875148761487714878148791488014881148821488314884148851488614887148881488914890148911489214893148941489514896148971489814899149001490114902149031490414905149061490714908149091491014911149121491314914149151491614917149181491914920149211492214923149241492514926149271492814929149301493114932149331493414935149361493714938149391494014941149421494314944149451494614947149481494914950149511495214953149541495514956149571495814959149601496114962149631496414965149661496714968149691497014971149721497314974149751497614977149781497914980149811498214983149841498514986149871498814989149901499114992149931499414995149961499714998149991500015001150021500315004150051500615007150081500915010150111501215013150141501515016150171501815019150201502115022150231502415025150261502715028150291503015031150321503315034150351503615037150381503915040150411504215043150441504515046150471504815049150501505115052150531505415055150561505715058150591506015061150621506315064150651506615067150681506915070150711507215073150741507515076150771507815079150801508115082150831508415085150861508715088150891509015091150921509315094150951509615097150981509915100151011510215103151041510515106151071510815109151101511115112151131511415115151161511715118151191512015121151221512315124151251512615127151281512915130151311513215133151341513515136151371513815139151401514115142151431514415145151461514715148151491515015151151521515315154151551515615157151581515915160151611516215163151641516515166151671516815169151701517115172151731517415175151761517715178151791518015181151821518315184151851518615187151881518915190151911519215193151941519515196151971519815199152001520115202152031520415205152061520715208152091521015211152121521315214152151521615217152181521915220152211522215223152241522515226152271522815229152301523115232152331523415235152361523715238152391524015241152421524315244152451524615247152481524915250152511525215253152541525515256152571525815259152601526115262152631526415265152661526715268152691527015271152721527315274152751527615277152781527915280152811528215283152841528515286152871528815289152901529115292152931529415295152961529715298152991530015301153021530315304153051530615307153081530915310153111531215313153141531515316153171531815319153201532115322153231532415325153261532715328153291533015331153321533315334153351533615337153381533915340153411534215343153441534515346153471534815349153501535115352153531535415355153561535715358153591536015361153621536315364153651536615367153681536915370153711537215373153741537515376153771537815379153801538115382153831538415385153861538715388153891539015391153921539315394153951539615397153981539915400154011540215403154041540515406154071540815409154101541115412154131541415415154161541715418154191542015421154221542315424154251542615427154281542915430154311543215433154341543515436154371543815439154401544115442154431544415445154461544715448154491545015451154521545315454154551545615457154581545915460154611546215463154641546515466154671546815469154701547115472154731547415475154761547715478154791548015481154821548315484154851548615487154881548915490154911549215493154941549515496154971549815499155001550115502155031550415505155061550715508155091551015511155121551315514155151551615517155181551915520155211552215523155241552515526155271552815529155301553115532155331553415535155361553715538155391554015541155421554315544155451554615547155481554915550155511555215553155541555515556155571555815559155601556115562155631556415565155661556715568155691557015571155721557315574155751557615577155781557915580155811558215583155841558515586155871558815589155901559115592155931559415595155961559715598155991560015601156021560315604156051560615607156081560915610156111561215613156141561515616156171561815619156201562115622156231562415625156261562715628156291563015631156321563315634156351563615637156381563915640156411564215643156441564515646156471564815649156501565115652156531565415655156561565715658156591566015661156621566315664156651566615667156681566915670156711567215673156741567515676156771567815679156801568115682156831568415685156861568715688156891569015691156921569315694156951569615697156981569915700157011570215703157041570515706157071570815709157101571115712157131571415715157161571715718157191572015721157221572315724157251572615727157281572915730157311573215733157341573515736157371573815739157401574115742157431574415745157461574715748157491575015751157521575315754157551575615757157581575915760157611576215763157641576515766157671576815769157701577115772157731577415775157761577715778157791578015781157821578315784157851578615787157881578915790157911579215793157941579515796157971579815799158001580115802158031580415805158061580715808158091581015811158121581315814158151581615817158181581915820158211582215823158241582515826158271582815829158301583115832158331583415835158361583715838158391584015841158421584315844158451584615847158481584915850158511585215853158541585515856158571585815859158601586115862158631586415865158661586715868158691587015871158721587315874158751587615877158781587915880158811588215883158841588515886158871588815889158901589115892158931589415895158961589715898158991590015901159021590315904159051590615907159081590915910159111591215913159141591515916159171591815919159201592115922159231592415925159261592715928159291593015931159321593315934159351593615937159381593915940159411594215943159441594515946159471594815949159501595115952159531595415955159561595715958159591596015961159621596315964159651596615967159681596915970159711597215973159741597515976159771597815979159801598115982159831598415985159861598715988159891599015991159921599315994159951599615997159981599916000160011600216003160041600516006160071600816009160101601116012160131601416015160161601716018160191602016021160221602316024160251602616027160281602916030160311603216033160341603516036160371603816039160401604116042160431604416045160461604716048160491605016051160521605316054160551605616057160581605916060160611606216063160641606516066160671606816069160701607116072160731607416075160761607716078160791608016081160821608316084160851608616087160881608916090160911609216093160941609516096160971609816099161001610116102161031610416105161061610716108161091611016111161121611316114161151611616117161181611916120161211612216123161241612516126161271612816129161301613116132161331613416135161361613716138161391614016141161421614316144161451614616147161481614916150161511615216153161541615516156161571615816159161601616116162161631616416165161661616716168161691617016171161721617316174161751617616177161781617916180161811618216183161841618516186161871618816189161901619116192161931619416195161961619716198161991620016201162021620316204162051620616207162081620916210162111621216213162141621516216162171621816219162201622116222162231622416225162261622716228162291623016231162321623316234162351623616237162381623916240162411624216243162441624516246162471624816249162501625116252162531625416255162561625716258162591626016261162621626316264162651626616267162681626916270162711627216273162741627516276162771627816279162801628116282162831628416285162861628716288162891629016291162921629316294162951629616297162981629916300163011630216303163041630516306163071630816309163101631116312163131631416315163161631716318163191632016321163221632316324163251632616327163281632916330163311633216333163341633516336163371633816339163401634116342163431634416345163461634716348163491635016351163521635316354163551635616357163581635916360163611636216363163641636516366163671636816369163701637116372163731637416375163761637716378163791638016381163821638316384163851638616387163881638916390163911639216393163941639516396163971639816399164001640116402164031640416405164061640716408164091641016411164121641316414164151641616417164181641916420164211642216423164241642516426164271642816429164301643116432164331643416435164361643716438164391644016441164421644316444164451644616447164481644916450164511645216453164541645516456164571645816459164601646116462164631646416465164661646716468164691647016471164721647316474164751647616477164781647916480164811648216483164841648516486164871648816489164901649116492164931649416495164961649716498164991650016501165021650316504165051650616507165081650916510165111651216513165141651516516165171651816519165201652116522165231652416525165261652716528165291653016531165321653316534165351653616537165381653916540165411654216543165441654516546165471654816549165501655116552165531655416555165561655716558165591656016561165621656316564165651656616567165681656916570165711657216573165741657516576165771657816579165801658116582165831658416585165861658716588165891659016591165921659316594165951659616597165981659916600166011660216603166041660516606166071660816609166101661116612166131661416615166161661716618166191662016621166221662316624166251662616627166281662916630166311663216633166341663516636166371663816639166401664116642166431664416645166461664716648166491665016651166521665316654166551665616657166581665916660166611666216663166641666516666166671666816669166701667116672166731667416675166761667716678166791668016681166821668316684166851668616687166881668916690166911669216693166941669516696166971669816699167001670116702167031670416705167061670716708167091671016711167121671316714167151671616717167181671916720167211672216723167241672516726167271672816729167301673116732167331673416735167361673716738167391674016741167421674316744167451674616747167481674916750167511675216753167541675516756167571675816759167601676116762167631676416765167661676716768167691677016771167721677316774167751677616777167781677916780167811678216783167841678516786167871678816789167901679116792167931679416795167961679716798167991680016801168021680316804168051680616807168081680916810168111681216813168141681516816168171681816819168201682116822168231682416825168261682716828168291683016831168321683316834168351683616837168381683916840168411684216843168441684516846168471684816849168501685116852168531685416855168561685716858168591686016861168621686316864168651686616867168681686916870168711687216873168741687516876168771687816879168801688116882168831688416885168861688716888168891689016891168921689316894168951689616897168981689916900169011690216903169041690516906169071690816909169101691116912169131691416915169161691716918169191692016921169221692316924169251692616927169281692916930169311693216933169341693516936169371693816939169401694116942169431694416945169461694716948169491695016951169521695316954169551695616957169581695916960169611696216963169641696516966169671696816969169701697116972169731697416975169761697716978169791698016981169821698316984169851698616987169881698916990169911699216993169941699516996169971699816999170001700117002170031700417005170061700717008170091701017011170121701317014170151701617017170181701917020170211702217023170241702517026170271702817029170301703117032170331703417035170361703717038170391704017041170421704317044170451704617047170481704917050170511705217053170541705517056170571705817059170601706117062170631706417065170661706717068170691707017071170721707317074170751707617077170781707917080170811708217083170841708517086170871708817089170901709117092170931709417095170961709717098170991710017101171021710317104171051710617107171081710917110171111711217113171141711517116171171711817119171201712117122171231712417125171261712717128171291713017131171321713317134171351713617137171381713917140171411714217143171441714517146171471714817149171501715117152171531715417155171561715717158171591716017161171621716317164171651716617167171681716917170171711717217173171741717517176171771717817179171801718117182171831718417185171861718717188171891719017191171921719317194171951719617197171981719917200172011720217203172041720517206172071720817209172101721117212172131721417215172161721717218172191722017221172221722317224172251722617227172281722917230172311723217233172341723517236172371723817239172401724117242172431724417245172461724717248172491725017251172521725317254172551725617257172581725917260172611726217263172641726517266172671726817269172701727117272172731727417275172761727717278172791728017281172821728317284172851728617287172881728917290172911729217293172941729517296172971729817299173001730117302173031730417305173061730717308173091731017311173121731317314173151731617317173181731917320173211732217323173241732517326173271732817329173301733117332173331733417335173361733717338173391734017341173421734317344173451734617347173481734917350173511735217353173541735517356173571735817359173601736117362173631736417365173661736717368173691737017371173721737317374173751737617377173781737917380173811738217383173841738517386173871738817389173901739117392173931739417395173961739717398173991740017401174021740317404174051740617407174081740917410174111741217413174141741517416174171741817419174201742117422174231742417425174261742717428174291743017431174321743317434174351743617437174381743917440174411744217443174441744517446174471744817449174501745117452174531745417455174561745717458174591746017461174621746317464174651746617467174681746917470174711747217473174741747517476174771747817479174801748117482174831748417485174861748717488174891749017491174921749317494174951749617497174981749917500175011750217503175041750517506175071750817509175101751117512175131751417515175161751717518175191752017521175221752317524175251752617527175281752917530175311753217533175341753517536175371753817539175401754117542175431754417545175461754717548175491755017551175521755317554175551755617557175581755917560175611756217563175641756517566175671756817569175701757117572175731757417575175761757717578175791758017581175821758317584175851758617587175881758917590175911759217593175941759517596175971759817599176001760117602176031760417605176061760717608176091761017611176121761317614176151761617617176181761917620176211762217623176241762517626176271762817629176301763117632176331763417635176361763717638176391764017641176421764317644176451764617647176481764917650176511765217653176541765517656176571765817659176601766117662176631766417665176661766717668176691767017671176721767317674176751767617677176781767917680176811768217683176841768517686176871768817689176901769117692176931769417695176961769717698176991770017701177021770317704177051770617707177081770917710177111771217713177141771517716177171771817719177201772117722177231772417725177261772717728177291773017731177321773317734177351773617737177381773917740177411774217743177441774517746177471774817749177501775117752177531775417755177561775717758177591776017761177621776317764177651776617767177681776917770177711777217773177741777517776177771777817779177801778117782177831778417785177861778717788177891779017791177921779317794177951779617797177981779917800178011780217803178041780517806178071780817809178101781117812178131781417815178161781717818178191782017821178221782317824178251782617827178281782917830178311783217833178341783517836178371783817839178401784117842178431784417845178461784717848178491785017851178521785317854178551785617857178581785917860178611786217863178641786517866178671786817869178701787117872178731787417875178761787717878178791788017881178821788317884178851788617887178881788917890178911789217893178941789517896178971789817899179001790117902179031790417905179061790717908179091791017911179121791317914179151791617917179181791917920179211792217923179241792517926179271792817929179301793117932179331793417935179361793717938179391794017941179421794317944179451794617947179481794917950179511795217953179541795517956179571795817959179601796117962179631796417965179661796717968179691797017971179721797317974179751797617977179781797917980179811798217983179841798517986179871798817989179901799117992179931799417995179961799717998179991800018001180021800318004180051800618007180081800918010180111801218013180141801518016180171801818019180201802118022180231802418025180261802718028180291803018031180321803318034180351803618037180381803918040180411804218043180441804518046180471804818049180501805118052180531805418055180561805718058180591806018061180621806318064180651806618067180681806918070180711807218073180741807518076180771807818079180801808118082180831808418085180861808718088180891809018091180921809318094180951809618097180981809918100181011810218103181041810518106181071810818109181101811118112181131811418115181161811718118181191812018121181221812318124181251812618127181281812918130181311813218133181341813518136181371813818139181401814118142181431814418145181461814718148181491815018151181521815318154181551815618157181581815918160181611816218163181641816518166181671816818169181701817118172181731817418175181761817718178181791818018181181821818318184181851818618187181881818918190181911819218193181941819518196181971819818199182001820118202182031820418205182061820718208182091821018211182121821318214182151821618217182181821918220182211822218223182241822518226182271822818229182301823118232182331823418235182361823718238182391824018241182421824318244182451824618247182481824918250182511825218253182541825518256182571825818259182601826118262182631826418265182661826718268182691827018271182721827318274182751827618277182781827918280182811828218283182841828518286182871828818289182901829118292182931829418295182961829718298182991830018301183021830318304183051830618307183081830918310183111831218313183141831518316183171831818319183201832118322183231832418325183261832718328183291833018331183321833318334183351833618337183381833918340183411834218343183441834518346183471834818349183501835118352183531835418355183561835718358183591836018361183621836318364183651836618367183681836918370183711837218373183741837518376183771837818379183801838118382183831838418385183861838718388183891839018391183921839318394183951839618397183981839918400184011840218403184041840518406184071840818409184101841118412184131841418415184161841718418184191842018421184221842318424184251842618427184281842918430184311843218433184341843518436184371843818439184401844118442184431844418445184461844718448184491845018451184521845318454184551845618457184581845918460184611846218463184641846518466184671846818469184701847118472184731847418475184761847718478184791848018481184821848318484184851848618487184881848918490184911849218493184941849518496184971849818499185001850118502185031850418505185061850718508185091851018511185121851318514185151851618517185181851918520185211852218523185241852518526185271852818529185301853118532185331853418535185361853718538185391854018541185421854318544185451854618547185481854918550185511855218553185541855518556185571855818559185601856118562185631856418565185661856718568185691857018571185721857318574185751857618577185781857918580185811858218583185841858518586185871858818589185901859118592185931859418595185961859718598185991860018601186021860318604186051860618607186081860918610186111861218613186141861518616186171861818619186201862118622186231862418625186261862718628186291863018631186321863318634186351863618637186381863918640186411864218643186441864518646186471864818649186501865118652186531865418655186561865718658186591866018661186621866318664186651866618667186681866918670186711867218673186741867518676186771867818679186801868118682186831868418685186861868718688186891869018691186921869318694186951869618697186981869918700187011870218703187041870518706187071870818709187101871118712187131871418715187161871718718187191872018721187221872318724187251872618727187281872918730187311873218733187341873518736187371873818739187401874118742187431874418745187461874718748187491875018751187521875318754187551875618757187581875918760187611876218763187641876518766187671876818769187701877118772187731877418775187761877718778187791878018781187821878318784187851878618787187881878918790187911879218793187941879518796187971879818799188001880118802188031880418805188061880718808188091881018811188121881318814188151881618817188181881918820188211882218823188241882518826188271882818829188301883118832188331883418835188361883718838188391884018841188421884318844188451884618847188481884918850188511885218853188541885518856188571885818859188601886118862188631886418865188661886718868188691887018871188721887318874188751887618877188781887918880188811888218883188841888518886188871888818889188901889118892188931889418895188961889718898188991890018901189021890318904189051890618907189081890918910189111891218913189141891518916189171891818919189201892118922189231892418925189261892718928189291893018931189321893318934189351893618937189381893918940189411894218943189441894518946189471894818949189501895118952189531895418955189561895718958189591896018961189621896318964189651896618967189681896918970189711897218973189741897518976189771897818979189801898118982189831898418985189861898718988189891899018991189921899318994189951899618997189981899919000190011900219003190041900519006190071900819009190101901119012190131901419015190161901719018190191902019021190221902319024190251902619027190281902919030190311903219033190341903519036190371903819039190401904119042190431904419045190461904719048190491905019051190521905319054190551905619057190581905919060190611906219063190641906519066190671906819069190701907119072190731907419075190761907719078190791908019081190821908319084190851908619087190881908919090190911909219093190941909519096190971909819099191001910119102191031910419105191061910719108191091911019111191121911319114191151911619117191181911919120191211912219123191241912519126191271912819129191301913119132191331913419135191361913719138191391914019141191421914319144191451914619147191481914919150191511915219153191541915519156191571915819159191601916119162191631916419165191661916719168191691917019171191721917319174191751917619177191781917919180191811918219183191841918519186191871918819189191901919119192191931919419195191961919719198191991920019201192021920319204192051920619207192081920919210192111921219213192141921519216192171921819219192201922119222192231922419225192261922719228192291923019231192321923319234192351923619237192381923919240192411924219243192441924519246192471924819249
  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.68 for klish 1.5.7.
  4. #
  5. # Report bugs to <serj.kalichev at gmail dot com>.
  6. #
  7. #
  8. # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
  9. # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
  10. # Foundation, Inc.
  11. #
  12. #
  13. # This configure script is free software; the Free Software Foundation
  14. # gives unlimited permission to copy, distribute and modify it.
  15. ## -------------------- ##
  16. ## M4sh Initialization. ##
  17. ## -------------------- ##
  18. # Be more Bourne compatible
  19. DUALCASE=1; export DUALCASE # for MKS sh
  20. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  21. emulate sh
  22. NULLCMD=:
  23. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  24. # is contrary to our usage. Disable this feature.
  25. alias -g '${1+"$@"}'='"$@"'
  26. setopt NO_GLOB_SUBST
  27. else
  28. case `(set -o) 2>/dev/null` in #(
  29. *posix*) :
  30. set -o posix ;; #(
  31. *) :
  32. ;;
  33. esac
  34. fi
  35. as_nl='
  36. '
  37. export as_nl
  38. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  39. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  40. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  41. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  42. # Prefer a ksh shell builtin over an external printf program on Solaris,
  43. # but without wasting forks for bash or zsh.
  44. if test -z "$BASH_VERSION$ZSH_VERSION" \
  45. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  46. as_echo='print -r --'
  47. as_echo_n='print -rn --'
  48. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  49. as_echo='printf %s\n'
  50. as_echo_n='printf %s'
  51. else
  52. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  53. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  54. as_echo_n='/usr/ucb/echo -n'
  55. else
  56. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  57. as_echo_n_body='eval
  58. arg=$1;
  59. case $arg in #(
  60. *"$as_nl"*)
  61. expr "X$arg" : "X\\(.*\\)$as_nl";
  62. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  63. esac;
  64. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  65. '
  66. export as_echo_n_body
  67. as_echo_n='sh -c $as_echo_n_body as_echo'
  68. fi
  69. export as_echo_body
  70. as_echo='sh -c $as_echo_body as_echo'
  71. fi
  72. # The user is always right.
  73. if test "${PATH_SEPARATOR+set}" != set; then
  74. PATH_SEPARATOR=:
  75. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  76. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  77. PATH_SEPARATOR=';'
  78. }
  79. fi
  80. # IFS
  81. # We need space, tab and new line, in precisely that order. Quoting is
  82. # there to prevent editors from complaining about space-tab.
  83. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  84. # splitting by setting IFS to empty value.)
  85. IFS=" "" $as_nl"
  86. # Find who we are. Look in the path if we contain no directory separator.
  87. as_myself=
  88. case $0 in #((
  89. *[\\/]* ) as_myself=$0 ;;
  90. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  91. for as_dir in $PATH
  92. do
  93. IFS=$as_save_IFS
  94. test -z "$as_dir" && as_dir=.
  95. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  96. done
  97. IFS=$as_save_IFS
  98. ;;
  99. esac
  100. # We did not find ourselves, most probably we were run as `sh COMMAND'
  101. # in which case we are not to be found in the path.
  102. if test "x$as_myself" = x; then
  103. as_myself=$0
  104. fi
  105. if test ! -f "$as_myself"; then
  106. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  107. exit 1
  108. fi
  109. # Unset variables that we do not need and which cause bugs (e.g. in
  110. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  111. # suppresses any "Segmentation fault" message there. '((' could
  112. # trigger a bug in pdksh 5.2.14.
  113. for as_var in BASH_ENV ENV MAIL MAILPATH
  114. do eval test x\${$as_var+set} = xset \
  115. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  116. done
  117. PS1='$ '
  118. PS2='> '
  119. PS4='+ '
  120. # NLS nuisances.
  121. LC_ALL=C
  122. export LC_ALL
  123. LANGUAGE=C
  124. export LANGUAGE
  125. # CDPATH.
  126. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  127. if test "x$CONFIG_SHELL" = x; then
  128. as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
  129. emulate sh
  130. NULLCMD=:
  131. # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
  132. # is contrary to our usage. Disable this feature.
  133. alias -g '\${1+\"\$@\"}'='\"\$@\"'
  134. setopt NO_GLOB_SUBST
  135. else
  136. case \`(set -o) 2>/dev/null\` in #(
  137. *posix*) :
  138. set -o posix ;; #(
  139. *) :
  140. ;;
  141. esac
  142. fi
  143. "
  144. as_required="as_fn_return () { (exit \$1); }
  145. as_fn_success () { as_fn_return 0; }
  146. as_fn_failure () { as_fn_return 1; }
  147. as_fn_ret_success () { return 0; }
  148. as_fn_ret_failure () { return 1; }
  149. exitcode=0
  150. as_fn_success || { exitcode=1; echo as_fn_success failed.; }
  151. as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
  152. as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
  153. as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
  154. if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
  155. else
  156. exitcode=1; echo positional parameters were not saved.
  157. fi
  158. test x\$exitcode = x0 || exit 1"
  159. as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
  160. as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
  161. eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
  162. test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
  163. test \$(( 1 + 1 )) = 2 || exit 1
  164. test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
  165. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  166. ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
  167. ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
  168. PATH=/empty FPATH=/empty; export PATH FPATH
  169. test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
  170. || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
  171. if (eval "$as_required") 2>/dev/null; then :
  172. as_have_required=yes
  173. else
  174. as_have_required=no
  175. fi
  176. if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
  177. else
  178. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  179. as_found=false
  180. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  181. do
  182. IFS=$as_save_IFS
  183. test -z "$as_dir" && as_dir=.
  184. as_found=:
  185. case $as_dir in #(
  186. /*)
  187. for as_base in sh bash ksh sh5; do
  188. # Try only shells that exist, to save several forks.
  189. as_shell=$as_dir/$as_base
  190. if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
  191. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
  192. CONFIG_SHELL=$as_shell as_have_required=yes
  193. if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
  194. break 2
  195. fi
  196. fi
  197. done;;
  198. esac
  199. as_found=false
  200. done
  201. $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
  202. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
  203. CONFIG_SHELL=$SHELL as_have_required=yes
  204. fi; }
  205. IFS=$as_save_IFS
  206. if test "x$CONFIG_SHELL" != x; then :
  207. # We cannot yet assume a decent shell, so we have to provide a
  208. # neutralization value for shells without unset; and this also
  209. # works around shells that cannot unset nonexistent variables.
  210. # Preserve -v and -x to the replacement shell.
  211. BASH_ENV=/dev/null
  212. ENV=/dev/null
  213. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  214. export CONFIG_SHELL
  215. case $- in # ((((
  216. *v*x* | *x*v* ) as_opts=-vx ;;
  217. *v* ) as_opts=-v ;;
  218. *x* ) as_opts=-x ;;
  219. * ) as_opts= ;;
  220. esac
  221. exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
  222. fi
  223. if test x$as_have_required = xno; then :
  224. $as_echo "$0: This script requires a shell more modern than all"
  225. $as_echo "$0: the shells that I found on your system."
  226. if test x${ZSH_VERSION+set} = xset ; then
  227. $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
  228. $as_echo "$0: be upgraded to zsh 4.3.4 or later."
  229. else
  230. $as_echo "$0: Please tell bug-autoconf@gnu.org and serj.kalichev at
  231. $0: gmail dot com about your system, including any error
  232. $0: possibly output before this message. Then install a
  233. $0: modern shell, or manually run the script under such a
  234. $0: shell if you do have one."
  235. fi
  236. exit 1
  237. fi
  238. fi
  239. fi
  240. SHELL=${CONFIG_SHELL-/bin/sh}
  241. export SHELL
  242. # Unset more variables known to interfere with behavior of common tools.
  243. CLICOLOR_FORCE= GREP_OPTIONS=
  244. unset CLICOLOR_FORCE GREP_OPTIONS
  245. ## --------------------- ##
  246. ## M4sh Shell Functions. ##
  247. ## --------------------- ##
  248. # as_fn_unset VAR
  249. # ---------------
  250. # Portably unset VAR.
  251. as_fn_unset ()
  252. {
  253. { eval $1=; unset $1;}
  254. }
  255. as_unset=as_fn_unset
  256. # as_fn_set_status STATUS
  257. # -----------------------
  258. # Set $? to STATUS, without forking.
  259. as_fn_set_status ()
  260. {
  261. return $1
  262. } # as_fn_set_status
  263. # as_fn_exit STATUS
  264. # -----------------
  265. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  266. as_fn_exit ()
  267. {
  268. set +e
  269. as_fn_set_status $1
  270. exit $1
  271. } # as_fn_exit
  272. # as_fn_mkdir_p
  273. # -------------
  274. # Create "$as_dir" as a directory, including parents if necessary.
  275. as_fn_mkdir_p ()
  276. {
  277. case $as_dir in #(
  278. -*) as_dir=./$as_dir;;
  279. esac
  280. test -d "$as_dir" || eval $as_mkdir_p || {
  281. as_dirs=
  282. while :; do
  283. case $as_dir in #(
  284. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  285. *) as_qdir=$as_dir;;
  286. esac
  287. as_dirs="'$as_qdir' $as_dirs"
  288. as_dir=`$as_dirname -- "$as_dir" ||
  289. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  290. X"$as_dir" : 'X\(//\)[^/]' \| \
  291. X"$as_dir" : 'X\(//\)$' \| \
  292. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  293. $as_echo X"$as_dir" |
  294. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  295. s//\1/
  296. q
  297. }
  298. /^X\(\/\/\)[^/].*/{
  299. s//\1/
  300. q
  301. }
  302. /^X\(\/\/\)$/{
  303. s//\1/
  304. q
  305. }
  306. /^X\(\/\).*/{
  307. s//\1/
  308. q
  309. }
  310. s/.*/./; q'`
  311. test -d "$as_dir" && break
  312. done
  313. test -z "$as_dirs" || eval "mkdir $as_dirs"
  314. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  315. } # as_fn_mkdir_p
  316. # as_fn_append VAR VALUE
  317. # ----------------------
  318. # Append the text in VALUE to the end of the definition contained in VAR. Take
  319. # advantage of any shell optimizations that allow amortized linear growth over
  320. # repeated appends, instead of the typical quadratic growth present in naive
  321. # implementations.
  322. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  323. eval 'as_fn_append ()
  324. {
  325. eval $1+=\$2
  326. }'
  327. else
  328. as_fn_append ()
  329. {
  330. eval $1=\$$1\$2
  331. }
  332. fi # as_fn_append
  333. # as_fn_arith ARG...
  334. # ------------------
  335. # Perform arithmetic evaluation on the ARGs, and store the result in the
  336. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  337. # must be portable across $(()) and expr.
  338. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  339. eval 'as_fn_arith ()
  340. {
  341. as_val=$(( $* ))
  342. }'
  343. else
  344. as_fn_arith ()
  345. {
  346. as_val=`expr "$@" || test $? -eq 1`
  347. }
  348. fi # as_fn_arith
  349. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  350. # ----------------------------------------
  351. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  352. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  353. # script with STATUS, using 1 if that was 0.
  354. as_fn_error ()
  355. {
  356. as_status=$1; test $as_status -eq 0 && as_status=1
  357. if test "$4"; then
  358. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  359. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  360. fi
  361. $as_echo "$as_me: error: $2" >&2
  362. as_fn_exit $as_status
  363. } # as_fn_error
  364. if expr a : '\(a\)' >/dev/null 2>&1 &&
  365. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  366. as_expr=expr
  367. else
  368. as_expr=false
  369. fi
  370. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  371. as_basename=basename
  372. else
  373. as_basename=false
  374. fi
  375. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  376. as_dirname=dirname
  377. else
  378. as_dirname=false
  379. fi
  380. as_me=`$as_basename -- "$0" ||
  381. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  382. X"$0" : 'X\(//\)$' \| \
  383. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  384. $as_echo X/"$0" |
  385. sed '/^.*\/\([^/][^/]*\)\/*$/{
  386. s//\1/
  387. q
  388. }
  389. /^X\/\(\/\/\)$/{
  390. s//\1/
  391. q
  392. }
  393. /^X\/\(\/\).*/{
  394. s//\1/
  395. q
  396. }
  397. s/.*/./; q'`
  398. # Avoid depending upon Character Ranges.
  399. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  400. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  401. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  402. as_cr_digits='0123456789'
  403. as_cr_alnum=$as_cr_Letters$as_cr_digits
  404. as_lineno_1=$LINENO as_lineno_1a=$LINENO
  405. as_lineno_2=$LINENO as_lineno_2a=$LINENO
  406. eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
  407. test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
  408. # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
  409. sed -n '
  410. p
  411. /[$]LINENO/=
  412. ' <$as_myself |
  413. sed '
  414. s/[$]LINENO.*/&-/
  415. t lineno
  416. b
  417. :lineno
  418. N
  419. :loop
  420. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  421. t loop
  422. s/-\n.*//
  423. ' >$as_me.lineno &&
  424. chmod +x "$as_me.lineno" ||
  425. { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
  426. # Don't try to exec as it changes $[0], causing all sort of problems
  427. # (the dirname of $[0] is not the place where we might find the
  428. # original and so on. Autoconf is especially sensitive to this).
  429. . "./$as_me.lineno"
  430. # Exit status is that of the last command.
  431. exit
  432. }
  433. ECHO_C= ECHO_N= ECHO_T=
  434. case `echo -n x` in #(((((
  435. -n*)
  436. case `echo 'xy\c'` in
  437. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  438. xy) ECHO_C='\c';;
  439. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  440. ECHO_T=' ';;
  441. esac;;
  442. *)
  443. ECHO_N='-n';;
  444. esac
  445. rm -f conf$$ conf$$.exe conf$$.file
  446. if test -d conf$$.dir; then
  447. rm -f conf$$.dir/conf$$.file
  448. else
  449. rm -f conf$$.dir
  450. mkdir conf$$.dir 2>/dev/null
  451. fi
  452. if (echo >conf$$.file) 2>/dev/null; then
  453. if ln -s conf$$.file conf$$ 2>/dev/null; then
  454. as_ln_s='ln -s'
  455. # ... but there are two gotchas:
  456. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  457. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  458. # In both cases, we have to default to `cp -p'.
  459. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  460. as_ln_s='cp -p'
  461. elif ln conf$$.file conf$$ 2>/dev/null; then
  462. as_ln_s=ln
  463. else
  464. as_ln_s='cp -p'
  465. fi
  466. else
  467. as_ln_s='cp -p'
  468. fi
  469. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  470. rmdir conf$$.dir 2>/dev/null
  471. if mkdir -p . 2>/dev/null; then
  472. as_mkdir_p='mkdir -p "$as_dir"'
  473. else
  474. test -d ./-p && rmdir ./-p
  475. as_mkdir_p=false
  476. fi
  477. if test -x / >/dev/null 2>&1; then
  478. as_test_x='test -x'
  479. else
  480. if ls -dL / >/dev/null 2>&1; then
  481. as_ls_L_option=L
  482. else
  483. as_ls_L_option=
  484. fi
  485. as_test_x='
  486. eval sh -c '\''
  487. if test -d "$1"; then
  488. test -d "$1/.";
  489. else
  490. case $1 in #(
  491. -*)set "./$1";;
  492. esac;
  493. case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
  494. ???[sx]*):;;*)false;;esac;fi
  495. '\'' sh
  496. '
  497. fi
  498. as_executable_p=$as_test_x
  499. # Sed expression to map a string onto a valid CPP name.
  500. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  501. # Sed expression to map a string onto a valid variable name.
  502. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  503. SHELL=${CONFIG_SHELL-/bin/sh}
  504. test -n "$DJDIR" || exec 7<&0 </dev/null
  505. exec 6>&1
  506. # Name of the host.
  507. # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
  508. # so uname gets run too.
  509. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  510. #
  511. # Initializations.
  512. #
  513. ac_default_prefix=/usr/local
  514. ac_clean_files=
  515. ac_config_libobj_dir=.
  516. LIBOBJS=
  517. cross_compiling=no
  518. subdirs=
  519. MFLAGS=
  520. MAKEFLAGS=
  521. # Identity of this package.
  522. PACKAGE_NAME='klish'
  523. PACKAGE_TARNAME='klish'
  524. PACKAGE_VERSION='1.5.7'
  525. PACKAGE_STRING='klish 1.5.7'
  526. PACKAGE_BUGREPORT='serj.kalichev at gmail dot com'
  527. PACKAGE_URL=''
  528. # Factoring default headers for most tests.
  529. ac_includes_default="\
  530. #include <stdio.h>
  531. #ifdef HAVE_SYS_TYPES_H
  532. # include <sys/types.h>
  533. #endif
  534. #ifdef HAVE_SYS_STAT_H
  535. # include <sys/stat.h>
  536. #endif
  537. #ifdef STDC_HEADERS
  538. # include <stdlib.h>
  539. # include <stddef.h>
  540. #else
  541. # ifdef HAVE_STDLIB_H
  542. # include <stdlib.h>
  543. # endif
  544. #endif
  545. #ifdef HAVE_STRING_H
  546. # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
  547. # include <memory.h>
  548. # endif
  549. # include <string.h>
  550. #endif
  551. #ifdef HAVE_STRINGS_H
  552. # include <strings.h>
  553. #endif
  554. #ifdef HAVE_INTTYPES_H
  555. # include <inttypes.h>
  556. #endif
  557. #ifdef HAVE_STDINT_H
  558. # include <stdint.h>
  559. #endif
  560. #ifdef HAVE_UNISTD_H
  561. # include <unistd.h>
  562. #endif"
  563. ac_subst_vars='am__EXEEXT_FALSE
  564. am__EXEEXT_TRUE
  565. LTLIBOBJS
  566. LIBOBJS
  567. TINYXML_CXXFLAGS
  568. TINYXML_LIBS
  569. TINYRL_CFLAGS
  570. TINYRL_LIBS
  571. KONF_CFLAGS
  572. KONF_LIBS
  573. LUB_CFLAGS
  574. LUB_LIBS
  575. DEBUG_FALSE
  576. DEBUG_TRUE
  577. am__fastdepCXX_FALSE
  578. am__fastdepCXX_TRUE
  579. CXXDEPMODE
  580. am__fastdepCC_FALSE
  581. am__fastdepCC_TRUE
  582. CCDEPMODE
  583. am__nodep
  584. AMDEPBACKSLASH
  585. AMDEP_FALSE
  586. AMDEP_TRUE
  587. am__quote
  588. am__include
  589. DEPDIR
  590. am__untar
  591. am__tar
  592. AMTAR
  593. am__leading_dot
  594. SET_MAKE
  595. mkdir_p
  596. MKDIR_P
  597. INSTALL_STRIP_PROGRAM
  598. install_sh
  599. MAKEINFO
  600. AUTOHEADER
  601. AUTOMAKE
  602. AUTOCONF
  603. ACLOCAL
  604. VERSION
  605. PACKAGE
  606. CYGPATH_W
  607. am__isrc
  608. INSTALL_DATA
  609. INSTALL_SCRIPT
  610. INSTALL_PROGRAM
  611. CXXCPP
  612. OTOOL64
  613. OTOOL
  614. LIPO
  615. NMEDIT
  616. DSYMUTIL
  617. MANIFEST_TOOL
  618. AWK
  619. RANLIB
  620. STRIP
  621. ac_ct_AR
  622. AR
  623. LN_S
  624. NM
  625. ac_ct_DUMPBIN
  626. DUMPBIN
  627. LD
  628. FGREP
  629. SED
  630. LIBTOOL
  631. OBJDUMP
  632. DLLTOOL
  633. AS
  634. host_os
  635. host_vendor
  636. host_cpu
  637. host
  638. build_os
  639. build_vendor
  640. build_cpu
  641. build
  642. ac_ct_CXX
  643. CXXFLAGS
  644. CXX
  645. EGREP
  646. GREP
  647. CPP
  648. OBJEXT
  649. EXEEXT
  650. ac_ct_CC
  651. CPPFLAGS
  652. LDFLAGS
  653. CFLAGS
  654. CC
  655. target_alias
  656. host_alias
  657. build_alias
  658. LIBS
  659. ECHO_T
  660. ECHO_N
  661. ECHO_C
  662. DEFS
  663. mandir
  664. localedir
  665. libdir
  666. psdir
  667. pdfdir
  668. dvidir
  669. htmldir
  670. infodir
  671. docdir
  672. oldincludedir
  673. includedir
  674. localstatedir
  675. sharedstatedir
  676. sysconfdir
  677. datadir
  678. datarootdir
  679. libexecdir
  680. sbindir
  681. bindir
  682. program_transform_name
  683. prefix
  684. exec_prefix
  685. PACKAGE_URL
  686. PACKAGE_BUGREPORT
  687. PACKAGE_STRING
  688. PACKAGE_VERSION
  689. PACKAGE_TARNAME
  690. PACKAGE_NAME
  691. PATH_SEPARATOR
  692. SHELL'
  693. ac_subst_files=''
  694. ac_user_opts='
  695. enable_option_checking
  696. enable_shared
  697. enable_static
  698. with_pic
  699. enable_fast_install
  700. with_gnu_ld
  701. with_sysroot
  702. enable_libtool_lock
  703. enable_dependency_tracking
  704. enable_debug
  705. '
  706. ac_precious_vars='build_alias
  707. host_alias
  708. target_alias
  709. CC
  710. CFLAGS
  711. LDFLAGS
  712. LIBS
  713. CPPFLAGS
  714. CPP
  715. CXX
  716. CXXFLAGS
  717. CCC
  718. CXXCPP'
  719. # Initialize some variables set by options.
  720. ac_init_help=
  721. ac_init_version=false
  722. ac_unrecognized_opts=
  723. ac_unrecognized_sep=
  724. # The variables have the same names as the options, with
  725. # dashes changed to underlines.
  726. cache_file=/dev/null
  727. exec_prefix=NONE
  728. no_create=
  729. no_recursion=
  730. prefix=NONE
  731. program_prefix=NONE
  732. program_suffix=NONE
  733. program_transform_name=s,x,x,
  734. silent=
  735. site=
  736. srcdir=
  737. verbose=
  738. x_includes=NONE
  739. x_libraries=NONE
  740. # Installation directory options.
  741. # These are left unexpanded so users can "make install exec_prefix=/foo"
  742. # and all the variables that are supposed to be based on exec_prefix
  743. # by default will actually change.
  744. # Use braces instead of parens because sh, perl, etc. also accept them.
  745. # (The list follows the same order as the GNU Coding Standards.)
  746. bindir='${exec_prefix}/bin'
  747. sbindir='${exec_prefix}/sbin'
  748. libexecdir='${exec_prefix}/libexec'
  749. datarootdir='${prefix}/share'
  750. datadir='${datarootdir}'
  751. sysconfdir='${prefix}/etc'
  752. sharedstatedir='${prefix}/com'
  753. localstatedir='${prefix}/var'
  754. includedir='${prefix}/include'
  755. oldincludedir='/usr/include'
  756. docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
  757. infodir='${datarootdir}/info'
  758. htmldir='${docdir}'
  759. dvidir='${docdir}'
  760. pdfdir='${docdir}'
  761. psdir='${docdir}'
  762. libdir='${exec_prefix}/lib'
  763. localedir='${datarootdir}/locale'
  764. mandir='${datarootdir}/man'
  765. ac_prev=
  766. ac_dashdash=
  767. for ac_option
  768. do
  769. # If the previous option needs an argument, assign it.
  770. if test -n "$ac_prev"; then
  771. eval $ac_prev=\$ac_option
  772. ac_prev=
  773. continue
  774. fi
  775. case $ac_option in
  776. *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  777. *=) ac_optarg= ;;
  778. *) ac_optarg=yes ;;
  779. esac
  780. # Accept the important Cygnus configure options, so we can diagnose typos.
  781. case $ac_dashdash$ac_option in
  782. --)
  783. ac_dashdash=yes ;;
  784. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  785. ac_prev=bindir ;;
  786. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  787. bindir=$ac_optarg ;;
  788. -build | --build | --buil | --bui | --bu)
  789. ac_prev=build_alias ;;
  790. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  791. build_alias=$ac_optarg ;;
  792. -cache-file | --cache-file | --cache-fil | --cache-fi \
  793. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  794. ac_prev=cache_file ;;
  795. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  796. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  797. cache_file=$ac_optarg ;;
  798. --config-cache | -C)
  799. cache_file=config.cache ;;
  800. -datadir | --datadir | --datadi | --datad)
  801. ac_prev=datadir ;;
  802. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  803. datadir=$ac_optarg ;;
  804. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  805. | --dataroo | --dataro | --datar)
  806. ac_prev=datarootdir ;;
  807. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  808. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  809. datarootdir=$ac_optarg ;;
  810. -disable-* | --disable-*)
  811. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  812. # Reject names that are not valid shell variable names.
  813. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  814. as_fn_error $? "invalid feature name: $ac_useropt"
  815. ac_useropt_orig=$ac_useropt
  816. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  817. case $ac_user_opts in
  818. *"
  819. "enable_$ac_useropt"
  820. "*) ;;
  821. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  822. ac_unrecognized_sep=', ';;
  823. esac
  824. eval enable_$ac_useropt=no ;;
  825. -docdir | --docdir | --docdi | --doc | --do)
  826. ac_prev=docdir ;;
  827. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  828. docdir=$ac_optarg ;;
  829. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  830. ac_prev=dvidir ;;
  831. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  832. dvidir=$ac_optarg ;;
  833. -enable-* | --enable-*)
  834. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  835. # Reject names that are not valid shell variable names.
  836. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  837. as_fn_error $? "invalid feature name: $ac_useropt"
  838. ac_useropt_orig=$ac_useropt
  839. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  840. case $ac_user_opts in
  841. *"
  842. "enable_$ac_useropt"
  843. "*) ;;
  844. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  845. ac_unrecognized_sep=', ';;
  846. esac
  847. eval enable_$ac_useropt=\$ac_optarg ;;
  848. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  849. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  850. | --exec | --exe | --ex)
  851. ac_prev=exec_prefix ;;
  852. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  853. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  854. | --exec=* | --exe=* | --ex=*)
  855. exec_prefix=$ac_optarg ;;
  856. -gas | --gas | --ga | --g)
  857. # Obsolete; use --with-gas.
  858. with_gas=yes ;;
  859. -help | --help | --hel | --he | -h)
  860. ac_init_help=long ;;
  861. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  862. ac_init_help=recursive ;;
  863. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  864. ac_init_help=short ;;
  865. -host | --host | --hos | --ho)
  866. ac_prev=host_alias ;;
  867. -host=* | --host=* | --hos=* | --ho=*)
  868. host_alias=$ac_optarg ;;
  869. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  870. ac_prev=htmldir ;;
  871. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  872. | --ht=*)
  873. htmldir=$ac_optarg ;;
  874. -includedir | --includedir | --includedi | --included | --include \
  875. | --includ | --inclu | --incl | --inc)
  876. ac_prev=includedir ;;
  877. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  878. | --includ=* | --inclu=* | --incl=* | --inc=*)
  879. includedir=$ac_optarg ;;
  880. -infodir | --infodir | --infodi | --infod | --info | --inf)
  881. ac_prev=infodir ;;
  882. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  883. infodir=$ac_optarg ;;
  884. -libdir | --libdir | --libdi | --libd)
  885. ac_prev=libdir ;;
  886. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  887. libdir=$ac_optarg ;;
  888. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  889. | --libexe | --libex | --libe)
  890. ac_prev=libexecdir ;;
  891. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  892. | --libexe=* | --libex=* | --libe=*)
  893. libexecdir=$ac_optarg ;;
  894. -localedir | --localedir | --localedi | --localed | --locale)
  895. ac_prev=localedir ;;
  896. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  897. localedir=$ac_optarg ;;
  898. -localstatedir | --localstatedir | --localstatedi | --localstated \
  899. | --localstate | --localstat | --localsta | --localst | --locals)
  900. ac_prev=localstatedir ;;
  901. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  902. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  903. localstatedir=$ac_optarg ;;
  904. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  905. ac_prev=mandir ;;
  906. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  907. mandir=$ac_optarg ;;
  908. -nfp | --nfp | --nf)
  909. # Obsolete; use --without-fp.
  910. with_fp=no ;;
  911. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  912. | --no-cr | --no-c | -n)
  913. no_create=yes ;;
  914. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  915. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  916. no_recursion=yes ;;
  917. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  918. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  919. | --oldin | --oldi | --old | --ol | --o)
  920. ac_prev=oldincludedir ;;
  921. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  922. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  923. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  924. oldincludedir=$ac_optarg ;;
  925. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  926. ac_prev=prefix ;;
  927. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  928. prefix=$ac_optarg ;;
  929. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  930. | --program-pre | --program-pr | --program-p)
  931. ac_prev=program_prefix ;;
  932. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  933. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  934. program_prefix=$ac_optarg ;;
  935. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  936. | --program-suf | --program-su | --program-s)
  937. ac_prev=program_suffix ;;
  938. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  939. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  940. program_suffix=$ac_optarg ;;
  941. -program-transform-name | --program-transform-name \
  942. | --program-transform-nam | --program-transform-na \
  943. | --program-transform-n | --program-transform- \
  944. | --program-transform | --program-transfor \
  945. | --program-transfo | --program-transf \
  946. | --program-trans | --program-tran \
  947. | --progr-tra | --program-tr | --program-t)
  948. ac_prev=program_transform_name ;;
  949. -program-transform-name=* | --program-transform-name=* \
  950. | --program-transform-nam=* | --program-transform-na=* \
  951. | --program-transform-n=* | --program-transform-=* \
  952. | --program-transform=* | --program-transfor=* \
  953. | --program-transfo=* | --program-transf=* \
  954. | --program-trans=* | --program-tran=* \
  955. | --progr-tra=* | --program-tr=* | --program-t=*)
  956. program_transform_name=$ac_optarg ;;
  957. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  958. ac_prev=pdfdir ;;
  959. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  960. pdfdir=$ac_optarg ;;
  961. -psdir | --psdir | --psdi | --psd | --ps)
  962. ac_prev=psdir ;;
  963. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  964. psdir=$ac_optarg ;;
  965. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  966. | -silent | --silent | --silen | --sile | --sil)
  967. silent=yes ;;
  968. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  969. ac_prev=sbindir ;;
  970. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  971. | --sbi=* | --sb=*)
  972. sbindir=$ac_optarg ;;
  973. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  974. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  975. | --sharedst | --shareds | --shared | --share | --shar \
  976. | --sha | --sh)
  977. ac_prev=sharedstatedir ;;
  978. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  979. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  980. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  981. | --sha=* | --sh=*)
  982. sharedstatedir=$ac_optarg ;;
  983. -site | --site | --sit)
  984. ac_prev=site ;;
  985. -site=* | --site=* | --sit=*)
  986. site=$ac_optarg ;;
  987. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  988. ac_prev=srcdir ;;
  989. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  990. srcdir=$ac_optarg ;;
  991. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  992. | --syscon | --sysco | --sysc | --sys | --sy)
  993. ac_prev=sysconfdir ;;
  994. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  995. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  996. sysconfdir=$ac_optarg ;;
  997. -target | --target | --targe | --targ | --tar | --ta | --t)
  998. ac_prev=target_alias ;;
  999. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  1000. target_alias=$ac_optarg ;;
  1001. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  1002. verbose=yes ;;
  1003. -version | --version | --versio | --versi | --vers | -V)
  1004. ac_init_version=: ;;
  1005. -with-* | --with-*)
  1006. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1007. # Reject names that are not valid shell variable names.
  1008. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1009. as_fn_error $? "invalid package name: $ac_useropt"
  1010. ac_useropt_orig=$ac_useropt
  1011. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1012. case $ac_user_opts in
  1013. *"
  1014. "with_$ac_useropt"
  1015. "*) ;;
  1016. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  1017. ac_unrecognized_sep=', ';;
  1018. esac
  1019. eval with_$ac_useropt=\$ac_optarg ;;
  1020. -without-* | --without-*)
  1021. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1022. # Reject names that are not valid shell variable names.
  1023. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1024. as_fn_error $? "invalid package name: $ac_useropt"
  1025. ac_useropt_orig=$ac_useropt
  1026. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1027. case $ac_user_opts in
  1028. *"
  1029. "with_$ac_useropt"
  1030. "*) ;;
  1031. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  1032. ac_unrecognized_sep=', ';;
  1033. esac
  1034. eval with_$ac_useropt=no ;;
  1035. --x)
  1036. # Obsolete; use --with-x.
  1037. with_x=yes ;;
  1038. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1039. | --x-incl | --x-inc | --x-in | --x-i)
  1040. ac_prev=x_includes ;;
  1041. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1042. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1043. x_includes=$ac_optarg ;;
  1044. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1045. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1046. ac_prev=x_libraries ;;
  1047. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1048. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1049. x_libraries=$ac_optarg ;;
  1050. -*) as_fn_error $? "unrecognized option: \`$ac_option'
  1051. Try \`$0 --help' for more information"
  1052. ;;
  1053. *=*)
  1054. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1055. # Reject names that are not valid shell variable names.
  1056. case $ac_envvar in #(
  1057. '' | [0-9]* | *[!_$as_cr_alnum]* )
  1058. as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
  1059. esac
  1060. eval $ac_envvar=\$ac_optarg
  1061. export $ac_envvar ;;
  1062. *)
  1063. # FIXME: should be removed in autoconf 3.0.
  1064. $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1065. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1066. $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1067. : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
  1068. ;;
  1069. esac
  1070. done
  1071. if test -n "$ac_prev"; then
  1072. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1073. as_fn_error $? "missing argument to $ac_option"
  1074. fi
  1075. if test -n "$ac_unrecognized_opts"; then
  1076. case $enable_option_checking in
  1077. no) ;;
  1078. fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
  1079. *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1080. esac
  1081. fi
  1082. # Check all directory arguments for consistency.
  1083. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1084. datadir sysconfdir sharedstatedir localstatedir includedir \
  1085. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1086. libdir localedir mandir
  1087. do
  1088. eval ac_val=\$$ac_var
  1089. # Remove trailing slashes.
  1090. case $ac_val in
  1091. */ )
  1092. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1093. eval $ac_var=\$ac_val;;
  1094. esac
  1095. # Be sure to have absolute directory names.
  1096. case $ac_val in
  1097. [\\/$]* | ?:[\\/]* ) continue;;
  1098. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1099. esac
  1100. as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
  1101. done
  1102. # There might be people who depend on the old broken behavior: `$host'
  1103. # used to hold the argument of --host etc.
  1104. # FIXME: To remove some day.
  1105. build=$build_alias
  1106. host=$host_alias
  1107. target=$target_alias
  1108. # FIXME: To remove some day.
  1109. if test "x$host_alias" != x; then
  1110. if test "x$build_alias" = x; then
  1111. cross_compiling=maybe
  1112. $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
  1113. If a cross compiler is detected then cross compile mode will be used" >&2
  1114. elif test "x$build_alias" != "x$host_alias"; then
  1115. cross_compiling=yes
  1116. fi
  1117. fi
  1118. ac_tool_prefix=
  1119. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1120. test "$silent" = yes && exec 6>/dev/null
  1121. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1122. ac_ls_di=`ls -di .` &&
  1123. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1124. as_fn_error $? "working directory cannot be determined"
  1125. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1126. as_fn_error $? "pwd does not report name of working directory"
  1127. # Find the source files, if location was not specified.
  1128. if test -z "$srcdir"; then
  1129. ac_srcdir_defaulted=yes
  1130. # Try the directory containing this script, then the parent directory.
  1131. ac_confdir=`$as_dirname -- "$as_myself" ||
  1132. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1133. X"$as_myself" : 'X\(//\)[^/]' \| \
  1134. X"$as_myself" : 'X\(//\)$' \| \
  1135. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1136. $as_echo X"$as_myself" |
  1137. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1138. s//\1/
  1139. q
  1140. }
  1141. /^X\(\/\/\)[^/].*/{
  1142. s//\1/
  1143. q
  1144. }
  1145. /^X\(\/\/\)$/{
  1146. s//\1/
  1147. q
  1148. }
  1149. /^X\(\/\).*/{
  1150. s//\1/
  1151. q
  1152. }
  1153. s/.*/./; q'`
  1154. srcdir=$ac_confdir
  1155. if test ! -r "$srcdir/$ac_unique_file"; then
  1156. srcdir=..
  1157. fi
  1158. else
  1159. ac_srcdir_defaulted=no
  1160. fi
  1161. if test ! -r "$srcdir/$ac_unique_file"; then
  1162. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1163. as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
  1164. fi
  1165. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1166. ac_abs_confdir=`(
  1167. cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
  1168. pwd)`
  1169. # When building in place, set srcdir=.
  1170. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1171. srcdir=.
  1172. fi
  1173. # Remove unnecessary trailing slashes from srcdir.
  1174. # Double slashes in file names in object file debugging info
  1175. # mess up M-x gdb in Emacs.
  1176. case $srcdir in
  1177. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1178. esac
  1179. for ac_var in $ac_precious_vars; do
  1180. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1181. eval ac_env_${ac_var}_value=\$${ac_var}
  1182. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1183. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1184. done
  1185. #
  1186. # Report the --help message.
  1187. #
  1188. if test "$ac_init_help" = "long"; then
  1189. # Omit some internal or obsolete options to make the list less imposing.
  1190. # This message is too long to be a string in the A/UX 3.1 sh.
  1191. cat <<_ACEOF
  1192. \`configure' configures klish 1.5.7 to adapt to many kinds of systems.
  1193. Usage: $0 [OPTION]... [VAR=VALUE]...
  1194. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1195. VAR=VALUE. See below for descriptions of some of the useful variables.
  1196. Defaults for the options are specified in brackets.
  1197. Configuration:
  1198. -h, --help display this help and exit
  1199. --help=short display options specific to this package
  1200. --help=recursive display the short help of all the included packages
  1201. -V, --version display version information and exit
  1202. -q, --quiet, --silent do not print \`checking ...' messages
  1203. --cache-file=FILE cache test results in FILE [disabled]
  1204. -C, --config-cache alias for \`--cache-file=config.cache'
  1205. -n, --no-create do not create output files
  1206. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1207. Installation directories:
  1208. --prefix=PREFIX install architecture-independent files in PREFIX
  1209. [$ac_default_prefix]
  1210. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1211. [PREFIX]
  1212. By default, \`make install' will install all the files in
  1213. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1214. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1215. for instance \`--prefix=\$HOME'.
  1216. For better control, use the options below.
  1217. Fine tuning of the installation directories:
  1218. --bindir=DIR user executables [EPREFIX/bin]
  1219. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1220. --libexecdir=DIR program executables [EPREFIX/libexec]
  1221. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1222. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1223. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1224. --libdir=DIR object code libraries [EPREFIX/lib]
  1225. --includedir=DIR C header files [PREFIX/include]
  1226. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1227. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1228. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1229. --infodir=DIR info documentation [DATAROOTDIR/info]
  1230. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1231. --mandir=DIR man documentation [DATAROOTDIR/man]
  1232. --docdir=DIR documentation root [DATAROOTDIR/doc/klish]
  1233. --htmldir=DIR html documentation [DOCDIR]
  1234. --dvidir=DIR dvi documentation [DOCDIR]
  1235. --pdfdir=DIR pdf documentation [DOCDIR]
  1236. --psdir=DIR ps documentation [DOCDIR]
  1237. _ACEOF
  1238. cat <<\_ACEOF
  1239. Program names:
  1240. --program-prefix=PREFIX prepend PREFIX to installed program names
  1241. --program-suffix=SUFFIX append SUFFIX to installed program names
  1242. --program-transform-name=PROGRAM run sed PROGRAM on installed program names
  1243. System types:
  1244. --build=BUILD configure for building on BUILD [guessed]
  1245. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1246. _ACEOF
  1247. fi
  1248. if test -n "$ac_init_help"; then
  1249. case $ac_init_help in
  1250. short | recursive ) echo "Configuration of klish 1.5.7:";;
  1251. esac
  1252. cat <<\_ACEOF
  1253. Optional Features:
  1254. --disable-option-checking ignore unrecognized --enable/--with options
  1255. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1256. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1257. --enable-shared[=PKGS] build shared libraries [default=yes]
  1258. --enable-static[=PKGS] build static libraries [default=yes]
  1259. --enable-fast-install[=PKGS]
  1260. optimize for fast installation [default=yes]
  1261. --disable-libtool-lock avoid locking (might break parallel builds)
  1262. --disable-dependency-tracking speeds up one-time build
  1263. --enable-dependency-tracking do not reject slow dependency extractors
  1264. --enable-debug Turn on debugging including asserts [default=no]
  1265. Optional Packages:
  1266. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1267. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1268. --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
  1269. both]
  1270. --with-gnu-ld assume the C compiler uses GNU ld [default=no]
  1271. --with-sysroot=DIR Search for dependent libraries within DIR
  1272. (or the compiler's sysroot if not specified).
  1273. Some influential environment variables:
  1274. CC C compiler command
  1275. CFLAGS C compiler flags
  1276. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1277. nonstandard directory <lib dir>
  1278. LIBS libraries to pass to the linker, e.g. -l<library>
  1279. CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
  1280. you have headers in a nonstandard directory <include dir>
  1281. CPP C preprocessor
  1282. CXX C++ compiler command
  1283. CXXFLAGS C++ compiler flags
  1284. CXXCPP C++ preprocessor
  1285. Use these variables to override the choices made by `configure' or to help
  1286. it to find libraries and programs with nonstandard names/locations.
  1287. Report bugs to <serj.kalichev at gmail dot com>.
  1288. _ACEOF
  1289. ac_status=$?
  1290. fi
  1291. if test "$ac_init_help" = "recursive"; then
  1292. # If there are subdirs, report their specific --help.
  1293. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1294. test -d "$ac_dir" ||
  1295. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1296. continue
  1297. ac_builddir=.
  1298. case "$ac_dir" in
  1299. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1300. *)
  1301. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  1302. # A ".." for each directory in $ac_dir_suffix.
  1303. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1304. case $ac_top_builddir_sub in
  1305. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1306. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1307. esac ;;
  1308. esac
  1309. ac_abs_top_builddir=$ac_pwd
  1310. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1311. # for backward compatibility:
  1312. ac_top_builddir=$ac_top_build_prefix
  1313. case $srcdir in
  1314. .) # We are building in place.
  1315. ac_srcdir=.
  1316. ac_top_srcdir=$ac_top_builddir_sub
  1317. ac_abs_top_srcdir=$ac_pwd ;;
  1318. [\\/]* | ?:[\\/]* ) # Absolute name.
  1319. ac_srcdir=$srcdir$ac_dir_suffix;
  1320. ac_top_srcdir=$srcdir
  1321. ac_abs_top_srcdir=$srcdir ;;
  1322. *) # Relative name.
  1323. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1324. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1325. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1326. esac
  1327. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1328. cd "$ac_dir" || { ac_status=$?; continue; }
  1329. # Check for guested configure.
  1330. if test -f "$ac_srcdir/configure.gnu"; then
  1331. echo &&
  1332. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1333. elif test -f "$ac_srcdir/configure"; then
  1334. echo &&
  1335. $SHELL "$ac_srcdir/configure" --help=recursive
  1336. else
  1337. $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1338. fi || ac_status=$?
  1339. cd "$ac_pwd" || { ac_status=$?; break; }
  1340. done
  1341. fi
  1342. test -n "$ac_init_help" && exit $ac_status
  1343. if $ac_init_version; then
  1344. cat <<\_ACEOF
  1345. klish configure 1.5.7
  1346. generated by GNU Autoconf 2.68
  1347. Copyright (C) 2010 Free Software Foundation, Inc.
  1348. This configure script is free software; the Free Software Foundation
  1349. gives unlimited permission to copy, distribute and modify it.
  1350. _ACEOF
  1351. exit
  1352. fi
  1353. ## ------------------------ ##
  1354. ## Autoconf initialization. ##
  1355. ## ------------------------ ##
  1356. # ac_fn_c_try_compile LINENO
  1357. # --------------------------
  1358. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1359. ac_fn_c_try_compile ()
  1360. {
  1361. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1362. rm -f conftest.$ac_objext
  1363. if { { ac_try="$ac_compile"
  1364. case "(($ac_try" in
  1365. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1366. *) ac_try_echo=$ac_try;;
  1367. esac
  1368. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1369. $as_echo "$ac_try_echo"; } >&5
  1370. (eval "$ac_compile") 2>conftest.err
  1371. ac_status=$?
  1372. if test -s conftest.err; then
  1373. grep -v '^ *+' conftest.err >conftest.er1
  1374. cat conftest.er1 >&5
  1375. mv -f conftest.er1 conftest.err
  1376. fi
  1377. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1378. test $ac_status = 0; } && {
  1379. test -z "$ac_c_werror_flag" ||
  1380. test ! -s conftest.err
  1381. } && test -s conftest.$ac_objext; then :
  1382. ac_retval=0
  1383. else
  1384. $as_echo "$as_me: failed program was:" >&5
  1385. sed 's/^/| /' conftest.$ac_ext >&5
  1386. ac_retval=1
  1387. fi
  1388. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1389. as_fn_set_status $ac_retval
  1390. } # ac_fn_c_try_compile
  1391. # ac_fn_c_try_cpp LINENO
  1392. # ----------------------
  1393. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1394. ac_fn_c_try_cpp ()
  1395. {
  1396. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1397. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1398. case "(($ac_try" in
  1399. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1400. *) ac_try_echo=$ac_try;;
  1401. esac
  1402. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1403. $as_echo "$ac_try_echo"; } >&5
  1404. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1405. ac_status=$?
  1406. if test -s conftest.err; then
  1407. grep -v '^ *+' conftest.err >conftest.er1
  1408. cat conftest.er1 >&5
  1409. mv -f conftest.er1 conftest.err
  1410. fi
  1411. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1412. test $ac_status = 0; } > conftest.i && {
  1413. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  1414. test ! -s conftest.err
  1415. }; then :
  1416. ac_retval=0
  1417. else
  1418. $as_echo "$as_me: failed program was:" >&5
  1419. sed 's/^/| /' conftest.$ac_ext >&5
  1420. ac_retval=1
  1421. fi
  1422. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1423. as_fn_set_status $ac_retval
  1424. } # ac_fn_c_try_cpp
  1425. # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
  1426. # -------------------------------------------------------
  1427. # Tests whether HEADER exists, giving a warning if it cannot be compiled using
  1428. # the include files in INCLUDES and setting the cache variable VAR
  1429. # accordingly.
  1430. ac_fn_c_check_header_mongrel ()
  1431. {
  1432. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1433. if eval \${$3+:} false; then :
  1434. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1435. $as_echo_n "checking for $2... " >&6; }
  1436. if eval \${$3+:} false; then :
  1437. $as_echo_n "(cached) " >&6
  1438. fi
  1439. eval ac_res=\$$3
  1440. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1441. $as_echo "$ac_res" >&6; }
  1442. else
  1443. # Is the header compilable?
  1444. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
  1445. $as_echo_n "checking $2 usability... " >&6; }
  1446. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1447. /* end confdefs.h. */
  1448. $4
  1449. #include <$2>
  1450. _ACEOF
  1451. if ac_fn_c_try_compile "$LINENO"; then :
  1452. ac_header_compiler=yes
  1453. else
  1454. ac_header_compiler=no
  1455. fi
  1456. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1457. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
  1458. $as_echo "$ac_header_compiler" >&6; }
  1459. # Is the header present?
  1460. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
  1461. $as_echo_n "checking $2 presence... " >&6; }
  1462. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1463. /* end confdefs.h. */
  1464. #include <$2>
  1465. _ACEOF
  1466. if ac_fn_c_try_cpp "$LINENO"; then :
  1467. ac_header_preproc=yes
  1468. else
  1469. ac_header_preproc=no
  1470. fi
  1471. rm -f conftest.err conftest.i conftest.$ac_ext
  1472. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
  1473. $as_echo "$ac_header_preproc" >&6; }
  1474. # So? What about this header?
  1475. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
  1476. yes:no: )
  1477. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
  1478. $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
  1479. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1480. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1481. ;;
  1482. no:yes:* )
  1483. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
  1484. $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
  1485. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
  1486. $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
  1487. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
  1488. $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
  1489. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
  1490. $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
  1491. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1492. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1493. ( $as_echo "## --------------------------------------------- ##
  1494. ## Report this to serj.kalichev at gmail dot com ##
  1495. ## --------------------------------------------- ##"
  1496. ) | sed "s/^/$as_me: WARNING: /" >&2
  1497. ;;
  1498. esac
  1499. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1500. $as_echo_n "checking for $2... " >&6; }
  1501. if eval \${$3+:} false; then :
  1502. $as_echo_n "(cached) " >&6
  1503. else
  1504. eval "$3=\$ac_header_compiler"
  1505. fi
  1506. eval ac_res=\$$3
  1507. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1508. $as_echo "$ac_res" >&6; }
  1509. fi
  1510. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1511. } # ac_fn_c_check_header_mongrel
  1512. # ac_fn_c_try_run LINENO
  1513. # ----------------------
  1514. # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
  1515. # that executables *can* be run.
  1516. ac_fn_c_try_run ()
  1517. {
  1518. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1519. if { { ac_try="$ac_link"
  1520. case "(($ac_try" in
  1521. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1522. *) ac_try_echo=$ac_try;;
  1523. esac
  1524. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1525. $as_echo "$ac_try_echo"; } >&5
  1526. (eval "$ac_link") 2>&5
  1527. ac_status=$?
  1528. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1529. test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  1530. { { case "(($ac_try" in
  1531. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1532. *) ac_try_echo=$ac_try;;
  1533. esac
  1534. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1535. $as_echo "$ac_try_echo"; } >&5
  1536. (eval "$ac_try") 2>&5
  1537. ac_status=$?
  1538. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1539. test $ac_status = 0; }; }; then :
  1540. ac_retval=0
  1541. else
  1542. $as_echo "$as_me: program exited with status $ac_status" >&5
  1543. $as_echo "$as_me: failed program was:" >&5
  1544. sed 's/^/| /' conftest.$ac_ext >&5
  1545. ac_retval=$ac_status
  1546. fi
  1547. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1548. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1549. as_fn_set_status $ac_retval
  1550. } # ac_fn_c_try_run
  1551. # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
  1552. # -------------------------------------------------------
  1553. # Tests whether HEADER exists and can be compiled using the include files in
  1554. # INCLUDES, setting the cache variable VAR accordingly.
  1555. ac_fn_c_check_header_compile ()
  1556. {
  1557. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1558. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1559. $as_echo_n "checking for $2... " >&6; }
  1560. if eval \${$3+:} false; then :
  1561. $as_echo_n "(cached) " >&6
  1562. else
  1563. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1564. /* end confdefs.h. */
  1565. $4
  1566. #include <$2>
  1567. _ACEOF
  1568. if ac_fn_c_try_compile "$LINENO"; then :
  1569. eval "$3=yes"
  1570. else
  1571. eval "$3=no"
  1572. fi
  1573. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1574. fi
  1575. eval ac_res=\$$3
  1576. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1577. $as_echo "$ac_res" >&6; }
  1578. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1579. } # ac_fn_c_check_header_compile
  1580. # ac_fn_cxx_try_compile LINENO
  1581. # ----------------------------
  1582. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1583. ac_fn_cxx_try_compile ()
  1584. {
  1585. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1586. rm -f conftest.$ac_objext
  1587. if { { ac_try="$ac_compile"
  1588. case "(($ac_try" in
  1589. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1590. *) ac_try_echo=$ac_try;;
  1591. esac
  1592. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1593. $as_echo "$ac_try_echo"; } >&5
  1594. (eval "$ac_compile") 2>conftest.err
  1595. ac_status=$?
  1596. if test -s conftest.err; then
  1597. grep -v '^ *+' conftest.err >conftest.er1
  1598. cat conftest.er1 >&5
  1599. mv -f conftest.er1 conftest.err
  1600. fi
  1601. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1602. test $ac_status = 0; } && {
  1603. test -z "$ac_cxx_werror_flag" ||
  1604. test ! -s conftest.err
  1605. } && test -s conftest.$ac_objext; then :
  1606. ac_retval=0
  1607. else
  1608. $as_echo "$as_me: failed program was:" >&5
  1609. sed 's/^/| /' conftest.$ac_ext >&5
  1610. ac_retval=1
  1611. fi
  1612. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1613. as_fn_set_status $ac_retval
  1614. } # ac_fn_cxx_try_compile
  1615. # ac_fn_c_try_link LINENO
  1616. # -----------------------
  1617. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1618. ac_fn_c_try_link ()
  1619. {
  1620. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1621. rm -f conftest.$ac_objext conftest$ac_exeext
  1622. if { { ac_try="$ac_link"
  1623. case "(($ac_try" in
  1624. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1625. *) ac_try_echo=$ac_try;;
  1626. esac
  1627. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1628. $as_echo "$ac_try_echo"; } >&5
  1629. (eval "$ac_link") 2>conftest.err
  1630. ac_status=$?
  1631. if test -s conftest.err; then
  1632. grep -v '^ *+' conftest.err >conftest.er1
  1633. cat conftest.er1 >&5
  1634. mv -f conftest.er1 conftest.err
  1635. fi
  1636. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1637. test $ac_status = 0; } && {
  1638. test -z "$ac_c_werror_flag" ||
  1639. test ! -s conftest.err
  1640. } && test -s conftest$ac_exeext && {
  1641. test "$cross_compiling" = yes ||
  1642. $as_test_x conftest$ac_exeext
  1643. }; then :
  1644. ac_retval=0
  1645. else
  1646. $as_echo "$as_me: failed program was:" >&5
  1647. sed 's/^/| /' conftest.$ac_ext >&5
  1648. ac_retval=1
  1649. fi
  1650. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1651. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1652. # interfere with the next link command; also delete a directory that is
  1653. # left behind by Apple's compiler. We do this before executing the actions.
  1654. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1655. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1656. as_fn_set_status $ac_retval
  1657. } # ac_fn_c_try_link
  1658. # ac_fn_c_check_func LINENO FUNC VAR
  1659. # ----------------------------------
  1660. # Tests whether FUNC exists, setting the cache variable VAR accordingly
  1661. ac_fn_c_check_func ()
  1662. {
  1663. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1664. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1665. $as_echo_n "checking for $2... " >&6; }
  1666. if eval \${$3+:} false; then :
  1667. $as_echo_n "(cached) " >&6
  1668. else
  1669. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1670. /* end confdefs.h. */
  1671. /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
  1672. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  1673. #define $2 innocuous_$2
  1674. /* System header to define __stub macros and hopefully few prototypes,
  1675. which can conflict with char $2 (); below.
  1676. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  1677. <limits.h> exists even on freestanding compilers. */
  1678. #ifdef __STDC__
  1679. # include <limits.h>
  1680. #else
  1681. # include <assert.h>
  1682. #endif
  1683. #undef $2
  1684. /* Override any GCC internal prototype to avoid an error.
  1685. Use char because int might match the return type of a GCC
  1686. builtin and then its argument prototype would still apply. */
  1687. #ifdef __cplusplus
  1688. extern "C"
  1689. #endif
  1690. char $2 ();
  1691. /* The GNU C library defines this for functions which it implements
  1692. to always fail with ENOSYS. Some functions are actually named
  1693. something starting with __ and the normal name is an alias. */
  1694. #if defined __stub_$2 || defined __stub___$2
  1695. choke me
  1696. #endif
  1697. int
  1698. main ()
  1699. {
  1700. return $2 ();
  1701. ;
  1702. return 0;
  1703. }
  1704. _ACEOF
  1705. if ac_fn_c_try_link "$LINENO"; then :
  1706. eval "$3=yes"
  1707. else
  1708. eval "$3=no"
  1709. fi
  1710. rm -f core conftest.err conftest.$ac_objext \
  1711. conftest$ac_exeext conftest.$ac_ext
  1712. fi
  1713. eval ac_res=\$$3
  1714. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1715. $as_echo "$ac_res" >&6; }
  1716. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1717. } # ac_fn_c_check_func
  1718. # ac_fn_cxx_try_cpp LINENO
  1719. # ------------------------
  1720. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1721. ac_fn_cxx_try_cpp ()
  1722. {
  1723. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1724. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1725. case "(($ac_try" in
  1726. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1727. *) ac_try_echo=$ac_try;;
  1728. esac
  1729. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1730. $as_echo "$ac_try_echo"; } >&5
  1731. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1732. ac_status=$?
  1733. if test -s conftest.err; then
  1734. grep -v '^ *+' conftest.err >conftest.er1
  1735. cat conftest.er1 >&5
  1736. mv -f conftest.er1 conftest.err
  1737. fi
  1738. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1739. test $ac_status = 0; } > conftest.i && {
  1740. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  1741. test ! -s conftest.err
  1742. }; then :
  1743. ac_retval=0
  1744. else
  1745. $as_echo "$as_me: failed program was:" >&5
  1746. sed 's/^/| /' conftest.$ac_ext >&5
  1747. ac_retval=1
  1748. fi
  1749. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1750. as_fn_set_status $ac_retval
  1751. } # ac_fn_cxx_try_cpp
  1752. # ac_fn_cxx_try_link LINENO
  1753. # -------------------------
  1754. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1755. ac_fn_cxx_try_link ()
  1756. {
  1757. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1758. rm -f conftest.$ac_objext conftest$ac_exeext
  1759. if { { ac_try="$ac_link"
  1760. case "(($ac_try" in
  1761. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1762. *) ac_try_echo=$ac_try;;
  1763. esac
  1764. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1765. $as_echo "$ac_try_echo"; } >&5
  1766. (eval "$ac_link") 2>conftest.err
  1767. ac_status=$?
  1768. if test -s conftest.err; then
  1769. grep -v '^ *+' conftest.err >conftest.er1
  1770. cat conftest.er1 >&5
  1771. mv -f conftest.er1 conftest.err
  1772. fi
  1773. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1774. test $ac_status = 0; } && {
  1775. test -z "$ac_cxx_werror_flag" ||
  1776. test ! -s conftest.err
  1777. } && test -s conftest$ac_exeext && {
  1778. test "$cross_compiling" = yes ||
  1779. $as_test_x conftest$ac_exeext
  1780. }; then :
  1781. ac_retval=0
  1782. else
  1783. $as_echo "$as_me: failed program was:" >&5
  1784. sed 's/^/| /' conftest.$ac_ext >&5
  1785. ac_retval=1
  1786. fi
  1787. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1788. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1789. # interfere with the next link command; also delete a directory that is
  1790. # left behind by Apple's compiler. We do this before executing the actions.
  1791. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1792. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1793. as_fn_set_status $ac_retval
  1794. } # ac_fn_cxx_try_link
  1795. # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
  1796. # --------------------------------------------
  1797. # Tries to find the compile-time value of EXPR in a program that includes
  1798. # INCLUDES, setting VAR accordingly. Returns whether the value could be
  1799. # computed
  1800. ac_fn_c_compute_int ()
  1801. {
  1802. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1803. if test "$cross_compiling" = yes; then
  1804. # Depending upon the size, compute the lo and hi bounds.
  1805. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1806. /* end confdefs.h. */
  1807. $4
  1808. int
  1809. main ()
  1810. {
  1811. static int test_array [1 - 2 * !(($2) >= 0)];
  1812. test_array [0] = 0
  1813. ;
  1814. return 0;
  1815. }
  1816. _ACEOF
  1817. if ac_fn_c_try_compile "$LINENO"; then :
  1818. ac_lo=0 ac_mid=0
  1819. while :; do
  1820. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1821. /* end confdefs.h. */
  1822. $4
  1823. int
  1824. main ()
  1825. {
  1826. static int test_array [1 - 2 * !(($2) <= $ac_mid)];
  1827. test_array [0] = 0
  1828. ;
  1829. return 0;
  1830. }
  1831. _ACEOF
  1832. if ac_fn_c_try_compile "$LINENO"; then :
  1833. ac_hi=$ac_mid; break
  1834. else
  1835. as_fn_arith $ac_mid + 1 && ac_lo=$as_val
  1836. if test $ac_lo -le $ac_mid; then
  1837. ac_lo= ac_hi=
  1838. break
  1839. fi
  1840. as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
  1841. fi
  1842. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1843. done
  1844. else
  1845. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1846. /* end confdefs.h. */
  1847. $4
  1848. int
  1849. main ()
  1850. {
  1851. static int test_array [1 - 2 * !(($2) < 0)];
  1852. test_array [0] = 0
  1853. ;
  1854. return 0;
  1855. }
  1856. _ACEOF
  1857. if ac_fn_c_try_compile "$LINENO"; then :
  1858. ac_hi=-1 ac_mid=-1
  1859. while :; do
  1860. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1861. /* end confdefs.h. */
  1862. $4
  1863. int
  1864. main ()
  1865. {
  1866. static int test_array [1 - 2 * !(($2) >= $ac_mid)];
  1867. test_array [0] = 0
  1868. ;
  1869. return 0;
  1870. }
  1871. _ACEOF
  1872. if ac_fn_c_try_compile "$LINENO"; then :
  1873. ac_lo=$ac_mid; break
  1874. else
  1875. as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
  1876. if test $ac_mid -le $ac_hi; then
  1877. ac_lo= ac_hi=
  1878. break
  1879. fi
  1880. as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
  1881. fi
  1882. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1883. done
  1884. else
  1885. ac_lo= ac_hi=
  1886. fi
  1887. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1888. fi
  1889. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1890. # Binary search between lo and hi bounds.
  1891. while test "x$ac_lo" != "x$ac_hi"; do
  1892. as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
  1893. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1894. /* end confdefs.h. */
  1895. $4
  1896. int
  1897. main ()
  1898. {
  1899. static int test_array [1 - 2 * !(($2) <= $ac_mid)];
  1900. test_array [0] = 0
  1901. ;
  1902. return 0;
  1903. }
  1904. _ACEOF
  1905. if ac_fn_c_try_compile "$LINENO"; then :
  1906. ac_hi=$ac_mid
  1907. else
  1908. as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
  1909. fi
  1910. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1911. done
  1912. case $ac_lo in #((
  1913. ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
  1914. '') ac_retval=1 ;;
  1915. esac
  1916. else
  1917. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1918. /* end confdefs.h. */
  1919. $4
  1920. static long int longval () { return $2; }
  1921. static unsigned long int ulongval () { return $2; }
  1922. #include <stdio.h>
  1923. #include <stdlib.h>
  1924. int
  1925. main ()
  1926. {
  1927. FILE *f = fopen ("conftest.val", "w");
  1928. if (! f)
  1929. return 1;
  1930. if (($2) < 0)
  1931. {
  1932. long int i = longval ();
  1933. if (i != ($2))
  1934. return 1;
  1935. fprintf (f, "%ld", i);
  1936. }
  1937. else
  1938. {
  1939. unsigned long int i = ulongval ();
  1940. if (i != ($2))
  1941. return 1;
  1942. fprintf (f, "%lu", i);
  1943. }
  1944. /* Do not output a trailing newline, as this causes \r\n confusion
  1945. on some platforms. */
  1946. return ferror (f) || fclose (f) != 0;
  1947. ;
  1948. return 0;
  1949. }
  1950. _ACEOF
  1951. if ac_fn_c_try_run "$LINENO"; then :
  1952. echo >>conftest.val; read $3 <conftest.val; ac_retval=0
  1953. else
  1954. ac_retval=1
  1955. fi
  1956. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  1957. conftest.$ac_objext conftest.beam conftest.$ac_ext
  1958. rm -f conftest.val
  1959. fi
  1960. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1961. as_fn_set_status $ac_retval
  1962. } # ac_fn_c_compute_int
  1963. cat >config.log <<_ACEOF
  1964. This file contains any messages produced by compilers while
  1965. running configure, to aid debugging if configure makes a mistake.
  1966. It was created by klish $as_me 1.5.7, which was
  1967. generated by GNU Autoconf 2.68. Invocation command line was
  1968. $ $0 $@
  1969. _ACEOF
  1970. exec 5>>config.log
  1971. {
  1972. cat <<_ASUNAME
  1973. ## --------- ##
  1974. ## Platform. ##
  1975. ## --------- ##
  1976. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  1977. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  1978. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  1979. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  1980. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  1981. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  1982. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  1983. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  1984. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  1985. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  1986. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  1987. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  1988. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  1989. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  1990. _ASUNAME
  1991. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1992. for as_dir in $PATH
  1993. do
  1994. IFS=$as_save_IFS
  1995. test -z "$as_dir" && as_dir=.
  1996. $as_echo "PATH: $as_dir"
  1997. done
  1998. IFS=$as_save_IFS
  1999. } >&5
  2000. cat >&5 <<_ACEOF
  2001. ## ----------- ##
  2002. ## Core tests. ##
  2003. ## ----------- ##
  2004. _ACEOF
  2005. # Keep a trace of the command line.
  2006. # Strip out --no-create and --no-recursion so they do not pile up.
  2007. # Strip out --silent because we don't want to record it for future runs.
  2008. # Also quote any args containing shell meta-characters.
  2009. # Make two passes to allow for proper duplicate-argument suppression.
  2010. ac_configure_args=
  2011. ac_configure_args0=
  2012. ac_configure_args1=
  2013. ac_must_keep_next=false
  2014. for ac_pass in 1 2
  2015. do
  2016. for ac_arg
  2017. do
  2018. case $ac_arg in
  2019. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  2020. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  2021. | -silent | --silent | --silen | --sile | --sil)
  2022. continue ;;
  2023. *\'*)
  2024. ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  2025. esac
  2026. case $ac_pass in
  2027. 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  2028. 2)
  2029. as_fn_append ac_configure_args1 " '$ac_arg'"
  2030. if test $ac_must_keep_next = true; then
  2031. ac_must_keep_next=false # Got value, back to normal.
  2032. else
  2033. case $ac_arg in
  2034. *=* | --config-cache | -C | -disable-* | --disable-* \
  2035. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  2036. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  2037. | -with-* | --with-* | -without-* | --without-* | --x)
  2038. case "$ac_configure_args0 " in
  2039. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  2040. esac
  2041. ;;
  2042. -* ) ac_must_keep_next=true ;;
  2043. esac
  2044. fi
  2045. as_fn_append ac_configure_args " '$ac_arg'"
  2046. ;;
  2047. esac
  2048. done
  2049. done
  2050. { ac_configure_args0=; unset ac_configure_args0;}
  2051. { ac_configure_args1=; unset ac_configure_args1;}
  2052. # When interrupted or exit'd, cleanup temporary files, and complete
  2053. # config.log. We remove comments because anyway the quotes in there
  2054. # would cause problems or look ugly.
  2055. # WARNING: Use '\'' to represent an apostrophe within the trap.
  2056. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  2057. trap 'exit_status=$?
  2058. # Save into config.log some information that might help in debugging.
  2059. {
  2060. echo
  2061. $as_echo "## ---------------- ##
  2062. ## Cache variables. ##
  2063. ## ---------------- ##"
  2064. echo
  2065. # The following way of writing the cache mishandles newlines in values,
  2066. (
  2067. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  2068. eval ac_val=\$$ac_var
  2069. case $ac_val in #(
  2070. *${as_nl}*)
  2071. case $ac_var in #(
  2072. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  2073. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  2074. esac
  2075. case $ac_var in #(
  2076. _ | IFS | as_nl) ;; #(
  2077. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  2078. *) { eval $ac_var=; unset $ac_var;} ;;
  2079. esac ;;
  2080. esac
  2081. done
  2082. (set) 2>&1 |
  2083. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  2084. *${as_nl}ac_space=\ *)
  2085. sed -n \
  2086. "s/'\''/'\''\\\\'\'''\''/g;
  2087. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  2088. ;; #(
  2089. *)
  2090. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  2091. ;;
  2092. esac |
  2093. sort
  2094. )
  2095. echo
  2096. $as_echo "## ----------------- ##
  2097. ## Output variables. ##
  2098. ## ----------------- ##"
  2099. echo
  2100. for ac_var in $ac_subst_vars
  2101. do
  2102. eval ac_val=\$$ac_var
  2103. case $ac_val in
  2104. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2105. esac
  2106. $as_echo "$ac_var='\''$ac_val'\''"
  2107. done | sort
  2108. echo
  2109. if test -n "$ac_subst_files"; then
  2110. $as_echo "## ------------------- ##
  2111. ## File substitutions. ##
  2112. ## ------------------- ##"
  2113. echo
  2114. for ac_var in $ac_subst_files
  2115. do
  2116. eval ac_val=\$$ac_var
  2117. case $ac_val in
  2118. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2119. esac
  2120. $as_echo "$ac_var='\''$ac_val'\''"
  2121. done | sort
  2122. echo
  2123. fi
  2124. if test -s confdefs.h; then
  2125. $as_echo "## ----------- ##
  2126. ## confdefs.h. ##
  2127. ## ----------- ##"
  2128. echo
  2129. cat confdefs.h
  2130. echo
  2131. fi
  2132. test "$ac_signal" != 0 &&
  2133. $as_echo "$as_me: caught signal $ac_signal"
  2134. $as_echo "$as_me: exit $exit_status"
  2135. } >&5
  2136. rm -f core *.core core.conftest.* &&
  2137. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  2138. exit $exit_status
  2139. ' 0
  2140. for ac_signal in 1 2 13 15; do
  2141. trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  2142. done
  2143. ac_signal=0
  2144. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  2145. rm -f -r conftest* confdefs.h
  2146. $as_echo "/* confdefs.h */" > confdefs.h
  2147. # Predefined preprocessor variables.
  2148. cat >>confdefs.h <<_ACEOF
  2149. #define PACKAGE_NAME "$PACKAGE_NAME"
  2150. _ACEOF
  2151. cat >>confdefs.h <<_ACEOF
  2152. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  2153. _ACEOF
  2154. cat >>confdefs.h <<_ACEOF
  2155. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  2156. _ACEOF
  2157. cat >>confdefs.h <<_ACEOF
  2158. #define PACKAGE_STRING "$PACKAGE_STRING"
  2159. _ACEOF
  2160. cat >>confdefs.h <<_ACEOF
  2161. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  2162. _ACEOF
  2163. cat >>confdefs.h <<_ACEOF
  2164. #define PACKAGE_URL "$PACKAGE_URL"
  2165. _ACEOF
  2166. # Let the site file select an alternate cache file if it wants to.
  2167. # Prefer an explicitly selected file to automatically selected ones.
  2168. ac_site_file1=NONE
  2169. ac_site_file2=NONE
  2170. if test -n "$CONFIG_SITE"; then
  2171. # We do not want a PATH search for config.site.
  2172. case $CONFIG_SITE in #((
  2173. -*) ac_site_file1=./$CONFIG_SITE;;
  2174. */*) ac_site_file1=$CONFIG_SITE;;
  2175. *) ac_site_file1=./$CONFIG_SITE;;
  2176. esac
  2177. elif test "x$prefix" != xNONE; then
  2178. ac_site_file1=$prefix/share/config.site
  2179. ac_site_file2=$prefix/etc/config.site
  2180. else
  2181. ac_site_file1=$ac_default_prefix/share/config.site
  2182. ac_site_file2=$ac_default_prefix/etc/config.site
  2183. fi
  2184. for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  2185. do
  2186. test "x$ac_site_file" = xNONE && continue
  2187. if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
  2188. { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  2189. $as_echo "$as_me: loading site script $ac_site_file" >&6;}
  2190. sed 's/^/| /' "$ac_site_file" >&5
  2191. . "$ac_site_file" \
  2192. || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2193. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2194. as_fn_error $? "failed to load site script $ac_site_file
  2195. See \`config.log' for more details" "$LINENO" 5; }
  2196. fi
  2197. done
  2198. if test -r "$cache_file"; then
  2199. # Some versions of bash will fail to source /dev/null (special files
  2200. # actually), so we avoid doing that. DJGPP emulates it as a regular file.
  2201. if test /dev/null != "$cache_file" && test -f "$cache_file"; then
  2202. { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  2203. $as_echo "$as_me: loading cache $cache_file" >&6;}
  2204. case $cache_file in
  2205. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  2206. *) . "./$cache_file";;
  2207. esac
  2208. fi
  2209. else
  2210. { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  2211. $as_echo "$as_me: creating cache $cache_file" >&6;}
  2212. >$cache_file
  2213. fi
  2214. # Check that the precious variables saved in the cache have kept the same
  2215. # value.
  2216. ac_cache_corrupted=false
  2217. for ac_var in $ac_precious_vars; do
  2218. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  2219. eval ac_new_set=\$ac_env_${ac_var}_set
  2220. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  2221. eval ac_new_val=\$ac_env_${ac_var}_value
  2222. case $ac_old_set,$ac_new_set in
  2223. set,)
  2224. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  2225. $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  2226. ac_cache_corrupted=: ;;
  2227. ,set)
  2228. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  2229. $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  2230. ac_cache_corrupted=: ;;
  2231. ,);;
  2232. *)
  2233. if test "x$ac_old_val" != "x$ac_new_val"; then
  2234. # differences in whitespace do not lead to failure.
  2235. ac_old_val_w=`echo x $ac_old_val`
  2236. ac_new_val_w=`echo x $ac_new_val`
  2237. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  2238. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  2239. $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  2240. ac_cache_corrupted=:
  2241. else
  2242. { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  2243. $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  2244. eval $ac_var=\$ac_old_val
  2245. fi
  2246. { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
  2247. $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
  2248. { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
  2249. $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
  2250. fi;;
  2251. esac
  2252. # Pass precious variables to config.status.
  2253. if test "$ac_new_set" = set; then
  2254. case $ac_new_val in
  2255. *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  2256. *) ac_arg=$ac_var=$ac_new_val ;;
  2257. esac
  2258. case " $ac_configure_args " in
  2259. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  2260. *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  2261. esac
  2262. fi
  2263. done
  2264. if $ac_cache_corrupted; then
  2265. { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2266. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2267. { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  2268. $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  2269. as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
  2270. fi
  2271. ## -------------------- ##
  2272. ## Main body of script. ##
  2273. ## -------------------- ##
  2274. ac_ext=c
  2275. ac_cpp='$CPP $CPPFLAGS'
  2276. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2277. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2278. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2279. ac_aux_dir=
  2280. for ac_dir in aux_scripts "$srcdir"/aux_scripts; do
  2281. if test -f "$ac_dir/install-sh"; then
  2282. ac_aux_dir=$ac_dir
  2283. ac_install_sh="$ac_aux_dir/install-sh -c"
  2284. break
  2285. elif test -f "$ac_dir/install.sh"; then
  2286. ac_aux_dir=$ac_dir
  2287. ac_install_sh="$ac_aux_dir/install.sh -c"
  2288. break
  2289. elif test -f "$ac_dir/shtool"; then
  2290. ac_aux_dir=$ac_dir
  2291. ac_install_sh="$ac_aux_dir/shtool install -c"
  2292. break
  2293. fi
  2294. done
  2295. if test -z "$ac_aux_dir"; then
  2296. as_fn_error $? "cannot find install-sh, install.sh, or shtool in aux_scripts \"$srcdir\"/aux_scripts" "$LINENO" 5
  2297. fi
  2298. # These three variables are undocumented and unsupported,
  2299. # and are intended to be withdrawn in a future Autoconf release.
  2300. # They can cause serious problems if a builder's source tree is in a directory
  2301. # whose full name contains unusual characters.
  2302. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  2303. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  2304. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  2305. # Check for system extensions (_POSIX_THREAD_SEMANTICS for Solaris)
  2306. ac_ext=c
  2307. ac_cpp='$CPP $CPPFLAGS'
  2308. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2309. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2310. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2311. if test -n "$ac_tool_prefix"; then
  2312. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  2313. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  2314. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2315. $as_echo_n "checking for $ac_word... " >&6; }
  2316. if ${ac_cv_prog_CC+:} false; then :
  2317. $as_echo_n "(cached) " >&6
  2318. else
  2319. if test -n "$CC"; then
  2320. ac_cv_prog_CC="$CC" # Let the user override the test.
  2321. else
  2322. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2323. for as_dir in $PATH
  2324. do
  2325. IFS=$as_save_IFS
  2326. test -z "$as_dir" && as_dir=.
  2327. for ac_exec_ext in '' $ac_executable_extensions; do
  2328. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2329. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  2330. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2331. break 2
  2332. fi
  2333. done
  2334. done
  2335. IFS=$as_save_IFS
  2336. fi
  2337. fi
  2338. CC=$ac_cv_prog_CC
  2339. if test -n "$CC"; then
  2340. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2341. $as_echo "$CC" >&6; }
  2342. else
  2343. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2344. $as_echo "no" >&6; }
  2345. fi
  2346. fi
  2347. if test -z "$ac_cv_prog_CC"; then
  2348. ac_ct_CC=$CC
  2349. # Extract the first word of "gcc", so it can be a program name with args.
  2350. set dummy gcc; ac_word=$2
  2351. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2352. $as_echo_n "checking for $ac_word... " >&6; }
  2353. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  2354. $as_echo_n "(cached) " >&6
  2355. else
  2356. if test -n "$ac_ct_CC"; then
  2357. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2358. else
  2359. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2360. for as_dir in $PATH
  2361. do
  2362. IFS=$as_save_IFS
  2363. test -z "$as_dir" && as_dir=.
  2364. for ac_exec_ext in '' $ac_executable_extensions; do
  2365. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2366. ac_cv_prog_ac_ct_CC="gcc"
  2367. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2368. break 2
  2369. fi
  2370. done
  2371. done
  2372. IFS=$as_save_IFS
  2373. fi
  2374. fi
  2375. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2376. if test -n "$ac_ct_CC"; then
  2377. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  2378. $as_echo "$ac_ct_CC" >&6; }
  2379. else
  2380. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2381. $as_echo "no" >&6; }
  2382. fi
  2383. if test "x$ac_ct_CC" = x; then
  2384. CC=""
  2385. else
  2386. case $cross_compiling:$ac_tool_warned in
  2387. yes:)
  2388. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2389. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2390. ac_tool_warned=yes ;;
  2391. esac
  2392. CC=$ac_ct_CC
  2393. fi
  2394. else
  2395. CC="$ac_cv_prog_CC"
  2396. fi
  2397. if test -z "$CC"; then
  2398. if test -n "$ac_tool_prefix"; then
  2399. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  2400. set dummy ${ac_tool_prefix}cc; ac_word=$2
  2401. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2402. $as_echo_n "checking for $ac_word... " >&6; }
  2403. if ${ac_cv_prog_CC+:} false; then :
  2404. $as_echo_n "(cached) " >&6
  2405. else
  2406. if test -n "$CC"; then
  2407. ac_cv_prog_CC="$CC" # Let the user override the test.
  2408. else
  2409. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2410. for as_dir in $PATH
  2411. do
  2412. IFS=$as_save_IFS
  2413. test -z "$as_dir" && as_dir=.
  2414. for ac_exec_ext in '' $ac_executable_extensions; do
  2415. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2416. ac_cv_prog_CC="${ac_tool_prefix}cc"
  2417. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2418. break 2
  2419. fi
  2420. done
  2421. done
  2422. IFS=$as_save_IFS
  2423. fi
  2424. fi
  2425. CC=$ac_cv_prog_CC
  2426. if test -n "$CC"; then
  2427. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2428. $as_echo "$CC" >&6; }
  2429. else
  2430. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2431. $as_echo "no" >&6; }
  2432. fi
  2433. fi
  2434. fi
  2435. if test -z "$CC"; then
  2436. # Extract the first word of "cc", so it can be a program name with args.
  2437. set dummy cc; ac_word=$2
  2438. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2439. $as_echo_n "checking for $ac_word... " >&6; }
  2440. if ${ac_cv_prog_CC+:} false; then :
  2441. $as_echo_n "(cached) " >&6
  2442. else
  2443. if test -n "$CC"; then
  2444. ac_cv_prog_CC="$CC" # Let the user override the test.
  2445. else
  2446. ac_prog_rejected=no
  2447. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2448. for as_dir in $PATH
  2449. do
  2450. IFS=$as_save_IFS
  2451. test -z "$as_dir" && as_dir=.
  2452. for ac_exec_ext in '' $ac_executable_extensions; do
  2453. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2454. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  2455. ac_prog_rejected=yes
  2456. continue
  2457. fi
  2458. ac_cv_prog_CC="cc"
  2459. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2460. break 2
  2461. fi
  2462. done
  2463. done
  2464. IFS=$as_save_IFS
  2465. if test $ac_prog_rejected = yes; then
  2466. # We found a bogon in the path, so make sure we never use it.
  2467. set dummy $ac_cv_prog_CC
  2468. shift
  2469. if test $# != 0; then
  2470. # We chose a different compiler from the bogus one.
  2471. # However, it has the same basename, so the bogon will be chosen
  2472. # first if we set CC to just the basename; use the full file name.
  2473. shift
  2474. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  2475. fi
  2476. fi
  2477. fi
  2478. fi
  2479. CC=$ac_cv_prog_CC
  2480. if test -n "$CC"; then
  2481. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2482. $as_echo "$CC" >&6; }
  2483. else
  2484. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2485. $as_echo "no" >&6; }
  2486. fi
  2487. fi
  2488. if test -z "$CC"; then
  2489. if test -n "$ac_tool_prefix"; then
  2490. for ac_prog in cl.exe
  2491. do
  2492. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  2493. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  2494. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2495. $as_echo_n "checking for $ac_word... " >&6; }
  2496. if ${ac_cv_prog_CC+:} false; then :
  2497. $as_echo_n "(cached) " >&6
  2498. else
  2499. if test -n "$CC"; then
  2500. ac_cv_prog_CC="$CC" # Let the user override the test.
  2501. else
  2502. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2503. for as_dir in $PATH
  2504. do
  2505. IFS=$as_save_IFS
  2506. test -z "$as_dir" && as_dir=.
  2507. for ac_exec_ext in '' $ac_executable_extensions; do
  2508. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2509. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  2510. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2511. break 2
  2512. fi
  2513. done
  2514. done
  2515. IFS=$as_save_IFS
  2516. fi
  2517. fi
  2518. CC=$ac_cv_prog_CC
  2519. if test -n "$CC"; then
  2520. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2521. $as_echo "$CC" >&6; }
  2522. else
  2523. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2524. $as_echo "no" >&6; }
  2525. fi
  2526. test -n "$CC" && break
  2527. done
  2528. fi
  2529. if test -z "$CC"; then
  2530. ac_ct_CC=$CC
  2531. for ac_prog in cl.exe
  2532. do
  2533. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2534. set dummy $ac_prog; ac_word=$2
  2535. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2536. $as_echo_n "checking for $ac_word... " >&6; }
  2537. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  2538. $as_echo_n "(cached) " >&6
  2539. else
  2540. if test -n "$ac_ct_CC"; then
  2541. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2542. else
  2543. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2544. for as_dir in $PATH
  2545. do
  2546. IFS=$as_save_IFS
  2547. test -z "$as_dir" && as_dir=.
  2548. for ac_exec_ext in '' $ac_executable_extensions; do
  2549. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2550. ac_cv_prog_ac_ct_CC="$ac_prog"
  2551. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2552. break 2
  2553. fi
  2554. done
  2555. done
  2556. IFS=$as_save_IFS
  2557. fi
  2558. fi
  2559. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2560. if test -n "$ac_ct_CC"; then
  2561. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  2562. $as_echo "$ac_ct_CC" >&6; }
  2563. else
  2564. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2565. $as_echo "no" >&6; }
  2566. fi
  2567. test -n "$ac_ct_CC" && break
  2568. done
  2569. if test "x$ac_ct_CC" = x; then
  2570. CC=""
  2571. else
  2572. case $cross_compiling:$ac_tool_warned in
  2573. yes:)
  2574. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2575. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2576. ac_tool_warned=yes ;;
  2577. esac
  2578. CC=$ac_ct_CC
  2579. fi
  2580. fi
  2581. fi
  2582. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2583. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2584. as_fn_error $? "no acceptable C compiler found in \$PATH
  2585. See \`config.log' for more details" "$LINENO" 5; }
  2586. # Provide some information about the compiler.
  2587. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  2588. set X $ac_compile
  2589. ac_compiler=$2
  2590. for ac_option in --version -v -V -qversion; do
  2591. { { ac_try="$ac_compiler $ac_option >&5"
  2592. case "(($ac_try" in
  2593. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2594. *) ac_try_echo=$ac_try;;
  2595. esac
  2596. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2597. $as_echo "$ac_try_echo"; } >&5
  2598. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  2599. ac_status=$?
  2600. if test -s conftest.err; then
  2601. sed '10a\
  2602. ... rest of stderr output deleted ...
  2603. 10q' conftest.err >conftest.er1
  2604. cat conftest.er1 >&5
  2605. fi
  2606. rm -f conftest.er1 conftest.err
  2607. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2608. test $ac_status = 0; }
  2609. done
  2610. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2611. /* end confdefs.h. */
  2612. int
  2613. main ()
  2614. {
  2615. ;
  2616. return 0;
  2617. }
  2618. _ACEOF
  2619. ac_clean_files_save=$ac_clean_files
  2620. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  2621. # Try to create an executable without -o first, disregard a.out.
  2622. # It will help us diagnose broken compilers, and finding out an intuition
  2623. # of exeext.
  2624. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
  2625. $as_echo_n "checking whether the C compiler works... " >&6; }
  2626. ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  2627. # The possible output files:
  2628. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  2629. ac_rmfiles=
  2630. for ac_file in $ac_files
  2631. do
  2632. case $ac_file in
  2633. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  2634. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  2635. esac
  2636. done
  2637. rm -f $ac_rmfiles
  2638. if { { ac_try="$ac_link_default"
  2639. case "(($ac_try" in
  2640. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2641. *) ac_try_echo=$ac_try;;
  2642. esac
  2643. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2644. $as_echo "$ac_try_echo"; } >&5
  2645. (eval "$ac_link_default") 2>&5
  2646. ac_status=$?
  2647. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2648. test $ac_status = 0; }; then :
  2649. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  2650. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  2651. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  2652. # so that the user can short-circuit this test for compilers unknown to
  2653. # Autoconf.
  2654. for ac_file in $ac_files ''
  2655. do
  2656. test -f "$ac_file" || continue
  2657. case $ac_file in
  2658. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  2659. ;;
  2660. [ab].out )
  2661. # We found the default executable, but exeext='' is most
  2662. # certainly right.
  2663. break;;
  2664. *.* )
  2665. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  2666. then :; else
  2667. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2668. fi
  2669. # We set ac_cv_exeext here because the later test for it is not
  2670. # safe: cross compilers may not add the suffix if given an `-o'
  2671. # argument, so we may need to know it at that point already.
  2672. # Even if this section looks crufty: it has the advantage of
  2673. # actually working.
  2674. break;;
  2675. * )
  2676. break;;
  2677. esac
  2678. done
  2679. test "$ac_cv_exeext" = no && ac_cv_exeext=
  2680. else
  2681. ac_file=''
  2682. fi
  2683. if test -z "$ac_file"; then :
  2684. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2685. $as_echo "no" >&6; }
  2686. $as_echo "$as_me: failed program was:" >&5
  2687. sed 's/^/| /' conftest.$ac_ext >&5
  2688. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2689. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2690. as_fn_error 77 "C compiler cannot create executables
  2691. See \`config.log' for more details" "$LINENO" 5; }
  2692. else
  2693. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2694. $as_echo "yes" >&6; }
  2695. fi
  2696. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
  2697. $as_echo_n "checking for C compiler default output file name... " >&6; }
  2698. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  2699. $as_echo "$ac_file" >&6; }
  2700. ac_exeext=$ac_cv_exeext
  2701. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  2702. ac_clean_files=$ac_clean_files_save
  2703. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  2704. $as_echo_n "checking for suffix of executables... " >&6; }
  2705. if { { ac_try="$ac_link"
  2706. case "(($ac_try" in
  2707. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2708. *) ac_try_echo=$ac_try;;
  2709. esac
  2710. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2711. $as_echo "$ac_try_echo"; } >&5
  2712. (eval "$ac_link") 2>&5
  2713. ac_status=$?
  2714. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2715. test $ac_status = 0; }; then :
  2716. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  2717. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  2718. # work properly (i.e., refer to `conftest.exe'), while it won't with
  2719. # `rm'.
  2720. for ac_file in conftest.exe conftest conftest.*; do
  2721. test -f "$ac_file" || continue
  2722. case $ac_file in
  2723. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  2724. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2725. break;;
  2726. * ) break;;
  2727. esac
  2728. done
  2729. else
  2730. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2731. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2732. as_fn_error $? "cannot compute suffix of executables: cannot compile and link
  2733. See \`config.log' for more details" "$LINENO" 5; }
  2734. fi
  2735. rm -f conftest conftest$ac_cv_exeext
  2736. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  2737. $as_echo "$ac_cv_exeext" >&6; }
  2738. rm -f conftest.$ac_ext
  2739. EXEEXT=$ac_cv_exeext
  2740. ac_exeext=$EXEEXT
  2741. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2742. /* end confdefs.h. */
  2743. #include <stdio.h>
  2744. int
  2745. main ()
  2746. {
  2747. FILE *f = fopen ("conftest.out", "w");
  2748. return ferror (f) || fclose (f) != 0;
  2749. ;
  2750. return 0;
  2751. }
  2752. _ACEOF
  2753. ac_clean_files="$ac_clean_files conftest.out"
  2754. # Check that the compiler produces executables we can run. If not, either
  2755. # the compiler is broken, or we cross compile.
  2756. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  2757. $as_echo_n "checking whether we are cross compiling... " >&6; }
  2758. if test "$cross_compiling" != yes; then
  2759. { { ac_try="$ac_link"
  2760. case "(($ac_try" in
  2761. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2762. *) ac_try_echo=$ac_try;;
  2763. esac
  2764. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2765. $as_echo "$ac_try_echo"; } >&5
  2766. (eval "$ac_link") 2>&5
  2767. ac_status=$?
  2768. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2769. test $ac_status = 0; }
  2770. if { ac_try='./conftest$ac_cv_exeext'
  2771. { { case "(($ac_try" in
  2772. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2773. *) ac_try_echo=$ac_try;;
  2774. esac
  2775. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2776. $as_echo "$ac_try_echo"; } >&5
  2777. (eval "$ac_try") 2>&5
  2778. ac_status=$?
  2779. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2780. test $ac_status = 0; }; }; then
  2781. cross_compiling=no
  2782. else
  2783. if test "$cross_compiling" = maybe; then
  2784. cross_compiling=yes
  2785. else
  2786. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2787. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2788. as_fn_error $? "cannot run C compiled programs.
  2789. If you meant to cross compile, use \`--host'.
  2790. See \`config.log' for more details" "$LINENO" 5; }
  2791. fi
  2792. fi
  2793. fi
  2794. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  2795. $as_echo "$cross_compiling" >&6; }
  2796. rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
  2797. ac_clean_files=$ac_clean_files_save
  2798. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  2799. $as_echo_n "checking for suffix of object files... " >&6; }
  2800. if ${ac_cv_objext+:} false; then :
  2801. $as_echo_n "(cached) " >&6
  2802. else
  2803. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2804. /* end confdefs.h. */
  2805. int
  2806. main ()
  2807. {
  2808. ;
  2809. return 0;
  2810. }
  2811. _ACEOF
  2812. rm -f conftest.o conftest.obj
  2813. if { { ac_try="$ac_compile"
  2814. case "(($ac_try" in
  2815. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2816. *) ac_try_echo=$ac_try;;
  2817. esac
  2818. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2819. $as_echo "$ac_try_echo"; } >&5
  2820. (eval "$ac_compile") 2>&5
  2821. ac_status=$?
  2822. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2823. test $ac_status = 0; }; then :
  2824. for ac_file in conftest.o conftest.obj conftest.*; do
  2825. test -f "$ac_file" || continue;
  2826. case $ac_file in
  2827. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  2828. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  2829. break;;
  2830. esac
  2831. done
  2832. else
  2833. $as_echo "$as_me: failed program was:" >&5
  2834. sed 's/^/| /' conftest.$ac_ext >&5
  2835. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2836. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2837. as_fn_error $? "cannot compute suffix of object files: cannot compile
  2838. See \`config.log' for more details" "$LINENO" 5; }
  2839. fi
  2840. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  2841. fi
  2842. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  2843. $as_echo "$ac_cv_objext" >&6; }
  2844. OBJEXT=$ac_cv_objext
  2845. ac_objext=$OBJEXT
  2846. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  2847. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  2848. if ${ac_cv_c_compiler_gnu+:} false; then :
  2849. $as_echo_n "(cached) " >&6
  2850. else
  2851. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2852. /* end confdefs.h. */
  2853. int
  2854. main ()
  2855. {
  2856. #ifndef __GNUC__
  2857. choke me
  2858. #endif
  2859. ;
  2860. return 0;
  2861. }
  2862. _ACEOF
  2863. if ac_fn_c_try_compile "$LINENO"; then :
  2864. ac_compiler_gnu=yes
  2865. else
  2866. ac_compiler_gnu=no
  2867. fi
  2868. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2869. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  2870. fi
  2871. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  2872. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  2873. if test $ac_compiler_gnu = yes; then
  2874. GCC=yes
  2875. else
  2876. GCC=
  2877. fi
  2878. ac_test_CFLAGS=${CFLAGS+set}
  2879. ac_save_CFLAGS=$CFLAGS
  2880. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  2881. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  2882. if ${ac_cv_prog_cc_g+:} false; then :
  2883. $as_echo_n "(cached) " >&6
  2884. else
  2885. ac_save_c_werror_flag=$ac_c_werror_flag
  2886. ac_c_werror_flag=yes
  2887. ac_cv_prog_cc_g=no
  2888. CFLAGS="-g"
  2889. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2890. /* end confdefs.h. */
  2891. int
  2892. main ()
  2893. {
  2894. ;
  2895. return 0;
  2896. }
  2897. _ACEOF
  2898. if ac_fn_c_try_compile "$LINENO"; then :
  2899. ac_cv_prog_cc_g=yes
  2900. else
  2901. CFLAGS=""
  2902. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2903. /* end confdefs.h. */
  2904. int
  2905. main ()
  2906. {
  2907. ;
  2908. return 0;
  2909. }
  2910. _ACEOF
  2911. if ac_fn_c_try_compile "$LINENO"; then :
  2912. else
  2913. ac_c_werror_flag=$ac_save_c_werror_flag
  2914. CFLAGS="-g"
  2915. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2916. /* end confdefs.h. */
  2917. int
  2918. main ()
  2919. {
  2920. ;
  2921. return 0;
  2922. }
  2923. _ACEOF
  2924. if ac_fn_c_try_compile "$LINENO"; then :
  2925. ac_cv_prog_cc_g=yes
  2926. fi
  2927. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2928. fi
  2929. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2930. fi
  2931. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2932. ac_c_werror_flag=$ac_save_c_werror_flag
  2933. fi
  2934. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  2935. $as_echo "$ac_cv_prog_cc_g" >&6; }
  2936. if test "$ac_test_CFLAGS" = set; then
  2937. CFLAGS=$ac_save_CFLAGS
  2938. elif test $ac_cv_prog_cc_g = yes; then
  2939. if test "$GCC" = yes; then
  2940. CFLAGS="-g -O2"
  2941. else
  2942. CFLAGS="-g"
  2943. fi
  2944. else
  2945. if test "$GCC" = yes; then
  2946. CFLAGS="-O2"
  2947. else
  2948. CFLAGS=
  2949. fi
  2950. fi
  2951. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  2952. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  2953. if ${ac_cv_prog_cc_c89+:} false; then :
  2954. $as_echo_n "(cached) " >&6
  2955. else
  2956. ac_cv_prog_cc_c89=no
  2957. ac_save_CC=$CC
  2958. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2959. /* end confdefs.h. */
  2960. #include <stdarg.h>
  2961. #include <stdio.h>
  2962. #include <sys/types.h>
  2963. #include <sys/stat.h>
  2964. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  2965. struct buf { int x; };
  2966. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  2967. static char *e (p, i)
  2968. char **p;
  2969. int i;
  2970. {
  2971. return p[i];
  2972. }
  2973. static char *f (char * (*g) (char **, int), char **p, ...)
  2974. {
  2975. char *s;
  2976. va_list v;
  2977. va_start (v,p);
  2978. s = g (p, va_arg (v,int));
  2979. va_end (v);
  2980. return s;
  2981. }
  2982. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  2983. function prototypes and stuff, but not '\xHH' hex character constants.
  2984. These don't provoke an error unfortunately, instead are silently treated
  2985. as 'x'. The following induces an error, until -std is added to get
  2986. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  2987. array size at least. It's necessary to write '\x00'==0 to get something
  2988. that's true only with -std. */
  2989. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  2990. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  2991. inside strings and character constants. */
  2992. #define FOO(x) 'x'
  2993. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  2994. int test (int i, double x);
  2995. struct s1 {int (*f) (int a);};
  2996. struct s2 {int (*f) (double a);};
  2997. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  2998. int argc;
  2999. char **argv;
  3000. int
  3001. main ()
  3002. {
  3003. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  3004. ;
  3005. return 0;
  3006. }
  3007. _ACEOF
  3008. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  3009. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  3010. do
  3011. CC="$ac_save_CC $ac_arg"
  3012. if ac_fn_c_try_compile "$LINENO"; then :
  3013. ac_cv_prog_cc_c89=$ac_arg
  3014. fi
  3015. rm -f core conftest.err conftest.$ac_objext
  3016. test "x$ac_cv_prog_cc_c89" != "xno" && break
  3017. done
  3018. rm -f conftest.$ac_ext
  3019. CC=$ac_save_CC
  3020. fi
  3021. # AC_CACHE_VAL
  3022. case "x$ac_cv_prog_cc_c89" in
  3023. x)
  3024. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  3025. $as_echo "none needed" >&6; } ;;
  3026. xno)
  3027. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  3028. $as_echo "unsupported" >&6; } ;;
  3029. *)
  3030. CC="$CC $ac_cv_prog_cc_c89"
  3031. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  3032. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  3033. esac
  3034. if test "x$ac_cv_prog_cc_c89" != xno; then :
  3035. fi
  3036. ac_ext=c
  3037. ac_cpp='$CPP $CPPFLAGS'
  3038. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3039. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3040. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3041. ac_ext=c
  3042. ac_cpp='$CPP $CPPFLAGS'
  3043. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3044. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3045. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3046. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
  3047. $as_echo_n "checking how to run the C preprocessor... " >&6; }
  3048. # On Suns, sometimes $CPP names a directory.
  3049. if test -n "$CPP" && test -d "$CPP"; then
  3050. CPP=
  3051. fi
  3052. if test -z "$CPP"; then
  3053. if ${ac_cv_prog_CPP+:} false; then :
  3054. $as_echo_n "(cached) " >&6
  3055. else
  3056. # Double quotes because CPP needs to be expanded
  3057. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  3058. do
  3059. ac_preproc_ok=false
  3060. for ac_c_preproc_warn_flag in '' yes
  3061. do
  3062. # Use a header file that comes with gcc, so configuring glibc
  3063. # with a fresh cross-compiler works.
  3064. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  3065. # <limits.h> exists even on freestanding compilers.
  3066. # On the NeXT, cc -E runs the code through the compiler's parser,
  3067. # not just through cpp. "Syntax error" is here to catch this case.
  3068. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3069. /* end confdefs.h. */
  3070. #ifdef __STDC__
  3071. # include <limits.h>
  3072. #else
  3073. # include <assert.h>
  3074. #endif
  3075. Syntax error
  3076. _ACEOF
  3077. if ac_fn_c_try_cpp "$LINENO"; then :
  3078. else
  3079. # Broken: fails on valid input.
  3080. continue
  3081. fi
  3082. rm -f conftest.err conftest.i conftest.$ac_ext
  3083. # OK, works on sane cases. Now check whether nonexistent headers
  3084. # can be detected and how.
  3085. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3086. /* end confdefs.h. */
  3087. #include <ac_nonexistent.h>
  3088. _ACEOF
  3089. if ac_fn_c_try_cpp "$LINENO"; then :
  3090. # Broken: success on invalid input.
  3091. continue
  3092. else
  3093. # Passes both tests.
  3094. ac_preproc_ok=:
  3095. break
  3096. fi
  3097. rm -f conftest.err conftest.i conftest.$ac_ext
  3098. done
  3099. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  3100. rm -f conftest.i conftest.err conftest.$ac_ext
  3101. if $ac_preproc_ok; then :
  3102. break
  3103. fi
  3104. done
  3105. ac_cv_prog_CPP=$CPP
  3106. fi
  3107. CPP=$ac_cv_prog_CPP
  3108. else
  3109. ac_cv_prog_CPP=$CPP
  3110. fi
  3111. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
  3112. $as_echo "$CPP" >&6; }
  3113. ac_preproc_ok=false
  3114. for ac_c_preproc_warn_flag in '' yes
  3115. do
  3116. # Use a header file that comes with gcc, so configuring glibc
  3117. # with a fresh cross-compiler works.
  3118. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  3119. # <limits.h> exists even on freestanding compilers.
  3120. # On the NeXT, cc -E runs the code through the compiler's parser,
  3121. # not just through cpp. "Syntax error" is here to catch this case.
  3122. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3123. /* end confdefs.h. */
  3124. #ifdef __STDC__
  3125. # include <limits.h>
  3126. #else
  3127. # include <assert.h>
  3128. #endif
  3129. Syntax error
  3130. _ACEOF
  3131. if ac_fn_c_try_cpp "$LINENO"; then :
  3132. else
  3133. # Broken: fails on valid input.
  3134. continue
  3135. fi
  3136. rm -f conftest.err conftest.i conftest.$ac_ext
  3137. # OK, works on sane cases. Now check whether nonexistent headers
  3138. # can be detected and how.
  3139. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3140. /* end confdefs.h. */
  3141. #include <ac_nonexistent.h>
  3142. _ACEOF
  3143. if ac_fn_c_try_cpp "$LINENO"; then :
  3144. # Broken: success on invalid input.
  3145. continue
  3146. else
  3147. # Passes both tests.
  3148. ac_preproc_ok=:
  3149. break
  3150. fi
  3151. rm -f conftest.err conftest.i conftest.$ac_ext
  3152. done
  3153. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  3154. rm -f conftest.i conftest.err conftest.$ac_ext
  3155. if $ac_preproc_ok; then :
  3156. else
  3157. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3158. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3159. as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
  3160. See \`config.log' for more details" "$LINENO" 5; }
  3161. fi
  3162. ac_ext=c
  3163. ac_cpp='$CPP $CPPFLAGS'
  3164. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3165. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3166. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3167. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
  3168. $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
  3169. if ${ac_cv_path_GREP+:} false; then :
  3170. $as_echo_n "(cached) " >&6
  3171. else
  3172. if test -z "$GREP"; then
  3173. ac_path_GREP_found=false
  3174. # Loop through the user's path and test for each of PROGNAME-LIST
  3175. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3176. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3177. do
  3178. IFS=$as_save_IFS
  3179. test -z "$as_dir" && as_dir=.
  3180. for ac_prog in grep ggrep; do
  3181. for ac_exec_ext in '' $ac_executable_extensions; do
  3182. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  3183. { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
  3184. # Check for GNU ac_path_GREP and select it if it is found.
  3185. # Check for GNU $ac_path_GREP
  3186. case `"$ac_path_GREP" --version 2>&1` in
  3187. *GNU*)
  3188. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  3189. *)
  3190. ac_count=0
  3191. $as_echo_n 0123456789 >"conftest.in"
  3192. while :
  3193. do
  3194. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3195. mv "conftest.tmp" "conftest.in"
  3196. cp "conftest.in" "conftest.nl"
  3197. $as_echo 'GREP' >> "conftest.nl"
  3198. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3199. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3200. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3201. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  3202. # Best one so far, save it but keep looking for a better one
  3203. ac_cv_path_GREP="$ac_path_GREP"
  3204. ac_path_GREP_max=$ac_count
  3205. fi
  3206. # 10*(2^10) chars as input seems more than enough
  3207. test $ac_count -gt 10 && break
  3208. done
  3209. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3210. esac
  3211. $ac_path_GREP_found && break 3
  3212. done
  3213. done
  3214. done
  3215. IFS=$as_save_IFS
  3216. if test -z "$ac_cv_path_GREP"; then
  3217. as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  3218. fi
  3219. else
  3220. ac_cv_path_GREP=$GREP
  3221. fi
  3222. fi
  3223. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
  3224. $as_echo "$ac_cv_path_GREP" >&6; }
  3225. GREP="$ac_cv_path_GREP"
  3226. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  3227. $as_echo_n "checking for egrep... " >&6; }
  3228. if ${ac_cv_path_EGREP+:} false; then :
  3229. $as_echo_n "(cached) " >&6
  3230. else
  3231. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  3232. then ac_cv_path_EGREP="$GREP -E"
  3233. else
  3234. if test -z "$EGREP"; then
  3235. ac_path_EGREP_found=false
  3236. # Loop through the user's path and test for each of PROGNAME-LIST
  3237. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3238. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3239. do
  3240. IFS=$as_save_IFS
  3241. test -z "$as_dir" && as_dir=.
  3242. for ac_prog in egrep; do
  3243. for ac_exec_ext in '' $ac_executable_extensions; do
  3244. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  3245. { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
  3246. # Check for GNU ac_path_EGREP and select it if it is found.
  3247. # Check for GNU $ac_path_EGREP
  3248. case `"$ac_path_EGREP" --version 2>&1` in
  3249. *GNU*)
  3250. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  3251. *)
  3252. ac_count=0
  3253. $as_echo_n 0123456789 >"conftest.in"
  3254. while :
  3255. do
  3256. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3257. mv "conftest.tmp" "conftest.in"
  3258. cp "conftest.in" "conftest.nl"
  3259. $as_echo 'EGREP' >> "conftest.nl"
  3260. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3261. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3262. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3263. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  3264. # Best one so far, save it but keep looking for a better one
  3265. ac_cv_path_EGREP="$ac_path_EGREP"
  3266. ac_path_EGREP_max=$ac_count
  3267. fi
  3268. # 10*(2^10) chars as input seems more than enough
  3269. test $ac_count -gt 10 && break
  3270. done
  3271. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3272. esac
  3273. $ac_path_EGREP_found && break 3
  3274. done
  3275. done
  3276. done
  3277. IFS=$as_save_IFS
  3278. if test -z "$ac_cv_path_EGREP"; then
  3279. as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  3280. fi
  3281. else
  3282. ac_cv_path_EGREP=$EGREP
  3283. fi
  3284. fi
  3285. fi
  3286. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  3287. $as_echo "$ac_cv_path_EGREP" >&6; }
  3288. EGREP="$ac_cv_path_EGREP"
  3289. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  3290. $as_echo_n "checking for ANSI C header files... " >&6; }
  3291. if ${ac_cv_header_stdc+:} false; then :
  3292. $as_echo_n "(cached) " >&6
  3293. else
  3294. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3295. /* end confdefs.h. */
  3296. #include <stdlib.h>
  3297. #include <stdarg.h>
  3298. #include <string.h>
  3299. #include <float.h>
  3300. int
  3301. main ()
  3302. {
  3303. ;
  3304. return 0;
  3305. }
  3306. _ACEOF
  3307. if ac_fn_c_try_compile "$LINENO"; then :
  3308. ac_cv_header_stdc=yes
  3309. else
  3310. ac_cv_header_stdc=no
  3311. fi
  3312. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3313. if test $ac_cv_header_stdc = yes; then
  3314. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  3315. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3316. /* end confdefs.h. */
  3317. #include <string.h>
  3318. _ACEOF
  3319. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  3320. $EGREP "memchr" >/dev/null 2>&1; then :
  3321. else
  3322. ac_cv_header_stdc=no
  3323. fi
  3324. rm -f conftest*
  3325. fi
  3326. if test $ac_cv_header_stdc = yes; then
  3327. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  3328. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3329. /* end confdefs.h. */
  3330. #include <stdlib.h>
  3331. _ACEOF
  3332. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  3333. $EGREP "free" >/dev/null 2>&1; then :
  3334. else
  3335. ac_cv_header_stdc=no
  3336. fi
  3337. rm -f conftest*
  3338. fi
  3339. if test $ac_cv_header_stdc = yes; then
  3340. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  3341. if test "$cross_compiling" = yes; then :
  3342. :
  3343. else
  3344. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3345. /* end confdefs.h. */
  3346. #include <ctype.h>
  3347. #include <stdlib.h>
  3348. #if ((' ' & 0x0FF) == 0x020)
  3349. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  3350. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  3351. #else
  3352. # define ISLOWER(c) \
  3353. (('a' <= (c) && (c) <= 'i') \
  3354. || ('j' <= (c) && (c) <= 'r') \
  3355. || ('s' <= (c) && (c) <= 'z'))
  3356. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  3357. #endif
  3358. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  3359. int
  3360. main ()
  3361. {
  3362. int i;
  3363. for (i = 0; i < 256; i++)
  3364. if (XOR (islower (i), ISLOWER (i))
  3365. || toupper (i) != TOUPPER (i))
  3366. return 2;
  3367. return 0;
  3368. }
  3369. _ACEOF
  3370. if ac_fn_c_try_run "$LINENO"; then :
  3371. else
  3372. ac_cv_header_stdc=no
  3373. fi
  3374. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  3375. conftest.$ac_objext conftest.beam conftest.$ac_ext
  3376. fi
  3377. fi
  3378. fi
  3379. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  3380. $as_echo "$ac_cv_header_stdc" >&6; }
  3381. if test $ac_cv_header_stdc = yes; then
  3382. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  3383. fi
  3384. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  3385. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  3386. inttypes.h stdint.h unistd.h
  3387. do :
  3388. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  3389. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  3390. "
  3391. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  3392. cat >>confdefs.h <<_ACEOF
  3393. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  3394. _ACEOF
  3395. fi
  3396. done
  3397. ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
  3398. if test "x$ac_cv_header_minix_config_h" = xyes; then :
  3399. MINIX=yes
  3400. else
  3401. MINIX=
  3402. fi
  3403. if test "$MINIX" = yes; then
  3404. $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
  3405. $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
  3406. $as_echo "#define _MINIX 1" >>confdefs.h
  3407. fi
  3408. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
  3409. $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
  3410. if ${ac_cv_safe_to_define___extensions__+:} false; then :
  3411. $as_echo_n "(cached) " >&6
  3412. else
  3413. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3414. /* end confdefs.h. */
  3415. # define __EXTENSIONS__ 1
  3416. $ac_includes_default
  3417. int
  3418. main ()
  3419. {
  3420. ;
  3421. return 0;
  3422. }
  3423. _ACEOF
  3424. if ac_fn_c_try_compile "$LINENO"; then :
  3425. ac_cv_safe_to_define___extensions__=yes
  3426. else
  3427. ac_cv_safe_to_define___extensions__=no
  3428. fi
  3429. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3430. fi
  3431. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
  3432. $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
  3433. test $ac_cv_safe_to_define___extensions__ = yes &&
  3434. $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
  3435. $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
  3436. $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
  3437. $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
  3438. $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
  3439. # Checks for programs.
  3440. ac_ext=c
  3441. ac_cpp='$CPP $CPPFLAGS'
  3442. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3443. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3444. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3445. if test -n "$ac_tool_prefix"; then
  3446. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  3447. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  3448. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3449. $as_echo_n "checking for $ac_word... " >&6; }
  3450. if ${ac_cv_prog_CC+:} false; then :
  3451. $as_echo_n "(cached) " >&6
  3452. else
  3453. if test -n "$CC"; then
  3454. ac_cv_prog_CC="$CC" # Let the user override the test.
  3455. else
  3456. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3457. for as_dir in $PATH
  3458. do
  3459. IFS=$as_save_IFS
  3460. test -z "$as_dir" && as_dir=.
  3461. for ac_exec_ext in '' $ac_executable_extensions; do
  3462. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3463. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  3464. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3465. break 2
  3466. fi
  3467. done
  3468. done
  3469. IFS=$as_save_IFS
  3470. fi
  3471. fi
  3472. CC=$ac_cv_prog_CC
  3473. if test -n "$CC"; then
  3474. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3475. $as_echo "$CC" >&6; }
  3476. else
  3477. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3478. $as_echo "no" >&6; }
  3479. fi
  3480. fi
  3481. if test -z "$ac_cv_prog_CC"; then
  3482. ac_ct_CC=$CC
  3483. # Extract the first word of "gcc", so it can be a program name with args.
  3484. set dummy gcc; ac_word=$2
  3485. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3486. $as_echo_n "checking for $ac_word... " >&6; }
  3487. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  3488. $as_echo_n "(cached) " >&6
  3489. else
  3490. if test -n "$ac_ct_CC"; then
  3491. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3492. else
  3493. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3494. for as_dir in $PATH
  3495. do
  3496. IFS=$as_save_IFS
  3497. test -z "$as_dir" && as_dir=.
  3498. for ac_exec_ext in '' $ac_executable_extensions; do
  3499. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3500. ac_cv_prog_ac_ct_CC="gcc"
  3501. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3502. break 2
  3503. fi
  3504. done
  3505. done
  3506. IFS=$as_save_IFS
  3507. fi
  3508. fi
  3509. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3510. if test -n "$ac_ct_CC"; then
  3511. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  3512. $as_echo "$ac_ct_CC" >&6; }
  3513. else
  3514. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3515. $as_echo "no" >&6; }
  3516. fi
  3517. if test "x$ac_ct_CC" = x; then
  3518. CC=""
  3519. else
  3520. case $cross_compiling:$ac_tool_warned in
  3521. yes:)
  3522. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3523. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3524. ac_tool_warned=yes ;;
  3525. esac
  3526. CC=$ac_ct_CC
  3527. fi
  3528. else
  3529. CC="$ac_cv_prog_CC"
  3530. fi
  3531. if test -z "$CC"; then
  3532. if test -n "$ac_tool_prefix"; then
  3533. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  3534. set dummy ${ac_tool_prefix}cc; ac_word=$2
  3535. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3536. $as_echo_n "checking for $ac_word... " >&6; }
  3537. if ${ac_cv_prog_CC+:} false; then :
  3538. $as_echo_n "(cached) " >&6
  3539. else
  3540. if test -n "$CC"; then
  3541. ac_cv_prog_CC="$CC" # Let the user override the test.
  3542. else
  3543. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3544. for as_dir in $PATH
  3545. do
  3546. IFS=$as_save_IFS
  3547. test -z "$as_dir" && as_dir=.
  3548. for ac_exec_ext in '' $ac_executable_extensions; do
  3549. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3550. ac_cv_prog_CC="${ac_tool_prefix}cc"
  3551. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3552. break 2
  3553. fi
  3554. done
  3555. done
  3556. IFS=$as_save_IFS
  3557. fi
  3558. fi
  3559. CC=$ac_cv_prog_CC
  3560. if test -n "$CC"; then
  3561. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3562. $as_echo "$CC" >&6; }
  3563. else
  3564. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3565. $as_echo "no" >&6; }
  3566. fi
  3567. fi
  3568. fi
  3569. if test -z "$CC"; then
  3570. # Extract the first word of "cc", so it can be a program name with args.
  3571. set dummy cc; ac_word=$2
  3572. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3573. $as_echo_n "checking for $ac_word... " >&6; }
  3574. if ${ac_cv_prog_CC+:} false; then :
  3575. $as_echo_n "(cached) " >&6
  3576. else
  3577. if test -n "$CC"; then
  3578. ac_cv_prog_CC="$CC" # Let the user override the test.
  3579. else
  3580. ac_prog_rejected=no
  3581. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3582. for as_dir in $PATH
  3583. do
  3584. IFS=$as_save_IFS
  3585. test -z "$as_dir" && as_dir=.
  3586. for ac_exec_ext in '' $ac_executable_extensions; do
  3587. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3588. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  3589. ac_prog_rejected=yes
  3590. continue
  3591. fi
  3592. ac_cv_prog_CC="cc"
  3593. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3594. break 2
  3595. fi
  3596. done
  3597. done
  3598. IFS=$as_save_IFS
  3599. if test $ac_prog_rejected = yes; then
  3600. # We found a bogon in the path, so make sure we never use it.
  3601. set dummy $ac_cv_prog_CC
  3602. shift
  3603. if test $# != 0; then
  3604. # We chose a different compiler from the bogus one.
  3605. # However, it has the same basename, so the bogon will be chosen
  3606. # first if we set CC to just the basename; use the full file name.
  3607. shift
  3608. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  3609. fi
  3610. fi
  3611. fi
  3612. fi
  3613. CC=$ac_cv_prog_CC
  3614. if test -n "$CC"; then
  3615. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3616. $as_echo "$CC" >&6; }
  3617. else
  3618. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3619. $as_echo "no" >&6; }
  3620. fi
  3621. fi
  3622. if test -z "$CC"; then
  3623. if test -n "$ac_tool_prefix"; then
  3624. for ac_prog in cl.exe
  3625. do
  3626. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  3627. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  3628. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3629. $as_echo_n "checking for $ac_word... " >&6; }
  3630. if ${ac_cv_prog_CC+:} false; then :
  3631. $as_echo_n "(cached) " >&6
  3632. else
  3633. if test -n "$CC"; then
  3634. ac_cv_prog_CC="$CC" # Let the user override the test.
  3635. else
  3636. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3637. for as_dir in $PATH
  3638. do
  3639. IFS=$as_save_IFS
  3640. test -z "$as_dir" && as_dir=.
  3641. for ac_exec_ext in '' $ac_executable_extensions; do
  3642. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3643. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  3644. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3645. break 2
  3646. fi
  3647. done
  3648. done
  3649. IFS=$as_save_IFS
  3650. fi
  3651. fi
  3652. CC=$ac_cv_prog_CC
  3653. if test -n "$CC"; then
  3654. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3655. $as_echo "$CC" >&6; }
  3656. else
  3657. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3658. $as_echo "no" >&6; }
  3659. fi
  3660. test -n "$CC" && break
  3661. done
  3662. fi
  3663. if test -z "$CC"; then
  3664. ac_ct_CC=$CC
  3665. for ac_prog in cl.exe
  3666. do
  3667. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3668. set dummy $ac_prog; ac_word=$2
  3669. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3670. $as_echo_n "checking for $ac_word... " >&6; }
  3671. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  3672. $as_echo_n "(cached) " >&6
  3673. else
  3674. if test -n "$ac_ct_CC"; then
  3675. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3676. else
  3677. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3678. for as_dir in $PATH
  3679. do
  3680. IFS=$as_save_IFS
  3681. test -z "$as_dir" && as_dir=.
  3682. for ac_exec_ext in '' $ac_executable_extensions; do
  3683. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3684. ac_cv_prog_ac_ct_CC="$ac_prog"
  3685. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3686. break 2
  3687. fi
  3688. done
  3689. done
  3690. IFS=$as_save_IFS
  3691. fi
  3692. fi
  3693. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3694. if test -n "$ac_ct_CC"; then
  3695. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  3696. $as_echo "$ac_ct_CC" >&6; }
  3697. else
  3698. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3699. $as_echo "no" >&6; }
  3700. fi
  3701. test -n "$ac_ct_CC" && break
  3702. done
  3703. if test "x$ac_ct_CC" = x; then
  3704. CC=""
  3705. else
  3706. case $cross_compiling:$ac_tool_warned in
  3707. yes:)
  3708. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3709. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3710. ac_tool_warned=yes ;;
  3711. esac
  3712. CC=$ac_ct_CC
  3713. fi
  3714. fi
  3715. fi
  3716. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3717. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3718. as_fn_error $? "no acceptable C compiler found in \$PATH
  3719. See \`config.log' for more details" "$LINENO" 5; }
  3720. # Provide some information about the compiler.
  3721. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  3722. set X $ac_compile
  3723. ac_compiler=$2
  3724. for ac_option in --version -v -V -qversion; do
  3725. { { ac_try="$ac_compiler $ac_option >&5"
  3726. case "(($ac_try" in
  3727. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3728. *) ac_try_echo=$ac_try;;
  3729. esac
  3730. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3731. $as_echo "$ac_try_echo"; } >&5
  3732. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  3733. ac_status=$?
  3734. if test -s conftest.err; then
  3735. sed '10a\
  3736. ... rest of stderr output deleted ...
  3737. 10q' conftest.err >conftest.er1
  3738. cat conftest.er1 >&5
  3739. fi
  3740. rm -f conftest.er1 conftest.err
  3741. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3742. test $ac_status = 0; }
  3743. done
  3744. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  3745. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  3746. if ${ac_cv_c_compiler_gnu+:} false; then :
  3747. $as_echo_n "(cached) " >&6
  3748. else
  3749. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3750. /* end confdefs.h. */
  3751. int
  3752. main ()
  3753. {
  3754. #ifndef __GNUC__
  3755. choke me
  3756. #endif
  3757. ;
  3758. return 0;
  3759. }
  3760. _ACEOF
  3761. if ac_fn_c_try_compile "$LINENO"; then :
  3762. ac_compiler_gnu=yes
  3763. else
  3764. ac_compiler_gnu=no
  3765. fi
  3766. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3767. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  3768. fi
  3769. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  3770. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  3771. if test $ac_compiler_gnu = yes; then
  3772. GCC=yes
  3773. else
  3774. GCC=
  3775. fi
  3776. ac_test_CFLAGS=${CFLAGS+set}
  3777. ac_save_CFLAGS=$CFLAGS
  3778. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  3779. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  3780. if ${ac_cv_prog_cc_g+:} false; then :
  3781. $as_echo_n "(cached) " >&6
  3782. else
  3783. ac_save_c_werror_flag=$ac_c_werror_flag
  3784. ac_c_werror_flag=yes
  3785. ac_cv_prog_cc_g=no
  3786. CFLAGS="-g"
  3787. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3788. /* end confdefs.h. */
  3789. int
  3790. main ()
  3791. {
  3792. ;
  3793. return 0;
  3794. }
  3795. _ACEOF
  3796. if ac_fn_c_try_compile "$LINENO"; then :
  3797. ac_cv_prog_cc_g=yes
  3798. else
  3799. CFLAGS=""
  3800. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3801. /* end confdefs.h. */
  3802. int
  3803. main ()
  3804. {
  3805. ;
  3806. return 0;
  3807. }
  3808. _ACEOF
  3809. if ac_fn_c_try_compile "$LINENO"; then :
  3810. else
  3811. ac_c_werror_flag=$ac_save_c_werror_flag
  3812. CFLAGS="-g"
  3813. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3814. /* end confdefs.h. */
  3815. int
  3816. main ()
  3817. {
  3818. ;
  3819. return 0;
  3820. }
  3821. _ACEOF
  3822. if ac_fn_c_try_compile "$LINENO"; then :
  3823. ac_cv_prog_cc_g=yes
  3824. fi
  3825. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3826. fi
  3827. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3828. fi
  3829. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3830. ac_c_werror_flag=$ac_save_c_werror_flag
  3831. fi
  3832. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  3833. $as_echo "$ac_cv_prog_cc_g" >&6; }
  3834. if test "$ac_test_CFLAGS" = set; then
  3835. CFLAGS=$ac_save_CFLAGS
  3836. elif test $ac_cv_prog_cc_g = yes; then
  3837. if test "$GCC" = yes; then
  3838. CFLAGS="-g -O2"
  3839. else
  3840. CFLAGS="-g"
  3841. fi
  3842. else
  3843. if test "$GCC" = yes; then
  3844. CFLAGS="-O2"
  3845. else
  3846. CFLAGS=
  3847. fi
  3848. fi
  3849. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  3850. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  3851. if ${ac_cv_prog_cc_c89+:} false; then :
  3852. $as_echo_n "(cached) " >&6
  3853. else
  3854. ac_cv_prog_cc_c89=no
  3855. ac_save_CC=$CC
  3856. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3857. /* end confdefs.h. */
  3858. #include <stdarg.h>
  3859. #include <stdio.h>
  3860. #include <sys/types.h>
  3861. #include <sys/stat.h>
  3862. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  3863. struct buf { int x; };
  3864. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  3865. static char *e (p, i)
  3866. char **p;
  3867. int i;
  3868. {
  3869. return p[i];
  3870. }
  3871. static char *f (char * (*g) (char **, int), char **p, ...)
  3872. {
  3873. char *s;
  3874. va_list v;
  3875. va_start (v,p);
  3876. s = g (p, va_arg (v,int));
  3877. va_end (v);
  3878. return s;
  3879. }
  3880. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  3881. function prototypes and stuff, but not '\xHH' hex character constants.
  3882. These don't provoke an error unfortunately, instead are silently treated
  3883. as 'x'. The following induces an error, until -std is added to get
  3884. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  3885. array size at least. It's necessary to write '\x00'==0 to get something
  3886. that's true only with -std. */
  3887. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  3888. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  3889. inside strings and character constants. */
  3890. #define FOO(x) 'x'
  3891. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  3892. int test (int i, double x);
  3893. struct s1 {int (*f) (int a);};
  3894. struct s2 {int (*f) (double a);};
  3895. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  3896. int argc;
  3897. char **argv;
  3898. int
  3899. main ()
  3900. {
  3901. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  3902. ;
  3903. return 0;
  3904. }
  3905. _ACEOF
  3906. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  3907. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  3908. do
  3909. CC="$ac_save_CC $ac_arg"
  3910. if ac_fn_c_try_compile "$LINENO"; then :
  3911. ac_cv_prog_cc_c89=$ac_arg
  3912. fi
  3913. rm -f core conftest.err conftest.$ac_objext
  3914. test "x$ac_cv_prog_cc_c89" != "xno" && break
  3915. done
  3916. rm -f conftest.$ac_ext
  3917. CC=$ac_save_CC
  3918. fi
  3919. # AC_CACHE_VAL
  3920. case "x$ac_cv_prog_cc_c89" in
  3921. x)
  3922. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  3923. $as_echo "none needed" >&6; } ;;
  3924. xno)
  3925. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  3926. $as_echo "unsupported" >&6; } ;;
  3927. *)
  3928. CC="$CC $ac_cv_prog_cc_c89"
  3929. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  3930. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  3931. esac
  3932. if test "x$ac_cv_prog_cc_c89" != xno; then :
  3933. fi
  3934. ac_ext=c
  3935. ac_cpp='$CPP $CPPFLAGS'
  3936. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3937. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3938. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3939. ac_ext=cpp
  3940. ac_cpp='$CXXCPP $CPPFLAGS'
  3941. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3942. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3943. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  3944. if test -z "$CXX"; then
  3945. if test -n "$CCC"; then
  3946. CXX=$CCC
  3947. else
  3948. if test -n "$ac_tool_prefix"; then
  3949. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  3950. do
  3951. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  3952. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  3953. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3954. $as_echo_n "checking for $ac_word... " >&6; }
  3955. if ${ac_cv_prog_CXX+:} false; then :
  3956. $as_echo_n "(cached) " >&6
  3957. else
  3958. if test -n "$CXX"; then
  3959. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  3960. else
  3961. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3962. for as_dir in $PATH
  3963. do
  3964. IFS=$as_save_IFS
  3965. test -z "$as_dir" && as_dir=.
  3966. for ac_exec_ext in '' $ac_executable_extensions; do
  3967. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3968. ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  3969. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3970. break 2
  3971. fi
  3972. done
  3973. done
  3974. IFS=$as_save_IFS
  3975. fi
  3976. fi
  3977. CXX=$ac_cv_prog_CXX
  3978. if test -n "$CXX"; then
  3979. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
  3980. $as_echo "$CXX" >&6; }
  3981. else
  3982. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3983. $as_echo "no" >&6; }
  3984. fi
  3985. test -n "$CXX" && break
  3986. done
  3987. fi
  3988. if test -z "$CXX"; then
  3989. ac_ct_CXX=$CXX
  3990. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  3991. do
  3992. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3993. set dummy $ac_prog; ac_word=$2
  3994. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3995. $as_echo_n "checking for $ac_word... " >&6; }
  3996. if ${ac_cv_prog_ac_ct_CXX+:} false; then :
  3997. $as_echo_n "(cached) " >&6
  3998. else
  3999. if test -n "$ac_ct_CXX"; then
  4000. ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  4001. else
  4002. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4003. for as_dir in $PATH
  4004. do
  4005. IFS=$as_save_IFS
  4006. test -z "$as_dir" && as_dir=.
  4007. for ac_exec_ext in '' $ac_executable_extensions; do
  4008. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4009. ac_cv_prog_ac_ct_CXX="$ac_prog"
  4010. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4011. break 2
  4012. fi
  4013. done
  4014. done
  4015. IFS=$as_save_IFS
  4016. fi
  4017. fi
  4018. ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  4019. if test -n "$ac_ct_CXX"; then
  4020. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
  4021. $as_echo "$ac_ct_CXX" >&6; }
  4022. else
  4023. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4024. $as_echo "no" >&6; }
  4025. fi
  4026. test -n "$ac_ct_CXX" && break
  4027. done
  4028. if test "x$ac_ct_CXX" = x; then
  4029. CXX="g++"
  4030. else
  4031. case $cross_compiling:$ac_tool_warned in
  4032. yes:)
  4033. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4034. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4035. ac_tool_warned=yes ;;
  4036. esac
  4037. CXX=$ac_ct_CXX
  4038. fi
  4039. fi
  4040. fi
  4041. fi
  4042. # Provide some information about the compiler.
  4043. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
  4044. set X $ac_compile
  4045. ac_compiler=$2
  4046. for ac_option in --version -v -V -qversion; do
  4047. { { ac_try="$ac_compiler $ac_option >&5"
  4048. case "(($ac_try" in
  4049. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4050. *) ac_try_echo=$ac_try;;
  4051. esac
  4052. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  4053. $as_echo "$ac_try_echo"; } >&5
  4054. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  4055. ac_status=$?
  4056. if test -s conftest.err; then
  4057. sed '10a\
  4058. ... rest of stderr output deleted ...
  4059. 10q' conftest.err >conftest.er1
  4060. cat conftest.er1 >&5
  4061. fi
  4062. rm -f conftest.er1 conftest.err
  4063. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4064. test $ac_status = 0; }
  4065. done
  4066. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
  4067. $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
  4068. if ${ac_cv_cxx_compiler_gnu+:} false; then :
  4069. $as_echo_n "(cached) " >&6
  4070. else
  4071. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4072. /* end confdefs.h. */
  4073. int
  4074. main ()
  4075. {
  4076. #ifndef __GNUC__
  4077. choke me
  4078. #endif
  4079. ;
  4080. return 0;
  4081. }
  4082. _ACEOF
  4083. if ac_fn_cxx_try_compile "$LINENO"; then :
  4084. ac_compiler_gnu=yes
  4085. else
  4086. ac_compiler_gnu=no
  4087. fi
  4088. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4089. ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  4090. fi
  4091. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
  4092. $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
  4093. if test $ac_compiler_gnu = yes; then
  4094. GXX=yes
  4095. else
  4096. GXX=
  4097. fi
  4098. ac_test_CXXFLAGS=${CXXFLAGS+set}
  4099. ac_save_CXXFLAGS=$CXXFLAGS
  4100. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
  4101. $as_echo_n "checking whether $CXX accepts -g... " >&6; }
  4102. if ${ac_cv_prog_cxx_g+:} false; then :
  4103. $as_echo_n "(cached) " >&6
  4104. else
  4105. ac_save_cxx_werror_flag=$ac_cxx_werror_flag
  4106. ac_cxx_werror_flag=yes
  4107. ac_cv_prog_cxx_g=no
  4108. CXXFLAGS="-g"
  4109. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4110. /* end confdefs.h. */
  4111. int
  4112. main ()
  4113. {
  4114. ;
  4115. return 0;
  4116. }
  4117. _ACEOF
  4118. if ac_fn_cxx_try_compile "$LINENO"; then :
  4119. ac_cv_prog_cxx_g=yes
  4120. else
  4121. CXXFLAGS=""
  4122. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4123. /* end confdefs.h. */
  4124. int
  4125. main ()
  4126. {
  4127. ;
  4128. return 0;
  4129. }
  4130. _ACEOF
  4131. if ac_fn_cxx_try_compile "$LINENO"; then :
  4132. else
  4133. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  4134. CXXFLAGS="-g"
  4135. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4136. /* end confdefs.h. */
  4137. int
  4138. main ()
  4139. {
  4140. ;
  4141. return 0;
  4142. }
  4143. _ACEOF
  4144. if ac_fn_cxx_try_compile "$LINENO"; then :
  4145. ac_cv_prog_cxx_g=yes
  4146. fi
  4147. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4148. fi
  4149. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4150. fi
  4151. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4152. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  4153. fi
  4154. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
  4155. $as_echo "$ac_cv_prog_cxx_g" >&6; }
  4156. if test "$ac_test_CXXFLAGS" = set; then
  4157. CXXFLAGS=$ac_save_CXXFLAGS
  4158. elif test $ac_cv_prog_cxx_g = yes; then
  4159. if test "$GXX" = yes; then
  4160. CXXFLAGS="-g -O2"
  4161. else
  4162. CXXFLAGS="-g"
  4163. fi
  4164. else
  4165. if test "$GXX" = yes; then
  4166. CXXFLAGS="-O2"
  4167. else
  4168. CXXFLAGS=
  4169. fi
  4170. fi
  4171. ac_ext=c
  4172. ac_cpp='$CPP $CPPFLAGS'
  4173. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4174. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4175. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4176. # Make sure we can run config.sub.
  4177. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  4178. as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
  4179. { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
  4180. $as_echo_n "checking build system type... " >&6; }
  4181. if ${ac_cv_build+:} false; then :
  4182. $as_echo_n "(cached) " >&6
  4183. else
  4184. ac_build_alias=$build_alias
  4185. test "x$ac_build_alias" = x &&
  4186. ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  4187. test "x$ac_build_alias" = x &&
  4188. as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
  4189. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  4190. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
  4191. fi
  4192. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
  4193. $as_echo "$ac_cv_build" >&6; }
  4194. case $ac_cv_build in
  4195. *-*-*) ;;
  4196. *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
  4197. esac
  4198. build=$ac_cv_build
  4199. ac_save_IFS=$IFS; IFS='-'
  4200. set x $ac_cv_build
  4201. shift
  4202. build_cpu=$1
  4203. build_vendor=$2
  4204. shift; shift
  4205. # Remember, the first character of IFS is used to create $*,
  4206. # except with old shells:
  4207. build_os=$*
  4208. IFS=$ac_save_IFS
  4209. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  4210. { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
  4211. $as_echo_n "checking host system type... " >&6; }
  4212. if ${ac_cv_host+:} false; then :
  4213. $as_echo_n "(cached) " >&6
  4214. else
  4215. if test "x$host_alias" = x; then
  4216. ac_cv_host=$ac_cv_build
  4217. else
  4218. ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  4219. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
  4220. fi
  4221. fi
  4222. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
  4223. $as_echo "$ac_cv_host" >&6; }
  4224. case $ac_cv_host in
  4225. *-*-*) ;;
  4226. *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
  4227. esac
  4228. host=$ac_cv_host
  4229. ac_save_IFS=$IFS; IFS='-'
  4230. set x $ac_cv_host
  4231. shift
  4232. host_cpu=$1
  4233. host_vendor=$2
  4234. shift; shift
  4235. # Remember, the first character of IFS is used to create $*,
  4236. # except with old shells:
  4237. host_os=$*
  4238. IFS=$ac_save_IFS
  4239. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  4240. enable_win32_dll=yes
  4241. case $host in
  4242. *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
  4243. if test -n "$ac_tool_prefix"; then
  4244. # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
  4245. set dummy ${ac_tool_prefix}as; ac_word=$2
  4246. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4247. $as_echo_n "checking for $ac_word... " >&6; }
  4248. if ${ac_cv_prog_AS+:} false; then :
  4249. $as_echo_n "(cached) " >&6
  4250. else
  4251. if test -n "$AS"; then
  4252. ac_cv_prog_AS="$AS" # Let the user override the test.
  4253. else
  4254. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4255. for as_dir in $PATH
  4256. do
  4257. IFS=$as_save_IFS
  4258. test -z "$as_dir" && as_dir=.
  4259. for ac_exec_ext in '' $ac_executable_extensions; do
  4260. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4261. ac_cv_prog_AS="${ac_tool_prefix}as"
  4262. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4263. break 2
  4264. fi
  4265. done
  4266. done
  4267. IFS=$as_save_IFS
  4268. fi
  4269. fi
  4270. AS=$ac_cv_prog_AS
  4271. if test -n "$AS"; then
  4272. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
  4273. $as_echo "$AS" >&6; }
  4274. else
  4275. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4276. $as_echo "no" >&6; }
  4277. fi
  4278. fi
  4279. if test -z "$ac_cv_prog_AS"; then
  4280. ac_ct_AS=$AS
  4281. # Extract the first word of "as", so it can be a program name with args.
  4282. set dummy as; ac_word=$2
  4283. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4284. $as_echo_n "checking for $ac_word... " >&6; }
  4285. if ${ac_cv_prog_ac_ct_AS+:} false; then :
  4286. $as_echo_n "(cached) " >&6
  4287. else
  4288. if test -n "$ac_ct_AS"; then
  4289. ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
  4290. else
  4291. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4292. for as_dir in $PATH
  4293. do
  4294. IFS=$as_save_IFS
  4295. test -z "$as_dir" && as_dir=.
  4296. for ac_exec_ext in '' $ac_executable_extensions; do
  4297. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4298. ac_cv_prog_ac_ct_AS="as"
  4299. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4300. break 2
  4301. fi
  4302. done
  4303. done
  4304. IFS=$as_save_IFS
  4305. fi
  4306. fi
  4307. ac_ct_AS=$ac_cv_prog_ac_ct_AS
  4308. if test -n "$ac_ct_AS"; then
  4309. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
  4310. $as_echo "$ac_ct_AS" >&6; }
  4311. else
  4312. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4313. $as_echo "no" >&6; }
  4314. fi
  4315. if test "x$ac_ct_AS" = x; then
  4316. AS="false"
  4317. else
  4318. case $cross_compiling:$ac_tool_warned in
  4319. yes:)
  4320. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4321. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4322. ac_tool_warned=yes ;;
  4323. esac
  4324. AS=$ac_ct_AS
  4325. fi
  4326. else
  4327. AS="$ac_cv_prog_AS"
  4328. fi
  4329. if test -n "$ac_tool_prefix"; then
  4330. # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
  4331. set dummy ${ac_tool_prefix}dlltool; ac_word=$2
  4332. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4333. $as_echo_n "checking for $ac_word... " >&6; }
  4334. if ${ac_cv_prog_DLLTOOL+:} false; then :
  4335. $as_echo_n "(cached) " >&6
  4336. else
  4337. if test -n "$DLLTOOL"; then
  4338. ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
  4339. else
  4340. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4341. for as_dir in $PATH
  4342. do
  4343. IFS=$as_save_IFS
  4344. test -z "$as_dir" && as_dir=.
  4345. for ac_exec_ext in '' $ac_executable_extensions; do
  4346. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4347. ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
  4348. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4349. break 2
  4350. fi
  4351. done
  4352. done
  4353. IFS=$as_save_IFS
  4354. fi
  4355. fi
  4356. DLLTOOL=$ac_cv_prog_DLLTOOL
  4357. if test -n "$DLLTOOL"; then
  4358. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
  4359. $as_echo "$DLLTOOL" >&6; }
  4360. else
  4361. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4362. $as_echo "no" >&6; }
  4363. fi
  4364. fi
  4365. if test -z "$ac_cv_prog_DLLTOOL"; then
  4366. ac_ct_DLLTOOL=$DLLTOOL
  4367. # Extract the first word of "dlltool", so it can be a program name with args.
  4368. set dummy dlltool; ac_word=$2
  4369. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4370. $as_echo_n "checking for $ac_word... " >&6; }
  4371. if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
  4372. $as_echo_n "(cached) " >&6
  4373. else
  4374. if test -n "$ac_ct_DLLTOOL"; then
  4375. ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
  4376. else
  4377. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4378. for as_dir in $PATH
  4379. do
  4380. IFS=$as_save_IFS
  4381. test -z "$as_dir" && as_dir=.
  4382. for ac_exec_ext in '' $ac_executable_extensions; do
  4383. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4384. ac_cv_prog_ac_ct_DLLTOOL="dlltool"
  4385. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4386. break 2
  4387. fi
  4388. done
  4389. done
  4390. IFS=$as_save_IFS
  4391. fi
  4392. fi
  4393. ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
  4394. if test -n "$ac_ct_DLLTOOL"; then
  4395. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
  4396. $as_echo "$ac_ct_DLLTOOL" >&6; }
  4397. else
  4398. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4399. $as_echo "no" >&6; }
  4400. fi
  4401. if test "x$ac_ct_DLLTOOL" = x; then
  4402. DLLTOOL="false"
  4403. else
  4404. case $cross_compiling:$ac_tool_warned in
  4405. yes:)
  4406. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4407. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4408. ac_tool_warned=yes ;;
  4409. esac
  4410. DLLTOOL=$ac_ct_DLLTOOL
  4411. fi
  4412. else
  4413. DLLTOOL="$ac_cv_prog_DLLTOOL"
  4414. fi
  4415. if test -n "$ac_tool_prefix"; then
  4416. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  4417. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  4418. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4419. $as_echo_n "checking for $ac_word... " >&6; }
  4420. if ${ac_cv_prog_OBJDUMP+:} false; then :
  4421. $as_echo_n "(cached) " >&6
  4422. else
  4423. if test -n "$OBJDUMP"; then
  4424. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  4425. else
  4426. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4427. for as_dir in $PATH
  4428. do
  4429. IFS=$as_save_IFS
  4430. test -z "$as_dir" && as_dir=.
  4431. for ac_exec_ext in '' $ac_executable_extensions; do
  4432. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4433. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  4434. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4435. break 2
  4436. fi
  4437. done
  4438. done
  4439. IFS=$as_save_IFS
  4440. fi
  4441. fi
  4442. OBJDUMP=$ac_cv_prog_OBJDUMP
  4443. if test -n "$OBJDUMP"; then
  4444. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  4445. $as_echo "$OBJDUMP" >&6; }
  4446. else
  4447. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4448. $as_echo "no" >&6; }
  4449. fi
  4450. fi
  4451. if test -z "$ac_cv_prog_OBJDUMP"; then
  4452. ac_ct_OBJDUMP=$OBJDUMP
  4453. # Extract the first word of "objdump", so it can be a program name with args.
  4454. set dummy objdump; ac_word=$2
  4455. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4456. $as_echo_n "checking for $ac_word... " >&6; }
  4457. if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
  4458. $as_echo_n "(cached) " >&6
  4459. else
  4460. if test -n "$ac_ct_OBJDUMP"; then
  4461. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  4462. else
  4463. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4464. for as_dir in $PATH
  4465. do
  4466. IFS=$as_save_IFS
  4467. test -z "$as_dir" && as_dir=.
  4468. for ac_exec_ext in '' $ac_executable_extensions; do
  4469. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4470. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  4471. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4472. break 2
  4473. fi
  4474. done
  4475. done
  4476. IFS=$as_save_IFS
  4477. fi
  4478. fi
  4479. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  4480. if test -n "$ac_ct_OBJDUMP"; then
  4481. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  4482. $as_echo "$ac_ct_OBJDUMP" >&6; }
  4483. else
  4484. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4485. $as_echo "no" >&6; }
  4486. fi
  4487. if test "x$ac_ct_OBJDUMP" = x; then
  4488. OBJDUMP="false"
  4489. else
  4490. case $cross_compiling:$ac_tool_warned in
  4491. yes:)
  4492. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4493. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4494. ac_tool_warned=yes ;;
  4495. esac
  4496. OBJDUMP=$ac_ct_OBJDUMP
  4497. fi
  4498. else
  4499. OBJDUMP="$ac_cv_prog_OBJDUMP"
  4500. fi
  4501. ;;
  4502. esac
  4503. test -z "$AS" && AS=as
  4504. test -z "$DLLTOOL" && DLLTOOL=dlltool
  4505. test -z "$OBJDUMP" && OBJDUMP=objdump
  4506. case `pwd` in
  4507. *\ * | *\ *)
  4508. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
  4509. $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
  4510. esac
  4511. macro_version='2.4.2'
  4512. macro_revision='1.3337'
  4513. ltmain="$ac_aux_dir/ltmain.sh"
  4514. # Backslashify metacharacters that are still active within
  4515. # double-quoted strings.
  4516. sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
  4517. # Same as above, but do not quote variable references.
  4518. double_quote_subst='s/\(["`\\]\)/\\\1/g'
  4519. # Sed substitution to delay expansion of an escaped shell variable in a
  4520. # double_quote_subst'ed string.
  4521. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  4522. # Sed substitution to delay expansion of an escaped single quote.
  4523. delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
  4524. # Sed substitution to avoid accidental globbing in evaled expressions
  4525. no_glob_subst='s/\*/\\\*/g'
  4526. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  4527. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
  4528. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
  4529. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
  4530. $as_echo_n "checking how to print strings... " >&6; }
  4531. # Test print first, because it will be a builtin if present.
  4532. if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
  4533. test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
  4534. ECHO='print -r --'
  4535. elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
  4536. ECHO='printf %s\n'
  4537. else
  4538. # Use this function as a fallback that always works.
  4539. func_fallback_echo ()
  4540. {
  4541. eval 'cat <<_LTECHO_EOF
  4542. $1
  4543. _LTECHO_EOF'
  4544. }
  4545. ECHO='func_fallback_echo'
  4546. fi
  4547. # func_echo_all arg...
  4548. # Invoke $ECHO with all args, space-separated.
  4549. func_echo_all ()
  4550. {
  4551. $ECHO ""
  4552. }
  4553. case "$ECHO" in
  4554. printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
  4555. $as_echo "printf" >&6; } ;;
  4556. print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
  4557. $as_echo "print -r" >&6; } ;;
  4558. *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
  4559. $as_echo "cat" >&6; } ;;
  4560. esac
  4561. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
  4562. $as_echo_n "checking for a sed that does not truncate output... " >&6; }
  4563. if ${ac_cv_path_SED+:} false; then :
  4564. $as_echo_n "(cached) " >&6
  4565. else
  4566. ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  4567. for ac_i in 1 2 3 4 5 6 7; do
  4568. ac_script="$ac_script$as_nl$ac_script"
  4569. done
  4570. echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
  4571. { ac_script=; unset ac_script;}
  4572. if test -z "$SED"; then
  4573. ac_path_SED_found=false
  4574. # Loop through the user's path and test for each of PROGNAME-LIST
  4575. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4576. for as_dir in $PATH
  4577. do
  4578. IFS=$as_save_IFS
  4579. test -z "$as_dir" && as_dir=.
  4580. for ac_prog in sed gsed; do
  4581. for ac_exec_ext in '' $ac_executable_extensions; do
  4582. ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
  4583. { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
  4584. # Check for GNU ac_path_SED and select it if it is found.
  4585. # Check for GNU $ac_path_SED
  4586. case `"$ac_path_SED" --version 2>&1` in
  4587. *GNU*)
  4588. ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  4589. *)
  4590. ac_count=0
  4591. $as_echo_n 0123456789 >"conftest.in"
  4592. while :
  4593. do
  4594. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4595. mv "conftest.tmp" "conftest.in"
  4596. cp "conftest.in" "conftest.nl"
  4597. $as_echo '' >> "conftest.nl"
  4598. "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4599. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4600. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4601. if test $ac_count -gt ${ac_path_SED_max-0}; then
  4602. # Best one so far, save it but keep looking for a better one
  4603. ac_cv_path_SED="$ac_path_SED"
  4604. ac_path_SED_max=$ac_count
  4605. fi
  4606. # 10*(2^10) chars as input seems more than enough
  4607. test $ac_count -gt 10 && break
  4608. done
  4609. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4610. esac
  4611. $ac_path_SED_found && break 3
  4612. done
  4613. done
  4614. done
  4615. IFS=$as_save_IFS
  4616. if test -z "$ac_cv_path_SED"; then
  4617. as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
  4618. fi
  4619. else
  4620. ac_cv_path_SED=$SED
  4621. fi
  4622. fi
  4623. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
  4624. $as_echo "$ac_cv_path_SED" >&6; }
  4625. SED="$ac_cv_path_SED"
  4626. rm -f conftest.sed
  4627. test -z "$SED" && SED=sed
  4628. Xsed="$SED -e 1s/^X//"
  4629. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
  4630. $as_echo_n "checking for fgrep... " >&6; }
  4631. if ${ac_cv_path_FGREP+:} false; then :
  4632. $as_echo_n "(cached) " >&6
  4633. else
  4634. if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
  4635. then ac_cv_path_FGREP="$GREP -F"
  4636. else
  4637. if test -z "$FGREP"; then
  4638. ac_path_FGREP_found=false
  4639. # Loop through the user's path and test for each of PROGNAME-LIST
  4640. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4641. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4642. do
  4643. IFS=$as_save_IFS
  4644. test -z "$as_dir" && as_dir=.
  4645. for ac_prog in fgrep; do
  4646. for ac_exec_ext in '' $ac_executable_extensions; do
  4647. ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
  4648. { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
  4649. # Check for GNU ac_path_FGREP and select it if it is found.
  4650. # Check for GNU $ac_path_FGREP
  4651. case `"$ac_path_FGREP" --version 2>&1` in
  4652. *GNU*)
  4653. ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
  4654. *)
  4655. ac_count=0
  4656. $as_echo_n 0123456789 >"conftest.in"
  4657. while :
  4658. do
  4659. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4660. mv "conftest.tmp" "conftest.in"
  4661. cp "conftest.in" "conftest.nl"
  4662. $as_echo 'FGREP' >> "conftest.nl"
  4663. "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4664. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4665. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4666. if test $ac_count -gt ${ac_path_FGREP_max-0}; then
  4667. # Best one so far, save it but keep looking for a better one
  4668. ac_cv_path_FGREP="$ac_path_FGREP"
  4669. ac_path_FGREP_max=$ac_count
  4670. fi
  4671. # 10*(2^10) chars as input seems more than enough
  4672. test $ac_count -gt 10 && break
  4673. done
  4674. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4675. esac
  4676. $ac_path_FGREP_found && break 3
  4677. done
  4678. done
  4679. done
  4680. IFS=$as_save_IFS
  4681. if test -z "$ac_cv_path_FGREP"; then
  4682. as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4683. fi
  4684. else
  4685. ac_cv_path_FGREP=$FGREP
  4686. fi
  4687. fi
  4688. fi
  4689. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
  4690. $as_echo "$ac_cv_path_FGREP" >&6; }
  4691. FGREP="$ac_cv_path_FGREP"
  4692. test -z "$GREP" && GREP=grep
  4693. # Check whether --with-gnu-ld was given.
  4694. if test "${with_gnu_ld+set}" = set; then :
  4695. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  4696. else
  4697. with_gnu_ld=no
  4698. fi
  4699. ac_prog=ld
  4700. if test "$GCC" = yes; then
  4701. # Check if gcc -print-prog-name=ld gives a path.
  4702. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  4703. $as_echo_n "checking for ld used by $CC... " >&6; }
  4704. case $host in
  4705. *-*-mingw*)
  4706. # gcc leaves a trailing carriage return which upsets mingw
  4707. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  4708. *)
  4709. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  4710. esac
  4711. case $ac_prog in
  4712. # Accept absolute paths.
  4713. [\\/]* | ?:[\\/]*)
  4714. re_direlt='/[^/][^/]*/\.\./'
  4715. # Canonicalize the pathname of ld
  4716. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  4717. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  4718. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  4719. done
  4720. test -z "$LD" && LD="$ac_prog"
  4721. ;;
  4722. "")
  4723. # If it fails, then pretend we aren't using GCC.
  4724. ac_prog=ld
  4725. ;;
  4726. *)
  4727. # If it is relative, then search for the first ld in PATH.
  4728. with_gnu_ld=unknown
  4729. ;;
  4730. esac
  4731. elif test "$with_gnu_ld" = yes; then
  4732. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  4733. $as_echo_n "checking for GNU ld... " >&6; }
  4734. else
  4735. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  4736. $as_echo_n "checking for non-GNU ld... " >&6; }
  4737. fi
  4738. if ${lt_cv_path_LD+:} false; then :
  4739. $as_echo_n "(cached) " >&6
  4740. else
  4741. if test -z "$LD"; then
  4742. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  4743. for ac_dir in $PATH; do
  4744. IFS="$lt_save_ifs"
  4745. test -z "$ac_dir" && ac_dir=.
  4746. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  4747. lt_cv_path_LD="$ac_dir/$ac_prog"
  4748. # Check to see if the program is GNU ld. I'd rather use --version,
  4749. # but apparently some variants of GNU ld only accept -v.
  4750. # Break only if it was the GNU/non-GNU ld that we prefer.
  4751. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  4752. *GNU* | *'with BFD'*)
  4753. test "$with_gnu_ld" != no && break
  4754. ;;
  4755. *)
  4756. test "$with_gnu_ld" != yes && break
  4757. ;;
  4758. esac
  4759. fi
  4760. done
  4761. IFS="$lt_save_ifs"
  4762. else
  4763. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  4764. fi
  4765. fi
  4766. LD="$lt_cv_path_LD"
  4767. if test -n "$LD"; then
  4768. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  4769. $as_echo "$LD" >&6; }
  4770. else
  4771. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4772. $as_echo "no" >&6; }
  4773. fi
  4774. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  4775. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  4776. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  4777. if ${lt_cv_prog_gnu_ld+:} false; then :
  4778. $as_echo_n "(cached) " >&6
  4779. else
  4780. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  4781. case `$LD -v 2>&1 </dev/null` in
  4782. *GNU* | *'with BFD'*)
  4783. lt_cv_prog_gnu_ld=yes
  4784. ;;
  4785. *)
  4786. lt_cv_prog_gnu_ld=no
  4787. ;;
  4788. esac
  4789. fi
  4790. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  4791. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  4792. with_gnu_ld=$lt_cv_prog_gnu_ld
  4793. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
  4794. $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
  4795. if ${lt_cv_path_NM+:} false; then :
  4796. $as_echo_n "(cached) " >&6
  4797. else
  4798. if test -n "$NM"; then
  4799. # Let the user override the test.
  4800. lt_cv_path_NM="$NM"
  4801. else
  4802. lt_nm_to_check="${ac_tool_prefix}nm"
  4803. if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
  4804. lt_nm_to_check="$lt_nm_to_check nm"
  4805. fi
  4806. for lt_tmp_nm in $lt_nm_to_check; do
  4807. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  4808. for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
  4809. IFS="$lt_save_ifs"
  4810. test -z "$ac_dir" && ac_dir=.
  4811. tmp_nm="$ac_dir/$lt_tmp_nm"
  4812. if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
  4813. # Check to see if the nm accepts a BSD-compat flag.
  4814. # Adding the `sed 1q' prevents false positives on HP-UX, which says:
  4815. # nm: unknown option "B" ignored
  4816. # Tru64's nm complains that /dev/null is an invalid object file
  4817. case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
  4818. */dev/null* | *'Invalid file or object type'*)
  4819. lt_cv_path_NM="$tmp_nm -B"
  4820. break
  4821. ;;
  4822. *)
  4823. case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  4824. */dev/null*)
  4825. lt_cv_path_NM="$tmp_nm -p"
  4826. break
  4827. ;;
  4828. *)
  4829. lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  4830. continue # so that we can try to find one that supports BSD flags
  4831. ;;
  4832. esac
  4833. ;;
  4834. esac
  4835. fi
  4836. done
  4837. IFS="$lt_save_ifs"
  4838. done
  4839. : ${lt_cv_path_NM=no}
  4840. fi
  4841. fi
  4842. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
  4843. $as_echo "$lt_cv_path_NM" >&6; }
  4844. if test "$lt_cv_path_NM" != "no"; then
  4845. NM="$lt_cv_path_NM"
  4846. else
  4847. # Didn't find any BSD compatible name lister, look for dumpbin.
  4848. if test -n "$DUMPBIN"; then :
  4849. # Let the user override the test.
  4850. else
  4851. if test -n "$ac_tool_prefix"; then
  4852. for ac_prog in dumpbin "link -dump"
  4853. do
  4854. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  4855. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  4856. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4857. $as_echo_n "checking for $ac_word... " >&6; }
  4858. if ${ac_cv_prog_DUMPBIN+:} false; then :
  4859. $as_echo_n "(cached) " >&6
  4860. else
  4861. if test -n "$DUMPBIN"; then
  4862. ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
  4863. else
  4864. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4865. for as_dir in $PATH
  4866. do
  4867. IFS=$as_save_IFS
  4868. test -z "$as_dir" && as_dir=.
  4869. for ac_exec_ext in '' $ac_executable_extensions; do
  4870. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4871. ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
  4872. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4873. break 2
  4874. fi
  4875. done
  4876. done
  4877. IFS=$as_save_IFS
  4878. fi
  4879. fi
  4880. DUMPBIN=$ac_cv_prog_DUMPBIN
  4881. if test -n "$DUMPBIN"; then
  4882. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
  4883. $as_echo "$DUMPBIN" >&6; }
  4884. else
  4885. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4886. $as_echo "no" >&6; }
  4887. fi
  4888. test -n "$DUMPBIN" && break
  4889. done
  4890. fi
  4891. if test -z "$DUMPBIN"; then
  4892. ac_ct_DUMPBIN=$DUMPBIN
  4893. for ac_prog in dumpbin "link -dump"
  4894. do
  4895. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4896. set dummy $ac_prog; ac_word=$2
  4897. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4898. $as_echo_n "checking for $ac_word... " >&6; }
  4899. if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
  4900. $as_echo_n "(cached) " >&6
  4901. else
  4902. if test -n "$ac_ct_DUMPBIN"; then
  4903. ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
  4904. else
  4905. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4906. for as_dir in $PATH
  4907. do
  4908. IFS=$as_save_IFS
  4909. test -z "$as_dir" && as_dir=.
  4910. for ac_exec_ext in '' $ac_executable_extensions; do
  4911. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4912. ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
  4913. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4914. break 2
  4915. fi
  4916. done
  4917. done
  4918. IFS=$as_save_IFS
  4919. fi
  4920. fi
  4921. ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
  4922. if test -n "$ac_ct_DUMPBIN"; then
  4923. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
  4924. $as_echo "$ac_ct_DUMPBIN" >&6; }
  4925. else
  4926. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4927. $as_echo "no" >&6; }
  4928. fi
  4929. test -n "$ac_ct_DUMPBIN" && break
  4930. done
  4931. if test "x$ac_ct_DUMPBIN" = x; then
  4932. DUMPBIN=":"
  4933. else
  4934. case $cross_compiling:$ac_tool_warned in
  4935. yes:)
  4936. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4937. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4938. ac_tool_warned=yes ;;
  4939. esac
  4940. DUMPBIN=$ac_ct_DUMPBIN
  4941. fi
  4942. fi
  4943. case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
  4944. *COFF*)
  4945. DUMPBIN="$DUMPBIN -symbols"
  4946. ;;
  4947. *)
  4948. DUMPBIN=:
  4949. ;;
  4950. esac
  4951. fi
  4952. if test "$DUMPBIN" != ":"; then
  4953. NM="$DUMPBIN"
  4954. fi
  4955. fi
  4956. test -z "$NM" && NM=nm
  4957. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
  4958. $as_echo_n "checking the name lister ($NM) interface... " >&6; }
  4959. if ${lt_cv_nm_interface+:} false; then :
  4960. $as_echo_n "(cached) " >&6
  4961. else
  4962. lt_cv_nm_interface="BSD nm"
  4963. echo "int some_variable = 0;" > conftest.$ac_ext
  4964. (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
  4965. (eval "$ac_compile" 2>conftest.err)
  4966. cat conftest.err >&5
  4967. (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
  4968. (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
  4969. cat conftest.err >&5
  4970. (eval echo "\"\$as_me:$LINENO: output\"" >&5)
  4971. cat conftest.out >&5
  4972. if $GREP 'External.*some_variable' conftest.out > /dev/null; then
  4973. lt_cv_nm_interface="MS dumpbin"
  4974. fi
  4975. rm -f conftest*
  4976. fi
  4977. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
  4978. $as_echo "$lt_cv_nm_interface" >&6; }
  4979. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
  4980. $as_echo_n "checking whether ln -s works... " >&6; }
  4981. LN_S=$as_ln_s
  4982. if test "$LN_S" = "ln -s"; then
  4983. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4984. $as_echo "yes" >&6; }
  4985. else
  4986. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
  4987. $as_echo "no, using $LN_S" >&6; }
  4988. fi
  4989. # find the maximum length of command line arguments
  4990. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
  4991. $as_echo_n "checking the maximum length of command line arguments... " >&6; }
  4992. if ${lt_cv_sys_max_cmd_len+:} false; then :
  4993. $as_echo_n "(cached) " >&6
  4994. else
  4995. i=0
  4996. teststring="ABCD"
  4997. case $build_os in
  4998. msdosdjgpp*)
  4999. # On DJGPP, this test can blow up pretty badly due to problems in libc
  5000. # (any single argument exceeding 2000 bytes causes a buffer overrun
  5001. # during glob expansion). Even if it were fixed, the result of this
  5002. # check would be larger than it should be.
  5003. lt_cv_sys_max_cmd_len=12288; # 12K is about right
  5004. ;;
  5005. gnu*)
  5006. # Under GNU Hurd, this test is not required because there is
  5007. # no limit to the length of command line arguments.
  5008. # Libtool will interpret -1 as no limit whatsoever
  5009. lt_cv_sys_max_cmd_len=-1;
  5010. ;;
  5011. cygwin* | mingw* | cegcc*)
  5012. # On Win9x/ME, this test blows up -- it succeeds, but takes
  5013. # about 5 minutes as the teststring grows exponentially.
  5014. # Worse, since 9x/ME are not pre-emptively multitasking,
  5015. # you end up with a "frozen" computer, even though with patience
  5016. # the test eventually succeeds (with a max line length of 256k).
  5017. # Instead, let's just punt: use the minimum linelength reported by
  5018. # all of the supported platforms: 8192 (on NT/2K/XP).
  5019. lt_cv_sys_max_cmd_len=8192;
  5020. ;;
  5021. mint*)
  5022. # On MiNT this can take a long time and run out of memory.
  5023. lt_cv_sys_max_cmd_len=8192;
  5024. ;;
  5025. amigaos*)
  5026. # On AmigaOS with pdksh, this test takes hours, literally.
  5027. # So we just punt and use a minimum line length of 8192.
  5028. lt_cv_sys_max_cmd_len=8192;
  5029. ;;
  5030. netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
  5031. # This has been around since 386BSD, at least. Likely further.
  5032. if test -x /sbin/sysctl; then
  5033. lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  5034. elif test -x /usr/sbin/sysctl; then
  5035. lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  5036. else
  5037. lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  5038. fi
  5039. # And add a safety zone
  5040. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  5041. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  5042. ;;
  5043. interix*)
  5044. # We know the value 262144 and hardcode it with a safety zone (like BSD)
  5045. lt_cv_sys_max_cmd_len=196608
  5046. ;;
  5047. os2*)
  5048. # The test takes a long time on OS/2.
  5049. lt_cv_sys_max_cmd_len=8192
  5050. ;;
  5051. osf*)
  5052. # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  5053. # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  5054. # nice to cause kernel panics so lets avoid the loop below.
  5055. # First set a reasonable default.
  5056. lt_cv_sys_max_cmd_len=16384
  5057. #
  5058. if test -x /sbin/sysconfig; then
  5059. case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  5060. *1*) lt_cv_sys_max_cmd_len=-1 ;;
  5061. esac
  5062. fi
  5063. ;;
  5064. sco3.2v5*)
  5065. lt_cv_sys_max_cmd_len=102400
  5066. ;;
  5067. sysv5* | sco5v6* | sysv4.2uw2*)
  5068. kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  5069. if test -n "$kargmax"; then
  5070. lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
  5071. else
  5072. lt_cv_sys_max_cmd_len=32768
  5073. fi
  5074. ;;
  5075. *)
  5076. lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
  5077. if test -n "$lt_cv_sys_max_cmd_len"; then
  5078. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  5079. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  5080. else
  5081. # Make teststring a little bigger before we do anything with it.
  5082. # a 1K string should be a reasonable start.
  5083. for i in 1 2 3 4 5 6 7 8 ; do
  5084. teststring=$teststring$teststring
  5085. done
  5086. SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  5087. # If test is not a shell built-in, we'll probably end up computing a
  5088. # maximum length that is only half of the actual maximum length, but
  5089. # we can't tell.
  5090. while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
  5091. = "X$teststring$teststring"; } >/dev/null 2>&1 &&
  5092. test $i != 17 # 1/2 MB should be enough
  5093. do
  5094. i=`expr $i + 1`
  5095. teststring=$teststring$teststring
  5096. done
  5097. # Only check the string length outside the loop.
  5098. lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
  5099. teststring=
  5100. # Add a significant safety factor because C++ compilers can tack on
  5101. # massive amounts of additional arguments before passing them to the
  5102. # linker. It appears as though 1/2 is a usable value.
  5103. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  5104. fi
  5105. ;;
  5106. esac
  5107. fi
  5108. if test -n $lt_cv_sys_max_cmd_len ; then
  5109. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
  5110. $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
  5111. else
  5112. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
  5113. $as_echo "none" >&6; }
  5114. fi
  5115. max_cmd_len=$lt_cv_sys_max_cmd_len
  5116. : ${CP="cp -f"}
  5117. : ${MV="mv -f"}
  5118. : ${RM="rm -f"}
  5119. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
  5120. $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
  5121. # Try some XSI features
  5122. xsi_shell=no
  5123. ( _lt_dummy="a/b/c"
  5124. test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
  5125. = c,a/b,b/c, \
  5126. && eval 'test $(( 1 + 1 )) -eq 2 \
  5127. && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
  5128. && xsi_shell=yes
  5129. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
  5130. $as_echo "$xsi_shell" >&6; }
  5131. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
  5132. $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
  5133. lt_shell_append=no
  5134. ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
  5135. >/dev/null 2>&1 \
  5136. && lt_shell_append=yes
  5137. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
  5138. $as_echo "$lt_shell_append" >&6; }
  5139. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  5140. lt_unset=unset
  5141. else
  5142. lt_unset=false
  5143. fi
  5144. # test EBCDIC or ASCII
  5145. case `echo X|tr X '\101'` in
  5146. A) # ASCII based system
  5147. # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
  5148. lt_SP2NL='tr \040 \012'
  5149. lt_NL2SP='tr \015\012 \040\040'
  5150. ;;
  5151. *) # EBCDIC based system
  5152. lt_SP2NL='tr \100 \n'
  5153. lt_NL2SP='tr \r\n \100\100'
  5154. ;;
  5155. esac
  5156. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
  5157. $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
  5158. if ${lt_cv_to_host_file_cmd+:} false; then :
  5159. $as_echo_n "(cached) " >&6
  5160. else
  5161. case $host in
  5162. *-*-mingw* )
  5163. case $build in
  5164. *-*-mingw* ) # actually msys
  5165. lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
  5166. ;;
  5167. *-*-cygwin* )
  5168. lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
  5169. ;;
  5170. * ) # otherwise, assume *nix
  5171. lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
  5172. ;;
  5173. esac
  5174. ;;
  5175. *-*-cygwin* )
  5176. case $build in
  5177. *-*-mingw* ) # actually msys
  5178. lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
  5179. ;;
  5180. *-*-cygwin* )
  5181. lt_cv_to_host_file_cmd=func_convert_file_noop
  5182. ;;
  5183. * ) # otherwise, assume *nix
  5184. lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
  5185. ;;
  5186. esac
  5187. ;;
  5188. * ) # unhandled hosts (and "normal" native builds)
  5189. lt_cv_to_host_file_cmd=func_convert_file_noop
  5190. ;;
  5191. esac
  5192. fi
  5193. to_host_file_cmd=$lt_cv_to_host_file_cmd
  5194. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
  5195. $as_echo "$lt_cv_to_host_file_cmd" >&6; }
  5196. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
  5197. $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
  5198. if ${lt_cv_to_tool_file_cmd+:} false; then :
  5199. $as_echo_n "(cached) " >&6
  5200. else
  5201. #assume ordinary cross tools, or native build.
  5202. lt_cv_to_tool_file_cmd=func_convert_file_noop
  5203. case $host in
  5204. *-*-mingw* )
  5205. case $build in
  5206. *-*-mingw* ) # actually msys
  5207. lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
  5208. ;;
  5209. esac
  5210. ;;
  5211. esac
  5212. fi
  5213. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  5214. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
  5215. $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
  5216. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
  5217. $as_echo_n "checking for $LD option to reload object files... " >&6; }
  5218. if ${lt_cv_ld_reload_flag+:} false; then :
  5219. $as_echo_n "(cached) " >&6
  5220. else
  5221. lt_cv_ld_reload_flag='-r'
  5222. fi
  5223. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
  5224. $as_echo "$lt_cv_ld_reload_flag" >&6; }
  5225. reload_flag=$lt_cv_ld_reload_flag
  5226. case $reload_flag in
  5227. "" | " "*) ;;
  5228. *) reload_flag=" $reload_flag" ;;
  5229. esac
  5230. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  5231. case $host_os in
  5232. cygwin* | mingw* | pw32* | cegcc*)
  5233. if test "$GCC" != yes; then
  5234. reload_cmds=false
  5235. fi
  5236. ;;
  5237. darwin*)
  5238. if test "$GCC" = yes; then
  5239. reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
  5240. else
  5241. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  5242. fi
  5243. ;;
  5244. esac
  5245. if test -n "$ac_tool_prefix"; then
  5246. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  5247. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  5248. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5249. $as_echo_n "checking for $ac_word... " >&6; }
  5250. if ${ac_cv_prog_OBJDUMP+:} false; then :
  5251. $as_echo_n "(cached) " >&6
  5252. else
  5253. if test -n "$OBJDUMP"; then
  5254. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  5255. else
  5256. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5257. for as_dir in $PATH
  5258. do
  5259. IFS=$as_save_IFS
  5260. test -z "$as_dir" && as_dir=.
  5261. for ac_exec_ext in '' $ac_executable_extensions; do
  5262. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5263. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  5264. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5265. break 2
  5266. fi
  5267. done
  5268. done
  5269. IFS=$as_save_IFS
  5270. fi
  5271. fi
  5272. OBJDUMP=$ac_cv_prog_OBJDUMP
  5273. if test -n "$OBJDUMP"; then
  5274. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  5275. $as_echo "$OBJDUMP" >&6; }
  5276. else
  5277. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5278. $as_echo "no" >&6; }
  5279. fi
  5280. fi
  5281. if test -z "$ac_cv_prog_OBJDUMP"; then
  5282. ac_ct_OBJDUMP=$OBJDUMP
  5283. # Extract the first word of "objdump", so it can be a program name with args.
  5284. set dummy objdump; ac_word=$2
  5285. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5286. $as_echo_n "checking for $ac_word... " >&6; }
  5287. if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
  5288. $as_echo_n "(cached) " >&6
  5289. else
  5290. if test -n "$ac_ct_OBJDUMP"; then
  5291. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  5292. else
  5293. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5294. for as_dir in $PATH
  5295. do
  5296. IFS=$as_save_IFS
  5297. test -z "$as_dir" && as_dir=.
  5298. for ac_exec_ext in '' $ac_executable_extensions; do
  5299. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5300. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  5301. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5302. break 2
  5303. fi
  5304. done
  5305. done
  5306. IFS=$as_save_IFS
  5307. fi
  5308. fi
  5309. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  5310. if test -n "$ac_ct_OBJDUMP"; then
  5311. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  5312. $as_echo "$ac_ct_OBJDUMP" >&6; }
  5313. else
  5314. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5315. $as_echo "no" >&6; }
  5316. fi
  5317. if test "x$ac_ct_OBJDUMP" = x; then
  5318. OBJDUMP="false"
  5319. else
  5320. case $cross_compiling:$ac_tool_warned in
  5321. yes:)
  5322. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5323. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5324. ac_tool_warned=yes ;;
  5325. esac
  5326. OBJDUMP=$ac_ct_OBJDUMP
  5327. fi
  5328. else
  5329. OBJDUMP="$ac_cv_prog_OBJDUMP"
  5330. fi
  5331. test -z "$OBJDUMP" && OBJDUMP=objdump
  5332. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
  5333. $as_echo_n "checking how to recognize dependent libraries... " >&6; }
  5334. if ${lt_cv_deplibs_check_method+:} false; then :
  5335. $as_echo_n "(cached) " >&6
  5336. else
  5337. lt_cv_file_magic_cmd='$MAGIC_CMD'
  5338. lt_cv_file_magic_test_file=
  5339. lt_cv_deplibs_check_method='unknown'
  5340. # Need to set the preceding variable on all platforms that support
  5341. # interlibrary dependencies.
  5342. # 'none' -- dependencies not supported.
  5343. # `unknown' -- same as none, but documents that we really don't know.
  5344. # 'pass_all' -- all dependencies passed with no checks.
  5345. # 'test_compile' -- check by making test program.
  5346. # 'file_magic [[regex]]' -- check by looking for files in library path
  5347. # which responds to the $file_magic_cmd with a given extended regex.
  5348. # If you have `file' or equivalent on your system and you're not sure
  5349. # whether `pass_all' will *always* work, you probably want this one.
  5350. case $host_os in
  5351. aix[4-9]*)
  5352. lt_cv_deplibs_check_method=pass_all
  5353. ;;
  5354. beos*)
  5355. lt_cv_deplibs_check_method=pass_all
  5356. ;;
  5357. bsdi[45]*)
  5358. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  5359. lt_cv_file_magic_cmd='/usr/bin/file -L'
  5360. lt_cv_file_magic_test_file=/shlib/libc.so
  5361. ;;
  5362. cygwin*)
  5363. # func_win32_libid is a shell function defined in ltmain.sh
  5364. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  5365. lt_cv_file_magic_cmd='func_win32_libid'
  5366. ;;
  5367. mingw* | pw32*)
  5368. # Base MSYS/MinGW do not provide the 'file' command needed by
  5369. # func_win32_libid shell function, so use a weaker test based on 'objdump',
  5370. # unless we find 'file', for example because we are cross-compiling.
  5371. # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
  5372. if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
  5373. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  5374. lt_cv_file_magic_cmd='func_win32_libid'
  5375. else
  5376. # Keep this pattern in sync with the one in func_win32_libid.
  5377. lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
  5378. lt_cv_file_magic_cmd='$OBJDUMP -f'
  5379. fi
  5380. ;;
  5381. cegcc*)
  5382. # use the weaker test based on 'objdump'. See mingw*.
  5383. lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
  5384. lt_cv_file_magic_cmd='$OBJDUMP -f'
  5385. ;;
  5386. darwin* | rhapsody*)
  5387. lt_cv_deplibs_check_method=pass_all
  5388. ;;
  5389. freebsd* | dragonfly*)
  5390. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  5391. case $host_cpu in
  5392. i*86 )
  5393. # Not sure whether the presence of OpenBSD here was a mistake.
  5394. # Let's accept both of them until this is cleared up.
  5395. lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
  5396. lt_cv_file_magic_cmd=/usr/bin/file
  5397. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  5398. ;;
  5399. esac
  5400. else
  5401. lt_cv_deplibs_check_method=pass_all
  5402. fi
  5403. ;;
  5404. gnu*)
  5405. lt_cv_deplibs_check_method=pass_all
  5406. ;;
  5407. haiku*)
  5408. lt_cv_deplibs_check_method=pass_all
  5409. ;;
  5410. hpux10.20* | hpux11*)
  5411. lt_cv_file_magic_cmd=/usr/bin/file
  5412. case $host_cpu in
  5413. ia64*)
  5414. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
  5415. lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  5416. ;;
  5417. hppa*64*)
  5418. 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]'
  5419. lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  5420. ;;
  5421. *)
  5422. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
  5423. lt_cv_file_magic_test_file=/usr/lib/libc.sl
  5424. ;;
  5425. esac
  5426. ;;
  5427. interix[3-9]*)
  5428. # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  5429. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
  5430. ;;
  5431. irix5* | irix6* | nonstopux*)
  5432. case $LD in
  5433. *-32|*"-32 ") libmagic=32-bit;;
  5434. *-n32|*"-n32 ") libmagic=N32;;
  5435. *-64|*"-64 ") libmagic=64-bit;;
  5436. *) libmagic=never-match;;
  5437. esac
  5438. lt_cv_deplibs_check_method=pass_all
  5439. ;;
  5440. # This must be glibc/ELF.
  5441. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  5442. lt_cv_deplibs_check_method=pass_all
  5443. ;;
  5444. netbsd* | netbsdelf*-gnu)
  5445. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  5446. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  5447. else
  5448. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
  5449. fi
  5450. ;;
  5451. newos6*)
  5452. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  5453. lt_cv_file_magic_cmd=/usr/bin/file
  5454. lt_cv_file_magic_test_file=/usr/lib/libnls.so
  5455. ;;
  5456. *nto* | *qnx*)
  5457. lt_cv_deplibs_check_method=pass_all
  5458. ;;
  5459. openbsd*)
  5460. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  5461. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
  5462. else
  5463. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  5464. fi
  5465. ;;
  5466. osf3* | osf4* | osf5*)
  5467. lt_cv_deplibs_check_method=pass_all
  5468. ;;
  5469. rdos*)
  5470. lt_cv_deplibs_check_method=pass_all
  5471. ;;
  5472. solaris*)
  5473. lt_cv_deplibs_check_method=pass_all
  5474. ;;
  5475. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  5476. lt_cv_deplibs_check_method=pass_all
  5477. ;;
  5478. sysv4 | sysv4.3*)
  5479. case $host_vendor in
  5480. motorola)
  5481. 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]'
  5482. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  5483. ;;
  5484. ncr)
  5485. lt_cv_deplibs_check_method=pass_all
  5486. ;;
  5487. sequent)
  5488. lt_cv_file_magic_cmd='/bin/file'
  5489. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
  5490. ;;
  5491. sni)
  5492. lt_cv_file_magic_cmd='/bin/file'
  5493. lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
  5494. lt_cv_file_magic_test_file=/lib/libc.so
  5495. ;;
  5496. siemens)
  5497. lt_cv_deplibs_check_method=pass_all
  5498. ;;
  5499. pc)
  5500. lt_cv_deplibs_check_method=pass_all
  5501. ;;
  5502. esac
  5503. ;;
  5504. tpf*)
  5505. lt_cv_deplibs_check_method=pass_all
  5506. ;;
  5507. esac
  5508. fi
  5509. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
  5510. $as_echo "$lt_cv_deplibs_check_method" >&6; }
  5511. file_magic_glob=
  5512. want_nocaseglob=no
  5513. if test "$build" = "$host"; then
  5514. case $host_os in
  5515. mingw* | pw32*)
  5516. if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
  5517. want_nocaseglob=yes
  5518. else
  5519. file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
  5520. fi
  5521. ;;
  5522. esac
  5523. fi
  5524. file_magic_cmd=$lt_cv_file_magic_cmd
  5525. deplibs_check_method=$lt_cv_deplibs_check_method
  5526. test -z "$deplibs_check_method" && deplibs_check_method=unknown
  5527. if test -n "$ac_tool_prefix"; then
  5528. # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
  5529. set dummy ${ac_tool_prefix}dlltool; ac_word=$2
  5530. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5531. $as_echo_n "checking for $ac_word... " >&6; }
  5532. if ${ac_cv_prog_DLLTOOL+:} false; then :
  5533. $as_echo_n "(cached) " >&6
  5534. else
  5535. if test -n "$DLLTOOL"; then
  5536. ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
  5537. else
  5538. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5539. for as_dir in $PATH
  5540. do
  5541. IFS=$as_save_IFS
  5542. test -z "$as_dir" && as_dir=.
  5543. for ac_exec_ext in '' $ac_executable_extensions; do
  5544. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5545. ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
  5546. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5547. break 2
  5548. fi
  5549. done
  5550. done
  5551. IFS=$as_save_IFS
  5552. fi
  5553. fi
  5554. DLLTOOL=$ac_cv_prog_DLLTOOL
  5555. if test -n "$DLLTOOL"; then
  5556. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
  5557. $as_echo "$DLLTOOL" >&6; }
  5558. else
  5559. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5560. $as_echo "no" >&6; }
  5561. fi
  5562. fi
  5563. if test -z "$ac_cv_prog_DLLTOOL"; then
  5564. ac_ct_DLLTOOL=$DLLTOOL
  5565. # Extract the first word of "dlltool", so it can be a program name with args.
  5566. set dummy dlltool; ac_word=$2
  5567. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5568. $as_echo_n "checking for $ac_word... " >&6; }
  5569. if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
  5570. $as_echo_n "(cached) " >&6
  5571. else
  5572. if test -n "$ac_ct_DLLTOOL"; then
  5573. ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
  5574. else
  5575. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5576. for as_dir in $PATH
  5577. do
  5578. IFS=$as_save_IFS
  5579. test -z "$as_dir" && as_dir=.
  5580. for ac_exec_ext in '' $ac_executable_extensions; do
  5581. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5582. ac_cv_prog_ac_ct_DLLTOOL="dlltool"
  5583. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5584. break 2
  5585. fi
  5586. done
  5587. done
  5588. IFS=$as_save_IFS
  5589. fi
  5590. fi
  5591. ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
  5592. if test -n "$ac_ct_DLLTOOL"; then
  5593. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
  5594. $as_echo "$ac_ct_DLLTOOL" >&6; }
  5595. else
  5596. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5597. $as_echo "no" >&6; }
  5598. fi
  5599. if test "x$ac_ct_DLLTOOL" = x; then
  5600. DLLTOOL="false"
  5601. else
  5602. case $cross_compiling:$ac_tool_warned in
  5603. yes:)
  5604. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5605. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5606. ac_tool_warned=yes ;;
  5607. esac
  5608. DLLTOOL=$ac_ct_DLLTOOL
  5609. fi
  5610. else
  5611. DLLTOOL="$ac_cv_prog_DLLTOOL"
  5612. fi
  5613. test -z "$DLLTOOL" && DLLTOOL=dlltool
  5614. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
  5615. $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
  5616. if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
  5617. $as_echo_n "(cached) " >&6
  5618. else
  5619. lt_cv_sharedlib_from_linklib_cmd='unknown'
  5620. case $host_os in
  5621. cygwin* | mingw* | pw32* | cegcc*)
  5622. # two different shell functions defined in ltmain.sh
  5623. # decide which to use based on capabilities of $DLLTOOL
  5624. case `$DLLTOOL --help 2>&1` in
  5625. *--identify-strict*)
  5626. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
  5627. ;;
  5628. *)
  5629. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
  5630. ;;
  5631. esac
  5632. ;;
  5633. *)
  5634. # fallback: assume linklib IS sharedlib
  5635. lt_cv_sharedlib_from_linklib_cmd="$ECHO"
  5636. ;;
  5637. esac
  5638. fi
  5639. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
  5640. $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
  5641. sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
  5642. test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
  5643. if test -n "$ac_tool_prefix"; then
  5644. for ac_prog in ar
  5645. do
  5646. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  5647. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  5648. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5649. $as_echo_n "checking for $ac_word... " >&6; }
  5650. if ${ac_cv_prog_AR+:} false; then :
  5651. $as_echo_n "(cached) " >&6
  5652. else
  5653. if test -n "$AR"; then
  5654. ac_cv_prog_AR="$AR" # Let the user override the test.
  5655. else
  5656. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5657. for as_dir in $PATH
  5658. do
  5659. IFS=$as_save_IFS
  5660. test -z "$as_dir" && as_dir=.
  5661. for ac_exec_ext in '' $ac_executable_extensions; do
  5662. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5663. ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
  5664. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5665. break 2
  5666. fi
  5667. done
  5668. done
  5669. IFS=$as_save_IFS
  5670. fi
  5671. fi
  5672. AR=$ac_cv_prog_AR
  5673. if test -n "$AR"; then
  5674. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  5675. $as_echo "$AR" >&6; }
  5676. else
  5677. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5678. $as_echo "no" >&6; }
  5679. fi
  5680. test -n "$AR" && break
  5681. done
  5682. fi
  5683. if test -z "$AR"; then
  5684. ac_ct_AR=$AR
  5685. for ac_prog in ar
  5686. do
  5687. # Extract the first word of "$ac_prog", so it can be a program name with args.
  5688. set dummy $ac_prog; ac_word=$2
  5689. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5690. $as_echo_n "checking for $ac_word... " >&6; }
  5691. if ${ac_cv_prog_ac_ct_AR+:} false; then :
  5692. $as_echo_n "(cached) " >&6
  5693. else
  5694. if test -n "$ac_ct_AR"; then
  5695. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  5696. else
  5697. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5698. for as_dir in $PATH
  5699. do
  5700. IFS=$as_save_IFS
  5701. test -z "$as_dir" && as_dir=.
  5702. for ac_exec_ext in '' $ac_executable_extensions; do
  5703. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5704. ac_cv_prog_ac_ct_AR="$ac_prog"
  5705. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5706. break 2
  5707. fi
  5708. done
  5709. done
  5710. IFS=$as_save_IFS
  5711. fi
  5712. fi
  5713. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  5714. if test -n "$ac_ct_AR"; then
  5715. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
  5716. $as_echo "$ac_ct_AR" >&6; }
  5717. else
  5718. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5719. $as_echo "no" >&6; }
  5720. fi
  5721. test -n "$ac_ct_AR" && break
  5722. done
  5723. if test "x$ac_ct_AR" = x; then
  5724. AR="false"
  5725. else
  5726. case $cross_compiling:$ac_tool_warned in
  5727. yes:)
  5728. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5729. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5730. ac_tool_warned=yes ;;
  5731. esac
  5732. AR=$ac_ct_AR
  5733. fi
  5734. fi
  5735. : ${AR=ar}
  5736. : ${AR_FLAGS=cru}
  5737. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
  5738. $as_echo_n "checking for archiver @FILE support... " >&6; }
  5739. if ${lt_cv_ar_at_file+:} false; then :
  5740. $as_echo_n "(cached) " >&6
  5741. else
  5742. lt_cv_ar_at_file=no
  5743. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5744. /* end confdefs.h. */
  5745. int
  5746. main ()
  5747. {
  5748. ;
  5749. return 0;
  5750. }
  5751. _ACEOF
  5752. if ac_fn_c_try_compile "$LINENO"; then :
  5753. echo conftest.$ac_objext > conftest.lst
  5754. lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
  5755. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  5756. (eval $lt_ar_try) 2>&5
  5757. ac_status=$?
  5758. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5759. test $ac_status = 0; }
  5760. if test "$ac_status" -eq 0; then
  5761. # Ensure the archiver fails upon bogus file names.
  5762. rm -f conftest.$ac_objext libconftest.a
  5763. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  5764. (eval $lt_ar_try) 2>&5
  5765. ac_status=$?
  5766. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5767. test $ac_status = 0; }
  5768. if test "$ac_status" -ne 0; then
  5769. lt_cv_ar_at_file=@
  5770. fi
  5771. fi
  5772. rm -f conftest.* libconftest.a
  5773. fi
  5774. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5775. fi
  5776. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
  5777. $as_echo "$lt_cv_ar_at_file" >&6; }
  5778. if test "x$lt_cv_ar_at_file" = xno; then
  5779. archiver_list_spec=
  5780. else
  5781. archiver_list_spec=$lt_cv_ar_at_file
  5782. fi
  5783. if test -n "$ac_tool_prefix"; then
  5784. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  5785. set dummy ${ac_tool_prefix}strip; ac_word=$2
  5786. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5787. $as_echo_n "checking for $ac_word... " >&6; }
  5788. if ${ac_cv_prog_STRIP+:} false; then :
  5789. $as_echo_n "(cached) " >&6
  5790. else
  5791. if test -n "$STRIP"; then
  5792. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  5793. else
  5794. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5795. for as_dir in $PATH
  5796. do
  5797. IFS=$as_save_IFS
  5798. test -z "$as_dir" && as_dir=.
  5799. for ac_exec_ext in '' $ac_executable_extensions; do
  5800. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5801. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  5802. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5803. break 2
  5804. fi
  5805. done
  5806. done
  5807. IFS=$as_save_IFS
  5808. fi
  5809. fi
  5810. STRIP=$ac_cv_prog_STRIP
  5811. if test -n "$STRIP"; then
  5812. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  5813. $as_echo "$STRIP" >&6; }
  5814. else
  5815. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5816. $as_echo "no" >&6; }
  5817. fi
  5818. fi
  5819. if test -z "$ac_cv_prog_STRIP"; then
  5820. ac_ct_STRIP=$STRIP
  5821. # Extract the first word of "strip", so it can be a program name with args.
  5822. set dummy strip; ac_word=$2
  5823. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5824. $as_echo_n "checking for $ac_word... " >&6; }
  5825. if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
  5826. $as_echo_n "(cached) " >&6
  5827. else
  5828. if test -n "$ac_ct_STRIP"; then
  5829. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  5830. else
  5831. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5832. for as_dir in $PATH
  5833. do
  5834. IFS=$as_save_IFS
  5835. test -z "$as_dir" && as_dir=.
  5836. for ac_exec_ext in '' $ac_executable_extensions; do
  5837. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5838. ac_cv_prog_ac_ct_STRIP="strip"
  5839. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5840. break 2
  5841. fi
  5842. done
  5843. done
  5844. IFS=$as_save_IFS
  5845. fi
  5846. fi
  5847. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  5848. if test -n "$ac_ct_STRIP"; then
  5849. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  5850. $as_echo "$ac_ct_STRIP" >&6; }
  5851. else
  5852. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5853. $as_echo "no" >&6; }
  5854. fi
  5855. if test "x$ac_ct_STRIP" = x; then
  5856. STRIP=":"
  5857. else
  5858. case $cross_compiling:$ac_tool_warned in
  5859. yes:)
  5860. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5861. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5862. ac_tool_warned=yes ;;
  5863. esac
  5864. STRIP=$ac_ct_STRIP
  5865. fi
  5866. else
  5867. STRIP="$ac_cv_prog_STRIP"
  5868. fi
  5869. test -z "$STRIP" && STRIP=:
  5870. if test -n "$ac_tool_prefix"; then
  5871. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  5872. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  5873. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5874. $as_echo_n "checking for $ac_word... " >&6; }
  5875. if ${ac_cv_prog_RANLIB+:} false; then :
  5876. $as_echo_n "(cached) " >&6
  5877. else
  5878. if test -n "$RANLIB"; then
  5879. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  5880. else
  5881. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5882. for as_dir in $PATH
  5883. do
  5884. IFS=$as_save_IFS
  5885. test -z "$as_dir" && as_dir=.
  5886. for ac_exec_ext in '' $ac_executable_extensions; do
  5887. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5888. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  5889. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5890. break 2
  5891. fi
  5892. done
  5893. done
  5894. IFS=$as_save_IFS
  5895. fi
  5896. fi
  5897. RANLIB=$ac_cv_prog_RANLIB
  5898. if test -n "$RANLIB"; then
  5899. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  5900. $as_echo "$RANLIB" >&6; }
  5901. else
  5902. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5903. $as_echo "no" >&6; }
  5904. fi
  5905. fi
  5906. if test -z "$ac_cv_prog_RANLIB"; then
  5907. ac_ct_RANLIB=$RANLIB
  5908. # Extract the first word of "ranlib", so it can be a program name with args.
  5909. set dummy ranlib; ac_word=$2
  5910. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5911. $as_echo_n "checking for $ac_word... " >&6; }
  5912. if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
  5913. $as_echo_n "(cached) " >&6
  5914. else
  5915. if test -n "$ac_ct_RANLIB"; then
  5916. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  5917. else
  5918. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5919. for as_dir in $PATH
  5920. do
  5921. IFS=$as_save_IFS
  5922. test -z "$as_dir" && as_dir=.
  5923. for ac_exec_ext in '' $ac_executable_extensions; do
  5924. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5925. ac_cv_prog_ac_ct_RANLIB="ranlib"
  5926. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5927. break 2
  5928. fi
  5929. done
  5930. done
  5931. IFS=$as_save_IFS
  5932. fi
  5933. fi
  5934. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  5935. if test -n "$ac_ct_RANLIB"; then
  5936. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  5937. $as_echo "$ac_ct_RANLIB" >&6; }
  5938. else
  5939. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5940. $as_echo "no" >&6; }
  5941. fi
  5942. if test "x$ac_ct_RANLIB" = x; then
  5943. RANLIB=":"
  5944. else
  5945. case $cross_compiling:$ac_tool_warned in
  5946. yes:)
  5947. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5948. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5949. ac_tool_warned=yes ;;
  5950. esac
  5951. RANLIB=$ac_ct_RANLIB
  5952. fi
  5953. else
  5954. RANLIB="$ac_cv_prog_RANLIB"
  5955. fi
  5956. test -z "$RANLIB" && RANLIB=:
  5957. # Determine commands to create old-style static archives.
  5958. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
  5959. old_postinstall_cmds='chmod 644 $oldlib'
  5960. old_postuninstall_cmds=
  5961. if test -n "$RANLIB"; then
  5962. case $host_os in
  5963. openbsd*)
  5964. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
  5965. ;;
  5966. *)
  5967. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
  5968. ;;
  5969. esac
  5970. old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
  5971. fi
  5972. case $host_os in
  5973. darwin*)
  5974. lock_old_archive_extraction=yes ;;
  5975. *)
  5976. lock_old_archive_extraction=no ;;
  5977. esac
  5978. for ac_prog in gawk mawk nawk awk
  5979. do
  5980. # Extract the first word of "$ac_prog", so it can be a program name with args.
  5981. set dummy $ac_prog; ac_word=$2
  5982. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5983. $as_echo_n "checking for $ac_word... " >&6; }
  5984. if ${ac_cv_prog_AWK+:} false; then :
  5985. $as_echo_n "(cached) " >&6
  5986. else
  5987. if test -n "$AWK"; then
  5988. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  5989. else
  5990. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5991. for as_dir in $PATH
  5992. do
  5993. IFS=$as_save_IFS
  5994. test -z "$as_dir" && as_dir=.
  5995. for ac_exec_ext in '' $ac_executable_extensions; do
  5996. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5997. ac_cv_prog_AWK="$ac_prog"
  5998. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5999. break 2
  6000. fi
  6001. done
  6002. done
  6003. IFS=$as_save_IFS
  6004. fi
  6005. fi
  6006. AWK=$ac_cv_prog_AWK
  6007. if test -n "$AWK"; then
  6008. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  6009. $as_echo "$AWK" >&6; }
  6010. else
  6011. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6012. $as_echo "no" >&6; }
  6013. fi
  6014. test -n "$AWK" && break
  6015. done
  6016. # If no C compiler was specified, use CC.
  6017. LTCC=${LTCC-"$CC"}
  6018. # If no C compiler flags were specified, use CFLAGS.
  6019. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  6020. # Allow CC to be a program name with arguments.
  6021. compiler=$CC
  6022. # Check for command to grab the raw symbol name followed by C symbol from nm.
  6023. { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
  6024. $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
  6025. if ${lt_cv_sys_global_symbol_pipe+:} false; then :
  6026. $as_echo_n "(cached) " >&6
  6027. else
  6028. # These are sane defaults that work on at least a few old systems.
  6029. # [They come from Ultrix. What could be older than Ultrix?!! ;)]
  6030. # Character class describing NM global symbol codes.
  6031. symcode='[BCDEGRST]'
  6032. # Regexp to match symbols that can be accessed directly from C.
  6033. sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
  6034. # Define system-specific variables.
  6035. case $host_os in
  6036. aix*)
  6037. symcode='[BCDT]'
  6038. ;;
  6039. cygwin* | mingw* | pw32* | cegcc*)
  6040. symcode='[ABCDGISTW]'
  6041. ;;
  6042. hpux*)
  6043. if test "$host_cpu" = ia64; then
  6044. symcode='[ABCDEGRST]'
  6045. fi
  6046. ;;
  6047. irix* | nonstopux*)
  6048. symcode='[BCDEGRST]'
  6049. ;;
  6050. osf*)
  6051. symcode='[BCDEGQRST]'
  6052. ;;
  6053. solaris*)
  6054. symcode='[BDRT]'
  6055. ;;
  6056. sco3.2v5*)
  6057. symcode='[DT]'
  6058. ;;
  6059. sysv4.2uw2*)
  6060. symcode='[DT]'
  6061. ;;
  6062. sysv5* | sco5v6* | unixware* | OpenUNIX*)
  6063. symcode='[ABDT]'
  6064. ;;
  6065. sysv4)
  6066. symcode='[DFNSTU]'
  6067. ;;
  6068. esac
  6069. # If we're using GNU nm, then use its standard symbol codes.
  6070. case `$NM -V 2>&1` in
  6071. *GNU* | *'with BFD'*)
  6072. symcode='[ABCDGIRSTW]' ;;
  6073. esac
  6074. # Transform an extracted symbol line into a proper C declaration.
  6075. # Some systems (esp. on ia64) link data and code symbols differently,
  6076. # so use this general approach.
  6077. lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  6078. # Transform an extracted symbol line into symbol name and symbol address
  6079. lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
  6080. 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'"
  6081. # Handle CRLF in mingw tool chain
  6082. opt_cr=
  6083. case $build_os in
  6084. mingw*)
  6085. opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  6086. ;;
  6087. esac
  6088. # Try without a prefix underscore, then with it.
  6089. for ac_symprfx in "" "_"; do
  6090. # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  6091. symxfrm="\\1 $ac_symprfx\\2 \\2"
  6092. # Write the raw and C identifiers.
  6093. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  6094. # Fake it for dumpbin and say T for any non-static function
  6095. # and D for any global variable.
  6096. # Also find C++ and __fastcall symbols from MSVC++,
  6097. # which start with @ or ?.
  6098. lt_cv_sys_global_symbol_pipe="$AWK '"\
  6099. " {last_section=section; section=\$ 3};"\
  6100. " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
  6101. " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
  6102. " \$ 0!~/External *\|/{next};"\
  6103. " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
  6104. " {if(hide[section]) next};"\
  6105. " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
  6106. " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
  6107. " s[1]~/^[@?]/{print s[1], s[1]; next};"\
  6108. " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
  6109. " ' prfx=^$ac_symprfx"
  6110. else
  6111. lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  6112. fi
  6113. lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
  6114. # Check to see that the pipe works correctly.
  6115. pipe_works=no
  6116. rm -f conftest*
  6117. cat > conftest.$ac_ext <<_LT_EOF
  6118. #ifdef __cplusplus
  6119. extern "C" {
  6120. #endif
  6121. char nm_test_var;
  6122. void nm_test_func(void);
  6123. void nm_test_func(void){}
  6124. #ifdef __cplusplus
  6125. }
  6126. #endif
  6127. int main(){nm_test_var='a';nm_test_func();return(0);}
  6128. _LT_EOF
  6129. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6130. (eval $ac_compile) 2>&5
  6131. ac_status=$?
  6132. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6133. test $ac_status = 0; }; then
  6134. # Now try to grab the symbols.
  6135. nlist=conftest.nm
  6136. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
  6137. (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
  6138. ac_status=$?
  6139. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6140. test $ac_status = 0; } && test -s "$nlist"; then
  6141. # Try sorting and uniquifying the output.
  6142. if sort "$nlist" | uniq > "$nlist"T; then
  6143. mv -f "$nlist"T "$nlist"
  6144. else
  6145. rm -f "$nlist"T
  6146. fi
  6147. # Make sure that we snagged all the symbols we need.
  6148. if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
  6149. if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
  6150. cat <<_LT_EOF > conftest.$ac_ext
  6151. /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
  6152. #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
  6153. /* DATA imports from DLLs on WIN32 con't be const, because runtime
  6154. relocations are performed -- see ld's documentation on pseudo-relocs. */
  6155. # define LT_DLSYM_CONST
  6156. #elif defined(__osf__)
  6157. /* This system does not cope well with relocations in const data. */
  6158. # define LT_DLSYM_CONST
  6159. #else
  6160. # define LT_DLSYM_CONST const
  6161. #endif
  6162. #ifdef __cplusplus
  6163. extern "C" {
  6164. #endif
  6165. _LT_EOF
  6166. # Now generate the symbol file.
  6167. eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
  6168. cat <<_LT_EOF >> conftest.$ac_ext
  6169. /* The mapping between symbol names and symbols. */
  6170. LT_DLSYM_CONST struct {
  6171. const char *name;
  6172. void *address;
  6173. }
  6174. lt__PROGRAM__LTX_preloaded_symbols[] =
  6175. {
  6176. { "@PROGRAM@", (void *) 0 },
  6177. _LT_EOF
  6178. $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
  6179. cat <<\_LT_EOF >> conftest.$ac_ext
  6180. {0, (void *) 0}
  6181. };
  6182. /* This works around a problem in FreeBSD linker */
  6183. #ifdef FREEBSD_WORKAROUND
  6184. static const void *lt_preloaded_setup() {
  6185. return lt__PROGRAM__LTX_preloaded_symbols;
  6186. }
  6187. #endif
  6188. #ifdef __cplusplus
  6189. }
  6190. #endif
  6191. _LT_EOF
  6192. # Now try linking the two files.
  6193. mv conftest.$ac_objext conftstm.$ac_objext
  6194. lt_globsym_save_LIBS=$LIBS
  6195. lt_globsym_save_CFLAGS=$CFLAGS
  6196. LIBS="conftstm.$ac_objext"
  6197. CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
  6198. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  6199. (eval $ac_link) 2>&5
  6200. ac_status=$?
  6201. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6202. test $ac_status = 0; } && test -s conftest${ac_exeext}; then
  6203. pipe_works=yes
  6204. fi
  6205. LIBS=$lt_globsym_save_LIBS
  6206. CFLAGS=$lt_globsym_save_CFLAGS
  6207. else
  6208. echo "cannot find nm_test_func in $nlist" >&5
  6209. fi
  6210. else
  6211. echo "cannot find nm_test_var in $nlist" >&5
  6212. fi
  6213. else
  6214. echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
  6215. fi
  6216. else
  6217. echo "$progname: failed program was:" >&5
  6218. cat conftest.$ac_ext >&5
  6219. fi
  6220. rm -rf conftest* conftst*
  6221. # Do not use the global_symbol_pipe unless it works.
  6222. if test "$pipe_works" = yes; then
  6223. break
  6224. else
  6225. lt_cv_sys_global_symbol_pipe=
  6226. fi
  6227. done
  6228. fi
  6229. if test -z "$lt_cv_sys_global_symbol_pipe"; then
  6230. lt_cv_sys_global_symbol_to_cdecl=
  6231. fi
  6232. if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  6233. { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
  6234. $as_echo "failed" >&6; }
  6235. else
  6236. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
  6237. $as_echo "ok" >&6; }
  6238. fi
  6239. # Response file support.
  6240. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  6241. nm_file_list_spec='@'
  6242. elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
  6243. nm_file_list_spec='@'
  6244. fi
  6245. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
  6246. $as_echo_n "checking for sysroot... " >&6; }
  6247. # Check whether --with-sysroot was given.
  6248. if test "${with_sysroot+set}" = set; then :
  6249. withval=$with_sysroot;
  6250. else
  6251. with_sysroot=no
  6252. fi
  6253. lt_sysroot=
  6254. case ${with_sysroot} in #(
  6255. yes)
  6256. if test "$GCC" = yes; then
  6257. lt_sysroot=`$CC --print-sysroot 2>/dev/null`
  6258. fi
  6259. ;; #(
  6260. /*)
  6261. lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
  6262. ;; #(
  6263. no|'')
  6264. ;; #(
  6265. *)
  6266. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
  6267. $as_echo "${with_sysroot}" >&6; }
  6268. as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
  6269. ;;
  6270. esac
  6271. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
  6272. $as_echo "${lt_sysroot:-no}" >&6; }
  6273. # Check whether --enable-libtool-lock was given.
  6274. if test "${enable_libtool_lock+set}" = set; then :
  6275. enableval=$enable_libtool_lock;
  6276. fi
  6277. test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  6278. # Some flags need to be propagated to the compiler or linker for good
  6279. # libtool support.
  6280. case $host in
  6281. ia64-*-hpux*)
  6282. # Find out which ABI we are using.
  6283. echo 'int i;' > conftest.$ac_ext
  6284. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6285. (eval $ac_compile) 2>&5
  6286. ac_status=$?
  6287. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6288. test $ac_status = 0; }; then
  6289. case `/usr/bin/file conftest.$ac_objext` in
  6290. *ELF-32*)
  6291. HPUX_IA64_MODE="32"
  6292. ;;
  6293. *ELF-64*)
  6294. HPUX_IA64_MODE="64"
  6295. ;;
  6296. esac
  6297. fi
  6298. rm -rf conftest*
  6299. ;;
  6300. *-*-irix6*)
  6301. # Find out which ABI we are using.
  6302. echo '#line '$LINENO' "configure"' > conftest.$ac_ext
  6303. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6304. (eval $ac_compile) 2>&5
  6305. ac_status=$?
  6306. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6307. test $ac_status = 0; }; then
  6308. if test "$lt_cv_prog_gnu_ld" = yes; then
  6309. case `/usr/bin/file conftest.$ac_objext` in
  6310. *32-bit*)
  6311. LD="${LD-ld} -melf32bsmip"
  6312. ;;
  6313. *N32*)
  6314. LD="${LD-ld} -melf32bmipn32"
  6315. ;;
  6316. *64-bit*)
  6317. LD="${LD-ld} -melf64bmip"
  6318. ;;
  6319. esac
  6320. else
  6321. case `/usr/bin/file conftest.$ac_objext` in
  6322. *32-bit*)
  6323. LD="${LD-ld} -32"
  6324. ;;
  6325. *N32*)
  6326. LD="${LD-ld} -n32"
  6327. ;;
  6328. *64-bit*)
  6329. LD="${LD-ld} -64"
  6330. ;;
  6331. esac
  6332. fi
  6333. fi
  6334. rm -rf conftest*
  6335. ;;
  6336. x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
  6337. s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
  6338. # Find out which ABI we are using.
  6339. echo 'int i;' > conftest.$ac_ext
  6340. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6341. (eval $ac_compile) 2>&5
  6342. ac_status=$?
  6343. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6344. test $ac_status = 0; }; then
  6345. case `/usr/bin/file conftest.o` in
  6346. *32-bit*)
  6347. case $host in
  6348. x86_64-*kfreebsd*-gnu)
  6349. LD="${LD-ld} -m elf_i386_fbsd"
  6350. ;;
  6351. x86_64-*linux*)
  6352. LD="${LD-ld} -m elf_i386"
  6353. ;;
  6354. ppc64-*linux*|powerpc64-*linux*)
  6355. LD="${LD-ld} -m elf32ppclinux"
  6356. ;;
  6357. s390x-*linux*)
  6358. LD="${LD-ld} -m elf_s390"
  6359. ;;
  6360. sparc64-*linux*)
  6361. LD="${LD-ld} -m elf32_sparc"
  6362. ;;
  6363. esac
  6364. ;;
  6365. *64-bit*)
  6366. case $host in
  6367. x86_64-*kfreebsd*-gnu)
  6368. LD="${LD-ld} -m elf_x86_64_fbsd"
  6369. ;;
  6370. x86_64-*linux*)
  6371. LD="${LD-ld} -m elf_x86_64"
  6372. ;;
  6373. ppc*-*linux*|powerpc*-*linux*)
  6374. LD="${LD-ld} -m elf64ppc"
  6375. ;;
  6376. s390*-*linux*|s390*-*tpf*)
  6377. LD="${LD-ld} -m elf64_s390"
  6378. ;;
  6379. sparc*-*linux*)
  6380. LD="${LD-ld} -m elf64_sparc"
  6381. ;;
  6382. esac
  6383. ;;
  6384. esac
  6385. fi
  6386. rm -rf conftest*
  6387. ;;
  6388. *-*-sco3.2v5*)
  6389. # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  6390. SAVE_CFLAGS="$CFLAGS"
  6391. CFLAGS="$CFLAGS -belf"
  6392. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
  6393. $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
  6394. if ${lt_cv_cc_needs_belf+:} false; then :
  6395. $as_echo_n "(cached) " >&6
  6396. else
  6397. ac_ext=c
  6398. ac_cpp='$CPP $CPPFLAGS'
  6399. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6400. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6401. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6402. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6403. /* end confdefs.h. */
  6404. int
  6405. main ()
  6406. {
  6407. ;
  6408. return 0;
  6409. }
  6410. _ACEOF
  6411. if ac_fn_c_try_link "$LINENO"; then :
  6412. lt_cv_cc_needs_belf=yes
  6413. else
  6414. lt_cv_cc_needs_belf=no
  6415. fi
  6416. rm -f core conftest.err conftest.$ac_objext \
  6417. conftest$ac_exeext conftest.$ac_ext
  6418. ac_ext=c
  6419. ac_cpp='$CPP $CPPFLAGS'
  6420. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6421. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6422. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6423. fi
  6424. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
  6425. $as_echo "$lt_cv_cc_needs_belf" >&6; }
  6426. if test x"$lt_cv_cc_needs_belf" != x"yes"; then
  6427. # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  6428. CFLAGS="$SAVE_CFLAGS"
  6429. fi
  6430. ;;
  6431. *-*solaris*)
  6432. # Find out which ABI we are using.
  6433. echo 'int i;' > conftest.$ac_ext
  6434. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6435. (eval $ac_compile) 2>&5
  6436. ac_status=$?
  6437. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6438. test $ac_status = 0; }; then
  6439. case `/usr/bin/file conftest.o` in
  6440. *64-bit*)
  6441. case $lt_cv_prog_gnu_ld in
  6442. yes*)
  6443. case $host in
  6444. i?86-*-solaris*)
  6445. LD="${LD-ld} -m elf_x86_64"
  6446. ;;
  6447. sparc*-*-solaris*)
  6448. LD="${LD-ld} -m elf64_sparc"
  6449. ;;
  6450. esac
  6451. # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
  6452. if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
  6453. LD="${LD-ld}_sol2"
  6454. fi
  6455. ;;
  6456. *)
  6457. if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
  6458. LD="${LD-ld} -64"
  6459. fi
  6460. ;;
  6461. esac
  6462. ;;
  6463. esac
  6464. fi
  6465. rm -rf conftest*
  6466. ;;
  6467. esac
  6468. need_locks="$enable_libtool_lock"
  6469. if test -n "$ac_tool_prefix"; then
  6470. # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
  6471. set dummy ${ac_tool_prefix}mt; ac_word=$2
  6472. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6473. $as_echo_n "checking for $ac_word... " >&6; }
  6474. if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
  6475. $as_echo_n "(cached) " >&6
  6476. else
  6477. if test -n "$MANIFEST_TOOL"; then
  6478. ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
  6479. else
  6480. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6481. for as_dir in $PATH
  6482. do
  6483. IFS=$as_save_IFS
  6484. test -z "$as_dir" && as_dir=.
  6485. for ac_exec_ext in '' $ac_executable_extensions; do
  6486. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6487. ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
  6488. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6489. break 2
  6490. fi
  6491. done
  6492. done
  6493. IFS=$as_save_IFS
  6494. fi
  6495. fi
  6496. MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
  6497. if test -n "$MANIFEST_TOOL"; then
  6498. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
  6499. $as_echo "$MANIFEST_TOOL" >&6; }
  6500. else
  6501. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6502. $as_echo "no" >&6; }
  6503. fi
  6504. fi
  6505. if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
  6506. ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
  6507. # Extract the first word of "mt", so it can be a program name with args.
  6508. set dummy mt; ac_word=$2
  6509. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6510. $as_echo_n "checking for $ac_word... " >&6; }
  6511. if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
  6512. $as_echo_n "(cached) " >&6
  6513. else
  6514. if test -n "$ac_ct_MANIFEST_TOOL"; then
  6515. ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
  6516. else
  6517. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6518. for as_dir in $PATH
  6519. do
  6520. IFS=$as_save_IFS
  6521. test -z "$as_dir" && as_dir=.
  6522. for ac_exec_ext in '' $ac_executable_extensions; do
  6523. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6524. ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
  6525. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6526. break 2
  6527. fi
  6528. done
  6529. done
  6530. IFS=$as_save_IFS
  6531. fi
  6532. fi
  6533. ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
  6534. if test -n "$ac_ct_MANIFEST_TOOL"; then
  6535. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
  6536. $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
  6537. else
  6538. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6539. $as_echo "no" >&6; }
  6540. fi
  6541. if test "x$ac_ct_MANIFEST_TOOL" = x; then
  6542. MANIFEST_TOOL=":"
  6543. else
  6544. case $cross_compiling:$ac_tool_warned in
  6545. yes:)
  6546. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6547. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6548. ac_tool_warned=yes ;;
  6549. esac
  6550. MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
  6551. fi
  6552. else
  6553. MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
  6554. fi
  6555. test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
  6556. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
  6557. $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
  6558. if ${lt_cv_path_mainfest_tool+:} false; then :
  6559. $as_echo_n "(cached) " >&6
  6560. else
  6561. lt_cv_path_mainfest_tool=no
  6562. echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
  6563. $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
  6564. cat conftest.err >&5
  6565. if $GREP 'Manifest Tool' conftest.out > /dev/null; then
  6566. lt_cv_path_mainfest_tool=yes
  6567. fi
  6568. rm -f conftest*
  6569. fi
  6570. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
  6571. $as_echo "$lt_cv_path_mainfest_tool" >&6; }
  6572. if test "x$lt_cv_path_mainfest_tool" != xyes; then
  6573. MANIFEST_TOOL=:
  6574. fi
  6575. case $host_os in
  6576. rhapsody* | darwin*)
  6577. if test -n "$ac_tool_prefix"; then
  6578. # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
  6579. set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
  6580. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6581. $as_echo_n "checking for $ac_word... " >&6; }
  6582. if ${ac_cv_prog_DSYMUTIL+:} false; then :
  6583. $as_echo_n "(cached) " >&6
  6584. else
  6585. if test -n "$DSYMUTIL"; then
  6586. ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
  6587. else
  6588. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6589. for as_dir in $PATH
  6590. do
  6591. IFS=$as_save_IFS
  6592. test -z "$as_dir" && as_dir=.
  6593. for ac_exec_ext in '' $ac_executable_extensions; do
  6594. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6595. ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
  6596. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6597. break 2
  6598. fi
  6599. done
  6600. done
  6601. IFS=$as_save_IFS
  6602. fi
  6603. fi
  6604. DSYMUTIL=$ac_cv_prog_DSYMUTIL
  6605. if test -n "$DSYMUTIL"; then
  6606. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
  6607. $as_echo "$DSYMUTIL" >&6; }
  6608. else
  6609. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6610. $as_echo "no" >&6; }
  6611. fi
  6612. fi
  6613. if test -z "$ac_cv_prog_DSYMUTIL"; then
  6614. ac_ct_DSYMUTIL=$DSYMUTIL
  6615. # Extract the first word of "dsymutil", so it can be a program name with args.
  6616. set dummy dsymutil; ac_word=$2
  6617. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6618. $as_echo_n "checking for $ac_word... " >&6; }
  6619. if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
  6620. $as_echo_n "(cached) " >&6
  6621. else
  6622. if test -n "$ac_ct_DSYMUTIL"; then
  6623. ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
  6624. else
  6625. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6626. for as_dir in $PATH
  6627. do
  6628. IFS=$as_save_IFS
  6629. test -z "$as_dir" && as_dir=.
  6630. for ac_exec_ext in '' $ac_executable_extensions; do
  6631. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6632. ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
  6633. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6634. break 2
  6635. fi
  6636. done
  6637. done
  6638. IFS=$as_save_IFS
  6639. fi
  6640. fi
  6641. ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
  6642. if test -n "$ac_ct_DSYMUTIL"; then
  6643. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
  6644. $as_echo "$ac_ct_DSYMUTIL" >&6; }
  6645. else
  6646. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6647. $as_echo "no" >&6; }
  6648. fi
  6649. if test "x$ac_ct_DSYMUTIL" = x; then
  6650. DSYMUTIL=":"
  6651. else
  6652. case $cross_compiling:$ac_tool_warned in
  6653. yes:)
  6654. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6655. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6656. ac_tool_warned=yes ;;
  6657. esac
  6658. DSYMUTIL=$ac_ct_DSYMUTIL
  6659. fi
  6660. else
  6661. DSYMUTIL="$ac_cv_prog_DSYMUTIL"
  6662. fi
  6663. if test -n "$ac_tool_prefix"; then
  6664. # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
  6665. set dummy ${ac_tool_prefix}nmedit; ac_word=$2
  6666. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6667. $as_echo_n "checking for $ac_word... " >&6; }
  6668. if ${ac_cv_prog_NMEDIT+:} false; then :
  6669. $as_echo_n "(cached) " >&6
  6670. else
  6671. if test -n "$NMEDIT"; then
  6672. ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
  6673. else
  6674. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6675. for as_dir in $PATH
  6676. do
  6677. IFS=$as_save_IFS
  6678. test -z "$as_dir" && as_dir=.
  6679. for ac_exec_ext in '' $ac_executable_extensions; do
  6680. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6681. ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
  6682. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6683. break 2
  6684. fi
  6685. done
  6686. done
  6687. IFS=$as_save_IFS
  6688. fi
  6689. fi
  6690. NMEDIT=$ac_cv_prog_NMEDIT
  6691. if test -n "$NMEDIT"; then
  6692. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
  6693. $as_echo "$NMEDIT" >&6; }
  6694. else
  6695. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6696. $as_echo "no" >&6; }
  6697. fi
  6698. fi
  6699. if test -z "$ac_cv_prog_NMEDIT"; then
  6700. ac_ct_NMEDIT=$NMEDIT
  6701. # Extract the first word of "nmedit", so it can be a program name with args.
  6702. set dummy nmedit; ac_word=$2
  6703. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6704. $as_echo_n "checking for $ac_word... " >&6; }
  6705. if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
  6706. $as_echo_n "(cached) " >&6
  6707. else
  6708. if test -n "$ac_ct_NMEDIT"; then
  6709. ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
  6710. else
  6711. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6712. for as_dir in $PATH
  6713. do
  6714. IFS=$as_save_IFS
  6715. test -z "$as_dir" && as_dir=.
  6716. for ac_exec_ext in '' $ac_executable_extensions; do
  6717. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6718. ac_cv_prog_ac_ct_NMEDIT="nmedit"
  6719. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6720. break 2
  6721. fi
  6722. done
  6723. done
  6724. IFS=$as_save_IFS
  6725. fi
  6726. fi
  6727. ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
  6728. if test -n "$ac_ct_NMEDIT"; then
  6729. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
  6730. $as_echo "$ac_ct_NMEDIT" >&6; }
  6731. else
  6732. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6733. $as_echo "no" >&6; }
  6734. fi
  6735. if test "x$ac_ct_NMEDIT" = x; then
  6736. NMEDIT=":"
  6737. else
  6738. case $cross_compiling:$ac_tool_warned in
  6739. yes:)
  6740. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6741. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6742. ac_tool_warned=yes ;;
  6743. esac
  6744. NMEDIT=$ac_ct_NMEDIT
  6745. fi
  6746. else
  6747. NMEDIT="$ac_cv_prog_NMEDIT"
  6748. fi
  6749. if test -n "$ac_tool_prefix"; then
  6750. # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
  6751. set dummy ${ac_tool_prefix}lipo; ac_word=$2
  6752. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6753. $as_echo_n "checking for $ac_word... " >&6; }
  6754. if ${ac_cv_prog_LIPO+:} false; then :
  6755. $as_echo_n "(cached) " >&6
  6756. else
  6757. if test -n "$LIPO"; then
  6758. ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
  6759. else
  6760. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6761. for as_dir in $PATH
  6762. do
  6763. IFS=$as_save_IFS
  6764. test -z "$as_dir" && as_dir=.
  6765. for ac_exec_ext in '' $ac_executable_extensions; do
  6766. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6767. ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
  6768. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6769. break 2
  6770. fi
  6771. done
  6772. done
  6773. IFS=$as_save_IFS
  6774. fi
  6775. fi
  6776. LIPO=$ac_cv_prog_LIPO
  6777. if test -n "$LIPO"; then
  6778. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
  6779. $as_echo "$LIPO" >&6; }
  6780. else
  6781. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6782. $as_echo "no" >&6; }
  6783. fi
  6784. fi
  6785. if test -z "$ac_cv_prog_LIPO"; then
  6786. ac_ct_LIPO=$LIPO
  6787. # Extract the first word of "lipo", so it can be a program name with args.
  6788. set dummy lipo; ac_word=$2
  6789. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6790. $as_echo_n "checking for $ac_word... " >&6; }
  6791. if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
  6792. $as_echo_n "(cached) " >&6
  6793. else
  6794. if test -n "$ac_ct_LIPO"; then
  6795. ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
  6796. else
  6797. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6798. for as_dir in $PATH
  6799. do
  6800. IFS=$as_save_IFS
  6801. test -z "$as_dir" && as_dir=.
  6802. for ac_exec_ext in '' $ac_executable_extensions; do
  6803. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6804. ac_cv_prog_ac_ct_LIPO="lipo"
  6805. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6806. break 2
  6807. fi
  6808. done
  6809. done
  6810. IFS=$as_save_IFS
  6811. fi
  6812. fi
  6813. ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
  6814. if test -n "$ac_ct_LIPO"; then
  6815. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
  6816. $as_echo "$ac_ct_LIPO" >&6; }
  6817. else
  6818. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6819. $as_echo "no" >&6; }
  6820. fi
  6821. if test "x$ac_ct_LIPO" = x; then
  6822. LIPO=":"
  6823. else
  6824. case $cross_compiling:$ac_tool_warned in
  6825. yes:)
  6826. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6827. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6828. ac_tool_warned=yes ;;
  6829. esac
  6830. LIPO=$ac_ct_LIPO
  6831. fi
  6832. else
  6833. LIPO="$ac_cv_prog_LIPO"
  6834. fi
  6835. if test -n "$ac_tool_prefix"; then
  6836. # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
  6837. set dummy ${ac_tool_prefix}otool; ac_word=$2
  6838. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6839. $as_echo_n "checking for $ac_word... " >&6; }
  6840. if ${ac_cv_prog_OTOOL+:} false; then :
  6841. $as_echo_n "(cached) " >&6
  6842. else
  6843. if test -n "$OTOOL"; then
  6844. ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
  6845. else
  6846. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6847. for as_dir in $PATH
  6848. do
  6849. IFS=$as_save_IFS
  6850. test -z "$as_dir" && as_dir=.
  6851. for ac_exec_ext in '' $ac_executable_extensions; do
  6852. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6853. ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
  6854. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6855. break 2
  6856. fi
  6857. done
  6858. done
  6859. IFS=$as_save_IFS
  6860. fi
  6861. fi
  6862. OTOOL=$ac_cv_prog_OTOOL
  6863. if test -n "$OTOOL"; then
  6864. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
  6865. $as_echo "$OTOOL" >&6; }
  6866. else
  6867. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6868. $as_echo "no" >&6; }
  6869. fi
  6870. fi
  6871. if test -z "$ac_cv_prog_OTOOL"; then
  6872. ac_ct_OTOOL=$OTOOL
  6873. # Extract the first word of "otool", so it can be a program name with args.
  6874. set dummy otool; ac_word=$2
  6875. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6876. $as_echo_n "checking for $ac_word... " >&6; }
  6877. if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
  6878. $as_echo_n "(cached) " >&6
  6879. else
  6880. if test -n "$ac_ct_OTOOL"; then
  6881. ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
  6882. else
  6883. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6884. for as_dir in $PATH
  6885. do
  6886. IFS=$as_save_IFS
  6887. test -z "$as_dir" && as_dir=.
  6888. for ac_exec_ext in '' $ac_executable_extensions; do
  6889. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6890. ac_cv_prog_ac_ct_OTOOL="otool"
  6891. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6892. break 2
  6893. fi
  6894. done
  6895. done
  6896. IFS=$as_save_IFS
  6897. fi
  6898. fi
  6899. ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
  6900. if test -n "$ac_ct_OTOOL"; then
  6901. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
  6902. $as_echo "$ac_ct_OTOOL" >&6; }
  6903. else
  6904. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6905. $as_echo "no" >&6; }
  6906. fi
  6907. if test "x$ac_ct_OTOOL" = x; then
  6908. OTOOL=":"
  6909. else
  6910. case $cross_compiling:$ac_tool_warned in
  6911. yes:)
  6912. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6913. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6914. ac_tool_warned=yes ;;
  6915. esac
  6916. OTOOL=$ac_ct_OTOOL
  6917. fi
  6918. else
  6919. OTOOL="$ac_cv_prog_OTOOL"
  6920. fi
  6921. if test -n "$ac_tool_prefix"; then
  6922. # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
  6923. set dummy ${ac_tool_prefix}otool64; ac_word=$2
  6924. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6925. $as_echo_n "checking for $ac_word... " >&6; }
  6926. if ${ac_cv_prog_OTOOL64+:} false; then :
  6927. $as_echo_n "(cached) " >&6
  6928. else
  6929. if test -n "$OTOOL64"; then
  6930. ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
  6931. else
  6932. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6933. for as_dir in $PATH
  6934. do
  6935. IFS=$as_save_IFS
  6936. test -z "$as_dir" && as_dir=.
  6937. for ac_exec_ext in '' $ac_executable_extensions; do
  6938. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6939. ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
  6940. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6941. break 2
  6942. fi
  6943. done
  6944. done
  6945. IFS=$as_save_IFS
  6946. fi
  6947. fi
  6948. OTOOL64=$ac_cv_prog_OTOOL64
  6949. if test -n "$OTOOL64"; then
  6950. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
  6951. $as_echo "$OTOOL64" >&6; }
  6952. else
  6953. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6954. $as_echo "no" >&6; }
  6955. fi
  6956. fi
  6957. if test -z "$ac_cv_prog_OTOOL64"; then
  6958. ac_ct_OTOOL64=$OTOOL64
  6959. # Extract the first word of "otool64", so it can be a program name with args.
  6960. set dummy otool64; ac_word=$2
  6961. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6962. $as_echo_n "checking for $ac_word... " >&6; }
  6963. if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
  6964. $as_echo_n "(cached) " >&6
  6965. else
  6966. if test -n "$ac_ct_OTOOL64"; then
  6967. ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
  6968. else
  6969. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6970. for as_dir in $PATH
  6971. do
  6972. IFS=$as_save_IFS
  6973. test -z "$as_dir" && as_dir=.
  6974. for ac_exec_ext in '' $ac_executable_extensions; do
  6975. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6976. ac_cv_prog_ac_ct_OTOOL64="otool64"
  6977. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6978. break 2
  6979. fi
  6980. done
  6981. done
  6982. IFS=$as_save_IFS
  6983. fi
  6984. fi
  6985. ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
  6986. if test -n "$ac_ct_OTOOL64"; then
  6987. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
  6988. $as_echo "$ac_ct_OTOOL64" >&6; }
  6989. else
  6990. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6991. $as_echo "no" >&6; }
  6992. fi
  6993. if test "x$ac_ct_OTOOL64" = x; then
  6994. OTOOL64=":"
  6995. else
  6996. case $cross_compiling:$ac_tool_warned in
  6997. yes:)
  6998. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6999. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7000. ac_tool_warned=yes ;;
  7001. esac
  7002. OTOOL64=$ac_ct_OTOOL64
  7003. fi
  7004. else
  7005. OTOOL64="$ac_cv_prog_OTOOL64"
  7006. fi
  7007. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
  7008. $as_echo_n "checking for -single_module linker flag... " >&6; }
  7009. if ${lt_cv_apple_cc_single_mod+:} false; then :
  7010. $as_echo_n "(cached) " >&6
  7011. else
  7012. lt_cv_apple_cc_single_mod=no
  7013. if test -z "${LT_MULTI_MODULE}"; then
  7014. # By default we will add the -single_module flag. You can override
  7015. # by either setting the environment variable LT_MULTI_MODULE
  7016. # non-empty at configure time, or by adding -multi_module to the
  7017. # link flags.
  7018. rm -rf libconftest.dylib*
  7019. echo "int foo(void){return 1;}" > conftest.c
  7020. echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  7021. -dynamiclib -Wl,-single_module conftest.c" >&5
  7022. $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  7023. -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
  7024. _lt_result=$?
  7025. # If there is a non-empty error log, and "single_module"
  7026. # appears in it, assume the flag caused a linker warning
  7027. if test -s conftest.err && $GREP single_module conftest.err; then
  7028. cat conftest.err >&5
  7029. # Otherwise, if the output was created with a 0 exit code from
  7030. # the compiler, it worked.
  7031. elif test -f libconftest.dylib && test $_lt_result -eq 0; then
  7032. lt_cv_apple_cc_single_mod=yes
  7033. else
  7034. cat conftest.err >&5
  7035. fi
  7036. rm -rf libconftest.dylib*
  7037. rm -f conftest.*
  7038. fi
  7039. fi
  7040. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
  7041. $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
  7042. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
  7043. $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
  7044. if ${lt_cv_ld_exported_symbols_list+:} false; then :
  7045. $as_echo_n "(cached) " >&6
  7046. else
  7047. lt_cv_ld_exported_symbols_list=no
  7048. save_LDFLAGS=$LDFLAGS
  7049. echo "_main" > conftest.sym
  7050. LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
  7051. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7052. /* end confdefs.h. */
  7053. int
  7054. main ()
  7055. {
  7056. ;
  7057. return 0;
  7058. }
  7059. _ACEOF
  7060. if ac_fn_c_try_link "$LINENO"; then :
  7061. lt_cv_ld_exported_symbols_list=yes
  7062. else
  7063. lt_cv_ld_exported_symbols_list=no
  7064. fi
  7065. rm -f core conftest.err conftest.$ac_objext \
  7066. conftest$ac_exeext conftest.$ac_ext
  7067. LDFLAGS="$save_LDFLAGS"
  7068. fi
  7069. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
  7070. $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
  7071. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
  7072. $as_echo_n "checking for -force_load linker flag... " >&6; }
  7073. if ${lt_cv_ld_force_load+:} false; then :
  7074. $as_echo_n "(cached) " >&6
  7075. else
  7076. lt_cv_ld_force_load=no
  7077. cat > conftest.c << _LT_EOF
  7078. int forced_loaded() { return 2;}
  7079. _LT_EOF
  7080. echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
  7081. $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
  7082. echo "$AR cru libconftest.a conftest.o" >&5
  7083. $AR cru libconftest.a conftest.o 2>&5
  7084. echo "$RANLIB libconftest.a" >&5
  7085. $RANLIB libconftest.a 2>&5
  7086. cat > conftest.c << _LT_EOF
  7087. int main() { return 0;}
  7088. _LT_EOF
  7089. echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
  7090. $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
  7091. _lt_result=$?
  7092. if test -s conftest.err && $GREP force_load conftest.err; then
  7093. cat conftest.err >&5
  7094. elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
  7095. lt_cv_ld_force_load=yes
  7096. else
  7097. cat conftest.err >&5
  7098. fi
  7099. rm -f conftest.err libconftest.a conftest conftest.c
  7100. rm -rf conftest.dSYM
  7101. fi
  7102. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
  7103. $as_echo "$lt_cv_ld_force_load" >&6; }
  7104. case $host_os in
  7105. rhapsody* | darwin1.[012])
  7106. _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
  7107. darwin1.*)
  7108. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  7109. darwin*) # darwin 5.x on
  7110. # if running on 10.5 or later, the deployment target defaults
  7111. # to the OS version, if on x86, and 10.4, the deployment
  7112. # target defaults to 10.4. Don't you love it?
  7113. case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
  7114. 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
  7115. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  7116. 10.[012]*)
  7117. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  7118. 10.*)
  7119. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  7120. esac
  7121. ;;
  7122. esac
  7123. if test "$lt_cv_apple_cc_single_mod" = "yes"; then
  7124. _lt_dar_single_mod='$single_module'
  7125. fi
  7126. if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
  7127. _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
  7128. else
  7129. _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
  7130. fi
  7131. if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
  7132. _lt_dsymutil='~$DSYMUTIL $lib || :'
  7133. else
  7134. _lt_dsymutil=
  7135. fi
  7136. ;;
  7137. esac
  7138. for ac_header in dlfcn.h
  7139. do :
  7140. ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
  7141. "
  7142. if test "x$ac_cv_header_dlfcn_h" = xyes; then :
  7143. cat >>confdefs.h <<_ACEOF
  7144. #define HAVE_DLFCN_H 1
  7145. _ACEOF
  7146. fi
  7147. done
  7148. func_stripname_cnf ()
  7149. {
  7150. case ${2} in
  7151. .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
  7152. *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
  7153. esac
  7154. } # func_stripname_cnf
  7155. # Set options
  7156. enable_dlopen=no
  7157. # Check whether --enable-shared was given.
  7158. if test "${enable_shared+set}" = set; then :
  7159. enableval=$enable_shared; p=${PACKAGE-default}
  7160. case $enableval in
  7161. yes) enable_shared=yes ;;
  7162. no) enable_shared=no ;;
  7163. *)
  7164. enable_shared=no
  7165. # Look at the argument we got. We use all the common list separators.
  7166. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  7167. for pkg in $enableval; do
  7168. IFS="$lt_save_ifs"
  7169. if test "X$pkg" = "X$p"; then
  7170. enable_shared=yes
  7171. fi
  7172. done
  7173. IFS="$lt_save_ifs"
  7174. ;;
  7175. esac
  7176. else
  7177. enable_shared=yes
  7178. fi
  7179. # Check whether --enable-static was given.
  7180. if test "${enable_static+set}" = set; then :
  7181. enableval=$enable_static; p=${PACKAGE-default}
  7182. case $enableval in
  7183. yes) enable_static=yes ;;
  7184. no) enable_static=no ;;
  7185. *)
  7186. enable_static=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_static=yes
  7193. fi
  7194. done
  7195. IFS="$lt_save_ifs"
  7196. ;;
  7197. esac
  7198. else
  7199. enable_static=yes
  7200. fi
  7201. # Check whether --with-pic was given.
  7202. if test "${with_pic+set}" = set; then :
  7203. withval=$with_pic; lt_p=${PACKAGE-default}
  7204. case $withval in
  7205. yes|no) pic_mode=$withval ;;
  7206. *)
  7207. pic_mode=default
  7208. # Look at the argument we got. We use all the common list separators.
  7209. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  7210. for lt_pkg in $withval; do
  7211. IFS="$lt_save_ifs"
  7212. if test "X$lt_pkg" = "X$lt_p"; then
  7213. pic_mode=yes
  7214. fi
  7215. done
  7216. IFS="$lt_save_ifs"
  7217. ;;
  7218. esac
  7219. else
  7220. pic_mode=default
  7221. fi
  7222. test -z "$pic_mode" && pic_mode=default
  7223. # Check whether --enable-fast-install was given.
  7224. if test "${enable_fast_install+set}" = set; then :
  7225. enableval=$enable_fast_install; p=${PACKAGE-default}
  7226. case $enableval in
  7227. yes) enable_fast_install=yes ;;
  7228. no) enable_fast_install=no ;;
  7229. *)
  7230. enable_fast_install=no
  7231. # Look at the argument we got. We use all the common list separators.
  7232. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  7233. for pkg in $enableval; do
  7234. IFS="$lt_save_ifs"
  7235. if test "X$pkg" = "X$p"; then
  7236. enable_fast_install=yes
  7237. fi
  7238. done
  7239. IFS="$lt_save_ifs"
  7240. ;;
  7241. esac
  7242. else
  7243. enable_fast_install=yes
  7244. fi
  7245. # This can be used to rebuild libtool when needed
  7246. LIBTOOL_DEPS="$ltmain"
  7247. # Always use our own libtool.
  7248. LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  7249. test -z "$LN_S" && LN_S="ln -s"
  7250. if test -n "${ZSH_VERSION+set}" ; then
  7251. setopt NO_GLOB_SUBST
  7252. fi
  7253. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
  7254. $as_echo_n "checking for objdir... " >&6; }
  7255. if ${lt_cv_objdir+:} false; then :
  7256. $as_echo_n "(cached) " >&6
  7257. else
  7258. rm -f .libs 2>/dev/null
  7259. mkdir .libs 2>/dev/null
  7260. if test -d .libs; then
  7261. lt_cv_objdir=.libs
  7262. else
  7263. # MS-DOS does not allow filenames that begin with a dot.
  7264. lt_cv_objdir=_libs
  7265. fi
  7266. rmdir .libs 2>/dev/null
  7267. fi
  7268. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
  7269. $as_echo "$lt_cv_objdir" >&6; }
  7270. objdir=$lt_cv_objdir
  7271. cat >>confdefs.h <<_ACEOF
  7272. #define LT_OBJDIR "$lt_cv_objdir/"
  7273. _ACEOF
  7274. case $host_os in
  7275. aix3*)
  7276. # AIX sometimes has problems with the GCC collect2 program. For some
  7277. # reason, if we set the COLLECT_NAMES environment variable, the problems
  7278. # vanish in a puff of smoke.
  7279. if test "X${COLLECT_NAMES+set}" != Xset; then
  7280. COLLECT_NAMES=
  7281. export COLLECT_NAMES
  7282. fi
  7283. ;;
  7284. esac
  7285. # Global variables:
  7286. ofile=libtool
  7287. can_build_shared=yes
  7288. # All known linkers require a `.a' archive for static linking (except MSVC,
  7289. # which needs '.lib').
  7290. libext=a
  7291. with_gnu_ld="$lt_cv_prog_gnu_ld"
  7292. old_CC="$CC"
  7293. old_CFLAGS="$CFLAGS"
  7294. # Set sane defaults for various variables
  7295. test -z "$CC" && CC=cc
  7296. test -z "$LTCC" && LTCC=$CC
  7297. test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  7298. test -z "$LD" && LD=ld
  7299. test -z "$ac_objext" && ac_objext=o
  7300. for cc_temp in $compiler""; do
  7301. case $cc_temp in
  7302. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  7303. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  7304. \-*) ;;
  7305. *) break;;
  7306. esac
  7307. done
  7308. cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  7309. # Only perform the check for file, if the check method requires it
  7310. test -z "$MAGIC_CMD" && MAGIC_CMD=file
  7311. case $deplibs_check_method in
  7312. file_magic*)
  7313. if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  7314. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
  7315. $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
  7316. if ${lt_cv_path_MAGIC_CMD+:} false; then :
  7317. $as_echo_n "(cached) " >&6
  7318. else
  7319. case $MAGIC_CMD in
  7320. [\\/*] | ?:[\\/]*)
  7321. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  7322. ;;
  7323. *)
  7324. lt_save_MAGIC_CMD="$MAGIC_CMD"
  7325. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  7326. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  7327. for ac_dir in $ac_dummy; do
  7328. IFS="$lt_save_ifs"
  7329. test -z "$ac_dir" && ac_dir=.
  7330. if test -f $ac_dir/${ac_tool_prefix}file; then
  7331. lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
  7332. if test -n "$file_magic_test_file"; then
  7333. case $deplibs_check_method in
  7334. "file_magic "*)
  7335. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  7336. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  7337. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  7338. $EGREP "$file_magic_regex" > /dev/null; then
  7339. :
  7340. else
  7341. cat <<_LT_EOF 1>&2
  7342. *** Warning: the command libtool uses to detect shared libraries,
  7343. *** $file_magic_cmd, produces output that libtool cannot recognize.
  7344. *** The result is that libtool may fail to recognize shared libraries
  7345. *** as such. This will affect the creation of libtool libraries that
  7346. *** depend on shared libraries, but programs linked with such libtool
  7347. *** libraries will work regardless of this problem. Nevertheless, you
  7348. *** may want to report the problem to your system manager and/or to
  7349. *** bug-libtool@gnu.org
  7350. _LT_EOF
  7351. fi ;;
  7352. esac
  7353. fi
  7354. break
  7355. fi
  7356. done
  7357. IFS="$lt_save_ifs"
  7358. MAGIC_CMD="$lt_save_MAGIC_CMD"
  7359. ;;
  7360. esac
  7361. fi
  7362. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  7363. if test -n "$MAGIC_CMD"; then
  7364. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  7365. $as_echo "$MAGIC_CMD" >&6; }
  7366. else
  7367. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7368. $as_echo "no" >&6; }
  7369. fi
  7370. if test -z "$lt_cv_path_MAGIC_CMD"; then
  7371. if test -n "$ac_tool_prefix"; then
  7372. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
  7373. $as_echo_n "checking for file... " >&6; }
  7374. if ${lt_cv_path_MAGIC_CMD+:} false; then :
  7375. $as_echo_n "(cached) " >&6
  7376. else
  7377. case $MAGIC_CMD in
  7378. [\\/*] | ?:[\\/]*)
  7379. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  7380. ;;
  7381. *)
  7382. lt_save_MAGIC_CMD="$MAGIC_CMD"
  7383. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  7384. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  7385. for ac_dir in $ac_dummy; do
  7386. IFS="$lt_save_ifs"
  7387. test -z "$ac_dir" && ac_dir=.
  7388. if test -f $ac_dir/file; then
  7389. lt_cv_path_MAGIC_CMD="$ac_dir/file"
  7390. if test -n "$file_magic_test_file"; then
  7391. case $deplibs_check_method in
  7392. "file_magic "*)
  7393. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  7394. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  7395. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  7396. $EGREP "$file_magic_regex" > /dev/null; then
  7397. :
  7398. else
  7399. cat <<_LT_EOF 1>&2
  7400. *** Warning: the command libtool uses to detect shared libraries,
  7401. *** $file_magic_cmd, produces output that libtool cannot recognize.
  7402. *** The result is that libtool may fail to recognize shared libraries
  7403. *** as such. This will affect the creation of libtool libraries that
  7404. *** depend on shared libraries, but programs linked with such libtool
  7405. *** libraries will work regardless of this problem. Nevertheless, you
  7406. *** may want to report the problem to your system manager and/or to
  7407. *** bug-libtool@gnu.org
  7408. _LT_EOF
  7409. fi ;;
  7410. esac
  7411. fi
  7412. break
  7413. fi
  7414. done
  7415. IFS="$lt_save_ifs"
  7416. MAGIC_CMD="$lt_save_MAGIC_CMD"
  7417. ;;
  7418. esac
  7419. fi
  7420. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  7421. if test -n "$MAGIC_CMD"; then
  7422. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  7423. $as_echo "$MAGIC_CMD" >&6; }
  7424. else
  7425. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7426. $as_echo "no" >&6; }
  7427. fi
  7428. else
  7429. MAGIC_CMD=:
  7430. fi
  7431. fi
  7432. fi
  7433. ;;
  7434. esac
  7435. # Use C for the default configuration in the libtool script
  7436. lt_save_CC="$CC"
  7437. ac_ext=c
  7438. ac_cpp='$CPP $CPPFLAGS'
  7439. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  7440. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  7441. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  7442. # Source file extension for C test sources.
  7443. ac_ext=c
  7444. # Object file extension for compiled C test sources.
  7445. objext=o
  7446. objext=$objext
  7447. # Code to be used in simple compile tests
  7448. lt_simple_compile_test_code="int some_variable = 0;"
  7449. # Code to be used in simple link tests
  7450. lt_simple_link_test_code='int main(){return(0);}'
  7451. # If no C compiler was specified, use CC.
  7452. LTCC=${LTCC-"$CC"}
  7453. # If no C compiler flags were specified, use CFLAGS.
  7454. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  7455. # Allow CC to be a program name with arguments.
  7456. compiler=$CC
  7457. # Save the default compiler, since it gets overwritten when the other
  7458. # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
  7459. compiler_DEFAULT=$CC
  7460. # save warnings/boilerplate of simple test code
  7461. ac_outfile=conftest.$ac_objext
  7462. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  7463. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  7464. _lt_compiler_boilerplate=`cat conftest.err`
  7465. $RM conftest*
  7466. ac_outfile=conftest.$ac_objext
  7467. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  7468. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  7469. _lt_linker_boilerplate=`cat conftest.err`
  7470. $RM -r conftest*
  7471. if test -n "$compiler"; then
  7472. lt_prog_compiler_no_builtin_flag=
  7473. if test "$GCC" = yes; then
  7474. case $cc_basename in
  7475. nvcc*)
  7476. lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
  7477. *)
  7478. lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
  7479. esac
  7480. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  7481. $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
  7482. if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
  7483. $as_echo_n "(cached) " >&6
  7484. else
  7485. lt_cv_prog_compiler_rtti_exceptions=no
  7486. ac_outfile=conftest.$ac_objext
  7487. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7488. lt_compiler_flag="-fno-rtti -fno-exceptions"
  7489. # Insert the option either (1) after the last *FLAGS variable, or
  7490. # (2) before a word containing "conftest.", or (3) at the end.
  7491. # Note that $ac_compile itself does not contain backslashes and begins
  7492. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7493. # The option is referenced via a variable to avoid confusing sed.
  7494. lt_compile=`echo "$ac_compile" | $SED \
  7495. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7496. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7497. -e 's:$: $lt_compiler_flag:'`
  7498. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7499. (eval "$lt_compile" 2>conftest.err)
  7500. ac_status=$?
  7501. cat conftest.err >&5
  7502. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7503. if (exit $ac_status) && test -s "$ac_outfile"; then
  7504. # The compiler can only warn and ignore the option if not recognized
  7505. # So say no if there are warnings other than the usual output.
  7506. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  7507. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7508. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  7509. lt_cv_prog_compiler_rtti_exceptions=yes
  7510. fi
  7511. fi
  7512. $RM conftest*
  7513. fi
  7514. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  7515. $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
  7516. if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
  7517. lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
  7518. else
  7519. :
  7520. fi
  7521. fi
  7522. lt_prog_compiler_wl=
  7523. lt_prog_compiler_pic=
  7524. lt_prog_compiler_static=
  7525. if test "$GCC" = yes; then
  7526. lt_prog_compiler_wl='-Wl,'
  7527. lt_prog_compiler_static='-static'
  7528. case $host_os in
  7529. aix*)
  7530. # All AIX code is PIC.
  7531. if test "$host_cpu" = ia64; then
  7532. # AIX 5 now supports IA64 processor
  7533. lt_prog_compiler_static='-Bstatic'
  7534. fi
  7535. ;;
  7536. amigaos*)
  7537. case $host_cpu in
  7538. powerpc)
  7539. # see comment about AmigaOS4 .so support
  7540. lt_prog_compiler_pic='-fPIC'
  7541. ;;
  7542. m68k)
  7543. # FIXME: we need at least 68020 code to build shared libraries, but
  7544. # adding the `-m68020' flag to GCC prevents building anything better,
  7545. # like `-m68040'.
  7546. lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
  7547. ;;
  7548. esac
  7549. ;;
  7550. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  7551. # PIC is the default for these OSes.
  7552. ;;
  7553. mingw* | cygwin* | pw32* | os2* | cegcc*)
  7554. # This hack is so that the source file can tell whether it is being
  7555. # built for inclusion in a dll (and should export symbols for example).
  7556. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  7557. # (--disable-auto-import) libraries
  7558. lt_prog_compiler_pic='-DDLL_EXPORT'
  7559. ;;
  7560. darwin* | rhapsody*)
  7561. # PIC is the default on this platform
  7562. # Common symbols not allowed in MH_DYLIB files
  7563. lt_prog_compiler_pic='-fno-common'
  7564. ;;
  7565. haiku*)
  7566. # PIC is the default for Haiku.
  7567. # The "-static" flag exists, but is broken.
  7568. lt_prog_compiler_static=
  7569. ;;
  7570. hpux*)
  7571. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  7572. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  7573. # sets the default TLS model and affects inlining.
  7574. case $host_cpu in
  7575. hppa*64*)
  7576. # +Z the default
  7577. ;;
  7578. *)
  7579. lt_prog_compiler_pic='-fPIC'
  7580. ;;
  7581. esac
  7582. ;;
  7583. interix[3-9]*)
  7584. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  7585. # Instead, we relocate shared libraries at runtime.
  7586. ;;
  7587. msdosdjgpp*)
  7588. # Just because we use GCC doesn't mean we suddenly get shared libraries
  7589. # on systems that don't support them.
  7590. lt_prog_compiler_can_build_shared=no
  7591. enable_shared=no
  7592. ;;
  7593. *nto* | *qnx*)
  7594. # QNX uses GNU C++, but need to define -shared option too, otherwise
  7595. # it will coredump.
  7596. lt_prog_compiler_pic='-fPIC -shared'
  7597. ;;
  7598. sysv4*MP*)
  7599. if test -d /usr/nec; then
  7600. lt_prog_compiler_pic=-Kconform_pic
  7601. fi
  7602. ;;
  7603. *)
  7604. lt_prog_compiler_pic='-fPIC'
  7605. ;;
  7606. esac
  7607. case $cc_basename in
  7608. nvcc*) # Cuda Compiler Driver 2.2
  7609. lt_prog_compiler_wl='-Xlinker '
  7610. if test -n "$lt_prog_compiler_pic"; then
  7611. lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
  7612. fi
  7613. ;;
  7614. esac
  7615. else
  7616. # PORTME Check for flag to pass linker flags through the system compiler.
  7617. case $host_os in
  7618. aix*)
  7619. lt_prog_compiler_wl='-Wl,'
  7620. if test "$host_cpu" = ia64; then
  7621. # AIX 5 now supports IA64 processor
  7622. lt_prog_compiler_static='-Bstatic'
  7623. else
  7624. lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
  7625. fi
  7626. ;;
  7627. mingw* | cygwin* | pw32* | os2* | cegcc*)
  7628. # This hack is so that the source file can tell whether it is being
  7629. # built for inclusion in a dll (and should export symbols for example).
  7630. lt_prog_compiler_pic='-DDLL_EXPORT'
  7631. ;;
  7632. hpux9* | hpux10* | hpux11*)
  7633. lt_prog_compiler_wl='-Wl,'
  7634. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  7635. # not for PA HP-UX.
  7636. case $host_cpu in
  7637. hppa*64*|ia64*)
  7638. # +Z the default
  7639. ;;
  7640. *)
  7641. lt_prog_compiler_pic='+Z'
  7642. ;;
  7643. esac
  7644. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  7645. lt_prog_compiler_static='${wl}-a ${wl}archive'
  7646. ;;
  7647. irix5* | irix6* | nonstopux*)
  7648. lt_prog_compiler_wl='-Wl,'
  7649. # PIC (with -KPIC) is the default.
  7650. lt_prog_compiler_static='-non_shared'
  7651. ;;
  7652. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  7653. case $cc_basename in
  7654. # old Intel for x86_64 which still supported -KPIC.
  7655. ecc*)
  7656. lt_prog_compiler_wl='-Wl,'
  7657. lt_prog_compiler_pic='-KPIC'
  7658. lt_prog_compiler_static='-static'
  7659. ;;
  7660. # icc used to be incompatible with GCC.
  7661. # ICC 10 doesn't accept -KPIC any more.
  7662. icc* | ifort*)
  7663. lt_prog_compiler_wl='-Wl,'
  7664. lt_prog_compiler_pic='-fPIC'
  7665. lt_prog_compiler_static='-static'
  7666. ;;
  7667. # Lahey Fortran 8.1.
  7668. lf95*)
  7669. lt_prog_compiler_wl='-Wl,'
  7670. lt_prog_compiler_pic='--shared'
  7671. lt_prog_compiler_static='--static'
  7672. ;;
  7673. nagfor*)
  7674. # NAG Fortran compiler
  7675. lt_prog_compiler_wl='-Wl,-Wl,,'
  7676. lt_prog_compiler_pic='-PIC'
  7677. lt_prog_compiler_static='-Bstatic'
  7678. ;;
  7679. pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
  7680. # Portland Group compilers (*not* the Pentium gcc compiler,
  7681. # which looks to be a dead project)
  7682. lt_prog_compiler_wl='-Wl,'
  7683. lt_prog_compiler_pic='-fpic'
  7684. lt_prog_compiler_static='-Bstatic'
  7685. ;;
  7686. ccc*)
  7687. lt_prog_compiler_wl='-Wl,'
  7688. # All Alpha code is PIC.
  7689. lt_prog_compiler_static='-non_shared'
  7690. ;;
  7691. xl* | bgxl* | bgf* | mpixl*)
  7692. # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
  7693. lt_prog_compiler_wl='-Wl,'
  7694. lt_prog_compiler_pic='-qpic'
  7695. lt_prog_compiler_static='-qstaticlink'
  7696. ;;
  7697. *)
  7698. case `$CC -V 2>&1 | sed 5q` in
  7699. *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
  7700. # Sun Fortran 8.3 passes all unrecognized flags to the linker
  7701. lt_prog_compiler_pic='-KPIC'
  7702. lt_prog_compiler_static='-Bstatic'
  7703. lt_prog_compiler_wl=''
  7704. ;;
  7705. *Sun\ F* | *Sun*Fortran*)
  7706. lt_prog_compiler_pic='-KPIC'
  7707. lt_prog_compiler_static='-Bstatic'
  7708. lt_prog_compiler_wl='-Qoption ld '
  7709. ;;
  7710. *Sun\ C*)
  7711. # Sun C 5.9
  7712. lt_prog_compiler_pic='-KPIC'
  7713. lt_prog_compiler_static='-Bstatic'
  7714. lt_prog_compiler_wl='-Wl,'
  7715. ;;
  7716. *Intel*\ [CF]*Compiler*)
  7717. lt_prog_compiler_wl='-Wl,'
  7718. lt_prog_compiler_pic='-fPIC'
  7719. lt_prog_compiler_static='-static'
  7720. ;;
  7721. *Portland\ Group*)
  7722. lt_prog_compiler_wl='-Wl,'
  7723. lt_prog_compiler_pic='-fpic'
  7724. lt_prog_compiler_static='-Bstatic'
  7725. ;;
  7726. esac
  7727. ;;
  7728. esac
  7729. ;;
  7730. newsos6)
  7731. lt_prog_compiler_pic='-KPIC'
  7732. lt_prog_compiler_static='-Bstatic'
  7733. ;;
  7734. *nto* | *qnx*)
  7735. # QNX uses GNU C++, but need to define -shared option too, otherwise
  7736. # it will coredump.
  7737. lt_prog_compiler_pic='-fPIC -shared'
  7738. ;;
  7739. osf3* | osf4* | osf5*)
  7740. lt_prog_compiler_wl='-Wl,'
  7741. # All OSF/1 code is PIC.
  7742. lt_prog_compiler_static='-non_shared'
  7743. ;;
  7744. rdos*)
  7745. lt_prog_compiler_static='-non_shared'
  7746. ;;
  7747. solaris*)
  7748. lt_prog_compiler_pic='-KPIC'
  7749. lt_prog_compiler_static='-Bstatic'
  7750. case $cc_basename in
  7751. f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
  7752. lt_prog_compiler_wl='-Qoption ld ';;
  7753. *)
  7754. lt_prog_compiler_wl='-Wl,';;
  7755. esac
  7756. ;;
  7757. sunos4*)
  7758. lt_prog_compiler_wl='-Qoption ld '
  7759. lt_prog_compiler_pic='-PIC'
  7760. lt_prog_compiler_static='-Bstatic'
  7761. ;;
  7762. sysv4 | sysv4.2uw2* | sysv4.3*)
  7763. lt_prog_compiler_wl='-Wl,'
  7764. lt_prog_compiler_pic='-KPIC'
  7765. lt_prog_compiler_static='-Bstatic'
  7766. ;;
  7767. sysv4*MP*)
  7768. if test -d /usr/nec ;then
  7769. lt_prog_compiler_pic='-Kconform_pic'
  7770. lt_prog_compiler_static='-Bstatic'
  7771. fi
  7772. ;;
  7773. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  7774. lt_prog_compiler_wl='-Wl,'
  7775. lt_prog_compiler_pic='-KPIC'
  7776. lt_prog_compiler_static='-Bstatic'
  7777. ;;
  7778. unicos*)
  7779. lt_prog_compiler_wl='-Wl,'
  7780. lt_prog_compiler_can_build_shared=no
  7781. ;;
  7782. uts4*)
  7783. lt_prog_compiler_pic='-pic'
  7784. lt_prog_compiler_static='-Bstatic'
  7785. ;;
  7786. *)
  7787. lt_prog_compiler_can_build_shared=no
  7788. ;;
  7789. esac
  7790. fi
  7791. case $host_os in
  7792. # For platforms which do not support PIC, -DPIC is meaningless:
  7793. *djgpp*)
  7794. lt_prog_compiler_pic=
  7795. ;;
  7796. *)
  7797. lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
  7798. ;;
  7799. esac
  7800. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  7801. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  7802. if ${lt_cv_prog_compiler_pic+:} false; then :
  7803. $as_echo_n "(cached) " >&6
  7804. else
  7805. lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
  7806. fi
  7807. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
  7808. $as_echo "$lt_cv_prog_compiler_pic" >&6; }
  7809. lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
  7810. #
  7811. # Check to make sure the PIC flag actually works.
  7812. #
  7813. if test -n "$lt_prog_compiler_pic"; then
  7814. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
  7815. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
  7816. if ${lt_cv_prog_compiler_pic_works+:} false; then :
  7817. $as_echo_n "(cached) " >&6
  7818. else
  7819. lt_cv_prog_compiler_pic_works=no
  7820. ac_outfile=conftest.$ac_objext
  7821. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7822. lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
  7823. # Insert the option either (1) after the last *FLAGS variable, or
  7824. # (2) before a word containing "conftest.", or (3) at the end.
  7825. # Note that $ac_compile itself does not contain backslashes and begins
  7826. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7827. # The option is referenced via a variable to avoid confusing sed.
  7828. lt_compile=`echo "$ac_compile" | $SED \
  7829. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7830. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7831. -e 's:$: $lt_compiler_flag:'`
  7832. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7833. (eval "$lt_compile" 2>conftest.err)
  7834. ac_status=$?
  7835. cat conftest.err >&5
  7836. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7837. if (exit $ac_status) && test -s "$ac_outfile"; then
  7838. # The compiler can only warn and ignore the option if not recognized
  7839. # So say no if there are warnings other than the usual output.
  7840. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  7841. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7842. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  7843. lt_cv_prog_compiler_pic_works=yes
  7844. fi
  7845. fi
  7846. $RM conftest*
  7847. fi
  7848. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
  7849. $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
  7850. if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
  7851. case $lt_prog_compiler_pic in
  7852. "" | " "*) ;;
  7853. *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
  7854. esac
  7855. else
  7856. lt_prog_compiler_pic=
  7857. lt_prog_compiler_can_build_shared=no
  7858. fi
  7859. fi
  7860. #
  7861. # Check to make sure the static flag actually works.
  7862. #
  7863. wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
  7864. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  7865. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  7866. if ${lt_cv_prog_compiler_static_works+:} false; then :
  7867. $as_echo_n "(cached) " >&6
  7868. else
  7869. lt_cv_prog_compiler_static_works=no
  7870. save_LDFLAGS="$LDFLAGS"
  7871. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  7872. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  7873. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  7874. # The linker can only warn and ignore the option if not recognized
  7875. # So say no if there are warnings
  7876. if test -s conftest.err; then
  7877. # Append any errors to the config.log.
  7878. cat conftest.err 1>&5
  7879. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  7880. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7881. if diff conftest.exp conftest.er2 >/dev/null; then
  7882. lt_cv_prog_compiler_static_works=yes
  7883. fi
  7884. else
  7885. lt_cv_prog_compiler_static_works=yes
  7886. fi
  7887. fi
  7888. $RM -r conftest*
  7889. LDFLAGS="$save_LDFLAGS"
  7890. fi
  7891. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
  7892. $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
  7893. if test x"$lt_cv_prog_compiler_static_works" = xyes; then
  7894. :
  7895. else
  7896. lt_prog_compiler_static=
  7897. fi
  7898. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  7899. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  7900. if ${lt_cv_prog_compiler_c_o+:} false; then :
  7901. $as_echo_n "(cached) " >&6
  7902. else
  7903. lt_cv_prog_compiler_c_o=no
  7904. $RM -r conftest 2>/dev/null
  7905. mkdir conftest
  7906. cd conftest
  7907. mkdir out
  7908. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7909. lt_compiler_flag="-o out/conftest2.$ac_objext"
  7910. # Insert the option either (1) after the last *FLAGS variable, or
  7911. # (2) before a word containing "conftest.", or (3) at the end.
  7912. # Note that $ac_compile itself does not contain backslashes and begins
  7913. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7914. lt_compile=`echo "$ac_compile" | $SED \
  7915. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7916. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7917. -e 's:$: $lt_compiler_flag:'`
  7918. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7919. (eval "$lt_compile" 2>out/conftest.err)
  7920. ac_status=$?
  7921. cat out/conftest.err >&5
  7922. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7923. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  7924. then
  7925. # The compiler can only warn and ignore the option if not recognized
  7926. # So say no if there are warnings
  7927. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  7928. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  7929. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  7930. lt_cv_prog_compiler_c_o=yes
  7931. fi
  7932. fi
  7933. chmod u+w . 2>&5
  7934. $RM conftest*
  7935. # SGI C++ compiler will create directory out/ii_files/ for
  7936. # template instantiation
  7937. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  7938. $RM out/* && rmdir out
  7939. cd ..
  7940. $RM -r conftest
  7941. $RM conftest*
  7942. fi
  7943. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  7944. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  7945. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  7946. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  7947. if ${lt_cv_prog_compiler_c_o+:} false; then :
  7948. $as_echo_n "(cached) " >&6
  7949. else
  7950. lt_cv_prog_compiler_c_o=no
  7951. $RM -r conftest 2>/dev/null
  7952. mkdir conftest
  7953. cd conftest
  7954. mkdir out
  7955. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7956. lt_compiler_flag="-o out/conftest2.$ac_objext"
  7957. # Insert the option either (1) after the last *FLAGS variable, or
  7958. # (2) before a word containing "conftest.", or (3) at the end.
  7959. # Note that $ac_compile itself does not contain backslashes and begins
  7960. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7961. lt_compile=`echo "$ac_compile" | $SED \
  7962. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7963. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7964. -e 's:$: $lt_compiler_flag:'`
  7965. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7966. (eval "$lt_compile" 2>out/conftest.err)
  7967. ac_status=$?
  7968. cat out/conftest.err >&5
  7969. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7970. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  7971. then
  7972. # The compiler can only warn and ignore the option if not recognized
  7973. # So say no if there are warnings
  7974. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  7975. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  7976. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  7977. lt_cv_prog_compiler_c_o=yes
  7978. fi
  7979. fi
  7980. chmod u+w . 2>&5
  7981. $RM conftest*
  7982. # SGI C++ compiler will create directory out/ii_files/ for
  7983. # template instantiation
  7984. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  7985. $RM out/* && rmdir out
  7986. cd ..
  7987. $RM -r conftest
  7988. $RM conftest*
  7989. fi
  7990. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  7991. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  7992. hard_links="nottested"
  7993. if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
  7994. # do not overwrite the value of need_locks provided by the user
  7995. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  7996. $as_echo_n "checking if we can lock with hard links... " >&6; }
  7997. hard_links=yes
  7998. $RM conftest*
  7999. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  8000. touch conftest.a
  8001. ln conftest.a conftest.b 2>&5 || hard_links=no
  8002. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  8003. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  8004. $as_echo "$hard_links" >&6; }
  8005. if test "$hard_links" = no; then
  8006. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  8007. $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  8008. need_locks=warn
  8009. fi
  8010. else
  8011. need_locks=no
  8012. fi
  8013. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  8014. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  8015. runpath_var=
  8016. allow_undefined_flag=
  8017. always_export_symbols=no
  8018. archive_cmds=
  8019. archive_expsym_cmds=
  8020. compiler_needs_object=no
  8021. enable_shared_with_static_runtimes=no
  8022. export_dynamic_flag_spec=
  8023. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  8024. hardcode_automatic=no
  8025. hardcode_direct=no
  8026. hardcode_direct_absolute=no
  8027. hardcode_libdir_flag_spec=
  8028. hardcode_libdir_separator=
  8029. hardcode_minus_L=no
  8030. hardcode_shlibpath_var=unsupported
  8031. inherit_rpath=no
  8032. link_all_deplibs=unknown
  8033. module_cmds=
  8034. module_expsym_cmds=
  8035. old_archive_from_new_cmds=
  8036. old_archive_from_expsyms_cmds=
  8037. thread_safe_flag_spec=
  8038. whole_archive_flag_spec=
  8039. # include_expsyms should be a list of space-separated symbols to be *always*
  8040. # included in the symbol list
  8041. include_expsyms=
  8042. # exclude_expsyms can be an extended regexp of symbols to exclude
  8043. # it will be wrapped by ` (' and `)$', so one must not match beginning or
  8044. # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  8045. # as well as any symbol that contains `d'.
  8046. exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  8047. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  8048. # platforms (ab)use it in PIC code, but their linkers get confused if
  8049. # the symbol is explicitly referenced. Since portable code cannot
  8050. # rely on this symbol name, it's probably fine to never include it in
  8051. # preloaded symbol tables.
  8052. # Exclude shared library initialization/finalization symbols.
  8053. extract_expsyms_cmds=
  8054. case $host_os in
  8055. cygwin* | mingw* | pw32* | cegcc*)
  8056. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  8057. # When not using gcc, we currently assume that we are using
  8058. # Microsoft Visual C++.
  8059. if test "$GCC" != yes; then
  8060. with_gnu_ld=no
  8061. fi
  8062. ;;
  8063. interix*)
  8064. # we just hope/assume this is gcc and not c89 (= MSVC++)
  8065. with_gnu_ld=yes
  8066. ;;
  8067. openbsd*)
  8068. with_gnu_ld=no
  8069. ;;
  8070. linux* | k*bsd*-gnu | gnu*)
  8071. link_all_deplibs=no
  8072. ;;
  8073. esac
  8074. ld_shlibs=yes
  8075. # On some targets, GNU ld is compatible enough with the native linker
  8076. # that we're better off using the native interface for both.
  8077. lt_use_gnu_ld_interface=no
  8078. if test "$with_gnu_ld" = yes; then
  8079. case $host_os in
  8080. aix*)
  8081. # The AIX port of GNU ld has always aspired to compatibility
  8082. # with the native linker. However, as the warning in the GNU ld
  8083. # block says, versions before 2.19.5* couldn't really create working
  8084. # shared libraries, regardless of the interface used.
  8085. case `$LD -v 2>&1` in
  8086. *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
  8087. *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
  8088. *\ \(GNU\ Binutils\)\ [3-9]*) ;;
  8089. *)
  8090. lt_use_gnu_ld_interface=yes
  8091. ;;
  8092. esac
  8093. ;;
  8094. *)
  8095. lt_use_gnu_ld_interface=yes
  8096. ;;
  8097. esac
  8098. fi
  8099. if test "$lt_use_gnu_ld_interface" = yes; then
  8100. # If archive_cmds runs LD, not CC, wlarc should be empty
  8101. wlarc='${wl}'
  8102. # Set some defaults for GNU ld with shared library support. These
  8103. # are reset later if shared libraries are not supported. Putting them
  8104. # here allows them to be overridden if necessary.
  8105. runpath_var=LD_RUN_PATH
  8106. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8107. export_dynamic_flag_spec='${wl}--export-dynamic'
  8108. # ancient GNU ld didn't support --whole-archive et. al.
  8109. if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
  8110. whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  8111. else
  8112. whole_archive_flag_spec=
  8113. fi
  8114. supports_anon_versioning=no
  8115. case `$LD -v 2>&1` in
  8116. *GNU\ gold*) supports_anon_versioning=yes ;;
  8117. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  8118. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  8119. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  8120. *\ 2.11.*) ;; # other 2.11 versions
  8121. *) supports_anon_versioning=yes ;;
  8122. esac
  8123. # See if GNU ld supports shared libraries.
  8124. case $host_os in
  8125. aix[3-9]*)
  8126. # On AIX/PPC, the GNU linker is very broken
  8127. if test "$host_cpu" != ia64; then
  8128. ld_shlibs=no
  8129. cat <<_LT_EOF 1>&2
  8130. *** Warning: the GNU linker, at least up to release 2.19, is reported
  8131. *** to be unable to reliably create shared libraries on AIX.
  8132. *** Therefore, libtool is disabling shared libraries support. If you
  8133. *** really care for shared libraries, you may want to install binutils
  8134. *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
  8135. *** You will then need to restart the configuration process.
  8136. _LT_EOF
  8137. fi
  8138. ;;
  8139. amigaos*)
  8140. case $host_cpu in
  8141. powerpc)
  8142. # see comment about AmigaOS4 .so support
  8143. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8144. archive_expsym_cmds=''
  8145. ;;
  8146. m68k)
  8147. 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)'
  8148. hardcode_libdir_flag_spec='-L$libdir'
  8149. hardcode_minus_L=yes
  8150. ;;
  8151. esac
  8152. ;;
  8153. beos*)
  8154. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8155. allow_undefined_flag=unsupported
  8156. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  8157. # support --undefined. This deserves some investigation. FIXME
  8158. archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8159. else
  8160. ld_shlibs=no
  8161. fi
  8162. ;;
  8163. cygwin* | mingw* | pw32* | cegcc*)
  8164. # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
  8165. # as there is no search path for DLLs.
  8166. hardcode_libdir_flag_spec='-L$libdir'
  8167. export_dynamic_flag_spec='${wl}--export-all-symbols'
  8168. allow_undefined_flag=unsupported
  8169. always_export_symbols=no
  8170. enable_shared_with_static_runtimes=yes
  8171. 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'
  8172. exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
  8173. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  8174. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  8175. # If the export-symbols file already is a .def file (1st line
  8176. # is EXPORTS), use it as is; otherwise, prepend...
  8177. archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  8178. cp $export_symbols $output_objdir/$soname.def;
  8179. else
  8180. echo EXPORTS > $output_objdir/$soname.def;
  8181. cat $export_symbols >> $output_objdir/$soname.def;
  8182. fi~
  8183. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  8184. else
  8185. ld_shlibs=no
  8186. fi
  8187. ;;
  8188. haiku*)
  8189. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8190. link_all_deplibs=yes
  8191. ;;
  8192. interix[3-9]*)
  8193. hardcode_direct=no
  8194. hardcode_shlibpath_var=no
  8195. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  8196. export_dynamic_flag_spec='${wl}-E'
  8197. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  8198. # Instead, shared libraries are loaded at an image base (0x10000000 by
  8199. # default) and relocated if they conflict, which is a slow very memory
  8200. # consuming and fragmenting process. To avoid this, we pick a random,
  8201. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  8202. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  8203. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  8204. 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'
  8205. ;;
  8206. gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
  8207. tmp_diet=no
  8208. if test "$host_os" = linux-dietlibc; then
  8209. case $cc_basename in
  8210. diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
  8211. esac
  8212. fi
  8213. if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
  8214. && test "$tmp_diet" = no
  8215. then
  8216. tmp_addflag=' $pic_flag'
  8217. tmp_sharedflag='-shared'
  8218. case $cc_basename,$host_cpu in
  8219. pgcc*) # Portland Group C compiler
  8220. 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'
  8221. tmp_addflag=' $pic_flag'
  8222. ;;
  8223. pgf77* | pgf90* | pgf95* | pgfortran*)
  8224. # Portland Group f77 and f90 compilers
  8225. 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'
  8226. tmp_addflag=' $pic_flag -Mnomain' ;;
  8227. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  8228. tmp_addflag=' -i_dynamic' ;;
  8229. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  8230. tmp_addflag=' -i_dynamic -nofor_main' ;;
  8231. ifc* | ifort*) # Intel Fortran compiler
  8232. tmp_addflag=' -nofor_main' ;;
  8233. lf95*) # Lahey Fortran 8.1
  8234. whole_archive_flag_spec=
  8235. tmp_sharedflag='--shared' ;;
  8236. xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
  8237. tmp_sharedflag='-qmkshrobj'
  8238. tmp_addflag= ;;
  8239. nvcc*) # Cuda Compiler Driver 2.2
  8240. 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'
  8241. compiler_needs_object=yes
  8242. ;;
  8243. esac
  8244. case `$CC -V 2>&1 | sed 5q` in
  8245. *Sun\ C*) # Sun C 5.9
  8246. 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'
  8247. compiler_needs_object=yes
  8248. tmp_sharedflag='-G' ;;
  8249. *Sun\ F*) # Sun Fortran 8.3
  8250. tmp_sharedflag='-G' ;;
  8251. esac
  8252. archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8253. if test "x$supports_anon_versioning" = xyes; then
  8254. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  8255. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  8256. echo "local: *; };" >> $output_objdir/$libname.ver~
  8257. $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  8258. fi
  8259. case $cc_basename in
  8260. xlf* | bgf* | bgxlf* | mpixlf*)
  8261. # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
  8262. whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
  8263. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8264. archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
  8265. if test "x$supports_anon_versioning" = xyes; then
  8266. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  8267. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  8268. echo "local: *; };" >> $output_objdir/$libname.ver~
  8269. $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
  8270. fi
  8271. ;;
  8272. esac
  8273. else
  8274. ld_shlibs=no
  8275. fi
  8276. ;;
  8277. netbsd* | netbsdelf*-gnu)
  8278. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  8279. archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  8280. wlarc=
  8281. else
  8282. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8283. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  8284. fi
  8285. ;;
  8286. solaris*)
  8287. if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
  8288. ld_shlibs=no
  8289. cat <<_LT_EOF 1>&2
  8290. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  8291. *** create shared libraries on Solaris systems. Therefore, libtool
  8292. *** is disabling shared libraries support. We urge you to upgrade GNU
  8293. *** binutils to release 2.9.1 or newer. Another option is to modify
  8294. *** your PATH or compiler configuration so that the native linker is
  8295. *** used, and then restart.
  8296. _LT_EOF
  8297. elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8298. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8299. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  8300. else
  8301. ld_shlibs=no
  8302. fi
  8303. ;;
  8304. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  8305. case `$LD -v 2>&1` in
  8306. *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  8307. ld_shlibs=no
  8308. cat <<_LT_EOF 1>&2
  8309. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  8310. *** reliably create shared libraries on SCO systems. Therefore, libtool
  8311. *** is disabling shared libraries support. We urge you to upgrade GNU
  8312. *** binutils to release 2.16.91.0.3 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. ;;
  8317. *)
  8318. # For security reasons, it is highly recommended that you always
  8319. # use absolute paths for naming shared libraries, and exclude the
  8320. # DT_RUNPATH tag from executables and libraries. But doing so
  8321. # requires that you compile everything twice, which is a pain.
  8322. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8323. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8324. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8325. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  8326. else
  8327. ld_shlibs=no
  8328. fi
  8329. ;;
  8330. esac
  8331. ;;
  8332. sunos4*)
  8333. archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8334. wlarc=
  8335. hardcode_direct=yes
  8336. hardcode_shlibpath_var=no
  8337. ;;
  8338. *)
  8339. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8340. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8341. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  8342. else
  8343. ld_shlibs=no
  8344. fi
  8345. ;;
  8346. esac
  8347. if test "$ld_shlibs" = no; then
  8348. runpath_var=
  8349. hardcode_libdir_flag_spec=
  8350. export_dynamic_flag_spec=
  8351. whole_archive_flag_spec=
  8352. fi
  8353. else
  8354. # PORTME fill in a description of your system's linker (not GNU ld)
  8355. case $host_os in
  8356. aix3*)
  8357. allow_undefined_flag=unsupported
  8358. always_export_symbols=yes
  8359. 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'
  8360. # Note: this linker hardcodes the directories in LIBPATH if there
  8361. # are no directories specified by -L.
  8362. hardcode_minus_L=yes
  8363. if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  8364. # Neither direct hardcoding nor static linking is supported with a
  8365. # broken collect2.
  8366. hardcode_direct=unsupported
  8367. fi
  8368. ;;
  8369. aix[4-9]*)
  8370. if test "$host_cpu" = ia64; then
  8371. # On IA64, the linker does run time linking by default, so we don't
  8372. # have to do anything special.
  8373. aix_use_runtimelinking=no
  8374. exp_sym_flag='-Bexport'
  8375. no_entry_flag=""
  8376. else
  8377. # If we're using GNU nm, then we don't want the "-C" option.
  8378. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  8379. # Also, AIX nm treats weak defined symbols like other global
  8380. # defined symbols, whereas GNU nm marks them as "W".
  8381. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  8382. 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'
  8383. else
  8384. 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'
  8385. fi
  8386. aix_use_runtimelinking=no
  8387. # Test if we are trying to use run time linking or normal
  8388. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  8389. # need to do runtime linking.
  8390. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  8391. for ld_flag in $LDFLAGS; do
  8392. if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  8393. aix_use_runtimelinking=yes
  8394. break
  8395. fi
  8396. done
  8397. ;;
  8398. esac
  8399. exp_sym_flag='-bexport'
  8400. no_entry_flag='-bnoentry'
  8401. fi
  8402. # When large executables or shared objects are built, AIX ld can
  8403. # have problems creating the table of contents. If linking a library
  8404. # or program results in "error TOC overflow" add -mminimal-toc to
  8405. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  8406. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  8407. archive_cmds=''
  8408. hardcode_direct=yes
  8409. hardcode_direct_absolute=yes
  8410. hardcode_libdir_separator=':'
  8411. link_all_deplibs=yes
  8412. file_list_spec='${wl}-f,'
  8413. if test "$GCC" = yes; then
  8414. case $host_os in aix4.[012]|aix4.[012].*)
  8415. # We only want to do this on AIX 4.2 and lower, the check
  8416. # below for broken collect2 doesn't work under 4.3+
  8417. collect2name=`${CC} -print-prog-name=collect2`
  8418. if test -f "$collect2name" &&
  8419. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  8420. then
  8421. # We have reworked collect2
  8422. :
  8423. else
  8424. # We have old collect2
  8425. hardcode_direct=unsupported
  8426. # It fails to find uninstalled libraries when the uninstalled
  8427. # path is not listed in the libpath. Setting hardcode_minus_L
  8428. # to unsupported forces relinking
  8429. hardcode_minus_L=yes
  8430. hardcode_libdir_flag_spec='-L$libdir'
  8431. hardcode_libdir_separator=
  8432. fi
  8433. ;;
  8434. esac
  8435. shared_flag='-shared'
  8436. if test "$aix_use_runtimelinking" = yes; then
  8437. shared_flag="$shared_flag "'${wl}-G'
  8438. fi
  8439. link_all_deplibs=no
  8440. else
  8441. # not using gcc
  8442. if test "$host_cpu" = ia64; then
  8443. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  8444. # chokes on -Wl,-G. The following line is correct:
  8445. shared_flag='-G'
  8446. else
  8447. if test "$aix_use_runtimelinking" = yes; then
  8448. shared_flag='${wl}-G'
  8449. else
  8450. shared_flag='${wl}-bM:SRE'
  8451. fi
  8452. fi
  8453. fi
  8454. export_dynamic_flag_spec='${wl}-bexpall'
  8455. # It seems that -bexpall does not export symbols beginning with
  8456. # underscore (_), so it is better to generate a list of symbols to export.
  8457. always_export_symbols=yes
  8458. if test "$aix_use_runtimelinking" = yes; then
  8459. # Warning - without using the other runtime loading flags (-brtl),
  8460. # -berok will link without error, but may produce a broken library.
  8461. allow_undefined_flag='-berok'
  8462. # Determine the default libpath from the value encoded in an
  8463. # empty executable.
  8464. if test "${lt_cv_aix_libpath+set}" = set; then
  8465. aix_libpath=$lt_cv_aix_libpath
  8466. else
  8467. if ${lt_cv_aix_libpath_+:} false; then :
  8468. $as_echo_n "(cached) " >&6
  8469. else
  8470. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8471. /* end confdefs.h. */
  8472. int
  8473. main ()
  8474. {
  8475. ;
  8476. return 0;
  8477. }
  8478. _ACEOF
  8479. if ac_fn_c_try_link "$LINENO"; then :
  8480. lt_aix_libpath_sed='
  8481. /Import File Strings/,/^$/ {
  8482. /^0/ {
  8483. s/^0 *\([^ ]*\) *$/\1/
  8484. p
  8485. }
  8486. }'
  8487. lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8488. # Check for a 64-bit object if we didn't find anything.
  8489. if test -z "$lt_cv_aix_libpath_"; then
  8490. lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8491. fi
  8492. fi
  8493. rm -f core conftest.err conftest.$ac_objext \
  8494. conftest$ac_exeext conftest.$ac_ext
  8495. if test -z "$lt_cv_aix_libpath_"; then
  8496. lt_cv_aix_libpath_="/usr/lib:/lib"
  8497. fi
  8498. fi
  8499. aix_libpath=$lt_cv_aix_libpath_
  8500. fi
  8501. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  8502. 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"
  8503. else
  8504. if test "$host_cpu" = ia64; then
  8505. hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
  8506. allow_undefined_flag="-z nodefs"
  8507. 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"
  8508. else
  8509. # Determine the default libpath from the value encoded in an
  8510. # empty executable.
  8511. if test "${lt_cv_aix_libpath+set}" = set; then
  8512. aix_libpath=$lt_cv_aix_libpath
  8513. else
  8514. if ${lt_cv_aix_libpath_+:} false; then :
  8515. $as_echo_n "(cached) " >&6
  8516. else
  8517. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8518. /* end confdefs.h. */
  8519. int
  8520. main ()
  8521. {
  8522. ;
  8523. return 0;
  8524. }
  8525. _ACEOF
  8526. if ac_fn_c_try_link "$LINENO"; then :
  8527. lt_aix_libpath_sed='
  8528. /Import File Strings/,/^$/ {
  8529. /^0/ {
  8530. s/^0 *\([^ ]*\) *$/\1/
  8531. p
  8532. }
  8533. }'
  8534. lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8535. # Check for a 64-bit object if we didn't find anything.
  8536. if test -z "$lt_cv_aix_libpath_"; then
  8537. lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8538. fi
  8539. fi
  8540. rm -f core conftest.err conftest.$ac_objext \
  8541. conftest$ac_exeext conftest.$ac_ext
  8542. if test -z "$lt_cv_aix_libpath_"; then
  8543. lt_cv_aix_libpath_="/usr/lib:/lib"
  8544. fi
  8545. fi
  8546. aix_libpath=$lt_cv_aix_libpath_
  8547. fi
  8548. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  8549. # Warning - without using the other run time loading flags,
  8550. # -berok will link without error, but may produce a broken library.
  8551. no_undefined_flag=' ${wl}-bernotok'
  8552. allow_undefined_flag=' ${wl}-berok'
  8553. if test "$with_gnu_ld" = yes; then
  8554. # We only use this code for GNU lds that support --whole-archive.
  8555. whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  8556. else
  8557. # Exported symbols can be pulled into shared objects from archives
  8558. whole_archive_flag_spec='$convenience'
  8559. fi
  8560. archive_cmds_need_lc=yes
  8561. # This is similar to how AIX traditionally builds its shared libraries.
  8562. 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'
  8563. fi
  8564. fi
  8565. ;;
  8566. amigaos*)
  8567. case $host_cpu in
  8568. powerpc)
  8569. # see comment about AmigaOS4 .so support
  8570. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8571. archive_expsym_cmds=''
  8572. ;;
  8573. m68k)
  8574. 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)'
  8575. hardcode_libdir_flag_spec='-L$libdir'
  8576. hardcode_minus_L=yes
  8577. ;;
  8578. esac
  8579. ;;
  8580. bsdi[45]*)
  8581. export_dynamic_flag_spec=-rdynamic
  8582. ;;
  8583. cygwin* | mingw* | pw32* | cegcc*)
  8584. # When not using gcc, we currently assume that we are using
  8585. # Microsoft Visual C++.
  8586. # hardcode_libdir_flag_spec is actually meaningless, as there is
  8587. # no search path for DLLs.
  8588. case $cc_basename in
  8589. cl*)
  8590. # Native MSVC
  8591. hardcode_libdir_flag_spec=' '
  8592. allow_undefined_flag=unsupported
  8593. always_export_symbols=yes
  8594. file_list_spec='@'
  8595. # Tell ltmain to make .lib files, not .a files.
  8596. libext=lib
  8597. # Tell ltmain to make .dll files, not .so files.
  8598. shrext_cmds=".dll"
  8599. # FIXME: Setting linknames here is a bad hack.
  8600. archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
  8601. archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  8602. sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
  8603. else
  8604. sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
  8605. fi~
  8606. $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
  8607. linknames='
  8608. # The linker will not automatically build a static lib if we build a DLL.
  8609. # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
  8610. enable_shared_with_static_runtimes=yes
  8611. exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
  8612. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
  8613. # Don't use ranlib
  8614. old_postinstall_cmds='chmod 644 $oldlib'
  8615. postlink_cmds='lt_outputfile="@OUTPUT@"~
  8616. lt_tool_outputfile="@TOOL_OUTPUT@"~
  8617. case $lt_outputfile in
  8618. *.exe|*.EXE) ;;
  8619. *)
  8620. lt_outputfile="$lt_outputfile.exe"
  8621. lt_tool_outputfile="$lt_tool_outputfile.exe"
  8622. ;;
  8623. esac~
  8624. if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
  8625. $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
  8626. $RM "$lt_outputfile.manifest";
  8627. fi'
  8628. ;;
  8629. *)
  8630. # Assume MSVC wrapper
  8631. hardcode_libdir_flag_spec=' '
  8632. allow_undefined_flag=unsupported
  8633. # Tell ltmain to make .lib files, not .a files.
  8634. libext=lib
  8635. # Tell ltmain to make .dll files, not .so files.
  8636. shrext_cmds=".dll"
  8637. # FIXME: Setting linknames here is a bad hack.
  8638. archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
  8639. # The linker will automatically build a .lib file if we build a DLL.
  8640. old_archive_from_new_cmds='true'
  8641. # FIXME: Should let the user specify the lib program.
  8642. old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
  8643. enable_shared_with_static_runtimes=yes
  8644. ;;
  8645. esac
  8646. ;;
  8647. darwin* | rhapsody*)
  8648. archive_cmds_need_lc=no
  8649. hardcode_direct=no
  8650. hardcode_automatic=yes
  8651. hardcode_shlibpath_var=unsupported
  8652. if test "$lt_cv_ld_force_load" = "yes"; then
  8653. 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\"`'
  8654. else
  8655. whole_archive_flag_spec=''
  8656. fi
  8657. link_all_deplibs=yes
  8658. allow_undefined_flag="$_lt_dar_allow_undefined"
  8659. case $cc_basename in
  8660. ifort*) _lt_dar_can_shared=yes ;;
  8661. *) _lt_dar_can_shared=$GCC ;;
  8662. esac
  8663. if test "$_lt_dar_can_shared" = "yes"; then
  8664. output_verbose_link_cmd=func_echo_all
  8665. archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
  8666. module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  8667. 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}"
  8668. 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}"
  8669. else
  8670. ld_shlibs=no
  8671. fi
  8672. ;;
  8673. dgux*)
  8674. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8675. hardcode_libdir_flag_spec='-L$libdir'
  8676. hardcode_shlibpath_var=no
  8677. ;;
  8678. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  8679. # support. Future versions do this automatically, but an explicit c++rt0.o
  8680. # does not break anything, and helps significantly (at the cost of a little
  8681. # extra space).
  8682. freebsd2.2*)
  8683. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  8684. hardcode_libdir_flag_spec='-R$libdir'
  8685. hardcode_direct=yes
  8686. hardcode_shlibpath_var=no
  8687. ;;
  8688. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  8689. freebsd2.*)
  8690. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8691. hardcode_direct=yes
  8692. hardcode_minus_L=yes
  8693. hardcode_shlibpath_var=no
  8694. ;;
  8695. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  8696. freebsd* | dragonfly*)
  8697. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8698. hardcode_libdir_flag_spec='-R$libdir'
  8699. hardcode_direct=yes
  8700. hardcode_shlibpath_var=no
  8701. ;;
  8702. hpux9*)
  8703. if test "$GCC" = yes; then
  8704. 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'
  8705. else
  8706. 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'
  8707. fi
  8708. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8709. hardcode_libdir_separator=:
  8710. hardcode_direct=yes
  8711. # hardcode_minus_L: Not really in the search PATH,
  8712. # but as the default location of the library.
  8713. hardcode_minus_L=yes
  8714. export_dynamic_flag_spec='${wl}-E'
  8715. ;;
  8716. hpux10*)
  8717. if test "$GCC" = yes && test "$with_gnu_ld" = no; then
  8718. archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8719. else
  8720. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  8721. fi
  8722. if test "$with_gnu_ld" = no; then
  8723. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8724. hardcode_libdir_separator=:
  8725. hardcode_direct=yes
  8726. hardcode_direct_absolute=yes
  8727. export_dynamic_flag_spec='${wl}-E'
  8728. # hardcode_minus_L: Not really in the search PATH,
  8729. # but as the default location of the library.
  8730. hardcode_minus_L=yes
  8731. fi
  8732. ;;
  8733. hpux11*)
  8734. if test "$GCC" = yes && test "$with_gnu_ld" = no; then
  8735. case $host_cpu in
  8736. hppa*64*)
  8737. archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8738. ;;
  8739. ia64*)
  8740. archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  8741. ;;
  8742. *)
  8743. archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8744. ;;
  8745. esac
  8746. else
  8747. case $host_cpu in
  8748. hppa*64*)
  8749. archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8750. ;;
  8751. ia64*)
  8752. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  8753. ;;
  8754. *)
  8755. # Older versions of the 11.00 compiler do not understand -b yet
  8756. # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
  8757. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
  8758. $as_echo_n "checking if $CC understands -b... " >&6; }
  8759. if ${lt_cv_prog_compiler__b+:} false; then :
  8760. $as_echo_n "(cached) " >&6
  8761. else
  8762. lt_cv_prog_compiler__b=no
  8763. save_LDFLAGS="$LDFLAGS"
  8764. LDFLAGS="$LDFLAGS -b"
  8765. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  8766. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  8767. # The linker can only warn and ignore the option if not recognized
  8768. # So say no if there are warnings
  8769. if test -s conftest.err; then
  8770. # Append any errors to the config.log.
  8771. cat conftest.err 1>&5
  8772. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  8773. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  8774. if diff conftest.exp conftest.er2 >/dev/null; then
  8775. lt_cv_prog_compiler__b=yes
  8776. fi
  8777. else
  8778. lt_cv_prog_compiler__b=yes
  8779. fi
  8780. fi
  8781. $RM -r conftest*
  8782. LDFLAGS="$save_LDFLAGS"
  8783. fi
  8784. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
  8785. $as_echo "$lt_cv_prog_compiler__b" >&6; }
  8786. if test x"$lt_cv_prog_compiler__b" = xyes; then
  8787. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8788. else
  8789. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  8790. fi
  8791. ;;
  8792. esac
  8793. fi
  8794. if test "$with_gnu_ld" = no; then
  8795. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8796. hardcode_libdir_separator=:
  8797. case $host_cpu in
  8798. hppa*64*|ia64*)
  8799. hardcode_direct=no
  8800. hardcode_shlibpath_var=no
  8801. ;;
  8802. *)
  8803. hardcode_direct=yes
  8804. hardcode_direct_absolute=yes
  8805. export_dynamic_flag_spec='${wl}-E'
  8806. # hardcode_minus_L: Not really in the search PATH,
  8807. # but as the default location of the library.
  8808. hardcode_minus_L=yes
  8809. ;;
  8810. esac
  8811. fi
  8812. ;;
  8813. irix5* | irix6* | nonstopux*)
  8814. if test "$GCC" = yes; then
  8815. 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'
  8816. # Try to use the -exported_symbol ld option, if it does not
  8817. # work, assume that -exports_file does not work either and
  8818. # implicitly export all symbols.
  8819. # This should be the same for all languages, so no per-tag cache variable.
  8820. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
  8821. $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
  8822. if ${lt_cv_irix_exported_symbol+:} false; then :
  8823. $as_echo_n "(cached) " >&6
  8824. else
  8825. save_LDFLAGS="$LDFLAGS"
  8826. LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
  8827. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8828. /* end confdefs.h. */
  8829. int foo (void) { return 0; }
  8830. _ACEOF
  8831. if ac_fn_c_try_link "$LINENO"; then :
  8832. lt_cv_irix_exported_symbol=yes
  8833. else
  8834. lt_cv_irix_exported_symbol=no
  8835. fi
  8836. rm -f core conftest.err conftest.$ac_objext \
  8837. conftest$ac_exeext conftest.$ac_ext
  8838. LDFLAGS="$save_LDFLAGS"
  8839. fi
  8840. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
  8841. $as_echo "$lt_cv_irix_exported_symbol" >&6; }
  8842. if test "$lt_cv_irix_exported_symbol" = yes; then
  8843. 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'
  8844. fi
  8845. else
  8846. 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'
  8847. 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'
  8848. fi
  8849. archive_cmds_need_lc='no'
  8850. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8851. hardcode_libdir_separator=:
  8852. inherit_rpath=yes
  8853. link_all_deplibs=yes
  8854. ;;
  8855. netbsd* | netbsdelf*-gnu)
  8856. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  8857. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  8858. else
  8859. archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  8860. fi
  8861. hardcode_libdir_flag_spec='-R$libdir'
  8862. hardcode_direct=yes
  8863. hardcode_shlibpath_var=no
  8864. ;;
  8865. newsos6)
  8866. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8867. hardcode_direct=yes
  8868. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8869. hardcode_libdir_separator=:
  8870. hardcode_shlibpath_var=no
  8871. ;;
  8872. *nto* | *qnx*)
  8873. ;;
  8874. openbsd*)
  8875. if test -f /usr/libexec/ld.so; then
  8876. hardcode_direct=yes
  8877. hardcode_shlibpath_var=no
  8878. hardcode_direct_absolute=yes
  8879. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  8880. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8881. archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  8882. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  8883. export_dynamic_flag_spec='${wl}-E'
  8884. else
  8885. case $host_os in
  8886. openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  8887. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8888. hardcode_libdir_flag_spec='-R$libdir'
  8889. ;;
  8890. *)
  8891. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8892. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  8893. ;;
  8894. esac
  8895. fi
  8896. else
  8897. ld_shlibs=no
  8898. fi
  8899. ;;
  8900. os2*)
  8901. hardcode_libdir_flag_spec='-L$libdir'
  8902. hardcode_minus_L=yes
  8903. allow_undefined_flag=unsupported
  8904. 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'
  8905. old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  8906. ;;
  8907. osf3*)
  8908. if test "$GCC" = yes; then
  8909. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  8910. 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'
  8911. else
  8912. allow_undefined_flag=' -expect_unresolved \*'
  8913. 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'
  8914. fi
  8915. archive_cmds_need_lc='no'
  8916. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8917. hardcode_libdir_separator=:
  8918. ;;
  8919. osf4* | osf5*) # as osf3* with the addition of -msym flag
  8920. if test "$GCC" = yes; then
  8921. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  8922. 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'
  8923. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8924. else
  8925. allow_undefined_flag=' -expect_unresolved \*'
  8926. 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'
  8927. 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~
  8928. $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'
  8929. # Both c and cxx compiler support -rpath directly
  8930. hardcode_libdir_flag_spec='-rpath $libdir'
  8931. fi
  8932. archive_cmds_need_lc='no'
  8933. hardcode_libdir_separator=:
  8934. ;;
  8935. solaris*)
  8936. no_undefined_flag=' -z defs'
  8937. if test "$GCC" = yes; then
  8938. wlarc='${wl}'
  8939. archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8940. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8941. $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'
  8942. else
  8943. case `$CC -V 2>&1` in
  8944. *"Compilers 5.0"*)
  8945. wlarc=''
  8946. archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8947. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8948. $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
  8949. ;;
  8950. *)
  8951. wlarc='${wl}'
  8952. archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
  8953. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8954. $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  8955. ;;
  8956. esac
  8957. fi
  8958. hardcode_libdir_flag_spec='-R$libdir'
  8959. hardcode_shlibpath_var=no
  8960. case $host_os in
  8961. solaris2.[0-5] | solaris2.[0-5].*) ;;
  8962. *)
  8963. # The compiler driver will combine and reorder linker options,
  8964. # but understands `-z linker_flag'. GCC discards it without `$wl',
  8965. # but is careful enough not to reorder.
  8966. # Supported since Solaris 2.6 (maybe 2.5.1?)
  8967. if test "$GCC" = yes; then
  8968. whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  8969. else
  8970. whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
  8971. fi
  8972. ;;
  8973. esac
  8974. link_all_deplibs=yes
  8975. ;;
  8976. sunos4*)
  8977. if test "x$host_vendor" = xsequent; then
  8978. # Use $CC to link under sequent, because it throws in some extra .o
  8979. # files that make .init and .fini sections work.
  8980. archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  8981. else
  8982. archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  8983. fi
  8984. hardcode_libdir_flag_spec='-L$libdir'
  8985. hardcode_direct=yes
  8986. hardcode_minus_L=yes
  8987. hardcode_shlibpath_var=no
  8988. ;;
  8989. sysv4)
  8990. case $host_vendor in
  8991. sni)
  8992. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8993. hardcode_direct=yes # is this really true???
  8994. ;;
  8995. siemens)
  8996. ## LD is ld it makes a PLAMLIB
  8997. ## CC just makes a GrossModule.
  8998. archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  8999. reload_cmds='$CC -r -o $output$reload_objs'
  9000. hardcode_direct=no
  9001. ;;
  9002. motorola)
  9003. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9004. hardcode_direct=no #Motorola manual says yes, but my tests say they lie
  9005. ;;
  9006. esac
  9007. runpath_var='LD_RUN_PATH'
  9008. hardcode_shlibpath_var=no
  9009. ;;
  9010. sysv4.3*)
  9011. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9012. hardcode_shlibpath_var=no
  9013. export_dynamic_flag_spec='-Bexport'
  9014. ;;
  9015. sysv4*MP*)
  9016. if test -d /usr/nec; then
  9017. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9018. hardcode_shlibpath_var=no
  9019. runpath_var=LD_RUN_PATH
  9020. hardcode_runpath_var=yes
  9021. ld_shlibs=yes
  9022. fi
  9023. ;;
  9024. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  9025. no_undefined_flag='${wl}-z,text'
  9026. archive_cmds_need_lc=no
  9027. hardcode_shlibpath_var=no
  9028. runpath_var='LD_RUN_PATH'
  9029. if test "$GCC" = yes; then
  9030. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9031. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9032. else
  9033. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9034. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9035. fi
  9036. ;;
  9037. sysv5* | sco3.2v5* | sco5v6*)
  9038. # Note: We can NOT use -z defs as we might desire, because we do not
  9039. # link with -lc, and that would cause any symbols used from libc to
  9040. # always be unresolved, which means just about no library would
  9041. # ever link correctly. If we're not using GNU ld we use -z text
  9042. # though, which does catch some bad symbols but isn't as heavy-handed
  9043. # as -z defs.
  9044. no_undefined_flag='${wl}-z,text'
  9045. allow_undefined_flag='${wl}-z,nodefs'
  9046. archive_cmds_need_lc=no
  9047. hardcode_shlibpath_var=no
  9048. hardcode_libdir_flag_spec='${wl}-R,$libdir'
  9049. hardcode_libdir_separator=':'
  9050. link_all_deplibs=yes
  9051. export_dynamic_flag_spec='${wl}-Bexport'
  9052. runpath_var='LD_RUN_PATH'
  9053. if test "$GCC" = yes; then
  9054. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9055. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9056. else
  9057. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9058. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9059. fi
  9060. ;;
  9061. uts4*)
  9062. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9063. hardcode_libdir_flag_spec='-L$libdir'
  9064. hardcode_shlibpath_var=no
  9065. ;;
  9066. *)
  9067. ld_shlibs=no
  9068. ;;
  9069. esac
  9070. if test x$host_vendor = xsni; then
  9071. case $host in
  9072. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  9073. export_dynamic_flag_spec='${wl}-Blargedynsym'
  9074. ;;
  9075. esac
  9076. fi
  9077. fi
  9078. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
  9079. $as_echo "$ld_shlibs" >&6; }
  9080. test "$ld_shlibs" = no && can_build_shared=no
  9081. with_gnu_ld=$with_gnu_ld
  9082. #
  9083. # Do we need to explicitly link libc?
  9084. #
  9085. case "x$archive_cmds_need_lc" in
  9086. x|xyes)
  9087. # Assume -lc should be added
  9088. archive_cmds_need_lc=yes
  9089. if test "$enable_shared" = yes && test "$GCC" = yes; then
  9090. case $archive_cmds in
  9091. *'~'*)
  9092. # FIXME: we may have to deal with multi-command sequences.
  9093. ;;
  9094. '$CC '*)
  9095. # Test whether the compiler implicitly links with -lc since on some
  9096. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  9097. # to ld, don't add -lc before -lgcc.
  9098. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  9099. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  9100. if ${lt_cv_archive_cmds_need_lc+:} false; then :
  9101. $as_echo_n "(cached) " >&6
  9102. else
  9103. $RM conftest*
  9104. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  9105. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  9106. (eval $ac_compile) 2>&5
  9107. ac_status=$?
  9108. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9109. test $ac_status = 0; } 2>conftest.err; then
  9110. soname=conftest
  9111. lib=conftest
  9112. libobjs=conftest.$ac_objext
  9113. deplibs=
  9114. wl=$lt_prog_compiler_wl
  9115. pic_flag=$lt_prog_compiler_pic
  9116. compiler_flags=-v
  9117. linker_flags=-v
  9118. verstring=
  9119. output_objdir=.
  9120. libname=conftest
  9121. lt_save_allow_undefined_flag=$allow_undefined_flag
  9122. allow_undefined_flag=
  9123. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  9124. (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  9125. ac_status=$?
  9126. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9127. test $ac_status = 0; }
  9128. then
  9129. lt_cv_archive_cmds_need_lc=no
  9130. else
  9131. lt_cv_archive_cmds_need_lc=yes
  9132. fi
  9133. allow_undefined_flag=$lt_save_allow_undefined_flag
  9134. else
  9135. cat conftest.err 1>&5
  9136. fi
  9137. $RM conftest*
  9138. fi
  9139. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
  9140. $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
  9141. archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
  9142. ;;
  9143. esac
  9144. fi
  9145. ;;
  9146. esac
  9147. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  9148. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  9149. if test "$GCC" = yes; then
  9150. case $host_os in
  9151. darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
  9152. *) lt_awk_arg="/^libraries:/" ;;
  9153. esac
  9154. case $host_os in
  9155. mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
  9156. *) lt_sed_strip_eq="s,=/,/,g" ;;
  9157. esac
  9158. lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
  9159. case $lt_search_path_spec in
  9160. *\;*)
  9161. # if the path contains ";" then we assume it to be the separator
  9162. # otherwise default to the standard path separator (i.e. ":") - it is
  9163. # assumed that no part of a normal pathname contains ";" but that should
  9164. # okay in the real world where ";" in dirpaths is itself problematic.
  9165. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
  9166. ;;
  9167. *)
  9168. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
  9169. ;;
  9170. esac
  9171. # Ok, now we have the path, separated by spaces, we can step through it
  9172. # and add multilib dir if necessary.
  9173. lt_tmp_lt_search_path_spec=
  9174. lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
  9175. for lt_sys_path in $lt_search_path_spec; do
  9176. if test -d "$lt_sys_path/$lt_multi_os_dir"; then
  9177. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
  9178. else
  9179. test -d "$lt_sys_path" && \
  9180. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
  9181. fi
  9182. done
  9183. lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
  9184. BEGIN {RS=" "; FS="/|\n";} {
  9185. lt_foo="";
  9186. lt_count=0;
  9187. for (lt_i = NF; lt_i > 0; lt_i--) {
  9188. if ($lt_i != "" && $lt_i != ".") {
  9189. if ($lt_i == "..") {
  9190. lt_count++;
  9191. } else {
  9192. if (lt_count == 0) {
  9193. lt_foo="/" $lt_i lt_foo;
  9194. } else {
  9195. lt_count--;
  9196. }
  9197. }
  9198. }
  9199. }
  9200. if (lt_foo != "") { lt_freq[lt_foo]++; }
  9201. if (lt_freq[lt_foo] == 1) { print lt_foo; }
  9202. }'`
  9203. # AWK program above erroneously prepends '/' to C:/dos/paths
  9204. # for these hosts.
  9205. case $host_os in
  9206. mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
  9207. $SED 's,/\([A-Za-z]:\),\1,g'` ;;
  9208. esac
  9209. sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
  9210. else
  9211. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  9212. fi
  9213. library_names_spec=
  9214. libname_spec='lib$name'
  9215. soname_spec=
  9216. shrext_cmds=".so"
  9217. postinstall_cmds=
  9218. postuninstall_cmds=
  9219. finish_cmds=
  9220. finish_eval=
  9221. shlibpath_var=
  9222. shlibpath_overrides_runpath=unknown
  9223. version_type=none
  9224. dynamic_linker="$host_os ld.so"
  9225. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  9226. need_lib_prefix=unknown
  9227. hardcode_into_libs=no
  9228. # when you set need_version to no, make sure it does not cause -set_version
  9229. # flags to be left without arguments
  9230. need_version=unknown
  9231. case $host_os in
  9232. aix3*)
  9233. version_type=linux # correct to gnu/linux during the next big refactor
  9234. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  9235. shlibpath_var=LIBPATH
  9236. # AIX 3 has no versioning support, so we append a major version to the name.
  9237. soname_spec='${libname}${release}${shared_ext}$major'
  9238. ;;
  9239. aix[4-9]*)
  9240. version_type=linux # correct to gnu/linux during the next big refactor
  9241. need_lib_prefix=no
  9242. need_version=no
  9243. hardcode_into_libs=yes
  9244. if test "$host_cpu" = ia64; then
  9245. # AIX 5 supports IA64
  9246. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  9247. shlibpath_var=LD_LIBRARY_PATH
  9248. else
  9249. # With GCC up to 2.95.x, collect2 would create an import file
  9250. # for dependence libraries. The import file would start with
  9251. # the line `#! .'. This would cause the generated library to
  9252. # depend on `.', always an invalid library. This was fixed in
  9253. # development snapshots of GCC prior to 3.0.
  9254. case $host_os in
  9255. aix4 | aix4.[01] | aix4.[01].*)
  9256. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  9257. echo ' yes '
  9258. echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  9259. :
  9260. else
  9261. can_build_shared=no
  9262. fi
  9263. ;;
  9264. esac
  9265. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  9266. # soname into executable. Probably we can add versioning support to
  9267. # collect2, so additional links can be useful in future.
  9268. if test "$aix_use_runtimelinking" = yes; then
  9269. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  9270. # instead of lib<name>.a to let people know that these are not
  9271. # typical AIX shared libraries.
  9272. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9273. else
  9274. # We preserve .a as extension for shared libraries through AIX4.2
  9275. # and later when we are not doing run time linking.
  9276. library_names_spec='${libname}${release}.a $libname.a'
  9277. soname_spec='${libname}${release}${shared_ext}$major'
  9278. fi
  9279. shlibpath_var=LIBPATH
  9280. fi
  9281. ;;
  9282. amigaos*)
  9283. case $host_cpu in
  9284. powerpc)
  9285. # Since July 2007 AmigaOS4 officially supports .so libraries.
  9286. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  9287. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9288. ;;
  9289. m68k)
  9290. library_names_spec='$libname.ixlibrary $libname.a'
  9291. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  9292. 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'
  9293. ;;
  9294. esac
  9295. ;;
  9296. beos*)
  9297. library_names_spec='${libname}${shared_ext}'
  9298. dynamic_linker="$host_os ld.so"
  9299. shlibpath_var=LIBRARY_PATH
  9300. ;;
  9301. bsdi[45]*)
  9302. version_type=linux # correct to gnu/linux during the next big refactor
  9303. need_version=no
  9304. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9305. soname_spec='${libname}${release}${shared_ext}$major'
  9306. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  9307. shlibpath_var=LD_LIBRARY_PATH
  9308. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  9309. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  9310. # the default ld.so.conf also contains /usr/contrib/lib and
  9311. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  9312. # libtool to hard-code these into programs
  9313. ;;
  9314. cygwin* | mingw* | pw32* | cegcc*)
  9315. version_type=windows
  9316. shrext_cmds=".dll"
  9317. need_version=no
  9318. need_lib_prefix=no
  9319. case $GCC,$cc_basename in
  9320. yes,*)
  9321. # gcc
  9322. library_names_spec='$libname.dll.a'
  9323. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  9324. postinstall_cmds='base_file=`basename \${file}`~
  9325. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  9326. dldir=$destdir/`dirname \$dlpath`~
  9327. test -d \$dldir || mkdir -p \$dldir~
  9328. $install_prog $dir/$dlname \$dldir/$dlname~
  9329. chmod a+x \$dldir/$dlname~
  9330. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  9331. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  9332. fi'
  9333. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  9334. dlpath=$dir/\$dldll~
  9335. $RM \$dlpath'
  9336. shlibpath_overrides_runpath=yes
  9337. case $host_os in
  9338. cygwin*)
  9339. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  9340. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  9341. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
  9342. ;;
  9343. mingw* | cegcc*)
  9344. # MinGW DLLs use traditional 'lib' prefix
  9345. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  9346. ;;
  9347. pw32*)
  9348. # pw32 DLLs use 'pw' prefix rather than 'lib'
  9349. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  9350. ;;
  9351. esac
  9352. dynamic_linker='Win32 ld.exe'
  9353. ;;
  9354. *,cl*)
  9355. # Native MSVC
  9356. libname_spec='$name'
  9357. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  9358. library_names_spec='${libname}.dll.lib'
  9359. case $build_os in
  9360. mingw*)
  9361. sys_lib_search_path_spec=
  9362. lt_save_ifs=$IFS
  9363. IFS=';'
  9364. for lt_path in $LIB
  9365. do
  9366. IFS=$lt_save_ifs
  9367. # Let DOS variable expansion print the short 8.3 style file name.
  9368. lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
  9369. sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
  9370. done
  9371. IFS=$lt_save_ifs
  9372. # Convert to MSYS style.
  9373. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
  9374. ;;
  9375. cygwin*)
  9376. # Convert to unix form, then to dos form, then back to unix form
  9377. # but this time dos style (no spaces!) so that the unix form looks
  9378. # like /cygdrive/c/PROGRA~1:/cygdr...
  9379. sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
  9380. sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
  9381. sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  9382. ;;
  9383. *)
  9384. sys_lib_search_path_spec="$LIB"
  9385. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  9386. # It is most probably a Windows format PATH.
  9387. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  9388. else
  9389. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  9390. fi
  9391. # FIXME: find the short name or the path components, as spaces are
  9392. # common. (e.g. "Program Files" -> "PROGRA~1")
  9393. ;;
  9394. esac
  9395. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  9396. postinstall_cmds='base_file=`basename \${file}`~
  9397. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  9398. dldir=$destdir/`dirname \$dlpath`~
  9399. test -d \$dldir || mkdir -p \$dldir~
  9400. $install_prog $dir/$dlname \$dldir/$dlname'
  9401. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  9402. dlpath=$dir/\$dldll~
  9403. $RM \$dlpath'
  9404. shlibpath_overrides_runpath=yes
  9405. dynamic_linker='Win32 link.exe'
  9406. ;;
  9407. *)
  9408. # Assume MSVC wrapper
  9409. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  9410. dynamic_linker='Win32 ld.exe'
  9411. ;;
  9412. esac
  9413. # FIXME: first we should search . and the directory the executable is in
  9414. shlibpath_var=PATH
  9415. ;;
  9416. darwin* | rhapsody*)
  9417. dynamic_linker="$host_os dyld"
  9418. version_type=darwin
  9419. need_lib_prefix=no
  9420. need_version=no
  9421. library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  9422. soname_spec='${libname}${release}${major}$shared_ext'
  9423. shlibpath_overrides_runpath=yes
  9424. shlibpath_var=DYLD_LIBRARY_PATH
  9425. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  9426. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
  9427. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  9428. ;;
  9429. dgux*)
  9430. version_type=linux # correct to gnu/linux during the next big refactor
  9431. need_lib_prefix=no
  9432. need_version=no
  9433. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  9434. soname_spec='${libname}${release}${shared_ext}$major'
  9435. shlibpath_var=LD_LIBRARY_PATH
  9436. ;;
  9437. freebsd* | dragonfly*)
  9438. # DragonFly does not have aout. When/if they implement a new
  9439. # versioning mechanism, adjust this.
  9440. if test -x /usr/bin/objformat; then
  9441. objformat=`/usr/bin/objformat`
  9442. else
  9443. case $host_os in
  9444. freebsd[23].*) objformat=aout ;;
  9445. *) objformat=elf ;;
  9446. esac
  9447. fi
  9448. version_type=freebsd-$objformat
  9449. case $version_type in
  9450. freebsd-elf*)
  9451. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  9452. need_version=no
  9453. need_lib_prefix=no
  9454. ;;
  9455. freebsd-*)
  9456. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  9457. need_version=yes
  9458. ;;
  9459. esac
  9460. shlibpath_var=LD_LIBRARY_PATH
  9461. case $host_os in
  9462. freebsd2.*)
  9463. shlibpath_overrides_runpath=yes
  9464. ;;
  9465. freebsd3.[01]* | freebsdelf3.[01]*)
  9466. shlibpath_overrides_runpath=yes
  9467. hardcode_into_libs=yes
  9468. ;;
  9469. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  9470. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  9471. shlibpath_overrides_runpath=no
  9472. hardcode_into_libs=yes
  9473. ;;
  9474. *) # from 4.6 on, and DragonFly
  9475. shlibpath_overrides_runpath=yes
  9476. hardcode_into_libs=yes
  9477. ;;
  9478. esac
  9479. ;;
  9480. gnu*)
  9481. version_type=linux # correct to gnu/linux during the next big refactor
  9482. need_lib_prefix=no
  9483. need_version=no
  9484. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  9485. soname_spec='${libname}${release}${shared_ext}$major'
  9486. shlibpath_var=LD_LIBRARY_PATH
  9487. shlibpath_overrides_runpath=no
  9488. hardcode_into_libs=yes
  9489. ;;
  9490. haiku*)
  9491. version_type=linux # correct to gnu/linux during the next big refactor
  9492. need_lib_prefix=no
  9493. need_version=no
  9494. dynamic_linker="$host_os runtime_loader"
  9495. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  9496. soname_spec='${libname}${release}${shared_ext}$major'
  9497. shlibpath_var=LIBRARY_PATH
  9498. shlibpath_overrides_runpath=yes
  9499. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
  9500. hardcode_into_libs=yes
  9501. ;;
  9502. hpux9* | hpux10* | hpux11*)
  9503. # Give a soname corresponding to the major version so that dld.sl refuses to
  9504. # link against other versions.
  9505. version_type=sunos
  9506. need_lib_prefix=no
  9507. need_version=no
  9508. case $host_cpu in
  9509. ia64*)
  9510. shrext_cmds='.so'
  9511. hardcode_into_libs=yes
  9512. dynamic_linker="$host_os dld.so"
  9513. shlibpath_var=LD_LIBRARY_PATH
  9514. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  9515. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9516. soname_spec='${libname}${release}${shared_ext}$major'
  9517. if test "X$HPUX_IA64_MODE" = X32; then
  9518. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  9519. else
  9520. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  9521. fi
  9522. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  9523. ;;
  9524. hppa*64*)
  9525. shrext_cmds='.sl'
  9526. hardcode_into_libs=yes
  9527. dynamic_linker="$host_os dld.sl"
  9528. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  9529. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  9530. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9531. soname_spec='${libname}${release}${shared_ext}$major'
  9532. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  9533. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  9534. ;;
  9535. *)
  9536. shrext_cmds='.sl'
  9537. dynamic_linker="$host_os dld.sl"
  9538. shlibpath_var=SHLIB_PATH
  9539. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  9540. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9541. soname_spec='${libname}${release}${shared_ext}$major'
  9542. ;;
  9543. esac
  9544. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  9545. postinstall_cmds='chmod 555 $lib'
  9546. # or fails outright, so override atomically:
  9547. install_override_mode=555
  9548. ;;
  9549. interix[3-9]*)
  9550. version_type=linux # correct to gnu/linux during the next big refactor
  9551. need_lib_prefix=no
  9552. need_version=no
  9553. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  9554. soname_spec='${libname}${release}${shared_ext}$major'
  9555. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  9556. shlibpath_var=LD_LIBRARY_PATH
  9557. shlibpath_overrides_runpath=no
  9558. hardcode_into_libs=yes
  9559. ;;
  9560. irix5* | irix6* | nonstopux*)
  9561. case $host_os in
  9562. nonstopux*) version_type=nonstopux ;;
  9563. *)
  9564. if test "$lt_cv_prog_gnu_ld" = yes; then
  9565. version_type=linux # correct to gnu/linux during the next big refactor
  9566. else
  9567. version_type=irix
  9568. fi ;;
  9569. esac
  9570. need_lib_prefix=no
  9571. need_version=no
  9572. soname_spec='${libname}${release}${shared_ext}$major'
  9573. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  9574. case $host_os in
  9575. irix5* | nonstopux*)
  9576. libsuff= shlibsuff=
  9577. ;;
  9578. *)
  9579. case $LD in # libtool.m4 will add one of these switches to LD
  9580. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  9581. libsuff= shlibsuff= libmagic=32-bit;;
  9582. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  9583. libsuff=32 shlibsuff=N32 libmagic=N32;;
  9584. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  9585. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  9586. *) libsuff= shlibsuff= libmagic=never-match;;
  9587. esac
  9588. ;;
  9589. esac
  9590. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  9591. shlibpath_overrides_runpath=no
  9592. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  9593. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  9594. hardcode_into_libs=yes
  9595. ;;
  9596. # No shared lib support for Linux oldld, aout, or coff.
  9597. linux*oldld* | linux*aout* | linux*coff*)
  9598. dynamic_linker=no
  9599. ;;
  9600. # This must be glibc/ELF.
  9601. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  9602. version_type=linux # correct to gnu/linux during the next big refactor
  9603. need_lib_prefix=no
  9604. need_version=no
  9605. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9606. soname_spec='${libname}${release}${shared_ext}$major'
  9607. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  9608. shlibpath_var=LD_LIBRARY_PATH
  9609. shlibpath_overrides_runpath=no
  9610. # Some binutils ld are patched to set DT_RUNPATH
  9611. if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
  9612. $as_echo_n "(cached) " >&6
  9613. else
  9614. lt_cv_shlibpath_overrides_runpath=no
  9615. save_LDFLAGS=$LDFLAGS
  9616. save_libdir=$libdir
  9617. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
  9618. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
  9619. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9620. /* end confdefs.h. */
  9621. int
  9622. main ()
  9623. {
  9624. ;
  9625. return 0;
  9626. }
  9627. _ACEOF
  9628. if ac_fn_c_try_link "$LINENO"; then :
  9629. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  9630. lt_cv_shlibpath_overrides_runpath=yes
  9631. fi
  9632. fi
  9633. rm -f core conftest.err conftest.$ac_objext \
  9634. conftest$ac_exeext conftest.$ac_ext
  9635. LDFLAGS=$save_LDFLAGS
  9636. libdir=$save_libdir
  9637. fi
  9638. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  9639. # This implies no fast_install, which is unacceptable.
  9640. # Some rework will be needed to allow for fast_install
  9641. # before this can be enabled.
  9642. hardcode_into_libs=yes
  9643. # Append ld.so.conf contents to the search path
  9644. if test -f /etc/ld.so.conf; then
  9645. 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' ' '`
  9646. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  9647. fi
  9648. # We used to test for /lib/ld.so.1 and disable shared libraries on
  9649. # powerpc, because MkLinux only supported shared libraries with the
  9650. # GNU dynamic linker. Since this was broken with cross compilers,
  9651. # most powerpc-linux boxes support dynamic linking these days and
  9652. # people can always --disable-shared, the test was removed, and we
  9653. # assume the GNU/Linux dynamic linker is in use.
  9654. dynamic_linker='GNU/Linux ld.so'
  9655. ;;
  9656. netbsdelf*-gnu)
  9657. version_type=linux
  9658. need_lib_prefix=no
  9659. need_version=no
  9660. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  9661. soname_spec='${libname}${release}${shared_ext}$major'
  9662. shlibpath_var=LD_LIBRARY_PATH
  9663. shlibpath_overrides_runpath=no
  9664. hardcode_into_libs=yes
  9665. dynamic_linker='NetBSD ld.elf_so'
  9666. ;;
  9667. netbsd*)
  9668. version_type=sunos
  9669. need_lib_prefix=no
  9670. need_version=no
  9671. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  9672. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9673. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  9674. dynamic_linker='NetBSD (a.out) ld.so'
  9675. else
  9676. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  9677. soname_spec='${libname}${release}${shared_ext}$major'
  9678. dynamic_linker='NetBSD ld.elf_so'
  9679. fi
  9680. shlibpath_var=LD_LIBRARY_PATH
  9681. shlibpath_overrides_runpath=yes
  9682. hardcode_into_libs=yes
  9683. ;;
  9684. newsos6)
  9685. version_type=linux # correct to gnu/linux during the next big refactor
  9686. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9687. shlibpath_var=LD_LIBRARY_PATH
  9688. shlibpath_overrides_runpath=yes
  9689. ;;
  9690. *nto* | *qnx*)
  9691. version_type=qnx
  9692. need_lib_prefix=no
  9693. need_version=no
  9694. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9695. soname_spec='${libname}${release}${shared_ext}$major'
  9696. shlibpath_var=LD_LIBRARY_PATH
  9697. shlibpath_overrides_runpath=no
  9698. hardcode_into_libs=yes
  9699. dynamic_linker='ldqnx.so'
  9700. ;;
  9701. openbsd*)
  9702. version_type=sunos
  9703. sys_lib_dlsearch_path_spec="/usr/lib"
  9704. need_lib_prefix=no
  9705. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  9706. case $host_os in
  9707. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  9708. *) need_version=no ;;
  9709. esac
  9710. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9711. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  9712. shlibpath_var=LD_LIBRARY_PATH
  9713. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  9714. case $host_os in
  9715. openbsd2.[89] | openbsd2.[89].*)
  9716. shlibpath_overrides_runpath=no
  9717. ;;
  9718. *)
  9719. shlibpath_overrides_runpath=yes
  9720. ;;
  9721. esac
  9722. else
  9723. shlibpath_overrides_runpath=yes
  9724. fi
  9725. ;;
  9726. os2*)
  9727. libname_spec='$name'
  9728. shrext_cmds=".dll"
  9729. need_lib_prefix=no
  9730. library_names_spec='$libname${shared_ext} $libname.a'
  9731. dynamic_linker='OS/2 ld.exe'
  9732. shlibpath_var=LIBPATH
  9733. ;;
  9734. osf3* | osf4* | osf5*)
  9735. version_type=osf
  9736. need_lib_prefix=no
  9737. need_version=no
  9738. soname_spec='${libname}${release}${shared_ext}$major'
  9739. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9740. shlibpath_var=LD_LIBRARY_PATH
  9741. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  9742. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  9743. ;;
  9744. rdos*)
  9745. dynamic_linker=no
  9746. ;;
  9747. solaris*)
  9748. version_type=linux # correct to gnu/linux during the next big refactor
  9749. need_lib_prefix=no
  9750. need_version=no
  9751. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9752. soname_spec='${libname}${release}${shared_ext}$major'
  9753. shlibpath_var=LD_LIBRARY_PATH
  9754. shlibpath_overrides_runpath=yes
  9755. hardcode_into_libs=yes
  9756. # ldd complains unless libraries are executable
  9757. postinstall_cmds='chmod +x $lib'
  9758. ;;
  9759. sunos4*)
  9760. version_type=sunos
  9761. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9762. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  9763. shlibpath_var=LD_LIBRARY_PATH
  9764. shlibpath_overrides_runpath=yes
  9765. if test "$with_gnu_ld" = yes; then
  9766. need_lib_prefix=no
  9767. fi
  9768. need_version=yes
  9769. ;;
  9770. sysv4 | sysv4.3*)
  9771. version_type=linux # correct to gnu/linux during the next big refactor
  9772. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9773. soname_spec='${libname}${release}${shared_ext}$major'
  9774. shlibpath_var=LD_LIBRARY_PATH
  9775. case $host_vendor in
  9776. sni)
  9777. shlibpath_overrides_runpath=no
  9778. need_lib_prefix=no
  9779. runpath_var=LD_RUN_PATH
  9780. ;;
  9781. siemens)
  9782. need_lib_prefix=no
  9783. ;;
  9784. motorola)
  9785. need_lib_prefix=no
  9786. need_version=no
  9787. shlibpath_overrides_runpath=no
  9788. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  9789. ;;
  9790. esac
  9791. ;;
  9792. sysv4*MP*)
  9793. if test -d /usr/nec ;then
  9794. version_type=linux # correct to gnu/linux during the next big refactor
  9795. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  9796. soname_spec='$libname${shared_ext}.$major'
  9797. shlibpath_var=LD_LIBRARY_PATH
  9798. fi
  9799. ;;
  9800. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  9801. version_type=freebsd-elf
  9802. need_lib_prefix=no
  9803. need_version=no
  9804. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  9805. soname_spec='${libname}${release}${shared_ext}$major'
  9806. shlibpath_var=LD_LIBRARY_PATH
  9807. shlibpath_overrides_runpath=yes
  9808. hardcode_into_libs=yes
  9809. if test "$with_gnu_ld" = yes; then
  9810. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  9811. else
  9812. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  9813. case $host_os in
  9814. sco3.2v5*)
  9815. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  9816. ;;
  9817. esac
  9818. fi
  9819. sys_lib_dlsearch_path_spec='/usr/lib'
  9820. ;;
  9821. tpf*)
  9822. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  9823. version_type=linux # correct to gnu/linux during the next big refactor
  9824. need_lib_prefix=no
  9825. need_version=no
  9826. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9827. shlibpath_var=LD_LIBRARY_PATH
  9828. shlibpath_overrides_runpath=no
  9829. hardcode_into_libs=yes
  9830. ;;
  9831. uts4*)
  9832. version_type=linux # correct to gnu/linux during the next big refactor
  9833. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9834. soname_spec='${libname}${release}${shared_ext}$major'
  9835. shlibpath_var=LD_LIBRARY_PATH
  9836. ;;
  9837. *)
  9838. dynamic_linker=no
  9839. ;;
  9840. esac
  9841. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  9842. $as_echo "$dynamic_linker" >&6; }
  9843. test "$dynamic_linker" = no && can_build_shared=no
  9844. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  9845. if test "$GCC" = yes; then
  9846. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  9847. fi
  9848. if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  9849. sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  9850. fi
  9851. if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  9852. sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  9853. fi
  9854. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  9855. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  9856. hardcode_action=
  9857. if test -n "$hardcode_libdir_flag_spec" ||
  9858. test -n "$runpath_var" ||
  9859. test "X$hardcode_automatic" = "Xyes" ; then
  9860. # We can hardcode non-existent directories.
  9861. if test "$hardcode_direct" != no &&
  9862. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  9863. # have to relink, otherwise we might link with an installed library
  9864. # when we should be linking with a yet-to-be-installed one
  9865. ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
  9866. test "$hardcode_minus_L" != no; then
  9867. # Linking always hardcodes the temporary library directory.
  9868. hardcode_action=relink
  9869. else
  9870. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  9871. hardcode_action=immediate
  9872. fi
  9873. else
  9874. # We cannot hardcode anything, or else we can only hardcode existing
  9875. # directories.
  9876. hardcode_action=unsupported
  9877. fi
  9878. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
  9879. $as_echo "$hardcode_action" >&6; }
  9880. if test "$hardcode_action" = relink ||
  9881. test "$inherit_rpath" = yes; then
  9882. # Fast installation is not supported
  9883. enable_fast_install=no
  9884. elif test "$shlibpath_overrides_runpath" = yes ||
  9885. test "$enable_shared" = no; then
  9886. # Fast installation is not necessary
  9887. enable_fast_install=needless
  9888. fi
  9889. if test "x$enable_dlopen" != xyes; then
  9890. enable_dlopen=unknown
  9891. enable_dlopen_self=unknown
  9892. enable_dlopen_self_static=unknown
  9893. else
  9894. lt_cv_dlopen=no
  9895. lt_cv_dlopen_libs=
  9896. case $host_os in
  9897. beos*)
  9898. lt_cv_dlopen="load_add_on"
  9899. lt_cv_dlopen_libs=
  9900. lt_cv_dlopen_self=yes
  9901. ;;
  9902. mingw* | pw32* | cegcc*)
  9903. lt_cv_dlopen="LoadLibrary"
  9904. lt_cv_dlopen_libs=
  9905. ;;
  9906. cygwin*)
  9907. lt_cv_dlopen="dlopen"
  9908. lt_cv_dlopen_libs=
  9909. ;;
  9910. darwin*)
  9911. # if libdl is installed we need to link against it
  9912. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  9913. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  9914. if ${ac_cv_lib_dl_dlopen+:} false; then :
  9915. $as_echo_n "(cached) " >&6
  9916. else
  9917. ac_check_lib_save_LIBS=$LIBS
  9918. LIBS="-ldl $LIBS"
  9919. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9920. /* end confdefs.h. */
  9921. /* Override any GCC internal prototype to avoid an error.
  9922. Use char because int might match the return type of a GCC
  9923. builtin and then its argument prototype would still apply. */
  9924. #ifdef __cplusplus
  9925. extern "C"
  9926. #endif
  9927. char dlopen ();
  9928. int
  9929. main ()
  9930. {
  9931. return dlopen ();
  9932. ;
  9933. return 0;
  9934. }
  9935. _ACEOF
  9936. if ac_fn_c_try_link "$LINENO"; then :
  9937. ac_cv_lib_dl_dlopen=yes
  9938. else
  9939. ac_cv_lib_dl_dlopen=no
  9940. fi
  9941. rm -f core conftest.err conftest.$ac_objext \
  9942. conftest$ac_exeext conftest.$ac_ext
  9943. LIBS=$ac_check_lib_save_LIBS
  9944. fi
  9945. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  9946. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  9947. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  9948. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  9949. else
  9950. lt_cv_dlopen="dyld"
  9951. lt_cv_dlopen_libs=
  9952. lt_cv_dlopen_self=yes
  9953. fi
  9954. ;;
  9955. *)
  9956. ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
  9957. if test "x$ac_cv_func_shl_load" = xyes; then :
  9958. lt_cv_dlopen="shl_load"
  9959. else
  9960. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
  9961. $as_echo_n "checking for shl_load in -ldld... " >&6; }
  9962. if ${ac_cv_lib_dld_shl_load+:} false; then :
  9963. $as_echo_n "(cached) " >&6
  9964. else
  9965. ac_check_lib_save_LIBS=$LIBS
  9966. LIBS="-ldld $LIBS"
  9967. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9968. /* end confdefs.h. */
  9969. /* Override any GCC internal prototype to avoid an error.
  9970. Use char because int might match the return type of a GCC
  9971. builtin and then its argument prototype would still apply. */
  9972. #ifdef __cplusplus
  9973. extern "C"
  9974. #endif
  9975. char shl_load ();
  9976. int
  9977. main ()
  9978. {
  9979. return shl_load ();
  9980. ;
  9981. return 0;
  9982. }
  9983. _ACEOF
  9984. if ac_fn_c_try_link "$LINENO"; then :
  9985. ac_cv_lib_dld_shl_load=yes
  9986. else
  9987. ac_cv_lib_dld_shl_load=no
  9988. fi
  9989. rm -f core conftest.err conftest.$ac_objext \
  9990. conftest$ac_exeext conftest.$ac_ext
  9991. LIBS=$ac_check_lib_save_LIBS
  9992. fi
  9993. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
  9994. $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
  9995. if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
  9996. lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
  9997. else
  9998. ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
  9999. if test "x$ac_cv_func_dlopen" = xyes; then :
  10000. lt_cv_dlopen="dlopen"
  10001. else
  10002. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  10003. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  10004. if ${ac_cv_lib_dl_dlopen+:} false; then :
  10005. $as_echo_n "(cached) " >&6
  10006. else
  10007. ac_check_lib_save_LIBS=$LIBS
  10008. LIBS="-ldl $LIBS"
  10009. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10010. /* end confdefs.h. */
  10011. /* Override any GCC internal prototype to avoid an error.
  10012. Use char because int might match the return type of a GCC
  10013. builtin and then its argument prototype would still apply. */
  10014. #ifdef __cplusplus
  10015. extern "C"
  10016. #endif
  10017. char dlopen ();
  10018. int
  10019. main ()
  10020. {
  10021. return dlopen ();
  10022. ;
  10023. return 0;
  10024. }
  10025. _ACEOF
  10026. if ac_fn_c_try_link "$LINENO"; then :
  10027. ac_cv_lib_dl_dlopen=yes
  10028. else
  10029. ac_cv_lib_dl_dlopen=no
  10030. fi
  10031. rm -f core conftest.err conftest.$ac_objext \
  10032. conftest$ac_exeext conftest.$ac_ext
  10033. LIBS=$ac_check_lib_save_LIBS
  10034. fi
  10035. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  10036. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  10037. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  10038. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  10039. else
  10040. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
  10041. $as_echo_n "checking for dlopen in -lsvld... " >&6; }
  10042. if ${ac_cv_lib_svld_dlopen+:} false; then :
  10043. $as_echo_n "(cached) " >&6
  10044. else
  10045. ac_check_lib_save_LIBS=$LIBS
  10046. LIBS="-lsvld $LIBS"
  10047. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10048. /* end confdefs.h. */
  10049. /* Override any GCC internal prototype to avoid an error.
  10050. Use char because int might match the return type of a GCC
  10051. builtin and then its argument prototype would still apply. */
  10052. #ifdef __cplusplus
  10053. extern "C"
  10054. #endif
  10055. char dlopen ();
  10056. int
  10057. main ()
  10058. {
  10059. return dlopen ();
  10060. ;
  10061. return 0;
  10062. }
  10063. _ACEOF
  10064. if ac_fn_c_try_link "$LINENO"; then :
  10065. ac_cv_lib_svld_dlopen=yes
  10066. else
  10067. ac_cv_lib_svld_dlopen=no
  10068. fi
  10069. rm -f core conftest.err conftest.$ac_objext \
  10070. conftest$ac_exeext conftest.$ac_ext
  10071. LIBS=$ac_check_lib_save_LIBS
  10072. fi
  10073. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
  10074. $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
  10075. if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
  10076. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
  10077. else
  10078. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
  10079. $as_echo_n "checking for dld_link in -ldld... " >&6; }
  10080. if ${ac_cv_lib_dld_dld_link+:} false; then :
  10081. $as_echo_n "(cached) " >&6
  10082. else
  10083. ac_check_lib_save_LIBS=$LIBS
  10084. LIBS="-ldld $LIBS"
  10085. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10086. /* end confdefs.h. */
  10087. /* Override any GCC internal prototype to avoid an error.
  10088. Use char because int might match the return type of a GCC
  10089. builtin and then its argument prototype would still apply. */
  10090. #ifdef __cplusplus
  10091. extern "C"
  10092. #endif
  10093. char dld_link ();
  10094. int
  10095. main ()
  10096. {
  10097. return dld_link ();
  10098. ;
  10099. return 0;
  10100. }
  10101. _ACEOF
  10102. if ac_fn_c_try_link "$LINENO"; then :
  10103. ac_cv_lib_dld_dld_link=yes
  10104. else
  10105. ac_cv_lib_dld_dld_link=no
  10106. fi
  10107. rm -f core conftest.err conftest.$ac_objext \
  10108. conftest$ac_exeext conftest.$ac_ext
  10109. LIBS=$ac_check_lib_save_LIBS
  10110. fi
  10111. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
  10112. $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
  10113. if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
  10114. lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
  10115. fi
  10116. fi
  10117. fi
  10118. fi
  10119. fi
  10120. fi
  10121. ;;
  10122. esac
  10123. if test "x$lt_cv_dlopen" != xno; then
  10124. enable_dlopen=yes
  10125. else
  10126. enable_dlopen=no
  10127. fi
  10128. case $lt_cv_dlopen in
  10129. dlopen)
  10130. save_CPPFLAGS="$CPPFLAGS"
  10131. test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  10132. save_LDFLAGS="$LDFLAGS"
  10133. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  10134. save_LIBS="$LIBS"
  10135. LIBS="$lt_cv_dlopen_libs $LIBS"
  10136. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
  10137. $as_echo_n "checking whether a program can dlopen itself... " >&6; }
  10138. if ${lt_cv_dlopen_self+:} false; then :
  10139. $as_echo_n "(cached) " >&6
  10140. else
  10141. if test "$cross_compiling" = yes; then :
  10142. lt_cv_dlopen_self=cross
  10143. else
  10144. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  10145. lt_status=$lt_dlunknown
  10146. cat > conftest.$ac_ext <<_LT_EOF
  10147. #line $LINENO "configure"
  10148. #include "confdefs.h"
  10149. #if HAVE_DLFCN_H
  10150. #include <dlfcn.h>
  10151. #endif
  10152. #include <stdio.h>
  10153. #ifdef RTLD_GLOBAL
  10154. # define LT_DLGLOBAL RTLD_GLOBAL
  10155. #else
  10156. # ifdef DL_GLOBAL
  10157. # define LT_DLGLOBAL DL_GLOBAL
  10158. # else
  10159. # define LT_DLGLOBAL 0
  10160. # endif
  10161. #endif
  10162. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  10163. find out it does not work in some platform. */
  10164. #ifndef LT_DLLAZY_OR_NOW
  10165. # ifdef RTLD_LAZY
  10166. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  10167. # else
  10168. # ifdef DL_LAZY
  10169. # define LT_DLLAZY_OR_NOW DL_LAZY
  10170. # else
  10171. # ifdef RTLD_NOW
  10172. # define LT_DLLAZY_OR_NOW RTLD_NOW
  10173. # else
  10174. # ifdef DL_NOW
  10175. # define LT_DLLAZY_OR_NOW DL_NOW
  10176. # else
  10177. # define LT_DLLAZY_OR_NOW 0
  10178. # endif
  10179. # endif
  10180. # endif
  10181. # endif
  10182. #endif
  10183. /* When -fvisbility=hidden is used, assume the code has been annotated
  10184. correspondingly for the symbols needed. */
  10185. #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  10186. int fnord () __attribute__((visibility("default")));
  10187. #endif
  10188. int fnord () { return 42; }
  10189. int main ()
  10190. {
  10191. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  10192. int status = $lt_dlunknown;
  10193. if (self)
  10194. {
  10195. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  10196. else
  10197. {
  10198. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  10199. else puts (dlerror ());
  10200. }
  10201. /* dlclose (self); */
  10202. }
  10203. else
  10204. puts (dlerror ());
  10205. return status;
  10206. }
  10207. _LT_EOF
  10208. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  10209. (eval $ac_link) 2>&5
  10210. ac_status=$?
  10211. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10212. test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  10213. (./conftest; exit; ) >&5 2>/dev/null
  10214. lt_status=$?
  10215. case x$lt_status in
  10216. x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  10217. x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  10218. x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
  10219. esac
  10220. else :
  10221. # compilation failed
  10222. lt_cv_dlopen_self=no
  10223. fi
  10224. fi
  10225. rm -fr conftest*
  10226. fi
  10227. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
  10228. $as_echo "$lt_cv_dlopen_self" >&6; }
  10229. if test "x$lt_cv_dlopen_self" = xyes; then
  10230. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  10231. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
  10232. $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
  10233. if ${lt_cv_dlopen_self_static+:} false; then :
  10234. $as_echo_n "(cached) " >&6
  10235. else
  10236. if test "$cross_compiling" = yes; then :
  10237. lt_cv_dlopen_self_static=cross
  10238. else
  10239. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  10240. lt_status=$lt_dlunknown
  10241. cat > conftest.$ac_ext <<_LT_EOF
  10242. #line $LINENO "configure"
  10243. #include "confdefs.h"
  10244. #if HAVE_DLFCN_H
  10245. #include <dlfcn.h>
  10246. #endif
  10247. #include <stdio.h>
  10248. #ifdef RTLD_GLOBAL
  10249. # define LT_DLGLOBAL RTLD_GLOBAL
  10250. #else
  10251. # ifdef DL_GLOBAL
  10252. # define LT_DLGLOBAL DL_GLOBAL
  10253. # else
  10254. # define LT_DLGLOBAL 0
  10255. # endif
  10256. #endif
  10257. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  10258. find out it does not work in some platform. */
  10259. #ifndef LT_DLLAZY_OR_NOW
  10260. # ifdef RTLD_LAZY
  10261. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  10262. # else
  10263. # ifdef DL_LAZY
  10264. # define LT_DLLAZY_OR_NOW DL_LAZY
  10265. # else
  10266. # ifdef RTLD_NOW
  10267. # define LT_DLLAZY_OR_NOW RTLD_NOW
  10268. # else
  10269. # ifdef DL_NOW
  10270. # define LT_DLLAZY_OR_NOW DL_NOW
  10271. # else
  10272. # define LT_DLLAZY_OR_NOW 0
  10273. # endif
  10274. # endif
  10275. # endif
  10276. # endif
  10277. #endif
  10278. /* When -fvisbility=hidden is used, assume the code has been annotated
  10279. correspondingly for the symbols needed. */
  10280. #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  10281. int fnord () __attribute__((visibility("default")));
  10282. #endif
  10283. int fnord () { return 42; }
  10284. int main ()
  10285. {
  10286. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  10287. int status = $lt_dlunknown;
  10288. if (self)
  10289. {
  10290. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  10291. else
  10292. {
  10293. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  10294. else puts (dlerror ());
  10295. }
  10296. /* dlclose (self); */
  10297. }
  10298. else
  10299. puts (dlerror ());
  10300. return status;
  10301. }
  10302. _LT_EOF
  10303. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  10304. (eval $ac_link) 2>&5
  10305. ac_status=$?
  10306. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10307. test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  10308. (./conftest; exit; ) >&5 2>/dev/null
  10309. lt_status=$?
  10310. case x$lt_status in
  10311. x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  10312. x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  10313. x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
  10314. esac
  10315. else :
  10316. # compilation failed
  10317. lt_cv_dlopen_self_static=no
  10318. fi
  10319. fi
  10320. rm -fr conftest*
  10321. fi
  10322. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
  10323. $as_echo "$lt_cv_dlopen_self_static" >&6; }
  10324. fi
  10325. CPPFLAGS="$save_CPPFLAGS"
  10326. LDFLAGS="$save_LDFLAGS"
  10327. LIBS="$save_LIBS"
  10328. ;;
  10329. esac
  10330. case $lt_cv_dlopen_self in
  10331. yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  10332. *) enable_dlopen_self=unknown ;;
  10333. esac
  10334. case $lt_cv_dlopen_self_static in
  10335. yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  10336. *) enable_dlopen_self_static=unknown ;;
  10337. esac
  10338. fi
  10339. striplib=
  10340. old_striplib=
  10341. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
  10342. $as_echo_n "checking whether stripping libraries is possible... " >&6; }
  10343. if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
  10344. test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  10345. test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  10346. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  10347. $as_echo "yes" >&6; }
  10348. else
  10349. # FIXME - insert some real tests, host_os isn't really good enough
  10350. case $host_os in
  10351. darwin*)
  10352. if test -n "$STRIP" ; then
  10353. striplib="$STRIP -x"
  10354. old_striplib="$STRIP -S"
  10355. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  10356. $as_echo "yes" >&6; }
  10357. else
  10358. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10359. $as_echo "no" >&6; }
  10360. fi
  10361. ;;
  10362. *)
  10363. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10364. $as_echo "no" >&6; }
  10365. ;;
  10366. esac
  10367. fi
  10368. # Report which library types will actually be built
  10369. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
  10370. $as_echo_n "checking if libtool supports shared libraries... " >&6; }
  10371. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
  10372. $as_echo "$can_build_shared" >&6; }
  10373. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
  10374. $as_echo_n "checking whether to build shared libraries... " >&6; }
  10375. test "$can_build_shared" = "no" && enable_shared=no
  10376. # On AIX, shared libraries and static libraries use the same namespace, and
  10377. # are all built from PIC.
  10378. case $host_os in
  10379. aix3*)
  10380. test "$enable_shared" = yes && enable_static=no
  10381. if test -n "$RANLIB"; then
  10382. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  10383. postinstall_cmds='$RANLIB $lib'
  10384. fi
  10385. ;;
  10386. aix[4-9]*)
  10387. if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  10388. test "$enable_shared" = yes && enable_static=no
  10389. fi
  10390. ;;
  10391. esac
  10392. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
  10393. $as_echo "$enable_shared" >&6; }
  10394. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
  10395. $as_echo_n "checking whether to build static libraries... " >&6; }
  10396. # Make sure either enable_shared or enable_static is yes.
  10397. test "$enable_shared" = yes || enable_static=yes
  10398. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
  10399. $as_echo "$enable_static" >&6; }
  10400. fi
  10401. ac_ext=c
  10402. ac_cpp='$CPP $CPPFLAGS'
  10403. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10404. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10405. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  10406. CC="$lt_save_CC"
  10407. if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
  10408. ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
  10409. (test "X$CXX" != "Xg++"))) ; then
  10410. ac_ext=cpp
  10411. ac_cpp='$CXXCPP $CPPFLAGS'
  10412. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10413. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10414. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  10415. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
  10416. $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
  10417. if test -z "$CXXCPP"; then
  10418. if ${ac_cv_prog_CXXCPP+:} false; then :
  10419. $as_echo_n "(cached) " >&6
  10420. else
  10421. # Double quotes because CXXCPP needs to be expanded
  10422. for CXXCPP in "$CXX -E" "/lib/cpp"
  10423. do
  10424. ac_preproc_ok=false
  10425. for ac_cxx_preproc_warn_flag in '' yes
  10426. do
  10427. # Use a header file that comes with gcc, so configuring glibc
  10428. # with a fresh cross-compiler works.
  10429. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  10430. # <limits.h> exists even on freestanding compilers.
  10431. # On the NeXT, cc -E runs the code through the compiler's parser,
  10432. # not just through cpp. "Syntax error" is here to catch this case.
  10433. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10434. /* end confdefs.h. */
  10435. #ifdef __STDC__
  10436. # include <limits.h>
  10437. #else
  10438. # include <assert.h>
  10439. #endif
  10440. Syntax error
  10441. _ACEOF
  10442. if ac_fn_cxx_try_cpp "$LINENO"; then :
  10443. else
  10444. # Broken: fails on valid input.
  10445. continue
  10446. fi
  10447. rm -f conftest.err conftest.i conftest.$ac_ext
  10448. # OK, works on sane cases. Now check whether nonexistent headers
  10449. # can be detected and how.
  10450. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10451. /* end confdefs.h. */
  10452. #include <ac_nonexistent.h>
  10453. _ACEOF
  10454. if ac_fn_cxx_try_cpp "$LINENO"; then :
  10455. # Broken: success on invalid input.
  10456. continue
  10457. else
  10458. # Passes both tests.
  10459. ac_preproc_ok=:
  10460. break
  10461. fi
  10462. rm -f conftest.err conftest.i conftest.$ac_ext
  10463. done
  10464. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  10465. rm -f conftest.i conftest.err conftest.$ac_ext
  10466. if $ac_preproc_ok; then :
  10467. break
  10468. fi
  10469. done
  10470. ac_cv_prog_CXXCPP=$CXXCPP
  10471. fi
  10472. CXXCPP=$ac_cv_prog_CXXCPP
  10473. else
  10474. ac_cv_prog_CXXCPP=$CXXCPP
  10475. fi
  10476. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
  10477. $as_echo "$CXXCPP" >&6; }
  10478. ac_preproc_ok=false
  10479. for ac_cxx_preproc_warn_flag in '' yes
  10480. do
  10481. # Use a header file that comes with gcc, so configuring glibc
  10482. # with a fresh cross-compiler works.
  10483. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  10484. # <limits.h> exists even on freestanding compilers.
  10485. # On the NeXT, cc -E runs the code through the compiler's parser,
  10486. # not just through cpp. "Syntax error" is here to catch this case.
  10487. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10488. /* end confdefs.h. */
  10489. #ifdef __STDC__
  10490. # include <limits.h>
  10491. #else
  10492. # include <assert.h>
  10493. #endif
  10494. Syntax error
  10495. _ACEOF
  10496. if ac_fn_cxx_try_cpp "$LINENO"; then :
  10497. else
  10498. # Broken: fails on valid input.
  10499. continue
  10500. fi
  10501. rm -f conftest.err conftest.i conftest.$ac_ext
  10502. # OK, works on sane cases. Now check whether nonexistent headers
  10503. # can be detected and how.
  10504. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10505. /* end confdefs.h. */
  10506. #include <ac_nonexistent.h>
  10507. _ACEOF
  10508. if ac_fn_cxx_try_cpp "$LINENO"; then :
  10509. # Broken: success on invalid input.
  10510. continue
  10511. else
  10512. # Passes both tests.
  10513. ac_preproc_ok=:
  10514. break
  10515. fi
  10516. rm -f conftest.err conftest.i conftest.$ac_ext
  10517. done
  10518. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  10519. rm -f conftest.i conftest.err conftest.$ac_ext
  10520. if $ac_preproc_ok; then :
  10521. else
  10522. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  10523. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  10524. as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
  10525. See \`config.log' for more details" "$LINENO" 5; }
  10526. fi
  10527. ac_ext=c
  10528. ac_cpp='$CPP $CPPFLAGS'
  10529. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10530. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10531. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  10532. else
  10533. _lt_caught_CXX_error=yes
  10534. fi
  10535. ac_ext=cpp
  10536. ac_cpp='$CXXCPP $CPPFLAGS'
  10537. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10538. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10539. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  10540. archive_cmds_need_lc_CXX=no
  10541. allow_undefined_flag_CXX=
  10542. always_export_symbols_CXX=no
  10543. archive_expsym_cmds_CXX=
  10544. compiler_needs_object_CXX=no
  10545. export_dynamic_flag_spec_CXX=
  10546. hardcode_direct_CXX=no
  10547. hardcode_direct_absolute_CXX=no
  10548. hardcode_libdir_flag_spec_CXX=
  10549. hardcode_libdir_separator_CXX=
  10550. hardcode_minus_L_CXX=no
  10551. hardcode_shlibpath_var_CXX=unsupported
  10552. hardcode_automatic_CXX=no
  10553. inherit_rpath_CXX=no
  10554. module_cmds_CXX=
  10555. module_expsym_cmds_CXX=
  10556. link_all_deplibs_CXX=unknown
  10557. old_archive_cmds_CXX=$old_archive_cmds
  10558. reload_flag_CXX=$reload_flag
  10559. reload_cmds_CXX=$reload_cmds
  10560. no_undefined_flag_CXX=
  10561. whole_archive_flag_spec_CXX=
  10562. enable_shared_with_static_runtimes_CXX=no
  10563. # Source file extension for C++ test sources.
  10564. ac_ext=cpp
  10565. # Object file extension for compiled C++ test sources.
  10566. objext=o
  10567. objext_CXX=$objext
  10568. # No sense in running all these tests if we already determined that
  10569. # the CXX compiler isn't working. Some variables (like enable_shared)
  10570. # are currently assumed to apply to all compilers on this platform,
  10571. # and will be corrupted by setting them based on a non-working compiler.
  10572. if test "$_lt_caught_CXX_error" != yes; then
  10573. # Code to be used in simple compile tests
  10574. lt_simple_compile_test_code="int some_variable = 0;"
  10575. # Code to be used in simple link tests
  10576. lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
  10577. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  10578. # If no C compiler was specified, use CC.
  10579. LTCC=${LTCC-"$CC"}
  10580. # If no C compiler flags were specified, use CFLAGS.
  10581. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  10582. # Allow CC to be a program name with arguments.
  10583. compiler=$CC
  10584. # save warnings/boilerplate of simple test code
  10585. ac_outfile=conftest.$ac_objext
  10586. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  10587. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  10588. _lt_compiler_boilerplate=`cat conftest.err`
  10589. $RM conftest*
  10590. ac_outfile=conftest.$ac_objext
  10591. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  10592. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  10593. _lt_linker_boilerplate=`cat conftest.err`
  10594. $RM -r conftest*
  10595. # Allow CC to be a program name with arguments.
  10596. lt_save_CC=$CC
  10597. lt_save_CFLAGS=$CFLAGS
  10598. lt_save_LD=$LD
  10599. lt_save_GCC=$GCC
  10600. GCC=$GXX
  10601. lt_save_with_gnu_ld=$with_gnu_ld
  10602. lt_save_path_LD=$lt_cv_path_LD
  10603. if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
  10604. lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
  10605. else
  10606. $as_unset lt_cv_prog_gnu_ld
  10607. fi
  10608. if test -n "${lt_cv_path_LDCXX+set}"; then
  10609. lt_cv_path_LD=$lt_cv_path_LDCXX
  10610. else
  10611. $as_unset lt_cv_path_LD
  10612. fi
  10613. test -z "${LDCXX+set}" || LD=$LDCXX
  10614. CC=${CXX-"c++"}
  10615. CFLAGS=$CXXFLAGS
  10616. compiler=$CC
  10617. compiler_CXX=$CC
  10618. for cc_temp in $compiler""; do
  10619. case $cc_temp in
  10620. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  10621. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  10622. \-*) ;;
  10623. *) break;;
  10624. esac
  10625. done
  10626. cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  10627. if test -n "$compiler"; then
  10628. # We don't want -fno-exception when compiling C++ code, so set the
  10629. # no_builtin_flag separately
  10630. if test "$GXX" = yes; then
  10631. lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
  10632. else
  10633. lt_prog_compiler_no_builtin_flag_CXX=
  10634. fi
  10635. if test "$GXX" = yes; then
  10636. # Set up default GNU C++ configuration
  10637. # Check whether --with-gnu-ld was given.
  10638. if test "${with_gnu_ld+set}" = set; then :
  10639. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  10640. else
  10641. with_gnu_ld=no
  10642. fi
  10643. ac_prog=ld
  10644. if test "$GCC" = yes; then
  10645. # Check if gcc -print-prog-name=ld gives a path.
  10646. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  10647. $as_echo_n "checking for ld used by $CC... " >&6; }
  10648. case $host in
  10649. *-*-mingw*)
  10650. # gcc leaves a trailing carriage return which upsets mingw
  10651. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  10652. *)
  10653. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  10654. esac
  10655. case $ac_prog in
  10656. # Accept absolute paths.
  10657. [\\/]* | ?:[\\/]*)
  10658. re_direlt='/[^/][^/]*/\.\./'
  10659. # Canonicalize the pathname of ld
  10660. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  10661. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  10662. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  10663. done
  10664. test -z "$LD" && LD="$ac_prog"
  10665. ;;
  10666. "")
  10667. # If it fails, then pretend we aren't using GCC.
  10668. ac_prog=ld
  10669. ;;
  10670. *)
  10671. # If it is relative, then search for the first ld in PATH.
  10672. with_gnu_ld=unknown
  10673. ;;
  10674. esac
  10675. elif test "$with_gnu_ld" = yes; then
  10676. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  10677. $as_echo_n "checking for GNU ld... " >&6; }
  10678. else
  10679. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  10680. $as_echo_n "checking for non-GNU ld... " >&6; }
  10681. fi
  10682. if ${lt_cv_path_LD+:} false; then :
  10683. $as_echo_n "(cached) " >&6
  10684. else
  10685. if test -z "$LD"; then
  10686. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  10687. for ac_dir in $PATH; do
  10688. IFS="$lt_save_ifs"
  10689. test -z "$ac_dir" && ac_dir=.
  10690. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  10691. lt_cv_path_LD="$ac_dir/$ac_prog"
  10692. # Check to see if the program is GNU ld. I'd rather use --version,
  10693. # but apparently some variants of GNU ld only accept -v.
  10694. # Break only if it was the GNU/non-GNU ld that we prefer.
  10695. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  10696. *GNU* | *'with BFD'*)
  10697. test "$with_gnu_ld" != no && break
  10698. ;;
  10699. *)
  10700. test "$with_gnu_ld" != yes && break
  10701. ;;
  10702. esac
  10703. fi
  10704. done
  10705. IFS="$lt_save_ifs"
  10706. else
  10707. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  10708. fi
  10709. fi
  10710. LD="$lt_cv_path_LD"
  10711. if test -n "$LD"; then
  10712. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  10713. $as_echo "$LD" >&6; }
  10714. else
  10715. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10716. $as_echo "no" >&6; }
  10717. fi
  10718. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  10719. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  10720. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  10721. if ${lt_cv_prog_gnu_ld+:} false; then :
  10722. $as_echo_n "(cached) " >&6
  10723. else
  10724. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  10725. case `$LD -v 2>&1 </dev/null` in
  10726. *GNU* | *'with BFD'*)
  10727. lt_cv_prog_gnu_ld=yes
  10728. ;;
  10729. *)
  10730. lt_cv_prog_gnu_ld=no
  10731. ;;
  10732. esac
  10733. fi
  10734. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  10735. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  10736. with_gnu_ld=$lt_cv_prog_gnu_ld
  10737. # Check if GNU C++ uses GNU ld as the underlying linker, since the
  10738. # archiving commands below assume that GNU ld is being used.
  10739. if test "$with_gnu_ld" = yes; then
  10740. archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  10741. 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'
  10742. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  10743. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  10744. # If archive_cmds runs LD, not CC, wlarc should be empty
  10745. # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
  10746. # investigate it a little bit more. (MM)
  10747. wlarc='${wl}'
  10748. # ancient GNU ld didn't support --whole-archive et. al.
  10749. if eval "`$CC -print-prog-name=ld` --help 2>&1" |
  10750. $GREP 'no-whole-archive' > /dev/null; then
  10751. whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  10752. else
  10753. whole_archive_flag_spec_CXX=
  10754. fi
  10755. else
  10756. with_gnu_ld=no
  10757. wlarc=
  10758. # A generic and very simple default shared library creation
  10759. # command for GNU C++ for the case where it uses the native
  10760. # linker, instead of GNU ld. If possible, this setting should
  10761. # overridden to take advantage of the native linker features on
  10762. # the platform it is being used on.
  10763. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  10764. fi
  10765. # Commands to make compiler produce verbose output that lists
  10766. # what "hidden" libraries, object files and flags are used when
  10767. # linking a shared library.
  10768. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  10769. else
  10770. GXX=no
  10771. with_gnu_ld=no
  10772. wlarc=
  10773. fi
  10774. # PORTME: fill in a description of your system's C++ link characteristics
  10775. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  10776. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  10777. ld_shlibs_CXX=yes
  10778. case $host_os in
  10779. aix3*)
  10780. # FIXME: insert proper C++ library support
  10781. ld_shlibs_CXX=no
  10782. ;;
  10783. aix[4-9]*)
  10784. if test "$host_cpu" = ia64; then
  10785. # On IA64, the linker does run time linking by default, so we don't
  10786. # have to do anything special.
  10787. aix_use_runtimelinking=no
  10788. exp_sym_flag='-Bexport'
  10789. no_entry_flag=""
  10790. else
  10791. aix_use_runtimelinking=no
  10792. # Test if we are trying to use run time linking or normal
  10793. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  10794. # need to do runtime linking.
  10795. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  10796. for ld_flag in $LDFLAGS; do
  10797. case $ld_flag in
  10798. *-brtl*)
  10799. aix_use_runtimelinking=yes
  10800. break
  10801. ;;
  10802. esac
  10803. done
  10804. ;;
  10805. esac
  10806. exp_sym_flag='-bexport'
  10807. no_entry_flag='-bnoentry'
  10808. fi
  10809. # When large executables or shared objects are built, AIX ld can
  10810. # have problems creating the table of contents. If linking a library
  10811. # or program results in "error TOC overflow" add -mminimal-toc to
  10812. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  10813. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  10814. archive_cmds_CXX=''
  10815. hardcode_direct_CXX=yes
  10816. hardcode_direct_absolute_CXX=yes
  10817. hardcode_libdir_separator_CXX=':'
  10818. link_all_deplibs_CXX=yes
  10819. file_list_spec_CXX='${wl}-f,'
  10820. if test "$GXX" = yes; then
  10821. case $host_os in aix4.[012]|aix4.[012].*)
  10822. # We only want to do this on AIX 4.2 and lower, the check
  10823. # below for broken collect2 doesn't work under 4.3+
  10824. collect2name=`${CC} -print-prog-name=collect2`
  10825. if test -f "$collect2name" &&
  10826. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  10827. then
  10828. # We have reworked collect2
  10829. :
  10830. else
  10831. # We have old collect2
  10832. hardcode_direct_CXX=unsupported
  10833. # It fails to find uninstalled libraries when the uninstalled
  10834. # path is not listed in the libpath. Setting hardcode_minus_L
  10835. # to unsupported forces relinking
  10836. hardcode_minus_L_CXX=yes
  10837. hardcode_libdir_flag_spec_CXX='-L$libdir'
  10838. hardcode_libdir_separator_CXX=
  10839. fi
  10840. esac
  10841. shared_flag='-shared'
  10842. if test "$aix_use_runtimelinking" = yes; then
  10843. shared_flag="$shared_flag "'${wl}-G'
  10844. fi
  10845. else
  10846. # not using gcc
  10847. if test "$host_cpu" = ia64; then
  10848. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  10849. # chokes on -Wl,-G. The following line is correct:
  10850. shared_flag='-G'
  10851. else
  10852. if test "$aix_use_runtimelinking" = yes; then
  10853. shared_flag='${wl}-G'
  10854. else
  10855. shared_flag='${wl}-bM:SRE'
  10856. fi
  10857. fi
  10858. fi
  10859. export_dynamic_flag_spec_CXX='${wl}-bexpall'
  10860. # It seems that -bexpall does not export symbols beginning with
  10861. # underscore (_), so it is better to generate a list of symbols to
  10862. # export.
  10863. always_export_symbols_CXX=yes
  10864. if test "$aix_use_runtimelinking" = yes; then
  10865. # Warning - without using the other runtime loading flags (-brtl),
  10866. # -berok will link without error, but may produce a broken library.
  10867. allow_undefined_flag_CXX='-berok'
  10868. # Determine the default libpath from the value encoded in an empty
  10869. # executable.
  10870. if test "${lt_cv_aix_libpath+set}" = set; then
  10871. aix_libpath=$lt_cv_aix_libpath
  10872. else
  10873. if ${lt_cv_aix_libpath__CXX+:} false; then :
  10874. $as_echo_n "(cached) " >&6
  10875. else
  10876. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10877. /* end confdefs.h. */
  10878. int
  10879. main ()
  10880. {
  10881. ;
  10882. return 0;
  10883. }
  10884. _ACEOF
  10885. if ac_fn_cxx_try_link "$LINENO"; then :
  10886. lt_aix_libpath_sed='
  10887. /Import File Strings/,/^$/ {
  10888. /^0/ {
  10889. s/^0 *\([^ ]*\) *$/\1/
  10890. p
  10891. }
  10892. }'
  10893. lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  10894. # Check for a 64-bit object if we didn't find anything.
  10895. if test -z "$lt_cv_aix_libpath__CXX"; then
  10896. lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  10897. fi
  10898. fi
  10899. rm -f core conftest.err conftest.$ac_objext \
  10900. conftest$ac_exeext conftest.$ac_ext
  10901. if test -z "$lt_cv_aix_libpath__CXX"; then
  10902. lt_cv_aix_libpath__CXX="/usr/lib:/lib"
  10903. fi
  10904. fi
  10905. aix_libpath=$lt_cv_aix_libpath__CXX
  10906. fi
  10907. hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
  10908. 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"
  10909. else
  10910. if test "$host_cpu" = ia64; then
  10911. hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
  10912. allow_undefined_flag_CXX="-z nodefs"
  10913. 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"
  10914. else
  10915. # Determine the default libpath from the value encoded in an
  10916. # empty executable.
  10917. if test "${lt_cv_aix_libpath+set}" = set; then
  10918. aix_libpath=$lt_cv_aix_libpath
  10919. else
  10920. if ${lt_cv_aix_libpath__CXX+:} false; then :
  10921. $as_echo_n "(cached) " >&6
  10922. else
  10923. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10924. /* end confdefs.h. */
  10925. int
  10926. main ()
  10927. {
  10928. ;
  10929. return 0;
  10930. }
  10931. _ACEOF
  10932. if ac_fn_cxx_try_link "$LINENO"; then :
  10933. lt_aix_libpath_sed='
  10934. /Import File Strings/,/^$/ {
  10935. /^0/ {
  10936. s/^0 *\([^ ]*\) *$/\1/
  10937. p
  10938. }
  10939. }'
  10940. lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  10941. # Check for a 64-bit object if we didn't find anything.
  10942. if test -z "$lt_cv_aix_libpath__CXX"; then
  10943. lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  10944. fi
  10945. fi
  10946. rm -f core conftest.err conftest.$ac_objext \
  10947. conftest$ac_exeext conftest.$ac_ext
  10948. if test -z "$lt_cv_aix_libpath__CXX"; then
  10949. lt_cv_aix_libpath__CXX="/usr/lib:/lib"
  10950. fi
  10951. fi
  10952. aix_libpath=$lt_cv_aix_libpath__CXX
  10953. fi
  10954. hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
  10955. # Warning - without using the other run time loading flags,
  10956. # -berok will link without error, but may produce a broken library.
  10957. no_undefined_flag_CXX=' ${wl}-bernotok'
  10958. allow_undefined_flag_CXX=' ${wl}-berok'
  10959. if test "$with_gnu_ld" = yes; then
  10960. # We only use this code for GNU lds that support --whole-archive.
  10961. whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  10962. else
  10963. # Exported symbols can be pulled into shared objects from archives
  10964. whole_archive_flag_spec_CXX='$convenience'
  10965. fi
  10966. archive_cmds_need_lc_CXX=yes
  10967. # This is similar to how AIX traditionally builds its shared
  10968. # libraries.
  10969. 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'
  10970. fi
  10971. fi
  10972. ;;
  10973. beos*)
  10974. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  10975. allow_undefined_flag_CXX=unsupported
  10976. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  10977. # support --undefined. This deserves some investigation. FIXME
  10978. archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  10979. else
  10980. ld_shlibs_CXX=no
  10981. fi
  10982. ;;
  10983. chorus*)
  10984. case $cc_basename in
  10985. *)
  10986. # FIXME: insert proper C++ library support
  10987. ld_shlibs_CXX=no
  10988. ;;
  10989. esac
  10990. ;;
  10991. cygwin* | mingw* | pw32* | cegcc*)
  10992. case $GXX,$cc_basename in
  10993. ,cl* | no,cl*)
  10994. # Native MSVC
  10995. # hardcode_libdir_flag_spec is actually meaningless, as there is
  10996. # no search path for DLLs.
  10997. hardcode_libdir_flag_spec_CXX=' '
  10998. allow_undefined_flag_CXX=unsupported
  10999. always_export_symbols_CXX=yes
  11000. file_list_spec_CXX='@'
  11001. # Tell ltmain to make .lib files, not .a files.
  11002. libext=lib
  11003. # Tell ltmain to make .dll files, not .so files.
  11004. shrext_cmds=".dll"
  11005. # FIXME: Setting linknames here is a bad hack.
  11006. archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
  11007. archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  11008. $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
  11009. else
  11010. $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
  11011. fi~
  11012. $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
  11013. linknames='
  11014. # The linker will not automatically build a static lib if we build a DLL.
  11015. # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
  11016. enable_shared_with_static_runtimes_CXX=yes
  11017. # Don't use ranlib
  11018. old_postinstall_cmds_CXX='chmod 644 $oldlib'
  11019. postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
  11020. lt_tool_outputfile="@TOOL_OUTPUT@"~
  11021. case $lt_outputfile in
  11022. *.exe|*.EXE) ;;
  11023. *)
  11024. lt_outputfile="$lt_outputfile.exe"
  11025. lt_tool_outputfile="$lt_tool_outputfile.exe"
  11026. ;;
  11027. esac~
  11028. func_to_tool_file "$lt_outputfile"~
  11029. if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
  11030. $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
  11031. $RM "$lt_outputfile.manifest";
  11032. fi'
  11033. ;;
  11034. *)
  11035. # g++
  11036. # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
  11037. # as there is no search path for DLLs.
  11038. hardcode_libdir_flag_spec_CXX='-L$libdir'
  11039. export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
  11040. allow_undefined_flag_CXX=unsupported
  11041. always_export_symbols_CXX=no
  11042. enable_shared_with_static_runtimes_CXX=yes
  11043. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  11044. 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'
  11045. # If the export-symbols file already is a .def file (1st line
  11046. # is EXPORTS), use it as is; otherwise, prepend...
  11047. archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  11048. cp $export_symbols $output_objdir/$soname.def;
  11049. else
  11050. echo EXPORTS > $output_objdir/$soname.def;
  11051. cat $export_symbols >> $output_objdir/$soname.def;
  11052. fi~
  11053. $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'
  11054. else
  11055. ld_shlibs_CXX=no
  11056. fi
  11057. ;;
  11058. esac
  11059. ;;
  11060. darwin* | rhapsody*)
  11061. archive_cmds_need_lc_CXX=no
  11062. hardcode_direct_CXX=no
  11063. hardcode_automatic_CXX=yes
  11064. hardcode_shlibpath_var_CXX=unsupported
  11065. if test "$lt_cv_ld_force_load" = "yes"; then
  11066. 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\"`'
  11067. else
  11068. whole_archive_flag_spec_CXX=''
  11069. fi
  11070. link_all_deplibs_CXX=yes
  11071. allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
  11072. case $cc_basename in
  11073. ifort*) _lt_dar_can_shared=yes ;;
  11074. *) _lt_dar_can_shared=$GCC ;;
  11075. esac
  11076. if test "$_lt_dar_can_shared" = "yes"; then
  11077. output_verbose_link_cmd=func_echo_all
  11078. 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}"
  11079. module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  11080. 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}"
  11081. 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}"
  11082. if test "$lt_cv_apple_cc_single_mod" != "yes"; then
  11083. 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}"
  11084. 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}"
  11085. fi
  11086. else
  11087. ld_shlibs_CXX=no
  11088. fi
  11089. ;;
  11090. dgux*)
  11091. case $cc_basename in
  11092. ec++*)
  11093. # FIXME: insert proper C++ library support
  11094. ld_shlibs_CXX=no
  11095. ;;
  11096. ghcx*)
  11097. # Green Hills C++ Compiler
  11098. # FIXME: insert proper C++ library support
  11099. ld_shlibs_CXX=no
  11100. ;;
  11101. *)
  11102. # FIXME: insert proper C++ library support
  11103. ld_shlibs_CXX=no
  11104. ;;
  11105. esac
  11106. ;;
  11107. freebsd2.*)
  11108. # C++ shared libraries reported to be fairly broken before
  11109. # switch to ELF
  11110. ld_shlibs_CXX=no
  11111. ;;
  11112. freebsd-elf*)
  11113. archive_cmds_need_lc_CXX=no
  11114. ;;
  11115. freebsd* | dragonfly*)
  11116. # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
  11117. # conventions
  11118. ld_shlibs_CXX=yes
  11119. ;;
  11120. gnu*)
  11121. ;;
  11122. haiku*)
  11123. archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11124. link_all_deplibs_CXX=yes
  11125. ;;
  11126. hpux9*)
  11127. hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
  11128. hardcode_libdir_separator_CXX=:
  11129. export_dynamic_flag_spec_CXX='${wl}-E'
  11130. hardcode_direct_CXX=yes
  11131. hardcode_minus_L_CXX=yes # Not in the search PATH,
  11132. # but as the default
  11133. # location of the library.
  11134. case $cc_basename in
  11135. CC*)
  11136. # FIXME: insert proper C++ library support
  11137. ld_shlibs_CXX=no
  11138. ;;
  11139. aCC*)
  11140. 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'
  11141. # Commands to make compiler produce verbose output that lists
  11142. # what "hidden" libraries, object files and flags are used when
  11143. # linking a shared library.
  11144. #
  11145. # There doesn't appear to be a way to prevent this compiler from
  11146. # explicitly linking system object files so we need to strip them
  11147. # from the output so that they don't get included in the library
  11148. # dependencies.
  11149. 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"'
  11150. ;;
  11151. *)
  11152. if test "$GXX" = yes; then
  11153. 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'
  11154. else
  11155. # FIXME: insert proper C++ library support
  11156. ld_shlibs_CXX=no
  11157. fi
  11158. ;;
  11159. esac
  11160. ;;
  11161. hpux10*|hpux11*)
  11162. if test $with_gnu_ld = no; then
  11163. hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
  11164. hardcode_libdir_separator_CXX=:
  11165. case $host_cpu in
  11166. hppa*64*|ia64*)
  11167. ;;
  11168. *)
  11169. export_dynamic_flag_spec_CXX='${wl}-E'
  11170. ;;
  11171. esac
  11172. fi
  11173. case $host_cpu in
  11174. hppa*64*|ia64*)
  11175. hardcode_direct_CXX=no
  11176. hardcode_shlibpath_var_CXX=no
  11177. ;;
  11178. *)
  11179. hardcode_direct_CXX=yes
  11180. hardcode_direct_absolute_CXX=yes
  11181. hardcode_minus_L_CXX=yes # Not in the search PATH,
  11182. # but as the default
  11183. # location of the library.
  11184. ;;
  11185. esac
  11186. case $cc_basename in
  11187. CC*)
  11188. # FIXME: insert proper C++ library support
  11189. ld_shlibs_CXX=no
  11190. ;;
  11191. aCC*)
  11192. case $host_cpu in
  11193. hppa*64*)
  11194. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11195. ;;
  11196. ia64*)
  11197. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11198. ;;
  11199. *)
  11200. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11201. ;;
  11202. esac
  11203. # Commands to make compiler produce verbose output that lists
  11204. # what "hidden" libraries, object files and flags are used when
  11205. # linking a shared library.
  11206. #
  11207. # There doesn't appear to be a way to prevent this compiler from
  11208. # explicitly linking system object files so we need to strip them
  11209. # from the output so that they don't get included in the library
  11210. # dependencies.
  11211. 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"'
  11212. ;;
  11213. *)
  11214. if test "$GXX" = yes; then
  11215. if test $with_gnu_ld = no; then
  11216. case $host_cpu in
  11217. hppa*64*)
  11218. archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11219. ;;
  11220. ia64*)
  11221. archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11222. ;;
  11223. *)
  11224. 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'
  11225. ;;
  11226. esac
  11227. fi
  11228. else
  11229. # FIXME: insert proper C++ library support
  11230. ld_shlibs_CXX=no
  11231. fi
  11232. ;;
  11233. esac
  11234. ;;
  11235. interix[3-9]*)
  11236. hardcode_direct_CXX=no
  11237. hardcode_shlibpath_var_CXX=no
  11238. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11239. export_dynamic_flag_spec_CXX='${wl}-E'
  11240. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  11241. # Instead, shared libraries are loaded at an image base (0x10000000 by
  11242. # default) and relocated if they conflict, which is a slow very memory
  11243. # consuming and fragmenting process. To avoid this, we pick a random,
  11244. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  11245. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  11246. 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'
  11247. 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'
  11248. ;;
  11249. irix5* | irix6*)
  11250. case $cc_basename in
  11251. CC*)
  11252. # SGI C++
  11253. 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'
  11254. # Archives containing C++ object files must be created using
  11255. # "CC -ar", where "CC" is the IRIX C++ compiler. This is
  11256. # necessary to make sure instantiated templates are included
  11257. # in the archive.
  11258. old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
  11259. ;;
  11260. *)
  11261. if test "$GXX" = yes; then
  11262. if test "$with_gnu_ld" = no; then
  11263. 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'
  11264. else
  11265. 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'
  11266. fi
  11267. fi
  11268. link_all_deplibs_CXX=yes
  11269. ;;
  11270. esac
  11271. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11272. hardcode_libdir_separator_CXX=:
  11273. inherit_rpath_CXX=yes
  11274. ;;
  11275. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  11276. case $cc_basename in
  11277. KCC*)
  11278. # Kuck and Associates, Inc. (KAI) C++ Compiler
  11279. # KCC will only create a shared library if the output file
  11280. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  11281. # to its proper name (with version) after linking.
  11282. 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'
  11283. 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'
  11284. # Commands to make compiler produce verbose output that lists
  11285. # what "hidden" libraries, object files and flags are used when
  11286. # linking a shared library.
  11287. #
  11288. # There doesn't appear to be a way to prevent this compiler from
  11289. # explicitly linking system object files so we need to strip them
  11290. # from the output so that they don't get included in the library
  11291. # dependencies.
  11292. 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"'
  11293. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11294. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11295. # Archives containing C++ object files must be created using
  11296. # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  11297. old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
  11298. ;;
  11299. icpc* | ecpc* )
  11300. # Intel C++
  11301. with_gnu_ld=yes
  11302. # version 8.0 and above of icpc choke on multiply defined symbols
  11303. # if we add $predep_objects and $postdep_objects, however 7.1 and
  11304. # earlier do not add the objects themselves.
  11305. case `$CC -V 2>&1` in
  11306. *"Version 7."*)
  11307. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11308. 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'
  11309. ;;
  11310. *) # Version 8.0 or newer
  11311. tmp_idyn=
  11312. case $host_cpu in
  11313. ia64*) tmp_idyn=' -i_dynamic';;
  11314. esac
  11315. archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11316. 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'
  11317. ;;
  11318. esac
  11319. archive_cmds_need_lc_CXX=no
  11320. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11321. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11322. whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  11323. ;;
  11324. pgCC* | pgcpp*)
  11325. # Portland Group C++ compiler
  11326. case `$CC -V` in
  11327. *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
  11328. prelink_cmds_CXX='tpldir=Template.dir~
  11329. rm -rf $tpldir~
  11330. $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
  11331. compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
  11332. old_archive_cmds_CXX='tpldir=Template.dir~
  11333. rm -rf $tpldir~
  11334. $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
  11335. $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
  11336. $RANLIB $oldlib'
  11337. archive_cmds_CXX='tpldir=Template.dir~
  11338. rm -rf $tpldir~
  11339. $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  11340. $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  11341. archive_expsym_cmds_CXX='tpldir=Template.dir~
  11342. rm -rf $tpldir~
  11343. $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  11344. $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'
  11345. ;;
  11346. *) # Version 6 and above use weak symbols
  11347. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  11348. 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'
  11349. ;;
  11350. esac
  11351. hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
  11352. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11353. 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'
  11354. ;;
  11355. cxx*)
  11356. # Compaq C++
  11357. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11358. 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'
  11359. runpath_var=LD_RUN_PATH
  11360. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  11361. hardcode_libdir_separator_CXX=:
  11362. # Commands to make compiler produce verbose output that lists
  11363. # what "hidden" libraries, object files and flags are used when
  11364. # linking a shared library.
  11365. #
  11366. # There doesn't appear to be a way to prevent this compiler from
  11367. # explicitly linking system object files so we need to strip them
  11368. # from the output so that they don't get included in the library
  11369. # dependencies.
  11370. 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'
  11371. ;;
  11372. xl* | mpixl* | bgxl*)
  11373. # IBM XL 8.0 on PPC, with GNU ld
  11374. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11375. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11376. archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11377. if test "x$supports_anon_versioning" = xyes; then
  11378. archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
  11379. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  11380. echo "local: *; };" >> $output_objdir/$libname.ver~
  11381. $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  11382. fi
  11383. ;;
  11384. *)
  11385. case `$CC -V 2>&1 | sed 5q` in
  11386. *Sun\ C*)
  11387. # Sun C++ 5.9
  11388. no_undefined_flag_CXX=' -zdefs'
  11389. archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11390. 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'
  11391. hardcode_libdir_flag_spec_CXX='-R$libdir'
  11392. 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'
  11393. compiler_needs_object_CXX=yes
  11394. # Not sure whether something based on
  11395. # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
  11396. # would be better.
  11397. output_verbose_link_cmd='func_echo_all'
  11398. # Archives containing C++ object files must be created using
  11399. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  11400. # necessary to make sure instantiated templates are included
  11401. # in the archive.
  11402. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  11403. ;;
  11404. esac
  11405. ;;
  11406. esac
  11407. ;;
  11408. lynxos*)
  11409. # FIXME: insert proper C++ library support
  11410. ld_shlibs_CXX=no
  11411. ;;
  11412. m88k*)
  11413. # FIXME: insert proper C++ library support
  11414. ld_shlibs_CXX=no
  11415. ;;
  11416. mvs*)
  11417. case $cc_basename in
  11418. cxx*)
  11419. # FIXME: insert proper C++ library support
  11420. ld_shlibs_CXX=no
  11421. ;;
  11422. *)
  11423. # FIXME: insert proper C++ library support
  11424. ld_shlibs_CXX=no
  11425. ;;
  11426. esac
  11427. ;;
  11428. netbsd*)
  11429. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  11430. archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
  11431. wlarc=
  11432. hardcode_libdir_flag_spec_CXX='-R$libdir'
  11433. hardcode_direct_CXX=yes
  11434. hardcode_shlibpath_var_CXX=no
  11435. fi
  11436. # Workaround some broken pre-1.5 toolchains
  11437. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
  11438. ;;
  11439. *nto* | *qnx*)
  11440. ld_shlibs_CXX=yes
  11441. ;;
  11442. openbsd2*)
  11443. # C++ shared libraries are fairly broken
  11444. ld_shlibs_CXX=no
  11445. ;;
  11446. openbsd*)
  11447. if test -f /usr/libexec/ld.so; then
  11448. hardcode_direct_CXX=yes
  11449. hardcode_shlibpath_var_CXX=no
  11450. hardcode_direct_absolute_CXX=yes
  11451. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  11452. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11453. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  11454. archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
  11455. export_dynamic_flag_spec_CXX='${wl}-E'
  11456. whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  11457. fi
  11458. output_verbose_link_cmd=func_echo_all
  11459. else
  11460. ld_shlibs_CXX=no
  11461. fi
  11462. ;;
  11463. osf3* | osf4* | osf5*)
  11464. case $cc_basename in
  11465. KCC*)
  11466. # Kuck and Associates, Inc. (KAI) C++ Compiler
  11467. # KCC will only create a shared library if the output file
  11468. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  11469. # to its proper name (with version) after linking.
  11470. 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'
  11471. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11472. hardcode_libdir_separator_CXX=:
  11473. # Archives containing C++ object files must be created using
  11474. # the KAI C++ compiler.
  11475. case $host in
  11476. osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
  11477. *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
  11478. esac
  11479. ;;
  11480. RCC*)
  11481. # Rational C++ 2.4.1
  11482. # FIXME: insert proper C++ library support
  11483. ld_shlibs_CXX=no
  11484. ;;
  11485. cxx*)
  11486. case $host in
  11487. osf3*)
  11488. allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  11489. 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'
  11490. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11491. ;;
  11492. *)
  11493. allow_undefined_flag_CXX=' -expect_unresolved \*'
  11494. 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'
  11495. archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
  11496. echo "-hidden">> $lib.exp~
  11497. $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~
  11498. $RM $lib.exp'
  11499. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  11500. ;;
  11501. esac
  11502. hardcode_libdir_separator_CXX=:
  11503. # Commands to make compiler produce verbose output that lists
  11504. # what "hidden" libraries, object files and flags are used when
  11505. # linking a shared library.
  11506. #
  11507. # There doesn't appear to be a way to prevent this compiler from
  11508. # explicitly linking system object files so we need to strip them
  11509. # from the output so that they don't get included in the library
  11510. # dependencies.
  11511. 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"'
  11512. ;;
  11513. *)
  11514. if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  11515. allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  11516. case $host in
  11517. osf3*)
  11518. 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'
  11519. ;;
  11520. *)
  11521. 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'
  11522. ;;
  11523. esac
  11524. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11525. hardcode_libdir_separator_CXX=:
  11526. # Commands to make compiler produce verbose output that lists
  11527. # what "hidden" libraries, object files and flags are used when
  11528. # linking a shared library.
  11529. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  11530. else
  11531. # FIXME: insert proper C++ library support
  11532. ld_shlibs_CXX=no
  11533. fi
  11534. ;;
  11535. esac
  11536. ;;
  11537. psos*)
  11538. # FIXME: insert proper C++ library support
  11539. ld_shlibs_CXX=no
  11540. ;;
  11541. sunos4*)
  11542. case $cc_basename in
  11543. CC*)
  11544. # Sun C++ 4.x
  11545. # FIXME: insert proper C++ library support
  11546. ld_shlibs_CXX=no
  11547. ;;
  11548. lcc*)
  11549. # Lucid
  11550. # FIXME: insert proper C++ library support
  11551. ld_shlibs_CXX=no
  11552. ;;
  11553. *)
  11554. # FIXME: insert proper C++ library support
  11555. ld_shlibs_CXX=no
  11556. ;;
  11557. esac
  11558. ;;
  11559. solaris*)
  11560. case $cc_basename in
  11561. CC* | sunCC*)
  11562. # Sun C++ 4.2, 5.x and Centerline C++
  11563. archive_cmds_need_lc_CXX=yes
  11564. no_undefined_flag_CXX=' -zdefs'
  11565. archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11566. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  11567. $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'
  11568. hardcode_libdir_flag_spec_CXX='-R$libdir'
  11569. hardcode_shlibpath_var_CXX=no
  11570. case $host_os in
  11571. solaris2.[0-5] | solaris2.[0-5].*) ;;
  11572. *)
  11573. # The compiler driver will combine and reorder linker options,
  11574. # but understands `-z linker_flag'.
  11575. # Supported since Solaris 2.6 (maybe 2.5.1?)
  11576. whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
  11577. ;;
  11578. esac
  11579. link_all_deplibs_CXX=yes
  11580. output_verbose_link_cmd='func_echo_all'
  11581. # Archives containing C++ object files must be created using
  11582. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  11583. # necessary to make sure instantiated templates are included
  11584. # in the archive.
  11585. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  11586. ;;
  11587. gcx*)
  11588. # Green Hills C++ Compiler
  11589. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  11590. # The C++ compiler must be used to create the archive.
  11591. old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
  11592. ;;
  11593. *)
  11594. # GNU C++ compiler with Solaris linker
  11595. if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  11596. no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
  11597. if $CC --version | $GREP -v '^2\.7' > /dev/null; then
  11598. archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  11599. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  11600. $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  11601. # Commands to make compiler produce verbose output that lists
  11602. # what "hidden" libraries, object files and flags are used when
  11603. # linking a shared library.
  11604. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  11605. else
  11606. # g++ 2.7 appears to require `-G' NOT `-shared' on this
  11607. # platform.
  11608. archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  11609. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  11610. $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  11611. # Commands to make compiler produce verbose output that lists
  11612. # what "hidden" libraries, object files and flags are used when
  11613. # linking a shared library.
  11614. output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  11615. fi
  11616. hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
  11617. case $host_os in
  11618. solaris2.[0-5] | solaris2.[0-5].*) ;;
  11619. *)
  11620. whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  11621. ;;
  11622. esac
  11623. fi
  11624. ;;
  11625. esac
  11626. ;;
  11627. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  11628. no_undefined_flag_CXX='${wl}-z,text'
  11629. archive_cmds_need_lc_CXX=no
  11630. hardcode_shlibpath_var_CXX=no
  11631. runpath_var='LD_RUN_PATH'
  11632. case $cc_basename in
  11633. CC*)
  11634. archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11635. archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11636. ;;
  11637. *)
  11638. archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11639. archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11640. ;;
  11641. esac
  11642. ;;
  11643. sysv5* | sco3.2v5* | sco5v6*)
  11644. # Note: We can NOT use -z defs as we might desire, because we do not
  11645. # link with -lc, and that would cause any symbols used from libc to
  11646. # always be unresolved, which means just about no library would
  11647. # ever link correctly. If we're not using GNU ld we use -z text
  11648. # though, which does catch some bad symbols but isn't as heavy-handed
  11649. # as -z defs.
  11650. no_undefined_flag_CXX='${wl}-z,text'
  11651. allow_undefined_flag_CXX='${wl}-z,nodefs'
  11652. archive_cmds_need_lc_CXX=no
  11653. hardcode_shlibpath_var_CXX=no
  11654. hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
  11655. hardcode_libdir_separator_CXX=':'
  11656. link_all_deplibs_CXX=yes
  11657. export_dynamic_flag_spec_CXX='${wl}-Bexport'
  11658. runpath_var='LD_RUN_PATH'
  11659. case $cc_basename in
  11660. CC*)
  11661. archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11662. archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11663. old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
  11664. '"$old_archive_cmds_CXX"
  11665. reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
  11666. '"$reload_cmds_CXX"
  11667. ;;
  11668. *)
  11669. archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11670. archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11671. ;;
  11672. esac
  11673. ;;
  11674. tandem*)
  11675. case $cc_basename in
  11676. NCC*)
  11677. # NonStop-UX NCC 3.20
  11678. # FIXME: insert proper C++ library support
  11679. ld_shlibs_CXX=no
  11680. ;;
  11681. *)
  11682. # FIXME: insert proper C++ library support
  11683. ld_shlibs_CXX=no
  11684. ;;
  11685. esac
  11686. ;;
  11687. vxworks*)
  11688. # FIXME: insert proper C++ library support
  11689. ld_shlibs_CXX=no
  11690. ;;
  11691. *)
  11692. # FIXME: insert proper C++ library support
  11693. ld_shlibs_CXX=no
  11694. ;;
  11695. esac
  11696. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
  11697. $as_echo "$ld_shlibs_CXX" >&6; }
  11698. test "$ld_shlibs_CXX" = no && can_build_shared=no
  11699. GCC_CXX="$GXX"
  11700. LD_CXX="$LD"
  11701. ## CAVEAT EMPTOR:
  11702. ## There is no encapsulation within the following macros, do not change
  11703. ## the running order or otherwise move them around unless you know exactly
  11704. ## what you are doing...
  11705. # Dependencies to place before and after the object being linked:
  11706. predep_objects_CXX=
  11707. postdep_objects_CXX=
  11708. predeps_CXX=
  11709. postdeps_CXX=
  11710. compiler_lib_search_path_CXX=
  11711. cat > conftest.$ac_ext <<_LT_EOF
  11712. class Foo
  11713. {
  11714. public:
  11715. Foo (void) { a = 0; }
  11716. private:
  11717. int a;
  11718. };
  11719. _LT_EOF
  11720. _lt_libdeps_save_CFLAGS=$CFLAGS
  11721. case "$CC $CFLAGS " in #(
  11722. *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
  11723. *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
  11724. *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
  11725. esac
  11726. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  11727. (eval $ac_compile) 2>&5
  11728. ac_status=$?
  11729. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11730. test $ac_status = 0; }; then
  11731. # Parse the compiler output and extract the necessary
  11732. # objects, libraries and library flags.
  11733. # Sentinel used to keep track of whether or not we are before
  11734. # the conftest object file.
  11735. pre_test_object_deps_done=no
  11736. for p in `eval "$output_verbose_link_cmd"`; do
  11737. case ${prev}${p} in
  11738. -L* | -R* | -l*)
  11739. # Some compilers place space between "-{L,R}" and the path.
  11740. # Remove the space.
  11741. if test $p = "-L" ||
  11742. test $p = "-R"; then
  11743. prev=$p
  11744. continue
  11745. fi
  11746. # Expand the sysroot to ease extracting the directories later.
  11747. if test -z "$prev"; then
  11748. case $p in
  11749. -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
  11750. -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
  11751. -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
  11752. esac
  11753. fi
  11754. case $p in
  11755. =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
  11756. esac
  11757. if test "$pre_test_object_deps_done" = no; then
  11758. case ${prev} in
  11759. -L | -R)
  11760. # Internal compiler library paths should come after those
  11761. # provided the user. The postdeps already come after the
  11762. # user supplied libs so there is no need to process them.
  11763. if test -z "$compiler_lib_search_path_CXX"; then
  11764. compiler_lib_search_path_CXX="${prev}${p}"
  11765. else
  11766. compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
  11767. fi
  11768. ;;
  11769. # The "-l" case would never come before the object being
  11770. # linked, so don't bother handling this case.
  11771. esac
  11772. else
  11773. if test -z "$postdeps_CXX"; then
  11774. postdeps_CXX="${prev}${p}"
  11775. else
  11776. postdeps_CXX="${postdeps_CXX} ${prev}${p}"
  11777. fi
  11778. fi
  11779. prev=
  11780. ;;
  11781. *.lto.$objext) ;; # Ignore GCC LTO objects
  11782. *.$objext)
  11783. # This assumes that the test object file only shows up
  11784. # once in the compiler output.
  11785. if test "$p" = "conftest.$objext"; then
  11786. pre_test_object_deps_done=yes
  11787. continue
  11788. fi
  11789. if test "$pre_test_object_deps_done" = no; then
  11790. if test -z "$predep_objects_CXX"; then
  11791. predep_objects_CXX="$p"
  11792. else
  11793. predep_objects_CXX="$predep_objects_CXX $p"
  11794. fi
  11795. else
  11796. if test -z "$postdep_objects_CXX"; then
  11797. postdep_objects_CXX="$p"
  11798. else
  11799. postdep_objects_CXX="$postdep_objects_CXX $p"
  11800. fi
  11801. fi
  11802. ;;
  11803. *) ;; # Ignore the rest.
  11804. esac
  11805. done
  11806. # Clean up.
  11807. rm -f a.out a.exe
  11808. else
  11809. echo "libtool.m4: error: problem compiling CXX test program"
  11810. fi
  11811. $RM -f confest.$objext
  11812. CFLAGS=$_lt_libdeps_save_CFLAGS
  11813. # PORTME: override above test on systems where it is broken
  11814. case $host_os in
  11815. interix[3-9]*)
  11816. # Interix 3.5 installs completely hosed .la files for C++, so rather than
  11817. # hack all around it, let's just trust "g++" to DTRT.
  11818. predep_objects_CXX=
  11819. postdep_objects_CXX=
  11820. postdeps_CXX=
  11821. ;;
  11822. linux*)
  11823. case `$CC -V 2>&1 | sed 5q` in
  11824. *Sun\ C*)
  11825. # Sun C++ 5.9
  11826. # The more standards-conforming stlport4 library is
  11827. # incompatible with the Cstd library. Avoid specifying
  11828. # it if it's in CXXFLAGS. Ignore libCrun as
  11829. # -library=stlport4 depends on it.
  11830. case " $CXX $CXXFLAGS " in
  11831. *" -library=stlport4 "*)
  11832. solaris_use_stlport4=yes
  11833. ;;
  11834. esac
  11835. if test "$solaris_use_stlport4" != yes; then
  11836. postdeps_CXX='-library=Cstd -library=Crun'
  11837. fi
  11838. ;;
  11839. esac
  11840. ;;
  11841. solaris*)
  11842. case $cc_basename in
  11843. CC* | sunCC*)
  11844. # The more standards-conforming stlport4 library is
  11845. # incompatible with the Cstd library. Avoid specifying
  11846. # it if it's in CXXFLAGS. Ignore libCrun as
  11847. # -library=stlport4 depends on it.
  11848. case " $CXX $CXXFLAGS " in
  11849. *" -library=stlport4 "*)
  11850. solaris_use_stlport4=yes
  11851. ;;
  11852. esac
  11853. # Adding this requires a known-good setup of shared libraries for
  11854. # Sun compiler versions before 5.6, else PIC objects from an old
  11855. # archive will be linked into the output, leading to subtle bugs.
  11856. if test "$solaris_use_stlport4" != yes; then
  11857. postdeps_CXX='-library=Cstd -library=Crun'
  11858. fi
  11859. ;;
  11860. esac
  11861. ;;
  11862. esac
  11863. case " $postdeps_CXX " in
  11864. *" -lc "*) archive_cmds_need_lc_CXX=no ;;
  11865. esac
  11866. compiler_lib_search_dirs_CXX=
  11867. if test -n "${compiler_lib_search_path_CXX}"; then
  11868. compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
  11869. fi
  11870. lt_prog_compiler_wl_CXX=
  11871. lt_prog_compiler_pic_CXX=
  11872. lt_prog_compiler_static_CXX=
  11873. # C++ specific cases for pic, static, wl, etc.
  11874. if test "$GXX" = yes; then
  11875. lt_prog_compiler_wl_CXX='-Wl,'
  11876. lt_prog_compiler_static_CXX='-static'
  11877. case $host_os in
  11878. aix*)
  11879. # All AIX code is PIC.
  11880. if test "$host_cpu" = ia64; then
  11881. # AIX 5 now supports IA64 processor
  11882. lt_prog_compiler_static_CXX='-Bstatic'
  11883. fi
  11884. ;;
  11885. amigaos*)
  11886. case $host_cpu in
  11887. powerpc)
  11888. # see comment about AmigaOS4 .so support
  11889. lt_prog_compiler_pic_CXX='-fPIC'
  11890. ;;
  11891. m68k)
  11892. # FIXME: we need at least 68020 code to build shared libraries, but
  11893. # adding the `-m68020' flag to GCC prevents building anything better,
  11894. # like `-m68040'.
  11895. lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
  11896. ;;
  11897. esac
  11898. ;;
  11899. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  11900. # PIC is the default for these OSes.
  11901. ;;
  11902. mingw* | cygwin* | os2* | pw32* | cegcc*)
  11903. # This hack is so that the source file can tell whether it is being
  11904. # built for inclusion in a dll (and should export symbols for example).
  11905. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  11906. # (--disable-auto-import) libraries
  11907. lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
  11908. ;;
  11909. darwin* | rhapsody*)
  11910. # PIC is the default on this platform
  11911. # Common symbols not allowed in MH_DYLIB files
  11912. lt_prog_compiler_pic_CXX='-fno-common'
  11913. ;;
  11914. *djgpp*)
  11915. # DJGPP does not support shared libraries at all
  11916. lt_prog_compiler_pic_CXX=
  11917. ;;
  11918. haiku*)
  11919. # PIC is the default for Haiku.
  11920. # The "-static" flag exists, but is broken.
  11921. lt_prog_compiler_static_CXX=
  11922. ;;
  11923. interix[3-9]*)
  11924. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  11925. # Instead, we relocate shared libraries at runtime.
  11926. ;;
  11927. sysv4*MP*)
  11928. if test -d /usr/nec; then
  11929. lt_prog_compiler_pic_CXX=-Kconform_pic
  11930. fi
  11931. ;;
  11932. hpux*)
  11933. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  11934. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  11935. # sets the default TLS model and affects inlining.
  11936. case $host_cpu in
  11937. hppa*64*)
  11938. ;;
  11939. *)
  11940. lt_prog_compiler_pic_CXX='-fPIC'
  11941. ;;
  11942. esac
  11943. ;;
  11944. *qnx* | *nto*)
  11945. # QNX uses GNU C++, but need to define -shared option too, otherwise
  11946. # it will coredump.
  11947. lt_prog_compiler_pic_CXX='-fPIC -shared'
  11948. ;;
  11949. *)
  11950. lt_prog_compiler_pic_CXX='-fPIC'
  11951. ;;
  11952. esac
  11953. else
  11954. case $host_os in
  11955. aix[4-9]*)
  11956. # All AIX code is PIC.
  11957. if test "$host_cpu" = ia64; then
  11958. # AIX 5 now supports IA64 processor
  11959. lt_prog_compiler_static_CXX='-Bstatic'
  11960. else
  11961. lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
  11962. fi
  11963. ;;
  11964. chorus*)
  11965. case $cc_basename in
  11966. cxch68*)
  11967. # Green Hills C++ Compiler
  11968. # _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"
  11969. ;;
  11970. esac
  11971. ;;
  11972. mingw* | cygwin* | os2* | pw32* | cegcc*)
  11973. # This hack is so that the source file can tell whether it is being
  11974. # built for inclusion in a dll (and should export symbols for example).
  11975. lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
  11976. ;;
  11977. dgux*)
  11978. case $cc_basename in
  11979. ec++*)
  11980. lt_prog_compiler_pic_CXX='-KPIC'
  11981. ;;
  11982. ghcx*)
  11983. # Green Hills C++ Compiler
  11984. lt_prog_compiler_pic_CXX='-pic'
  11985. ;;
  11986. *)
  11987. ;;
  11988. esac
  11989. ;;
  11990. freebsd* | dragonfly*)
  11991. # FreeBSD uses GNU C++
  11992. ;;
  11993. hpux9* | hpux10* | hpux11*)
  11994. case $cc_basename in
  11995. CC*)
  11996. lt_prog_compiler_wl_CXX='-Wl,'
  11997. lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
  11998. if test "$host_cpu" != ia64; then
  11999. lt_prog_compiler_pic_CXX='+Z'
  12000. fi
  12001. ;;
  12002. aCC*)
  12003. lt_prog_compiler_wl_CXX='-Wl,'
  12004. lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
  12005. case $host_cpu in
  12006. hppa*64*|ia64*)
  12007. # +Z the default
  12008. ;;
  12009. *)
  12010. lt_prog_compiler_pic_CXX='+Z'
  12011. ;;
  12012. esac
  12013. ;;
  12014. *)
  12015. ;;
  12016. esac
  12017. ;;
  12018. interix*)
  12019. # This is c89, which is MS Visual C++ (no shared libs)
  12020. # Anyone wants to do a port?
  12021. ;;
  12022. irix5* | irix6* | nonstopux*)
  12023. case $cc_basename in
  12024. CC*)
  12025. lt_prog_compiler_wl_CXX='-Wl,'
  12026. lt_prog_compiler_static_CXX='-non_shared'
  12027. # CC pic flag -KPIC is the default.
  12028. ;;
  12029. *)
  12030. ;;
  12031. esac
  12032. ;;
  12033. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  12034. case $cc_basename in
  12035. KCC*)
  12036. # KAI C++ Compiler
  12037. lt_prog_compiler_wl_CXX='--backend -Wl,'
  12038. lt_prog_compiler_pic_CXX='-fPIC'
  12039. ;;
  12040. ecpc* )
  12041. # old Intel C++ for x86_64 which still supported -KPIC.
  12042. lt_prog_compiler_wl_CXX='-Wl,'
  12043. lt_prog_compiler_pic_CXX='-KPIC'
  12044. lt_prog_compiler_static_CXX='-static'
  12045. ;;
  12046. icpc* )
  12047. # Intel C++, used to be incompatible with GCC.
  12048. # ICC 10 doesn't accept -KPIC any more.
  12049. lt_prog_compiler_wl_CXX='-Wl,'
  12050. lt_prog_compiler_pic_CXX='-fPIC'
  12051. lt_prog_compiler_static_CXX='-static'
  12052. ;;
  12053. pgCC* | pgcpp*)
  12054. # Portland Group C++ compiler
  12055. lt_prog_compiler_wl_CXX='-Wl,'
  12056. lt_prog_compiler_pic_CXX='-fpic'
  12057. lt_prog_compiler_static_CXX='-Bstatic'
  12058. ;;
  12059. cxx*)
  12060. # Compaq C++
  12061. # Make sure the PIC flag is empty. It appears that all Alpha
  12062. # Linux and Compaq Tru64 Unix objects are PIC.
  12063. lt_prog_compiler_pic_CXX=
  12064. lt_prog_compiler_static_CXX='-non_shared'
  12065. ;;
  12066. xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
  12067. # IBM XL 8.0, 9.0 on PPC and BlueGene
  12068. lt_prog_compiler_wl_CXX='-Wl,'
  12069. lt_prog_compiler_pic_CXX='-qpic'
  12070. lt_prog_compiler_static_CXX='-qstaticlink'
  12071. ;;
  12072. *)
  12073. case `$CC -V 2>&1 | sed 5q` in
  12074. *Sun\ C*)
  12075. # Sun C++ 5.9
  12076. lt_prog_compiler_pic_CXX='-KPIC'
  12077. lt_prog_compiler_static_CXX='-Bstatic'
  12078. lt_prog_compiler_wl_CXX='-Qoption ld '
  12079. ;;
  12080. esac
  12081. ;;
  12082. esac
  12083. ;;
  12084. lynxos*)
  12085. ;;
  12086. m88k*)
  12087. ;;
  12088. mvs*)
  12089. case $cc_basename in
  12090. cxx*)
  12091. lt_prog_compiler_pic_CXX='-W c,exportall'
  12092. ;;
  12093. *)
  12094. ;;
  12095. esac
  12096. ;;
  12097. netbsd* | netbsdelf*-gnu)
  12098. ;;
  12099. *qnx* | *nto*)
  12100. # QNX uses GNU C++, but need to define -shared option too, otherwise
  12101. # it will coredump.
  12102. lt_prog_compiler_pic_CXX='-fPIC -shared'
  12103. ;;
  12104. osf3* | osf4* | osf5*)
  12105. case $cc_basename in
  12106. KCC*)
  12107. lt_prog_compiler_wl_CXX='--backend -Wl,'
  12108. ;;
  12109. RCC*)
  12110. # Rational C++ 2.4.1
  12111. lt_prog_compiler_pic_CXX='-pic'
  12112. ;;
  12113. cxx*)
  12114. # Digital/Compaq C++
  12115. lt_prog_compiler_wl_CXX='-Wl,'
  12116. # Make sure the PIC flag is empty. It appears that all Alpha
  12117. # Linux and Compaq Tru64 Unix objects are PIC.
  12118. lt_prog_compiler_pic_CXX=
  12119. lt_prog_compiler_static_CXX='-non_shared'
  12120. ;;
  12121. *)
  12122. ;;
  12123. esac
  12124. ;;
  12125. psos*)
  12126. ;;
  12127. solaris*)
  12128. case $cc_basename in
  12129. CC* | sunCC*)
  12130. # Sun C++ 4.2, 5.x and Centerline C++
  12131. lt_prog_compiler_pic_CXX='-KPIC'
  12132. lt_prog_compiler_static_CXX='-Bstatic'
  12133. lt_prog_compiler_wl_CXX='-Qoption ld '
  12134. ;;
  12135. gcx*)
  12136. # Green Hills C++ Compiler
  12137. lt_prog_compiler_pic_CXX='-PIC'
  12138. ;;
  12139. *)
  12140. ;;
  12141. esac
  12142. ;;
  12143. sunos4*)
  12144. case $cc_basename in
  12145. CC*)
  12146. # Sun C++ 4.x
  12147. lt_prog_compiler_pic_CXX='-pic'
  12148. lt_prog_compiler_static_CXX='-Bstatic'
  12149. ;;
  12150. lcc*)
  12151. # Lucid
  12152. lt_prog_compiler_pic_CXX='-pic'
  12153. ;;
  12154. *)
  12155. ;;
  12156. esac
  12157. ;;
  12158. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  12159. case $cc_basename in
  12160. CC*)
  12161. lt_prog_compiler_wl_CXX='-Wl,'
  12162. lt_prog_compiler_pic_CXX='-KPIC'
  12163. lt_prog_compiler_static_CXX='-Bstatic'
  12164. ;;
  12165. esac
  12166. ;;
  12167. tandem*)
  12168. case $cc_basename in
  12169. NCC*)
  12170. # NonStop-UX NCC 3.20
  12171. lt_prog_compiler_pic_CXX='-KPIC'
  12172. ;;
  12173. *)
  12174. ;;
  12175. esac
  12176. ;;
  12177. vxworks*)
  12178. ;;
  12179. *)
  12180. lt_prog_compiler_can_build_shared_CXX=no
  12181. ;;
  12182. esac
  12183. fi
  12184. case $host_os in
  12185. # For platforms which do not support PIC, -DPIC is meaningless:
  12186. *djgpp*)
  12187. lt_prog_compiler_pic_CXX=
  12188. ;;
  12189. *)
  12190. lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
  12191. ;;
  12192. esac
  12193. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  12194. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  12195. if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
  12196. $as_echo_n "(cached) " >&6
  12197. else
  12198. lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
  12199. fi
  12200. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
  12201. $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
  12202. lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
  12203. #
  12204. # Check to make sure the PIC flag actually works.
  12205. #
  12206. if test -n "$lt_prog_compiler_pic_CXX"; then
  12207. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
  12208. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
  12209. if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
  12210. $as_echo_n "(cached) " >&6
  12211. else
  12212. lt_cv_prog_compiler_pic_works_CXX=no
  12213. ac_outfile=conftest.$ac_objext
  12214. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12215. lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
  12216. # Insert the option either (1) after the last *FLAGS variable, or
  12217. # (2) before a word containing "conftest.", or (3) at the end.
  12218. # Note that $ac_compile itself does not contain backslashes and begins
  12219. # with a dollar sign (not a hyphen), so the echo should work correctly.
  12220. # The option is referenced via a variable to avoid confusing sed.
  12221. lt_compile=`echo "$ac_compile" | $SED \
  12222. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  12223. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  12224. -e 's:$: $lt_compiler_flag:'`
  12225. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  12226. (eval "$lt_compile" 2>conftest.err)
  12227. ac_status=$?
  12228. cat conftest.err >&5
  12229. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12230. if (exit $ac_status) && test -s "$ac_outfile"; then
  12231. # The compiler can only warn and ignore the option if not recognized
  12232. # So say no if there are warnings other than the usual output.
  12233. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  12234. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  12235. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  12236. lt_cv_prog_compiler_pic_works_CXX=yes
  12237. fi
  12238. fi
  12239. $RM conftest*
  12240. fi
  12241. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
  12242. $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
  12243. if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
  12244. case $lt_prog_compiler_pic_CXX in
  12245. "" | " "*) ;;
  12246. *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
  12247. esac
  12248. else
  12249. lt_prog_compiler_pic_CXX=
  12250. lt_prog_compiler_can_build_shared_CXX=no
  12251. fi
  12252. fi
  12253. #
  12254. # Check to make sure the static flag actually works.
  12255. #
  12256. wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
  12257. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  12258. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  12259. if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
  12260. $as_echo_n "(cached) " >&6
  12261. else
  12262. lt_cv_prog_compiler_static_works_CXX=no
  12263. save_LDFLAGS="$LDFLAGS"
  12264. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  12265. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  12266. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  12267. # The linker can only warn and ignore the option if not recognized
  12268. # So say no if there are warnings
  12269. if test -s conftest.err; then
  12270. # Append any errors to the config.log.
  12271. cat conftest.err 1>&5
  12272. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  12273. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  12274. if diff conftest.exp conftest.er2 >/dev/null; then
  12275. lt_cv_prog_compiler_static_works_CXX=yes
  12276. fi
  12277. else
  12278. lt_cv_prog_compiler_static_works_CXX=yes
  12279. fi
  12280. fi
  12281. $RM -r conftest*
  12282. LDFLAGS="$save_LDFLAGS"
  12283. fi
  12284. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
  12285. $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
  12286. if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
  12287. :
  12288. else
  12289. lt_prog_compiler_static_CXX=
  12290. fi
  12291. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  12292. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  12293. if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
  12294. $as_echo_n "(cached) " >&6
  12295. else
  12296. lt_cv_prog_compiler_c_o_CXX=no
  12297. $RM -r conftest 2>/dev/null
  12298. mkdir conftest
  12299. cd conftest
  12300. mkdir out
  12301. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12302. lt_compiler_flag="-o out/conftest2.$ac_objext"
  12303. # Insert the option either (1) after the last *FLAGS variable, or
  12304. # (2) before a word containing "conftest.", or (3) at the end.
  12305. # Note that $ac_compile itself does not contain backslashes and begins
  12306. # with a dollar sign (not a hyphen), so the echo should work correctly.
  12307. lt_compile=`echo "$ac_compile" | $SED \
  12308. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  12309. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  12310. -e 's:$: $lt_compiler_flag:'`
  12311. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  12312. (eval "$lt_compile" 2>out/conftest.err)
  12313. ac_status=$?
  12314. cat out/conftest.err >&5
  12315. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12316. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  12317. then
  12318. # The compiler can only warn and ignore the option if not recognized
  12319. # So say no if there are warnings
  12320. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  12321. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  12322. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  12323. lt_cv_prog_compiler_c_o_CXX=yes
  12324. fi
  12325. fi
  12326. chmod u+w . 2>&5
  12327. $RM conftest*
  12328. # SGI C++ compiler will create directory out/ii_files/ for
  12329. # template instantiation
  12330. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  12331. $RM out/* && rmdir out
  12332. cd ..
  12333. $RM -r conftest
  12334. $RM conftest*
  12335. fi
  12336. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  12337. $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
  12338. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  12339. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  12340. if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
  12341. $as_echo_n "(cached) " >&6
  12342. else
  12343. lt_cv_prog_compiler_c_o_CXX=no
  12344. $RM -r conftest 2>/dev/null
  12345. mkdir conftest
  12346. cd conftest
  12347. mkdir out
  12348. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12349. lt_compiler_flag="-o out/conftest2.$ac_objext"
  12350. # Insert the option either (1) after the last *FLAGS variable, or
  12351. # (2) before a word containing "conftest.", or (3) at the end.
  12352. # Note that $ac_compile itself does not contain backslashes and begins
  12353. # with a dollar sign (not a hyphen), so the echo should work correctly.
  12354. lt_compile=`echo "$ac_compile" | $SED \
  12355. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  12356. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  12357. -e 's:$: $lt_compiler_flag:'`
  12358. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  12359. (eval "$lt_compile" 2>out/conftest.err)
  12360. ac_status=$?
  12361. cat out/conftest.err >&5
  12362. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12363. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  12364. then
  12365. # The compiler can only warn and ignore the option if not recognized
  12366. # So say no if there are warnings
  12367. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  12368. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  12369. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  12370. lt_cv_prog_compiler_c_o_CXX=yes
  12371. fi
  12372. fi
  12373. chmod u+w . 2>&5
  12374. $RM conftest*
  12375. # SGI C++ compiler will create directory out/ii_files/ for
  12376. # template instantiation
  12377. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  12378. $RM out/* && rmdir out
  12379. cd ..
  12380. $RM -r conftest
  12381. $RM conftest*
  12382. fi
  12383. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  12384. $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
  12385. hard_links="nottested"
  12386. if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
  12387. # do not overwrite the value of need_locks provided by the user
  12388. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  12389. $as_echo_n "checking if we can lock with hard links... " >&6; }
  12390. hard_links=yes
  12391. $RM conftest*
  12392. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  12393. touch conftest.a
  12394. ln conftest.a conftest.b 2>&5 || hard_links=no
  12395. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  12396. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  12397. $as_echo "$hard_links" >&6; }
  12398. if test "$hard_links" = no; then
  12399. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  12400. $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  12401. need_locks=warn
  12402. fi
  12403. else
  12404. need_locks=no
  12405. fi
  12406. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  12407. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  12408. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  12409. exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  12410. case $host_os in
  12411. aix[4-9]*)
  12412. # If we're using GNU nm, then we don't want the "-C" option.
  12413. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  12414. # Also, AIX nm treats weak defined symbols like other global defined
  12415. # symbols, whereas GNU nm marks them as "W".
  12416. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  12417. 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'
  12418. else
  12419. 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'
  12420. fi
  12421. ;;
  12422. pw32*)
  12423. export_symbols_cmds_CXX="$ltdll_cmds"
  12424. ;;
  12425. cygwin* | mingw* | cegcc*)
  12426. case $cc_basename in
  12427. cl*)
  12428. exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
  12429. ;;
  12430. *)
  12431. 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'
  12432. exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
  12433. ;;
  12434. esac
  12435. ;;
  12436. linux* | k*bsd*-gnu | gnu*)
  12437. link_all_deplibs_CXX=no
  12438. ;;
  12439. *)
  12440. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  12441. ;;
  12442. esac
  12443. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
  12444. $as_echo "$ld_shlibs_CXX" >&6; }
  12445. test "$ld_shlibs_CXX" = no && can_build_shared=no
  12446. with_gnu_ld_CXX=$with_gnu_ld
  12447. #
  12448. # Do we need to explicitly link libc?
  12449. #
  12450. case "x$archive_cmds_need_lc_CXX" in
  12451. x|xyes)
  12452. # Assume -lc should be added
  12453. archive_cmds_need_lc_CXX=yes
  12454. if test "$enable_shared" = yes && test "$GCC" = yes; then
  12455. case $archive_cmds_CXX in
  12456. *'~'*)
  12457. # FIXME: we may have to deal with multi-command sequences.
  12458. ;;
  12459. '$CC '*)
  12460. # Test whether the compiler implicitly links with -lc since on some
  12461. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  12462. # to ld, don't add -lc before -lgcc.
  12463. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  12464. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  12465. if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
  12466. $as_echo_n "(cached) " >&6
  12467. else
  12468. $RM conftest*
  12469. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12470. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  12471. (eval $ac_compile) 2>&5
  12472. ac_status=$?
  12473. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12474. test $ac_status = 0; } 2>conftest.err; then
  12475. soname=conftest
  12476. lib=conftest
  12477. libobjs=conftest.$ac_objext
  12478. deplibs=
  12479. wl=$lt_prog_compiler_wl_CXX
  12480. pic_flag=$lt_prog_compiler_pic_CXX
  12481. compiler_flags=-v
  12482. linker_flags=-v
  12483. verstring=
  12484. output_objdir=.
  12485. libname=conftest
  12486. lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
  12487. allow_undefined_flag_CXX=
  12488. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  12489. (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  12490. ac_status=$?
  12491. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12492. test $ac_status = 0; }
  12493. then
  12494. lt_cv_archive_cmds_need_lc_CXX=no
  12495. else
  12496. lt_cv_archive_cmds_need_lc_CXX=yes
  12497. fi
  12498. allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
  12499. else
  12500. cat conftest.err 1>&5
  12501. fi
  12502. $RM conftest*
  12503. fi
  12504. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
  12505. $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
  12506. archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
  12507. ;;
  12508. esac
  12509. fi
  12510. ;;
  12511. esac
  12512. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  12513. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  12514. library_names_spec=
  12515. libname_spec='lib$name'
  12516. soname_spec=
  12517. shrext_cmds=".so"
  12518. postinstall_cmds=
  12519. postuninstall_cmds=
  12520. finish_cmds=
  12521. finish_eval=
  12522. shlibpath_var=
  12523. shlibpath_overrides_runpath=unknown
  12524. version_type=none
  12525. dynamic_linker="$host_os ld.so"
  12526. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  12527. need_lib_prefix=unknown
  12528. hardcode_into_libs=no
  12529. # when you set need_version to no, make sure it does not cause -set_version
  12530. # flags to be left without arguments
  12531. need_version=unknown
  12532. case $host_os in
  12533. aix3*)
  12534. version_type=linux # correct to gnu/linux during the next big refactor
  12535. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  12536. shlibpath_var=LIBPATH
  12537. # AIX 3 has no versioning support, so we append a major version to the name.
  12538. soname_spec='${libname}${release}${shared_ext}$major'
  12539. ;;
  12540. aix[4-9]*)
  12541. version_type=linux # correct to gnu/linux during the next big refactor
  12542. need_lib_prefix=no
  12543. need_version=no
  12544. hardcode_into_libs=yes
  12545. if test "$host_cpu" = ia64; then
  12546. # AIX 5 supports IA64
  12547. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  12548. shlibpath_var=LD_LIBRARY_PATH
  12549. else
  12550. # With GCC up to 2.95.x, collect2 would create an import file
  12551. # for dependence libraries. The import file would start with
  12552. # the line `#! .'. This would cause the generated library to
  12553. # depend on `.', always an invalid library. This was fixed in
  12554. # development snapshots of GCC prior to 3.0.
  12555. case $host_os in
  12556. aix4 | aix4.[01] | aix4.[01].*)
  12557. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  12558. echo ' yes '
  12559. echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  12560. :
  12561. else
  12562. can_build_shared=no
  12563. fi
  12564. ;;
  12565. esac
  12566. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  12567. # soname into executable. Probably we can add versioning support to
  12568. # collect2, so additional links can be useful in future.
  12569. if test "$aix_use_runtimelinking" = yes; then
  12570. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  12571. # instead of lib<name>.a to let people know that these are not
  12572. # typical AIX shared libraries.
  12573. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12574. else
  12575. # We preserve .a as extension for shared libraries through AIX4.2
  12576. # and later when we are not doing run time linking.
  12577. library_names_spec='${libname}${release}.a $libname.a'
  12578. soname_spec='${libname}${release}${shared_ext}$major'
  12579. fi
  12580. shlibpath_var=LIBPATH
  12581. fi
  12582. ;;
  12583. amigaos*)
  12584. case $host_cpu in
  12585. powerpc)
  12586. # Since July 2007 AmigaOS4 officially supports .so libraries.
  12587. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  12588. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12589. ;;
  12590. m68k)
  12591. library_names_spec='$libname.ixlibrary $libname.a'
  12592. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  12593. 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'
  12594. ;;
  12595. esac
  12596. ;;
  12597. beos*)
  12598. library_names_spec='${libname}${shared_ext}'
  12599. dynamic_linker="$host_os ld.so"
  12600. shlibpath_var=LIBRARY_PATH
  12601. ;;
  12602. bsdi[45]*)
  12603. version_type=linux # correct to gnu/linux during the next big refactor
  12604. need_version=no
  12605. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12606. soname_spec='${libname}${release}${shared_ext}$major'
  12607. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  12608. shlibpath_var=LD_LIBRARY_PATH
  12609. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  12610. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  12611. # the default ld.so.conf also contains /usr/contrib/lib and
  12612. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  12613. # libtool to hard-code these into programs
  12614. ;;
  12615. cygwin* | mingw* | pw32* | cegcc*)
  12616. version_type=windows
  12617. shrext_cmds=".dll"
  12618. need_version=no
  12619. need_lib_prefix=no
  12620. case $GCC,$cc_basename in
  12621. yes,*)
  12622. # gcc
  12623. library_names_spec='$libname.dll.a'
  12624. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  12625. postinstall_cmds='base_file=`basename \${file}`~
  12626. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  12627. dldir=$destdir/`dirname \$dlpath`~
  12628. test -d \$dldir || mkdir -p \$dldir~
  12629. $install_prog $dir/$dlname \$dldir/$dlname~
  12630. chmod a+x \$dldir/$dlname~
  12631. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  12632. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  12633. fi'
  12634. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  12635. dlpath=$dir/\$dldll~
  12636. $RM \$dlpath'
  12637. shlibpath_overrides_runpath=yes
  12638. case $host_os in
  12639. cygwin*)
  12640. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  12641. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  12642. ;;
  12643. mingw* | cegcc*)
  12644. # MinGW DLLs use traditional 'lib' prefix
  12645. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  12646. ;;
  12647. pw32*)
  12648. # pw32 DLLs use 'pw' prefix rather than 'lib'
  12649. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  12650. ;;
  12651. esac
  12652. dynamic_linker='Win32 ld.exe'
  12653. ;;
  12654. *,cl*)
  12655. # Native MSVC
  12656. libname_spec='$name'
  12657. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  12658. library_names_spec='${libname}.dll.lib'
  12659. case $build_os in
  12660. mingw*)
  12661. sys_lib_search_path_spec=
  12662. lt_save_ifs=$IFS
  12663. IFS=';'
  12664. for lt_path in $LIB
  12665. do
  12666. IFS=$lt_save_ifs
  12667. # Let DOS variable expansion print the short 8.3 style file name.
  12668. lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
  12669. sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
  12670. done
  12671. IFS=$lt_save_ifs
  12672. # Convert to MSYS style.
  12673. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
  12674. ;;
  12675. cygwin*)
  12676. # Convert to unix form, then to dos form, then back to unix form
  12677. # but this time dos style (no spaces!) so that the unix form looks
  12678. # like /cygdrive/c/PROGRA~1:/cygdr...
  12679. sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
  12680. sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
  12681. sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  12682. ;;
  12683. *)
  12684. sys_lib_search_path_spec="$LIB"
  12685. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  12686. # It is most probably a Windows format PATH.
  12687. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  12688. else
  12689. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  12690. fi
  12691. # FIXME: find the short name or the path components, as spaces are
  12692. # common. (e.g. "Program Files" -> "PROGRA~1")
  12693. ;;
  12694. esac
  12695. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  12696. postinstall_cmds='base_file=`basename \${file}`~
  12697. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  12698. dldir=$destdir/`dirname \$dlpath`~
  12699. test -d \$dldir || mkdir -p \$dldir~
  12700. $install_prog $dir/$dlname \$dldir/$dlname'
  12701. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  12702. dlpath=$dir/\$dldll~
  12703. $RM \$dlpath'
  12704. shlibpath_overrides_runpath=yes
  12705. dynamic_linker='Win32 link.exe'
  12706. ;;
  12707. *)
  12708. # Assume MSVC wrapper
  12709. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  12710. dynamic_linker='Win32 ld.exe'
  12711. ;;
  12712. esac
  12713. # FIXME: first we should search . and the directory the executable is in
  12714. shlibpath_var=PATH
  12715. ;;
  12716. darwin* | rhapsody*)
  12717. dynamic_linker="$host_os dyld"
  12718. version_type=darwin
  12719. need_lib_prefix=no
  12720. need_version=no
  12721. library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  12722. soname_spec='${libname}${release}${major}$shared_ext'
  12723. shlibpath_overrides_runpath=yes
  12724. shlibpath_var=DYLD_LIBRARY_PATH
  12725. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  12726. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  12727. ;;
  12728. dgux*)
  12729. version_type=linux # correct to gnu/linux during the next big refactor
  12730. need_lib_prefix=no
  12731. need_version=no
  12732. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  12733. soname_spec='${libname}${release}${shared_ext}$major'
  12734. shlibpath_var=LD_LIBRARY_PATH
  12735. ;;
  12736. freebsd* | dragonfly*)
  12737. # DragonFly does not have aout. When/if they implement a new
  12738. # versioning mechanism, adjust this.
  12739. if test -x /usr/bin/objformat; then
  12740. objformat=`/usr/bin/objformat`
  12741. else
  12742. case $host_os in
  12743. freebsd[23].*) objformat=aout ;;
  12744. *) objformat=elf ;;
  12745. esac
  12746. fi
  12747. version_type=freebsd-$objformat
  12748. case $version_type in
  12749. freebsd-elf*)
  12750. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  12751. need_version=no
  12752. need_lib_prefix=no
  12753. ;;
  12754. freebsd-*)
  12755. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  12756. need_version=yes
  12757. ;;
  12758. esac
  12759. shlibpath_var=LD_LIBRARY_PATH
  12760. case $host_os in
  12761. freebsd2.*)
  12762. shlibpath_overrides_runpath=yes
  12763. ;;
  12764. freebsd3.[01]* | freebsdelf3.[01]*)
  12765. shlibpath_overrides_runpath=yes
  12766. hardcode_into_libs=yes
  12767. ;;
  12768. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  12769. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  12770. shlibpath_overrides_runpath=no
  12771. hardcode_into_libs=yes
  12772. ;;
  12773. *) # from 4.6 on, and DragonFly
  12774. shlibpath_overrides_runpath=yes
  12775. hardcode_into_libs=yes
  12776. ;;
  12777. esac
  12778. ;;
  12779. gnu*)
  12780. version_type=linux # correct to gnu/linux during the next big refactor
  12781. need_lib_prefix=no
  12782. need_version=no
  12783. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  12784. soname_spec='${libname}${release}${shared_ext}$major'
  12785. shlibpath_var=LD_LIBRARY_PATH
  12786. shlibpath_overrides_runpath=no
  12787. hardcode_into_libs=yes
  12788. ;;
  12789. haiku*)
  12790. version_type=linux # correct to gnu/linux during the next big refactor
  12791. need_lib_prefix=no
  12792. need_version=no
  12793. dynamic_linker="$host_os runtime_loader"
  12794. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  12795. soname_spec='${libname}${release}${shared_ext}$major'
  12796. shlibpath_var=LIBRARY_PATH
  12797. shlibpath_overrides_runpath=yes
  12798. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
  12799. hardcode_into_libs=yes
  12800. ;;
  12801. hpux9* | hpux10* | hpux11*)
  12802. # Give a soname corresponding to the major version so that dld.sl refuses to
  12803. # link against other versions.
  12804. version_type=sunos
  12805. need_lib_prefix=no
  12806. need_version=no
  12807. case $host_cpu in
  12808. ia64*)
  12809. shrext_cmds='.so'
  12810. hardcode_into_libs=yes
  12811. dynamic_linker="$host_os dld.so"
  12812. shlibpath_var=LD_LIBRARY_PATH
  12813. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  12814. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12815. soname_spec='${libname}${release}${shared_ext}$major'
  12816. if test "X$HPUX_IA64_MODE" = X32; then
  12817. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  12818. else
  12819. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  12820. fi
  12821. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  12822. ;;
  12823. hppa*64*)
  12824. shrext_cmds='.sl'
  12825. hardcode_into_libs=yes
  12826. dynamic_linker="$host_os dld.sl"
  12827. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  12828. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  12829. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12830. soname_spec='${libname}${release}${shared_ext}$major'
  12831. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  12832. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  12833. ;;
  12834. *)
  12835. shrext_cmds='.sl'
  12836. dynamic_linker="$host_os dld.sl"
  12837. shlibpath_var=SHLIB_PATH
  12838. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  12839. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12840. soname_spec='${libname}${release}${shared_ext}$major'
  12841. ;;
  12842. esac
  12843. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  12844. postinstall_cmds='chmod 555 $lib'
  12845. # or fails outright, so override atomically:
  12846. install_override_mode=555
  12847. ;;
  12848. interix[3-9]*)
  12849. version_type=linux # correct to gnu/linux during the next big refactor
  12850. need_lib_prefix=no
  12851. need_version=no
  12852. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  12853. soname_spec='${libname}${release}${shared_ext}$major'
  12854. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  12855. shlibpath_var=LD_LIBRARY_PATH
  12856. shlibpath_overrides_runpath=no
  12857. hardcode_into_libs=yes
  12858. ;;
  12859. irix5* | irix6* | nonstopux*)
  12860. case $host_os in
  12861. nonstopux*) version_type=nonstopux ;;
  12862. *)
  12863. if test "$lt_cv_prog_gnu_ld" = yes; then
  12864. version_type=linux # correct to gnu/linux during the next big refactor
  12865. else
  12866. version_type=irix
  12867. fi ;;
  12868. esac
  12869. need_lib_prefix=no
  12870. need_version=no
  12871. soname_spec='${libname}${release}${shared_ext}$major'
  12872. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  12873. case $host_os in
  12874. irix5* | nonstopux*)
  12875. libsuff= shlibsuff=
  12876. ;;
  12877. *)
  12878. case $LD in # libtool.m4 will add one of these switches to LD
  12879. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  12880. libsuff= shlibsuff= libmagic=32-bit;;
  12881. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  12882. libsuff=32 shlibsuff=N32 libmagic=N32;;
  12883. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  12884. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  12885. *) libsuff= shlibsuff= libmagic=never-match;;
  12886. esac
  12887. ;;
  12888. esac
  12889. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  12890. shlibpath_overrides_runpath=no
  12891. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  12892. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  12893. hardcode_into_libs=yes
  12894. ;;
  12895. # No shared lib support for Linux oldld, aout, or coff.
  12896. linux*oldld* | linux*aout* | linux*coff*)
  12897. dynamic_linker=no
  12898. ;;
  12899. # This must be glibc/ELF.
  12900. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  12901. version_type=linux # correct to gnu/linux during the next big refactor
  12902. need_lib_prefix=no
  12903. need_version=no
  12904. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12905. soname_spec='${libname}${release}${shared_ext}$major'
  12906. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  12907. shlibpath_var=LD_LIBRARY_PATH
  12908. shlibpath_overrides_runpath=no
  12909. # Some binutils ld are patched to set DT_RUNPATH
  12910. if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
  12911. $as_echo_n "(cached) " >&6
  12912. else
  12913. lt_cv_shlibpath_overrides_runpath=no
  12914. save_LDFLAGS=$LDFLAGS
  12915. save_libdir=$libdir
  12916. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
  12917. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
  12918. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12919. /* end confdefs.h. */
  12920. int
  12921. main ()
  12922. {
  12923. ;
  12924. return 0;
  12925. }
  12926. _ACEOF
  12927. if ac_fn_cxx_try_link "$LINENO"; then :
  12928. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  12929. lt_cv_shlibpath_overrides_runpath=yes
  12930. fi
  12931. fi
  12932. rm -f core conftest.err conftest.$ac_objext \
  12933. conftest$ac_exeext conftest.$ac_ext
  12934. LDFLAGS=$save_LDFLAGS
  12935. libdir=$save_libdir
  12936. fi
  12937. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  12938. # This implies no fast_install, which is unacceptable.
  12939. # Some rework will be needed to allow for fast_install
  12940. # before this can be enabled.
  12941. hardcode_into_libs=yes
  12942. # Append ld.so.conf contents to the search path
  12943. if test -f /etc/ld.so.conf; then
  12944. 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' ' '`
  12945. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  12946. fi
  12947. # We used to test for /lib/ld.so.1 and disable shared libraries on
  12948. # powerpc, because MkLinux only supported shared libraries with the
  12949. # GNU dynamic linker. Since this was broken with cross compilers,
  12950. # most powerpc-linux boxes support dynamic linking these days and
  12951. # people can always --disable-shared, the test was removed, and we
  12952. # assume the GNU/Linux dynamic linker is in use.
  12953. dynamic_linker='GNU/Linux ld.so'
  12954. ;;
  12955. netbsdelf*-gnu)
  12956. version_type=linux
  12957. need_lib_prefix=no
  12958. need_version=no
  12959. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  12960. soname_spec='${libname}${release}${shared_ext}$major'
  12961. shlibpath_var=LD_LIBRARY_PATH
  12962. shlibpath_overrides_runpath=no
  12963. hardcode_into_libs=yes
  12964. dynamic_linker='NetBSD ld.elf_so'
  12965. ;;
  12966. netbsd*)
  12967. version_type=sunos
  12968. need_lib_prefix=no
  12969. need_version=no
  12970. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  12971. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  12972. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  12973. dynamic_linker='NetBSD (a.out) ld.so'
  12974. else
  12975. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  12976. soname_spec='${libname}${release}${shared_ext}$major'
  12977. dynamic_linker='NetBSD ld.elf_so'
  12978. fi
  12979. shlibpath_var=LD_LIBRARY_PATH
  12980. shlibpath_overrides_runpath=yes
  12981. hardcode_into_libs=yes
  12982. ;;
  12983. newsos6)
  12984. version_type=linux # correct to gnu/linux during the next big refactor
  12985. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12986. shlibpath_var=LD_LIBRARY_PATH
  12987. shlibpath_overrides_runpath=yes
  12988. ;;
  12989. *nto* | *qnx*)
  12990. version_type=qnx
  12991. need_lib_prefix=no
  12992. need_version=no
  12993. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12994. soname_spec='${libname}${release}${shared_ext}$major'
  12995. shlibpath_var=LD_LIBRARY_PATH
  12996. shlibpath_overrides_runpath=no
  12997. hardcode_into_libs=yes
  12998. dynamic_linker='ldqnx.so'
  12999. ;;
  13000. openbsd*)
  13001. version_type=sunos
  13002. sys_lib_dlsearch_path_spec="/usr/lib"
  13003. need_lib_prefix=no
  13004. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  13005. case $host_os in
  13006. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  13007. *) need_version=no ;;
  13008. esac
  13009. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  13010. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  13011. shlibpath_var=LD_LIBRARY_PATH
  13012. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  13013. case $host_os in
  13014. openbsd2.[89] | openbsd2.[89].*)
  13015. shlibpath_overrides_runpath=no
  13016. ;;
  13017. *)
  13018. shlibpath_overrides_runpath=yes
  13019. ;;
  13020. esac
  13021. else
  13022. shlibpath_overrides_runpath=yes
  13023. fi
  13024. ;;
  13025. os2*)
  13026. libname_spec='$name'
  13027. shrext_cmds=".dll"
  13028. need_lib_prefix=no
  13029. library_names_spec='$libname${shared_ext} $libname.a'
  13030. dynamic_linker='OS/2 ld.exe'
  13031. shlibpath_var=LIBPATH
  13032. ;;
  13033. osf3* | osf4* | osf5*)
  13034. version_type=osf
  13035. need_lib_prefix=no
  13036. need_version=no
  13037. soname_spec='${libname}${release}${shared_ext}$major'
  13038. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13039. shlibpath_var=LD_LIBRARY_PATH
  13040. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  13041. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  13042. ;;
  13043. rdos*)
  13044. dynamic_linker=no
  13045. ;;
  13046. solaris*)
  13047. version_type=linux # correct to gnu/linux during the next big refactor
  13048. need_lib_prefix=no
  13049. need_version=no
  13050. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13051. soname_spec='${libname}${release}${shared_ext}$major'
  13052. shlibpath_var=LD_LIBRARY_PATH
  13053. shlibpath_overrides_runpath=yes
  13054. hardcode_into_libs=yes
  13055. # ldd complains unless libraries are executable
  13056. postinstall_cmds='chmod +x $lib'
  13057. ;;
  13058. sunos4*)
  13059. version_type=sunos
  13060. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  13061. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  13062. shlibpath_var=LD_LIBRARY_PATH
  13063. shlibpath_overrides_runpath=yes
  13064. if test "$with_gnu_ld" = yes; then
  13065. need_lib_prefix=no
  13066. fi
  13067. need_version=yes
  13068. ;;
  13069. sysv4 | sysv4.3*)
  13070. version_type=linux # correct to gnu/linux during the next big refactor
  13071. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13072. soname_spec='${libname}${release}${shared_ext}$major'
  13073. shlibpath_var=LD_LIBRARY_PATH
  13074. case $host_vendor in
  13075. sni)
  13076. shlibpath_overrides_runpath=no
  13077. need_lib_prefix=no
  13078. runpath_var=LD_RUN_PATH
  13079. ;;
  13080. siemens)
  13081. need_lib_prefix=no
  13082. ;;
  13083. motorola)
  13084. need_lib_prefix=no
  13085. need_version=no
  13086. shlibpath_overrides_runpath=no
  13087. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  13088. ;;
  13089. esac
  13090. ;;
  13091. sysv4*MP*)
  13092. if test -d /usr/nec ;then
  13093. version_type=linux # correct to gnu/linux during the next big refactor
  13094. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  13095. soname_spec='$libname${shared_ext}.$major'
  13096. shlibpath_var=LD_LIBRARY_PATH
  13097. fi
  13098. ;;
  13099. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  13100. version_type=freebsd-elf
  13101. need_lib_prefix=no
  13102. need_version=no
  13103. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  13104. soname_spec='${libname}${release}${shared_ext}$major'
  13105. shlibpath_var=LD_LIBRARY_PATH
  13106. shlibpath_overrides_runpath=yes
  13107. hardcode_into_libs=yes
  13108. if test "$with_gnu_ld" = yes; then
  13109. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  13110. else
  13111. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  13112. case $host_os in
  13113. sco3.2v5*)
  13114. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  13115. ;;
  13116. esac
  13117. fi
  13118. sys_lib_dlsearch_path_spec='/usr/lib'
  13119. ;;
  13120. tpf*)
  13121. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  13122. version_type=linux # correct to gnu/linux during the next big refactor
  13123. need_lib_prefix=no
  13124. need_version=no
  13125. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13126. shlibpath_var=LD_LIBRARY_PATH
  13127. shlibpath_overrides_runpath=no
  13128. hardcode_into_libs=yes
  13129. ;;
  13130. uts4*)
  13131. version_type=linux # correct to gnu/linux during the next big refactor
  13132. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13133. soname_spec='${libname}${release}${shared_ext}$major'
  13134. shlibpath_var=LD_LIBRARY_PATH
  13135. ;;
  13136. *)
  13137. dynamic_linker=no
  13138. ;;
  13139. esac
  13140. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  13141. $as_echo "$dynamic_linker" >&6; }
  13142. test "$dynamic_linker" = no && can_build_shared=no
  13143. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  13144. if test "$GCC" = yes; then
  13145. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  13146. fi
  13147. if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  13148. sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  13149. fi
  13150. if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  13151. sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  13152. fi
  13153. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  13154. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  13155. hardcode_action_CXX=
  13156. if test -n "$hardcode_libdir_flag_spec_CXX" ||
  13157. test -n "$runpath_var_CXX" ||
  13158. test "X$hardcode_automatic_CXX" = "Xyes" ; then
  13159. # We can hardcode non-existent directories.
  13160. if test "$hardcode_direct_CXX" != no &&
  13161. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  13162. # have to relink, otherwise we might link with an installed library
  13163. # when we should be linking with a yet-to-be-installed one
  13164. ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
  13165. test "$hardcode_minus_L_CXX" != no; then
  13166. # Linking always hardcodes the temporary library directory.
  13167. hardcode_action_CXX=relink
  13168. else
  13169. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  13170. hardcode_action_CXX=immediate
  13171. fi
  13172. else
  13173. # We cannot hardcode anything, or else we can only hardcode existing
  13174. # directories.
  13175. hardcode_action_CXX=unsupported
  13176. fi
  13177. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
  13178. $as_echo "$hardcode_action_CXX" >&6; }
  13179. if test "$hardcode_action_CXX" = relink ||
  13180. test "$inherit_rpath_CXX" = yes; then
  13181. # Fast installation is not supported
  13182. enable_fast_install=no
  13183. elif test "$shlibpath_overrides_runpath" = yes ||
  13184. test "$enable_shared" = no; then
  13185. # Fast installation is not necessary
  13186. enable_fast_install=needless
  13187. fi
  13188. fi # test -n "$compiler"
  13189. CC=$lt_save_CC
  13190. CFLAGS=$lt_save_CFLAGS
  13191. LDCXX=$LD
  13192. LD=$lt_save_LD
  13193. GCC=$lt_save_GCC
  13194. with_gnu_ld=$lt_save_with_gnu_ld
  13195. lt_cv_path_LDCXX=$lt_cv_path_LD
  13196. lt_cv_path_LD=$lt_save_path_LD
  13197. lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
  13198. lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
  13199. fi # test "$_lt_caught_CXX_error" != yes
  13200. ac_ext=c
  13201. ac_cpp='$CPP $CPPFLAGS'
  13202. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  13203. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  13204. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  13205. ac_config_commands="$ac_config_commands libtool"
  13206. # Only expand once:
  13207. ac_config_headers="$ac_config_headers config.h"
  13208. am__api_version='1.11'
  13209. # Find a good install program. We prefer a C program (faster),
  13210. # so one script is as good as another. But avoid the broken or
  13211. # incompatible versions:
  13212. # SysV /etc/install, /usr/sbin/install
  13213. # SunOS /usr/etc/install
  13214. # IRIX /sbin/install
  13215. # AIX /bin/install
  13216. # AmigaOS /C/install, which installs bootblocks on floppy discs
  13217. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  13218. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  13219. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  13220. # OS/2's system install, which has a completely different semantic
  13221. # ./install, which can be erroneously created by make from ./install.sh.
  13222. # Reject install programs that cannot install multiple files.
  13223. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
  13224. $as_echo_n "checking for a BSD-compatible install... " >&6; }
  13225. if test -z "$INSTALL"; then
  13226. if ${ac_cv_path_install+:} false; then :
  13227. $as_echo_n "(cached) " >&6
  13228. else
  13229. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13230. for as_dir in $PATH
  13231. do
  13232. IFS=$as_save_IFS
  13233. test -z "$as_dir" && as_dir=.
  13234. # Account for people who put trailing slashes in PATH elements.
  13235. case $as_dir/ in #((
  13236. ./ | .// | /[cC]/* | \
  13237. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  13238. ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
  13239. /usr/ucb/* ) ;;
  13240. *)
  13241. # OSF1 and SCO ODT 3.0 have their own names for install.
  13242. # Don't use installbsd from OSF since it installs stuff as root
  13243. # by default.
  13244. for ac_prog in ginstall scoinst install; do
  13245. for ac_exec_ext in '' $ac_executable_extensions; do
  13246. if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
  13247. if test $ac_prog = install &&
  13248. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  13249. # AIX install. It has an incompatible calling convention.
  13250. :
  13251. elif test $ac_prog = install &&
  13252. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  13253. # program-specific install script used by HP pwplus--don't use.
  13254. :
  13255. else
  13256. rm -rf conftest.one conftest.two conftest.dir
  13257. echo one > conftest.one
  13258. echo two > conftest.two
  13259. mkdir conftest.dir
  13260. if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
  13261. test -s conftest.one && test -s conftest.two &&
  13262. test -s conftest.dir/conftest.one &&
  13263. test -s conftest.dir/conftest.two
  13264. then
  13265. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  13266. break 3
  13267. fi
  13268. fi
  13269. fi
  13270. done
  13271. done
  13272. ;;
  13273. esac
  13274. done
  13275. IFS=$as_save_IFS
  13276. rm -rf conftest.one conftest.two conftest.dir
  13277. fi
  13278. if test "${ac_cv_path_install+set}" = set; then
  13279. INSTALL=$ac_cv_path_install
  13280. else
  13281. # As a last resort, use the slow shell script. Don't cache a
  13282. # value for INSTALL within a source directory, because that will
  13283. # break other packages using the cache if that directory is
  13284. # removed, or if the value is a relative name.
  13285. INSTALL=$ac_install_sh
  13286. fi
  13287. fi
  13288. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
  13289. $as_echo "$INSTALL" >&6; }
  13290. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  13291. # It thinks the first close brace ends the variable substitution.
  13292. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  13293. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  13294. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  13295. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
  13296. $as_echo_n "checking whether build environment is sane... " >&6; }
  13297. # Just in case
  13298. sleep 1
  13299. echo timestamp > conftest.file
  13300. # Reject unsafe characters in $srcdir or the absolute working directory
  13301. # name. Accept space and tab only in the latter.
  13302. am_lf='
  13303. '
  13304. case `pwd` in
  13305. *[\\\"\#\$\&\'\`$am_lf]*)
  13306. as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
  13307. esac
  13308. case $srcdir in
  13309. *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
  13310. as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
  13311. esac
  13312. # Do `set' in a subshell so we don't clobber the current shell's
  13313. # arguments. Must try -L first in case configure is actually a
  13314. # symlink; some systems play weird games with the mod time of symlinks
  13315. # (eg FreeBSD returns the mod time of the symlink's containing
  13316. # directory).
  13317. if (
  13318. set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
  13319. if test "$*" = "X"; then
  13320. # -L didn't work.
  13321. set X `ls -t "$srcdir/configure" conftest.file`
  13322. fi
  13323. rm -f conftest.file
  13324. if test "$*" != "X $srcdir/configure conftest.file" \
  13325. && test "$*" != "X conftest.file $srcdir/configure"; then
  13326. # If neither matched, then we have a broken ls. This can happen
  13327. # if, for instance, CONFIG_SHELL is bash and it inherits a
  13328. # broken ls alias from the environment. This has actually
  13329. # happened. Such a system could not be considered "sane".
  13330. as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
  13331. alias in your environment" "$LINENO" 5
  13332. fi
  13333. test "$2" = conftest.file
  13334. )
  13335. then
  13336. # Ok.
  13337. :
  13338. else
  13339. as_fn_error $? "newly created file is older than distributed files!
  13340. Check your system clock" "$LINENO" 5
  13341. fi
  13342. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  13343. $as_echo "yes" >&6; }
  13344. test "$program_prefix" != NONE &&
  13345. program_transform_name="s&^&$program_prefix&;$program_transform_name"
  13346. # Use a double $ so make ignores it.
  13347. test "$program_suffix" != NONE &&
  13348. program_transform_name="s&\$&$program_suffix&;$program_transform_name"
  13349. # Double any \ or $.
  13350. # By default was `s,x,x', remove it if useless.
  13351. ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
  13352. program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
  13353. # expand $ac_aux_dir to an absolute path
  13354. am_aux_dir=`cd $ac_aux_dir && pwd`
  13355. if test x"${MISSING+set}" != xset; then
  13356. case $am_aux_dir in
  13357. *\ * | *\ *)
  13358. MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
  13359. *)
  13360. MISSING="\${SHELL} $am_aux_dir/missing" ;;
  13361. esac
  13362. fi
  13363. # Use eval to expand $SHELL
  13364. if eval "$MISSING --run true"; then
  13365. am_missing_run="$MISSING --run "
  13366. else
  13367. am_missing_run=
  13368. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
  13369. $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
  13370. fi
  13371. if test x"${install_sh}" != xset; then
  13372. case $am_aux_dir in
  13373. *\ * | *\ *)
  13374. install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
  13375. *)
  13376. install_sh="\${SHELL} $am_aux_dir/install-sh"
  13377. esac
  13378. fi
  13379. # Installed binaries are usually stripped using `strip' when the user
  13380. # run `make install-strip'. However `strip' might not be the right
  13381. # tool to use in cross-compilation environments, therefore Automake
  13382. # will honor the `STRIP' environment variable to overrule this program.
  13383. if test "$cross_compiling" != no; then
  13384. if test -n "$ac_tool_prefix"; then
  13385. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  13386. set dummy ${ac_tool_prefix}strip; ac_word=$2
  13387. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  13388. $as_echo_n "checking for $ac_word... " >&6; }
  13389. if ${ac_cv_prog_STRIP+:} false; then :
  13390. $as_echo_n "(cached) " >&6
  13391. else
  13392. if test -n "$STRIP"; then
  13393. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  13394. else
  13395. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13396. for as_dir in $PATH
  13397. do
  13398. IFS=$as_save_IFS
  13399. test -z "$as_dir" && as_dir=.
  13400. for ac_exec_ext in '' $ac_executable_extensions; do
  13401. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  13402. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  13403. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  13404. break 2
  13405. fi
  13406. done
  13407. done
  13408. IFS=$as_save_IFS
  13409. fi
  13410. fi
  13411. STRIP=$ac_cv_prog_STRIP
  13412. if test -n "$STRIP"; then
  13413. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  13414. $as_echo "$STRIP" >&6; }
  13415. else
  13416. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13417. $as_echo "no" >&6; }
  13418. fi
  13419. fi
  13420. if test -z "$ac_cv_prog_STRIP"; then
  13421. ac_ct_STRIP=$STRIP
  13422. # Extract the first word of "strip", so it can be a program name with args.
  13423. set dummy strip; ac_word=$2
  13424. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  13425. $as_echo_n "checking for $ac_word... " >&6; }
  13426. if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
  13427. $as_echo_n "(cached) " >&6
  13428. else
  13429. if test -n "$ac_ct_STRIP"; then
  13430. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  13431. else
  13432. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13433. for as_dir in $PATH
  13434. do
  13435. IFS=$as_save_IFS
  13436. test -z "$as_dir" && as_dir=.
  13437. for ac_exec_ext in '' $ac_executable_extensions; do
  13438. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  13439. ac_cv_prog_ac_ct_STRIP="strip"
  13440. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  13441. break 2
  13442. fi
  13443. done
  13444. done
  13445. IFS=$as_save_IFS
  13446. fi
  13447. fi
  13448. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  13449. if test -n "$ac_ct_STRIP"; then
  13450. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  13451. $as_echo "$ac_ct_STRIP" >&6; }
  13452. else
  13453. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13454. $as_echo "no" >&6; }
  13455. fi
  13456. if test "x$ac_ct_STRIP" = x; then
  13457. STRIP=":"
  13458. else
  13459. case $cross_compiling:$ac_tool_warned in
  13460. yes:)
  13461. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  13462. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  13463. ac_tool_warned=yes ;;
  13464. esac
  13465. STRIP=$ac_ct_STRIP
  13466. fi
  13467. else
  13468. STRIP="$ac_cv_prog_STRIP"
  13469. fi
  13470. fi
  13471. INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
  13472. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
  13473. $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
  13474. if test -z "$MKDIR_P"; then
  13475. if ${ac_cv_path_mkdir+:} false; then :
  13476. $as_echo_n "(cached) " >&6
  13477. else
  13478. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13479. for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
  13480. do
  13481. IFS=$as_save_IFS
  13482. test -z "$as_dir" && as_dir=.
  13483. for ac_prog in mkdir gmkdir; do
  13484. for ac_exec_ext in '' $ac_executable_extensions; do
  13485. { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
  13486. case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
  13487. 'mkdir (GNU coreutils) '* | \
  13488. 'mkdir (coreutils) '* | \
  13489. 'mkdir (fileutils) '4.1*)
  13490. ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
  13491. break 3;;
  13492. esac
  13493. done
  13494. done
  13495. done
  13496. IFS=$as_save_IFS
  13497. fi
  13498. test -d ./--version && rmdir ./--version
  13499. if test "${ac_cv_path_mkdir+set}" = set; then
  13500. MKDIR_P="$ac_cv_path_mkdir -p"
  13501. else
  13502. # As a last resort, use the slow shell script. Don't cache a
  13503. # value for MKDIR_P within a source directory, because that will
  13504. # break other packages using the cache if that directory is
  13505. # removed, or if the value is a relative name.
  13506. MKDIR_P="$ac_install_sh -d"
  13507. fi
  13508. fi
  13509. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
  13510. $as_echo "$MKDIR_P" >&6; }
  13511. mkdir_p="$MKDIR_P"
  13512. case $mkdir_p in
  13513. [\\/$]* | ?:[\\/]*) ;;
  13514. */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
  13515. esac
  13516. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  13517. $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  13518. set x ${MAKE-make}
  13519. ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  13520. if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
  13521. $as_echo_n "(cached) " >&6
  13522. else
  13523. cat >conftest.make <<\_ACEOF
  13524. SHELL = /bin/sh
  13525. all:
  13526. @echo '@@@%%%=$(MAKE)=@@@%%%'
  13527. _ACEOF
  13528. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  13529. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  13530. *@@@%%%=?*=@@@%%%*)
  13531. eval ac_cv_prog_make_${ac_make}_set=yes;;
  13532. *)
  13533. eval ac_cv_prog_make_${ac_make}_set=no;;
  13534. esac
  13535. rm -f conftest.make
  13536. fi
  13537. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  13538. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  13539. $as_echo "yes" >&6; }
  13540. SET_MAKE=
  13541. else
  13542. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13543. $as_echo "no" >&6; }
  13544. SET_MAKE="MAKE=${MAKE-make}"
  13545. fi
  13546. rm -rf .tst 2>/dev/null
  13547. mkdir .tst 2>/dev/null
  13548. if test -d .tst; then
  13549. am__leading_dot=.
  13550. else
  13551. am__leading_dot=_
  13552. fi
  13553. rmdir .tst 2>/dev/null
  13554. DEPDIR="${am__leading_dot}deps"
  13555. ac_config_commands="$ac_config_commands depfiles"
  13556. am_make=${MAKE-make}
  13557. cat > confinc << 'END'
  13558. am__doit:
  13559. @echo this is the am__doit target
  13560. .PHONY: am__doit
  13561. END
  13562. # If we don't find an include directive, just comment out the code.
  13563. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
  13564. $as_echo_n "checking for style of include used by $am_make... " >&6; }
  13565. am__include="#"
  13566. am__quote=
  13567. _am_result=none
  13568. # First try GNU make style include.
  13569. echo "include confinc" > confmf
  13570. # Ignore all kinds of additional output from `make'.
  13571. case `$am_make -s -f confmf 2> /dev/null` in #(
  13572. *the\ am__doit\ target*)
  13573. am__include=include
  13574. am__quote=
  13575. _am_result=GNU
  13576. ;;
  13577. esac
  13578. # Now try BSD make style include.
  13579. if test "$am__include" = "#"; then
  13580. echo '.include "confinc"' > confmf
  13581. case `$am_make -s -f confmf 2> /dev/null` in #(
  13582. *the\ am__doit\ target*)
  13583. am__include=.include
  13584. am__quote="\""
  13585. _am_result=BSD
  13586. ;;
  13587. esac
  13588. fi
  13589. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
  13590. $as_echo "$_am_result" >&6; }
  13591. rm -f confinc confmf
  13592. # Check whether --enable-dependency-tracking was given.
  13593. if test "${enable_dependency_tracking+set}" = set; then :
  13594. enableval=$enable_dependency_tracking;
  13595. fi
  13596. if test "x$enable_dependency_tracking" != xno; then
  13597. am_depcomp="$ac_aux_dir/depcomp"
  13598. AMDEPBACKSLASH='\'
  13599. am__nodep='_no'
  13600. fi
  13601. if test "x$enable_dependency_tracking" != xno; then
  13602. AMDEP_TRUE=
  13603. AMDEP_FALSE='#'
  13604. else
  13605. AMDEP_TRUE='#'
  13606. AMDEP_FALSE=
  13607. fi
  13608. if test "`cd $srcdir && pwd`" != "`pwd`"; then
  13609. # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
  13610. # is not polluted with repeated "-I."
  13611. am__isrc=' -I$(srcdir)'
  13612. # test to see if srcdir already configured
  13613. if test -f $srcdir/config.status; then
  13614. as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
  13615. fi
  13616. fi
  13617. # test whether we have cygpath
  13618. if test -z "$CYGPATH_W"; then
  13619. if (cygpath --version) >/dev/null 2>/dev/null; then
  13620. CYGPATH_W='cygpath -w'
  13621. else
  13622. CYGPATH_W=echo
  13623. fi
  13624. fi
  13625. # Define the identity of the package.
  13626. PACKAGE='klish'
  13627. VERSION='1.5.7'
  13628. cat >>confdefs.h <<_ACEOF
  13629. #define PACKAGE "$PACKAGE"
  13630. _ACEOF
  13631. cat >>confdefs.h <<_ACEOF
  13632. #define VERSION "$VERSION"
  13633. _ACEOF
  13634. # Some tools Automake needs.
  13635. ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
  13636. AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
  13637. AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
  13638. AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
  13639. MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
  13640. # We need awk for the "check" target. The system "awk" is bad on
  13641. # some platforms.
  13642. # Always define AMTAR for backward compatibility. Yes, it's still used
  13643. # in the wild :-( We should find a proper way to deprecate it ...
  13644. AMTAR='$${TAR-tar}'
  13645. am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
  13646. depcc="$CC" am_compiler_list=
  13647. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  13648. $as_echo_n "checking dependency style of $depcc... " >&6; }
  13649. if ${am_cv_CC_dependencies_compiler_type+:} false; then :
  13650. $as_echo_n "(cached) " >&6
  13651. else
  13652. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  13653. # We make a subdir and do the tests there. Otherwise we can end up
  13654. # making bogus files that we don't know about and never remove. For
  13655. # instance it was reported that on HP-UX the gcc test will end up
  13656. # making a dummy file named `D' -- because `-MD' means `put the output
  13657. # in D'.
  13658. rm -rf conftest.dir
  13659. mkdir conftest.dir
  13660. # Copy depcomp to subdir because otherwise we won't find it if we're
  13661. # using a relative directory.
  13662. cp "$am_depcomp" conftest.dir
  13663. cd conftest.dir
  13664. # We will build objects and dependencies in a subdirectory because
  13665. # it helps to detect inapplicable dependency modes. For instance
  13666. # both Tru64's cc and ICC support -MD to output dependencies as a
  13667. # side effect of compilation, but ICC will put the dependencies in
  13668. # the current directory while Tru64 will put them in the object
  13669. # directory.
  13670. mkdir sub
  13671. am_cv_CC_dependencies_compiler_type=none
  13672. if test "$am_compiler_list" = ""; then
  13673. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  13674. fi
  13675. am__universal=false
  13676. case " $depcc " in #(
  13677. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  13678. esac
  13679. for depmode in $am_compiler_list; do
  13680. # Setup a source with many dependencies, because some compilers
  13681. # like to wrap large dependency lists on column 80 (with \), and
  13682. # we should not choose a depcomp mode which is confused by this.
  13683. #
  13684. # We need to recreate these files for each test, as the compiler may
  13685. # overwrite some of them when testing with obscure command lines.
  13686. # This happens at least with the AIX C compiler.
  13687. : > sub/conftest.c
  13688. for i in 1 2 3 4 5 6; do
  13689. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  13690. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  13691. # Solaris 8's {/usr,}/bin/sh.
  13692. touch sub/conftst$i.h
  13693. done
  13694. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  13695. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  13696. # mode. It turns out that the SunPro C++ compiler does not properly
  13697. # handle `-M -o', and we need to detect this. Also, some Intel
  13698. # versions had trouble with output in subdirs
  13699. am__obj=sub/conftest.${OBJEXT-o}
  13700. am__minus_obj="-o $am__obj"
  13701. case $depmode in
  13702. gcc)
  13703. # This depmode causes a compiler race in universal mode.
  13704. test "$am__universal" = false || continue
  13705. ;;
  13706. nosideeffect)
  13707. # after this tag, mechanisms are not by side-effect, so they'll
  13708. # only be used when explicitly requested
  13709. if test "x$enable_dependency_tracking" = xyes; then
  13710. continue
  13711. else
  13712. break
  13713. fi
  13714. ;;
  13715. msvc7 | msvc7msys | msvisualcpp | msvcmsys)
  13716. # This compiler won't grok `-c -o', but also, the minuso test has
  13717. # not run yet. These depmodes are late enough in the game, and
  13718. # so weak that their functioning should not be impacted.
  13719. am__obj=conftest.${OBJEXT-o}
  13720. am__minus_obj=
  13721. ;;
  13722. none) break ;;
  13723. esac
  13724. if depmode=$depmode \
  13725. source=sub/conftest.c object=$am__obj \
  13726. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  13727. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  13728. >/dev/null 2>conftest.err &&
  13729. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  13730. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  13731. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  13732. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  13733. # icc doesn't choke on unknown options, it will just issue warnings
  13734. # or remarks (even with -Werror). So we grep stderr for any message
  13735. # that says an option was ignored or not supported.
  13736. # When given -MP, icc 7.0 and 7.1 complain thusly:
  13737. # icc: Command line warning: ignoring option '-M'; no argument required
  13738. # The diagnosis changed in icc 8.0:
  13739. # icc: Command line remark: option '-MP' not supported
  13740. if (grep 'ignoring option' conftest.err ||
  13741. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  13742. am_cv_CC_dependencies_compiler_type=$depmode
  13743. break
  13744. fi
  13745. fi
  13746. done
  13747. cd ..
  13748. rm -rf conftest.dir
  13749. else
  13750. am_cv_CC_dependencies_compiler_type=none
  13751. fi
  13752. fi
  13753. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
  13754. $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
  13755. CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  13756. if
  13757. test "x$enable_dependency_tracking" != xno \
  13758. && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  13759. am__fastdepCC_TRUE=
  13760. am__fastdepCC_FALSE='#'
  13761. else
  13762. am__fastdepCC_TRUE='#'
  13763. am__fastdepCC_FALSE=
  13764. fi
  13765. depcc="$CXX" am_compiler_list=
  13766. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  13767. $as_echo_n "checking dependency style of $depcc... " >&6; }
  13768. if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
  13769. $as_echo_n "(cached) " >&6
  13770. else
  13771. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  13772. # We make a subdir and do the tests there. Otherwise we can end up
  13773. # making bogus files that we don't know about and never remove. For
  13774. # instance it was reported that on HP-UX the gcc test will end up
  13775. # making a dummy file named `D' -- because `-MD' means `put the output
  13776. # in D'.
  13777. rm -rf conftest.dir
  13778. mkdir conftest.dir
  13779. # Copy depcomp to subdir because otherwise we won't find it if we're
  13780. # using a relative directory.
  13781. cp "$am_depcomp" conftest.dir
  13782. cd conftest.dir
  13783. # We will build objects and dependencies in a subdirectory because
  13784. # it helps to detect inapplicable dependency modes. For instance
  13785. # both Tru64's cc and ICC support -MD to output dependencies as a
  13786. # side effect of compilation, but ICC will put the dependencies in
  13787. # the current directory while Tru64 will put them in the object
  13788. # directory.
  13789. mkdir sub
  13790. am_cv_CXX_dependencies_compiler_type=none
  13791. if test "$am_compiler_list" = ""; then
  13792. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  13793. fi
  13794. am__universal=false
  13795. case " $depcc " in #(
  13796. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  13797. esac
  13798. for depmode in $am_compiler_list; do
  13799. # Setup a source with many dependencies, because some compilers
  13800. # like to wrap large dependency lists on column 80 (with \), and
  13801. # we should not choose a depcomp mode which is confused by this.
  13802. #
  13803. # We need to recreate these files for each test, as the compiler may
  13804. # overwrite some of them when testing with obscure command lines.
  13805. # This happens at least with the AIX C compiler.
  13806. : > sub/conftest.c
  13807. for i in 1 2 3 4 5 6; do
  13808. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  13809. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  13810. # Solaris 8's {/usr,}/bin/sh.
  13811. touch sub/conftst$i.h
  13812. done
  13813. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  13814. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  13815. # mode. It turns out that the SunPro C++ compiler does not properly
  13816. # handle `-M -o', and we need to detect this. Also, some Intel
  13817. # versions had trouble with output in subdirs
  13818. am__obj=sub/conftest.${OBJEXT-o}
  13819. am__minus_obj="-o $am__obj"
  13820. case $depmode in
  13821. gcc)
  13822. # This depmode causes a compiler race in universal mode.
  13823. test "$am__universal" = false || continue
  13824. ;;
  13825. nosideeffect)
  13826. # after this tag, mechanisms are not by side-effect, so they'll
  13827. # only be used when explicitly requested
  13828. if test "x$enable_dependency_tracking" = xyes; then
  13829. continue
  13830. else
  13831. break
  13832. fi
  13833. ;;
  13834. msvc7 | msvc7msys | msvisualcpp | msvcmsys)
  13835. # This compiler won't grok `-c -o', but also, the minuso test has
  13836. # not run yet. These depmodes are late enough in the game, and
  13837. # so weak that their functioning should not be impacted.
  13838. am__obj=conftest.${OBJEXT-o}
  13839. am__minus_obj=
  13840. ;;
  13841. none) break ;;
  13842. esac
  13843. if depmode=$depmode \
  13844. source=sub/conftest.c object=$am__obj \
  13845. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  13846. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  13847. >/dev/null 2>conftest.err &&
  13848. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  13849. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  13850. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  13851. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  13852. # icc doesn't choke on unknown options, it will just issue warnings
  13853. # or remarks (even with -Werror). So we grep stderr for any message
  13854. # that says an option was ignored or not supported.
  13855. # When given -MP, icc 7.0 and 7.1 complain thusly:
  13856. # icc: Command line warning: ignoring option '-M'; no argument required
  13857. # The diagnosis changed in icc 8.0:
  13858. # icc: Command line remark: option '-MP' not supported
  13859. if (grep 'ignoring option' conftest.err ||
  13860. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  13861. am_cv_CXX_dependencies_compiler_type=$depmode
  13862. break
  13863. fi
  13864. fi
  13865. done
  13866. cd ..
  13867. rm -rf conftest.dir
  13868. else
  13869. am_cv_CXX_dependencies_compiler_type=none
  13870. fi
  13871. fi
  13872. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
  13873. $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
  13874. CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
  13875. if
  13876. test "x$enable_dependency_tracking" != xno \
  13877. && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
  13878. am__fastdepCXX_TRUE=
  13879. am__fastdepCXX_FALSE='#'
  13880. else
  13881. am__fastdepCXX_TRUE='#'
  13882. am__fastdepCXX_FALSE=
  13883. fi
  13884. if test "x$CC" != xcc; then
  13885. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
  13886. $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
  13887. else
  13888. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
  13889. $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
  13890. fi
  13891. set dummy $CC; ac_cc=`$as_echo "$2" |
  13892. sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
  13893. if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
  13894. $as_echo_n "(cached) " >&6
  13895. else
  13896. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13897. /* end confdefs.h. */
  13898. int
  13899. main ()
  13900. {
  13901. ;
  13902. return 0;
  13903. }
  13904. _ACEOF
  13905. # Make sure it works both with $CC and with simple cc.
  13906. # We do the test twice because some compilers refuse to overwrite an
  13907. # existing .o file with -o, though they will create one.
  13908. ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
  13909. rm -f conftest2.*
  13910. if { { case "(($ac_try" in
  13911. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13912. *) ac_try_echo=$ac_try;;
  13913. esac
  13914. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  13915. $as_echo "$ac_try_echo"; } >&5
  13916. (eval "$ac_try") 2>&5
  13917. ac_status=$?
  13918. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  13919. test $ac_status = 0; } &&
  13920. test -f conftest2.$ac_objext && { { case "(($ac_try" in
  13921. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13922. *) ac_try_echo=$ac_try;;
  13923. esac
  13924. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  13925. $as_echo "$ac_try_echo"; } >&5
  13926. (eval "$ac_try") 2>&5
  13927. ac_status=$?
  13928. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  13929. test $ac_status = 0; };
  13930. then
  13931. eval ac_cv_prog_cc_${ac_cc}_c_o=yes
  13932. if test "x$CC" != xcc; then
  13933. # Test first that cc exists at all.
  13934. if { ac_try='cc -c conftest.$ac_ext >&5'
  13935. { { case "(($ac_try" in
  13936. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13937. *) ac_try_echo=$ac_try;;
  13938. esac
  13939. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  13940. $as_echo "$ac_try_echo"; } >&5
  13941. (eval "$ac_try") 2>&5
  13942. ac_status=$?
  13943. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  13944. test $ac_status = 0; }; }; then
  13945. ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
  13946. rm -f conftest2.*
  13947. if { { case "(($ac_try" in
  13948. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13949. *) ac_try_echo=$ac_try;;
  13950. esac
  13951. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  13952. $as_echo "$ac_try_echo"; } >&5
  13953. (eval "$ac_try") 2>&5
  13954. ac_status=$?
  13955. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  13956. test $ac_status = 0; } &&
  13957. test -f conftest2.$ac_objext && { { case "(($ac_try" in
  13958. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13959. *) ac_try_echo=$ac_try;;
  13960. esac
  13961. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  13962. $as_echo "$ac_try_echo"; } >&5
  13963. (eval "$ac_try") 2>&5
  13964. ac_status=$?
  13965. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  13966. test $ac_status = 0; };
  13967. then
  13968. # cc works too.
  13969. :
  13970. else
  13971. # cc exists but doesn't like -o.
  13972. eval ac_cv_prog_cc_${ac_cc}_c_o=no
  13973. fi
  13974. fi
  13975. fi
  13976. else
  13977. eval ac_cv_prog_cc_${ac_cc}_c_o=no
  13978. fi
  13979. rm -f core conftest*
  13980. fi
  13981. if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
  13982. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  13983. $as_echo "yes" >&6; }
  13984. else
  13985. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13986. $as_echo "no" >&6; }
  13987. $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
  13988. fi
  13989. # FIXME: we rely on the cache variable name because
  13990. # there is no other way.
  13991. set dummy $CC
  13992. am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
  13993. eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
  13994. if test "$am_t" != yes; then
  13995. # Losing compiler, so override with the script.
  13996. # FIXME: It is wrong to rewrite CC.
  13997. # But if we don't then we get into trouble of one sort or another.
  13998. # A longer-term fix would be to have automake use am__CC in this case,
  13999. # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
  14000. CC="$am_aux_dir/compile $CC"
  14001. fi
  14002. # needed to handle 64-bit architecture
  14003. # The cast to long int works around a bug in the HP C Compiler
  14004. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  14005. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  14006. # This bug is HP SR number 8606223364.
  14007. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
  14008. $as_echo_n "checking size of int... " >&6; }
  14009. if ${ac_cv_sizeof_int+:} false; then :
  14010. $as_echo_n "(cached) " >&6
  14011. else
  14012. if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
  14013. else
  14014. if test "$ac_cv_type_int" = yes; then
  14015. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  14016. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  14017. as_fn_error 77 "cannot compute sizeof (int)
  14018. See \`config.log' for more details" "$LINENO" 5; }
  14019. else
  14020. ac_cv_sizeof_int=0
  14021. fi
  14022. fi
  14023. fi
  14024. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
  14025. $as_echo "$ac_cv_sizeof_int" >&6; }
  14026. cat >>confdefs.h <<_ACEOF
  14027. #define SIZEOF_INT $ac_cv_sizeof_int
  14028. _ACEOF
  14029. # The cast to long int works around a bug in the HP C Compiler
  14030. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  14031. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  14032. # This bug is HP SR number 8606223364.
  14033. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
  14034. $as_echo_n "checking size of long... " >&6; }
  14035. if ${ac_cv_sizeof_long+:} false; then :
  14036. $as_echo_n "(cached) " >&6
  14037. else
  14038. if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
  14039. else
  14040. if test "$ac_cv_type_long" = yes; then
  14041. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  14042. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  14043. as_fn_error 77 "cannot compute sizeof (long)
  14044. See \`config.log' for more details" "$LINENO" 5; }
  14045. else
  14046. ac_cv_sizeof_long=0
  14047. fi
  14048. fi
  14049. fi
  14050. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
  14051. $as_echo "$ac_cv_sizeof_long" >&6; }
  14052. cat >>confdefs.h <<_ACEOF
  14053. #define SIZEOF_LONG $ac_cv_sizeof_long
  14054. _ACEOF
  14055. # The cast to long int works around a bug in the HP C Compiler
  14056. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  14057. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  14058. # This bug is HP SR number 8606223364.
  14059. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
  14060. $as_echo_n "checking size of size_t... " >&6; }
  14061. if ${ac_cv_sizeof_size_t+:} false; then :
  14062. $as_echo_n "(cached) " >&6
  14063. else
  14064. if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (size_t))" "ac_cv_sizeof_size_t" "$ac_includes_default"; then :
  14065. else
  14066. if test "$ac_cv_type_size_t" = yes; then
  14067. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  14068. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  14069. as_fn_error 77 "cannot compute sizeof (size_t)
  14070. See \`config.log' for more details" "$LINENO" 5; }
  14071. else
  14072. ac_cv_sizeof_size_t=0
  14073. fi
  14074. fi
  14075. fi
  14076. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
  14077. $as_echo "$ac_cv_sizeof_size_t" >&6; }
  14078. cat >>confdefs.h <<_ACEOF
  14079. #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
  14080. _ACEOF
  14081. #------------------------------------------------------------------------
  14082. # Handle the --prefix=... option
  14083. #------------------------------------------------------------------------
  14084. if test "${prefix}" = "NONE"; then
  14085. prefix=/usr/local
  14086. fi
  14087. if test "${exec_prefix}" = "NONE"; then
  14088. exec_prefix=$prefix
  14089. fi
  14090. # libdir must be a fully qualified path (not ${exec_prefix}/lib)
  14091. eval libdir="$libdir"
  14092. ################################
  14093. # Deal with debugging options
  14094. ################################
  14095. # Check whether --enable-debug was given.
  14096. if test "${enable_debug+set}" = set; then :
  14097. enableval=$enable_debug;
  14098. else
  14099. enable_debug=no
  14100. fi
  14101. if test x$enable_debug = xyes; then
  14102. DEBUG_TRUE=
  14103. DEBUG_FALSE='#'
  14104. else
  14105. DEBUG_TRUE='#'
  14106. DEBUG_FALSE=
  14107. fi
  14108. ################################
  14109. # Check for the LUB library
  14110. ################################
  14111. LUB_LIBS="-llub"
  14112. LUB_CFLAGS=""
  14113. if test "x$LUB_LIBS" = "x"; then
  14114. as_fn_error $? "Cannot find the \"Little Useful Bits\" library" "$LINENO" 5
  14115. fi
  14116. ################################
  14117. # Check for the KONF library
  14118. ################################
  14119. KONF_LIBS="-lkonf"
  14120. KONF_CFLAGS=""
  14121. if test "x$KONF_LIBS" = "x"; then
  14122. as_fn_error $? "Cannot find the \"CLI config\" library" "$LINENO" 5
  14123. fi
  14124. ################################
  14125. # Check for the TINYRL library
  14126. ################################
  14127. TINYRL_LIBS="-ltinyrl"
  14128. TINYRL_CFLAGS=""
  14129. if test "x$TINYRL_LIBS" = "x"; then
  14130. as_fn_error $? "Cannot find the \"Tiny Readline\" library" "$LINENO" 5
  14131. fi
  14132. ################################
  14133. # Check for the TINYXML library
  14134. ################################
  14135. TINYXML_LIBS="-ltinyxml"
  14136. TINYXML_CXXFLAGS="-std=gnu++98"
  14137. if test "x$TINYXML_LIBS" = "x"; then
  14138. as_fn_error $? "Cannot find the \"Tiny XML\" library" "$LINENO" 5
  14139. fi
  14140. ################################
  14141. # Search for network functions (like connect())
  14142. ################################
  14143. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
  14144. $as_echo_n "checking for library containing socket... " >&6; }
  14145. if ${ac_cv_search_socket+:} false; then :
  14146. $as_echo_n "(cached) " >&6
  14147. else
  14148. ac_func_search_save_LIBS=$LIBS
  14149. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14150. /* end confdefs.h. */
  14151. /* Override any GCC internal prototype to avoid an error.
  14152. Use char because int might match the return type of a GCC
  14153. builtin and then its argument prototype would still apply. */
  14154. #ifdef __cplusplus
  14155. extern "C"
  14156. #endif
  14157. char socket ();
  14158. int
  14159. main ()
  14160. {
  14161. return socket ();
  14162. ;
  14163. return 0;
  14164. }
  14165. _ACEOF
  14166. for ac_lib in '' socket; do
  14167. if test -z "$ac_lib"; then
  14168. ac_res="none required"
  14169. else
  14170. ac_res=-l$ac_lib
  14171. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  14172. fi
  14173. if ac_fn_c_try_link "$LINENO"; then :
  14174. ac_cv_search_socket=$ac_res
  14175. fi
  14176. rm -f core conftest.err conftest.$ac_objext \
  14177. conftest$ac_exeext
  14178. if ${ac_cv_search_socket+:} false; then :
  14179. break
  14180. fi
  14181. done
  14182. if ${ac_cv_search_socket+:} false; then :
  14183. else
  14184. ac_cv_search_socket=no
  14185. fi
  14186. rm conftest.$ac_ext
  14187. LIBS=$ac_func_search_save_LIBS
  14188. fi
  14189. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
  14190. $as_echo "$ac_cv_search_socket" >&6; }
  14191. ac_res=$ac_cv_search_socket
  14192. if test "$ac_res" != no; then :
  14193. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  14194. fi
  14195. ################################
  14196. # Check for regex.h
  14197. ################################
  14198. for ac_header in regex.h
  14199. do :
  14200. ac_fn_c_check_header_mongrel "$LINENO" "regex.h" "ac_cv_header_regex_h" "$ac_includes_default"
  14201. if test "x$ac_cv_header_regex_h" = xyes; then :
  14202. cat >>confdefs.h <<_ACEOF
  14203. #define HAVE_REGEX_H 1
  14204. _ACEOF
  14205. else
  14206. as_fn_error $? "regex.h not found: regular expressions are not supported" "$LINENO" 5
  14207. fi
  14208. done
  14209. ################################
  14210. # Check for getopt_long()
  14211. ################################
  14212. for ac_header in getopt.h
  14213. do :
  14214. ac_fn_c_check_header_mongrel "$LINENO" "getopt.h" "ac_cv_header_getopt_h" "$ac_includes_default"
  14215. if test "x$ac_cv_header_getopt_h" = xyes; then :
  14216. cat >>confdefs.h <<_ACEOF
  14217. #define HAVE_GETOPT_H 1
  14218. _ACEOF
  14219. else
  14220. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: getopt.h not found: only short parameters can be used on command line" >&5
  14221. $as_echo "$as_me: WARNING: getopt.h not found: only short parameters can be used on command line" >&2;}
  14222. fi
  14223. done
  14224. ################################
  14225. # Check for locale.h
  14226. ################################
  14227. for ac_header in locale.h
  14228. do :
  14229. ac_fn_c_check_header_mongrel "$LINENO" "locale.h" "ac_cv_header_locale_h" "$ac_includes_default"
  14230. if test "x$ac_cv_header_locale_h" = xyes; then :
  14231. cat >>confdefs.h <<_ACEOF
  14232. #define HAVE_LOCALE_H 1
  14233. _ACEOF
  14234. else
  14235. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: locale.h not found: the locales is not supported" >&5
  14236. $as_echo "$as_me: WARNING: locale.h not found: the locales is not supported" >&2;}
  14237. fi
  14238. done
  14239. ################################
  14240. # Check for CODESET within nl_langinfo
  14241. ################################
  14242. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
  14243. $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
  14244. if ${am_cv_langinfo_codeset+:} false; then :
  14245. $as_echo_n "(cached) " >&6
  14246. else
  14247. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14248. /* end confdefs.h. */
  14249. #include <langinfo.h>
  14250. int
  14251. main ()
  14252. {
  14253. char* cs = nl_langinfo(CODESET); return !cs;
  14254. ;
  14255. return 0;
  14256. }
  14257. _ACEOF
  14258. if ac_fn_c_try_link "$LINENO"; then :
  14259. am_cv_langinfo_codeset=yes
  14260. else
  14261. am_cv_langinfo_codeset=no
  14262. fi
  14263. rm -f core conftest.err conftest.$ac_objext \
  14264. conftest$ac_exeext conftest.$ac_ext
  14265. fi
  14266. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
  14267. $as_echo "$am_cv_langinfo_codeset" >&6; }
  14268. if test $am_cv_langinfo_codeset = yes; then
  14269. $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
  14270. fi
  14271. ################################
  14272. # Check for pwd.h and grp.h
  14273. ################################
  14274. for ac_header in pwd.h
  14275. do :
  14276. ac_fn_c_check_header_mongrel "$LINENO" "pwd.h" "ac_cv_header_pwd_h" "$ac_includes_default"
  14277. if test "x$ac_cv_header_pwd_h" = xyes; then :
  14278. cat >>confdefs.h <<_ACEOF
  14279. #define HAVE_PWD_H 1
  14280. _ACEOF
  14281. else
  14282. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: pwd.h not found: the pwd operations is not supported" >&5
  14283. $as_echo "$as_me: WARNING: pwd.h not found: the pwd operations is not supported" >&2;}
  14284. fi
  14285. done
  14286. for ac_header in grp.h
  14287. do :
  14288. ac_fn_c_check_header_mongrel "$LINENO" "grp.h" "ac_cv_header_grp_h" "$ac_includes_default"
  14289. if test "x$ac_cv_header_grp_h" = xyes; then :
  14290. cat >>confdefs.h <<_ACEOF
  14291. #define HAVE_GRP_H 1
  14292. _ACEOF
  14293. else
  14294. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: grp.h not found: the grp operations is not supported" >&5
  14295. $as_echo "$as_me: WARNING: grp.h not found: the grp operations is not supported" >&2;}
  14296. fi
  14297. done
  14298. ################################
  14299. # Check for chroot
  14300. ################################
  14301. for ac_func in chroot
  14302. do :
  14303. ac_fn_c_check_func "$LINENO" "chroot" "ac_cv_func_chroot"
  14304. if test "x$ac_cv_func_chroot" = xyes; then :
  14305. cat >>confdefs.h <<_ACEOF
  14306. #define HAVE_CHROOT 1
  14307. _ACEOF
  14308. else
  14309. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: chroot() not found: the choot is not supported" >&5
  14310. $as_echo "$as_me: WARNING: chroot() not found: the choot is not supported" >&2;}
  14311. fi
  14312. done
  14313. ac_config_files="$ac_config_files Makefile"
  14314. cat >confcache <<\_ACEOF
  14315. # This file is a shell script that caches the results of configure
  14316. # tests run on this system so they can be shared between configure
  14317. # scripts and configure runs, see configure's option --config-cache.
  14318. # It is not useful on other systems. If it contains results you don't
  14319. # want to keep, you may remove or edit it.
  14320. #
  14321. # config.status only pays attention to the cache file if you give it
  14322. # the --recheck option to rerun configure.
  14323. #
  14324. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  14325. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  14326. # following values.
  14327. _ACEOF
  14328. # The following way of writing the cache mishandles newlines in values,
  14329. # but we know of no workaround that is simple, portable, and efficient.
  14330. # So, we kill variables containing newlines.
  14331. # Ultrix sh set writes to stderr and can't be redirected directly,
  14332. # and sets the high bit in the cache file unless we assign to the vars.
  14333. (
  14334. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  14335. eval ac_val=\$$ac_var
  14336. case $ac_val in #(
  14337. *${as_nl}*)
  14338. case $ac_var in #(
  14339. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  14340. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  14341. esac
  14342. case $ac_var in #(
  14343. _ | IFS | as_nl) ;; #(
  14344. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  14345. *) { eval $ac_var=; unset $ac_var;} ;;
  14346. esac ;;
  14347. esac
  14348. done
  14349. (set) 2>&1 |
  14350. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  14351. *${as_nl}ac_space=\ *)
  14352. # `set' does not quote correctly, so add quotes: double-quote
  14353. # substitution turns \\\\ into \\, and sed turns \\ into \.
  14354. sed -n \
  14355. "s/'/'\\\\''/g;
  14356. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  14357. ;; #(
  14358. *)
  14359. # `set' quotes correctly as required by POSIX, so do not add quotes.
  14360. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  14361. ;;
  14362. esac |
  14363. sort
  14364. ) |
  14365. sed '
  14366. /^ac_cv_env_/b end
  14367. t clear
  14368. :clear
  14369. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  14370. t end
  14371. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  14372. :end' >>confcache
  14373. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  14374. if test -w "$cache_file"; then
  14375. if test "x$cache_file" != "x/dev/null"; then
  14376. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  14377. $as_echo "$as_me: updating cache $cache_file" >&6;}
  14378. if test ! -f "$cache_file" || test -h "$cache_file"; then
  14379. cat confcache >"$cache_file"
  14380. else
  14381. case $cache_file in #(
  14382. */* | ?:*)
  14383. mv -f confcache "$cache_file"$$ &&
  14384. mv -f "$cache_file"$$ "$cache_file" ;; #(
  14385. *)
  14386. mv -f confcache "$cache_file" ;;
  14387. esac
  14388. fi
  14389. fi
  14390. else
  14391. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  14392. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  14393. fi
  14394. fi
  14395. rm -f confcache
  14396. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  14397. # Let make expand exec_prefix.
  14398. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  14399. DEFS=-DHAVE_CONFIG_H
  14400. ac_libobjs=
  14401. ac_ltlibobjs=
  14402. U=
  14403. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  14404. # 1. Remove the extension, and $U if already installed.
  14405. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  14406. ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  14407. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  14408. # will be set to the directory where LIBOBJS objects are built.
  14409. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  14410. as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  14411. done
  14412. LIBOBJS=$ac_libobjs
  14413. LTLIBOBJS=$ac_ltlibobjs
  14414. if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
  14415. as_fn_error $? "conditional \"AMDEP\" was never defined.
  14416. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  14417. fi
  14418. if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  14419. as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
  14420. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  14421. fi
  14422. if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
  14423. as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
  14424. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  14425. fi
  14426. if test -n "$EXEEXT"; then
  14427. am__EXEEXT_TRUE=
  14428. am__EXEEXT_FALSE='#'
  14429. else
  14430. am__EXEEXT_TRUE='#'
  14431. am__EXEEXT_FALSE=
  14432. fi
  14433. if test -z "${DEBUG_TRUE}" && test -z "${DEBUG_FALSE}"; then
  14434. as_fn_error $? "conditional \"DEBUG\" was never defined.
  14435. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  14436. fi
  14437. : "${CONFIG_STATUS=./config.status}"
  14438. ac_write_fail=0
  14439. ac_clean_files_save=$ac_clean_files
  14440. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  14441. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  14442. $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  14443. as_write_fail=0
  14444. cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  14445. #! $SHELL
  14446. # Generated by $as_me.
  14447. # Run this file to recreate the current configuration.
  14448. # Compiler output produced by configure, useful for debugging
  14449. # configure, is in config.log if it exists.
  14450. debug=false
  14451. ac_cs_recheck=false
  14452. ac_cs_silent=false
  14453. SHELL=\${CONFIG_SHELL-$SHELL}
  14454. export SHELL
  14455. _ASEOF
  14456. cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  14457. ## -------------------- ##
  14458. ## M4sh Initialization. ##
  14459. ## -------------------- ##
  14460. # Be more Bourne compatible
  14461. DUALCASE=1; export DUALCASE # for MKS sh
  14462. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  14463. emulate sh
  14464. NULLCMD=:
  14465. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  14466. # is contrary to our usage. Disable this feature.
  14467. alias -g '${1+"$@"}'='"$@"'
  14468. setopt NO_GLOB_SUBST
  14469. else
  14470. case `(set -o) 2>/dev/null` in #(
  14471. *posix*) :
  14472. set -o posix ;; #(
  14473. *) :
  14474. ;;
  14475. esac
  14476. fi
  14477. as_nl='
  14478. '
  14479. export as_nl
  14480. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  14481. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  14482. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  14483. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  14484. # Prefer a ksh shell builtin over an external printf program on Solaris,
  14485. # but without wasting forks for bash or zsh.
  14486. if test -z "$BASH_VERSION$ZSH_VERSION" \
  14487. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  14488. as_echo='print -r --'
  14489. as_echo_n='print -rn --'
  14490. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  14491. as_echo='printf %s\n'
  14492. as_echo_n='printf %s'
  14493. else
  14494. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  14495. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  14496. as_echo_n='/usr/ucb/echo -n'
  14497. else
  14498. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  14499. as_echo_n_body='eval
  14500. arg=$1;
  14501. case $arg in #(
  14502. *"$as_nl"*)
  14503. expr "X$arg" : "X\\(.*\\)$as_nl";
  14504. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  14505. esac;
  14506. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  14507. '
  14508. export as_echo_n_body
  14509. as_echo_n='sh -c $as_echo_n_body as_echo'
  14510. fi
  14511. export as_echo_body
  14512. as_echo='sh -c $as_echo_body as_echo'
  14513. fi
  14514. # The user is always right.
  14515. if test "${PATH_SEPARATOR+set}" != set; then
  14516. PATH_SEPARATOR=:
  14517. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  14518. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  14519. PATH_SEPARATOR=';'
  14520. }
  14521. fi
  14522. # IFS
  14523. # We need space, tab and new line, in precisely that order. Quoting is
  14524. # there to prevent editors from complaining about space-tab.
  14525. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  14526. # splitting by setting IFS to empty value.)
  14527. IFS=" "" $as_nl"
  14528. # Find who we are. Look in the path if we contain no directory separator.
  14529. as_myself=
  14530. case $0 in #((
  14531. *[\\/]* ) as_myself=$0 ;;
  14532. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  14533. for as_dir in $PATH
  14534. do
  14535. IFS=$as_save_IFS
  14536. test -z "$as_dir" && as_dir=.
  14537. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  14538. done
  14539. IFS=$as_save_IFS
  14540. ;;
  14541. esac
  14542. # We did not find ourselves, most probably we were run as `sh COMMAND'
  14543. # in which case we are not to be found in the path.
  14544. if test "x$as_myself" = x; then
  14545. as_myself=$0
  14546. fi
  14547. if test ! -f "$as_myself"; then
  14548. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  14549. exit 1
  14550. fi
  14551. # Unset variables that we do not need and which cause bugs (e.g. in
  14552. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  14553. # suppresses any "Segmentation fault" message there. '((' could
  14554. # trigger a bug in pdksh 5.2.14.
  14555. for as_var in BASH_ENV ENV MAIL MAILPATH
  14556. do eval test x\${$as_var+set} = xset \
  14557. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  14558. done
  14559. PS1='$ '
  14560. PS2='> '
  14561. PS4='+ '
  14562. # NLS nuisances.
  14563. LC_ALL=C
  14564. export LC_ALL
  14565. LANGUAGE=C
  14566. export LANGUAGE
  14567. # CDPATH.
  14568. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  14569. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  14570. # ----------------------------------------
  14571. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  14572. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  14573. # script with STATUS, using 1 if that was 0.
  14574. as_fn_error ()
  14575. {
  14576. as_status=$1; test $as_status -eq 0 && as_status=1
  14577. if test "$4"; then
  14578. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  14579. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  14580. fi
  14581. $as_echo "$as_me: error: $2" >&2
  14582. as_fn_exit $as_status
  14583. } # as_fn_error
  14584. # as_fn_set_status STATUS
  14585. # -----------------------
  14586. # Set $? to STATUS, without forking.
  14587. as_fn_set_status ()
  14588. {
  14589. return $1
  14590. } # as_fn_set_status
  14591. # as_fn_exit STATUS
  14592. # -----------------
  14593. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  14594. as_fn_exit ()
  14595. {
  14596. set +e
  14597. as_fn_set_status $1
  14598. exit $1
  14599. } # as_fn_exit
  14600. # as_fn_unset VAR
  14601. # ---------------
  14602. # Portably unset VAR.
  14603. as_fn_unset ()
  14604. {
  14605. { eval $1=; unset $1;}
  14606. }
  14607. as_unset=as_fn_unset
  14608. # as_fn_append VAR VALUE
  14609. # ----------------------
  14610. # Append the text in VALUE to the end of the definition contained in VAR. Take
  14611. # advantage of any shell optimizations that allow amortized linear growth over
  14612. # repeated appends, instead of the typical quadratic growth present in naive
  14613. # implementations.
  14614. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  14615. eval 'as_fn_append ()
  14616. {
  14617. eval $1+=\$2
  14618. }'
  14619. else
  14620. as_fn_append ()
  14621. {
  14622. eval $1=\$$1\$2
  14623. }
  14624. fi # as_fn_append
  14625. # as_fn_arith ARG...
  14626. # ------------------
  14627. # Perform arithmetic evaluation on the ARGs, and store the result in the
  14628. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  14629. # must be portable across $(()) and expr.
  14630. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  14631. eval 'as_fn_arith ()
  14632. {
  14633. as_val=$(( $* ))
  14634. }'
  14635. else
  14636. as_fn_arith ()
  14637. {
  14638. as_val=`expr "$@" || test $? -eq 1`
  14639. }
  14640. fi # as_fn_arith
  14641. if expr a : '\(a\)' >/dev/null 2>&1 &&
  14642. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  14643. as_expr=expr
  14644. else
  14645. as_expr=false
  14646. fi
  14647. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  14648. as_basename=basename
  14649. else
  14650. as_basename=false
  14651. fi
  14652. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  14653. as_dirname=dirname
  14654. else
  14655. as_dirname=false
  14656. fi
  14657. as_me=`$as_basename -- "$0" ||
  14658. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  14659. X"$0" : 'X\(//\)$' \| \
  14660. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  14661. $as_echo X/"$0" |
  14662. sed '/^.*\/\([^/][^/]*\)\/*$/{
  14663. s//\1/
  14664. q
  14665. }
  14666. /^X\/\(\/\/\)$/{
  14667. s//\1/
  14668. q
  14669. }
  14670. /^X\/\(\/\).*/{
  14671. s//\1/
  14672. q
  14673. }
  14674. s/.*/./; q'`
  14675. # Avoid depending upon Character Ranges.
  14676. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  14677. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  14678. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  14679. as_cr_digits='0123456789'
  14680. as_cr_alnum=$as_cr_Letters$as_cr_digits
  14681. ECHO_C= ECHO_N= ECHO_T=
  14682. case `echo -n x` in #(((((
  14683. -n*)
  14684. case `echo 'xy\c'` in
  14685. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  14686. xy) ECHO_C='\c';;
  14687. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  14688. ECHO_T=' ';;
  14689. esac;;
  14690. *)
  14691. ECHO_N='-n';;
  14692. esac
  14693. rm -f conf$$ conf$$.exe conf$$.file
  14694. if test -d conf$$.dir; then
  14695. rm -f conf$$.dir/conf$$.file
  14696. else
  14697. rm -f conf$$.dir
  14698. mkdir conf$$.dir 2>/dev/null
  14699. fi
  14700. if (echo >conf$$.file) 2>/dev/null; then
  14701. if ln -s conf$$.file conf$$ 2>/dev/null; then
  14702. as_ln_s='ln -s'
  14703. # ... but there are two gotchas:
  14704. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  14705. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  14706. # In both cases, we have to default to `cp -p'.
  14707. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  14708. as_ln_s='cp -p'
  14709. elif ln conf$$.file conf$$ 2>/dev/null; then
  14710. as_ln_s=ln
  14711. else
  14712. as_ln_s='cp -p'
  14713. fi
  14714. else
  14715. as_ln_s='cp -p'
  14716. fi
  14717. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  14718. rmdir conf$$.dir 2>/dev/null
  14719. # as_fn_mkdir_p
  14720. # -------------
  14721. # Create "$as_dir" as a directory, including parents if necessary.
  14722. as_fn_mkdir_p ()
  14723. {
  14724. case $as_dir in #(
  14725. -*) as_dir=./$as_dir;;
  14726. esac
  14727. test -d "$as_dir" || eval $as_mkdir_p || {
  14728. as_dirs=
  14729. while :; do
  14730. case $as_dir in #(
  14731. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  14732. *) as_qdir=$as_dir;;
  14733. esac
  14734. as_dirs="'$as_qdir' $as_dirs"
  14735. as_dir=`$as_dirname -- "$as_dir" ||
  14736. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  14737. X"$as_dir" : 'X\(//\)[^/]' \| \
  14738. X"$as_dir" : 'X\(//\)$' \| \
  14739. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  14740. $as_echo X"$as_dir" |
  14741. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  14742. s//\1/
  14743. q
  14744. }
  14745. /^X\(\/\/\)[^/].*/{
  14746. s//\1/
  14747. q
  14748. }
  14749. /^X\(\/\/\)$/{
  14750. s//\1/
  14751. q
  14752. }
  14753. /^X\(\/\).*/{
  14754. s//\1/
  14755. q
  14756. }
  14757. s/.*/./; q'`
  14758. test -d "$as_dir" && break
  14759. done
  14760. test -z "$as_dirs" || eval "mkdir $as_dirs"
  14761. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  14762. } # as_fn_mkdir_p
  14763. if mkdir -p . 2>/dev/null; then
  14764. as_mkdir_p='mkdir -p "$as_dir"'
  14765. else
  14766. test -d ./-p && rmdir ./-p
  14767. as_mkdir_p=false
  14768. fi
  14769. if test -x / >/dev/null 2>&1; then
  14770. as_test_x='test -x'
  14771. else
  14772. if ls -dL / >/dev/null 2>&1; then
  14773. as_ls_L_option=L
  14774. else
  14775. as_ls_L_option=
  14776. fi
  14777. as_test_x='
  14778. eval sh -c '\''
  14779. if test -d "$1"; then
  14780. test -d "$1/.";
  14781. else
  14782. case $1 in #(
  14783. -*)set "./$1";;
  14784. esac;
  14785. case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
  14786. ???[sx]*):;;*)false;;esac;fi
  14787. '\'' sh
  14788. '
  14789. fi
  14790. as_executable_p=$as_test_x
  14791. # Sed expression to map a string onto a valid CPP name.
  14792. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  14793. # Sed expression to map a string onto a valid variable name.
  14794. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  14795. exec 6>&1
  14796. ## ----------------------------------- ##
  14797. ## Main body of $CONFIG_STATUS script. ##
  14798. ## ----------------------------------- ##
  14799. _ASEOF
  14800. test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  14801. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14802. # Save the log message, to keep $0 and so on meaningful, and to
  14803. # report actual input values of CONFIG_FILES etc. instead of their
  14804. # values after options handling.
  14805. ac_log="
  14806. This file was extended by klish $as_me 1.5.7, which was
  14807. generated by GNU Autoconf 2.68. Invocation command line was
  14808. CONFIG_FILES = $CONFIG_FILES
  14809. CONFIG_HEADERS = $CONFIG_HEADERS
  14810. CONFIG_LINKS = $CONFIG_LINKS
  14811. CONFIG_COMMANDS = $CONFIG_COMMANDS
  14812. $ $0 $@
  14813. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  14814. "
  14815. _ACEOF
  14816. case $ac_config_files in *"
  14817. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  14818. esac
  14819. case $ac_config_headers in *"
  14820. "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
  14821. esac
  14822. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  14823. # Files that config.status was made for.
  14824. config_files="$ac_config_files"
  14825. config_headers="$ac_config_headers"
  14826. config_commands="$ac_config_commands"
  14827. _ACEOF
  14828. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14829. ac_cs_usage="\
  14830. \`$as_me' instantiates files and other configuration actions
  14831. from templates according to the current configuration. Unless the files
  14832. and actions are specified as TAGs, all are instantiated by default.
  14833. Usage: $0 [OPTION]... [TAG]...
  14834. -h, --help print this help, then exit
  14835. -V, --version print version number and configuration settings, then exit
  14836. --config print configuration, then exit
  14837. -q, --quiet, --silent
  14838. do not print progress messages
  14839. -d, --debug don't remove temporary files
  14840. --recheck update $as_me by reconfiguring in the same conditions
  14841. --file=FILE[:TEMPLATE]
  14842. instantiate the configuration file FILE
  14843. --header=FILE[:TEMPLATE]
  14844. instantiate the configuration header FILE
  14845. Configuration files:
  14846. $config_files
  14847. Configuration headers:
  14848. $config_headers
  14849. Configuration commands:
  14850. $config_commands
  14851. Report bugs to <serj.kalichev at gmail dot com>."
  14852. _ACEOF
  14853. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  14854. ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
  14855. ac_cs_version="\\
  14856. klish config.status 1.5.7
  14857. configured by $0, generated by GNU Autoconf 2.68,
  14858. with options \\"\$ac_cs_config\\"
  14859. Copyright (C) 2010 Free Software Foundation, Inc.
  14860. This config.status script is free software; the Free Software Foundation
  14861. gives unlimited permission to copy, distribute and modify it."
  14862. ac_pwd='$ac_pwd'
  14863. srcdir='$srcdir'
  14864. INSTALL='$INSTALL'
  14865. MKDIR_P='$MKDIR_P'
  14866. AWK='$AWK'
  14867. test -n "\$AWK" || AWK=awk
  14868. _ACEOF
  14869. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14870. # The default lists apply if the user does not specify any file.
  14871. ac_need_defaults=:
  14872. while test $# != 0
  14873. do
  14874. case $1 in
  14875. --*=?*)
  14876. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  14877. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  14878. ac_shift=:
  14879. ;;
  14880. --*=)
  14881. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  14882. ac_optarg=
  14883. ac_shift=:
  14884. ;;
  14885. *)
  14886. ac_option=$1
  14887. ac_optarg=$2
  14888. ac_shift=shift
  14889. ;;
  14890. esac
  14891. case $ac_option in
  14892. # Handling of the options.
  14893. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  14894. ac_cs_recheck=: ;;
  14895. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  14896. $as_echo "$ac_cs_version"; exit ;;
  14897. --config | --confi | --conf | --con | --co | --c )
  14898. $as_echo "$ac_cs_config"; exit ;;
  14899. --debug | --debu | --deb | --de | --d | -d )
  14900. debug=: ;;
  14901. --file | --fil | --fi | --f )
  14902. $ac_shift
  14903. case $ac_optarg in
  14904. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  14905. '') as_fn_error $? "missing file argument" ;;
  14906. esac
  14907. as_fn_append CONFIG_FILES " '$ac_optarg'"
  14908. ac_need_defaults=false;;
  14909. --header | --heade | --head | --hea )
  14910. $ac_shift
  14911. case $ac_optarg in
  14912. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  14913. esac
  14914. as_fn_append CONFIG_HEADERS " '$ac_optarg'"
  14915. ac_need_defaults=false;;
  14916. --he | --h)
  14917. # Conflict between --help and --header
  14918. as_fn_error $? "ambiguous option: \`$1'
  14919. Try \`$0 --help' for more information.";;
  14920. --help | --hel | -h )
  14921. $as_echo "$ac_cs_usage"; exit ;;
  14922. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  14923. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  14924. ac_cs_silent=: ;;
  14925. # This is an error.
  14926. -*) as_fn_error $? "unrecognized option: \`$1'
  14927. Try \`$0 --help' for more information." ;;
  14928. *) as_fn_append ac_config_targets " $1"
  14929. ac_need_defaults=false ;;
  14930. esac
  14931. shift
  14932. done
  14933. ac_configure_extra_args=
  14934. if $ac_cs_silent; then
  14935. exec 6>/dev/null
  14936. ac_configure_extra_args="$ac_configure_extra_args --silent"
  14937. fi
  14938. _ACEOF
  14939. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  14940. if \$ac_cs_recheck; then
  14941. set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  14942. shift
  14943. \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  14944. CONFIG_SHELL='$SHELL'
  14945. export CONFIG_SHELL
  14946. exec "\$@"
  14947. fi
  14948. _ACEOF
  14949. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14950. exec 5>>config.log
  14951. {
  14952. echo
  14953. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  14954. ## Running $as_me. ##
  14955. _ASBOX
  14956. $as_echo "$ac_log"
  14957. } >&5
  14958. _ACEOF
  14959. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  14960. #
  14961. # INIT-COMMANDS
  14962. #
  14963. # The HP-UX ksh and POSIX shell print the target directory to stdout
  14964. # if CDPATH is set.
  14965. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  14966. sed_quote_subst='$sed_quote_subst'
  14967. double_quote_subst='$double_quote_subst'
  14968. delay_variable_subst='$delay_variable_subst'
  14969. AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
  14970. DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
  14971. OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
  14972. macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
  14973. macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
  14974. enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
  14975. enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
  14976. pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
  14977. enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
  14978. SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
  14979. ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
  14980. PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
  14981. host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
  14982. host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
  14983. host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
  14984. build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
  14985. build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
  14986. build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
  14987. SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
  14988. Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
  14989. GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
  14990. EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
  14991. FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
  14992. LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
  14993. NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
  14994. LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
  14995. max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
  14996. ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
  14997. exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
  14998. lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
  14999. lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
  15000. lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
  15001. lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
  15002. lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
  15003. reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
  15004. reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
  15005. deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
  15006. file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
  15007. file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
  15008. want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
  15009. sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
  15010. AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
  15011. AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
  15012. archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
  15013. STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
  15014. RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
  15015. old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  15016. old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  15017. old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
  15018. lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
  15019. CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
  15020. CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
  15021. compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
  15022. GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
  15023. lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
  15024. lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
  15025. lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
  15026. 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"`'
  15027. nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
  15028. lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
  15029. objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
  15030. MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
  15031. lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
  15032. lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
  15033. lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
  15034. lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
  15035. lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
  15036. need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
  15037. MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
  15038. DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
  15039. NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
  15040. LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
  15041. OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
  15042. OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
  15043. libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
  15044. shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
  15045. extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  15046. archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
  15047. enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
  15048. export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
  15049. whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
  15050. compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
  15051. old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
  15052. old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  15053. archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
  15054. archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  15055. module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
  15056. module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  15057. with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
  15058. allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
  15059. no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
  15060. hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
  15061. hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
  15062. hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
  15063. hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
  15064. hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
  15065. hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
  15066. hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
  15067. inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
  15068. link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
  15069. always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
  15070. export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
  15071. exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
  15072. include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
  15073. prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
  15074. postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
  15075. file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
  15076. variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
  15077. need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
  15078. need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
  15079. version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
  15080. runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
  15081. shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
  15082. shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
  15083. libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
  15084. library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
  15085. soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
  15086. install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
  15087. postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  15088. postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  15089. finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
  15090. finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
  15091. hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
  15092. sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
  15093. sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
  15094. hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
  15095. enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
  15096. enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
  15097. enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
  15098. old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
  15099. striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
  15100. compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
  15101. predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
  15102. postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
  15103. predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
  15104. postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
  15105. compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
  15106. LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
  15107. reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
  15108. reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  15109. old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  15110. compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
  15111. GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
  15112. lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
  15113. lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
  15114. lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
  15115. lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
  15116. lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
  15117. archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
  15118. enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
  15119. export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  15120. whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  15121. compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
  15122. old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  15123. old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  15124. archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  15125. archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  15126. module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  15127. module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  15128. with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
  15129. allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
  15130. no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
  15131. hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  15132. hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
  15133. hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
  15134. hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
  15135. hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
  15136. hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
  15137. hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
  15138. inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
  15139. link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
  15140. always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
  15141. export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  15142. exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
  15143. include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
  15144. prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  15145. postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  15146. file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
  15147. hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
  15148. compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
  15149. predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
  15150. postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
  15151. predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
  15152. postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
  15153. compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
  15154. LTCC='$LTCC'
  15155. LTCFLAGS='$LTCFLAGS'
  15156. compiler='$compiler_DEFAULT'
  15157. # A function that is used when there is no print builtin or printf.
  15158. func_fallback_echo ()
  15159. {
  15160. eval 'cat <<_LTECHO_EOF
  15161. \$1
  15162. _LTECHO_EOF'
  15163. }
  15164. # Quote evaled strings.
  15165. for var in AS \
  15166. DLLTOOL \
  15167. OBJDUMP \
  15168. SHELL \
  15169. ECHO \
  15170. PATH_SEPARATOR \
  15171. SED \
  15172. GREP \
  15173. EGREP \
  15174. FGREP \
  15175. LD \
  15176. NM \
  15177. LN_S \
  15178. lt_SP2NL \
  15179. lt_NL2SP \
  15180. reload_flag \
  15181. deplibs_check_method \
  15182. file_magic_cmd \
  15183. file_magic_glob \
  15184. want_nocaseglob \
  15185. sharedlib_from_linklib_cmd \
  15186. AR \
  15187. AR_FLAGS \
  15188. archiver_list_spec \
  15189. STRIP \
  15190. RANLIB \
  15191. CC \
  15192. CFLAGS \
  15193. compiler \
  15194. lt_cv_sys_global_symbol_pipe \
  15195. lt_cv_sys_global_symbol_to_cdecl \
  15196. lt_cv_sys_global_symbol_to_c_name_address \
  15197. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
  15198. nm_file_list_spec \
  15199. lt_prog_compiler_no_builtin_flag \
  15200. lt_prog_compiler_pic \
  15201. lt_prog_compiler_wl \
  15202. lt_prog_compiler_static \
  15203. lt_cv_prog_compiler_c_o \
  15204. need_locks \
  15205. MANIFEST_TOOL \
  15206. DSYMUTIL \
  15207. NMEDIT \
  15208. LIPO \
  15209. OTOOL \
  15210. OTOOL64 \
  15211. shrext_cmds \
  15212. export_dynamic_flag_spec \
  15213. whole_archive_flag_spec \
  15214. compiler_needs_object \
  15215. with_gnu_ld \
  15216. allow_undefined_flag \
  15217. no_undefined_flag \
  15218. hardcode_libdir_flag_spec \
  15219. hardcode_libdir_separator \
  15220. exclude_expsyms \
  15221. include_expsyms \
  15222. file_list_spec \
  15223. variables_saved_for_relink \
  15224. libname_spec \
  15225. library_names_spec \
  15226. soname_spec \
  15227. install_override_mode \
  15228. finish_eval \
  15229. old_striplib \
  15230. striplib \
  15231. compiler_lib_search_dirs \
  15232. predep_objects \
  15233. postdep_objects \
  15234. predeps \
  15235. postdeps \
  15236. compiler_lib_search_path \
  15237. LD_CXX \
  15238. reload_flag_CXX \
  15239. compiler_CXX \
  15240. lt_prog_compiler_no_builtin_flag_CXX \
  15241. lt_prog_compiler_pic_CXX \
  15242. lt_prog_compiler_wl_CXX \
  15243. lt_prog_compiler_static_CXX \
  15244. lt_cv_prog_compiler_c_o_CXX \
  15245. export_dynamic_flag_spec_CXX \
  15246. whole_archive_flag_spec_CXX \
  15247. compiler_needs_object_CXX \
  15248. with_gnu_ld_CXX \
  15249. allow_undefined_flag_CXX \
  15250. no_undefined_flag_CXX \
  15251. hardcode_libdir_flag_spec_CXX \
  15252. hardcode_libdir_separator_CXX \
  15253. exclude_expsyms_CXX \
  15254. include_expsyms_CXX \
  15255. file_list_spec_CXX \
  15256. compiler_lib_search_dirs_CXX \
  15257. predep_objects_CXX \
  15258. postdep_objects_CXX \
  15259. predeps_CXX \
  15260. postdeps_CXX \
  15261. compiler_lib_search_path_CXX; do
  15262. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  15263. *[\\\\\\\`\\"\\\$]*)
  15264. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
  15265. ;;
  15266. *)
  15267. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  15268. ;;
  15269. esac
  15270. done
  15271. # Double-quote double-evaled strings.
  15272. for var in reload_cmds \
  15273. old_postinstall_cmds \
  15274. old_postuninstall_cmds \
  15275. old_archive_cmds \
  15276. extract_expsyms_cmds \
  15277. old_archive_from_new_cmds \
  15278. old_archive_from_expsyms_cmds \
  15279. archive_cmds \
  15280. archive_expsym_cmds \
  15281. module_cmds \
  15282. module_expsym_cmds \
  15283. export_symbols_cmds \
  15284. prelink_cmds \
  15285. postlink_cmds \
  15286. postinstall_cmds \
  15287. postuninstall_cmds \
  15288. finish_cmds \
  15289. sys_lib_search_path_spec \
  15290. sys_lib_dlsearch_path_spec \
  15291. reload_cmds_CXX \
  15292. old_archive_cmds_CXX \
  15293. old_archive_from_new_cmds_CXX \
  15294. old_archive_from_expsyms_cmds_CXX \
  15295. archive_cmds_CXX \
  15296. archive_expsym_cmds_CXX \
  15297. module_cmds_CXX \
  15298. module_expsym_cmds_CXX \
  15299. export_symbols_cmds_CXX \
  15300. prelink_cmds_CXX \
  15301. postlink_cmds_CXX; do
  15302. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  15303. *[\\\\\\\`\\"\\\$]*)
  15304. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
  15305. ;;
  15306. *)
  15307. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  15308. ;;
  15309. esac
  15310. done
  15311. ac_aux_dir='$ac_aux_dir'
  15312. xsi_shell='$xsi_shell'
  15313. lt_shell_append='$lt_shell_append'
  15314. # See if we are running on zsh, and set the options which allow our
  15315. # commands through without removal of \ escapes INIT.
  15316. if test -n "\${ZSH_VERSION+set}" ; then
  15317. setopt NO_GLOB_SUBST
  15318. fi
  15319. PACKAGE='$PACKAGE'
  15320. VERSION='$VERSION'
  15321. TIMESTAMP='$TIMESTAMP'
  15322. RM='$RM'
  15323. ofile='$ofile'
  15324. AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
  15325. _ACEOF
  15326. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  15327. # Handling of arguments.
  15328. for ac_config_target in $ac_config_targets
  15329. do
  15330. case $ac_config_target in
  15331. "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
  15332. "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
  15333. "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
  15334. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  15335. *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  15336. esac
  15337. done
  15338. # If the user did not use the arguments to specify the items to instantiate,
  15339. # then the envvar interface is used. Set only those that are not.
  15340. # We use the long form for the default assignment because of an extremely
  15341. # bizarre bug on SunOS 4.1.3.
  15342. if $ac_need_defaults; then
  15343. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  15344. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  15345. test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  15346. fi
  15347. # Have a temporary directory for convenience. Make it in the build tree
  15348. # simply because there is no reason against having it here, and in addition,
  15349. # creating and moving files from /tmp can sometimes cause problems.
  15350. # Hook for its removal unless debugging.
  15351. # Note that there is a small window in which the directory will not be cleaned:
  15352. # after its creation but before its name has been assigned to `$tmp'.
  15353. $debug ||
  15354. {
  15355. tmp= ac_tmp=
  15356. trap 'exit_status=$?
  15357. : "${ac_tmp:=$tmp}"
  15358. { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
  15359. ' 0
  15360. trap 'as_fn_exit 1' 1 2 13 15
  15361. }
  15362. # Create a (secure) tmp directory for tmp files.
  15363. {
  15364. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  15365. test -d "$tmp"
  15366. } ||
  15367. {
  15368. tmp=./conf$$-$RANDOM
  15369. (umask 077 && mkdir "$tmp")
  15370. } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
  15371. ac_tmp=$tmp
  15372. # Set up the scripts for CONFIG_FILES section.
  15373. # No need to generate them if there are no CONFIG_FILES.
  15374. # This happens for instance with `./config.status config.h'.
  15375. if test -n "$CONFIG_FILES"; then
  15376. ac_cr=`echo X | tr X '\015'`
  15377. # On cygwin, bash can eat \r inside `` if the user requested igncr.
  15378. # But we know of no other shell where ac_cr would be empty at this
  15379. # point, so we can use a bashism as a fallback.
  15380. if test "x$ac_cr" = x; then
  15381. eval ac_cr=\$\'\\r\'
  15382. fi
  15383. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  15384. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  15385. ac_cs_awk_cr='\\r'
  15386. else
  15387. ac_cs_awk_cr=$ac_cr
  15388. fi
  15389. echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
  15390. _ACEOF
  15391. {
  15392. echo "cat >conf$$subs.awk <<_ACEOF" &&
  15393. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  15394. echo "_ACEOF"
  15395. } >conf$$subs.sh ||
  15396. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  15397. ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
  15398. ac_delim='%!_!# '
  15399. for ac_last_try in false false false false false :; do
  15400. . ./conf$$subs.sh ||
  15401. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  15402. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  15403. if test $ac_delim_n = $ac_delim_num; then
  15404. break
  15405. elif $ac_last_try; then
  15406. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  15407. else
  15408. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  15409. fi
  15410. done
  15411. rm -f conf$$subs.sh
  15412. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  15413. cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
  15414. _ACEOF
  15415. sed -n '
  15416. h
  15417. s/^/S["/; s/!.*/"]=/
  15418. p
  15419. g
  15420. s/^[^!]*!//
  15421. :repl
  15422. t repl
  15423. s/'"$ac_delim"'$//
  15424. t delim
  15425. :nl
  15426. h
  15427. s/\(.\{148\}\)..*/\1/
  15428. t more1
  15429. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  15430. p
  15431. n
  15432. b repl
  15433. :more1
  15434. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  15435. p
  15436. g
  15437. s/.\{148\}//
  15438. t nl
  15439. :delim
  15440. h
  15441. s/\(.\{148\}\)..*/\1/
  15442. t more2
  15443. s/["\\]/\\&/g; s/^/"/; s/$/"/
  15444. p
  15445. b
  15446. :more2
  15447. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  15448. p
  15449. g
  15450. s/.\{148\}//
  15451. t delim
  15452. ' <conf$$subs.awk | sed '
  15453. /^[^""]/{
  15454. N
  15455. s/\n//
  15456. }
  15457. ' >>$CONFIG_STATUS || ac_write_fail=1
  15458. rm -f conf$$subs.awk
  15459. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  15460. _ACAWK
  15461. cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
  15462. for (key in S) S_is_set[key] = 1
  15463. FS = ""
  15464. }
  15465. {
  15466. line = $ 0
  15467. nfields = split(line, field, "@")
  15468. substed = 0
  15469. len = length(field[1])
  15470. for (i = 2; i < nfields; i++) {
  15471. key = field[i]
  15472. keylen = length(key)
  15473. if (S_is_set[key]) {
  15474. value = S[key]
  15475. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  15476. len += length(value) + length(field[++i])
  15477. substed = 1
  15478. } else
  15479. len += 1 + keylen
  15480. }
  15481. print line
  15482. }
  15483. _ACAWK
  15484. _ACEOF
  15485. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  15486. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  15487. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  15488. else
  15489. cat
  15490. fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
  15491. || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
  15492. _ACEOF
  15493. # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
  15494. # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
  15495. # trailing colons and then remove the whole line if VPATH becomes empty
  15496. # (actually we leave an empty line to preserve line numbers).
  15497. if test "x$srcdir" = x.; then
  15498. ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
  15499. h
  15500. s///
  15501. s/^/:/
  15502. s/[ ]*$/:/
  15503. s/:\$(srcdir):/:/g
  15504. s/:\${srcdir}:/:/g
  15505. s/:@srcdir@:/:/g
  15506. s/^:*//
  15507. s/:*$//
  15508. x
  15509. s/\(=[ ]*\).*/\1/
  15510. G
  15511. s/\n//
  15512. s/^[^=]*=[ ]*$//
  15513. }'
  15514. fi
  15515. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  15516. fi # test -n "$CONFIG_FILES"
  15517. # Set up the scripts for CONFIG_HEADERS section.
  15518. # No need to generate them if there are no CONFIG_HEADERS.
  15519. # This happens for instance with `./config.status Makefile'.
  15520. if test -n "$CONFIG_HEADERS"; then
  15521. cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
  15522. BEGIN {
  15523. _ACEOF
  15524. # Transform confdefs.h into an awk script `defines.awk', embedded as
  15525. # here-document in config.status, that substitutes the proper values into
  15526. # config.h.in to produce config.h.
  15527. # Create a delimiter string that does not exist in confdefs.h, to ease
  15528. # handling of long lines.
  15529. ac_delim='%!_!# '
  15530. for ac_last_try in false false :; do
  15531. ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
  15532. if test -z "$ac_tt"; then
  15533. break
  15534. elif $ac_last_try; then
  15535. as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
  15536. else
  15537. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  15538. fi
  15539. done
  15540. # For the awk script, D is an array of macro values keyed by name,
  15541. # likewise P contains macro parameters if any. Preserve backslash
  15542. # newline sequences.
  15543. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  15544. sed -n '
  15545. s/.\{148\}/&'"$ac_delim"'/g
  15546. t rset
  15547. :rset
  15548. s/^[ ]*#[ ]*define[ ][ ]*/ /
  15549. t def
  15550. d
  15551. :def
  15552. s/\\$//
  15553. t bsnl
  15554. s/["\\]/\\&/g
  15555. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  15556. D["\1"]=" \3"/p
  15557. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
  15558. d
  15559. :bsnl
  15560. s/["\\]/\\&/g
  15561. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  15562. D["\1"]=" \3\\\\\\n"\\/p
  15563. t cont
  15564. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
  15565. t cont
  15566. d
  15567. :cont
  15568. n
  15569. s/.\{148\}/&'"$ac_delim"'/g
  15570. t clear
  15571. :clear
  15572. s/\\$//
  15573. t bsnlc
  15574. s/["\\]/\\&/g; s/^/"/; s/$/"/p
  15575. d
  15576. :bsnlc
  15577. s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
  15578. b cont
  15579. ' <confdefs.h | sed '
  15580. s/'"$ac_delim"'/"\\\
  15581. "/g' >>$CONFIG_STATUS || ac_write_fail=1
  15582. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  15583. for (key in D) D_is_set[key] = 1
  15584. FS = ""
  15585. }
  15586. /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  15587. line = \$ 0
  15588. split(line, arg, " ")
  15589. if (arg[1] == "#") {
  15590. defundef = arg[2]
  15591. mac1 = arg[3]
  15592. } else {
  15593. defundef = substr(arg[1], 2)
  15594. mac1 = arg[2]
  15595. }
  15596. split(mac1, mac2, "(") #)
  15597. macro = mac2[1]
  15598. prefix = substr(line, 1, index(line, defundef) - 1)
  15599. if (D_is_set[macro]) {
  15600. # Preserve the white space surrounding the "#".
  15601. print prefix "define", macro P[macro] D[macro]
  15602. next
  15603. } else {
  15604. # Replace #undef with comments. This is necessary, for example,
  15605. # in the case of _POSIX_SOURCE, which is predefined and required
  15606. # on some systems where configure will not decide to define it.
  15607. if (defundef == "undef") {
  15608. print "/*", prefix defundef, macro, "*/"
  15609. next
  15610. }
  15611. }
  15612. }
  15613. { print }
  15614. _ACAWK
  15615. _ACEOF
  15616. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  15617. as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
  15618. fi # test -n "$CONFIG_HEADERS"
  15619. eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
  15620. shift
  15621. for ac_tag
  15622. do
  15623. case $ac_tag in
  15624. :[FHLC]) ac_mode=$ac_tag; continue;;
  15625. esac
  15626. case $ac_mode$ac_tag in
  15627. :[FHL]*:*);;
  15628. :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
  15629. :[FH]-) ac_tag=-:-;;
  15630. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  15631. esac
  15632. ac_save_IFS=$IFS
  15633. IFS=:
  15634. set x $ac_tag
  15635. IFS=$ac_save_IFS
  15636. shift
  15637. ac_file=$1
  15638. shift
  15639. case $ac_mode in
  15640. :L) ac_source=$1;;
  15641. :[FH])
  15642. ac_file_inputs=
  15643. for ac_f
  15644. do
  15645. case $ac_f in
  15646. -) ac_f="$ac_tmp/stdin";;
  15647. *) # Look for the file first in the build tree, then in the source tree
  15648. # (if the path is not absolute). The absolute path cannot be DOS-style,
  15649. # because $ac_f cannot contain `:'.
  15650. test -f "$ac_f" ||
  15651. case $ac_f in
  15652. [\\/$]*) false;;
  15653. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  15654. esac ||
  15655. as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
  15656. esac
  15657. case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  15658. as_fn_append ac_file_inputs " '$ac_f'"
  15659. done
  15660. # Let's still pretend it is `configure' which instantiates (i.e., don't
  15661. # use $as_me), people would be surprised to read:
  15662. # /* config.h. Generated by config.status. */
  15663. configure_input='Generated from '`
  15664. $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  15665. `' by configure.'
  15666. if test x"$ac_file" != x-; then
  15667. configure_input="$ac_file. $configure_input"
  15668. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  15669. $as_echo "$as_me: creating $ac_file" >&6;}
  15670. fi
  15671. # Neutralize special characters interpreted by sed in replacement strings.
  15672. case $configure_input in #(
  15673. *\&* | *\|* | *\\* )
  15674. ac_sed_conf_input=`$as_echo "$configure_input" |
  15675. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  15676. *) ac_sed_conf_input=$configure_input;;
  15677. esac
  15678. case $ac_tag in
  15679. *:-:* | *:-) cat >"$ac_tmp/stdin" \
  15680. || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
  15681. esac
  15682. ;;
  15683. esac
  15684. ac_dir=`$as_dirname -- "$ac_file" ||
  15685. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  15686. X"$ac_file" : 'X\(//\)[^/]' \| \
  15687. X"$ac_file" : 'X\(//\)$' \| \
  15688. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  15689. $as_echo X"$ac_file" |
  15690. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  15691. s//\1/
  15692. q
  15693. }
  15694. /^X\(\/\/\)[^/].*/{
  15695. s//\1/
  15696. q
  15697. }
  15698. /^X\(\/\/\)$/{
  15699. s//\1/
  15700. q
  15701. }
  15702. /^X\(\/\).*/{
  15703. s//\1/
  15704. q
  15705. }
  15706. s/.*/./; q'`
  15707. as_dir="$ac_dir"; as_fn_mkdir_p
  15708. ac_builddir=.
  15709. case "$ac_dir" in
  15710. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  15711. *)
  15712. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  15713. # A ".." for each directory in $ac_dir_suffix.
  15714. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  15715. case $ac_top_builddir_sub in
  15716. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  15717. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  15718. esac ;;
  15719. esac
  15720. ac_abs_top_builddir=$ac_pwd
  15721. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  15722. # for backward compatibility:
  15723. ac_top_builddir=$ac_top_build_prefix
  15724. case $srcdir in
  15725. .) # We are building in place.
  15726. ac_srcdir=.
  15727. ac_top_srcdir=$ac_top_builddir_sub
  15728. ac_abs_top_srcdir=$ac_pwd ;;
  15729. [\\/]* | ?:[\\/]* ) # Absolute name.
  15730. ac_srcdir=$srcdir$ac_dir_suffix;
  15731. ac_top_srcdir=$srcdir
  15732. ac_abs_top_srcdir=$srcdir ;;
  15733. *) # Relative name.
  15734. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  15735. ac_top_srcdir=$ac_top_build_prefix$srcdir
  15736. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  15737. esac
  15738. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  15739. case $ac_mode in
  15740. :F)
  15741. #
  15742. # CONFIG_FILE
  15743. #
  15744. case $INSTALL in
  15745. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  15746. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  15747. esac
  15748. ac_MKDIR_P=$MKDIR_P
  15749. case $MKDIR_P in
  15750. [\\/$]* | ?:[\\/]* ) ;;
  15751. */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
  15752. esac
  15753. _ACEOF
  15754. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  15755. # If the template does not know about datarootdir, expand it.
  15756. # FIXME: This hack should be removed a few years after 2.60.
  15757. ac_datarootdir_hack=; ac_datarootdir_seen=
  15758. ac_sed_dataroot='
  15759. /datarootdir/ {
  15760. p
  15761. q
  15762. }
  15763. /@datadir@/p
  15764. /@docdir@/p
  15765. /@infodir@/p
  15766. /@localedir@/p
  15767. /@mandir@/p'
  15768. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  15769. *datarootdir*) ac_datarootdir_seen=yes;;
  15770. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  15771. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  15772. $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  15773. _ACEOF
  15774. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  15775. ac_datarootdir_hack='
  15776. s&@datadir@&$datadir&g
  15777. s&@docdir@&$docdir&g
  15778. s&@infodir@&$infodir&g
  15779. s&@localedir@&$localedir&g
  15780. s&@mandir@&$mandir&g
  15781. s&\\\${datarootdir}&$datarootdir&g' ;;
  15782. esac
  15783. _ACEOF
  15784. # Neutralize VPATH when `$srcdir' = `.'.
  15785. # Shell code in configure.ac might set extrasub.
  15786. # FIXME: do we really want to maintain this feature?
  15787. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  15788. ac_sed_extra="$ac_vpsub
  15789. $extrasub
  15790. _ACEOF
  15791. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  15792. :t
  15793. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  15794. s|@configure_input@|$ac_sed_conf_input|;t t
  15795. s&@top_builddir@&$ac_top_builddir_sub&;t t
  15796. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  15797. s&@srcdir@&$ac_srcdir&;t t
  15798. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  15799. s&@top_srcdir@&$ac_top_srcdir&;t t
  15800. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  15801. s&@builddir@&$ac_builddir&;t t
  15802. s&@abs_builddir@&$ac_abs_builddir&;t t
  15803. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  15804. s&@INSTALL@&$ac_INSTALL&;t t
  15805. s&@MKDIR_P@&$ac_MKDIR_P&;t t
  15806. $ac_datarootdir_hack
  15807. "
  15808. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
  15809. >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  15810. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  15811. { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
  15812. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
  15813. "$ac_tmp/out"`; test -z "$ac_out"; } &&
  15814. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  15815. which seems to be undefined. Please make sure it is defined" >&5
  15816. $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  15817. which seems to be undefined. Please make sure it is defined" >&2;}
  15818. rm -f "$ac_tmp/stdin"
  15819. case $ac_file in
  15820. -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
  15821. *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
  15822. esac \
  15823. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  15824. ;;
  15825. :H)
  15826. #
  15827. # CONFIG_HEADER
  15828. #
  15829. if test x"$ac_file" != x-; then
  15830. {
  15831. $as_echo "/* $configure_input */" \
  15832. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
  15833. } >"$ac_tmp/config.h" \
  15834. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  15835. if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
  15836. { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
  15837. $as_echo "$as_me: $ac_file is unchanged" >&6;}
  15838. else
  15839. rm -f "$ac_file"
  15840. mv "$ac_tmp/config.h" "$ac_file" \
  15841. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  15842. fi
  15843. else
  15844. $as_echo "/* $configure_input */" \
  15845. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
  15846. || as_fn_error $? "could not create -" "$LINENO" 5
  15847. fi
  15848. # Compute "$ac_file"'s index in $config_headers.
  15849. _am_arg="$ac_file"
  15850. _am_stamp_count=1
  15851. for _am_header in $config_headers :; do
  15852. case $_am_header in
  15853. $_am_arg | $_am_arg:* )
  15854. break ;;
  15855. * )
  15856. _am_stamp_count=`expr $_am_stamp_count + 1` ;;
  15857. esac
  15858. done
  15859. echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
  15860. $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  15861. X"$_am_arg" : 'X\(//\)[^/]' \| \
  15862. X"$_am_arg" : 'X\(//\)$' \| \
  15863. X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
  15864. $as_echo X"$_am_arg" |
  15865. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  15866. s//\1/
  15867. q
  15868. }
  15869. /^X\(\/\/\)[^/].*/{
  15870. s//\1/
  15871. q
  15872. }
  15873. /^X\(\/\/\)$/{
  15874. s//\1/
  15875. q
  15876. }
  15877. /^X\(\/\).*/{
  15878. s//\1/
  15879. q
  15880. }
  15881. s/.*/./; q'`/stamp-h$_am_stamp_count
  15882. ;;
  15883. :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
  15884. $as_echo "$as_me: executing $ac_file commands" >&6;}
  15885. ;;
  15886. esac
  15887. case $ac_file$ac_mode in
  15888. "libtool":C)
  15889. # See if we are running on zsh, and set the options which allow our
  15890. # commands through without removal of \ escapes.
  15891. if test -n "${ZSH_VERSION+set}" ; then
  15892. setopt NO_GLOB_SUBST
  15893. fi
  15894. cfgfile="${ofile}T"
  15895. trap "$RM \"$cfgfile\"; exit 1" 1 2 15
  15896. $RM "$cfgfile"
  15897. cat <<_LT_EOF >> "$cfgfile"
  15898. #! $SHELL
  15899. # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
  15900. # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
  15901. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  15902. # NOTE: Changes made to this file will be lost: look at ltmain.sh.
  15903. #
  15904. # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
  15905. # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
  15906. # Foundation, Inc.
  15907. # Written by Gordon Matzigkeit, 1996
  15908. #
  15909. # This file is part of GNU Libtool.
  15910. #
  15911. # GNU Libtool is free software; you can redistribute it and/or
  15912. # modify it under the terms of the GNU General Public License as
  15913. # published by the Free Software Foundation; either version 2 of
  15914. # the License, or (at your option) any later version.
  15915. #
  15916. # As a special exception to the GNU General Public License,
  15917. # if you distribute this file as part of a program or library that
  15918. # is built using GNU Libtool, you may include this file under the
  15919. # same distribution terms that you use for the rest of that program.
  15920. #
  15921. # GNU Libtool is distributed in the hope that it will be useful,
  15922. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  15923. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  15924. # GNU General Public License for more details.
  15925. #
  15926. # You should have received a copy of the GNU General Public License
  15927. # along with GNU Libtool; see the file COPYING. If not, a copy
  15928. # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
  15929. # obtained by writing to the Free Software Foundation, Inc.,
  15930. # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  15931. # The names of the tagged configurations supported by this script.
  15932. available_tags="CXX "
  15933. # ### BEGIN LIBTOOL CONFIG
  15934. # Assembler program.
  15935. AS=$lt_AS
  15936. # DLL creation program.
  15937. DLLTOOL=$lt_DLLTOOL
  15938. # Object dumper program.
  15939. OBJDUMP=$lt_OBJDUMP
  15940. # Which release of libtool.m4 was used?
  15941. macro_version=$macro_version
  15942. macro_revision=$macro_revision
  15943. # Whether or not to build shared libraries.
  15944. build_libtool_libs=$enable_shared
  15945. # Whether or not to build static libraries.
  15946. build_old_libs=$enable_static
  15947. # What type of objects to build.
  15948. pic_mode=$pic_mode
  15949. # Whether or not to optimize for fast installation.
  15950. fast_install=$enable_fast_install
  15951. # Shell to use when invoking shell scripts.
  15952. SHELL=$lt_SHELL
  15953. # An echo program that protects backslashes.
  15954. ECHO=$lt_ECHO
  15955. # The PATH separator for the build system.
  15956. PATH_SEPARATOR=$lt_PATH_SEPARATOR
  15957. # The host system.
  15958. host_alias=$host_alias
  15959. host=$host
  15960. host_os=$host_os
  15961. # The build system.
  15962. build_alias=$build_alias
  15963. build=$build
  15964. build_os=$build_os
  15965. # A sed program that does not truncate output.
  15966. SED=$lt_SED
  15967. # Sed that helps us avoid accidentally triggering echo(1) options like -n.
  15968. Xsed="\$SED -e 1s/^X//"
  15969. # A grep program that handles long lines.
  15970. GREP=$lt_GREP
  15971. # An ERE matcher.
  15972. EGREP=$lt_EGREP
  15973. # A literal string matcher.
  15974. FGREP=$lt_FGREP
  15975. # A BSD- or MS-compatible name lister.
  15976. NM=$lt_NM
  15977. # Whether we need soft or hard links.
  15978. LN_S=$lt_LN_S
  15979. # What is the maximum length of a command?
  15980. max_cmd_len=$max_cmd_len
  15981. # Object file suffix (normally "o").
  15982. objext=$ac_objext
  15983. # Executable file suffix (normally "").
  15984. exeext=$exeext
  15985. # whether the shell understands "unset".
  15986. lt_unset=$lt_unset
  15987. # turn spaces into newlines.
  15988. SP2NL=$lt_lt_SP2NL
  15989. # turn newlines into spaces.
  15990. NL2SP=$lt_lt_NL2SP
  15991. # convert \$build file names to \$host format.
  15992. to_host_file_cmd=$lt_cv_to_host_file_cmd
  15993. # convert \$build files to toolchain format.
  15994. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  15995. # Method to check whether dependent libraries are shared objects.
  15996. deplibs_check_method=$lt_deplibs_check_method
  15997. # Command to use when deplibs_check_method = "file_magic".
  15998. file_magic_cmd=$lt_file_magic_cmd
  15999. # How to find potential files when deplibs_check_method = "file_magic".
  16000. file_magic_glob=$lt_file_magic_glob
  16001. # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
  16002. want_nocaseglob=$lt_want_nocaseglob
  16003. # Command to associate shared and link libraries.
  16004. sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
  16005. # The archiver.
  16006. AR=$lt_AR
  16007. # Flags to create an archive.
  16008. AR_FLAGS=$lt_AR_FLAGS
  16009. # How to feed a file listing to the archiver.
  16010. archiver_list_spec=$lt_archiver_list_spec
  16011. # A symbol stripping program.
  16012. STRIP=$lt_STRIP
  16013. # Commands used to install an old-style archive.
  16014. RANLIB=$lt_RANLIB
  16015. old_postinstall_cmds=$lt_old_postinstall_cmds
  16016. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  16017. # Whether to use a lock for old archive extraction.
  16018. lock_old_archive_extraction=$lock_old_archive_extraction
  16019. # A C compiler.
  16020. LTCC=$lt_CC
  16021. # LTCC compiler flags.
  16022. LTCFLAGS=$lt_CFLAGS
  16023. # Take the output of nm and produce a listing of raw symbols and C names.
  16024. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  16025. # Transform the output of nm in a proper C declaration.
  16026. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  16027. # Transform the output of nm in a C name address pair.
  16028. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  16029. # Transform the output of nm in a C name address pair when lib prefix is needed.
  16030. global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
  16031. # Specify filename containing input files for \$NM.
  16032. nm_file_list_spec=$lt_nm_file_list_spec
  16033. # The root where to search for dependent libraries,and in which our libraries should be installed.
  16034. lt_sysroot=$lt_sysroot
  16035. # The name of the directory that contains temporary libtool files.
  16036. objdir=$objdir
  16037. # Used to examine libraries when file_magic_cmd begins with "file".
  16038. MAGIC_CMD=$MAGIC_CMD
  16039. # Must we lock files when doing compilation?
  16040. need_locks=$lt_need_locks
  16041. # Manifest tool.
  16042. MANIFEST_TOOL=$lt_MANIFEST_TOOL
  16043. # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
  16044. DSYMUTIL=$lt_DSYMUTIL
  16045. # Tool to change global to local symbols on Mac OS X.
  16046. NMEDIT=$lt_NMEDIT
  16047. # Tool to manipulate fat objects and archives on Mac OS X.
  16048. LIPO=$lt_LIPO
  16049. # ldd/readelf like tool for Mach-O binaries on Mac OS X.
  16050. OTOOL=$lt_OTOOL
  16051. # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
  16052. OTOOL64=$lt_OTOOL64
  16053. # Old archive suffix (normally "a").
  16054. libext=$libext
  16055. # Shared library suffix (normally ".so").
  16056. shrext_cmds=$lt_shrext_cmds
  16057. # The commands to extract the exported symbol list from a shared archive.
  16058. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  16059. # Variables whose values should be saved in libtool wrapper scripts and
  16060. # restored at link time.
  16061. variables_saved_for_relink=$lt_variables_saved_for_relink
  16062. # Do we need the "lib" prefix for modules?
  16063. need_lib_prefix=$need_lib_prefix
  16064. # Do we need a version for libraries?
  16065. need_version=$need_version
  16066. # Library versioning type.
  16067. version_type=$version_type
  16068. # Shared library runtime path variable.
  16069. runpath_var=$runpath_var
  16070. # Shared library path variable.
  16071. shlibpath_var=$shlibpath_var
  16072. # Is shlibpath searched before the hard-coded library search path?
  16073. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  16074. # Format of library name prefix.
  16075. libname_spec=$lt_libname_spec
  16076. # List of archive names. First name is the real one, the rest are links.
  16077. # The last name is the one that the linker finds with -lNAME
  16078. library_names_spec=$lt_library_names_spec
  16079. # The coded name of the library, if different from the real name.
  16080. soname_spec=$lt_soname_spec
  16081. # Permission mode override for installation of shared libraries.
  16082. install_override_mode=$lt_install_override_mode
  16083. # Command to use after installation of a shared archive.
  16084. postinstall_cmds=$lt_postinstall_cmds
  16085. # Command to use after uninstallation of a shared archive.
  16086. postuninstall_cmds=$lt_postuninstall_cmds
  16087. # Commands used to finish a libtool library installation in a directory.
  16088. finish_cmds=$lt_finish_cmds
  16089. # As "finish_cmds", except a single script fragment to be evaled but
  16090. # not shown.
  16091. finish_eval=$lt_finish_eval
  16092. # Whether we should hardcode library paths into libraries.
  16093. hardcode_into_libs=$hardcode_into_libs
  16094. # Compile-time system search path for libraries.
  16095. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  16096. # Run-time system search path for libraries.
  16097. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  16098. # Whether dlopen is supported.
  16099. dlopen_support=$enable_dlopen
  16100. # Whether dlopen of programs is supported.
  16101. dlopen_self=$enable_dlopen_self
  16102. # Whether dlopen of statically linked programs is supported.
  16103. dlopen_self_static=$enable_dlopen_self_static
  16104. # Commands to strip libraries.
  16105. old_striplib=$lt_old_striplib
  16106. striplib=$lt_striplib
  16107. # The linker used to build libraries.
  16108. LD=$lt_LD
  16109. # How to create reloadable object files.
  16110. reload_flag=$lt_reload_flag
  16111. reload_cmds=$lt_reload_cmds
  16112. # Commands used to build an old-style archive.
  16113. old_archive_cmds=$lt_old_archive_cmds
  16114. # A language specific compiler.
  16115. CC=$lt_compiler
  16116. # Is the compiler the GNU compiler?
  16117. with_gcc=$GCC
  16118. # Compiler flag to turn off builtin functions.
  16119. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
  16120. # Additional compiler flags for building library objects.
  16121. pic_flag=$lt_lt_prog_compiler_pic
  16122. # How to pass a linker flag through the compiler.
  16123. wl=$lt_lt_prog_compiler_wl
  16124. # Compiler flag to prevent dynamic linking.
  16125. link_static_flag=$lt_lt_prog_compiler_static
  16126. # Does compiler simultaneously support -c and -o options?
  16127. compiler_c_o=$lt_lt_cv_prog_compiler_c_o
  16128. # Whether or not to add -lc for building shared libraries.
  16129. build_libtool_need_lc=$archive_cmds_need_lc
  16130. # Whether or not to disallow shared libs when runtime libs are static.
  16131. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
  16132. # Compiler flag to allow reflexive dlopens.
  16133. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
  16134. # Compiler flag to generate shared objects directly from archives.
  16135. whole_archive_flag_spec=$lt_whole_archive_flag_spec
  16136. # Whether the compiler copes with passing no objects directly.
  16137. compiler_needs_object=$lt_compiler_needs_object
  16138. # Create an old-style archive from a shared archive.
  16139. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
  16140. # Create a temporary old-style archive to link instead of a shared archive.
  16141. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
  16142. # Commands used to build a shared archive.
  16143. archive_cmds=$lt_archive_cmds
  16144. archive_expsym_cmds=$lt_archive_expsym_cmds
  16145. # Commands used to build a loadable module if different from building
  16146. # a shared archive.
  16147. module_cmds=$lt_module_cmds
  16148. module_expsym_cmds=$lt_module_expsym_cmds
  16149. # Whether we are building with GNU ld or not.
  16150. with_gnu_ld=$lt_with_gnu_ld
  16151. # Flag that allows shared libraries with undefined symbols to be built.
  16152. allow_undefined_flag=$lt_allow_undefined_flag
  16153. # Flag that enforces no undefined symbols.
  16154. no_undefined_flag=$lt_no_undefined_flag
  16155. # Flag to hardcode \$libdir into a binary during linking.
  16156. # This must work even if \$libdir does not exist
  16157. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
  16158. # Whether we need a single "-rpath" flag with a separated argument.
  16159. hardcode_libdir_separator=$lt_hardcode_libdir_separator
  16160. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  16161. # DIR into the resulting binary.
  16162. hardcode_direct=$hardcode_direct
  16163. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  16164. # DIR into the resulting binary and the resulting library dependency is
  16165. # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
  16166. # library is relocated.
  16167. hardcode_direct_absolute=$hardcode_direct_absolute
  16168. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  16169. # into the resulting binary.
  16170. hardcode_minus_L=$hardcode_minus_L
  16171. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  16172. # into the resulting binary.
  16173. hardcode_shlibpath_var=$hardcode_shlibpath_var
  16174. # Set to "yes" if building a shared library automatically hardcodes DIR
  16175. # into the library and all subsequent libraries and executables linked
  16176. # against it.
  16177. hardcode_automatic=$hardcode_automatic
  16178. # Set to yes if linker adds runtime paths of dependent libraries
  16179. # to runtime path list.
  16180. inherit_rpath=$inherit_rpath
  16181. # Whether libtool must link a program against all its dependency libraries.
  16182. link_all_deplibs=$link_all_deplibs
  16183. # Set to "yes" if exported symbols are required.
  16184. always_export_symbols=$always_export_symbols
  16185. # The commands to list exported symbols.
  16186. export_symbols_cmds=$lt_export_symbols_cmds
  16187. # Symbols that should not be listed in the preloaded symbols.
  16188. exclude_expsyms=$lt_exclude_expsyms
  16189. # Symbols that must always be exported.
  16190. include_expsyms=$lt_include_expsyms
  16191. # Commands necessary for linking programs (against libraries) with templates.
  16192. prelink_cmds=$lt_prelink_cmds
  16193. # Commands necessary for finishing linking programs.
  16194. postlink_cmds=$lt_postlink_cmds
  16195. # Specify filename containing input files.
  16196. file_list_spec=$lt_file_list_spec
  16197. # How to hardcode a shared library path into an executable.
  16198. hardcode_action=$hardcode_action
  16199. # The directories searched by this compiler when creating a shared library.
  16200. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
  16201. # Dependencies to place before and after the objects being linked to
  16202. # create a shared library.
  16203. predep_objects=$lt_predep_objects
  16204. postdep_objects=$lt_postdep_objects
  16205. predeps=$lt_predeps
  16206. postdeps=$lt_postdeps
  16207. # The library search path used internally by the compiler when linking
  16208. # a shared library.
  16209. compiler_lib_search_path=$lt_compiler_lib_search_path
  16210. # ### END LIBTOOL CONFIG
  16211. _LT_EOF
  16212. case $host_os in
  16213. aix3*)
  16214. cat <<\_LT_EOF >> "$cfgfile"
  16215. # AIX sometimes has problems with the GCC collect2 program. For some
  16216. # reason, if we set the COLLECT_NAMES environment variable, the problems
  16217. # vanish in a puff of smoke.
  16218. if test "X${COLLECT_NAMES+set}" != Xset; then
  16219. COLLECT_NAMES=
  16220. export COLLECT_NAMES
  16221. fi
  16222. _LT_EOF
  16223. ;;
  16224. esac
  16225. ltmain="$ac_aux_dir/ltmain.sh"
  16226. # We use sed instead of cat because bash on DJGPP gets confused if
  16227. # if finds mixed CR/LF and LF-only lines. Since sed operates in
  16228. # text mode, it properly converts lines to CR/LF. This bash problem
  16229. # is reportedly fixed, but why not run on old versions too?
  16230. sed '$q' "$ltmain" >> "$cfgfile" \
  16231. || (rm -f "$cfgfile"; exit 1)
  16232. if test x"$xsi_shell" = xyes; then
  16233. sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
  16234. func_dirname ()\
  16235. {\
  16236. \ case ${1} in\
  16237. \ */*) func_dirname_result="${1%/*}${2}" ;;\
  16238. \ * ) func_dirname_result="${3}" ;;\
  16239. \ esac\
  16240. } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
  16241. && mv -f "$cfgfile.tmp" "$cfgfile" \
  16242. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  16243. test 0 -eq $? || _lt_function_replace_fail=:
  16244. sed -e '/^func_basename ()$/,/^} # func_basename /c\
  16245. func_basename ()\
  16246. {\
  16247. \ func_basename_result="${1##*/}"\
  16248. } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
  16249. && mv -f "$cfgfile.tmp" "$cfgfile" \
  16250. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  16251. test 0 -eq $? || _lt_function_replace_fail=:
  16252. sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
  16253. func_dirname_and_basename ()\
  16254. {\
  16255. \ case ${1} in\
  16256. \ */*) func_dirname_result="${1%/*}${2}" ;;\
  16257. \ * ) func_dirname_result="${3}" ;;\
  16258. \ esac\
  16259. \ func_basename_result="${1##*/}"\
  16260. } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
  16261. && mv -f "$cfgfile.tmp" "$cfgfile" \
  16262. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  16263. test 0 -eq $? || _lt_function_replace_fail=:
  16264. sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
  16265. func_stripname ()\
  16266. {\
  16267. \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
  16268. \ # positional parameters, so assign one to ordinary parameter first.\
  16269. \ func_stripname_result=${3}\
  16270. \ func_stripname_result=${func_stripname_result#"${1}"}\
  16271. \ func_stripname_result=${func_stripname_result%"${2}"}\
  16272. } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
  16273. && mv -f "$cfgfile.tmp" "$cfgfile" \
  16274. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  16275. test 0 -eq $? || _lt_function_replace_fail=:
  16276. sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
  16277. func_split_long_opt ()\
  16278. {\
  16279. \ func_split_long_opt_name=${1%%=*}\
  16280. \ func_split_long_opt_arg=${1#*=}\
  16281. } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
  16282. && mv -f "$cfgfile.tmp" "$cfgfile" \
  16283. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  16284. test 0 -eq $? || _lt_function_replace_fail=:
  16285. sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
  16286. func_split_short_opt ()\
  16287. {\
  16288. \ func_split_short_opt_arg=${1#??}\
  16289. \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
  16290. } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
  16291. && mv -f "$cfgfile.tmp" "$cfgfile" \
  16292. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  16293. test 0 -eq $? || _lt_function_replace_fail=:
  16294. sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
  16295. func_lo2o ()\
  16296. {\
  16297. \ case ${1} in\
  16298. \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
  16299. \ *) func_lo2o_result=${1} ;;\
  16300. \ esac\
  16301. } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
  16302. && mv -f "$cfgfile.tmp" "$cfgfile" \
  16303. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  16304. test 0 -eq $? || _lt_function_replace_fail=:
  16305. sed -e '/^func_xform ()$/,/^} # func_xform /c\
  16306. func_xform ()\
  16307. {\
  16308. func_xform_result=${1%.*}.lo\
  16309. } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
  16310. && mv -f "$cfgfile.tmp" "$cfgfile" \
  16311. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  16312. test 0 -eq $? || _lt_function_replace_fail=:
  16313. sed -e '/^func_arith ()$/,/^} # func_arith /c\
  16314. func_arith ()\
  16315. {\
  16316. func_arith_result=$(( $* ))\
  16317. } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
  16318. && mv -f "$cfgfile.tmp" "$cfgfile" \
  16319. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  16320. test 0 -eq $? || _lt_function_replace_fail=:
  16321. sed -e '/^func_len ()$/,/^} # func_len /c\
  16322. func_len ()\
  16323. {\
  16324. func_len_result=${#1}\
  16325. } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
  16326. && mv -f "$cfgfile.tmp" "$cfgfile" \
  16327. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  16328. test 0 -eq $? || _lt_function_replace_fail=:
  16329. fi
  16330. if test x"$lt_shell_append" = xyes; then
  16331. sed -e '/^func_append ()$/,/^} # func_append /c\
  16332. func_append ()\
  16333. {\
  16334. eval "${1}+=\\${2}"\
  16335. } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
  16336. && mv -f "$cfgfile.tmp" "$cfgfile" \
  16337. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  16338. test 0 -eq $? || _lt_function_replace_fail=:
  16339. sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
  16340. func_append_quoted ()\
  16341. {\
  16342. \ func_quote_for_eval "${2}"\
  16343. \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
  16344. } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
  16345. && mv -f "$cfgfile.tmp" "$cfgfile" \
  16346. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  16347. test 0 -eq $? || _lt_function_replace_fail=:
  16348. # Save a `func_append' function call where possible by direct use of '+='
  16349. sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
  16350. && mv -f "$cfgfile.tmp" "$cfgfile" \
  16351. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  16352. test 0 -eq $? || _lt_function_replace_fail=:
  16353. else
  16354. # Save a `func_append' function call even when '+=' is not available
  16355. sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
  16356. && mv -f "$cfgfile.tmp" "$cfgfile" \
  16357. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  16358. test 0 -eq $? || _lt_function_replace_fail=:
  16359. fi
  16360. if test x"$_lt_function_replace_fail" = x":"; then
  16361. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
  16362. $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
  16363. fi
  16364. mv -f "$cfgfile" "$ofile" ||
  16365. (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  16366. chmod +x "$ofile"
  16367. cat <<_LT_EOF >> "$ofile"
  16368. # ### BEGIN LIBTOOL TAG CONFIG: CXX
  16369. # The linker used to build libraries.
  16370. LD=$lt_LD_CXX
  16371. # How to create reloadable object files.
  16372. reload_flag=$lt_reload_flag_CXX
  16373. reload_cmds=$lt_reload_cmds_CXX
  16374. # Commands used to build an old-style archive.
  16375. old_archive_cmds=$lt_old_archive_cmds_CXX
  16376. # A language specific compiler.
  16377. CC=$lt_compiler_CXX
  16378. # Is the compiler the GNU compiler?
  16379. with_gcc=$GCC_CXX
  16380. # Compiler flag to turn off builtin functions.
  16381. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
  16382. # Additional compiler flags for building library objects.
  16383. pic_flag=$lt_lt_prog_compiler_pic_CXX
  16384. # How to pass a linker flag through the compiler.
  16385. wl=$lt_lt_prog_compiler_wl_CXX
  16386. # Compiler flag to prevent dynamic linking.
  16387. link_static_flag=$lt_lt_prog_compiler_static_CXX
  16388. # Does compiler simultaneously support -c and -o options?
  16389. compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
  16390. # Whether or not to add -lc for building shared libraries.
  16391. build_libtool_need_lc=$archive_cmds_need_lc_CXX
  16392. # Whether or not to disallow shared libs when runtime libs are static.
  16393. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
  16394. # Compiler flag to allow reflexive dlopens.
  16395. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
  16396. # Compiler flag to generate shared objects directly from archives.
  16397. whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
  16398. # Whether the compiler copes with passing no objects directly.
  16399. compiler_needs_object=$lt_compiler_needs_object_CXX
  16400. # Create an old-style archive from a shared archive.
  16401. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
  16402. # Create a temporary old-style archive to link instead of a shared archive.
  16403. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
  16404. # Commands used to build a shared archive.
  16405. archive_cmds=$lt_archive_cmds_CXX
  16406. archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
  16407. # Commands used to build a loadable module if different from building
  16408. # a shared archive.
  16409. module_cmds=$lt_module_cmds_CXX
  16410. module_expsym_cmds=$lt_module_expsym_cmds_CXX
  16411. # Whether we are building with GNU ld or not.
  16412. with_gnu_ld=$lt_with_gnu_ld_CXX
  16413. # Flag that allows shared libraries with undefined symbols to be built.
  16414. allow_undefined_flag=$lt_allow_undefined_flag_CXX
  16415. # Flag that enforces no undefined symbols.
  16416. no_undefined_flag=$lt_no_undefined_flag_CXX
  16417. # Flag to hardcode \$libdir into a binary during linking.
  16418. # This must work even if \$libdir does not exist
  16419. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
  16420. # Whether we need a single "-rpath" flag with a separated argument.
  16421. hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
  16422. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  16423. # DIR into the resulting binary.
  16424. hardcode_direct=$hardcode_direct_CXX
  16425. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  16426. # DIR into the resulting binary and the resulting library dependency is
  16427. # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
  16428. # library is relocated.
  16429. hardcode_direct_absolute=$hardcode_direct_absolute_CXX
  16430. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  16431. # into the resulting binary.
  16432. hardcode_minus_L=$hardcode_minus_L_CXX
  16433. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  16434. # into the resulting binary.
  16435. hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
  16436. # Set to "yes" if building a shared library automatically hardcodes DIR
  16437. # into the library and all subsequent libraries and executables linked
  16438. # against it.
  16439. hardcode_automatic=$hardcode_automatic_CXX
  16440. # Set to yes if linker adds runtime paths of dependent libraries
  16441. # to runtime path list.
  16442. inherit_rpath=$inherit_rpath_CXX
  16443. # Whether libtool must link a program against all its dependency libraries.
  16444. link_all_deplibs=$link_all_deplibs_CXX
  16445. # Set to "yes" if exported symbols are required.
  16446. always_export_symbols=$always_export_symbols_CXX
  16447. # The commands to list exported symbols.
  16448. export_symbols_cmds=$lt_export_symbols_cmds_CXX
  16449. # Symbols that should not be listed in the preloaded symbols.
  16450. exclude_expsyms=$lt_exclude_expsyms_CXX
  16451. # Symbols that must always be exported.
  16452. include_expsyms=$lt_include_expsyms_CXX
  16453. # Commands necessary for linking programs (against libraries) with templates.
  16454. prelink_cmds=$lt_prelink_cmds_CXX
  16455. # Commands necessary for finishing linking programs.
  16456. postlink_cmds=$lt_postlink_cmds_CXX
  16457. # Specify filename containing input files.
  16458. file_list_spec=$lt_file_list_spec_CXX
  16459. # How to hardcode a shared library path into an executable.
  16460. hardcode_action=$hardcode_action_CXX
  16461. # The directories searched by this compiler when creating a shared library.
  16462. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
  16463. # Dependencies to place before and after the objects being linked to
  16464. # create a shared library.
  16465. predep_objects=$lt_predep_objects_CXX
  16466. postdep_objects=$lt_postdep_objects_CXX
  16467. predeps=$lt_predeps_CXX
  16468. postdeps=$lt_postdeps_CXX
  16469. # The library search path used internally by the compiler when linking
  16470. # a shared library.
  16471. compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
  16472. # ### END LIBTOOL TAG CONFIG: CXX
  16473. _LT_EOF
  16474. ;;
  16475. "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
  16476. # Autoconf 2.62 quotes --file arguments for eval, but not when files
  16477. # are listed without --file. Let's play safe and only enable the eval
  16478. # if we detect the quoting.
  16479. case $CONFIG_FILES in
  16480. *\'*) eval set x "$CONFIG_FILES" ;;
  16481. *) set x $CONFIG_FILES ;;
  16482. esac
  16483. shift
  16484. for mf
  16485. do
  16486. # Strip MF so we end up with the name of the file.
  16487. mf=`echo "$mf" | sed -e 's/:.*$//'`
  16488. # Check whether this is an Automake generated Makefile or not.
  16489. # We used to match only the files named `Makefile.in', but
  16490. # some people rename them; so instead we look at the file content.
  16491. # Grep'ing the first line is not enough: some people post-process
  16492. # each Makefile.in and add a new line on top of each file to say so.
  16493. # Grep'ing the whole file is not good either: AIX grep has a line
  16494. # limit of 2048, but all sed's we know have understand at least 4000.
  16495. if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
  16496. dirpart=`$as_dirname -- "$mf" ||
  16497. $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  16498. X"$mf" : 'X\(//\)[^/]' \| \
  16499. X"$mf" : 'X\(//\)$' \| \
  16500. X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
  16501. $as_echo X"$mf" |
  16502. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  16503. s//\1/
  16504. q
  16505. }
  16506. /^X\(\/\/\)[^/].*/{
  16507. s//\1/
  16508. q
  16509. }
  16510. /^X\(\/\/\)$/{
  16511. s//\1/
  16512. q
  16513. }
  16514. /^X\(\/\).*/{
  16515. s//\1/
  16516. q
  16517. }
  16518. s/.*/./; q'`
  16519. else
  16520. continue
  16521. fi
  16522. # Extract the definition of DEPDIR, am__include, and am__quote
  16523. # from the Makefile without running `make'.
  16524. DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
  16525. test -z "$DEPDIR" && continue
  16526. am__include=`sed -n 's/^am__include = //p' < "$mf"`
  16527. test -z "am__include" && continue
  16528. am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
  16529. # When using ansi2knr, U may be empty or an underscore; expand it
  16530. U=`sed -n 's/^U = //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' -e 's/\$U/'"$U"'/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