output.3 561 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104121051210612107121081210912110121111211212113121141211512116121171211812119121201212112122121231212412125121261212712128121291213012131121321213312134121351213612137121381213912140121411214212143121441214512146121471214812149121501215112152121531215412155121561215712158121591216012161121621216312164121651216612167121681216912170121711217212173121741217512176121771217812179121801218112182121831218412185121861218712188121891219012191121921219312194121951219612197121981219912200122011220212203122041220512206122071220812209122101221112212122131221412215122161221712218122191222012221122221222312224122251222612227122281222912230122311223212233122341223512236122371223812239122401224112242122431224412245122461224712248122491225012251122521225312254122551225612257122581225912260122611226212263122641226512266122671226812269122701227112272122731227412275122761227712278122791228012281122821228312284122851228612287122881228912290122911229212293122941229512296122971229812299123001230112302123031230412305123061230712308123091231012311123121231312314123151231612317123181231912320123211232212323123241232512326123271232812329123301233112332123331233412335123361233712338123391234012341123421234312344123451234612347123481234912350123511235212353123541235512356123571235812359123601236112362123631236412365123661236712368123691237012371123721237312374123751237612377123781237912380123811238212383123841238512386123871238812389123901239112392123931239412395123961239712398123991240012401124021240312404124051240612407124081240912410124111241212413124141241512416124171241812419124201242112422124231242412425124261242712428124291243012431124321243312434124351243612437124381243912440124411244212443124441244512446124471244812449124501245112452124531245412455124561245712458124591246012461124621246312464124651246612467124681246912470124711247212473124741247512476124771247812479124801248112482124831248412485124861248712488124891249012491124921249312494124951249612497124981249912500125011250212503125041250512506125071250812509125101251112512125131251412515125161251712518125191252012521125221252312524125251252612527125281252912530125311253212533125341253512536125371253812539125401254112542125431254412545125461254712548125491255012551125521255312554125551255612557125581255912560125611256212563125641256512566125671256812569125701257112572125731257412575125761257712578125791258012581125821258312584125851258612587125881258912590125911259212593125941259512596125971259812599126001260112602126031260412605126061260712608126091261012611126121261312614126151261612617126181261912620126211262212623126241262512626126271262812629126301263112632126331263412635126361263712638126391264012641126421264312644126451264612647126481264912650126511265212653126541265512656126571265812659126601266112662126631266412665126661266712668126691267012671126721267312674126751267612677126781267912680126811268212683126841268512686126871268812689126901269112692126931269412695126961269712698126991270012701127021270312704127051270612707127081270912710127111271212713127141271512716127171271812719127201272112722127231272412725127261272712728127291273012731127321273312734127351273612737127381273912740127411274212743127441274512746127471274812749127501275112752127531275412755127561275712758127591276012761127621276312764127651276612767127681276912770127711277212773127741277512776127771277812779127801278112782127831278412785127861278712788127891279012791127921279312794127951279612797127981279912800128011280212803128041280512806128071280812809128101281112812128131281412815128161281712818128191282012821128221282312824128251282612827128281282912830128311283212833128341283512836128371283812839128401284112842128431284412845128461284712848128491285012851128521285312854128551285612857128581285912860128611286212863128641286512866128671286812869128701287112872128731287412875128761287712878128791288012881128821288312884128851288612887128881288912890128911289212893128941289512896128971289812899129001290112902129031290412905129061290712908129091291012911129121291312914129151291612917129181291912920129211292212923129241292512926129271292812929129301293112932129331293412935129361293712938129391294012941129421294312944129451294612947129481294912950129511295212953129541295512956129571295812959129601296112962129631296412965129661296712968129691297012971129721297312974129751297612977129781297912980129811298212983129841298512986129871298812989129901299112992129931299412995129961299712998129991300013001130021300313004130051300613007130081300913010130111301213013130141301513016130171301813019130201302113022130231302413025130261302713028130291303013031130321303313034130351303613037130381303913040130411304213043130441304513046130471304813049130501305113052130531305413055130561305713058130591306013061130621306313064130651306613067130681306913070130711307213073130741307513076130771307813079130801308113082130831308413085130861308713088130891309013091130921309313094130951309613097130981309913100131011310213103131041310513106131071310813109131101311113112131131311413115131161311713118131191312013121131221312313124131251312613127131281312913130131311313213133131341313513136131371313813139131401314113142131431314413145131461314713148131491315013151131521315313154131551315613157131581315913160131611316213163131641316513166131671316813169131701317113172131731317413175131761317713178131791318013181131821318313184131851318613187131881318913190131911319213193131941319513196131971319813199132001320113202132031320413205132061320713208132091321013211132121321313214132151321613217132181321913220132211322213223132241322513226132271322813229132301323113232132331323413235132361323713238132391324013241132421324313244132451324613247132481324913250132511325213253132541325513256132571325813259132601326113262132631326413265132661326713268132691327013271132721327313274132751327613277132781327913280132811328213283132841328513286132871328813289132901329113292132931329413295132961329713298132991330013301133021330313304133051330613307133081330913310133111331213313133141331513316133171331813319133201332113322133231332413325133261332713328133291333013331133321333313334133351333613337133381333913340133411334213343133441334513346133471334813349133501335113352133531335413355133561335713358133591336013361133621336313364133651336613367133681336913370133711337213373133741337513376133771337813379133801338113382133831338413385133861338713388133891339013391133921339313394133951339613397133981339913400134011340213403134041340513406134071340813409134101341113412134131341413415134161341713418134191342013421134221342313424134251342613427134281342913430134311343213433134341343513436134371343813439134401344113442134431344413445134461344713448134491345013451134521345313454134551345613457134581345913460134611346213463134641346513466134671346813469134701347113472134731347413475134761347713478134791348013481134821348313484134851348613487134881348913490134911349213493134941349513496134971349813499135001350113502135031350413505135061350713508135091351013511135121351313514135151351613517135181351913520135211352213523135241352513526135271352813529135301353113532135331353413535135361353713538135391354013541135421354313544135451354613547135481354913550135511355213553135541355513556135571355813559135601356113562135631356413565135661356713568135691357013571135721357313574135751357613577135781357913580135811358213583135841358513586135871358813589135901359113592135931359413595135961359713598135991360013601136021360313604136051360613607136081360913610136111361213613136141361513616136171361813619136201362113622136231362413625136261362713628136291363013631136321363313634136351363613637136381363913640136411364213643136441364513646136471364813649136501365113652136531365413655136561365713658136591366013661136621366313664136651366613667136681366913670136711367213673136741367513676136771367813679136801368113682136831368413685136861368713688136891369013691136921369313694136951369613697136981369913700137011370213703137041370513706137071370813709137101371113712137131371413715137161371713718137191372013721137221372313724137251372613727137281372913730137311373213733137341373513736137371373813739137401374113742137431374413745137461374713748137491375013751137521375313754137551375613757137581375913760137611376213763137641376513766137671376813769137701377113772137731377413775137761377713778137791378013781137821378313784137851378613787137881378913790137911379213793137941379513796137971379813799138001380113802138031380413805138061380713808138091381013811138121381313814138151381613817138181381913820138211382213823138241382513826138271382813829138301383113832138331383413835138361383713838138391384013841138421384313844138451384613847138481384913850138511385213853138541385513856138571385813859138601386113862138631386413865138661386713868138691387013871138721387313874138751387613877138781387913880138811388213883138841388513886138871388813889138901389113892138931389413895138961389713898138991390013901139021390313904139051390613907139081390913910139111391213913139141391513916139171391813919139201392113922139231392413925139261392713928139291393013931139321393313934139351393613937139381393913940139411394213943139441394513946139471394813949139501395113952139531395413955139561395713958139591396013961139621396313964139651396613967139681396913970139711397213973139741397513976139771397813979139801398113982139831398413985139861398713988139891399013991139921399313994139951399613997139981399914000140011400214003140041400514006140071400814009140101401114012140131401414015140161401714018140191402014021140221402314024140251402614027140281402914030140311403214033140341403514036140371403814039140401404114042140431404414045140461404714048140491405014051140521405314054140551405614057140581405914060140611406214063140641406514066140671406814069140701407114072140731407414075140761407714078140791408014081140821408314084140851408614087140881408914090140911409214093140941409514096140971409814099141001410114102141031410414105141061410714108141091411014111141121411314114141151411614117141181411914120141211412214123141241412514126141271412814129141301413114132141331413414135141361413714138141391414014141141421414314144141451414614147141481414914150141511415214153141541415514156141571415814159141601416114162141631416414165141661416714168141691417014171141721417314174141751417614177141781417914180141811418214183141841418514186141871418814189141901419114192141931419414195141961419714198141991420014201142021420314204142051420614207142081420914210142111421214213142141421514216142171421814219142201422114222142231422414225142261422714228142291423014231142321423314234142351423614237142381423914240142411424214243142441424514246142471424814249142501425114252142531425414255142561425714258142591426014261142621426314264142651426614267142681426914270142711427214273142741427514276142771427814279142801428114282142831428414285142861428714288142891429014291142921429314294142951429614297142981429914300143011430214303143041430514306143071430814309143101431114312143131431414315143161431714318143191432014321143221432314324143251432614327143281432914330143311433214333143341433514336143371433814339143401434114342143431434414345143461434714348143491435014351143521435314354143551435614357143581435914360143611436214363143641436514366143671436814369143701437114372143731437414375143761437714378143791438014381143821438314384143851438614387143881438914390143911439214393143941439514396143971439814399144001440114402144031440414405144061440714408144091441014411144121441314414144151441614417144181441914420144211442214423144241442514426144271442814429144301443114432144331443414435144361443714438144391444014441144421444314444144451444614447144481444914450144511445214453144541445514456144571445814459144601446114462144631446414465144661446714468144691447014471144721447314474144751447614477144781447914480144811448214483144841448514486144871448814489144901449114492144931449414495144961449714498144991450014501145021450314504145051450614507145081450914510145111451214513145141451514516145171451814519145201452114522145231452414525145261452714528145291453014531145321453314534145351453614537145381453914540145411454214543145441454514546145471454814549145501455114552145531455414555145561455714558145591456014561145621456314564145651456614567145681456914570145711457214573145741457514576145771457814579145801458114582145831458414585145861458714588145891459014591145921459314594145951459614597145981459914600146011460214603146041460514606146071460814609146101461114612146131461414615146161461714618146191462014621146221462314624146251462614627146281462914630146311463214633146341463514636146371463814639146401464114642146431464414645146461464714648146491465014651146521465314654146551465614657146581465914660146611466214663146641466514666146671466814669146701467114672146731467414675146761467714678146791468014681146821468314684146851468614687146881468914690146911469214693146941469514696146971469814699147001470114702147031470414705147061470714708147091471014711147121471314714147151471614717147181471914720147211472214723147241472514726147271472814729147301473114732147331473414735147361473714738147391474014741147421474314744147451474614747147481474914750147511475214753147541475514756147571475814759147601476114762147631476414765147661476714768147691477014771147721477314774147751477614777147781477914780147811478214783147841478514786147871478814789147901479114792147931479414795147961479714798147991480014801148021480314804148051480614807148081480914810148111481214813148141481514816148171481814819148201482114822148231482414825148261482714828148291483014831148321483314834148351483614837148381483914840148411484214843148441484514846148471484814849148501485114852148531485414855148561485714858148591486014861148621486314864148651486614867148681486914870148711487214873148741487514876148771487814879148801488114882148831488414885148861488714888148891489014891148921489314894148951489614897148981489914900149011490214903149041490514906149071490814909149101491114912149131491414915149161491714918149191492014921149221492314924149251492614927149281492914930149311493214933149341493514936149371493814939149401494114942149431494414945149461494714948149491495014951149521495314954149551495614957149581495914960149611496214963149641496514966149671496814969149701497114972149731497414975149761497714978149791498014981149821498314984149851498614987149881498914990149911499214993149941499514996149971499814999150001500115002150031500415005150061500715008150091501015011150121501315014150151501615017150181501915020150211502215023150241502515026150271502815029150301503115032150331503415035150361503715038150391504015041150421504315044150451504615047150481504915050150511505215053150541505515056150571505815059150601506115062150631506415065150661506715068150691507015071150721507315074150751507615077150781507915080150811508215083150841508515086150871508815089150901509115092150931509415095150961509715098150991510015101151021510315104151051510615107151081510915110151111511215113151141511515116151171511815119151201512115122151231512415125151261512715128151291513015131151321513315134151351513615137151381513915140151411514215143151441514515146151471514815149151501515115152151531515415155151561515715158151591516015161151621516315164151651516615167151681516915170151711517215173151741517515176151771517815179151801518115182151831518415185151861518715188151891519015191151921519315194151951519615197151981519915200152011520215203152041520515206152071520815209152101521115212152131521415215152161521715218152191522015221152221522315224152251522615227152281522915230152311523215233152341523515236152371523815239152401524115242152431524415245152461524715248152491525015251152521525315254152551525615257152581525915260152611526215263152641526515266152671526815269152701527115272152731527415275152761527715278152791528015281152821528315284152851528615287152881528915290152911529215293152941529515296152971529815299153001530115302153031530415305153061530715308153091531015311153121531315314153151531615317153181531915320153211532215323153241532515326153271532815329153301533115332153331533415335153361533715338153391534015341153421534315344153451534615347153481534915350153511535215353153541535515356153571535815359153601536115362153631536415365153661536715368153691537015371153721537315374153751537615377153781537915380153811538215383153841538515386153871538815389153901539115392153931539415395153961539715398153991540015401154021540315404154051540615407154081540915410154111541215413154141541515416154171541815419154201542115422154231542415425154261542715428154291543015431154321543315434154351543615437154381543915440154411544215443154441544515446154471544815449154501545115452154531545415455154561545715458154591546015461154621546315464154651546615467154681546915470154711547215473154741547515476154771547815479154801548115482154831548415485154861548715488154891549015491154921549315494154951549615497154981549915500155011550215503155041550515506155071550815509155101551115512155131551415515155161551715518155191552015521155221552315524155251552615527155281552915530155311553215533155341553515536155371553815539155401554115542155431554415545155461554715548155491555015551155521555315554155551555615557155581555915560155611556215563155641556515566155671556815569155701557115572155731557415575155761557715578155791558015581155821558315584155851558615587155881558915590155911559215593155941559515596155971559815599156001560115602156031560415605156061560715608156091561015611156121561315614156151561615617156181561915620156211562215623156241562515626156271562815629156301563115632156331563415635156361563715638156391564015641156421564315644156451564615647156481564915650156511565215653156541565515656156571565815659156601566115662156631566415665156661566715668156691567015671156721567315674156751567615677156781567915680156811568215683156841568515686156871568815689156901569115692156931569415695156961569715698156991570015701157021570315704157051570615707157081570915710157111571215713157141571515716157171571815719157201572115722157231572415725157261572715728157291573015731157321573315734157351573615737157381573915740157411574215743157441574515746157471574815749157501575115752157531575415755157561575715758157591576015761157621576315764157651576615767157681576915770157711577215773157741577515776157771577815779157801578115782157831578415785157861578715788157891579015791157921579315794157951579615797157981579915800158011580215803158041580515806158071580815809158101581115812158131581415815158161581715818158191582015821158221582315824158251582615827158281582915830158311583215833158341583515836158371583815839158401584115842158431584415845158461584715848158491585015851158521585315854158551585615857158581585915860158611586215863158641586515866158671586815869158701587115872158731587415875158761587715878158791588015881158821588315884158851588615887158881588915890158911589215893158941589515896158971589815899159001590115902159031590415905159061590715908159091591015911159121591315914159151591615917159181591915920159211592215923159241592515926159271592815929159301593115932159331593415935159361593715938159391594015941159421594315944159451594615947159481594915950159511595215953159541595515956159571595815959159601596115962159631596415965159661596715968159691597015971159721597315974159751597615977159781597915980159811598215983159841598515986159871598815989159901599115992159931599415995159961599715998159991600016001160021600316004160051600616007160081600916010160111601216013160141601516016160171601816019160201602116022160231602416025160261602716028160291603016031160321603316034160351603616037160381603916040160411604216043160441604516046160471604816049160501605116052160531605416055160561605716058160591606016061160621606316064160651606616067160681606916070160711607216073160741607516076160771607816079160801608116082160831608416085160861608716088160891609016091160921609316094160951609616097160981609916100161011610216103161041610516106161071610816109161101611116112161131611416115161161611716118161191612016121161221612316124161251612616127161281612916130161311613216133161341613516136161371613816139161401614116142161431614416145161461614716148161491615016151161521615316154161551615616157161581615916160161611616216163161641616516166161671616816169161701617116172161731617416175161761617716178161791618016181161821618316184161851618616187161881618916190161911619216193161941619516196161971619816199162001620116202162031620416205162061620716208162091621016211162121621316214162151621616217162181621916220162211622216223162241622516226162271622816229162301623116232162331623416235162361623716238162391624016241162421624316244162451624616247162481624916250162511625216253162541625516256162571625816259162601626116262162631626416265162661626716268162691627016271162721627316274162751627616277162781627916280162811628216283162841628516286162871628816289162901629116292162931629416295162961629716298162991630016301163021630316304163051630616307163081630916310163111631216313163141631516316163171631816319163201632116322163231632416325163261632716328163291633016331163321633316334163351633616337163381633916340163411634216343163441634516346163471634816349163501635116352163531635416355163561635716358163591636016361163621636316364163651636616367163681636916370163711637216373163741637516376163771637816379163801638116382163831638416385163861638716388163891639016391163921639316394163951639616397163981639916400164011640216403164041640516406164071640816409164101641116412164131641416415164161641716418164191642016421164221642316424164251642616427164281642916430164311643216433164341643516436164371643816439164401644116442164431644416445164461644716448164491645016451164521645316454164551645616457164581645916460164611646216463164641646516466164671646816469164701647116472164731647416475164761647716478164791648016481164821648316484164851648616487164881648916490164911649216493164941649516496164971649816499165001650116502165031650416505165061650716508165091651016511165121651316514165151651616517165181651916520165211652216523165241652516526165271652816529165301653116532165331653416535165361653716538165391654016541165421654316544165451654616547165481654916550165511655216553165541655516556165571655816559165601656116562165631656416565165661656716568165691657016571165721657316574165751657616577165781657916580165811658216583165841658516586165871658816589165901659116592165931659416595165961659716598165991660016601166021660316604166051660616607166081660916610166111661216613166141661516616166171661816619166201662116622166231662416625166261662716628166291663016631166321663316634166351663616637166381663916640166411664216643166441664516646166471664816649166501665116652166531665416655166561665716658166591666016661166621666316664166651666616667166681666916670166711667216673166741667516676166771667816679166801668116682166831668416685166861668716688166891669016691166921669316694166951669616697166981669916700167011670216703167041670516706167071670816709167101671116712167131671416715167161671716718167191672016721167221672316724167251672616727167281672916730167311673216733167341673516736167371673816739167401674116742167431674416745167461674716748167491675016751167521675316754167551675616757167581675916760167611676216763167641676516766167671676816769167701677116772167731677416775167761677716778167791678016781167821678316784167851678616787167881678916790167911679216793167941679516796167971679816799168001680116802168031680416805168061680716808168091681016811168121681316814168151681616817168181681916820168211682216823168241682516826168271682816829168301683116832168331683416835168361683716838168391684016841168421684316844168451684616847168481684916850168511685216853168541685516856168571685816859168601686116862168631686416865168661686716868168691687016871168721687316874168751687616877168781687916880168811688216883168841688516886168871688816889168901689116892168931689416895168961689716898168991690016901169021690316904169051690616907169081690916910169111691216913169141691516916169171691816919169201692116922169231692416925169261692716928169291693016931169321693316934169351693616937169381693916940169411694216943169441694516946169471694816949169501695116952169531695416955169561695716958169591696016961169621696316964169651696616967169681696916970169711697216973169741697516976169771697816979169801698116982169831698416985169861698716988169891699016991169921699316994169951699616997169981699917000170011700217003170041700517006170071700817009170101701117012170131701417015170161701717018170191702017021170221702317024170251702617027170281702917030170311703217033170341703517036170371703817039170401704117042170431704417045170461704717048170491705017051170521705317054170551705617057170581705917060170611706217063170641706517066170671706817069170701707117072170731707417075170761707717078170791708017081170821708317084170851708617087170881708917090170911709217093170941709517096170971709817099171001710117102171031710417105171061710717108171091711017111171121711317114171151711617117171181711917120171211712217123171241712517126171271712817129171301713117132171331713417135171361713717138171391714017141171421714317144171451714617147171481714917150171511715217153171541715517156171571715817159171601716117162171631716417165171661716717168171691717017171171721717317174171751717617177171781717917180171811718217183171841718517186171871718817189171901719117192171931719417195171961719717198171991720017201172021720317204172051720617207172081720917210172111721217213172141721517216172171721817219172201722117222172231722417225172261722717228172291723017231172321723317234172351723617237172381723917240172411724217243172441724517246172471724817249172501725117252172531725417255172561725717258172591726017261172621726317264172651726617267172681726917270172711727217273172741727517276172771727817279172801728117282172831728417285172861728717288172891729017291172921729317294172951729617297172981729917300173011730217303173041730517306173071730817309173101731117312173131731417315173161731717318173191732017321173221732317324173251732617327173281732917330173311733217333173341733517336173371733817339173401734117342173431734417345173461734717348173491735017351173521735317354173551735617357173581735917360173611736217363173641736517366173671736817369173701737117372173731737417375173761737717378173791738017381173821738317384173851738617387173881738917390173911739217393173941739517396173971739817399174001740117402174031740417405174061740717408174091741017411174121741317414174151741617417174181741917420174211742217423174241742517426174271742817429174301743117432174331743417435174361743717438174391744017441174421744317444174451744617447174481744917450174511745217453174541745517456174571745817459174601746117462174631746417465174661746717468174691747017471174721747317474174751747617477174781747917480174811748217483174841748517486174871748817489174901749117492174931749417495174961749717498174991750017501175021750317504175051750617507175081750917510175111751217513175141751517516175171751817519175201752117522175231752417525175261752717528175291753017531175321753317534175351753617537175381753917540175411754217543175441754517546175471754817549175501755117552175531755417555175561755717558175591756017561175621756317564175651756617567175681756917570175711757217573175741757517576175771757817579175801758117582175831758417585175861758717588175891759017591175921759317594175951759617597175981759917600176011760217603176041760517606176071760817609176101761117612176131761417615176161761717618176191762017621176221762317624176251762617627176281762917630176311763217633176341763517636176371763817639176401764117642176431764417645176461764717648176491765017651176521765317654176551765617657176581765917660176611766217663176641766517666176671766817669176701767117672176731767417675176761767717678176791768017681176821768317684176851768617687176881768917690176911769217693176941769517696176971769817699177001770117702177031770417705177061770717708177091771017711177121771317714177151771617717177181771917720177211772217723177241772517726177271772817729177301773117732177331773417735177361773717738177391774017741177421774317744177451774617747177481774917750177511775217753177541775517756177571775817759177601776117762177631776417765177661776717768177691777017771177721777317774177751777617777177781777917780177811778217783177841778517786177871778817789177901779117792177931779417795177961779717798177991780017801178021780317804178051780617807178081780917810178111781217813178141781517816178171781817819178201782117822178231782417825178261782717828178291783017831178321783317834178351783617837178381783917840178411784217843178441784517846178471784817849178501785117852178531785417855178561785717858178591786017861178621786317864178651786617867178681786917870178711787217873178741787517876178771787817879178801788117882178831788417885178861788717888178891789017891178921789317894178951789617897178981789917900179011790217903179041790517906179071790817909179101791117912179131791417915179161791717918179191792017921179221792317924179251792617927179281792917930179311793217933179341793517936179371793817939179401794117942179431794417945179461794717948179491795017951179521795317954179551795617957179581795917960179611796217963179641796517966179671796817969179701797117972179731797417975179761797717978179791798017981179821798317984179851798617987179881798917990179911799217993179941799517996179971799817999180001800118002180031800418005180061800718008180091801018011180121801318014180151801618017180181801918020180211802218023180241802518026180271802818029180301803118032180331803418035180361803718038180391804018041180421804318044180451804618047180481804918050180511805218053180541805518056180571805818059180601806118062180631806418065180661806718068180691807018071180721807318074180751807618077180781807918080180811808218083180841808518086180871808818089180901809118092180931809418095180961809718098180991810018101181021810318104181051810618107181081810918110181111811218113181141811518116181171811818119181201812118122181231812418125181261812718128181291813018131181321813318134181351813618137181381813918140181411814218143181441814518146181471814818149181501815118152181531815418155181561815718158181591816018161181621816318164181651816618167181681816918170181711817218173181741817518176181771817818179181801818118182181831818418185181861818718188181891819018191181921819318194181951819618197181981819918200182011820218203182041820518206182071820818209182101821118212182131821418215182161821718218182191822018221182221822318224182251822618227182281822918230182311823218233182341823518236182371823818239182401824118242182431824418245182461824718248182491825018251182521825318254182551825618257182581825918260182611826218263182641826518266182671826818269182701827118272182731827418275182761827718278182791828018281182821828318284182851828618287182881828918290182911829218293182941829518296182971829818299183001830118302183031830418305183061830718308183091831018311183121831318314183151831618317183181831918320183211832218323183241832518326183271832818329183301833118332183331833418335183361833718338183391834018341183421834318344183451834618347183481834918350183511835218353183541835518356183571835818359183601836118362183631836418365183661836718368183691837018371183721837318374183751837618377183781837918380183811838218383183841838518386183871838818389183901839118392183931839418395183961839718398183991840018401184021840318404184051840618407184081840918410184111841218413184141841518416184171841818419184201842118422184231842418425184261842718428184291843018431184321843318434184351843618437184381843918440184411844218443184441844518446184471844818449184501845118452184531845418455184561845718458184591846018461184621846318464184651846618467184681846918470184711847218473184741847518476184771847818479184801848118482184831848418485184861848718488184891849018491184921849318494184951849618497184981849918500185011850218503185041850518506185071850818509185101851118512185131851418515185161851718518185191852018521185221852318524185251852618527185281852918530185311853218533185341853518536185371853818539185401854118542185431854418545185461854718548185491855018551185521855318554185551855618557185581855918560185611856218563185641856518566185671856818569185701857118572185731857418575185761857718578185791858018581185821858318584185851858618587185881858918590185911859218593185941859518596185971859818599186001860118602186031860418605186061860718608186091861018611186121861318614186151861618617186181861918620186211862218623186241862518626186271862818629186301863118632186331863418635186361863718638186391864018641186421864318644186451864618647186481864918650186511865218653186541865518656186571865818659186601866118662186631866418665186661866718668186691867018671
  1. @%:@! /bin/sh
  2. @%:@ Guess values for system-dependent variables and create Makefiles.
  3. @%:@ Generated by GNU Autoconf 2.69 for zlog 1.0.
  4. @%:@
  5. @%:@ Report bugs to <BUG-REPORT-ADDRESS>.
  6. @%:@
  7. @%:@
  8. @%:@ Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
  9. @%:@
  10. @%:@
  11. @%:@ This configure script is free software; the Free Software Foundation
  12. @%:@ gives unlimited permission to copy, distribute and modify it.
  13. ## -------------------- ##
  14. ## M4sh Initialization. ##
  15. ## -------------------- ##
  16. # Be more Bourne compatible
  17. DUALCASE=1; export DUALCASE # for MKS sh
  18. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  19. emulate sh
  20. NULLCMD=:
  21. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  22. # is contrary to our usage. Disable this feature.
  23. alias -g '${1+"$@"}'='"$@"'
  24. setopt NO_GLOB_SUBST
  25. else
  26. case `(set -o) 2>/dev/null` in @%:@(
  27. *posix*) :
  28. set -o posix ;; @%:@(
  29. *) :
  30. ;;
  31. esac
  32. fi
  33. as_nl='
  34. '
  35. export as_nl
  36. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  37. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  38. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  39. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  40. # Prefer a ksh shell builtin over an external printf program on Solaris,
  41. # but without wasting forks for bash or zsh.
  42. if test -z "$BASH_VERSION$ZSH_VERSION" \
  43. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  44. as_echo='print -r --'
  45. as_echo_n='print -rn --'
  46. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  47. as_echo='printf %s\n'
  48. as_echo_n='printf %s'
  49. else
  50. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  51. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  52. as_echo_n='/usr/ucb/echo -n'
  53. else
  54. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  55. as_echo_n_body='eval
  56. arg=$1;
  57. case $arg in @%:@(
  58. *"$as_nl"*)
  59. expr "X$arg" : "X\\(.*\\)$as_nl";
  60. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  61. esac;
  62. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  63. '
  64. export as_echo_n_body
  65. as_echo_n='sh -c $as_echo_n_body as_echo'
  66. fi
  67. export as_echo_body
  68. as_echo='sh -c $as_echo_body as_echo'
  69. fi
  70. # The user is always right.
  71. if test "${PATH_SEPARATOR+set}" != set; then
  72. PATH_SEPARATOR=:
  73. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  74. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  75. PATH_SEPARATOR=';'
  76. }
  77. fi
  78. # IFS
  79. # We need space, tab and new line, in precisely that order. Quoting is
  80. # there to prevent editors from complaining about space-tab.
  81. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  82. # splitting by setting IFS to empty value.)
  83. IFS=" "" $as_nl"
  84. # Find who we are. Look in the path if we contain no directory separator.
  85. as_myself=
  86. case $0 in @%:@((
  87. *[\\/]* ) as_myself=$0 ;;
  88. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  89. for as_dir in $PATH
  90. do
  91. IFS=$as_save_IFS
  92. test -z "$as_dir" && as_dir=.
  93. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  94. done
  95. IFS=$as_save_IFS
  96. ;;
  97. esac
  98. # We did not find ourselves, most probably we were run as `sh COMMAND'
  99. # in which case we are not to be found in the path.
  100. if test "x$as_myself" = x; then
  101. as_myself=$0
  102. fi
  103. if test ! -f "$as_myself"; then
  104. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  105. exit 1
  106. fi
  107. # Unset variables that we do not need and which cause bugs (e.g. in
  108. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  109. # suppresses any "Segmentation fault" message there. '((' could
  110. # trigger a bug in pdksh 5.2.14.
  111. for as_var in BASH_ENV ENV MAIL MAILPATH
  112. do eval test x\${$as_var+set} = xset \
  113. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  114. done
  115. PS1='$ '
  116. PS2='> '
  117. PS4='+ '
  118. # NLS nuisances.
  119. LC_ALL=C
  120. export LC_ALL
  121. LANGUAGE=C
  122. export LANGUAGE
  123. # CDPATH.
  124. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  125. # Use a proper internal environment variable to ensure we don't fall
  126. # into an infinite loop, continuously re-executing ourselves.
  127. if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
  128. _as_can_reexec=no; export _as_can_reexec;
  129. # We cannot yet assume a decent shell, so we have to provide a
  130. # neutralization value for shells without unset; and this also
  131. # works around shells that cannot unset nonexistent variables.
  132. # Preserve -v and -x to the replacement shell.
  133. BASH_ENV=/dev/null
  134. ENV=/dev/null
  135. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  136. case $- in @%:@ ((((
  137. *v*x* | *x*v* ) as_opts=-vx ;;
  138. *v* ) as_opts=-v ;;
  139. *x* ) as_opts=-x ;;
  140. * ) as_opts= ;;
  141. esac
  142. exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
  143. # Admittedly, this is quite paranoid, since all the known shells bail
  144. # out after a failed `exec'.
  145. $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
  146. as_fn_exit 255
  147. fi
  148. # We don't want this to propagate to other subprocesses.
  149. { _as_can_reexec=; unset _as_can_reexec;}
  150. if test "x$CONFIG_SHELL" = x; then
  151. as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
  152. emulate sh
  153. NULLCMD=:
  154. # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
  155. # is contrary to our usage. Disable this feature.
  156. alias -g '\${1+\"\$@\"}'='\"\$@\"'
  157. setopt NO_GLOB_SUBST
  158. else
  159. case \`(set -o) 2>/dev/null\` in @%:@(
  160. *posix*) :
  161. set -o posix ;; @%:@(
  162. *) :
  163. ;;
  164. esac
  165. fi
  166. "
  167. as_required="as_fn_return () { (exit \$1); }
  168. as_fn_success () { as_fn_return 0; }
  169. as_fn_failure () { as_fn_return 1; }
  170. as_fn_ret_success () { return 0; }
  171. as_fn_ret_failure () { return 1; }
  172. exitcode=0
  173. as_fn_success || { exitcode=1; echo as_fn_success failed.; }
  174. as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
  175. as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
  176. as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
  177. if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
  178. else
  179. exitcode=1; echo positional parameters were not saved.
  180. fi
  181. test x\$exitcode = x0 || exit 1
  182. test -x / || exit 1"
  183. as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
  184. as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
  185. eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
  186. test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
  187. test \$(( 1 + 1 )) = 2 || exit 1
  188. test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
  189. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  190. ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
  191. ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
  192. PATH=/empty FPATH=/empty; export PATH FPATH
  193. test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
  194. || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
  195. if (eval "$as_required") 2>/dev/null; then :
  196. as_have_required=yes
  197. else
  198. as_have_required=no
  199. fi
  200. if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
  201. else
  202. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  203. as_found=false
  204. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  205. do
  206. IFS=$as_save_IFS
  207. test -z "$as_dir" && as_dir=.
  208. as_found=:
  209. case $as_dir in @%:@(
  210. /*)
  211. for as_base in sh bash ksh sh5; do
  212. # Try only shells that exist, to save several forks.
  213. as_shell=$as_dir/$as_base
  214. if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
  215. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
  216. CONFIG_SHELL=$as_shell as_have_required=yes
  217. if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
  218. break 2
  219. fi
  220. fi
  221. done;;
  222. esac
  223. as_found=false
  224. done
  225. $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
  226. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
  227. CONFIG_SHELL=$SHELL as_have_required=yes
  228. fi; }
  229. IFS=$as_save_IFS
  230. if test "x$CONFIG_SHELL" != x; then :
  231. export CONFIG_SHELL
  232. # We cannot yet assume a decent shell, so we have to provide a
  233. # neutralization value for shells without unset; and this also
  234. # works around shells that cannot unset nonexistent variables.
  235. # Preserve -v and -x to the replacement shell.
  236. BASH_ENV=/dev/null
  237. ENV=/dev/null
  238. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  239. case $- in @%:@ ((((
  240. *v*x* | *x*v* ) as_opts=-vx ;;
  241. *v* ) as_opts=-v ;;
  242. *x* ) as_opts=-x ;;
  243. * ) as_opts= ;;
  244. esac
  245. exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
  246. # Admittedly, this is quite paranoid, since all the known shells bail
  247. # out after a failed `exec'.
  248. $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
  249. exit 255
  250. fi
  251. if test x$as_have_required = xno; then :
  252. $as_echo "$0: This script requires a shell more modern than all"
  253. $as_echo "$0: the shells that I found on your system."
  254. if test x${ZSH_VERSION+set} = xset ; then
  255. $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
  256. $as_echo "$0: be upgraded to zsh 4.3.4 or later."
  257. else
  258. $as_echo "$0: Please tell bug-autoconf@gnu.org and BUG-REPORT-ADDRESS
  259. $0: about your system, including any error possibly output
  260. $0: before this message. Then install a modern shell, or
  261. $0: manually run the script under such a shell if you do
  262. $0: have one."
  263. fi
  264. exit 1
  265. fi
  266. fi
  267. fi
  268. SHELL=${CONFIG_SHELL-/bin/sh}
  269. export SHELL
  270. # Unset more variables known to interfere with behavior of common tools.
  271. CLICOLOR_FORCE= GREP_OPTIONS=
  272. unset CLICOLOR_FORCE GREP_OPTIONS
  273. ## --------------------- ##
  274. ## M4sh Shell Functions. ##
  275. ## --------------------- ##
  276. @%:@ as_fn_unset VAR
  277. @%:@ ---------------
  278. @%:@ Portably unset VAR.
  279. as_fn_unset ()
  280. {
  281. { eval $1=; unset $1;}
  282. }
  283. as_unset=as_fn_unset
  284. @%:@ as_fn_set_status STATUS
  285. @%:@ -----------------------
  286. @%:@ Set @S|@? to STATUS, without forking.
  287. as_fn_set_status ()
  288. {
  289. return $1
  290. } @%:@ as_fn_set_status
  291. @%:@ as_fn_exit STATUS
  292. @%:@ -----------------
  293. @%:@ Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  294. as_fn_exit ()
  295. {
  296. set +e
  297. as_fn_set_status $1
  298. exit $1
  299. } @%:@ as_fn_exit
  300. @%:@ as_fn_mkdir_p
  301. @%:@ -------------
  302. @%:@ Create "@S|@as_dir" as a directory, including parents if necessary.
  303. as_fn_mkdir_p ()
  304. {
  305. case $as_dir in #(
  306. -*) as_dir=./$as_dir;;
  307. esac
  308. test -d "$as_dir" || eval $as_mkdir_p || {
  309. as_dirs=
  310. while :; do
  311. case $as_dir in #(
  312. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  313. *) as_qdir=$as_dir;;
  314. esac
  315. as_dirs="'$as_qdir' $as_dirs"
  316. as_dir=`$as_dirname -- "$as_dir" ||
  317. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  318. X"$as_dir" : 'X\(//\)[^/]' \| \
  319. X"$as_dir" : 'X\(//\)$' \| \
  320. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  321. $as_echo X"$as_dir" |
  322. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  323. s//\1/
  324. q
  325. }
  326. /^X\(\/\/\)[^/].*/{
  327. s//\1/
  328. q
  329. }
  330. /^X\(\/\/\)$/{
  331. s//\1/
  332. q
  333. }
  334. /^X\(\/\).*/{
  335. s//\1/
  336. q
  337. }
  338. s/.*/./; q'`
  339. test -d "$as_dir" && break
  340. done
  341. test -z "$as_dirs" || eval "mkdir $as_dirs"
  342. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  343. } @%:@ as_fn_mkdir_p
  344. @%:@ as_fn_executable_p FILE
  345. @%:@ -----------------------
  346. @%:@ Test if FILE is an executable regular file.
  347. as_fn_executable_p ()
  348. {
  349. test -f "$1" && test -x "$1"
  350. } @%:@ as_fn_executable_p
  351. @%:@ as_fn_append VAR VALUE
  352. @%:@ ----------------------
  353. @%:@ Append the text in VALUE to the end of the definition contained in VAR. Take
  354. @%:@ advantage of any shell optimizations that allow amortized linear growth over
  355. @%:@ repeated appends, instead of the typical quadratic growth present in naive
  356. @%:@ implementations.
  357. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  358. eval 'as_fn_append ()
  359. {
  360. eval $1+=\$2
  361. }'
  362. else
  363. as_fn_append ()
  364. {
  365. eval $1=\$$1\$2
  366. }
  367. fi # as_fn_append
  368. @%:@ as_fn_arith ARG...
  369. @%:@ ------------------
  370. @%:@ Perform arithmetic evaluation on the ARGs, and store the result in the
  371. @%:@ global @S|@as_val. Take advantage of shells that can avoid forks. The arguments
  372. @%:@ must be portable across @S|@(()) and expr.
  373. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  374. eval 'as_fn_arith ()
  375. {
  376. as_val=$(( $* ))
  377. }'
  378. else
  379. as_fn_arith ()
  380. {
  381. as_val=`expr "$@" || test $? -eq 1`
  382. }
  383. fi # as_fn_arith
  384. @%:@ as_fn_error STATUS ERROR [LINENO LOG_FD]
  385. @%:@ ----------------------------------------
  386. @%:@ Output "`basename @S|@0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  387. @%:@ provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  388. @%:@ script with STATUS, using 1 if that was 0.
  389. as_fn_error ()
  390. {
  391. as_status=$1; test $as_status -eq 0 && as_status=1
  392. if test "$4"; then
  393. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  394. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  395. fi
  396. $as_echo "$as_me: error: $2" >&2
  397. as_fn_exit $as_status
  398. } @%:@ as_fn_error
  399. if expr a : '\(a\)' >/dev/null 2>&1 &&
  400. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  401. as_expr=expr
  402. else
  403. as_expr=false
  404. fi
  405. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  406. as_basename=basename
  407. else
  408. as_basename=false
  409. fi
  410. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  411. as_dirname=dirname
  412. else
  413. as_dirname=false
  414. fi
  415. as_me=`$as_basename -- "$0" ||
  416. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  417. X"$0" : 'X\(//\)$' \| \
  418. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  419. $as_echo X/"$0" |
  420. sed '/^.*\/\([^/][^/]*\)\/*$/{
  421. s//\1/
  422. q
  423. }
  424. /^X\/\(\/\/\)$/{
  425. s//\1/
  426. q
  427. }
  428. /^X\/\(\/\).*/{
  429. s//\1/
  430. q
  431. }
  432. s/.*/./; q'`
  433. # Avoid depending upon Character Ranges.
  434. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  435. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  436. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  437. as_cr_digits='0123456789'
  438. as_cr_alnum=$as_cr_Letters$as_cr_digits
  439. as_lineno_1=$LINENO as_lineno_1a=$LINENO
  440. as_lineno_2=$LINENO as_lineno_2a=$LINENO
  441. eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
  442. test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
  443. # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
  444. sed -n '
  445. p
  446. /[$]LINENO/=
  447. ' <$as_myself |
  448. sed '
  449. s/[$]LINENO.*/&-/
  450. t lineno
  451. b
  452. :lineno
  453. N
  454. :loop
  455. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  456. t loop
  457. s/-\n.*//
  458. ' >$as_me.lineno &&
  459. chmod +x "$as_me.lineno" ||
  460. { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
  461. # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
  462. # already done that, so ensure we don't try to do so again and fall
  463. # in an infinite loop. This has already happened in practice.
  464. _as_can_reexec=no; export _as_can_reexec
  465. # Don't try to exec as it changes $[0], causing all sort of problems
  466. # (the dirname of $[0] is not the place where we might find the
  467. # original and so on. Autoconf is especially sensitive to this).
  468. . "./$as_me.lineno"
  469. # Exit status is that of the last command.
  470. exit
  471. }
  472. ECHO_C= ECHO_N= ECHO_T=
  473. case `echo -n x` in @%:@(((((
  474. -n*)
  475. case `echo 'xy\c'` in
  476. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  477. xy) ECHO_C='\c';;
  478. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  479. ECHO_T=' ';;
  480. esac;;
  481. *)
  482. ECHO_N='-n';;
  483. esac
  484. rm -f conf$$ conf$$.exe conf$$.file
  485. if test -d conf$$.dir; then
  486. rm -f conf$$.dir/conf$$.file
  487. else
  488. rm -f conf$$.dir
  489. mkdir conf$$.dir 2>/dev/null
  490. fi
  491. if (echo >conf$$.file) 2>/dev/null; then
  492. if ln -s conf$$.file conf$$ 2>/dev/null; then
  493. as_ln_s='ln -s'
  494. # ... but there are two gotchas:
  495. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  496. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  497. # In both cases, we have to default to `cp -pR'.
  498. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  499. as_ln_s='cp -pR'
  500. elif ln conf$$.file conf$$ 2>/dev/null; then
  501. as_ln_s=ln
  502. else
  503. as_ln_s='cp -pR'
  504. fi
  505. else
  506. as_ln_s='cp -pR'
  507. fi
  508. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  509. rmdir conf$$.dir 2>/dev/null
  510. if mkdir -p . 2>/dev/null; then
  511. as_mkdir_p='mkdir -p "$as_dir"'
  512. else
  513. test -d ./-p && rmdir ./-p
  514. as_mkdir_p=false
  515. fi
  516. as_test_x='test -x'
  517. as_executable_p=as_fn_executable_p
  518. # Sed expression to map a string onto a valid CPP name.
  519. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  520. # Sed expression to map a string onto a valid variable name.
  521. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  522. SHELL=${CONFIG_SHELL-/bin/sh}
  523. test -n "$DJDIR" || exec 7<&0 </dev/null
  524. exec 6>&1
  525. # Name of the host.
  526. # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
  527. # so uname gets run too.
  528. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  529. #
  530. # Initializations.
  531. #
  532. ac_default_prefix=/usr/local
  533. ac_clean_files=
  534. ac_config_libobj_dir=.
  535. LIB@&t@OBJS=
  536. cross_compiling=no
  537. subdirs=
  538. MFLAGS=
  539. MAKEFLAGS=
  540. # Identity of this package.
  541. PACKAGE_NAME='zlog'
  542. PACKAGE_TARNAME='zlog'
  543. PACKAGE_VERSION='1.0'
  544. PACKAGE_STRING='zlog 1.0'
  545. PACKAGE_BUGREPORT='BUG-REPORT-ADDRESS'
  546. PACKAGE_URL=''
  547. ac_unique_file="log_queue.cpp"
  548. # Factoring default headers for most tests.
  549. ac_includes_default="\
  550. #include <stdio.h>
  551. #ifdef HAVE_SYS_TYPES_H
  552. # include <sys/types.h>
  553. #endif
  554. #ifdef HAVE_SYS_STAT_H
  555. # include <sys/stat.h>
  556. #endif
  557. #ifdef STDC_HEADERS
  558. # include <stdlib.h>
  559. # include <stddef.h>
  560. #else
  561. # ifdef HAVE_STDLIB_H
  562. # include <stdlib.h>
  563. # endif
  564. #endif
  565. #ifdef HAVE_STRING_H
  566. # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
  567. # include <memory.h>
  568. # endif
  569. # include <string.h>
  570. #endif
  571. #ifdef HAVE_STRINGS_H
  572. # include <strings.h>
  573. #endif
  574. #ifdef HAVE_INTTYPES_H
  575. # include <inttypes.h>
  576. #endif
  577. #ifdef HAVE_STDINT_H
  578. # include <stdint.h>
  579. #endif
  580. #ifdef HAVE_UNISTD_H
  581. # include <unistd.h>
  582. #endif"
  583. ac_subst_vars='am__EXEEXT_FALSE
  584. am__EXEEXT_TRUE
  585. LTLIBOBJS
  586. LIB@&t@OBJS
  587. ALLOCA
  588. CXXCPP
  589. OTOOL64
  590. OTOOL
  591. LIPO
  592. NMEDIT
  593. DSYMUTIL
  594. MANIFEST_TOOL
  595. ac_ct_AR
  596. AR
  597. DLLTOOL
  598. OBJDUMP
  599. NM
  600. ac_ct_DUMPBIN
  601. DUMPBIN
  602. LD
  603. FGREP
  604. SED
  605. host_os
  606. host_vendor
  607. host_cpu
  608. host
  609. build_os
  610. build_vendor
  611. build_cpu
  612. build
  613. LIBTOOL
  614. EGREP
  615. GREP
  616. RANLIB
  617. LN_S
  618. CPP
  619. am__fastdepCC_FALSE
  620. am__fastdepCC_TRUE
  621. CCDEPMODE
  622. ac_ct_CC
  623. CFLAGS
  624. CC
  625. am__fastdepCXX_FALSE
  626. am__fastdepCXX_TRUE
  627. CXXDEPMODE
  628. am__nodep
  629. AMDEPBACKSLASH
  630. AMDEP_FALSE
  631. AMDEP_TRUE
  632. am__quote
  633. am__include
  634. DEPDIR
  635. OBJEXT
  636. EXEEXT
  637. ac_ct_CXX
  638. CPPFLAGS
  639. LDFLAGS
  640. CXXFLAGS
  641. CXX
  642. AM_BACKSLASH
  643. AM_DEFAULT_VERBOSITY
  644. AM_DEFAULT_V
  645. AM_V
  646. am__untar
  647. am__tar
  648. AMTAR
  649. am__leading_dot
  650. SET_MAKE
  651. AWK
  652. mkdir_p
  653. MKDIR_P
  654. INSTALL_STRIP_PROGRAM
  655. STRIP
  656. install_sh
  657. MAKEINFO
  658. AUTOHEADER
  659. AUTOMAKE
  660. AUTOCONF
  661. ACLOCAL
  662. VERSION
  663. PACKAGE
  664. CYGPATH_W
  665. am__isrc
  666. INSTALL_DATA
  667. INSTALL_SCRIPT
  668. INSTALL_PROGRAM
  669. target_alias
  670. host_alias
  671. build_alias
  672. LIBS
  673. ECHO_T
  674. ECHO_N
  675. ECHO_C
  676. DEFS
  677. mandir
  678. localedir
  679. libdir
  680. psdir
  681. pdfdir
  682. dvidir
  683. htmldir
  684. infodir
  685. docdir
  686. oldincludedir
  687. includedir
  688. localstatedir
  689. sharedstatedir
  690. sysconfdir
  691. datadir
  692. datarootdir
  693. libexecdir
  694. sbindir
  695. bindir
  696. program_transform_name
  697. prefix
  698. exec_prefix
  699. PACKAGE_URL
  700. PACKAGE_BUGREPORT
  701. PACKAGE_STRING
  702. PACKAGE_VERSION
  703. PACKAGE_TARNAME
  704. PACKAGE_NAME
  705. PATH_SEPARATOR
  706. SHELL'
  707. ac_subst_files=''
  708. ac_user_opts='
  709. enable_option_checking
  710. enable_silent_rules
  711. enable_dependency_tracking
  712. enable_shared
  713. enable_static
  714. with_pic
  715. enable_fast_install
  716. with_gnu_ld
  717. with_sysroot
  718. enable_libtool_lock
  719. '
  720. ac_precious_vars='build_alias
  721. host_alias
  722. target_alias
  723. CXX
  724. CXXFLAGS
  725. LDFLAGS
  726. LIBS
  727. CPPFLAGS
  728. CCC
  729. CC
  730. CFLAGS
  731. CPP
  732. CXXCPP'
  733. # Initialize some variables set by options.
  734. ac_init_help=
  735. ac_init_version=false
  736. ac_unrecognized_opts=
  737. ac_unrecognized_sep=
  738. # The variables have the same names as the options, with
  739. # dashes changed to underlines.
  740. cache_file=/dev/null
  741. exec_prefix=NONE
  742. no_create=
  743. no_recursion=
  744. prefix=NONE
  745. program_prefix=NONE
  746. program_suffix=NONE
  747. program_transform_name=s,x,x,
  748. silent=
  749. site=
  750. srcdir=
  751. verbose=
  752. x_includes=NONE
  753. x_libraries=NONE
  754. # Installation directory options.
  755. # These are left unexpanded so users can "make install exec_prefix=/foo"
  756. # and all the variables that are supposed to be based on exec_prefix
  757. # by default will actually change.
  758. # Use braces instead of parens because sh, perl, etc. also accept them.
  759. # (The list follows the same order as the GNU Coding Standards.)
  760. bindir='${exec_prefix}/bin'
  761. sbindir='${exec_prefix}/sbin'
  762. libexecdir='${exec_prefix}/libexec'
  763. datarootdir='${prefix}/share'
  764. datadir='${datarootdir}'
  765. sysconfdir='${prefix}/etc'
  766. sharedstatedir='${prefix}/com'
  767. localstatedir='${prefix}/var'
  768. includedir='${prefix}/include'
  769. oldincludedir='/usr/include'
  770. docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
  771. infodir='${datarootdir}/info'
  772. htmldir='${docdir}'
  773. dvidir='${docdir}'
  774. pdfdir='${docdir}'
  775. psdir='${docdir}'
  776. libdir='${exec_prefix}/lib'
  777. localedir='${datarootdir}/locale'
  778. mandir='${datarootdir}/man'
  779. ac_prev=
  780. ac_dashdash=
  781. for ac_option
  782. do
  783. # If the previous option needs an argument, assign it.
  784. if test -n "$ac_prev"; then
  785. eval $ac_prev=\$ac_option
  786. ac_prev=
  787. continue
  788. fi
  789. case $ac_option in
  790. *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  791. *=) ac_optarg= ;;
  792. *) ac_optarg=yes ;;
  793. esac
  794. # Accept the important Cygnus configure options, so we can diagnose typos.
  795. case $ac_dashdash$ac_option in
  796. --)
  797. ac_dashdash=yes ;;
  798. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  799. ac_prev=bindir ;;
  800. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  801. bindir=$ac_optarg ;;
  802. -build | --build | --buil | --bui | --bu)
  803. ac_prev=build_alias ;;
  804. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  805. build_alias=$ac_optarg ;;
  806. -cache-file | --cache-file | --cache-fil | --cache-fi \
  807. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  808. ac_prev=cache_file ;;
  809. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  810. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  811. cache_file=$ac_optarg ;;
  812. --config-cache | -C)
  813. cache_file=config.cache ;;
  814. -datadir | --datadir | --datadi | --datad)
  815. ac_prev=datadir ;;
  816. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  817. datadir=$ac_optarg ;;
  818. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  819. | --dataroo | --dataro | --datar)
  820. ac_prev=datarootdir ;;
  821. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  822. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  823. datarootdir=$ac_optarg ;;
  824. -disable-* | --disable-*)
  825. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  826. # Reject names that are not valid shell variable names.
  827. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  828. as_fn_error $? "invalid feature name: $ac_useropt"
  829. ac_useropt_orig=$ac_useropt
  830. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  831. case $ac_user_opts in
  832. *"
  833. "enable_$ac_useropt"
  834. "*) ;;
  835. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  836. ac_unrecognized_sep=', ';;
  837. esac
  838. eval enable_$ac_useropt=no ;;
  839. -docdir | --docdir | --docdi | --doc | --do)
  840. ac_prev=docdir ;;
  841. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  842. docdir=$ac_optarg ;;
  843. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  844. ac_prev=dvidir ;;
  845. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  846. dvidir=$ac_optarg ;;
  847. -enable-* | --enable-*)
  848. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  849. # Reject names that are not valid shell variable names.
  850. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  851. as_fn_error $? "invalid feature name: $ac_useropt"
  852. ac_useropt_orig=$ac_useropt
  853. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  854. case $ac_user_opts in
  855. *"
  856. "enable_$ac_useropt"
  857. "*) ;;
  858. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  859. ac_unrecognized_sep=', ';;
  860. esac
  861. eval enable_$ac_useropt=\$ac_optarg ;;
  862. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  863. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  864. | --exec | --exe | --ex)
  865. ac_prev=exec_prefix ;;
  866. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  867. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  868. | --exec=* | --exe=* | --ex=*)
  869. exec_prefix=$ac_optarg ;;
  870. -gas | --gas | --ga | --g)
  871. # Obsolete; use --with-gas.
  872. with_gas=yes ;;
  873. -help | --help | --hel | --he | -h)
  874. ac_init_help=long ;;
  875. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  876. ac_init_help=recursive ;;
  877. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  878. ac_init_help=short ;;
  879. -host | --host | --hos | --ho)
  880. ac_prev=host_alias ;;
  881. -host=* | --host=* | --hos=* | --ho=*)
  882. host_alias=$ac_optarg ;;
  883. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  884. ac_prev=htmldir ;;
  885. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  886. | --ht=*)
  887. htmldir=$ac_optarg ;;
  888. -includedir | --includedir | --includedi | --included | --include \
  889. | --includ | --inclu | --incl | --inc)
  890. ac_prev=includedir ;;
  891. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  892. | --includ=* | --inclu=* | --incl=* | --inc=*)
  893. includedir=$ac_optarg ;;
  894. -infodir | --infodir | --infodi | --infod | --info | --inf)
  895. ac_prev=infodir ;;
  896. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  897. infodir=$ac_optarg ;;
  898. -libdir | --libdir | --libdi | --libd)
  899. ac_prev=libdir ;;
  900. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  901. libdir=$ac_optarg ;;
  902. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  903. | --libexe | --libex | --libe)
  904. ac_prev=libexecdir ;;
  905. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  906. | --libexe=* | --libex=* | --libe=*)
  907. libexecdir=$ac_optarg ;;
  908. -localedir | --localedir | --localedi | --localed | --locale)
  909. ac_prev=localedir ;;
  910. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  911. localedir=$ac_optarg ;;
  912. -localstatedir | --localstatedir | --localstatedi | --localstated \
  913. | --localstate | --localstat | --localsta | --localst | --locals)
  914. ac_prev=localstatedir ;;
  915. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  916. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  917. localstatedir=$ac_optarg ;;
  918. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  919. ac_prev=mandir ;;
  920. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  921. mandir=$ac_optarg ;;
  922. -nfp | --nfp | --nf)
  923. # Obsolete; use --without-fp.
  924. with_fp=no ;;
  925. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  926. | --no-cr | --no-c | -n)
  927. no_create=yes ;;
  928. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  929. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  930. no_recursion=yes ;;
  931. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  932. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  933. | --oldin | --oldi | --old | --ol | --o)
  934. ac_prev=oldincludedir ;;
  935. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  936. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  937. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  938. oldincludedir=$ac_optarg ;;
  939. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  940. ac_prev=prefix ;;
  941. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  942. prefix=$ac_optarg ;;
  943. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  944. | --program-pre | --program-pr | --program-p)
  945. ac_prev=program_prefix ;;
  946. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  947. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  948. program_prefix=$ac_optarg ;;
  949. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  950. | --program-suf | --program-su | --program-s)
  951. ac_prev=program_suffix ;;
  952. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  953. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  954. program_suffix=$ac_optarg ;;
  955. -program-transform-name | --program-transform-name \
  956. | --program-transform-nam | --program-transform-na \
  957. | --program-transform-n | --program-transform- \
  958. | --program-transform | --program-transfor \
  959. | --program-transfo | --program-transf \
  960. | --program-trans | --program-tran \
  961. | --progr-tra | --program-tr | --program-t)
  962. ac_prev=program_transform_name ;;
  963. -program-transform-name=* | --program-transform-name=* \
  964. | --program-transform-nam=* | --program-transform-na=* \
  965. | --program-transform-n=* | --program-transform-=* \
  966. | --program-transform=* | --program-transfor=* \
  967. | --program-transfo=* | --program-transf=* \
  968. | --program-trans=* | --program-tran=* \
  969. | --progr-tra=* | --program-tr=* | --program-t=*)
  970. program_transform_name=$ac_optarg ;;
  971. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  972. ac_prev=pdfdir ;;
  973. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  974. pdfdir=$ac_optarg ;;
  975. -psdir | --psdir | --psdi | --psd | --ps)
  976. ac_prev=psdir ;;
  977. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  978. psdir=$ac_optarg ;;
  979. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  980. | -silent | --silent | --silen | --sile | --sil)
  981. silent=yes ;;
  982. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  983. ac_prev=sbindir ;;
  984. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  985. | --sbi=* | --sb=*)
  986. sbindir=$ac_optarg ;;
  987. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  988. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  989. | --sharedst | --shareds | --shared | --share | --shar \
  990. | --sha | --sh)
  991. ac_prev=sharedstatedir ;;
  992. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  993. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  994. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  995. | --sha=* | --sh=*)
  996. sharedstatedir=$ac_optarg ;;
  997. -site | --site | --sit)
  998. ac_prev=site ;;
  999. -site=* | --site=* | --sit=*)
  1000. site=$ac_optarg ;;
  1001. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  1002. ac_prev=srcdir ;;
  1003. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1004. srcdir=$ac_optarg ;;
  1005. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  1006. | --syscon | --sysco | --sysc | --sys | --sy)
  1007. ac_prev=sysconfdir ;;
  1008. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  1009. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  1010. sysconfdir=$ac_optarg ;;
  1011. -target | --target | --targe | --targ | --tar | --ta | --t)
  1012. ac_prev=target_alias ;;
  1013. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  1014. target_alias=$ac_optarg ;;
  1015. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  1016. verbose=yes ;;
  1017. -version | --version | --versio | --versi | --vers | -V)
  1018. ac_init_version=: ;;
  1019. -with-* | --with-*)
  1020. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1021. # Reject names that are not valid shell variable names.
  1022. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1023. as_fn_error $? "invalid package name: $ac_useropt"
  1024. ac_useropt_orig=$ac_useropt
  1025. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1026. case $ac_user_opts in
  1027. *"
  1028. "with_$ac_useropt"
  1029. "*) ;;
  1030. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  1031. ac_unrecognized_sep=', ';;
  1032. esac
  1033. eval with_$ac_useropt=\$ac_optarg ;;
  1034. -without-* | --without-*)
  1035. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1036. # Reject names that are not valid shell variable names.
  1037. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1038. as_fn_error $? "invalid package name: $ac_useropt"
  1039. ac_useropt_orig=$ac_useropt
  1040. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1041. case $ac_user_opts in
  1042. *"
  1043. "with_$ac_useropt"
  1044. "*) ;;
  1045. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  1046. ac_unrecognized_sep=', ';;
  1047. esac
  1048. eval with_$ac_useropt=no ;;
  1049. --x)
  1050. # Obsolete; use --with-x.
  1051. with_x=yes ;;
  1052. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1053. | --x-incl | --x-inc | --x-in | --x-i)
  1054. ac_prev=x_includes ;;
  1055. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1056. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1057. x_includes=$ac_optarg ;;
  1058. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1059. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1060. ac_prev=x_libraries ;;
  1061. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1062. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1063. x_libraries=$ac_optarg ;;
  1064. -*) as_fn_error $? "unrecognized option: \`$ac_option'
  1065. Try \`$0 --help' for more information"
  1066. ;;
  1067. *=*)
  1068. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1069. # Reject names that are not valid shell variable names.
  1070. case $ac_envvar in #(
  1071. '' | [0-9]* | *[!_$as_cr_alnum]* )
  1072. as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
  1073. esac
  1074. eval $ac_envvar=\$ac_optarg
  1075. export $ac_envvar ;;
  1076. *)
  1077. # FIXME: should be removed in autoconf 3.0.
  1078. $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1079. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1080. $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1081. : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
  1082. ;;
  1083. esac
  1084. done
  1085. if test -n "$ac_prev"; then
  1086. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1087. as_fn_error $? "missing argument to $ac_option"
  1088. fi
  1089. if test -n "$ac_unrecognized_opts"; then
  1090. case $enable_option_checking in
  1091. no) ;;
  1092. fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
  1093. *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1094. esac
  1095. fi
  1096. # Check all directory arguments for consistency.
  1097. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1098. datadir sysconfdir sharedstatedir localstatedir includedir \
  1099. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1100. libdir localedir mandir
  1101. do
  1102. eval ac_val=\$$ac_var
  1103. # Remove trailing slashes.
  1104. case $ac_val in
  1105. */ )
  1106. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1107. eval $ac_var=\$ac_val;;
  1108. esac
  1109. # Be sure to have absolute directory names.
  1110. case $ac_val in
  1111. [\\/$]* | ?:[\\/]* ) continue;;
  1112. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1113. esac
  1114. as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
  1115. done
  1116. # There might be people who depend on the old broken behavior: `$host'
  1117. # used to hold the argument of --host etc.
  1118. # FIXME: To remove some day.
  1119. build=$build_alias
  1120. host=$host_alias
  1121. target=$target_alias
  1122. # FIXME: To remove some day.
  1123. if test "x$host_alias" != x; then
  1124. if test "x$build_alias" = x; then
  1125. cross_compiling=maybe
  1126. elif test "x$build_alias" != "x$host_alias"; then
  1127. cross_compiling=yes
  1128. fi
  1129. fi
  1130. ac_tool_prefix=
  1131. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1132. test "$silent" = yes && exec 6>/dev/null
  1133. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1134. ac_ls_di=`ls -di .` &&
  1135. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1136. as_fn_error $? "working directory cannot be determined"
  1137. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1138. as_fn_error $? "pwd does not report name of working directory"
  1139. # Find the source files, if location was not specified.
  1140. if test -z "$srcdir"; then
  1141. ac_srcdir_defaulted=yes
  1142. # Try the directory containing this script, then the parent directory.
  1143. ac_confdir=`$as_dirname -- "$as_myself" ||
  1144. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1145. X"$as_myself" : 'X\(//\)[^/]' \| \
  1146. X"$as_myself" : 'X\(//\)$' \| \
  1147. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1148. $as_echo X"$as_myself" |
  1149. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1150. s//\1/
  1151. q
  1152. }
  1153. /^X\(\/\/\)[^/].*/{
  1154. s//\1/
  1155. q
  1156. }
  1157. /^X\(\/\/\)$/{
  1158. s//\1/
  1159. q
  1160. }
  1161. /^X\(\/\).*/{
  1162. s//\1/
  1163. q
  1164. }
  1165. s/.*/./; q'`
  1166. srcdir=$ac_confdir
  1167. if test ! -r "$srcdir/$ac_unique_file"; then
  1168. srcdir=..
  1169. fi
  1170. else
  1171. ac_srcdir_defaulted=no
  1172. fi
  1173. if test ! -r "$srcdir/$ac_unique_file"; then
  1174. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1175. as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
  1176. fi
  1177. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1178. ac_abs_confdir=`(
  1179. cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
  1180. pwd)`
  1181. # When building in place, set srcdir=.
  1182. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1183. srcdir=.
  1184. fi
  1185. # Remove unnecessary trailing slashes from srcdir.
  1186. # Double slashes in file names in object file debugging info
  1187. # mess up M-x gdb in Emacs.
  1188. case $srcdir in
  1189. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1190. esac
  1191. for ac_var in $ac_precious_vars; do
  1192. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1193. eval ac_env_${ac_var}_value=\$${ac_var}
  1194. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1195. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1196. done
  1197. #
  1198. # Report the --help message.
  1199. #
  1200. if test "$ac_init_help" = "long"; then
  1201. # Omit some internal or obsolete options to make the list less imposing.
  1202. # This message is too long to be a string in the A/UX 3.1 sh.
  1203. cat <<_ACEOF
  1204. \`configure' configures zlog 1.0 to adapt to many kinds of systems.
  1205. Usage: $0 [OPTION]... [VAR=VALUE]...
  1206. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1207. VAR=VALUE. See below for descriptions of some of the useful variables.
  1208. Defaults for the options are specified in brackets.
  1209. Configuration:
  1210. -h, --help display this help and exit
  1211. --help=short display options specific to this package
  1212. --help=recursive display the short help of all the included packages
  1213. -V, --version display version information and exit
  1214. -q, --quiet, --silent do not print \`checking ...' messages
  1215. --cache-file=FILE cache test results in FILE [disabled]
  1216. -C, --config-cache alias for \`--cache-file=config.cache'
  1217. -n, --no-create do not create output files
  1218. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1219. Installation directories:
  1220. --prefix=PREFIX install architecture-independent files in PREFIX
  1221. @<:@@S|@ac_default_prefix@:>@
  1222. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1223. @<:@PREFIX@:>@
  1224. By default, \`make install' will install all the files in
  1225. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1226. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1227. for instance \`--prefix=\$HOME'.
  1228. For better control, use the options below.
  1229. Fine tuning of the installation directories:
  1230. --bindir=DIR user executables [EPREFIX/bin]
  1231. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1232. --libexecdir=DIR program executables [EPREFIX/libexec]
  1233. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1234. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1235. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1236. --libdir=DIR object code libraries [EPREFIX/lib]
  1237. --includedir=DIR C header files [PREFIX/include]
  1238. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1239. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1240. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1241. --infodir=DIR info documentation [DATAROOTDIR/info]
  1242. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1243. --mandir=DIR man documentation [DATAROOTDIR/man]
  1244. --docdir=DIR documentation root @<:@DATAROOTDIR/doc/zlog@:>@
  1245. --htmldir=DIR html documentation [DOCDIR]
  1246. --dvidir=DIR dvi documentation [DOCDIR]
  1247. --pdfdir=DIR pdf documentation [DOCDIR]
  1248. --psdir=DIR ps documentation [DOCDIR]
  1249. _ACEOF
  1250. cat <<\_ACEOF
  1251. Program names:
  1252. --program-prefix=PREFIX prepend PREFIX to installed program names
  1253. --program-suffix=SUFFIX append SUFFIX to installed program names
  1254. --program-transform-name=PROGRAM run sed PROGRAM on installed program names
  1255. System types:
  1256. --build=BUILD configure for building on BUILD [guessed]
  1257. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1258. _ACEOF
  1259. fi
  1260. if test -n "$ac_init_help"; then
  1261. case $ac_init_help in
  1262. short | recursive ) echo "Configuration of zlog 1.0:";;
  1263. esac
  1264. cat <<\_ACEOF
  1265. Optional Features:
  1266. --disable-option-checking ignore unrecognized --enable/--with options
  1267. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1268. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1269. --enable-silent-rules less verbose build output (undo: "make V=1")
  1270. --disable-silent-rules verbose build output (undo: "make V=0")
  1271. --enable-dependency-tracking
  1272. do not reject slow dependency extractors
  1273. --disable-dependency-tracking
  1274. speeds up one-time build
  1275. --enable-shared@<:@=PKGS@:>@ build shared libraries @<:@default=yes@:>@
  1276. --enable-static@<:@=PKGS@:>@ build static libraries @<:@default=yes@:>@
  1277. --enable-fast-install@<:@=PKGS@:>@
  1278. optimize for fast installation @<:@default=yes@:>@
  1279. --disable-libtool-lock avoid locking (might break parallel builds)
  1280. Optional Packages:
  1281. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1282. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1283. --with-pic@<:@=PKGS@:>@ try to use only PIC/non-PIC objects @<:@default=use
  1284. both@:>@
  1285. --with-gnu-ld assume the C compiler uses GNU ld @<:@default=no@:>@
  1286. --with-sysroot=DIR Search for dependent libraries within DIR
  1287. (or the compiler's sysroot if not specified).
  1288. Some influential environment variables:
  1289. CXX C++ compiler command
  1290. CXXFLAGS C++ compiler flags
  1291. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1292. nonstandard directory <lib dir>
  1293. LIBS libraries to pass to the linker, e.g. -l<library>
  1294. CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
  1295. you have headers in a nonstandard directory <include dir>
  1296. CC C compiler command
  1297. CFLAGS C compiler flags
  1298. CPP C preprocessor
  1299. CXXCPP C++ preprocessor
  1300. Use these variables to override the choices made by `configure' or to help
  1301. it to find libraries and programs with nonstandard names/locations.
  1302. Report bugs to <BUG-REPORT-ADDRESS>.
  1303. _ACEOF
  1304. ac_status=$?
  1305. fi
  1306. if test "$ac_init_help" = "recursive"; then
  1307. # If there are subdirs, report their specific --help.
  1308. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1309. test -d "$ac_dir" ||
  1310. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1311. continue
  1312. ac_builddir=.
  1313. case "$ac_dir" in
  1314. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1315. *)
  1316. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  1317. # A ".." for each directory in $ac_dir_suffix.
  1318. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1319. case $ac_top_builddir_sub in
  1320. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1321. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1322. esac ;;
  1323. esac
  1324. ac_abs_top_builddir=$ac_pwd
  1325. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1326. # for backward compatibility:
  1327. ac_top_builddir=$ac_top_build_prefix
  1328. case $srcdir in
  1329. .) # We are building in place.
  1330. ac_srcdir=.
  1331. ac_top_srcdir=$ac_top_builddir_sub
  1332. ac_abs_top_srcdir=$ac_pwd ;;
  1333. [\\/]* | ?:[\\/]* ) # Absolute name.
  1334. ac_srcdir=$srcdir$ac_dir_suffix;
  1335. ac_top_srcdir=$srcdir
  1336. ac_abs_top_srcdir=$srcdir ;;
  1337. *) # Relative name.
  1338. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1339. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1340. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1341. esac
  1342. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1343. cd "$ac_dir" || { ac_status=$?; continue; }
  1344. # Check for guested configure.
  1345. if test -f "$ac_srcdir/configure.gnu"; then
  1346. echo &&
  1347. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1348. elif test -f "$ac_srcdir/configure"; then
  1349. echo &&
  1350. $SHELL "$ac_srcdir/configure" --help=recursive
  1351. else
  1352. $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1353. fi || ac_status=$?
  1354. cd "$ac_pwd" || { ac_status=$?; break; }
  1355. done
  1356. fi
  1357. test -n "$ac_init_help" && exit $ac_status
  1358. if $ac_init_version; then
  1359. cat <<\_ACEOF
  1360. zlog configure 1.0
  1361. generated by GNU Autoconf 2.69
  1362. Copyright (C) 2012 Free Software Foundation, Inc.
  1363. This configure script is free software; the Free Software Foundation
  1364. gives unlimited permission to copy, distribute and modify it.
  1365. _ACEOF
  1366. exit
  1367. fi
  1368. ## ------------------------ ##
  1369. ## Autoconf initialization. ##
  1370. ## ------------------------ ##
  1371. @%:@ ac_fn_cxx_try_compile LINENO
  1372. @%:@ ----------------------------
  1373. @%:@ Try to compile conftest.@S|@ac_ext, and return whether this succeeded.
  1374. ac_fn_cxx_try_compile ()
  1375. {
  1376. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1377. rm -f conftest.$ac_objext
  1378. if { { ac_try="$ac_compile"
  1379. case "(($ac_try" in
  1380. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1381. *) ac_try_echo=$ac_try;;
  1382. esac
  1383. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1384. $as_echo "$ac_try_echo"; } >&5
  1385. (eval "$ac_compile") 2>conftest.err
  1386. ac_status=$?
  1387. if test -s conftest.err; then
  1388. grep -v '^ *+' conftest.err >conftest.er1
  1389. cat conftest.er1 >&5
  1390. mv -f conftest.er1 conftest.err
  1391. fi
  1392. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1393. test $ac_status = 0; } && {
  1394. test -z "$ac_cxx_werror_flag" ||
  1395. test ! -s conftest.err
  1396. } && test -s conftest.$ac_objext; then :
  1397. ac_retval=0
  1398. else
  1399. $as_echo "$as_me: failed program was:" >&5
  1400. sed 's/^/| /' conftest.$ac_ext >&5
  1401. ac_retval=1
  1402. fi
  1403. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1404. as_fn_set_status $ac_retval
  1405. } @%:@ ac_fn_cxx_try_compile
  1406. @%:@ ac_fn_c_try_compile LINENO
  1407. @%:@ --------------------------
  1408. @%:@ Try to compile conftest.@S|@ac_ext, and return whether this succeeded.
  1409. ac_fn_c_try_compile ()
  1410. {
  1411. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1412. rm -f conftest.$ac_objext
  1413. if { { ac_try="$ac_compile"
  1414. case "(($ac_try" in
  1415. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1416. *) ac_try_echo=$ac_try;;
  1417. esac
  1418. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1419. $as_echo "$ac_try_echo"; } >&5
  1420. (eval "$ac_compile") 2>conftest.err
  1421. ac_status=$?
  1422. if test -s conftest.err; then
  1423. grep -v '^ *+' conftest.err >conftest.er1
  1424. cat conftest.er1 >&5
  1425. mv -f conftest.er1 conftest.err
  1426. fi
  1427. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1428. test $ac_status = 0; } && {
  1429. test -z "$ac_c_werror_flag" ||
  1430. test ! -s conftest.err
  1431. } && test -s conftest.$ac_objext; then :
  1432. ac_retval=0
  1433. else
  1434. $as_echo "$as_me: failed program was:" >&5
  1435. sed 's/^/| /' conftest.$ac_ext >&5
  1436. ac_retval=1
  1437. fi
  1438. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1439. as_fn_set_status $ac_retval
  1440. } @%:@ ac_fn_c_try_compile
  1441. @%:@ ac_fn_c_try_cpp LINENO
  1442. @%:@ ----------------------
  1443. @%:@ Try to preprocess conftest.@S|@ac_ext, and return whether this succeeded.
  1444. ac_fn_c_try_cpp ()
  1445. {
  1446. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1447. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1448. case "(($ac_try" in
  1449. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1450. *) ac_try_echo=$ac_try;;
  1451. esac
  1452. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1453. $as_echo "$ac_try_echo"; } >&5
  1454. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1455. ac_status=$?
  1456. if test -s conftest.err; then
  1457. grep -v '^ *+' conftest.err >conftest.er1
  1458. cat conftest.er1 >&5
  1459. mv -f conftest.er1 conftest.err
  1460. fi
  1461. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1462. test $ac_status = 0; } > conftest.i && {
  1463. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  1464. test ! -s conftest.err
  1465. }; then :
  1466. ac_retval=0
  1467. else
  1468. $as_echo "$as_me: failed program was:" >&5
  1469. sed 's/^/| /' conftest.$ac_ext >&5
  1470. ac_retval=1
  1471. fi
  1472. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1473. as_fn_set_status $ac_retval
  1474. } @%:@ ac_fn_c_try_cpp
  1475. @%:@ ac_fn_c_try_link LINENO
  1476. @%:@ -----------------------
  1477. @%:@ Try to link conftest.@S|@ac_ext, and return whether this succeeded.
  1478. ac_fn_c_try_link ()
  1479. {
  1480. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1481. rm -f conftest.$ac_objext conftest$ac_exeext
  1482. if { { ac_try="$ac_link"
  1483. case "(($ac_try" in
  1484. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1485. *) ac_try_echo=$ac_try;;
  1486. esac
  1487. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1488. $as_echo "$ac_try_echo"; } >&5
  1489. (eval "$ac_link") 2>conftest.err
  1490. ac_status=$?
  1491. if test -s conftest.err; then
  1492. grep -v '^ *+' conftest.err >conftest.er1
  1493. cat conftest.er1 >&5
  1494. mv -f conftest.er1 conftest.err
  1495. fi
  1496. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1497. test $ac_status = 0; } && {
  1498. test -z "$ac_c_werror_flag" ||
  1499. test ! -s conftest.err
  1500. } && test -s conftest$ac_exeext && {
  1501. test "$cross_compiling" = yes ||
  1502. test -x conftest$ac_exeext
  1503. }; then :
  1504. ac_retval=0
  1505. else
  1506. $as_echo "$as_me: failed program was:" >&5
  1507. sed 's/^/| /' conftest.$ac_ext >&5
  1508. ac_retval=1
  1509. fi
  1510. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1511. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1512. # interfere with the next link command; also delete a directory that is
  1513. # left behind by Apple's compiler. We do this before executing the actions.
  1514. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1515. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1516. as_fn_set_status $ac_retval
  1517. } @%:@ ac_fn_c_try_link
  1518. @%:@ ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
  1519. @%:@ -------------------------------------------------------
  1520. @%:@ Tests whether HEADER exists, giving a warning if it cannot be compiled using
  1521. @%:@ the include files in INCLUDES and setting the cache variable VAR
  1522. @%:@ accordingly.
  1523. ac_fn_c_check_header_mongrel ()
  1524. {
  1525. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1526. if eval \${$3+:} false; then :
  1527. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1528. $as_echo_n "checking for $2... " >&6; }
  1529. if eval \${$3+:} false; then :
  1530. $as_echo_n "(cached) " >&6
  1531. fi
  1532. eval ac_res=\$$3
  1533. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1534. $as_echo "$ac_res" >&6; }
  1535. else
  1536. # Is the header compilable?
  1537. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
  1538. $as_echo_n "checking $2 usability... " >&6; }
  1539. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1540. /* end confdefs.h. */
  1541. $4
  1542. @%:@include <$2>
  1543. _ACEOF
  1544. if ac_fn_c_try_compile "$LINENO"; then :
  1545. ac_header_compiler=yes
  1546. else
  1547. ac_header_compiler=no
  1548. fi
  1549. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1550. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
  1551. $as_echo "$ac_header_compiler" >&6; }
  1552. # Is the header present?
  1553. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
  1554. $as_echo_n "checking $2 presence... " >&6; }
  1555. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1556. /* end confdefs.h. */
  1557. @%:@include <$2>
  1558. _ACEOF
  1559. if ac_fn_c_try_cpp "$LINENO"; then :
  1560. ac_header_preproc=yes
  1561. else
  1562. ac_header_preproc=no
  1563. fi
  1564. rm -f conftest.err conftest.i conftest.$ac_ext
  1565. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
  1566. $as_echo "$ac_header_preproc" >&6; }
  1567. # So? What about this header?
  1568. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
  1569. yes:no: )
  1570. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
  1571. $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
  1572. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1573. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1574. ;;
  1575. no:yes:* )
  1576. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
  1577. $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
  1578. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
  1579. $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
  1580. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
  1581. $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
  1582. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
  1583. $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
  1584. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1585. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1586. ( $as_echo "## --------------------------------- ##
  1587. ## Report this to BUG-REPORT-ADDRESS ##
  1588. ## --------------------------------- ##"
  1589. ) | sed "s/^/$as_me: WARNING: /" >&2
  1590. ;;
  1591. esac
  1592. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1593. $as_echo_n "checking for $2... " >&6; }
  1594. if eval \${$3+:} false; then :
  1595. $as_echo_n "(cached) " >&6
  1596. else
  1597. eval "$3=\$ac_header_compiler"
  1598. fi
  1599. eval ac_res=\$$3
  1600. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1601. $as_echo "$ac_res" >&6; }
  1602. fi
  1603. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1604. } @%:@ ac_fn_c_check_header_mongrel
  1605. @%:@ ac_fn_c_try_run LINENO
  1606. @%:@ ----------------------
  1607. @%:@ Try to link conftest.@S|@ac_ext, and return whether this succeeded. Assumes
  1608. @%:@ that executables *can* be run.
  1609. ac_fn_c_try_run ()
  1610. {
  1611. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1612. if { { ac_try="$ac_link"
  1613. case "(($ac_try" in
  1614. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1615. *) ac_try_echo=$ac_try;;
  1616. esac
  1617. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1618. $as_echo "$ac_try_echo"; } >&5
  1619. (eval "$ac_link") 2>&5
  1620. ac_status=$?
  1621. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1622. test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  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_try") 2>&5
  1630. ac_status=$?
  1631. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1632. test $ac_status = 0; }; }; then :
  1633. ac_retval=0
  1634. else
  1635. $as_echo "$as_me: program exited with status $ac_status" >&5
  1636. $as_echo "$as_me: failed program was:" >&5
  1637. sed 's/^/| /' conftest.$ac_ext >&5
  1638. ac_retval=$ac_status
  1639. fi
  1640. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1641. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1642. as_fn_set_status $ac_retval
  1643. } @%:@ ac_fn_c_try_run
  1644. @%:@ ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
  1645. @%:@ -------------------------------------------------------
  1646. @%:@ Tests whether HEADER exists and can be compiled using the include files in
  1647. @%:@ INCLUDES, setting the cache variable VAR accordingly.
  1648. ac_fn_c_check_header_compile ()
  1649. {
  1650. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1651. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1652. $as_echo_n "checking for $2... " >&6; }
  1653. if eval \${$3+:} false; then :
  1654. $as_echo_n "(cached) " >&6
  1655. else
  1656. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1657. /* end confdefs.h. */
  1658. $4
  1659. @%:@include <$2>
  1660. _ACEOF
  1661. if ac_fn_c_try_compile "$LINENO"; then :
  1662. eval "$3=yes"
  1663. else
  1664. eval "$3=no"
  1665. fi
  1666. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1667. fi
  1668. eval ac_res=\$$3
  1669. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1670. $as_echo "$ac_res" >&6; }
  1671. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1672. } @%:@ ac_fn_c_check_header_compile
  1673. @%:@ ac_fn_c_check_type LINENO TYPE VAR INCLUDES
  1674. @%:@ -------------------------------------------
  1675. @%:@ Tests whether TYPE exists after having included INCLUDES, setting cache
  1676. @%:@ variable VAR accordingly.
  1677. ac_fn_c_check_type ()
  1678. {
  1679. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1680. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1681. $as_echo_n "checking for $2... " >&6; }
  1682. if eval \${$3+:} false; then :
  1683. $as_echo_n "(cached) " >&6
  1684. else
  1685. eval "$3=no"
  1686. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1687. /* end confdefs.h. */
  1688. $4
  1689. int
  1690. main ()
  1691. {
  1692. if (sizeof ($2))
  1693. return 0;
  1694. ;
  1695. return 0;
  1696. }
  1697. _ACEOF
  1698. if ac_fn_c_try_compile "$LINENO"; then :
  1699. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1700. /* end confdefs.h. */
  1701. $4
  1702. int
  1703. main ()
  1704. {
  1705. if (sizeof (($2)))
  1706. return 0;
  1707. ;
  1708. return 0;
  1709. }
  1710. _ACEOF
  1711. if ac_fn_c_try_compile "$LINENO"; then :
  1712. else
  1713. eval "$3=yes"
  1714. fi
  1715. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1716. fi
  1717. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1718. fi
  1719. eval ac_res=\$$3
  1720. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1721. $as_echo "$ac_res" >&6; }
  1722. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1723. } @%:@ ac_fn_c_check_type
  1724. @%:@ ac_fn_c_find_intX_t LINENO BITS VAR
  1725. @%:@ -----------------------------------
  1726. @%:@ Finds a signed integer type with width BITS, setting cache variable VAR
  1727. @%:@ accordingly.
  1728. ac_fn_c_find_intX_t ()
  1729. {
  1730. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1731. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
  1732. $as_echo_n "checking for int$2_t... " >&6; }
  1733. if eval \${$3+:} false; then :
  1734. $as_echo_n "(cached) " >&6
  1735. else
  1736. eval "$3=no"
  1737. # Order is important - never check a type that is potentially smaller
  1738. # than half of the expected target width.
  1739. for ac_type in int$2_t 'int' 'long int' \
  1740. 'long long int' 'short int' 'signed char'; do
  1741. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1742. /* end confdefs.h. */
  1743. $ac_includes_default
  1744. enum { N = $2 / 2 - 1 };
  1745. int
  1746. main ()
  1747. {
  1748. static int test_array @<:@1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))@:>@;
  1749. test_array @<:@0@:>@ = 0;
  1750. return test_array @<:@0@:>@;
  1751. ;
  1752. return 0;
  1753. }
  1754. _ACEOF
  1755. if ac_fn_c_try_compile "$LINENO"; then :
  1756. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1757. /* end confdefs.h. */
  1758. $ac_includes_default
  1759. enum { N = $2 / 2 - 1 };
  1760. int
  1761. main ()
  1762. {
  1763. static int test_array @<:@1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1)
  1764. < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))@:>@;
  1765. test_array @<:@0@:>@ = 0;
  1766. return test_array @<:@0@:>@;
  1767. ;
  1768. return 0;
  1769. }
  1770. _ACEOF
  1771. if ac_fn_c_try_compile "$LINENO"; then :
  1772. else
  1773. case $ac_type in @%:@(
  1774. int$2_t) :
  1775. eval "$3=yes" ;; @%:@(
  1776. *) :
  1777. eval "$3=\$ac_type" ;;
  1778. esac
  1779. fi
  1780. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1781. fi
  1782. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1783. if eval test \"x\$"$3"\" = x"no"; then :
  1784. else
  1785. break
  1786. fi
  1787. done
  1788. fi
  1789. eval ac_res=\$$3
  1790. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1791. $as_echo "$ac_res" >&6; }
  1792. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1793. } @%:@ ac_fn_c_find_intX_t
  1794. @%:@ ac_fn_c_find_uintX_t LINENO BITS VAR
  1795. @%:@ ------------------------------------
  1796. @%:@ Finds an unsigned integer type with width BITS, setting cache variable VAR
  1797. @%:@ accordingly.
  1798. ac_fn_c_find_uintX_t ()
  1799. {
  1800. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1801. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
  1802. $as_echo_n "checking for uint$2_t... " >&6; }
  1803. if eval \${$3+:} false; then :
  1804. $as_echo_n "(cached) " >&6
  1805. else
  1806. eval "$3=no"
  1807. # Order is important - never check a type that is potentially smaller
  1808. # than half of the expected target width.
  1809. for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
  1810. 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
  1811. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1812. /* end confdefs.h. */
  1813. $ac_includes_default
  1814. int
  1815. main ()
  1816. {
  1817. static int test_array @<:@1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)@:>@;
  1818. test_array @<:@0@:>@ = 0;
  1819. return test_array @<:@0@:>@;
  1820. ;
  1821. return 0;
  1822. }
  1823. _ACEOF
  1824. if ac_fn_c_try_compile "$LINENO"; then :
  1825. case $ac_type in @%:@(
  1826. uint$2_t) :
  1827. eval "$3=yes" ;; @%:@(
  1828. *) :
  1829. eval "$3=\$ac_type" ;;
  1830. esac
  1831. fi
  1832. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1833. if eval test \"x\$"$3"\" = x"no"; then :
  1834. else
  1835. break
  1836. fi
  1837. done
  1838. fi
  1839. eval ac_res=\$$3
  1840. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1841. $as_echo "$ac_res" >&6; }
  1842. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1843. } @%:@ ac_fn_c_find_uintX_t
  1844. @%:@ ac_fn_c_check_func LINENO FUNC VAR
  1845. @%:@ ----------------------------------
  1846. @%:@ Tests whether FUNC exists, setting the cache variable VAR accordingly
  1847. ac_fn_c_check_func ()
  1848. {
  1849. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1850. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1851. $as_echo_n "checking for $2... " >&6; }
  1852. if eval \${$3+:} false; then :
  1853. $as_echo_n "(cached) " >&6
  1854. else
  1855. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1856. /* end confdefs.h. */
  1857. /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
  1858. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  1859. #define $2 innocuous_$2
  1860. /* System header to define __stub macros and hopefully few prototypes,
  1861. which can conflict with char $2 (); below.
  1862. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  1863. <limits.h> exists even on freestanding compilers. */
  1864. #ifdef __STDC__
  1865. # include <limits.h>
  1866. #else
  1867. # include <assert.h>
  1868. #endif
  1869. #undef $2
  1870. /* Override any GCC internal prototype to avoid an error.
  1871. Use char because int might match the return type of a GCC
  1872. builtin and then its argument prototype would still apply. */
  1873. #ifdef __cplusplus
  1874. extern "C"
  1875. #endif
  1876. char $2 ();
  1877. /* The GNU C library defines this for functions which it implements
  1878. to always fail with ENOSYS. Some functions are actually named
  1879. something starting with __ and the normal name is an alias. */
  1880. #if defined __stub_$2 || defined __stub___$2
  1881. choke me
  1882. #endif
  1883. int
  1884. main ()
  1885. {
  1886. return $2 ();
  1887. ;
  1888. return 0;
  1889. }
  1890. _ACEOF
  1891. if ac_fn_c_try_link "$LINENO"; then :
  1892. eval "$3=yes"
  1893. else
  1894. eval "$3=no"
  1895. fi
  1896. rm -f core conftest.err conftest.$ac_objext \
  1897. conftest$ac_exeext conftest.$ac_ext
  1898. fi
  1899. eval ac_res=\$$3
  1900. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1901. $as_echo "$ac_res" >&6; }
  1902. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1903. } @%:@ ac_fn_c_check_func
  1904. @%:@ ac_fn_cxx_try_cpp LINENO
  1905. @%:@ ------------------------
  1906. @%:@ Try to preprocess conftest.@S|@ac_ext, and return whether this succeeded.
  1907. ac_fn_cxx_try_cpp ()
  1908. {
  1909. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1910. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1911. case "(($ac_try" in
  1912. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1913. *) ac_try_echo=$ac_try;;
  1914. esac
  1915. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1916. $as_echo "$ac_try_echo"; } >&5
  1917. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1918. ac_status=$?
  1919. if test -s conftest.err; then
  1920. grep -v '^ *+' conftest.err >conftest.er1
  1921. cat conftest.er1 >&5
  1922. mv -f conftest.er1 conftest.err
  1923. fi
  1924. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1925. test $ac_status = 0; } > conftest.i && {
  1926. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  1927. test ! -s conftest.err
  1928. }; then :
  1929. ac_retval=0
  1930. else
  1931. $as_echo "$as_me: failed program was:" >&5
  1932. sed 's/^/| /' conftest.$ac_ext >&5
  1933. ac_retval=1
  1934. fi
  1935. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1936. as_fn_set_status $ac_retval
  1937. } @%:@ ac_fn_cxx_try_cpp
  1938. @%:@ ac_fn_cxx_try_link LINENO
  1939. @%:@ -------------------------
  1940. @%:@ Try to link conftest.@S|@ac_ext, and return whether this succeeded.
  1941. ac_fn_cxx_try_link ()
  1942. {
  1943. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1944. rm -f conftest.$ac_objext conftest$ac_exeext
  1945. if { { ac_try="$ac_link"
  1946. case "(($ac_try" in
  1947. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1948. *) ac_try_echo=$ac_try;;
  1949. esac
  1950. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1951. $as_echo "$ac_try_echo"; } >&5
  1952. (eval "$ac_link") 2>conftest.err
  1953. ac_status=$?
  1954. if test -s conftest.err; then
  1955. grep -v '^ *+' conftest.err >conftest.er1
  1956. cat conftest.er1 >&5
  1957. mv -f conftest.er1 conftest.err
  1958. fi
  1959. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1960. test $ac_status = 0; } && {
  1961. test -z "$ac_cxx_werror_flag" ||
  1962. test ! -s conftest.err
  1963. } && test -s conftest$ac_exeext && {
  1964. test "$cross_compiling" = yes ||
  1965. test -x conftest$ac_exeext
  1966. }; then :
  1967. ac_retval=0
  1968. else
  1969. $as_echo "$as_me: failed program was:" >&5
  1970. sed 's/^/| /' conftest.$ac_ext >&5
  1971. ac_retval=1
  1972. fi
  1973. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1974. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1975. # interfere with the next link command; also delete a directory that is
  1976. # left behind by Apple's compiler. We do this before executing the actions.
  1977. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1978. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1979. as_fn_set_status $ac_retval
  1980. } @%:@ ac_fn_cxx_try_link
  1981. cat >config.log <<_ACEOF
  1982. This file contains any messages produced by compilers while
  1983. running configure, to aid debugging if configure makes a mistake.
  1984. It was created by zlog $as_me 1.0, which was
  1985. generated by GNU Autoconf 2.69. Invocation command line was
  1986. $ $0 $@
  1987. _ACEOF
  1988. exec 5>>config.log
  1989. {
  1990. cat <<_ASUNAME
  1991. ## --------- ##
  1992. ## Platform. ##
  1993. ## --------- ##
  1994. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  1995. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  1996. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  1997. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  1998. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  1999. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  2000. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  2001. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  2002. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  2003. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  2004. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  2005. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  2006. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  2007. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  2008. _ASUNAME
  2009. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2010. for as_dir in $PATH
  2011. do
  2012. IFS=$as_save_IFS
  2013. test -z "$as_dir" && as_dir=.
  2014. $as_echo "PATH: $as_dir"
  2015. done
  2016. IFS=$as_save_IFS
  2017. } >&5
  2018. cat >&5 <<_ACEOF
  2019. ## ----------- ##
  2020. ## Core tests. ##
  2021. ## ----------- ##
  2022. _ACEOF
  2023. # Keep a trace of the command line.
  2024. # Strip out --no-create and --no-recursion so they do not pile up.
  2025. # Strip out --silent because we don't want to record it for future runs.
  2026. # Also quote any args containing shell meta-characters.
  2027. # Make two passes to allow for proper duplicate-argument suppression.
  2028. ac_configure_args=
  2029. ac_configure_args0=
  2030. ac_configure_args1=
  2031. ac_must_keep_next=false
  2032. for ac_pass in 1 2
  2033. do
  2034. for ac_arg
  2035. do
  2036. case $ac_arg in
  2037. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  2038. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  2039. | -silent | --silent | --silen | --sile | --sil)
  2040. continue ;;
  2041. *\'*)
  2042. ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  2043. esac
  2044. case $ac_pass in
  2045. 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  2046. 2)
  2047. as_fn_append ac_configure_args1 " '$ac_arg'"
  2048. if test $ac_must_keep_next = true; then
  2049. ac_must_keep_next=false # Got value, back to normal.
  2050. else
  2051. case $ac_arg in
  2052. *=* | --config-cache | -C | -disable-* | --disable-* \
  2053. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  2054. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  2055. | -with-* | --with-* | -without-* | --without-* | --x)
  2056. case "$ac_configure_args0 " in
  2057. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  2058. esac
  2059. ;;
  2060. -* ) ac_must_keep_next=true ;;
  2061. esac
  2062. fi
  2063. as_fn_append ac_configure_args " '$ac_arg'"
  2064. ;;
  2065. esac
  2066. done
  2067. done
  2068. { ac_configure_args0=; unset ac_configure_args0;}
  2069. { ac_configure_args1=; unset ac_configure_args1;}
  2070. # When interrupted or exit'd, cleanup temporary files, and complete
  2071. # config.log. We remove comments because anyway the quotes in there
  2072. # would cause problems or look ugly.
  2073. # WARNING: Use '\'' to represent an apostrophe within the trap.
  2074. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  2075. trap 'exit_status=$?
  2076. # Save into config.log some information that might help in debugging.
  2077. {
  2078. echo
  2079. $as_echo "## ---------------- ##
  2080. ## Cache variables. ##
  2081. ## ---------------- ##"
  2082. echo
  2083. # The following way of writing the cache mishandles newlines in values,
  2084. (
  2085. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  2086. eval ac_val=\$$ac_var
  2087. case $ac_val in #(
  2088. *${as_nl}*)
  2089. case $ac_var in #(
  2090. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  2091. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  2092. esac
  2093. case $ac_var in #(
  2094. _ | IFS | as_nl) ;; #(
  2095. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  2096. *) { eval $ac_var=; unset $ac_var;} ;;
  2097. esac ;;
  2098. esac
  2099. done
  2100. (set) 2>&1 |
  2101. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  2102. *${as_nl}ac_space=\ *)
  2103. sed -n \
  2104. "s/'\''/'\''\\\\'\'''\''/g;
  2105. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  2106. ;; #(
  2107. *)
  2108. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  2109. ;;
  2110. esac |
  2111. sort
  2112. )
  2113. echo
  2114. $as_echo "## ----------------- ##
  2115. ## Output variables. ##
  2116. ## ----------------- ##"
  2117. echo
  2118. for ac_var in $ac_subst_vars
  2119. do
  2120. eval ac_val=\$$ac_var
  2121. case $ac_val in
  2122. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2123. esac
  2124. $as_echo "$ac_var='\''$ac_val'\''"
  2125. done | sort
  2126. echo
  2127. if test -n "$ac_subst_files"; then
  2128. $as_echo "## ------------------- ##
  2129. ## File substitutions. ##
  2130. ## ------------------- ##"
  2131. echo
  2132. for ac_var in $ac_subst_files
  2133. do
  2134. eval ac_val=\$$ac_var
  2135. case $ac_val in
  2136. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2137. esac
  2138. $as_echo "$ac_var='\''$ac_val'\''"
  2139. done | sort
  2140. echo
  2141. fi
  2142. if test -s confdefs.h; then
  2143. $as_echo "## ----------- ##
  2144. ## confdefs.h. ##
  2145. ## ----------- ##"
  2146. echo
  2147. cat confdefs.h
  2148. echo
  2149. fi
  2150. test "$ac_signal" != 0 &&
  2151. $as_echo "$as_me: caught signal $ac_signal"
  2152. $as_echo "$as_me: exit $exit_status"
  2153. } >&5
  2154. rm -f core *.core core.conftest.* &&
  2155. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  2156. exit $exit_status
  2157. ' 0
  2158. for ac_signal in 1 2 13 15; do
  2159. trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  2160. done
  2161. ac_signal=0
  2162. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  2163. rm -f -r conftest* confdefs.h
  2164. $as_echo "/* confdefs.h */" > confdefs.h
  2165. # Predefined preprocessor variables.
  2166. cat >>confdefs.h <<_ACEOF
  2167. @%:@define PACKAGE_NAME "$PACKAGE_NAME"
  2168. _ACEOF
  2169. cat >>confdefs.h <<_ACEOF
  2170. @%:@define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  2171. _ACEOF
  2172. cat >>confdefs.h <<_ACEOF
  2173. @%:@define PACKAGE_VERSION "$PACKAGE_VERSION"
  2174. _ACEOF
  2175. cat >>confdefs.h <<_ACEOF
  2176. @%:@define PACKAGE_STRING "$PACKAGE_STRING"
  2177. _ACEOF
  2178. cat >>confdefs.h <<_ACEOF
  2179. @%:@define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  2180. _ACEOF
  2181. cat >>confdefs.h <<_ACEOF
  2182. @%:@define PACKAGE_URL "$PACKAGE_URL"
  2183. _ACEOF
  2184. # Let the site file select an alternate cache file if it wants to.
  2185. # Prefer an explicitly selected file to automatically selected ones.
  2186. ac_site_file1=NONE
  2187. ac_site_file2=NONE
  2188. if test -n "$CONFIG_SITE"; then
  2189. # We do not want a PATH search for config.site.
  2190. case $CONFIG_SITE in @%:@((
  2191. -*) ac_site_file1=./$CONFIG_SITE;;
  2192. */*) ac_site_file1=$CONFIG_SITE;;
  2193. *) ac_site_file1=./$CONFIG_SITE;;
  2194. esac
  2195. elif test "x$prefix" != xNONE; then
  2196. ac_site_file1=$prefix/share/config.site
  2197. ac_site_file2=$prefix/etc/config.site
  2198. else
  2199. ac_site_file1=$ac_default_prefix/share/config.site
  2200. ac_site_file2=$ac_default_prefix/etc/config.site
  2201. fi
  2202. for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  2203. do
  2204. test "x$ac_site_file" = xNONE && continue
  2205. if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
  2206. { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  2207. $as_echo "$as_me: loading site script $ac_site_file" >&6;}
  2208. sed 's/^/| /' "$ac_site_file" >&5
  2209. . "$ac_site_file" \
  2210. || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2211. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2212. as_fn_error $? "failed to load site script $ac_site_file
  2213. See \`config.log' for more details" "$LINENO" 5; }
  2214. fi
  2215. done
  2216. if test -r "$cache_file"; then
  2217. # Some versions of bash will fail to source /dev/null (special files
  2218. # actually), so we avoid doing that. DJGPP emulates it as a regular file.
  2219. if test /dev/null != "$cache_file" && test -f "$cache_file"; then
  2220. { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  2221. $as_echo "$as_me: loading cache $cache_file" >&6;}
  2222. case $cache_file in
  2223. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  2224. *) . "./$cache_file";;
  2225. esac
  2226. fi
  2227. else
  2228. { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  2229. $as_echo "$as_me: creating cache $cache_file" >&6;}
  2230. >$cache_file
  2231. fi
  2232. # Check that the precious variables saved in the cache have kept the same
  2233. # value.
  2234. ac_cache_corrupted=false
  2235. for ac_var in $ac_precious_vars; do
  2236. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  2237. eval ac_new_set=\$ac_env_${ac_var}_set
  2238. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  2239. eval ac_new_val=\$ac_env_${ac_var}_value
  2240. case $ac_old_set,$ac_new_set in
  2241. set,)
  2242. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  2243. $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  2244. ac_cache_corrupted=: ;;
  2245. ,set)
  2246. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  2247. $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  2248. ac_cache_corrupted=: ;;
  2249. ,);;
  2250. *)
  2251. if test "x$ac_old_val" != "x$ac_new_val"; then
  2252. # differences in whitespace do not lead to failure.
  2253. ac_old_val_w=`echo x $ac_old_val`
  2254. ac_new_val_w=`echo x $ac_new_val`
  2255. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  2256. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  2257. $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  2258. ac_cache_corrupted=:
  2259. else
  2260. { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  2261. $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  2262. eval $ac_var=\$ac_old_val
  2263. fi
  2264. { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
  2265. $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
  2266. { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
  2267. $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
  2268. fi;;
  2269. esac
  2270. # Pass precious variables to config.status.
  2271. if test "$ac_new_set" = set; then
  2272. case $ac_new_val in
  2273. *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  2274. *) ac_arg=$ac_var=$ac_new_val ;;
  2275. esac
  2276. case " $ac_configure_args " in
  2277. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  2278. *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  2279. esac
  2280. fi
  2281. done
  2282. if $ac_cache_corrupted; then
  2283. { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2284. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2285. { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  2286. $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  2287. as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
  2288. fi
  2289. ## -------------------- ##
  2290. ## Main body of script. ##
  2291. ## -------------------- ##
  2292. ac_ext=c
  2293. ac_cpp='$CPP $CPPFLAGS'
  2294. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2295. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2296. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2297. am__api_version='1.13'
  2298. ac_aux_dir=
  2299. for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
  2300. if test -f "$ac_dir/install-sh"; then
  2301. ac_aux_dir=$ac_dir
  2302. ac_install_sh="$ac_aux_dir/install-sh -c"
  2303. break
  2304. elif test -f "$ac_dir/install.sh"; then
  2305. ac_aux_dir=$ac_dir
  2306. ac_install_sh="$ac_aux_dir/install.sh -c"
  2307. break
  2308. elif test -f "$ac_dir/shtool"; then
  2309. ac_aux_dir=$ac_dir
  2310. ac_install_sh="$ac_aux_dir/shtool install -c"
  2311. break
  2312. fi
  2313. done
  2314. if test -z "$ac_aux_dir"; then
  2315. as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
  2316. fi
  2317. # These three variables are undocumented and unsupported,
  2318. # and are intended to be withdrawn in a future Autoconf release.
  2319. # They can cause serious problems if a builder's source tree is in a directory
  2320. # whose full name contains unusual characters.
  2321. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  2322. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  2323. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  2324. # Find a good install program. We prefer a C program (faster),
  2325. # so one script is as good as another. But avoid the broken or
  2326. # incompatible versions:
  2327. # SysV /etc/install, /usr/sbin/install
  2328. # SunOS /usr/etc/install
  2329. # IRIX /sbin/install
  2330. # AIX /bin/install
  2331. # AmigaOS /C/install, which installs bootblocks on floppy discs
  2332. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  2333. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  2334. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  2335. # OS/2's system install, which has a completely different semantic
  2336. # ./install, which can be erroneously created by make from ./install.sh.
  2337. # Reject install programs that cannot install multiple files.
  2338. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
  2339. $as_echo_n "checking for a BSD-compatible install... " >&6; }
  2340. if test -z "$INSTALL"; then
  2341. if ${ac_cv_path_install+:} false; then :
  2342. $as_echo_n "(cached) " >&6
  2343. else
  2344. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2345. for as_dir in $PATH
  2346. do
  2347. IFS=$as_save_IFS
  2348. test -z "$as_dir" && as_dir=.
  2349. # Account for people who put trailing slashes in PATH elements.
  2350. case $as_dir/ in @%:@((
  2351. ./ | .// | /[cC]/* | \
  2352. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  2353. ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
  2354. /usr/ucb/* ) ;;
  2355. *)
  2356. # OSF1 and SCO ODT 3.0 have their own names for install.
  2357. # Don't use installbsd from OSF since it installs stuff as root
  2358. # by default.
  2359. for ac_prog in ginstall scoinst install; do
  2360. for ac_exec_ext in '' $ac_executable_extensions; do
  2361. if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
  2362. if test $ac_prog = install &&
  2363. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2364. # AIX install. It has an incompatible calling convention.
  2365. :
  2366. elif test $ac_prog = install &&
  2367. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2368. # program-specific install script used by HP pwplus--don't use.
  2369. :
  2370. else
  2371. rm -rf conftest.one conftest.two conftest.dir
  2372. echo one > conftest.one
  2373. echo two > conftest.two
  2374. mkdir conftest.dir
  2375. if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
  2376. test -s conftest.one && test -s conftest.two &&
  2377. test -s conftest.dir/conftest.one &&
  2378. test -s conftest.dir/conftest.two
  2379. then
  2380. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  2381. break 3
  2382. fi
  2383. fi
  2384. fi
  2385. done
  2386. done
  2387. ;;
  2388. esac
  2389. done
  2390. IFS=$as_save_IFS
  2391. rm -rf conftest.one conftest.two conftest.dir
  2392. fi
  2393. if test "${ac_cv_path_install+set}" = set; then
  2394. INSTALL=$ac_cv_path_install
  2395. else
  2396. # As a last resort, use the slow shell script. Don't cache a
  2397. # value for INSTALL within a source directory, because that will
  2398. # break other packages using the cache if that directory is
  2399. # removed, or if the value is a relative name.
  2400. INSTALL=$ac_install_sh
  2401. fi
  2402. fi
  2403. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
  2404. $as_echo "$INSTALL" >&6; }
  2405. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  2406. # It thinks the first close brace ends the variable substitution.
  2407. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  2408. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  2409. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  2410. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
  2411. $as_echo_n "checking whether build environment is sane... " >&6; }
  2412. # Reject unsafe characters in $srcdir or the absolute working directory
  2413. # name. Accept space and tab only in the latter.
  2414. am_lf='
  2415. '
  2416. case `pwd` in
  2417. *[\\\"\#\$\&\'\`$am_lf]*)
  2418. as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
  2419. esac
  2420. case $srcdir in
  2421. *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
  2422. as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
  2423. esac
  2424. # Do 'set' in a subshell so we don't clobber the current shell's
  2425. # arguments. Must try -L first in case configure is actually a
  2426. # symlink; some systems play weird games with the mod time of symlinks
  2427. # (eg FreeBSD returns the mod time of the symlink's containing
  2428. # directory).
  2429. if (
  2430. am_has_slept=no
  2431. for am_try in 1 2; do
  2432. echo "timestamp, slept: $am_has_slept" > conftest.file
  2433. set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
  2434. if test "$*" = "X"; then
  2435. # -L didn't work.
  2436. set X `ls -t "$srcdir/configure" conftest.file`
  2437. fi
  2438. if test "$*" != "X $srcdir/configure conftest.file" \
  2439. && test "$*" != "X conftest.file $srcdir/configure"; then
  2440. # If neither matched, then we have a broken ls. This can happen
  2441. # if, for instance, CONFIG_SHELL is bash and it inherits a
  2442. # broken ls alias from the environment. This has actually
  2443. # happened. Such a system could not be considered "sane".
  2444. as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
  2445. alias in your environment" "$LINENO" 5
  2446. fi
  2447. if test "$2" = conftest.file || test $am_try -eq 2; then
  2448. break
  2449. fi
  2450. # Just in case.
  2451. sleep 1
  2452. am_has_slept=yes
  2453. done
  2454. test "$2" = conftest.file
  2455. )
  2456. then
  2457. # Ok.
  2458. :
  2459. else
  2460. as_fn_error $? "newly created file is older than distributed files!
  2461. Check your system clock" "$LINENO" 5
  2462. fi
  2463. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2464. $as_echo "yes" >&6; }
  2465. # If we didn't sleep, we still need to ensure time stamps of config.status and
  2466. # generated files are strictly newer.
  2467. am_sleep_pid=
  2468. if grep 'slept: no' conftest.file >/dev/null 2>&1; then
  2469. ( sleep 1 ) &
  2470. am_sleep_pid=$!
  2471. fi
  2472. rm -f conftest.file
  2473. test "$program_prefix" != NONE &&
  2474. program_transform_name="s&^&$program_prefix&;$program_transform_name"
  2475. # Use a double $ so make ignores it.
  2476. test "$program_suffix" != NONE &&
  2477. program_transform_name="s&\$&$program_suffix&;$program_transform_name"
  2478. # Double any \ or $.
  2479. # By default was `s,x,x', remove it if useless.
  2480. ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
  2481. program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
  2482. # expand $ac_aux_dir to an absolute path
  2483. am_aux_dir=`cd $ac_aux_dir && pwd`
  2484. if test x"${MISSING+set}" != xset; then
  2485. case $am_aux_dir in
  2486. *\ * | *\ *)
  2487. MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
  2488. *)
  2489. MISSING="\${SHELL} $am_aux_dir/missing" ;;
  2490. esac
  2491. fi
  2492. # Use eval to expand $SHELL
  2493. if eval "$MISSING --is-lightweight"; then
  2494. am_missing_run="$MISSING "
  2495. else
  2496. am_missing_run=
  2497. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
  2498. $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
  2499. fi
  2500. if test x"${install_sh}" != xset; then
  2501. case $am_aux_dir in
  2502. *\ * | *\ *)
  2503. install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
  2504. *)
  2505. install_sh="\${SHELL} $am_aux_dir/install-sh"
  2506. esac
  2507. fi
  2508. # Installed binaries are usually stripped using 'strip' when the user
  2509. # run "make install-strip". However 'strip' might not be the right
  2510. # tool to use in cross-compilation environments, therefore Automake
  2511. # will honor the 'STRIP' environment variable to overrule this program.
  2512. if test "$cross_compiling" != no; then
  2513. if test -n "$ac_tool_prefix"; then
  2514. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  2515. set dummy ${ac_tool_prefix}strip; ac_word=$2
  2516. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2517. $as_echo_n "checking for $ac_word... " >&6; }
  2518. if ${ac_cv_prog_STRIP+:} false; then :
  2519. $as_echo_n "(cached) " >&6
  2520. else
  2521. if test -n "$STRIP"; then
  2522. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  2523. else
  2524. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2525. for as_dir in $PATH
  2526. do
  2527. IFS=$as_save_IFS
  2528. test -z "$as_dir" && as_dir=.
  2529. for ac_exec_ext in '' $ac_executable_extensions; do
  2530. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2531. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  2532. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2533. break 2
  2534. fi
  2535. done
  2536. done
  2537. IFS=$as_save_IFS
  2538. fi
  2539. fi
  2540. STRIP=$ac_cv_prog_STRIP
  2541. if test -n "$STRIP"; then
  2542. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  2543. $as_echo "$STRIP" >&6; }
  2544. else
  2545. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2546. $as_echo "no" >&6; }
  2547. fi
  2548. fi
  2549. if test -z "$ac_cv_prog_STRIP"; then
  2550. ac_ct_STRIP=$STRIP
  2551. # Extract the first word of "strip", so it can be a program name with args.
  2552. set dummy strip; ac_word=$2
  2553. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2554. $as_echo_n "checking for $ac_word... " >&6; }
  2555. if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
  2556. $as_echo_n "(cached) " >&6
  2557. else
  2558. if test -n "$ac_ct_STRIP"; then
  2559. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  2560. else
  2561. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2562. for as_dir in $PATH
  2563. do
  2564. IFS=$as_save_IFS
  2565. test -z "$as_dir" && as_dir=.
  2566. for ac_exec_ext in '' $ac_executable_extensions; do
  2567. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2568. ac_cv_prog_ac_ct_STRIP="strip"
  2569. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2570. break 2
  2571. fi
  2572. done
  2573. done
  2574. IFS=$as_save_IFS
  2575. fi
  2576. fi
  2577. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  2578. if test -n "$ac_ct_STRIP"; then
  2579. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  2580. $as_echo "$ac_ct_STRIP" >&6; }
  2581. else
  2582. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2583. $as_echo "no" >&6; }
  2584. fi
  2585. if test "x$ac_ct_STRIP" = x; then
  2586. STRIP=":"
  2587. else
  2588. case $cross_compiling:$ac_tool_warned in
  2589. yes:)
  2590. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2591. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2592. ac_tool_warned=yes ;;
  2593. esac
  2594. STRIP=$ac_ct_STRIP
  2595. fi
  2596. else
  2597. STRIP="$ac_cv_prog_STRIP"
  2598. fi
  2599. fi
  2600. INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
  2601. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
  2602. $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
  2603. if test -z "$MKDIR_P"; then
  2604. if ${ac_cv_path_mkdir+:} false; then :
  2605. $as_echo_n "(cached) " >&6
  2606. else
  2607. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2608. for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
  2609. do
  2610. IFS=$as_save_IFS
  2611. test -z "$as_dir" && as_dir=.
  2612. for ac_prog in mkdir gmkdir; do
  2613. for ac_exec_ext in '' $ac_executable_extensions; do
  2614. as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
  2615. case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
  2616. 'mkdir (GNU coreutils) '* | \
  2617. 'mkdir (coreutils) '* | \
  2618. 'mkdir (fileutils) '4.1*)
  2619. ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
  2620. break 3;;
  2621. esac
  2622. done
  2623. done
  2624. done
  2625. IFS=$as_save_IFS
  2626. fi
  2627. test -d ./--version && rmdir ./--version
  2628. if test "${ac_cv_path_mkdir+set}" = set; then
  2629. MKDIR_P="$ac_cv_path_mkdir -p"
  2630. else
  2631. # As a last resort, use the slow shell script. Don't cache a
  2632. # value for MKDIR_P within a source directory, because that will
  2633. # break other packages using the cache if that directory is
  2634. # removed, or if the value is a relative name.
  2635. MKDIR_P="$ac_install_sh -d"
  2636. fi
  2637. fi
  2638. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
  2639. $as_echo "$MKDIR_P" >&6; }
  2640. for ac_prog in gawk mawk nawk awk
  2641. do
  2642. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2643. set dummy $ac_prog; ac_word=$2
  2644. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2645. $as_echo_n "checking for $ac_word... " >&6; }
  2646. if ${ac_cv_prog_AWK+:} false; then :
  2647. $as_echo_n "(cached) " >&6
  2648. else
  2649. if test -n "$AWK"; then
  2650. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  2651. else
  2652. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2653. for as_dir in $PATH
  2654. do
  2655. IFS=$as_save_IFS
  2656. test -z "$as_dir" && as_dir=.
  2657. for ac_exec_ext in '' $ac_executable_extensions; do
  2658. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2659. ac_cv_prog_AWK="$ac_prog"
  2660. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2661. break 2
  2662. fi
  2663. done
  2664. done
  2665. IFS=$as_save_IFS
  2666. fi
  2667. fi
  2668. AWK=$ac_cv_prog_AWK
  2669. if test -n "$AWK"; then
  2670. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  2671. $as_echo "$AWK" >&6; }
  2672. else
  2673. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2674. $as_echo "no" >&6; }
  2675. fi
  2676. test -n "$AWK" && break
  2677. done
  2678. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  2679. $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  2680. set x ${MAKE-make}
  2681. ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  2682. if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
  2683. $as_echo_n "(cached) " >&6
  2684. else
  2685. cat >conftest.make <<\_ACEOF
  2686. SHELL = /bin/sh
  2687. all:
  2688. @echo '@@@%%%=$(MAKE)=@@@%%%'
  2689. _ACEOF
  2690. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  2691. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  2692. *@@@%%%=?*=@@@%%%*)
  2693. eval ac_cv_prog_make_${ac_make}_set=yes;;
  2694. *)
  2695. eval ac_cv_prog_make_${ac_make}_set=no;;
  2696. esac
  2697. rm -f conftest.make
  2698. fi
  2699. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  2700. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2701. $as_echo "yes" >&6; }
  2702. SET_MAKE=
  2703. else
  2704. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2705. $as_echo "no" >&6; }
  2706. SET_MAKE="MAKE=${MAKE-make}"
  2707. fi
  2708. rm -rf .tst 2>/dev/null
  2709. mkdir .tst 2>/dev/null
  2710. if test -d .tst; then
  2711. am__leading_dot=.
  2712. else
  2713. am__leading_dot=_
  2714. fi
  2715. rmdir .tst 2>/dev/null
  2716. @%:@ Check whether --enable-silent-rules was given.
  2717. if test "${enable_silent_rules+set}" = set; then :
  2718. enableval=$enable_silent_rules;
  2719. fi
  2720. case $enable_silent_rules in @%:@ (((
  2721. yes) AM_DEFAULT_VERBOSITY=0;;
  2722. no) AM_DEFAULT_VERBOSITY=1;;
  2723. *) AM_DEFAULT_VERBOSITY=1;;
  2724. esac
  2725. am_make=${MAKE-make}
  2726. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
  2727. $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
  2728. if ${am_cv_make_support_nested_variables+:} false; then :
  2729. $as_echo_n "(cached) " >&6
  2730. else
  2731. if $as_echo 'TRUE=$(BAR$(V))
  2732. BAR0=false
  2733. BAR1=true
  2734. V=1
  2735. am__doit:
  2736. @$(TRUE)
  2737. .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
  2738. am_cv_make_support_nested_variables=yes
  2739. else
  2740. am_cv_make_support_nested_variables=no
  2741. fi
  2742. fi
  2743. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
  2744. $as_echo "$am_cv_make_support_nested_variables" >&6; }
  2745. if test $am_cv_make_support_nested_variables = yes; then
  2746. AM_V='$(V)'
  2747. AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
  2748. else
  2749. AM_V=$AM_DEFAULT_VERBOSITY
  2750. AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
  2751. fi
  2752. AM_BACKSLASH='\'
  2753. if test "`cd $srcdir && pwd`" != "`pwd`"; then
  2754. # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
  2755. # is not polluted with repeated "-I."
  2756. am__isrc=' -I$(srcdir)'
  2757. # test to see if srcdir already configured
  2758. if test -f $srcdir/config.status; then
  2759. as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
  2760. fi
  2761. fi
  2762. # test whether we have cygpath
  2763. if test -z "$CYGPATH_W"; then
  2764. if (cygpath --version) >/dev/null 2>/dev/null; then
  2765. CYGPATH_W='cygpath -w'
  2766. else
  2767. CYGPATH_W=echo
  2768. fi
  2769. fi
  2770. # Define the identity of the package.
  2771. PACKAGE='zlog'
  2772. VERSION='1.0'
  2773. cat >>confdefs.h <<_ACEOF
  2774. @%:@define PACKAGE "$PACKAGE"
  2775. _ACEOF
  2776. cat >>confdefs.h <<_ACEOF
  2777. @%:@define VERSION "$VERSION"
  2778. _ACEOF
  2779. # Some tools Automake needs.
  2780. ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
  2781. AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
  2782. AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
  2783. AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
  2784. MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
  2785. # For better backward compatibility. To be removed once Automake 1.9.x
  2786. # dies out for good. For more background, see:
  2787. # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
  2788. # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
  2789. mkdir_p='$(MKDIR_P)'
  2790. # We need awk for the "check" target. The system "awk" is bad on
  2791. # some platforms.
  2792. # Always define AMTAR for backward compatibility. Yes, it's still used
  2793. # in the wild :-( We should find a proper way to deprecate it ...
  2794. AMTAR='$${TAR-tar}'
  2795. # We'll loop over all known methods to create a tar archive until one works.
  2796. _am_tools='gnutar pax cpio none'
  2797. am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
  2798. ac_config_headers="$ac_config_headers config.h"
  2799. # Checks for programs.
  2800. ac_ext=cpp
  2801. ac_cpp='$CXXCPP $CPPFLAGS'
  2802. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2803. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2804. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  2805. if test -z "$CXX"; then
  2806. if test -n "$CCC"; then
  2807. CXX=$CCC
  2808. else
  2809. if test -n "$ac_tool_prefix"; then
  2810. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  2811. do
  2812. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  2813. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  2814. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2815. $as_echo_n "checking for $ac_word... " >&6; }
  2816. if ${ac_cv_prog_CXX+:} false; then :
  2817. $as_echo_n "(cached) " >&6
  2818. else
  2819. if test -n "$CXX"; then
  2820. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  2821. else
  2822. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2823. for as_dir in $PATH
  2824. do
  2825. IFS=$as_save_IFS
  2826. test -z "$as_dir" && as_dir=.
  2827. for ac_exec_ext in '' $ac_executable_extensions; do
  2828. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2829. ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  2830. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2831. break 2
  2832. fi
  2833. done
  2834. done
  2835. IFS=$as_save_IFS
  2836. fi
  2837. fi
  2838. CXX=$ac_cv_prog_CXX
  2839. if test -n "$CXX"; then
  2840. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
  2841. $as_echo "$CXX" >&6; }
  2842. else
  2843. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2844. $as_echo "no" >&6; }
  2845. fi
  2846. test -n "$CXX" && break
  2847. done
  2848. fi
  2849. if test -z "$CXX"; then
  2850. ac_ct_CXX=$CXX
  2851. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  2852. do
  2853. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2854. set dummy $ac_prog; ac_word=$2
  2855. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2856. $as_echo_n "checking for $ac_word... " >&6; }
  2857. if ${ac_cv_prog_ac_ct_CXX+:} false; then :
  2858. $as_echo_n "(cached) " >&6
  2859. else
  2860. if test -n "$ac_ct_CXX"; then
  2861. ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  2862. else
  2863. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2864. for as_dir in $PATH
  2865. do
  2866. IFS=$as_save_IFS
  2867. test -z "$as_dir" && as_dir=.
  2868. for ac_exec_ext in '' $ac_executable_extensions; do
  2869. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2870. ac_cv_prog_ac_ct_CXX="$ac_prog"
  2871. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2872. break 2
  2873. fi
  2874. done
  2875. done
  2876. IFS=$as_save_IFS
  2877. fi
  2878. fi
  2879. ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  2880. if test -n "$ac_ct_CXX"; then
  2881. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
  2882. $as_echo "$ac_ct_CXX" >&6; }
  2883. else
  2884. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2885. $as_echo "no" >&6; }
  2886. fi
  2887. test -n "$ac_ct_CXX" && break
  2888. done
  2889. if test "x$ac_ct_CXX" = x; then
  2890. CXX="g++"
  2891. else
  2892. case $cross_compiling:$ac_tool_warned in
  2893. yes:)
  2894. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2895. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2896. ac_tool_warned=yes ;;
  2897. esac
  2898. CXX=$ac_ct_CXX
  2899. fi
  2900. fi
  2901. fi
  2902. fi
  2903. # Provide some information about the compiler.
  2904. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
  2905. set X $ac_compile
  2906. ac_compiler=$2
  2907. for ac_option in --version -v -V -qversion; do
  2908. { { ac_try="$ac_compiler $ac_option >&5"
  2909. case "(($ac_try" in
  2910. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2911. *) ac_try_echo=$ac_try;;
  2912. esac
  2913. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2914. $as_echo "$ac_try_echo"; } >&5
  2915. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  2916. ac_status=$?
  2917. if test -s conftest.err; then
  2918. sed '10a\
  2919. ... rest of stderr output deleted ...
  2920. 10q' conftest.err >conftest.er1
  2921. cat conftest.er1 >&5
  2922. fi
  2923. rm -f conftest.er1 conftest.err
  2924. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2925. test $ac_status = 0; }
  2926. done
  2927. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2928. /* end confdefs.h. */
  2929. int
  2930. main ()
  2931. {
  2932. ;
  2933. return 0;
  2934. }
  2935. _ACEOF
  2936. ac_clean_files_save=$ac_clean_files
  2937. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  2938. # Try to create an executable without -o first, disregard a.out.
  2939. # It will help us diagnose broken compilers, and finding out an intuition
  2940. # of exeext.
  2941. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler works" >&5
  2942. $as_echo_n "checking whether the C++ compiler works... " >&6; }
  2943. ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  2944. # The possible output files:
  2945. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  2946. ac_rmfiles=
  2947. for ac_file in $ac_files
  2948. do
  2949. case $ac_file in
  2950. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  2951. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  2952. esac
  2953. done
  2954. rm -f $ac_rmfiles
  2955. if { { ac_try="$ac_link_default"
  2956. case "(($ac_try" in
  2957. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2958. *) ac_try_echo=$ac_try;;
  2959. esac
  2960. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2961. $as_echo "$ac_try_echo"; } >&5
  2962. (eval "$ac_link_default") 2>&5
  2963. ac_status=$?
  2964. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2965. test $ac_status = 0; }; then :
  2966. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  2967. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  2968. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  2969. # so that the user can short-circuit this test for compilers unknown to
  2970. # Autoconf.
  2971. for ac_file in $ac_files ''
  2972. do
  2973. test -f "$ac_file" || continue
  2974. case $ac_file in
  2975. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  2976. ;;
  2977. [ab].out )
  2978. # We found the default executable, but exeext='' is most
  2979. # certainly right.
  2980. break;;
  2981. *.* )
  2982. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  2983. then :; else
  2984. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2985. fi
  2986. # We set ac_cv_exeext here because the later test for it is not
  2987. # safe: cross compilers may not add the suffix if given an `-o'
  2988. # argument, so we may need to know it at that point already.
  2989. # Even if this section looks crufty: it has the advantage of
  2990. # actually working.
  2991. break;;
  2992. * )
  2993. break;;
  2994. esac
  2995. done
  2996. test "$ac_cv_exeext" = no && ac_cv_exeext=
  2997. else
  2998. ac_file=''
  2999. fi
  3000. if test -z "$ac_file"; then :
  3001. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3002. $as_echo "no" >&6; }
  3003. $as_echo "$as_me: failed program was:" >&5
  3004. sed 's/^/| /' conftest.$ac_ext >&5
  3005. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3006. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3007. as_fn_error 77 "C++ compiler cannot create executables
  3008. See \`config.log' for more details" "$LINENO" 5; }
  3009. else
  3010. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3011. $as_echo "yes" >&6; }
  3012. fi
  3013. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler default output file name" >&5
  3014. $as_echo_n "checking for C++ compiler default output file name... " >&6; }
  3015. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  3016. $as_echo "$ac_file" >&6; }
  3017. ac_exeext=$ac_cv_exeext
  3018. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  3019. ac_clean_files=$ac_clean_files_save
  3020. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  3021. $as_echo_n "checking for suffix of executables... " >&6; }
  3022. if { { ac_try="$ac_link"
  3023. case "(($ac_try" in
  3024. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3025. *) ac_try_echo=$ac_try;;
  3026. esac
  3027. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3028. $as_echo "$ac_try_echo"; } >&5
  3029. (eval "$ac_link") 2>&5
  3030. ac_status=$?
  3031. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3032. test $ac_status = 0; }; then :
  3033. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  3034. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  3035. # work properly (i.e., refer to `conftest.exe'), while it won't with
  3036. # `rm'.
  3037. for ac_file in conftest.exe conftest conftest.*; do
  3038. test -f "$ac_file" || continue
  3039. case $ac_file in
  3040. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3041. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3042. break;;
  3043. * ) break;;
  3044. esac
  3045. done
  3046. else
  3047. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3048. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3049. as_fn_error $? "cannot compute suffix of executables: cannot compile and link
  3050. See \`config.log' for more details" "$LINENO" 5; }
  3051. fi
  3052. rm -f conftest conftest$ac_cv_exeext
  3053. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  3054. $as_echo "$ac_cv_exeext" >&6; }
  3055. rm -f conftest.$ac_ext
  3056. EXEEXT=$ac_cv_exeext
  3057. ac_exeext=$EXEEXT
  3058. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3059. /* end confdefs.h. */
  3060. @%:@include <stdio.h>
  3061. int
  3062. main ()
  3063. {
  3064. FILE *f = fopen ("conftest.out", "w");
  3065. return ferror (f) || fclose (f) != 0;
  3066. ;
  3067. return 0;
  3068. }
  3069. _ACEOF
  3070. ac_clean_files="$ac_clean_files conftest.out"
  3071. # Check that the compiler produces executables we can run. If not, either
  3072. # the compiler is broken, or we cross compile.
  3073. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  3074. $as_echo_n "checking whether we are cross compiling... " >&6; }
  3075. if test "$cross_compiling" != yes; then
  3076. { { ac_try="$ac_link"
  3077. case "(($ac_try" in
  3078. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3079. *) ac_try_echo=$ac_try;;
  3080. esac
  3081. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3082. $as_echo "$ac_try_echo"; } >&5
  3083. (eval "$ac_link") 2>&5
  3084. ac_status=$?
  3085. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3086. test $ac_status = 0; }
  3087. if { ac_try='./conftest$ac_cv_exeext'
  3088. { { case "(($ac_try" in
  3089. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3090. *) ac_try_echo=$ac_try;;
  3091. esac
  3092. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3093. $as_echo "$ac_try_echo"; } >&5
  3094. (eval "$ac_try") 2>&5
  3095. ac_status=$?
  3096. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3097. test $ac_status = 0; }; }; then
  3098. cross_compiling=no
  3099. else
  3100. if test "$cross_compiling" = maybe; then
  3101. cross_compiling=yes
  3102. else
  3103. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3104. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3105. as_fn_error $? "cannot run C++ compiled programs.
  3106. If you meant to cross compile, use \`--host'.
  3107. See \`config.log' for more details" "$LINENO" 5; }
  3108. fi
  3109. fi
  3110. fi
  3111. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  3112. $as_echo "$cross_compiling" >&6; }
  3113. rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
  3114. ac_clean_files=$ac_clean_files_save
  3115. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  3116. $as_echo_n "checking for suffix of object files... " >&6; }
  3117. if ${ac_cv_objext+:} false; then :
  3118. $as_echo_n "(cached) " >&6
  3119. else
  3120. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3121. /* end confdefs.h. */
  3122. int
  3123. main ()
  3124. {
  3125. ;
  3126. return 0;
  3127. }
  3128. _ACEOF
  3129. rm -f conftest.o conftest.obj
  3130. if { { ac_try="$ac_compile"
  3131. case "(($ac_try" in
  3132. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3133. *) ac_try_echo=$ac_try;;
  3134. esac
  3135. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3136. $as_echo "$ac_try_echo"; } >&5
  3137. (eval "$ac_compile") 2>&5
  3138. ac_status=$?
  3139. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3140. test $ac_status = 0; }; then :
  3141. for ac_file in conftest.o conftest.obj conftest.*; do
  3142. test -f "$ac_file" || continue;
  3143. case $ac_file in
  3144. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  3145. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  3146. break;;
  3147. esac
  3148. done
  3149. else
  3150. $as_echo "$as_me: failed program was:" >&5
  3151. sed 's/^/| /' conftest.$ac_ext >&5
  3152. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3153. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3154. as_fn_error $? "cannot compute suffix of object files: cannot compile
  3155. See \`config.log' for more details" "$LINENO" 5; }
  3156. fi
  3157. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  3158. fi
  3159. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  3160. $as_echo "$ac_cv_objext" >&6; }
  3161. OBJEXT=$ac_cv_objext
  3162. ac_objext=$OBJEXT
  3163. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
  3164. $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
  3165. if ${ac_cv_cxx_compiler_gnu+:} false; then :
  3166. $as_echo_n "(cached) " >&6
  3167. else
  3168. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3169. /* end confdefs.h. */
  3170. int
  3171. main ()
  3172. {
  3173. #ifndef __GNUC__
  3174. choke me
  3175. #endif
  3176. ;
  3177. return 0;
  3178. }
  3179. _ACEOF
  3180. if ac_fn_cxx_try_compile "$LINENO"; then :
  3181. ac_compiler_gnu=yes
  3182. else
  3183. ac_compiler_gnu=no
  3184. fi
  3185. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3186. ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  3187. fi
  3188. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
  3189. $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
  3190. if test $ac_compiler_gnu = yes; then
  3191. GXX=yes
  3192. else
  3193. GXX=
  3194. fi
  3195. ac_test_CXXFLAGS=${CXXFLAGS+set}
  3196. ac_save_CXXFLAGS=$CXXFLAGS
  3197. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
  3198. $as_echo_n "checking whether $CXX accepts -g... " >&6; }
  3199. if ${ac_cv_prog_cxx_g+:} false; then :
  3200. $as_echo_n "(cached) " >&6
  3201. else
  3202. ac_save_cxx_werror_flag=$ac_cxx_werror_flag
  3203. ac_cxx_werror_flag=yes
  3204. ac_cv_prog_cxx_g=no
  3205. CXXFLAGS="-g"
  3206. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3207. /* end confdefs.h. */
  3208. int
  3209. main ()
  3210. {
  3211. ;
  3212. return 0;
  3213. }
  3214. _ACEOF
  3215. if ac_fn_cxx_try_compile "$LINENO"; then :
  3216. ac_cv_prog_cxx_g=yes
  3217. else
  3218. CXXFLAGS=""
  3219. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3220. /* end confdefs.h. */
  3221. int
  3222. main ()
  3223. {
  3224. ;
  3225. return 0;
  3226. }
  3227. _ACEOF
  3228. if ac_fn_cxx_try_compile "$LINENO"; then :
  3229. else
  3230. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  3231. CXXFLAGS="-g"
  3232. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3233. /* end confdefs.h. */
  3234. int
  3235. main ()
  3236. {
  3237. ;
  3238. return 0;
  3239. }
  3240. _ACEOF
  3241. if ac_fn_cxx_try_compile "$LINENO"; then :
  3242. ac_cv_prog_cxx_g=yes
  3243. fi
  3244. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3245. fi
  3246. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3247. fi
  3248. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3249. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  3250. fi
  3251. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
  3252. $as_echo "$ac_cv_prog_cxx_g" >&6; }
  3253. if test "$ac_test_CXXFLAGS" = set; then
  3254. CXXFLAGS=$ac_save_CXXFLAGS
  3255. elif test $ac_cv_prog_cxx_g = yes; then
  3256. if test "$GXX" = yes; then
  3257. CXXFLAGS="-g -O2"
  3258. else
  3259. CXXFLAGS="-g"
  3260. fi
  3261. else
  3262. if test "$GXX" = yes; then
  3263. CXXFLAGS="-O2"
  3264. else
  3265. CXXFLAGS=
  3266. fi
  3267. fi
  3268. ac_ext=c
  3269. ac_cpp='$CPP $CPPFLAGS'
  3270. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3271. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3272. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3273. DEPDIR="${am__leading_dot}deps"
  3274. ac_config_commands="$ac_config_commands depfiles"
  3275. am_make=${MAKE-make}
  3276. cat > confinc << 'END'
  3277. am__doit:
  3278. @echo this is the am__doit target
  3279. .PHONY: am__doit
  3280. END
  3281. # If we don't find an include directive, just comment out the code.
  3282. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
  3283. $as_echo_n "checking for style of include used by $am_make... " >&6; }
  3284. am__include="#"
  3285. am__quote=
  3286. _am_result=none
  3287. # First try GNU make style include.
  3288. echo "include confinc" > confmf
  3289. # Ignore all kinds of additional output from 'make'.
  3290. case `$am_make -s -f confmf 2> /dev/null` in #(
  3291. *the\ am__doit\ target*)
  3292. am__include=include
  3293. am__quote=
  3294. _am_result=GNU
  3295. ;;
  3296. esac
  3297. # Now try BSD make style include.
  3298. if test "$am__include" = "#"; then
  3299. echo '.include "confinc"' > confmf
  3300. case `$am_make -s -f confmf 2> /dev/null` in #(
  3301. *the\ am__doit\ target*)
  3302. am__include=.include
  3303. am__quote="\""
  3304. _am_result=BSD
  3305. ;;
  3306. esac
  3307. fi
  3308. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
  3309. $as_echo "$_am_result" >&6; }
  3310. rm -f confinc confmf
  3311. @%:@ Check whether --enable-dependency-tracking was given.
  3312. if test "${enable_dependency_tracking+set}" = set; then :
  3313. enableval=$enable_dependency_tracking;
  3314. fi
  3315. if test "x$enable_dependency_tracking" != xno; then
  3316. am_depcomp="$ac_aux_dir/depcomp"
  3317. AMDEPBACKSLASH='\'
  3318. am__nodep='_no'
  3319. fi
  3320. if test "x$enable_dependency_tracking" != xno; then
  3321. AMDEP_TRUE=
  3322. AMDEP_FALSE='#'
  3323. else
  3324. AMDEP_TRUE='#'
  3325. AMDEP_FALSE=
  3326. fi
  3327. depcc="$CXX" am_compiler_list=
  3328. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  3329. $as_echo_n "checking dependency style of $depcc... " >&6; }
  3330. if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
  3331. $as_echo_n "(cached) " >&6
  3332. else
  3333. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  3334. # We make a subdir and do the tests there. Otherwise we can end up
  3335. # making bogus files that we don't know about and never remove. For
  3336. # instance it was reported that on HP-UX the gcc test will end up
  3337. # making a dummy file named 'D' -- because '-MD' means "put the output
  3338. # in D".
  3339. rm -rf conftest.dir
  3340. mkdir conftest.dir
  3341. # Copy depcomp to subdir because otherwise we won't find it if we're
  3342. # using a relative directory.
  3343. cp "$am_depcomp" conftest.dir
  3344. cd conftest.dir
  3345. # We will build objects and dependencies in a subdirectory because
  3346. # it helps to detect inapplicable dependency modes. For instance
  3347. # both Tru64's cc and ICC support -MD to output dependencies as a
  3348. # side effect of compilation, but ICC will put the dependencies in
  3349. # the current directory while Tru64 will put them in the object
  3350. # directory.
  3351. mkdir sub
  3352. am_cv_CXX_dependencies_compiler_type=none
  3353. if test "$am_compiler_list" = ""; then
  3354. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  3355. fi
  3356. am__universal=false
  3357. case " $depcc " in #(
  3358. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  3359. esac
  3360. for depmode in $am_compiler_list; do
  3361. # Setup a source with many dependencies, because some compilers
  3362. # like to wrap large dependency lists on column 80 (with \), and
  3363. # we should not choose a depcomp mode which is confused by this.
  3364. #
  3365. # We need to recreate these files for each test, as the compiler may
  3366. # overwrite some of them when testing with obscure command lines.
  3367. # This happens at least with the AIX C compiler.
  3368. : > sub/conftest.c
  3369. for i in 1 2 3 4 5 6; do
  3370. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  3371. # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
  3372. # Solaris 10 /bin/sh.
  3373. echo '/* dummy */' > sub/conftst$i.h
  3374. done
  3375. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  3376. # We check with '-c' and '-o' for the sake of the "dashmstdout"
  3377. # mode. It turns out that the SunPro C++ compiler does not properly
  3378. # handle '-M -o', and we need to detect this. Also, some Intel
  3379. # versions had trouble with output in subdirs.
  3380. am__obj=sub/conftest.${OBJEXT-o}
  3381. am__minus_obj="-o $am__obj"
  3382. case $depmode in
  3383. gcc)
  3384. # This depmode causes a compiler race in universal mode.
  3385. test "$am__universal" = false || continue
  3386. ;;
  3387. nosideeffect)
  3388. # After this tag, mechanisms are not by side-effect, so they'll
  3389. # only be used when explicitly requested.
  3390. if test "x$enable_dependency_tracking" = xyes; then
  3391. continue
  3392. else
  3393. break
  3394. fi
  3395. ;;
  3396. msvc7 | msvc7msys | msvisualcpp | msvcmsys)
  3397. # This compiler won't grok '-c -o', but also, the minuso test has
  3398. # not run yet. These depmodes are late enough in the game, and
  3399. # so weak that their functioning should not be impacted.
  3400. am__obj=conftest.${OBJEXT-o}
  3401. am__minus_obj=
  3402. ;;
  3403. none) break ;;
  3404. esac
  3405. if depmode=$depmode \
  3406. source=sub/conftest.c object=$am__obj \
  3407. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  3408. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  3409. >/dev/null 2>conftest.err &&
  3410. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  3411. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  3412. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  3413. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  3414. # icc doesn't choke on unknown options, it will just issue warnings
  3415. # or remarks (even with -Werror). So we grep stderr for any message
  3416. # that says an option was ignored or not supported.
  3417. # When given -MP, icc 7.0 and 7.1 complain thusly:
  3418. # icc: Command line warning: ignoring option '-M'; no argument required
  3419. # The diagnosis changed in icc 8.0:
  3420. # icc: Command line remark: option '-MP' not supported
  3421. if (grep 'ignoring option' conftest.err ||
  3422. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  3423. am_cv_CXX_dependencies_compiler_type=$depmode
  3424. break
  3425. fi
  3426. fi
  3427. done
  3428. cd ..
  3429. rm -rf conftest.dir
  3430. else
  3431. am_cv_CXX_dependencies_compiler_type=none
  3432. fi
  3433. fi
  3434. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
  3435. $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
  3436. CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
  3437. if
  3438. test "x$enable_dependency_tracking" != xno \
  3439. && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
  3440. am__fastdepCXX_TRUE=
  3441. am__fastdepCXX_FALSE='#'
  3442. else
  3443. am__fastdepCXX_TRUE='#'
  3444. am__fastdepCXX_FALSE=
  3445. fi
  3446. for ac_prog in gawk mawk nawk awk
  3447. do
  3448. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3449. set dummy $ac_prog; ac_word=$2
  3450. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3451. $as_echo_n "checking for $ac_word... " >&6; }
  3452. if ${ac_cv_prog_AWK+:} false; then :
  3453. $as_echo_n "(cached) " >&6
  3454. else
  3455. if test -n "$AWK"; then
  3456. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  3457. else
  3458. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3459. for as_dir in $PATH
  3460. do
  3461. IFS=$as_save_IFS
  3462. test -z "$as_dir" && as_dir=.
  3463. for ac_exec_ext in '' $ac_executable_extensions; do
  3464. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3465. ac_cv_prog_AWK="$ac_prog"
  3466. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3467. break 2
  3468. fi
  3469. done
  3470. done
  3471. IFS=$as_save_IFS
  3472. fi
  3473. fi
  3474. AWK=$ac_cv_prog_AWK
  3475. if test -n "$AWK"; then
  3476. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  3477. $as_echo "$AWK" >&6; }
  3478. else
  3479. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3480. $as_echo "no" >&6; }
  3481. fi
  3482. test -n "$AWK" && break
  3483. done
  3484. ac_ext=c
  3485. ac_cpp='$CPP $CPPFLAGS'
  3486. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3487. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3488. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3489. if test -n "$ac_tool_prefix"; then
  3490. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  3491. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  3492. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3493. $as_echo_n "checking for $ac_word... " >&6; }
  3494. if ${ac_cv_prog_CC+:} false; then :
  3495. $as_echo_n "(cached) " >&6
  3496. else
  3497. if test -n "$CC"; then
  3498. ac_cv_prog_CC="$CC" # Let the user override the test.
  3499. else
  3500. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3501. for as_dir in $PATH
  3502. do
  3503. IFS=$as_save_IFS
  3504. test -z "$as_dir" && as_dir=.
  3505. for ac_exec_ext in '' $ac_executable_extensions; do
  3506. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3507. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  3508. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3509. break 2
  3510. fi
  3511. done
  3512. done
  3513. IFS=$as_save_IFS
  3514. fi
  3515. fi
  3516. CC=$ac_cv_prog_CC
  3517. if test -n "$CC"; then
  3518. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3519. $as_echo "$CC" >&6; }
  3520. else
  3521. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3522. $as_echo "no" >&6; }
  3523. fi
  3524. fi
  3525. if test -z "$ac_cv_prog_CC"; then
  3526. ac_ct_CC=$CC
  3527. # Extract the first word of "gcc", so it can be a program name with args.
  3528. set dummy gcc; ac_word=$2
  3529. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3530. $as_echo_n "checking for $ac_word... " >&6; }
  3531. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  3532. $as_echo_n "(cached) " >&6
  3533. else
  3534. if test -n "$ac_ct_CC"; then
  3535. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3536. else
  3537. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3538. for as_dir in $PATH
  3539. do
  3540. IFS=$as_save_IFS
  3541. test -z "$as_dir" && as_dir=.
  3542. for ac_exec_ext in '' $ac_executable_extensions; do
  3543. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3544. ac_cv_prog_ac_ct_CC="gcc"
  3545. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3546. break 2
  3547. fi
  3548. done
  3549. done
  3550. IFS=$as_save_IFS
  3551. fi
  3552. fi
  3553. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3554. if test -n "$ac_ct_CC"; then
  3555. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  3556. $as_echo "$ac_ct_CC" >&6; }
  3557. else
  3558. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3559. $as_echo "no" >&6; }
  3560. fi
  3561. if test "x$ac_ct_CC" = x; then
  3562. CC=""
  3563. else
  3564. case $cross_compiling:$ac_tool_warned in
  3565. yes:)
  3566. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3567. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3568. ac_tool_warned=yes ;;
  3569. esac
  3570. CC=$ac_ct_CC
  3571. fi
  3572. else
  3573. CC="$ac_cv_prog_CC"
  3574. fi
  3575. if test -z "$CC"; then
  3576. if test -n "$ac_tool_prefix"; then
  3577. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  3578. set dummy ${ac_tool_prefix}cc; ac_word=$2
  3579. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3580. $as_echo_n "checking for $ac_word... " >&6; }
  3581. if ${ac_cv_prog_CC+:} false; then :
  3582. $as_echo_n "(cached) " >&6
  3583. else
  3584. if test -n "$CC"; then
  3585. ac_cv_prog_CC="$CC" # Let the user override the test.
  3586. else
  3587. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3588. for as_dir in $PATH
  3589. do
  3590. IFS=$as_save_IFS
  3591. test -z "$as_dir" && as_dir=.
  3592. for ac_exec_ext in '' $ac_executable_extensions; do
  3593. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3594. ac_cv_prog_CC="${ac_tool_prefix}cc"
  3595. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3596. break 2
  3597. fi
  3598. done
  3599. done
  3600. IFS=$as_save_IFS
  3601. fi
  3602. fi
  3603. CC=$ac_cv_prog_CC
  3604. if test -n "$CC"; then
  3605. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3606. $as_echo "$CC" >&6; }
  3607. else
  3608. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3609. $as_echo "no" >&6; }
  3610. fi
  3611. fi
  3612. fi
  3613. if test -z "$CC"; then
  3614. # Extract the first word of "cc", so it can be a program name with args.
  3615. set dummy cc; ac_word=$2
  3616. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3617. $as_echo_n "checking for $ac_word... " >&6; }
  3618. if ${ac_cv_prog_CC+:} false; then :
  3619. $as_echo_n "(cached) " >&6
  3620. else
  3621. if test -n "$CC"; then
  3622. ac_cv_prog_CC="$CC" # Let the user override the test.
  3623. else
  3624. ac_prog_rejected=no
  3625. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3626. for as_dir in $PATH
  3627. do
  3628. IFS=$as_save_IFS
  3629. test -z "$as_dir" && as_dir=.
  3630. for ac_exec_ext in '' $ac_executable_extensions; do
  3631. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3632. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  3633. ac_prog_rejected=yes
  3634. continue
  3635. fi
  3636. ac_cv_prog_CC="cc"
  3637. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3638. break 2
  3639. fi
  3640. done
  3641. done
  3642. IFS=$as_save_IFS
  3643. if test $ac_prog_rejected = yes; then
  3644. # We found a bogon in the path, so make sure we never use it.
  3645. set dummy $ac_cv_prog_CC
  3646. shift
  3647. if test $@%:@ != 0; then
  3648. # We chose a different compiler from the bogus one.
  3649. # However, it has the same basename, so the bogon will be chosen
  3650. # first if we set CC to just the basename; use the full file name.
  3651. shift
  3652. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  3653. fi
  3654. fi
  3655. fi
  3656. fi
  3657. CC=$ac_cv_prog_CC
  3658. if test -n "$CC"; then
  3659. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3660. $as_echo "$CC" >&6; }
  3661. else
  3662. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3663. $as_echo "no" >&6; }
  3664. fi
  3665. fi
  3666. if test -z "$CC"; then
  3667. if test -n "$ac_tool_prefix"; then
  3668. for ac_prog in cl.exe
  3669. do
  3670. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  3671. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  3672. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3673. $as_echo_n "checking for $ac_word... " >&6; }
  3674. if ${ac_cv_prog_CC+:} false; then :
  3675. $as_echo_n "(cached) " >&6
  3676. else
  3677. if test -n "$CC"; then
  3678. ac_cv_prog_CC="$CC" # Let the user override the test.
  3679. else
  3680. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3681. for as_dir in $PATH
  3682. do
  3683. IFS=$as_save_IFS
  3684. test -z "$as_dir" && as_dir=.
  3685. for ac_exec_ext in '' $ac_executable_extensions; do
  3686. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3687. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  3688. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3689. break 2
  3690. fi
  3691. done
  3692. done
  3693. IFS=$as_save_IFS
  3694. fi
  3695. fi
  3696. CC=$ac_cv_prog_CC
  3697. if test -n "$CC"; then
  3698. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3699. $as_echo "$CC" >&6; }
  3700. else
  3701. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3702. $as_echo "no" >&6; }
  3703. fi
  3704. test -n "$CC" && break
  3705. done
  3706. fi
  3707. if test -z "$CC"; then
  3708. ac_ct_CC=$CC
  3709. for ac_prog in cl.exe
  3710. do
  3711. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3712. set dummy $ac_prog; ac_word=$2
  3713. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3714. $as_echo_n "checking for $ac_word... " >&6; }
  3715. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  3716. $as_echo_n "(cached) " >&6
  3717. else
  3718. if test -n "$ac_ct_CC"; then
  3719. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3720. else
  3721. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3722. for as_dir in $PATH
  3723. do
  3724. IFS=$as_save_IFS
  3725. test -z "$as_dir" && as_dir=.
  3726. for ac_exec_ext in '' $ac_executable_extensions; do
  3727. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3728. ac_cv_prog_ac_ct_CC="$ac_prog"
  3729. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3730. break 2
  3731. fi
  3732. done
  3733. done
  3734. IFS=$as_save_IFS
  3735. fi
  3736. fi
  3737. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3738. if test -n "$ac_ct_CC"; then
  3739. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  3740. $as_echo "$ac_ct_CC" >&6; }
  3741. else
  3742. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3743. $as_echo "no" >&6; }
  3744. fi
  3745. test -n "$ac_ct_CC" && break
  3746. done
  3747. if test "x$ac_ct_CC" = x; then
  3748. CC=""
  3749. else
  3750. case $cross_compiling:$ac_tool_warned in
  3751. yes:)
  3752. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3753. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3754. ac_tool_warned=yes ;;
  3755. esac
  3756. CC=$ac_ct_CC
  3757. fi
  3758. fi
  3759. fi
  3760. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3761. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3762. as_fn_error $? "no acceptable C compiler found in \$PATH
  3763. See \`config.log' for more details" "$LINENO" 5; }
  3764. # Provide some information about the compiler.
  3765. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  3766. set X $ac_compile
  3767. ac_compiler=$2
  3768. for ac_option in --version -v -V -qversion; do
  3769. { { ac_try="$ac_compiler $ac_option >&5"
  3770. case "(($ac_try" in
  3771. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3772. *) ac_try_echo=$ac_try;;
  3773. esac
  3774. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3775. $as_echo "$ac_try_echo"; } >&5
  3776. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  3777. ac_status=$?
  3778. if test -s conftest.err; then
  3779. sed '10a\
  3780. ... rest of stderr output deleted ...
  3781. 10q' conftest.err >conftest.er1
  3782. cat conftest.er1 >&5
  3783. fi
  3784. rm -f conftest.er1 conftest.err
  3785. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3786. test $ac_status = 0; }
  3787. done
  3788. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  3789. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  3790. if ${ac_cv_c_compiler_gnu+:} false; then :
  3791. $as_echo_n "(cached) " >&6
  3792. else
  3793. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3794. /* end confdefs.h. */
  3795. int
  3796. main ()
  3797. {
  3798. #ifndef __GNUC__
  3799. choke me
  3800. #endif
  3801. ;
  3802. return 0;
  3803. }
  3804. _ACEOF
  3805. if ac_fn_c_try_compile "$LINENO"; then :
  3806. ac_compiler_gnu=yes
  3807. else
  3808. ac_compiler_gnu=no
  3809. fi
  3810. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3811. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  3812. fi
  3813. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  3814. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  3815. if test $ac_compiler_gnu = yes; then
  3816. GCC=yes
  3817. else
  3818. GCC=
  3819. fi
  3820. ac_test_CFLAGS=${CFLAGS+set}
  3821. ac_save_CFLAGS=$CFLAGS
  3822. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  3823. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  3824. if ${ac_cv_prog_cc_g+:} false; then :
  3825. $as_echo_n "(cached) " >&6
  3826. else
  3827. ac_save_c_werror_flag=$ac_c_werror_flag
  3828. ac_c_werror_flag=yes
  3829. ac_cv_prog_cc_g=no
  3830. CFLAGS="-g"
  3831. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3832. /* end confdefs.h. */
  3833. int
  3834. main ()
  3835. {
  3836. ;
  3837. return 0;
  3838. }
  3839. _ACEOF
  3840. if ac_fn_c_try_compile "$LINENO"; then :
  3841. ac_cv_prog_cc_g=yes
  3842. else
  3843. CFLAGS=""
  3844. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3845. /* end confdefs.h. */
  3846. int
  3847. main ()
  3848. {
  3849. ;
  3850. return 0;
  3851. }
  3852. _ACEOF
  3853. if ac_fn_c_try_compile "$LINENO"; then :
  3854. else
  3855. ac_c_werror_flag=$ac_save_c_werror_flag
  3856. CFLAGS="-g"
  3857. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3858. /* end confdefs.h. */
  3859. int
  3860. main ()
  3861. {
  3862. ;
  3863. return 0;
  3864. }
  3865. _ACEOF
  3866. if ac_fn_c_try_compile "$LINENO"; then :
  3867. ac_cv_prog_cc_g=yes
  3868. fi
  3869. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3870. fi
  3871. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3872. fi
  3873. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3874. ac_c_werror_flag=$ac_save_c_werror_flag
  3875. fi
  3876. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  3877. $as_echo "$ac_cv_prog_cc_g" >&6; }
  3878. if test "$ac_test_CFLAGS" = set; then
  3879. CFLAGS=$ac_save_CFLAGS
  3880. elif test $ac_cv_prog_cc_g = yes; then
  3881. if test "$GCC" = yes; then
  3882. CFLAGS="-g -O2"
  3883. else
  3884. CFLAGS="-g"
  3885. fi
  3886. else
  3887. if test "$GCC" = yes; then
  3888. CFLAGS="-O2"
  3889. else
  3890. CFLAGS=
  3891. fi
  3892. fi
  3893. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  3894. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  3895. if ${ac_cv_prog_cc_c89+:} false; then :
  3896. $as_echo_n "(cached) " >&6
  3897. else
  3898. ac_cv_prog_cc_c89=no
  3899. ac_save_CC=$CC
  3900. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3901. /* end confdefs.h. */
  3902. #include <stdarg.h>
  3903. #include <stdio.h>
  3904. struct stat;
  3905. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  3906. struct buf { int x; };
  3907. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  3908. static char *e (p, i)
  3909. char **p;
  3910. int i;
  3911. {
  3912. return p[i];
  3913. }
  3914. static char *f (char * (*g) (char **, int), char **p, ...)
  3915. {
  3916. char *s;
  3917. va_list v;
  3918. va_start (v,p);
  3919. s = g (p, va_arg (v,int));
  3920. va_end (v);
  3921. return s;
  3922. }
  3923. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  3924. function prototypes and stuff, but not '\xHH' hex character constants.
  3925. These don't provoke an error unfortunately, instead are silently treated
  3926. as 'x'. The following induces an error, until -std is added to get
  3927. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  3928. array size at least. It's necessary to write '\x00'==0 to get something
  3929. that's true only with -std. */
  3930. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  3931. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  3932. inside strings and character constants. */
  3933. #define FOO(x) 'x'
  3934. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  3935. int test (int i, double x);
  3936. struct s1 {int (*f) (int a);};
  3937. struct s2 {int (*f) (double a);};
  3938. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  3939. int argc;
  3940. char **argv;
  3941. int
  3942. main ()
  3943. {
  3944. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  3945. ;
  3946. return 0;
  3947. }
  3948. _ACEOF
  3949. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  3950. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  3951. do
  3952. CC="$ac_save_CC $ac_arg"
  3953. if ac_fn_c_try_compile "$LINENO"; then :
  3954. ac_cv_prog_cc_c89=$ac_arg
  3955. fi
  3956. rm -f core conftest.err conftest.$ac_objext
  3957. test "x$ac_cv_prog_cc_c89" != "xno" && break
  3958. done
  3959. rm -f conftest.$ac_ext
  3960. CC=$ac_save_CC
  3961. fi
  3962. # AC_CACHE_VAL
  3963. case "x$ac_cv_prog_cc_c89" in
  3964. x)
  3965. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  3966. $as_echo "none needed" >&6; } ;;
  3967. xno)
  3968. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  3969. $as_echo "unsupported" >&6; } ;;
  3970. *)
  3971. CC="$CC $ac_cv_prog_cc_c89"
  3972. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  3973. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  3974. esac
  3975. if test "x$ac_cv_prog_cc_c89" != xno; then :
  3976. fi
  3977. ac_ext=c
  3978. ac_cpp='$CPP $CPPFLAGS'
  3979. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3980. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3981. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3982. depcc="$CC" am_compiler_list=
  3983. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  3984. $as_echo_n "checking dependency style of $depcc... " >&6; }
  3985. if ${am_cv_CC_dependencies_compiler_type+:} false; then :
  3986. $as_echo_n "(cached) " >&6
  3987. else
  3988. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  3989. # We make a subdir and do the tests there. Otherwise we can end up
  3990. # making bogus files that we don't know about and never remove. For
  3991. # instance it was reported that on HP-UX the gcc test will end up
  3992. # making a dummy file named 'D' -- because '-MD' means "put the output
  3993. # in D".
  3994. rm -rf conftest.dir
  3995. mkdir conftest.dir
  3996. # Copy depcomp to subdir because otherwise we won't find it if we're
  3997. # using a relative directory.
  3998. cp "$am_depcomp" conftest.dir
  3999. cd conftest.dir
  4000. # We will build objects and dependencies in a subdirectory because
  4001. # it helps to detect inapplicable dependency modes. For instance
  4002. # both Tru64's cc and ICC support -MD to output dependencies as a
  4003. # side effect of compilation, but ICC will put the dependencies in
  4004. # the current directory while Tru64 will put them in the object
  4005. # directory.
  4006. mkdir sub
  4007. am_cv_CC_dependencies_compiler_type=none
  4008. if test "$am_compiler_list" = ""; then
  4009. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  4010. fi
  4011. am__universal=false
  4012. case " $depcc " in #(
  4013. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  4014. esac
  4015. for depmode in $am_compiler_list; do
  4016. # Setup a source with many dependencies, because some compilers
  4017. # like to wrap large dependency lists on column 80 (with \), and
  4018. # we should not choose a depcomp mode which is confused by this.
  4019. #
  4020. # We need to recreate these files for each test, as the compiler may
  4021. # overwrite some of them when testing with obscure command lines.
  4022. # This happens at least with the AIX C compiler.
  4023. : > sub/conftest.c
  4024. for i in 1 2 3 4 5 6; do
  4025. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  4026. # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
  4027. # Solaris 10 /bin/sh.
  4028. echo '/* dummy */' > sub/conftst$i.h
  4029. done
  4030. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  4031. # We check with '-c' and '-o' for the sake of the "dashmstdout"
  4032. # mode. It turns out that the SunPro C++ compiler does not properly
  4033. # handle '-M -o', and we need to detect this. Also, some Intel
  4034. # versions had trouble with output in subdirs.
  4035. am__obj=sub/conftest.${OBJEXT-o}
  4036. am__minus_obj="-o $am__obj"
  4037. case $depmode in
  4038. gcc)
  4039. # This depmode causes a compiler race in universal mode.
  4040. test "$am__universal" = false || continue
  4041. ;;
  4042. nosideeffect)
  4043. # After this tag, mechanisms are not by side-effect, so they'll
  4044. # only be used when explicitly requested.
  4045. if test "x$enable_dependency_tracking" = xyes; then
  4046. continue
  4047. else
  4048. break
  4049. fi
  4050. ;;
  4051. msvc7 | msvc7msys | msvisualcpp | msvcmsys)
  4052. # This compiler won't grok '-c -o', but also, the minuso test has
  4053. # not run yet. These depmodes are late enough in the game, and
  4054. # so weak that their functioning should not be impacted.
  4055. am__obj=conftest.${OBJEXT-o}
  4056. am__minus_obj=
  4057. ;;
  4058. none) break ;;
  4059. esac
  4060. if depmode=$depmode \
  4061. source=sub/conftest.c object=$am__obj \
  4062. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  4063. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  4064. >/dev/null 2>conftest.err &&
  4065. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  4066. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  4067. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  4068. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  4069. # icc doesn't choke on unknown options, it will just issue warnings
  4070. # or remarks (even with -Werror). So we grep stderr for any message
  4071. # that says an option was ignored or not supported.
  4072. # When given -MP, icc 7.0 and 7.1 complain thusly:
  4073. # icc: Command line warning: ignoring option '-M'; no argument required
  4074. # The diagnosis changed in icc 8.0:
  4075. # icc: Command line remark: option '-MP' not supported
  4076. if (grep 'ignoring option' conftest.err ||
  4077. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  4078. am_cv_CC_dependencies_compiler_type=$depmode
  4079. break
  4080. fi
  4081. fi
  4082. done
  4083. cd ..
  4084. rm -rf conftest.dir
  4085. else
  4086. am_cv_CC_dependencies_compiler_type=none
  4087. fi
  4088. fi
  4089. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
  4090. $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
  4091. CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  4092. if
  4093. test "x$enable_dependency_tracking" != xno \
  4094. && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  4095. am__fastdepCC_TRUE=
  4096. am__fastdepCC_FALSE='#'
  4097. else
  4098. am__fastdepCC_TRUE='#'
  4099. am__fastdepCC_FALSE=
  4100. fi
  4101. ac_ext=c
  4102. ac_cpp='$CPP $CPPFLAGS'
  4103. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4104. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4105. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4106. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
  4107. $as_echo_n "checking how to run the C preprocessor... " >&6; }
  4108. # On Suns, sometimes $CPP names a directory.
  4109. if test -n "$CPP" && test -d "$CPP"; then
  4110. CPP=
  4111. fi
  4112. if test -z "$CPP"; then
  4113. if ${ac_cv_prog_CPP+:} false; then :
  4114. $as_echo_n "(cached) " >&6
  4115. else
  4116. # Double quotes because CPP needs to be expanded
  4117. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  4118. do
  4119. ac_preproc_ok=false
  4120. for ac_c_preproc_warn_flag in '' yes
  4121. do
  4122. # Use a header file that comes with gcc, so configuring glibc
  4123. # with a fresh cross-compiler works.
  4124. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  4125. # <limits.h> exists even on freestanding compilers.
  4126. # On the NeXT, cc -E runs the code through the compiler's parser,
  4127. # not just through cpp. "Syntax error" is here to catch this case.
  4128. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4129. /* end confdefs.h. */
  4130. @%:@ifdef __STDC__
  4131. @%:@ include <limits.h>
  4132. @%:@else
  4133. @%:@ include <assert.h>
  4134. @%:@endif
  4135. Syntax error
  4136. _ACEOF
  4137. if ac_fn_c_try_cpp "$LINENO"; then :
  4138. else
  4139. # Broken: fails on valid input.
  4140. continue
  4141. fi
  4142. rm -f conftest.err conftest.i conftest.$ac_ext
  4143. # OK, works on sane cases. Now check whether nonexistent headers
  4144. # can be detected and how.
  4145. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4146. /* end confdefs.h. */
  4147. @%:@include <ac_nonexistent.h>
  4148. _ACEOF
  4149. if ac_fn_c_try_cpp "$LINENO"; then :
  4150. # Broken: success on invalid input.
  4151. continue
  4152. else
  4153. # Passes both tests.
  4154. ac_preproc_ok=:
  4155. break
  4156. fi
  4157. rm -f conftest.err conftest.i conftest.$ac_ext
  4158. done
  4159. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  4160. rm -f conftest.i conftest.err conftest.$ac_ext
  4161. if $ac_preproc_ok; then :
  4162. break
  4163. fi
  4164. done
  4165. ac_cv_prog_CPP=$CPP
  4166. fi
  4167. CPP=$ac_cv_prog_CPP
  4168. else
  4169. ac_cv_prog_CPP=$CPP
  4170. fi
  4171. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
  4172. $as_echo "$CPP" >&6; }
  4173. ac_preproc_ok=false
  4174. for ac_c_preproc_warn_flag in '' yes
  4175. do
  4176. # Use a header file that comes with gcc, so configuring glibc
  4177. # with a fresh cross-compiler works.
  4178. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  4179. # <limits.h> exists even on freestanding compilers.
  4180. # On the NeXT, cc -E runs the code through the compiler's parser,
  4181. # not just through cpp. "Syntax error" is here to catch this case.
  4182. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4183. /* end confdefs.h. */
  4184. @%:@ifdef __STDC__
  4185. @%:@ include <limits.h>
  4186. @%:@else
  4187. @%:@ include <assert.h>
  4188. @%:@endif
  4189. Syntax error
  4190. _ACEOF
  4191. if ac_fn_c_try_cpp "$LINENO"; then :
  4192. else
  4193. # Broken: fails on valid input.
  4194. continue
  4195. fi
  4196. rm -f conftest.err conftest.i conftest.$ac_ext
  4197. # OK, works on sane cases. Now check whether nonexistent headers
  4198. # can be detected and how.
  4199. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4200. /* end confdefs.h. */
  4201. @%:@include <ac_nonexistent.h>
  4202. _ACEOF
  4203. if ac_fn_c_try_cpp "$LINENO"; then :
  4204. # Broken: success on invalid input.
  4205. continue
  4206. else
  4207. # Passes both tests.
  4208. ac_preproc_ok=:
  4209. break
  4210. fi
  4211. rm -f conftest.err conftest.i conftest.$ac_ext
  4212. done
  4213. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  4214. rm -f conftest.i conftest.err conftest.$ac_ext
  4215. if $ac_preproc_ok; then :
  4216. else
  4217. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  4218. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  4219. as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
  4220. See \`config.log' for more details" "$LINENO" 5; }
  4221. fi
  4222. ac_ext=c
  4223. ac_cpp='$CPP $CPPFLAGS'
  4224. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4225. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4226. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4227. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
  4228. $as_echo_n "checking whether ln -s works... " >&6; }
  4229. LN_S=$as_ln_s
  4230. if test "$LN_S" = "ln -s"; then
  4231. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4232. $as_echo "yes" >&6; }
  4233. else
  4234. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
  4235. $as_echo "no, using $LN_S" >&6; }
  4236. fi
  4237. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  4238. $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  4239. set x ${MAKE-make}
  4240. ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  4241. if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
  4242. $as_echo_n "(cached) " >&6
  4243. else
  4244. cat >conftest.make <<\_ACEOF
  4245. SHELL = /bin/sh
  4246. all:
  4247. @echo '@@@%%%=$(MAKE)=@@@%%%'
  4248. _ACEOF
  4249. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  4250. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  4251. *@@@%%%=?*=@@@%%%*)
  4252. eval ac_cv_prog_make_${ac_make}_set=yes;;
  4253. *)
  4254. eval ac_cv_prog_make_${ac_make}_set=no;;
  4255. esac
  4256. rm -f conftest.make
  4257. fi
  4258. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  4259. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4260. $as_echo "yes" >&6; }
  4261. SET_MAKE=
  4262. else
  4263. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4264. $as_echo "no" >&6; }
  4265. SET_MAKE="MAKE=${MAKE-make}"
  4266. fi
  4267. if test -n "$ac_tool_prefix"; then
  4268. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  4269. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  4270. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4271. $as_echo_n "checking for $ac_word... " >&6; }
  4272. if ${ac_cv_prog_RANLIB+:} false; then :
  4273. $as_echo_n "(cached) " >&6
  4274. else
  4275. if test -n "$RANLIB"; then
  4276. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  4277. else
  4278. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4279. for as_dir in $PATH
  4280. do
  4281. IFS=$as_save_IFS
  4282. test -z "$as_dir" && as_dir=.
  4283. for ac_exec_ext in '' $ac_executable_extensions; do
  4284. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4285. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  4286. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4287. break 2
  4288. fi
  4289. done
  4290. done
  4291. IFS=$as_save_IFS
  4292. fi
  4293. fi
  4294. RANLIB=$ac_cv_prog_RANLIB
  4295. if test -n "$RANLIB"; then
  4296. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  4297. $as_echo "$RANLIB" >&6; }
  4298. else
  4299. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4300. $as_echo "no" >&6; }
  4301. fi
  4302. fi
  4303. if test -z "$ac_cv_prog_RANLIB"; then
  4304. ac_ct_RANLIB=$RANLIB
  4305. # Extract the first word of "ranlib", so it can be a program name with args.
  4306. set dummy ranlib; ac_word=$2
  4307. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4308. $as_echo_n "checking for $ac_word... " >&6; }
  4309. if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
  4310. $as_echo_n "(cached) " >&6
  4311. else
  4312. if test -n "$ac_ct_RANLIB"; then
  4313. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  4314. else
  4315. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4316. for as_dir in $PATH
  4317. do
  4318. IFS=$as_save_IFS
  4319. test -z "$as_dir" && as_dir=.
  4320. for ac_exec_ext in '' $ac_executable_extensions; do
  4321. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4322. ac_cv_prog_ac_ct_RANLIB="ranlib"
  4323. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4324. break 2
  4325. fi
  4326. done
  4327. done
  4328. IFS=$as_save_IFS
  4329. fi
  4330. fi
  4331. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  4332. if test -n "$ac_ct_RANLIB"; then
  4333. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  4334. $as_echo "$ac_ct_RANLIB" >&6; }
  4335. else
  4336. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4337. $as_echo "no" >&6; }
  4338. fi
  4339. if test "x$ac_ct_RANLIB" = x; then
  4340. RANLIB=":"
  4341. else
  4342. case $cross_compiling:$ac_tool_warned in
  4343. yes:)
  4344. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4345. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4346. ac_tool_warned=yes ;;
  4347. esac
  4348. RANLIB=$ac_ct_RANLIB
  4349. fi
  4350. else
  4351. RANLIB="$ac_cv_prog_RANLIB"
  4352. fi
  4353. # Checks for libraries.
  4354. # FIXME: Replace `main' with a function in `-ldl':
  4355. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -ldl" >&5
  4356. $as_echo_n "checking for main in -ldl... " >&6; }
  4357. if ${ac_cv_lib_dl_main+:} false; then :
  4358. $as_echo_n "(cached) " >&6
  4359. else
  4360. ac_check_lib_save_LIBS=$LIBS
  4361. LIBS="-ldl $LIBS"
  4362. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4363. /* end confdefs.h. */
  4364. int
  4365. main ()
  4366. {
  4367. return main ();
  4368. ;
  4369. return 0;
  4370. }
  4371. _ACEOF
  4372. if ac_fn_c_try_link "$LINENO"; then :
  4373. ac_cv_lib_dl_main=yes
  4374. else
  4375. ac_cv_lib_dl_main=no
  4376. fi
  4377. rm -f core conftest.err conftest.$ac_objext \
  4378. conftest$ac_exeext conftest.$ac_ext
  4379. LIBS=$ac_check_lib_save_LIBS
  4380. fi
  4381. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_main" >&5
  4382. $as_echo "$ac_cv_lib_dl_main" >&6; }
  4383. if test "x$ac_cv_lib_dl_main" = xyes; then :
  4384. cat >>confdefs.h <<_ACEOF
  4385. @%:@define HAVE_LIBDL 1
  4386. _ACEOF
  4387. LIBS="-ldl $LIBS"
  4388. fi
  4389. # FIXME: Replace `main' with a function in `-lrt':
  4390. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lrt" >&5
  4391. $as_echo_n "checking for main in -lrt... " >&6; }
  4392. if ${ac_cv_lib_rt_main+:} false; then :
  4393. $as_echo_n "(cached) " >&6
  4394. else
  4395. ac_check_lib_save_LIBS=$LIBS
  4396. LIBS="-lrt $LIBS"
  4397. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4398. /* end confdefs.h. */
  4399. int
  4400. main ()
  4401. {
  4402. return main ();
  4403. ;
  4404. return 0;
  4405. }
  4406. _ACEOF
  4407. if ac_fn_c_try_link "$LINENO"; then :
  4408. ac_cv_lib_rt_main=yes
  4409. else
  4410. ac_cv_lib_rt_main=no
  4411. fi
  4412. rm -f core conftest.err conftest.$ac_objext \
  4413. conftest$ac_exeext conftest.$ac_ext
  4414. LIBS=$ac_check_lib_save_LIBS
  4415. fi
  4416. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_main" >&5
  4417. $as_echo "$ac_cv_lib_rt_main" >&6; }
  4418. if test "x$ac_cv_lib_rt_main" = xyes; then :
  4419. cat >>confdefs.h <<_ACEOF
  4420. @%:@define HAVE_LIBRT 1
  4421. _ACEOF
  4422. LIBS="-lrt $LIBS"
  4423. fi
  4424. # FIXME: Replace `main' with a function in `-lzlog':
  4425. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lzlog" >&5
  4426. $as_echo_n "checking for main in -lzlog... " >&6; }
  4427. if ${ac_cv_lib_zlog_main+:} false; then :
  4428. $as_echo_n "(cached) " >&6
  4429. else
  4430. ac_check_lib_save_LIBS=$LIBS
  4431. LIBS="-lzlog $LIBS"
  4432. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4433. /* end confdefs.h. */
  4434. int
  4435. main ()
  4436. {
  4437. return main ();
  4438. ;
  4439. return 0;
  4440. }
  4441. _ACEOF
  4442. if ac_fn_c_try_link "$LINENO"; then :
  4443. ac_cv_lib_zlog_main=yes
  4444. else
  4445. ac_cv_lib_zlog_main=no
  4446. fi
  4447. rm -f core conftest.err conftest.$ac_objext \
  4448. conftest$ac_exeext conftest.$ac_ext
  4449. LIBS=$ac_check_lib_save_LIBS
  4450. fi
  4451. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_zlog_main" >&5
  4452. $as_echo "$ac_cv_lib_zlog_main" >&6; }
  4453. if test "x$ac_cv_lib_zlog_main" = xyes; then :
  4454. cat >>confdefs.h <<_ACEOF
  4455. @%:@define HAVE_LIBZLOG 1
  4456. _ACEOF
  4457. LIBS="-lzlog $LIBS"
  4458. fi
  4459. # Checks for header files.
  4460. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
  4461. $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
  4462. if ${ac_cv_path_GREP+:} false; then :
  4463. $as_echo_n "(cached) " >&6
  4464. else
  4465. if test -z "$GREP"; then
  4466. ac_path_GREP_found=false
  4467. # Loop through the user's path and test for each of PROGNAME-LIST
  4468. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4469. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4470. do
  4471. IFS=$as_save_IFS
  4472. test -z "$as_dir" && as_dir=.
  4473. for ac_prog in grep ggrep; do
  4474. for ac_exec_ext in '' $ac_executable_extensions; do
  4475. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  4476. as_fn_executable_p "$ac_path_GREP" || continue
  4477. # Check for GNU ac_path_GREP and select it if it is found.
  4478. # Check for GNU $ac_path_GREP
  4479. case `"$ac_path_GREP" --version 2>&1` in
  4480. *GNU*)
  4481. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  4482. *)
  4483. ac_count=0
  4484. $as_echo_n 0123456789 >"conftest.in"
  4485. while :
  4486. do
  4487. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4488. mv "conftest.tmp" "conftest.in"
  4489. cp "conftest.in" "conftest.nl"
  4490. $as_echo 'GREP' >> "conftest.nl"
  4491. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4492. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4493. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4494. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  4495. # Best one so far, save it but keep looking for a better one
  4496. ac_cv_path_GREP="$ac_path_GREP"
  4497. ac_path_GREP_max=$ac_count
  4498. fi
  4499. # 10*(2^10) chars as input seems more than enough
  4500. test $ac_count -gt 10 && break
  4501. done
  4502. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4503. esac
  4504. $ac_path_GREP_found && break 3
  4505. done
  4506. done
  4507. done
  4508. IFS=$as_save_IFS
  4509. if test -z "$ac_cv_path_GREP"; then
  4510. as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4511. fi
  4512. else
  4513. ac_cv_path_GREP=$GREP
  4514. fi
  4515. fi
  4516. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
  4517. $as_echo "$ac_cv_path_GREP" >&6; }
  4518. GREP="$ac_cv_path_GREP"
  4519. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  4520. $as_echo_n "checking for egrep... " >&6; }
  4521. if ${ac_cv_path_EGREP+:} false; then :
  4522. $as_echo_n "(cached) " >&6
  4523. else
  4524. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  4525. then ac_cv_path_EGREP="$GREP -E"
  4526. else
  4527. if test -z "$EGREP"; then
  4528. ac_path_EGREP_found=false
  4529. # Loop through the user's path and test for each of PROGNAME-LIST
  4530. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4531. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4532. do
  4533. IFS=$as_save_IFS
  4534. test -z "$as_dir" && as_dir=.
  4535. for ac_prog in egrep; do
  4536. for ac_exec_ext in '' $ac_executable_extensions; do
  4537. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  4538. as_fn_executable_p "$ac_path_EGREP" || continue
  4539. # Check for GNU ac_path_EGREP and select it if it is found.
  4540. # Check for GNU $ac_path_EGREP
  4541. case `"$ac_path_EGREP" --version 2>&1` in
  4542. *GNU*)
  4543. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  4544. *)
  4545. ac_count=0
  4546. $as_echo_n 0123456789 >"conftest.in"
  4547. while :
  4548. do
  4549. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4550. mv "conftest.tmp" "conftest.in"
  4551. cp "conftest.in" "conftest.nl"
  4552. $as_echo 'EGREP' >> "conftest.nl"
  4553. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4554. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4555. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4556. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  4557. # Best one so far, save it but keep looking for a better one
  4558. ac_cv_path_EGREP="$ac_path_EGREP"
  4559. ac_path_EGREP_max=$ac_count
  4560. fi
  4561. # 10*(2^10) chars as input seems more than enough
  4562. test $ac_count -gt 10 && break
  4563. done
  4564. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4565. esac
  4566. $ac_path_EGREP_found && break 3
  4567. done
  4568. done
  4569. done
  4570. IFS=$as_save_IFS
  4571. if test -z "$ac_cv_path_EGREP"; then
  4572. as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4573. fi
  4574. else
  4575. ac_cv_path_EGREP=$EGREP
  4576. fi
  4577. fi
  4578. fi
  4579. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  4580. $as_echo "$ac_cv_path_EGREP" >&6; }
  4581. EGREP="$ac_cv_path_EGREP"
  4582. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  4583. $as_echo_n "checking for ANSI C header files... " >&6; }
  4584. if ${ac_cv_header_stdc+:} false; then :
  4585. $as_echo_n "(cached) " >&6
  4586. else
  4587. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4588. /* end confdefs.h. */
  4589. #include <stdlib.h>
  4590. #include <stdarg.h>
  4591. #include <string.h>
  4592. #include <float.h>
  4593. int
  4594. main ()
  4595. {
  4596. ;
  4597. return 0;
  4598. }
  4599. _ACEOF
  4600. if ac_fn_c_try_compile "$LINENO"; then :
  4601. ac_cv_header_stdc=yes
  4602. else
  4603. ac_cv_header_stdc=no
  4604. fi
  4605. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4606. if test $ac_cv_header_stdc = yes; then
  4607. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  4608. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4609. /* end confdefs.h. */
  4610. #include <string.h>
  4611. _ACEOF
  4612. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  4613. $EGREP "memchr" >/dev/null 2>&1; then :
  4614. else
  4615. ac_cv_header_stdc=no
  4616. fi
  4617. rm -f conftest*
  4618. fi
  4619. if test $ac_cv_header_stdc = yes; then
  4620. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  4621. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4622. /* end confdefs.h. */
  4623. #include <stdlib.h>
  4624. _ACEOF
  4625. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  4626. $EGREP "free" >/dev/null 2>&1; then :
  4627. else
  4628. ac_cv_header_stdc=no
  4629. fi
  4630. rm -f conftest*
  4631. fi
  4632. if test $ac_cv_header_stdc = yes; then
  4633. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  4634. if test "$cross_compiling" = yes; then :
  4635. :
  4636. else
  4637. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4638. /* end confdefs.h. */
  4639. #include <ctype.h>
  4640. #include <stdlib.h>
  4641. #if ((' ' & 0x0FF) == 0x020)
  4642. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  4643. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  4644. #else
  4645. # define ISLOWER(c) \
  4646. (('a' <= (c) && (c) <= 'i') \
  4647. || ('j' <= (c) && (c) <= 'r') \
  4648. || ('s' <= (c) && (c) <= 'z'))
  4649. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  4650. #endif
  4651. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  4652. int
  4653. main ()
  4654. {
  4655. int i;
  4656. for (i = 0; i < 256; i++)
  4657. if (XOR (islower (i), ISLOWER (i))
  4658. || toupper (i) != TOUPPER (i))
  4659. return 2;
  4660. return 0;
  4661. }
  4662. _ACEOF
  4663. if ac_fn_c_try_run "$LINENO"; then :
  4664. else
  4665. ac_cv_header_stdc=no
  4666. fi
  4667. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  4668. conftest.$ac_objext conftest.beam conftest.$ac_ext
  4669. fi
  4670. fi
  4671. fi
  4672. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  4673. $as_echo "$ac_cv_header_stdc" >&6; }
  4674. if test $ac_cv_header_stdc = yes; then
  4675. $as_echo "@%:@define STDC_HEADERS 1" >>confdefs.h
  4676. fi
  4677. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  4678. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  4679. inttypes.h stdint.h unistd.h
  4680. do :
  4681. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  4682. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  4683. "
  4684. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  4685. cat >>confdefs.h <<_ACEOF
  4686. @%:@define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  4687. _ACEOF
  4688. fi
  4689. done
  4690. for ac_header in memory.h stdint.h stdlib.h string.h sys/time.h unistd.h
  4691. do :
  4692. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  4693. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  4694. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  4695. cat >>confdefs.h <<_ACEOF
  4696. @%:@define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  4697. _ACEOF
  4698. fi
  4699. done
  4700. # Checks for typedefs, structures, and compiler characteristics.
  4701. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
  4702. $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
  4703. if ${ac_cv_header_stdbool_h+:} false; then :
  4704. $as_echo_n "(cached) " >&6
  4705. else
  4706. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4707. /* end confdefs.h. */
  4708. #include <stdbool.h>
  4709. #ifndef bool
  4710. "error: bool is not defined"
  4711. #endif
  4712. #ifndef false
  4713. "error: false is not defined"
  4714. #endif
  4715. #if false
  4716. "error: false is not 0"
  4717. #endif
  4718. #ifndef true
  4719. "error: true is not defined"
  4720. #endif
  4721. #if true != 1
  4722. "error: true is not 1"
  4723. #endif
  4724. #ifndef __bool_true_false_are_defined
  4725. "error: __bool_true_false_are_defined is not defined"
  4726. #endif
  4727. struct s { _Bool s: 1; _Bool t; } s;
  4728. char a[true == 1 ? 1 : -1];
  4729. char b[false == 0 ? 1 : -1];
  4730. char c[__bool_true_false_are_defined == 1 ? 1 : -1];
  4731. char d[(bool) 0.5 == true ? 1 : -1];
  4732. /* See body of main program for 'e'. */
  4733. char f[(_Bool) 0.0 == false ? 1 : -1];
  4734. char g[true];
  4735. char h[sizeof (_Bool)];
  4736. char i[sizeof s.t];
  4737. enum { j = false, k = true, l = false * true, m = true * 256 };
  4738. /* The following fails for
  4739. HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
  4740. _Bool n[m];
  4741. char o[sizeof n == m * sizeof n[0] ? 1 : -1];
  4742. char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
  4743. /* Catch a bug in an HP-UX C compiler. See
  4744. http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
  4745. http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
  4746. */
  4747. _Bool q = true;
  4748. _Bool *pq = &q;
  4749. int
  4750. main ()
  4751. {
  4752. bool e = &s;
  4753. *pq |= q;
  4754. *pq |= ! q;
  4755. /* Refer to every declared value, to avoid compiler optimizations. */
  4756. return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
  4757. + !m + !n + !o + !p + !q + !pq);
  4758. ;
  4759. return 0;
  4760. }
  4761. _ACEOF
  4762. if ac_fn_c_try_compile "$LINENO"; then :
  4763. ac_cv_header_stdbool_h=yes
  4764. else
  4765. ac_cv_header_stdbool_h=no
  4766. fi
  4767. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4768. fi
  4769. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
  4770. $as_echo "$ac_cv_header_stdbool_h" >&6; }
  4771. ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
  4772. if test "x$ac_cv_type__Bool" = xyes; then :
  4773. cat >>confdefs.h <<_ACEOF
  4774. @%:@define HAVE__BOOL 1
  4775. _ACEOF
  4776. fi
  4777. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
  4778. $as_echo_n "checking for inline... " >&6; }
  4779. if ${ac_cv_c_inline+:} false; then :
  4780. $as_echo_n "(cached) " >&6
  4781. else
  4782. ac_cv_c_inline=no
  4783. for ac_kw in inline __inline__ __inline; do
  4784. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4785. /* end confdefs.h. */
  4786. #ifndef __cplusplus
  4787. typedef int foo_t;
  4788. static $ac_kw foo_t static_foo () {return 0; }
  4789. $ac_kw foo_t foo () {return 0; }
  4790. #endif
  4791. _ACEOF
  4792. if ac_fn_c_try_compile "$LINENO"; then :
  4793. ac_cv_c_inline=$ac_kw
  4794. fi
  4795. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4796. test "$ac_cv_c_inline" != no && break
  4797. done
  4798. fi
  4799. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
  4800. $as_echo "$ac_cv_c_inline" >&6; }
  4801. case $ac_cv_c_inline in
  4802. inline | yes) ;;
  4803. *)
  4804. case $ac_cv_c_inline in
  4805. no) ac_val=;;
  4806. *) ac_val=$ac_cv_c_inline;;
  4807. esac
  4808. cat >>confdefs.h <<_ACEOF
  4809. #ifndef __cplusplus
  4810. #define inline $ac_val
  4811. #endif
  4812. _ACEOF
  4813. ;;
  4814. esac
  4815. ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t"
  4816. case $ac_cv_c_int32_t in #(
  4817. no|yes) ;; #(
  4818. *)
  4819. cat >>confdefs.h <<_ACEOF
  4820. @%:@define int32_t $ac_cv_c_int32_t
  4821. _ACEOF
  4822. ;;
  4823. esac
  4824. ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
  4825. case $ac_cv_c_int64_t in #(
  4826. no|yes) ;; #(
  4827. *)
  4828. cat >>confdefs.h <<_ACEOF
  4829. @%:@define int64_t $ac_cv_c_int64_t
  4830. _ACEOF
  4831. ;;
  4832. esac
  4833. ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
  4834. if test "x$ac_cv_type_pid_t" = xyes; then :
  4835. else
  4836. cat >>confdefs.h <<_ACEOF
  4837. @%:@define pid_t int
  4838. _ACEOF
  4839. fi
  4840. ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
  4841. if test "x$ac_cv_type_size_t" = xyes; then :
  4842. else
  4843. cat >>confdefs.h <<_ACEOF
  4844. @%:@define size_t unsigned int
  4845. _ACEOF
  4846. fi
  4847. ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
  4848. case $ac_cv_c_uint32_t in #(
  4849. no|yes) ;; #(
  4850. *)
  4851. $as_echo "@%:@define _UINT32_T 1" >>confdefs.h
  4852. cat >>confdefs.h <<_ACEOF
  4853. @%:@define uint32_t $ac_cv_c_uint32_t
  4854. _ACEOF
  4855. ;;
  4856. esac
  4857. ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
  4858. case $ac_cv_c_uint64_t in #(
  4859. no|yes) ;; #(
  4860. *)
  4861. $as_echo "@%:@define _UINT64_T 1" >>confdefs.h
  4862. cat >>confdefs.h <<_ACEOF
  4863. @%:@define uint64_t $ac_cv_c_uint64_t
  4864. _ACEOF
  4865. ;;
  4866. esac
  4867. ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
  4868. case $ac_cv_c_uint8_t in #(
  4869. no|yes) ;; #(
  4870. *)
  4871. $as_echo "@%:@define _UINT8_T 1" >>confdefs.h
  4872. cat >>confdefs.h <<_ACEOF
  4873. @%:@define uint8_t $ac_cv_c_uint8_t
  4874. _ACEOF
  4875. ;;
  4876. esac
  4877. case `pwd` in
  4878. *\ * | *\ *)
  4879. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
  4880. $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
  4881. esac
  4882. macro_version='2.4.2'
  4883. macro_revision='1.3337'
  4884. ltmain="$ac_aux_dir/ltmain.sh"
  4885. # Make sure we can run config.sub.
  4886. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  4887. as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
  4888. { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
  4889. $as_echo_n "checking build system type... " >&6; }
  4890. if ${ac_cv_build+:} false; then :
  4891. $as_echo_n "(cached) " >&6
  4892. else
  4893. ac_build_alias=$build_alias
  4894. test "x$ac_build_alias" = x &&
  4895. ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  4896. test "x$ac_build_alias" = x &&
  4897. as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
  4898. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  4899. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
  4900. fi
  4901. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
  4902. $as_echo "$ac_cv_build" >&6; }
  4903. case $ac_cv_build in
  4904. *-*-*) ;;
  4905. *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
  4906. esac
  4907. build=$ac_cv_build
  4908. ac_save_IFS=$IFS; IFS='-'
  4909. set x $ac_cv_build
  4910. shift
  4911. build_cpu=$1
  4912. build_vendor=$2
  4913. shift; shift
  4914. # Remember, the first character of IFS is used to create $*,
  4915. # except with old shells:
  4916. build_os=$*
  4917. IFS=$ac_save_IFS
  4918. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  4919. { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
  4920. $as_echo_n "checking host system type... " >&6; }
  4921. if ${ac_cv_host+:} false; then :
  4922. $as_echo_n "(cached) " >&6
  4923. else
  4924. if test "x$host_alias" = x; then
  4925. ac_cv_host=$ac_cv_build
  4926. else
  4927. ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  4928. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
  4929. fi
  4930. fi
  4931. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
  4932. $as_echo "$ac_cv_host" >&6; }
  4933. case $ac_cv_host in
  4934. *-*-*) ;;
  4935. *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
  4936. esac
  4937. host=$ac_cv_host
  4938. ac_save_IFS=$IFS; IFS='-'
  4939. set x $ac_cv_host
  4940. shift
  4941. host_cpu=$1
  4942. host_vendor=$2
  4943. shift; shift
  4944. # Remember, the first character of IFS is used to create $*,
  4945. # except with old shells:
  4946. host_os=$*
  4947. IFS=$ac_save_IFS
  4948. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  4949. # Backslashify metacharacters that are still active within
  4950. # double-quoted strings.
  4951. sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
  4952. # Same as above, but do not quote variable references.
  4953. double_quote_subst='s/\(["`\\]\)/\\\1/g'
  4954. # Sed substitution to delay expansion of an escaped shell variable in a
  4955. # double_quote_subst'ed string.
  4956. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  4957. # Sed substitution to delay expansion of an escaped single quote.
  4958. delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
  4959. # Sed substitution to avoid accidental globbing in evaled expressions
  4960. no_glob_subst='s/\*/\\\*/g'
  4961. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  4962. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
  4963. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
  4964. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
  4965. $as_echo_n "checking how to print strings... " >&6; }
  4966. # Test print first, because it will be a builtin if present.
  4967. if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
  4968. test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
  4969. ECHO='print -r --'
  4970. elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
  4971. ECHO='printf %s\n'
  4972. else
  4973. # Use this function as a fallback that always works.
  4974. func_fallback_echo ()
  4975. {
  4976. eval 'cat <<_LTECHO_EOF
  4977. $1
  4978. _LTECHO_EOF'
  4979. }
  4980. ECHO='func_fallback_echo'
  4981. fi
  4982. # func_echo_all arg...
  4983. # Invoke $ECHO with all args, space-separated.
  4984. func_echo_all ()
  4985. {
  4986. $ECHO ""
  4987. }
  4988. case "$ECHO" in
  4989. printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
  4990. $as_echo "printf" >&6; } ;;
  4991. print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
  4992. $as_echo "print -r" >&6; } ;;
  4993. *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
  4994. $as_echo "cat" >&6; } ;;
  4995. esac
  4996. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
  4997. $as_echo_n "checking for a sed that does not truncate output... " >&6; }
  4998. if ${ac_cv_path_SED+:} false; then :
  4999. $as_echo_n "(cached) " >&6
  5000. else
  5001. ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  5002. for ac_i in 1 2 3 4 5 6 7; do
  5003. ac_script="$ac_script$as_nl$ac_script"
  5004. done
  5005. echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
  5006. { ac_script=; unset ac_script;}
  5007. if test -z "$SED"; then
  5008. ac_path_SED_found=false
  5009. # Loop through the user's path and test for each of PROGNAME-LIST
  5010. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5011. for as_dir in $PATH
  5012. do
  5013. IFS=$as_save_IFS
  5014. test -z "$as_dir" && as_dir=.
  5015. for ac_prog in sed gsed; do
  5016. for ac_exec_ext in '' $ac_executable_extensions; do
  5017. ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
  5018. as_fn_executable_p "$ac_path_SED" || continue
  5019. # Check for GNU ac_path_SED and select it if it is found.
  5020. # Check for GNU $ac_path_SED
  5021. case `"$ac_path_SED" --version 2>&1` in
  5022. *GNU*)
  5023. ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  5024. *)
  5025. ac_count=0
  5026. $as_echo_n 0123456789 >"conftest.in"
  5027. while :
  5028. do
  5029. cat "conftest.in" "conftest.in" >"conftest.tmp"
  5030. mv "conftest.tmp" "conftest.in"
  5031. cp "conftest.in" "conftest.nl"
  5032. $as_echo '' >> "conftest.nl"
  5033. "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  5034. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  5035. as_fn_arith $ac_count + 1 && ac_count=$as_val
  5036. if test $ac_count -gt ${ac_path_SED_max-0}; then
  5037. # Best one so far, save it but keep looking for a better one
  5038. ac_cv_path_SED="$ac_path_SED"
  5039. ac_path_SED_max=$ac_count
  5040. fi
  5041. # 10*(2^10) chars as input seems more than enough
  5042. test $ac_count -gt 10 && break
  5043. done
  5044. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  5045. esac
  5046. $ac_path_SED_found && break 3
  5047. done
  5048. done
  5049. done
  5050. IFS=$as_save_IFS
  5051. if test -z "$ac_cv_path_SED"; then
  5052. as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
  5053. fi
  5054. else
  5055. ac_cv_path_SED=$SED
  5056. fi
  5057. fi
  5058. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
  5059. $as_echo "$ac_cv_path_SED" >&6; }
  5060. SED="$ac_cv_path_SED"
  5061. rm -f conftest.sed
  5062. test -z "$SED" && SED=sed
  5063. Xsed="$SED -e 1s/^X//"
  5064. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
  5065. $as_echo_n "checking for fgrep... " >&6; }
  5066. if ${ac_cv_path_FGREP+:} false; then :
  5067. $as_echo_n "(cached) " >&6
  5068. else
  5069. if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
  5070. then ac_cv_path_FGREP="$GREP -F"
  5071. else
  5072. if test -z "$FGREP"; then
  5073. ac_path_FGREP_found=false
  5074. # Loop through the user's path and test for each of PROGNAME-LIST
  5075. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5076. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  5077. do
  5078. IFS=$as_save_IFS
  5079. test -z "$as_dir" && as_dir=.
  5080. for ac_prog in fgrep; do
  5081. for ac_exec_ext in '' $ac_executable_extensions; do
  5082. ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
  5083. as_fn_executable_p "$ac_path_FGREP" || continue
  5084. # Check for GNU ac_path_FGREP and select it if it is found.
  5085. # Check for GNU $ac_path_FGREP
  5086. case `"$ac_path_FGREP" --version 2>&1` in
  5087. *GNU*)
  5088. ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
  5089. *)
  5090. ac_count=0
  5091. $as_echo_n 0123456789 >"conftest.in"
  5092. while :
  5093. do
  5094. cat "conftest.in" "conftest.in" >"conftest.tmp"
  5095. mv "conftest.tmp" "conftest.in"
  5096. cp "conftest.in" "conftest.nl"
  5097. $as_echo 'FGREP' >> "conftest.nl"
  5098. "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
  5099. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  5100. as_fn_arith $ac_count + 1 && ac_count=$as_val
  5101. if test $ac_count -gt ${ac_path_FGREP_max-0}; then
  5102. # Best one so far, save it but keep looking for a better one
  5103. ac_cv_path_FGREP="$ac_path_FGREP"
  5104. ac_path_FGREP_max=$ac_count
  5105. fi
  5106. # 10*(2^10) chars as input seems more than enough
  5107. test $ac_count -gt 10 && break
  5108. done
  5109. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  5110. esac
  5111. $ac_path_FGREP_found && break 3
  5112. done
  5113. done
  5114. done
  5115. IFS=$as_save_IFS
  5116. if test -z "$ac_cv_path_FGREP"; then
  5117. as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  5118. fi
  5119. else
  5120. ac_cv_path_FGREP=$FGREP
  5121. fi
  5122. fi
  5123. fi
  5124. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
  5125. $as_echo "$ac_cv_path_FGREP" >&6; }
  5126. FGREP="$ac_cv_path_FGREP"
  5127. test -z "$GREP" && GREP=grep
  5128. @%:@ Check whether --with-gnu-ld was given.
  5129. if test "${with_gnu_ld+set}" = set; then :
  5130. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  5131. else
  5132. with_gnu_ld=no
  5133. fi
  5134. ac_prog=ld
  5135. if test "$GCC" = yes; then
  5136. # Check if gcc -print-prog-name=ld gives a path.
  5137. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  5138. $as_echo_n "checking for ld used by $CC... " >&6; }
  5139. case $host in
  5140. *-*-mingw*)
  5141. # gcc leaves a trailing carriage return which upsets mingw
  5142. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  5143. *)
  5144. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  5145. esac
  5146. case $ac_prog in
  5147. # Accept absolute paths.
  5148. [\\/]* | ?:[\\/]*)
  5149. re_direlt='/[^/][^/]*/\.\./'
  5150. # Canonicalize the pathname of ld
  5151. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  5152. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  5153. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  5154. done
  5155. test -z "$LD" && LD="$ac_prog"
  5156. ;;
  5157. "")
  5158. # If it fails, then pretend we aren't using GCC.
  5159. ac_prog=ld
  5160. ;;
  5161. *)
  5162. # If it is relative, then search for the first ld in PATH.
  5163. with_gnu_ld=unknown
  5164. ;;
  5165. esac
  5166. elif test "$with_gnu_ld" = yes; then
  5167. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  5168. $as_echo_n "checking for GNU ld... " >&6; }
  5169. else
  5170. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  5171. $as_echo_n "checking for non-GNU ld... " >&6; }
  5172. fi
  5173. if ${lt_cv_path_LD+:} false; then :
  5174. $as_echo_n "(cached) " >&6
  5175. else
  5176. if test -z "$LD"; then
  5177. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  5178. for ac_dir in $PATH; do
  5179. IFS="$lt_save_ifs"
  5180. test -z "$ac_dir" && ac_dir=.
  5181. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  5182. lt_cv_path_LD="$ac_dir/$ac_prog"
  5183. # Check to see if the program is GNU ld. I'd rather use --version,
  5184. # but apparently some variants of GNU ld only accept -v.
  5185. # Break only if it was the GNU/non-GNU ld that we prefer.
  5186. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  5187. *GNU* | *'with BFD'*)
  5188. test "$with_gnu_ld" != no && break
  5189. ;;
  5190. *)
  5191. test "$with_gnu_ld" != yes && break
  5192. ;;
  5193. esac
  5194. fi
  5195. done
  5196. IFS="$lt_save_ifs"
  5197. else
  5198. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  5199. fi
  5200. fi
  5201. LD="$lt_cv_path_LD"
  5202. if test -n "$LD"; then
  5203. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  5204. $as_echo "$LD" >&6; }
  5205. else
  5206. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5207. $as_echo "no" >&6; }
  5208. fi
  5209. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  5210. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  5211. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  5212. if ${lt_cv_prog_gnu_ld+:} false; then :
  5213. $as_echo_n "(cached) " >&6
  5214. else
  5215. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  5216. case `$LD -v 2>&1 </dev/null` in
  5217. *GNU* | *'with BFD'*)
  5218. lt_cv_prog_gnu_ld=yes
  5219. ;;
  5220. *)
  5221. lt_cv_prog_gnu_ld=no
  5222. ;;
  5223. esac
  5224. fi
  5225. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  5226. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  5227. with_gnu_ld=$lt_cv_prog_gnu_ld
  5228. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
  5229. $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
  5230. if ${lt_cv_path_NM+:} false; then :
  5231. $as_echo_n "(cached) " >&6
  5232. else
  5233. if test -n "$NM"; then
  5234. # Let the user override the test.
  5235. lt_cv_path_NM="$NM"
  5236. else
  5237. lt_nm_to_check="${ac_tool_prefix}nm"
  5238. if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
  5239. lt_nm_to_check="$lt_nm_to_check nm"
  5240. fi
  5241. for lt_tmp_nm in $lt_nm_to_check; do
  5242. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  5243. for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
  5244. IFS="$lt_save_ifs"
  5245. test -z "$ac_dir" && ac_dir=.
  5246. tmp_nm="$ac_dir/$lt_tmp_nm"
  5247. if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
  5248. # Check to see if the nm accepts a BSD-compat flag.
  5249. # Adding the `sed 1q' prevents false positives on HP-UX, which says:
  5250. # nm: unknown option "B" ignored
  5251. # Tru64's nm complains that /dev/null is an invalid object file
  5252. case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
  5253. */dev/null* | *'Invalid file or object type'*)
  5254. lt_cv_path_NM="$tmp_nm -B"
  5255. break
  5256. ;;
  5257. *)
  5258. case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  5259. */dev/null*)
  5260. lt_cv_path_NM="$tmp_nm -p"
  5261. break
  5262. ;;
  5263. *)
  5264. lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  5265. continue # so that we can try to find one that supports BSD flags
  5266. ;;
  5267. esac
  5268. ;;
  5269. esac
  5270. fi
  5271. done
  5272. IFS="$lt_save_ifs"
  5273. done
  5274. : ${lt_cv_path_NM=no}
  5275. fi
  5276. fi
  5277. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
  5278. $as_echo "$lt_cv_path_NM" >&6; }
  5279. if test "$lt_cv_path_NM" != "no"; then
  5280. NM="$lt_cv_path_NM"
  5281. else
  5282. # Didn't find any BSD compatible name lister, look for dumpbin.
  5283. if test -n "$DUMPBIN"; then :
  5284. # Let the user override the test.
  5285. else
  5286. if test -n "$ac_tool_prefix"; then
  5287. for ac_prog in dumpbin "link -dump"
  5288. do
  5289. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  5290. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  5291. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5292. $as_echo_n "checking for $ac_word... " >&6; }
  5293. if ${ac_cv_prog_DUMPBIN+:} false; then :
  5294. $as_echo_n "(cached) " >&6
  5295. else
  5296. if test -n "$DUMPBIN"; then
  5297. ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
  5298. else
  5299. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5300. for as_dir in $PATH
  5301. do
  5302. IFS=$as_save_IFS
  5303. test -z "$as_dir" && as_dir=.
  5304. for ac_exec_ext in '' $ac_executable_extensions; do
  5305. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5306. ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
  5307. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5308. break 2
  5309. fi
  5310. done
  5311. done
  5312. IFS=$as_save_IFS
  5313. fi
  5314. fi
  5315. DUMPBIN=$ac_cv_prog_DUMPBIN
  5316. if test -n "$DUMPBIN"; then
  5317. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
  5318. $as_echo "$DUMPBIN" >&6; }
  5319. else
  5320. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5321. $as_echo "no" >&6; }
  5322. fi
  5323. test -n "$DUMPBIN" && break
  5324. done
  5325. fi
  5326. if test -z "$DUMPBIN"; then
  5327. ac_ct_DUMPBIN=$DUMPBIN
  5328. for ac_prog in dumpbin "link -dump"
  5329. do
  5330. # Extract the first word of "$ac_prog", so it can be a program name with args.
  5331. set dummy $ac_prog; ac_word=$2
  5332. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5333. $as_echo_n "checking for $ac_word... " >&6; }
  5334. if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
  5335. $as_echo_n "(cached) " >&6
  5336. else
  5337. if test -n "$ac_ct_DUMPBIN"; then
  5338. ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
  5339. else
  5340. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5341. for as_dir in $PATH
  5342. do
  5343. IFS=$as_save_IFS
  5344. test -z "$as_dir" && as_dir=.
  5345. for ac_exec_ext in '' $ac_executable_extensions; do
  5346. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5347. ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
  5348. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5349. break 2
  5350. fi
  5351. done
  5352. done
  5353. IFS=$as_save_IFS
  5354. fi
  5355. fi
  5356. ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
  5357. if test -n "$ac_ct_DUMPBIN"; then
  5358. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
  5359. $as_echo "$ac_ct_DUMPBIN" >&6; }
  5360. else
  5361. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5362. $as_echo "no" >&6; }
  5363. fi
  5364. test -n "$ac_ct_DUMPBIN" && break
  5365. done
  5366. if test "x$ac_ct_DUMPBIN" = x; then
  5367. DUMPBIN=":"
  5368. else
  5369. case $cross_compiling:$ac_tool_warned in
  5370. yes:)
  5371. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5372. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5373. ac_tool_warned=yes ;;
  5374. esac
  5375. DUMPBIN=$ac_ct_DUMPBIN
  5376. fi
  5377. fi
  5378. case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
  5379. *COFF*)
  5380. DUMPBIN="$DUMPBIN -symbols"
  5381. ;;
  5382. *)
  5383. DUMPBIN=:
  5384. ;;
  5385. esac
  5386. fi
  5387. if test "$DUMPBIN" != ":"; then
  5388. NM="$DUMPBIN"
  5389. fi
  5390. fi
  5391. test -z "$NM" && NM=nm
  5392. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
  5393. $as_echo_n "checking the name lister ($NM) interface... " >&6; }
  5394. if ${lt_cv_nm_interface+:} false; then :
  5395. $as_echo_n "(cached) " >&6
  5396. else
  5397. lt_cv_nm_interface="BSD nm"
  5398. echo "int some_variable = 0;" > conftest.$ac_ext
  5399. (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
  5400. (eval "$ac_compile" 2>conftest.err)
  5401. cat conftest.err >&5
  5402. (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
  5403. (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
  5404. cat conftest.err >&5
  5405. (eval echo "\"\$as_me:$LINENO: output\"" >&5)
  5406. cat conftest.out >&5
  5407. if $GREP 'External.*some_variable' conftest.out > /dev/null; then
  5408. lt_cv_nm_interface="MS dumpbin"
  5409. fi
  5410. rm -f conftest*
  5411. fi
  5412. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
  5413. $as_echo "$lt_cv_nm_interface" >&6; }
  5414. # find the maximum length of command line arguments
  5415. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
  5416. $as_echo_n "checking the maximum length of command line arguments... " >&6; }
  5417. if ${lt_cv_sys_max_cmd_len+:} false; then :
  5418. $as_echo_n "(cached) " >&6
  5419. else
  5420. i=0
  5421. teststring="ABCD"
  5422. case $build_os in
  5423. msdosdjgpp*)
  5424. # On DJGPP, this test can blow up pretty badly due to problems in libc
  5425. # (any single argument exceeding 2000 bytes causes a buffer overrun
  5426. # during glob expansion). Even if it were fixed, the result of this
  5427. # check would be larger than it should be.
  5428. lt_cv_sys_max_cmd_len=12288; # 12K is about right
  5429. ;;
  5430. gnu*)
  5431. # Under GNU Hurd, this test is not required because there is
  5432. # no limit to the length of command line arguments.
  5433. # Libtool will interpret -1 as no limit whatsoever
  5434. lt_cv_sys_max_cmd_len=-1;
  5435. ;;
  5436. cygwin* | mingw* | cegcc*)
  5437. # On Win9x/ME, this test blows up -- it succeeds, but takes
  5438. # about 5 minutes as the teststring grows exponentially.
  5439. # Worse, since 9x/ME are not pre-emptively multitasking,
  5440. # you end up with a "frozen" computer, even though with patience
  5441. # the test eventually succeeds (with a max line length of 256k).
  5442. # Instead, let's just punt: use the minimum linelength reported by
  5443. # all of the supported platforms: 8192 (on NT/2K/XP).
  5444. lt_cv_sys_max_cmd_len=8192;
  5445. ;;
  5446. mint*)
  5447. # On MiNT this can take a long time and run out of memory.
  5448. lt_cv_sys_max_cmd_len=8192;
  5449. ;;
  5450. amigaos*)
  5451. # On AmigaOS with pdksh, this test takes hours, literally.
  5452. # So we just punt and use a minimum line length of 8192.
  5453. lt_cv_sys_max_cmd_len=8192;
  5454. ;;
  5455. netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
  5456. # This has been around since 386BSD, at least. Likely further.
  5457. if test -x /sbin/sysctl; then
  5458. lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  5459. elif test -x /usr/sbin/sysctl; then
  5460. lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  5461. else
  5462. lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  5463. fi
  5464. # And add a safety zone
  5465. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  5466. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  5467. ;;
  5468. interix*)
  5469. # We know the value 262144 and hardcode it with a safety zone (like BSD)
  5470. lt_cv_sys_max_cmd_len=196608
  5471. ;;
  5472. os2*)
  5473. # The test takes a long time on OS/2.
  5474. lt_cv_sys_max_cmd_len=8192
  5475. ;;
  5476. osf*)
  5477. # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  5478. # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  5479. # nice to cause kernel panics so lets avoid the loop below.
  5480. # First set a reasonable default.
  5481. lt_cv_sys_max_cmd_len=16384
  5482. #
  5483. if test -x /sbin/sysconfig; then
  5484. case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  5485. *1*) lt_cv_sys_max_cmd_len=-1 ;;
  5486. esac
  5487. fi
  5488. ;;
  5489. sco3.2v5*)
  5490. lt_cv_sys_max_cmd_len=102400
  5491. ;;
  5492. sysv5* | sco5v6* | sysv4.2uw2*)
  5493. kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  5494. if test -n "$kargmax"; then
  5495. lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
  5496. else
  5497. lt_cv_sys_max_cmd_len=32768
  5498. fi
  5499. ;;
  5500. *)
  5501. lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
  5502. if test -n "$lt_cv_sys_max_cmd_len"; then
  5503. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  5504. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  5505. else
  5506. # Make teststring a little bigger before we do anything with it.
  5507. # a 1K string should be a reasonable start.
  5508. for i in 1 2 3 4 5 6 7 8 ; do
  5509. teststring=$teststring$teststring
  5510. done
  5511. SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  5512. # If test is not a shell built-in, we'll probably end up computing a
  5513. # maximum length that is only half of the actual maximum length, but
  5514. # we can't tell.
  5515. while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
  5516. = "X$teststring$teststring"; } >/dev/null 2>&1 &&
  5517. test $i != 17 # 1/2 MB should be enough
  5518. do
  5519. i=`expr $i + 1`
  5520. teststring=$teststring$teststring
  5521. done
  5522. # Only check the string length outside the loop.
  5523. lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
  5524. teststring=
  5525. # Add a significant safety factor because C++ compilers can tack on
  5526. # massive amounts of additional arguments before passing them to the
  5527. # linker. It appears as though 1/2 is a usable value.
  5528. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  5529. fi
  5530. ;;
  5531. esac
  5532. fi
  5533. if test -n $lt_cv_sys_max_cmd_len ; then
  5534. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
  5535. $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
  5536. else
  5537. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
  5538. $as_echo "none" >&6; }
  5539. fi
  5540. max_cmd_len=$lt_cv_sys_max_cmd_len
  5541. : ${CP="cp -f"}
  5542. : ${MV="mv -f"}
  5543. : ${RM="rm -f"}
  5544. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
  5545. $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
  5546. # Try some XSI features
  5547. xsi_shell=no
  5548. ( _lt_dummy="a/b/c"
  5549. test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
  5550. = c,a/b,b/c, \
  5551. && eval 'test $(( 1 + 1 )) -eq 2 \
  5552. && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
  5553. && xsi_shell=yes
  5554. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
  5555. $as_echo "$xsi_shell" >&6; }
  5556. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
  5557. $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
  5558. lt_shell_append=no
  5559. ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
  5560. >/dev/null 2>&1 \
  5561. && lt_shell_append=yes
  5562. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
  5563. $as_echo "$lt_shell_append" >&6; }
  5564. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  5565. lt_unset=unset
  5566. else
  5567. lt_unset=false
  5568. fi
  5569. # test EBCDIC or ASCII
  5570. case `echo X|tr X '\101'` in
  5571. A) # ASCII based system
  5572. # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
  5573. lt_SP2NL='tr \040 \012'
  5574. lt_NL2SP='tr \015\012 \040\040'
  5575. ;;
  5576. *) # EBCDIC based system
  5577. lt_SP2NL='tr \100 \n'
  5578. lt_NL2SP='tr \r\n \100\100'
  5579. ;;
  5580. esac
  5581. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
  5582. $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
  5583. if ${lt_cv_to_host_file_cmd+:} false; then :
  5584. $as_echo_n "(cached) " >&6
  5585. else
  5586. case $host in
  5587. *-*-mingw* )
  5588. case $build in
  5589. *-*-mingw* ) # actually msys
  5590. lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
  5591. ;;
  5592. *-*-cygwin* )
  5593. lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
  5594. ;;
  5595. * ) # otherwise, assume *nix
  5596. lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
  5597. ;;
  5598. esac
  5599. ;;
  5600. *-*-cygwin* )
  5601. case $build in
  5602. *-*-mingw* ) # actually msys
  5603. lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
  5604. ;;
  5605. *-*-cygwin* )
  5606. lt_cv_to_host_file_cmd=func_convert_file_noop
  5607. ;;
  5608. * ) # otherwise, assume *nix
  5609. lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
  5610. ;;
  5611. esac
  5612. ;;
  5613. * ) # unhandled hosts (and "normal" native builds)
  5614. lt_cv_to_host_file_cmd=func_convert_file_noop
  5615. ;;
  5616. esac
  5617. fi
  5618. to_host_file_cmd=$lt_cv_to_host_file_cmd
  5619. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
  5620. $as_echo "$lt_cv_to_host_file_cmd" >&6; }
  5621. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
  5622. $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
  5623. if ${lt_cv_to_tool_file_cmd+:} false; then :
  5624. $as_echo_n "(cached) " >&6
  5625. else
  5626. #assume ordinary cross tools, or native build.
  5627. lt_cv_to_tool_file_cmd=func_convert_file_noop
  5628. case $host in
  5629. *-*-mingw* )
  5630. case $build in
  5631. *-*-mingw* ) # actually msys
  5632. lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
  5633. ;;
  5634. esac
  5635. ;;
  5636. esac
  5637. fi
  5638. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  5639. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
  5640. $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
  5641. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
  5642. $as_echo_n "checking for $LD option to reload object files... " >&6; }
  5643. if ${lt_cv_ld_reload_flag+:} false; then :
  5644. $as_echo_n "(cached) " >&6
  5645. else
  5646. lt_cv_ld_reload_flag='-r'
  5647. fi
  5648. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
  5649. $as_echo "$lt_cv_ld_reload_flag" >&6; }
  5650. reload_flag=$lt_cv_ld_reload_flag
  5651. case $reload_flag in
  5652. "" | " "*) ;;
  5653. *) reload_flag=" $reload_flag" ;;
  5654. esac
  5655. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  5656. case $host_os in
  5657. cygwin* | mingw* | pw32* | cegcc*)
  5658. if test "$GCC" != yes; then
  5659. reload_cmds=false
  5660. fi
  5661. ;;
  5662. darwin*)
  5663. if test "$GCC" = yes; then
  5664. reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
  5665. else
  5666. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  5667. fi
  5668. ;;
  5669. esac
  5670. if test -n "$ac_tool_prefix"; then
  5671. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  5672. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  5673. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5674. $as_echo_n "checking for $ac_word... " >&6; }
  5675. if ${ac_cv_prog_OBJDUMP+:} false; then :
  5676. $as_echo_n "(cached) " >&6
  5677. else
  5678. if test -n "$OBJDUMP"; then
  5679. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  5680. else
  5681. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5682. for as_dir in $PATH
  5683. do
  5684. IFS=$as_save_IFS
  5685. test -z "$as_dir" && as_dir=.
  5686. for ac_exec_ext in '' $ac_executable_extensions; do
  5687. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5688. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  5689. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5690. break 2
  5691. fi
  5692. done
  5693. done
  5694. IFS=$as_save_IFS
  5695. fi
  5696. fi
  5697. OBJDUMP=$ac_cv_prog_OBJDUMP
  5698. if test -n "$OBJDUMP"; then
  5699. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  5700. $as_echo "$OBJDUMP" >&6; }
  5701. else
  5702. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5703. $as_echo "no" >&6; }
  5704. fi
  5705. fi
  5706. if test -z "$ac_cv_prog_OBJDUMP"; then
  5707. ac_ct_OBJDUMP=$OBJDUMP
  5708. # Extract the first word of "objdump", so it can be a program name with args.
  5709. set dummy objdump; ac_word=$2
  5710. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5711. $as_echo_n "checking for $ac_word... " >&6; }
  5712. if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
  5713. $as_echo_n "(cached) " >&6
  5714. else
  5715. if test -n "$ac_ct_OBJDUMP"; then
  5716. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  5717. else
  5718. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5719. for as_dir in $PATH
  5720. do
  5721. IFS=$as_save_IFS
  5722. test -z "$as_dir" && as_dir=.
  5723. for ac_exec_ext in '' $ac_executable_extensions; do
  5724. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5725. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  5726. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5727. break 2
  5728. fi
  5729. done
  5730. done
  5731. IFS=$as_save_IFS
  5732. fi
  5733. fi
  5734. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  5735. if test -n "$ac_ct_OBJDUMP"; then
  5736. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  5737. $as_echo "$ac_ct_OBJDUMP" >&6; }
  5738. else
  5739. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5740. $as_echo "no" >&6; }
  5741. fi
  5742. if test "x$ac_ct_OBJDUMP" = x; then
  5743. OBJDUMP="false"
  5744. else
  5745. case $cross_compiling:$ac_tool_warned in
  5746. yes:)
  5747. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5748. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5749. ac_tool_warned=yes ;;
  5750. esac
  5751. OBJDUMP=$ac_ct_OBJDUMP
  5752. fi
  5753. else
  5754. OBJDUMP="$ac_cv_prog_OBJDUMP"
  5755. fi
  5756. test -z "$OBJDUMP" && OBJDUMP=objdump
  5757. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
  5758. $as_echo_n "checking how to recognize dependent libraries... " >&6; }
  5759. if ${lt_cv_deplibs_check_method+:} false; then :
  5760. $as_echo_n "(cached) " >&6
  5761. else
  5762. lt_cv_file_magic_cmd='$MAGIC_CMD'
  5763. lt_cv_file_magic_test_file=
  5764. lt_cv_deplibs_check_method='unknown'
  5765. # Need to set the preceding variable on all platforms that support
  5766. # interlibrary dependencies.
  5767. # 'none' -- dependencies not supported.
  5768. # `unknown' -- same as none, but documents that we really don't know.
  5769. # 'pass_all' -- all dependencies passed with no checks.
  5770. # 'test_compile' -- check by making test program.
  5771. # 'file_magic [[regex]]' -- check by looking for files in library path
  5772. # which responds to the $file_magic_cmd with a given extended regex.
  5773. # If you have `file' or equivalent on your system and you're not sure
  5774. # whether `pass_all' will *always* work, you probably want this one.
  5775. case $host_os in
  5776. aix[4-9]*)
  5777. lt_cv_deplibs_check_method=pass_all
  5778. ;;
  5779. beos*)
  5780. lt_cv_deplibs_check_method=pass_all
  5781. ;;
  5782. bsdi[45]*)
  5783. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  5784. lt_cv_file_magic_cmd='/usr/bin/file -L'
  5785. lt_cv_file_magic_test_file=/shlib/libc.so
  5786. ;;
  5787. cygwin*)
  5788. # func_win32_libid is a shell function defined in ltmain.sh
  5789. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  5790. lt_cv_file_magic_cmd='func_win32_libid'
  5791. ;;
  5792. mingw* | pw32*)
  5793. # Base MSYS/MinGW do not provide the 'file' command needed by
  5794. # func_win32_libid shell function, so use a weaker test based on 'objdump',
  5795. # unless we find 'file', for example because we are cross-compiling.
  5796. # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
  5797. if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
  5798. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  5799. lt_cv_file_magic_cmd='func_win32_libid'
  5800. else
  5801. # Keep this pattern in sync with the one in func_win32_libid.
  5802. lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
  5803. lt_cv_file_magic_cmd='$OBJDUMP -f'
  5804. fi
  5805. ;;
  5806. cegcc*)
  5807. # use the weaker test based on 'objdump'. See mingw*.
  5808. lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
  5809. lt_cv_file_magic_cmd='$OBJDUMP -f'
  5810. ;;
  5811. darwin* | rhapsody*)
  5812. lt_cv_deplibs_check_method=pass_all
  5813. ;;
  5814. freebsd* | dragonfly*)
  5815. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  5816. case $host_cpu in
  5817. i*86 )
  5818. # Not sure whether the presence of OpenBSD here was a mistake.
  5819. # Let's accept both of them until this is cleared up.
  5820. lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
  5821. lt_cv_file_magic_cmd=/usr/bin/file
  5822. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  5823. ;;
  5824. esac
  5825. else
  5826. lt_cv_deplibs_check_method=pass_all
  5827. fi
  5828. ;;
  5829. gnu*)
  5830. lt_cv_deplibs_check_method=pass_all
  5831. ;;
  5832. haiku*)
  5833. lt_cv_deplibs_check_method=pass_all
  5834. ;;
  5835. hpux10.20* | hpux11*)
  5836. lt_cv_file_magic_cmd=/usr/bin/file
  5837. case $host_cpu in
  5838. ia64*)
  5839. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
  5840. lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  5841. ;;
  5842. hppa*64*)
  5843. 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]'
  5844. lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  5845. ;;
  5846. *)
  5847. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
  5848. lt_cv_file_magic_test_file=/usr/lib/libc.sl
  5849. ;;
  5850. esac
  5851. ;;
  5852. interix[3-9]*)
  5853. # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  5854. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
  5855. ;;
  5856. irix5* | irix6* | nonstopux*)
  5857. case $LD in
  5858. *-32|*"-32 ") libmagic=32-bit;;
  5859. *-n32|*"-n32 ") libmagic=N32;;
  5860. *-64|*"-64 ") libmagic=64-bit;;
  5861. *) libmagic=never-match;;
  5862. esac
  5863. lt_cv_deplibs_check_method=pass_all
  5864. ;;
  5865. # This must be glibc/ELF.
  5866. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  5867. lt_cv_deplibs_check_method=pass_all
  5868. ;;
  5869. netbsd*)
  5870. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  5871. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  5872. else
  5873. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
  5874. fi
  5875. ;;
  5876. newos6*)
  5877. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  5878. lt_cv_file_magic_cmd=/usr/bin/file
  5879. lt_cv_file_magic_test_file=/usr/lib/libnls.so
  5880. ;;
  5881. *nto* | *qnx*)
  5882. lt_cv_deplibs_check_method=pass_all
  5883. ;;
  5884. openbsd*)
  5885. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  5886. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
  5887. else
  5888. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  5889. fi
  5890. ;;
  5891. osf3* | osf4* | osf5*)
  5892. lt_cv_deplibs_check_method=pass_all
  5893. ;;
  5894. rdos*)
  5895. lt_cv_deplibs_check_method=pass_all
  5896. ;;
  5897. solaris*)
  5898. lt_cv_deplibs_check_method=pass_all
  5899. ;;
  5900. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  5901. lt_cv_deplibs_check_method=pass_all
  5902. ;;
  5903. sysv4 | sysv4.3*)
  5904. case $host_vendor in
  5905. motorola)
  5906. 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]'
  5907. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  5908. ;;
  5909. ncr)
  5910. lt_cv_deplibs_check_method=pass_all
  5911. ;;
  5912. sequent)
  5913. lt_cv_file_magic_cmd='/bin/file'
  5914. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
  5915. ;;
  5916. sni)
  5917. lt_cv_file_magic_cmd='/bin/file'
  5918. lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
  5919. lt_cv_file_magic_test_file=/lib/libc.so
  5920. ;;
  5921. siemens)
  5922. lt_cv_deplibs_check_method=pass_all
  5923. ;;
  5924. pc)
  5925. lt_cv_deplibs_check_method=pass_all
  5926. ;;
  5927. esac
  5928. ;;
  5929. tpf*)
  5930. lt_cv_deplibs_check_method=pass_all
  5931. ;;
  5932. esac
  5933. fi
  5934. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
  5935. $as_echo "$lt_cv_deplibs_check_method" >&6; }
  5936. file_magic_glob=
  5937. want_nocaseglob=no
  5938. if test "$build" = "$host"; then
  5939. case $host_os in
  5940. mingw* | pw32*)
  5941. if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
  5942. want_nocaseglob=yes
  5943. else
  5944. file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
  5945. fi
  5946. ;;
  5947. esac
  5948. fi
  5949. file_magic_cmd=$lt_cv_file_magic_cmd
  5950. deplibs_check_method=$lt_cv_deplibs_check_method
  5951. test -z "$deplibs_check_method" && deplibs_check_method=unknown
  5952. if test -n "$ac_tool_prefix"; then
  5953. # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
  5954. set dummy ${ac_tool_prefix}dlltool; ac_word=$2
  5955. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5956. $as_echo_n "checking for $ac_word... " >&6; }
  5957. if ${ac_cv_prog_DLLTOOL+:} false; then :
  5958. $as_echo_n "(cached) " >&6
  5959. else
  5960. if test -n "$DLLTOOL"; then
  5961. ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
  5962. else
  5963. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5964. for as_dir in $PATH
  5965. do
  5966. IFS=$as_save_IFS
  5967. test -z "$as_dir" && as_dir=.
  5968. for ac_exec_ext in '' $ac_executable_extensions; do
  5969. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5970. ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
  5971. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5972. break 2
  5973. fi
  5974. done
  5975. done
  5976. IFS=$as_save_IFS
  5977. fi
  5978. fi
  5979. DLLTOOL=$ac_cv_prog_DLLTOOL
  5980. if test -n "$DLLTOOL"; then
  5981. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
  5982. $as_echo "$DLLTOOL" >&6; }
  5983. else
  5984. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5985. $as_echo "no" >&6; }
  5986. fi
  5987. fi
  5988. if test -z "$ac_cv_prog_DLLTOOL"; then
  5989. ac_ct_DLLTOOL=$DLLTOOL
  5990. # Extract the first word of "dlltool", so it can be a program name with args.
  5991. set dummy dlltool; ac_word=$2
  5992. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5993. $as_echo_n "checking for $ac_word... " >&6; }
  5994. if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
  5995. $as_echo_n "(cached) " >&6
  5996. else
  5997. if test -n "$ac_ct_DLLTOOL"; then
  5998. ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
  5999. else
  6000. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6001. for as_dir in $PATH
  6002. do
  6003. IFS=$as_save_IFS
  6004. test -z "$as_dir" && as_dir=.
  6005. for ac_exec_ext in '' $ac_executable_extensions; do
  6006. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6007. ac_cv_prog_ac_ct_DLLTOOL="dlltool"
  6008. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6009. break 2
  6010. fi
  6011. done
  6012. done
  6013. IFS=$as_save_IFS
  6014. fi
  6015. fi
  6016. ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
  6017. if test -n "$ac_ct_DLLTOOL"; then
  6018. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
  6019. $as_echo "$ac_ct_DLLTOOL" >&6; }
  6020. else
  6021. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6022. $as_echo "no" >&6; }
  6023. fi
  6024. if test "x$ac_ct_DLLTOOL" = x; then
  6025. DLLTOOL="false"
  6026. else
  6027. case $cross_compiling:$ac_tool_warned in
  6028. yes:)
  6029. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6030. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6031. ac_tool_warned=yes ;;
  6032. esac
  6033. DLLTOOL=$ac_ct_DLLTOOL
  6034. fi
  6035. else
  6036. DLLTOOL="$ac_cv_prog_DLLTOOL"
  6037. fi
  6038. test -z "$DLLTOOL" && DLLTOOL=dlltool
  6039. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
  6040. $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
  6041. if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
  6042. $as_echo_n "(cached) " >&6
  6043. else
  6044. lt_cv_sharedlib_from_linklib_cmd='unknown'
  6045. case $host_os in
  6046. cygwin* | mingw* | pw32* | cegcc*)
  6047. # two different shell functions defined in ltmain.sh
  6048. # decide which to use based on capabilities of $DLLTOOL
  6049. case `$DLLTOOL --help 2>&1` in
  6050. *--identify-strict*)
  6051. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
  6052. ;;
  6053. *)
  6054. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
  6055. ;;
  6056. esac
  6057. ;;
  6058. *)
  6059. # fallback: assume linklib IS sharedlib
  6060. lt_cv_sharedlib_from_linklib_cmd="$ECHO"
  6061. ;;
  6062. esac
  6063. fi
  6064. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
  6065. $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
  6066. sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
  6067. test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
  6068. if test -n "$ac_tool_prefix"; then
  6069. for ac_prog in ar
  6070. do
  6071. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  6072. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  6073. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6074. $as_echo_n "checking for $ac_word... " >&6; }
  6075. if ${ac_cv_prog_AR+:} false; then :
  6076. $as_echo_n "(cached) " >&6
  6077. else
  6078. if test -n "$AR"; then
  6079. ac_cv_prog_AR="$AR" # Let the user override the test.
  6080. else
  6081. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6082. for as_dir in $PATH
  6083. do
  6084. IFS=$as_save_IFS
  6085. test -z "$as_dir" && as_dir=.
  6086. for ac_exec_ext in '' $ac_executable_extensions; do
  6087. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6088. ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
  6089. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6090. break 2
  6091. fi
  6092. done
  6093. done
  6094. IFS=$as_save_IFS
  6095. fi
  6096. fi
  6097. AR=$ac_cv_prog_AR
  6098. if test -n "$AR"; then
  6099. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  6100. $as_echo "$AR" >&6; }
  6101. else
  6102. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6103. $as_echo "no" >&6; }
  6104. fi
  6105. test -n "$AR" && break
  6106. done
  6107. fi
  6108. if test -z "$AR"; then
  6109. ac_ct_AR=$AR
  6110. for ac_prog in ar
  6111. do
  6112. # Extract the first word of "$ac_prog", so it can be a program name with args.
  6113. set dummy $ac_prog; ac_word=$2
  6114. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6115. $as_echo_n "checking for $ac_word... " >&6; }
  6116. if ${ac_cv_prog_ac_ct_AR+:} false; then :
  6117. $as_echo_n "(cached) " >&6
  6118. else
  6119. if test -n "$ac_ct_AR"; then
  6120. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  6121. else
  6122. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6123. for as_dir in $PATH
  6124. do
  6125. IFS=$as_save_IFS
  6126. test -z "$as_dir" && as_dir=.
  6127. for ac_exec_ext in '' $ac_executable_extensions; do
  6128. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6129. ac_cv_prog_ac_ct_AR="$ac_prog"
  6130. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6131. break 2
  6132. fi
  6133. done
  6134. done
  6135. IFS=$as_save_IFS
  6136. fi
  6137. fi
  6138. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  6139. if test -n "$ac_ct_AR"; then
  6140. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
  6141. $as_echo "$ac_ct_AR" >&6; }
  6142. else
  6143. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6144. $as_echo "no" >&6; }
  6145. fi
  6146. test -n "$ac_ct_AR" && break
  6147. done
  6148. if test "x$ac_ct_AR" = x; then
  6149. AR="false"
  6150. else
  6151. case $cross_compiling:$ac_tool_warned in
  6152. yes:)
  6153. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6154. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6155. ac_tool_warned=yes ;;
  6156. esac
  6157. AR=$ac_ct_AR
  6158. fi
  6159. fi
  6160. : ${AR=ar}
  6161. : ${AR_FLAGS=cru}
  6162. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
  6163. $as_echo_n "checking for archiver @FILE support... " >&6; }
  6164. if ${lt_cv_ar_at_file+:} false; then :
  6165. $as_echo_n "(cached) " >&6
  6166. else
  6167. lt_cv_ar_at_file=no
  6168. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6169. /* end confdefs.h. */
  6170. int
  6171. main ()
  6172. {
  6173. ;
  6174. return 0;
  6175. }
  6176. _ACEOF
  6177. if ac_fn_c_try_compile "$LINENO"; then :
  6178. echo conftest.$ac_objext > conftest.lst
  6179. lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
  6180. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  6181. (eval $lt_ar_try) 2>&5
  6182. ac_status=$?
  6183. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6184. test $ac_status = 0; }
  6185. if test "$ac_status" -eq 0; then
  6186. # Ensure the archiver fails upon bogus file names.
  6187. rm -f conftest.$ac_objext libconftest.a
  6188. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  6189. (eval $lt_ar_try) 2>&5
  6190. ac_status=$?
  6191. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6192. test $ac_status = 0; }
  6193. if test "$ac_status" -ne 0; then
  6194. lt_cv_ar_at_file=@
  6195. fi
  6196. fi
  6197. rm -f conftest.* libconftest.a
  6198. fi
  6199. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6200. fi
  6201. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
  6202. $as_echo "$lt_cv_ar_at_file" >&6; }
  6203. if test "x$lt_cv_ar_at_file" = xno; then
  6204. archiver_list_spec=
  6205. else
  6206. archiver_list_spec=$lt_cv_ar_at_file
  6207. fi
  6208. if test -n "$ac_tool_prefix"; then
  6209. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  6210. set dummy ${ac_tool_prefix}strip; ac_word=$2
  6211. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6212. $as_echo_n "checking for $ac_word... " >&6; }
  6213. if ${ac_cv_prog_STRIP+:} false; then :
  6214. $as_echo_n "(cached) " >&6
  6215. else
  6216. if test -n "$STRIP"; then
  6217. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  6218. else
  6219. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6220. for as_dir in $PATH
  6221. do
  6222. IFS=$as_save_IFS
  6223. test -z "$as_dir" && as_dir=.
  6224. for ac_exec_ext in '' $ac_executable_extensions; do
  6225. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6226. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  6227. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6228. break 2
  6229. fi
  6230. done
  6231. done
  6232. IFS=$as_save_IFS
  6233. fi
  6234. fi
  6235. STRIP=$ac_cv_prog_STRIP
  6236. if test -n "$STRIP"; then
  6237. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  6238. $as_echo "$STRIP" >&6; }
  6239. else
  6240. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6241. $as_echo "no" >&6; }
  6242. fi
  6243. fi
  6244. if test -z "$ac_cv_prog_STRIP"; then
  6245. ac_ct_STRIP=$STRIP
  6246. # Extract the first word of "strip", so it can be a program name with args.
  6247. set dummy strip; ac_word=$2
  6248. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6249. $as_echo_n "checking for $ac_word... " >&6; }
  6250. if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
  6251. $as_echo_n "(cached) " >&6
  6252. else
  6253. if test -n "$ac_ct_STRIP"; then
  6254. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  6255. else
  6256. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6257. for as_dir in $PATH
  6258. do
  6259. IFS=$as_save_IFS
  6260. test -z "$as_dir" && as_dir=.
  6261. for ac_exec_ext in '' $ac_executable_extensions; do
  6262. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6263. ac_cv_prog_ac_ct_STRIP="strip"
  6264. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6265. break 2
  6266. fi
  6267. done
  6268. done
  6269. IFS=$as_save_IFS
  6270. fi
  6271. fi
  6272. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  6273. if test -n "$ac_ct_STRIP"; then
  6274. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  6275. $as_echo "$ac_ct_STRIP" >&6; }
  6276. else
  6277. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6278. $as_echo "no" >&6; }
  6279. fi
  6280. if test "x$ac_ct_STRIP" = x; then
  6281. STRIP=":"
  6282. else
  6283. case $cross_compiling:$ac_tool_warned in
  6284. yes:)
  6285. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6286. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6287. ac_tool_warned=yes ;;
  6288. esac
  6289. STRIP=$ac_ct_STRIP
  6290. fi
  6291. else
  6292. STRIP="$ac_cv_prog_STRIP"
  6293. fi
  6294. test -z "$STRIP" && STRIP=:
  6295. if test -n "$ac_tool_prefix"; then
  6296. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  6297. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  6298. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6299. $as_echo_n "checking for $ac_word... " >&6; }
  6300. if ${ac_cv_prog_RANLIB+:} false; then :
  6301. $as_echo_n "(cached) " >&6
  6302. else
  6303. if test -n "$RANLIB"; then
  6304. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  6305. else
  6306. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6307. for as_dir in $PATH
  6308. do
  6309. IFS=$as_save_IFS
  6310. test -z "$as_dir" && as_dir=.
  6311. for ac_exec_ext in '' $ac_executable_extensions; do
  6312. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6313. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  6314. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6315. break 2
  6316. fi
  6317. done
  6318. done
  6319. IFS=$as_save_IFS
  6320. fi
  6321. fi
  6322. RANLIB=$ac_cv_prog_RANLIB
  6323. if test -n "$RANLIB"; then
  6324. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  6325. $as_echo "$RANLIB" >&6; }
  6326. else
  6327. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6328. $as_echo "no" >&6; }
  6329. fi
  6330. fi
  6331. if test -z "$ac_cv_prog_RANLIB"; then
  6332. ac_ct_RANLIB=$RANLIB
  6333. # Extract the first word of "ranlib", so it can be a program name with args.
  6334. set dummy ranlib; ac_word=$2
  6335. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6336. $as_echo_n "checking for $ac_word... " >&6; }
  6337. if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
  6338. $as_echo_n "(cached) " >&6
  6339. else
  6340. if test -n "$ac_ct_RANLIB"; then
  6341. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  6342. else
  6343. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6344. for as_dir in $PATH
  6345. do
  6346. IFS=$as_save_IFS
  6347. test -z "$as_dir" && as_dir=.
  6348. for ac_exec_ext in '' $ac_executable_extensions; do
  6349. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6350. ac_cv_prog_ac_ct_RANLIB="ranlib"
  6351. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6352. break 2
  6353. fi
  6354. done
  6355. done
  6356. IFS=$as_save_IFS
  6357. fi
  6358. fi
  6359. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  6360. if test -n "$ac_ct_RANLIB"; then
  6361. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  6362. $as_echo "$ac_ct_RANLIB" >&6; }
  6363. else
  6364. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6365. $as_echo "no" >&6; }
  6366. fi
  6367. if test "x$ac_ct_RANLIB" = x; then
  6368. RANLIB=":"
  6369. else
  6370. case $cross_compiling:$ac_tool_warned in
  6371. yes:)
  6372. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6373. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6374. ac_tool_warned=yes ;;
  6375. esac
  6376. RANLIB=$ac_ct_RANLIB
  6377. fi
  6378. else
  6379. RANLIB="$ac_cv_prog_RANLIB"
  6380. fi
  6381. test -z "$RANLIB" && RANLIB=:
  6382. # Determine commands to create old-style static archives.
  6383. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
  6384. old_postinstall_cmds='chmod 644 $oldlib'
  6385. old_postuninstall_cmds=
  6386. if test -n "$RANLIB"; then
  6387. case $host_os in
  6388. openbsd*)
  6389. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
  6390. ;;
  6391. *)
  6392. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
  6393. ;;
  6394. esac
  6395. old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
  6396. fi
  6397. case $host_os in
  6398. darwin*)
  6399. lock_old_archive_extraction=yes ;;
  6400. *)
  6401. lock_old_archive_extraction=no ;;
  6402. esac
  6403. # If no C compiler was specified, use CC.
  6404. LTCC=${LTCC-"$CC"}
  6405. # If no C compiler flags were specified, use CFLAGS.
  6406. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  6407. # Allow CC to be a program name with arguments.
  6408. compiler=$CC
  6409. # Check for command to grab the raw symbol name followed by C symbol from nm.
  6410. { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
  6411. $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
  6412. if ${lt_cv_sys_global_symbol_pipe+:} false; then :
  6413. $as_echo_n "(cached) " >&6
  6414. else
  6415. # These are sane defaults that work on at least a few old systems.
  6416. # [They come from Ultrix. What could be older than Ultrix?!! ;)]
  6417. # Character class describing NM global symbol codes.
  6418. symcode='[BCDEGRST]'
  6419. # Regexp to match symbols that can be accessed directly from C.
  6420. sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
  6421. # Define system-specific variables.
  6422. case $host_os in
  6423. aix*)
  6424. symcode='[BCDT]'
  6425. ;;
  6426. cygwin* | mingw* | pw32* | cegcc*)
  6427. symcode='[ABCDGISTW]'
  6428. ;;
  6429. hpux*)
  6430. if test "$host_cpu" = ia64; then
  6431. symcode='[ABCDEGRST]'
  6432. fi
  6433. ;;
  6434. irix* | nonstopux*)
  6435. symcode='[BCDEGRST]'
  6436. ;;
  6437. osf*)
  6438. symcode='[BCDEGQRST]'
  6439. ;;
  6440. solaris*)
  6441. symcode='[BDRT]'
  6442. ;;
  6443. sco3.2v5*)
  6444. symcode='[DT]'
  6445. ;;
  6446. sysv4.2uw2*)
  6447. symcode='[DT]'
  6448. ;;
  6449. sysv5* | sco5v6* | unixware* | OpenUNIX*)
  6450. symcode='[ABDT]'
  6451. ;;
  6452. sysv4)
  6453. symcode='[DFNSTU]'
  6454. ;;
  6455. esac
  6456. # If we're using GNU nm, then use its standard symbol codes.
  6457. case `$NM -V 2>&1` in
  6458. *GNU* | *'with BFD'*)
  6459. symcode='[ABCDGIRSTW]' ;;
  6460. esac
  6461. # Transform an extracted symbol line into a proper C declaration.
  6462. # Some systems (esp. on ia64) link data and code symbols differently,
  6463. # so use this general approach.
  6464. lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  6465. # Transform an extracted symbol line into symbol name and symbol address
  6466. lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
  6467. 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'"
  6468. # Handle CRLF in mingw tool chain
  6469. opt_cr=
  6470. case $build_os in
  6471. mingw*)
  6472. opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  6473. ;;
  6474. esac
  6475. # Try without a prefix underscore, then with it.
  6476. for ac_symprfx in "" "_"; do
  6477. # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  6478. symxfrm="\\1 $ac_symprfx\\2 \\2"
  6479. # Write the raw and C identifiers.
  6480. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  6481. # Fake it for dumpbin and say T for any non-static function
  6482. # and D for any global variable.
  6483. # Also find C++ and __fastcall symbols from MSVC++,
  6484. # which start with @ or ?.
  6485. lt_cv_sys_global_symbol_pipe="$AWK '"\
  6486. " {last_section=section; section=\$ 3};"\
  6487. " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
  6488. " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
  6489. " \$ 0!~/External *\|/{next};"\
  6490. " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
  6491. " {if(hide[section]) next};"\
  6492. " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
  6493. " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
  6494. " s[1]~/^[@?]/{print s[1], s[1]; next};"\
  6495. " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
  6496. " ' prfx=^$ac_symprfx"
  6497. else
  6498. lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  6499. fi
  6500. lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
  6501. # Check to see that the pipe works correctly.
  6502. pipe_works=no
  6503. rm -f conftest*
  6504. cat > conftest.$ac_ext <<_LT_EOF
  6505. #ifdef __cplusplus
  6506. extern "C" {
  6507. #endif
  6508. char nm_test_var;
  6509. void nm_test_func(void);
  6510. void nm_test_func(void){}
  6511. #ifdef __cplusplus
  6512. }
  6513. #endif
  6514. int main(){nm_test_var='a';nm_test_func();return(0);}
  6515. _LT_EOF
  6516. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6517. (eval $ac_compile) 2>&5
  6518. ac_status=$?
  6519. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6520. test $ac_status = 0; }; then
  6521. # Now try to grab the symbols.
  6522. nlist=conftest.nm
  6523. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
  6524. (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
  6525. ac_status=$?
  6526. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6527. test $ac_status = 0; } && test -s "$nlist"; then
  6528. # Try sorting and uniquifying the output.
  6529. if sort "$nlist" | uniq > "$nlist"T; then
  6530. mv -f "$nlist"T "$nlist"
  6531. else
  6532. rm -f "$nlist"T
  6533. fi
  6534. # Make sure that we snagged all the symbols we need.
  6535. if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
  6536. if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
  6537. cat <<_LT_EOF > conftest.$ac_ext
  6538. /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
  6539. #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
  6540. /* DATA imports from DLLs on WIN32 con't be const, because runtime
  6541. relocations are performed -- see ld's documentation on pseudo-relocs. */
  6542. # define LT@&t@_DLSYM_CONST
  6543. #elif defined(__osf__)
  6544. /* This system does not cope well with relocations in const data. */
  6545. # define LT@&t@_DLSYM_CONST
  6546. #else
  6547. # define LT@&t@_DLSYM_CONST const
  6548. #endif
  6549. #ifdef __cplusplus
  6550. extern "C" {
  6551. #endif
  6552. _LT_EOF
  6553. # Now generate the symbol file.
  6554. eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
  6555. cat <<_LT_EOF >> conftest.$ac_ext
  6556. /* The mapping between symbol names and symbols. */
  6557. LT@&t@_DLSYM_CONST struct {
  6558. const char *name;
  6559. void *address;
  6560. }
  6561. lt__PROGRAM__LTX_preloaded_symbols[] =
  6562. {
  6563. { "@PROGRAM@", (void *) 0 },
  6564. _LT_EOF
  6565. $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
  6566. cat <<\_LT_EOF >> conftest.$ac_ext
  6567. {0, (void *) 0}
  6568. };
  6569. /* This works around a problem in FreeBSD linker */
  6570. #ifdef FREEBSD_WORKAROUND
  6571. static const void *lt_preloaded_setup() {
  6572. return lt__PROGRAM__LTX_preloaded_symbols;
  6573. }
  6574. #endif
  6575. #ifdef __cplusplus
  6576. }
  6577. #endif
  6578. _LT_EOF
  6579. # Now try linking the two files.
  6580. mv conftest.$ac_objext conftstm.$ac_objext
  6581. lt_globsym_save_LIBS=$LIBS
  6582. lt_globsym_save_CFLAGS=$CFLAGS
  6583. LIBS="conftstm.$ac_objext"
  6584. CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
  6585. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  6586. (eval $ac_link) 2>&5
  6587. ac_status=$?
  6588. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6589. test $ac_status = 0; } && test -s conftest${ac_exeext}; then
  6590. pipe_works=yes
  6591. fi
  6592. LIBS=$lt_globsym_save_LIBS
  6593. CFLAGS=$lt_globsym_save_CFLAGS
  6594. else
  6595. echo "cannot find nm_test_func in $nlist" >&5
  6596. fi
  6597. else
  6598. echo "cannot find nm_test_var in $nlist" >&5
  6599. fi
  6600. else
  6601. echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
  6602. fi
  6603. else
  6604. echo "$progname: failed program was:" >&5
  6605. cat conftest.$ac_ext >&5
  6606. fi
  6607. rm -rf conftest* conftst*
  6608. # Do not use the global_symbol_pipe unless it works.
  6609. if test "$pipe_works" = yes; then
  6610. break
  6611. else
  6612. lt_cv_sys_global_symbol_pipe=
  6613. fi
  6614. done
  6615. fi
  6616. if test -z "$lt_cv_sys_global_symbol_pipe"; then
  6617. lt_cv_sys_global_symbol_to_cdecl=
  6618. fi
  6619. if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  6620. { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
  6621. $as_echo "failed" >&6; }
  6622. else
  6623. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
  6624. $as_echo "ok" >&6; }
  6625. fi
  6626. # Response file support.
  6627. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  6628. nm_file_list_spec='@'
  6629. elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
  6630. nm_file_list_spec='@'
  6631. fi
  6632. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
  6633. $as_echo_n "checking for sysroot... " >&6; }
  6634. @%:@ Check whether --with-sysroot was given.
  6635. if test "${with_sysroot+set}" = set; then :
  6636. withval=$with_sysroot;
  6637. else
  6638. with_sysroot=no
  6639. fi
  6640. lt_sysroot=
  6641. case ${with_sysroot} in #(
  6642. yes)
  6643. if test "$GCC" = yes; then
  6644. lt_sysroot=`$CC --print-sysroot 2>/dev/null`
  6645. fi
  6646. ;; #(
  6647. /*)
  6648. lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
  6649. ;; #(
  6650. no|'')
  6651. ;; #(
  6652. *)
  6653. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
  6654. $as_echo "${with_sysroot}" >&6; }
  6655. as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
  6656. ;;
  6657. esac
  6658. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
  6659. $as_echo "${lt_sysroot:-no}" >&6; }
  6660. @%:@ Check whether --enable-libtool-lock was given.
  6661. if test "${enable_libtool_lock+set}" = set; then :
  6662. enableval=$enable_libtool_lock;
  6663. fi
  6664. test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  6665. # Some flags need to be propagated to the compiler or linker for good
  6666. # libtool support.
  6667. case $host in
  6668. ia64-*-hpux*)
  6669. # Find out which ABI we are using.
  6670. echo 'int i;' > conftest.$ac_ext
  6671. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6672. (eval $ac_compile) 2>&5
  6673. ac_status=$?
  6674. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6675. test $ac_status = 0; }; then
  6676. case `/usr/bin/file conftest.$ac_objext` in
  6677. *ELF-32*)
  6678. HPUX_IA64_MODE="32"
  6679. ;;
  6680. *ELF-64*)
  6681. HPUX_IA64_MODE="64"
  6682. ;;
  6683. esac
  6684. fi
  6685. rm -rf conftest*
  6686. ;;
  6687. *-*-irix6*)
  6688. # Find out which ABI we are using.
  6689. echo '#line '$LINENO' "configure"' > conftest.$ac_ext
  6690. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6691. (eval $ac_compile) 2>&5
  6692. ac_status=$?
  6693. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6694. test $ac_status = 0; }; then
  6695. if test "$lt_cv_prog_gnu_ld" = yes; then
  6696. case `/usr/bin/file conftest.$ac_objext` in
  6697. *32-bit*)
  6698. LD="${LD-ld} -melf32bsmip"
  6699. ;;
  6700. *N32*)
  6701. LD="${LD-ld} -melf32bmipn32"
  6702. ;;
  6703. *64-bit*)
  6704. LD="${LD-ld} -melf64bmip"
  6705. ;;
  6706. esac
  6707. else
  6708. case `/usr/bin/file conftest.$ac_objext` in
  6709. *32-bit*)
  6710. LD="${LD-ld} -32"
  6711. ;;
  6712. *N32*)
  6713. LD="${LD-ld} -n32"
  6714. ;;
  6715. *64-bit*)
  6716. LD="${LD-ld} -64"
  6717. ;;
  6718. esac
  6719. fi
  6720. fi
  6721. rm -rf conftest*
  6722. ;;
  6723. x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
  6724. s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
  6725. # Find out which ABI we are using.
  6726. echo 'int i;' > conftest.$ac_ext
  6727. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6728. (eval $ac_compile) 2>&5
  6729. ac_status=$?
  6730. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6731. test $ac_status = 0; }; then
  6732. case `/usr/bin/file conftest.o` in
  6733. *32-bit*)
  6734. case $host in
  6735. x86_64-*kfreebsd*-gnu)
  6736. LD="${LD-ld} -m elf_i386_fbsd"
  6737. ;;
  6738. x86_64-*linux*)
  6739. LD="${LD-ld} -m elf_i386"
  6740. ;;
  6741. ppc64-*linux*|powerpc64-*linux*)
  6742. LD="${LD-ld} -m elf32ppclinux"
  6743. ;;
  6744. s390x-*linux*)
  6745. LD="${LD-ld} -m elf_s390"
  6746. ;;
  6747. sparc64-*linux*)
  6748. LD="${LD-ld} -m elf32_sparc"
  6749. ;;
  6750. esac
  6751. ;;
  6752. *64-bit*)
  6753. case $host in
  6754. x86_64-*kfreebsd*-gnu)
  6755. LD="${LD-ld} -m elf_x86_64_fbsd"
  6756. ;;
  6757. x86_64-*linux*)
  6758. LD="${LD-ld} -m elf_x86_64"
  6759. ;;
  6760. ppc*-*linux*|powerpc*-*linux*)
  6761. LD="${LD-ld} -m elf64ppc"
  6762. ;;
  6763. s390*-*linux*|s390*-*tpf*)
  6764. LD="${LD-ld} -m elf64_s390"
  6765. ;;
  6766. sparc*-*linux*)
  6767. LD="${LD-ld} -m elf64_sparc"
  6768. ;;
  6769. esac
  6770. ;;
  6771. esac
  6772. fi
  6773. rm -rf conftest*
  6774. ;;
  6775. *-*-sco3.2v5*)
  6776. # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  6777. SAVE_CFLAGS="$CFLAGS"
  6778. CFLAGS="$CFLAGS -belf"
  6779. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
  6780. $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
  6781. if ${lt_cv_cc_needs_belf+:} false; then :
  6782. $as_echo_n "(cached) " >&6
  6783. else
  6784. ac_ext=c
  6785. ac_cpp='$CPP $CPPFLAGS'
  6786. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6787. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6788. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6789. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6790. /* end confdefs.h. */
  6791. int
  6792. main ()
  6793. {
  6794. ;
  6795. return 0;
  6796. }
  6797. _ACEOF
  6798. if ac_fn_c_try_link "$LINENO"; then :
  6799. lt_cv_cc_needs_belf=yes
  6800. else
  6801. lt_cv_cc_needs_belf=no
  6802. fi
  6803. rm -f core conftest.err conftest.$ac_objext \
  6804. conftest$ac_exeext conftest.$ac_ext
  6805. ac_ext=c
  6806. ac_cpp='$CPP $CPPFLAGS'
  6807. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6808. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6809. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6810. fi
  6811. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
  6812. $as_echo "$lt_cv_cc_needs_belf" >&6; }
  6813. if test x"$lt_cv_cc_needs_belf" != x"yes"; then
  6814. # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  6815. CFLAGS="$SAVE_CFLAGS"
  6816. fi
  6817. ;;
  6818. *-*solaris*)
  6819. # Find out which ABI we are using.
  6820. echo 'int i;' > conftest.$ac_ext
  6821. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6822. (eval $ac_compile) 2>&5
  6823. ac_status=$?
  6824. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6825. test $ac_status = 0; }; then
  6826. case `/usr/bin/file conftest.o` in
  6827. *64-bit*)
  6828. case $lt_cv_prog_gnu_ld in
  6829. yes*)
  6830. case $host in
  6831. i?86-*-solaris*)
  6832. LD="${LD-ld} -m elf_x86_64"
  6833. ;;
  6834. sparc*-*-solaris*)
  6835. LD="${LD-ld} -m elf64_sparc"
  6836. ;;
  6837. esac
  6838. # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
  6839. if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
  6840. LD="${LD-ld}_sol2"
  6841. fi
  6842. ;;
  6843. *)
  6844. if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
  6845. LD="${LD-ld} -64"
  6846. fi
  6847. ;;
  6848. esac
  6849. ;;
  6850. esac
  6851. fi
  6852. rm -rf conftest*
  6853. ;;
  6854. esac
  6855. need_locks="$enable_libtool_lock"
  6856. if test -n "$ac_tool_prefix"; then
  6857. # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
  6858. set dummy ${ac_tool_prefix}mt; ac_word=$2
  6859. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6860. $as_echo_n "checking for $ac_word... " >&6; }
  6861. if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
  6862. $as_echo_n "(cached) " >&6
  6863. else
  6864. if test -n "$MANIFEST_TOOL"; then
  6865. ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
  6866. else
  6867. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6868. for as_dir in $PATH
  6869. do
  6870. IFS=$as_save_IFS
  6871. test -z "$as_dir" && as_dir=.
  6872. for ac_exec_ext in '' $ac_executable_extensions; do
  6873. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6874. ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
  6875. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6876. break 2
  6877. fi
  6878. done
  6879. done
  6880. IFS=$as_save_IFS
  6881. fi
  6882. fi
  6883. MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
  6884. if test -n "$MANIFEST_TOOL"; then
  6885. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
  6886. $as_echo "$MANIFEST_TOOL" >&6; }
  6887. else
  6888. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6889. $as_echo "no" >&6; }
  6890. fi
  6891. fi
  6892. if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
  6893. ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
  6894. # Extract the first word of "mt", so it can be a program name with args.
  6895. set dummy mt; ac_word=$2
  6896. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6897. $as_echo_n "checking for $ac_word... " >&6; }
  6898. if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
  6899. $as_echo_n "(cached) " >&6
  6900. else
  6901. if test -n "$ac_ct_MANIFEST_TOOL"; then
  6902. ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
  6903. else
  6904. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6905. for as_dir in $PATH
  6906. do
  6907. IFS=$as_save_IFS
  6908. test -z "$as_dir" && as_dir=.
  6909. for ac_exec_ext in '' $ac_executable_extensions; do
  6910. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6911. ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
  6912. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6913. break 2
  6914. fi
  6915. done
  6916. done
  6917. IFS=$as_save_IFS
  6918. fi
  6919. fi
  6920. ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
  6921. if test -n "$ac_ct_MANIFEST_TOOL"; then
  6922. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
  6923. $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
  6924. else
  6925. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6926. $as_echo "no" >&6; }
  6927. fi
  6928. if test "x$ac_ct_MANIFEST_TOOL" = x; then
  6929. MANIFEST_TOOL=":"
  6930. else
  6931. case $cross_compiling:$ac_tool_warned in
  6932. yes:)
  6933. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6934. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6935. ac_tool_warned=yes ;;
  6936. esac
  6937. MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
  6938. fi
  6939. else
  6940. MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
  6941. fi
  6942. test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
  6943. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
  6944. $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
  6945. if ${lt_cv_path_mainfest_tool+:} false; then :
  6946. $as_echo_n "(cached) " >&6
  6947. else
  6948. lt_cv_path_mainfest_tool=no
  6949. echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
  6950. $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
  6951. cat conftest.err >&5
  6952. if $GREP 'Manifest Tool' conftest.out > /dev/null; then
  6953. lt_cv_path_mainfest_tool=yes
  6954. fi
  6955. rm -f conftest*
  6956. fi
  6957. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
  6958. $as_echo "$lt_cv_path_mainfest_tool" >&6; }
  6959. if test "x$lt_cv_path_mainfest_tool" != xyes; then
  6960. MANIFEST_TOOL=:
  6961. fi
  6962. case $host_os in
  6963. rhapsody* | darwin*)
  6964. if test -n "$ac_tool_prefix"; then
  6965. # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
  6966. set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
  6967. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6968. $as_echo_n "checking for $ac_word... " >&6; }
  6969. if ${ac_cv_prog_DSYMUTIL+:} false; then :
  6970. $as_echo_n "(cached) " >&6
  6971. else
  6972. if test -n "$DSYMUTIL"; then
  6973. ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
  6974. else
  6975. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6976. for as_dir in $PATH
  6977. do
  6978. IFS=$as_save_IFS
  6979. test -z "$as_dir" && as_dir=.
  6980. for ac_exec_ext in '' $ac_executable_extensions; do
  6981. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6982. ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
  6983. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6984. break 2
  6985. fi
  6986. done
  6987. done
  6988. IFS=$as_save_IFS
  6989. fi
  6990. fi
  6991. DSYMUTIL=$ac_cv_prog_DSYMUTIL
  6992. if test -n "$DSYMUTIL"; then
  6993. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
  6994. $as_echo "$DSYMUTIL" >&6; }
  6995. else
  6996. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6997. $as_echo "no" >&6; }
  6998. fi
  6999. fi
  7000. if test -z "$ac_cv_prog_DSYMUTIL"; then
  7001. ac_ct_DSYMUTIL=$DSYMUTIL
  7002. # Extract the first word of "dsymutil", so it can be a program name with args.
  7003. set dummy dsymutil; ac_word=$2
  7004. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7005. $as_echo_n "checking for $ac_word... " >&6; }
  7006. if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
  7007. $as_echo_n "(cached) " >&6
  7008. else
  7009. if test -n "$ac_ct_DSYMUTIL"; then
  7010. ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
  7011. else
  7012. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7013. for as_dir in $PATH
  7014. do
  7015. IFS=$as_save_IFS
  7016. test -z "$as_dir" && as_dir=.
  7017. for ac_exec_ext in '' $ac_executable_extensions; do
  7018. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7019. ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
  7020. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7021. break 2
  7022. fi
  7023. done
  7024. done
  7025. IFS=$as_save_IFS
  7026. fi
  7027. fi
  7028. ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
  7029. if test -n "$ac_ct_DSYMUTIL"; then
  7030. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
  7031. $as_echo "$ac_ct_DSYMUTIL" >&6; }
  7032. else
  7033. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7034. $as_echo "no" >&6; }
  7035. fi
  7036. if test "x$ac_ct_DSYMUTIL" = x; then
  7037. DSYMUTIL=":"
  7038. else
  7039. case $cross_compiling:$ac_tool_warned in
  7040. yes:)
  7041. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7042. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7043. ac_tool_warned=yes ;;
  7044. esac
  7045. DSYMUTIL=$ac_ct_DSYMUTIL
  7046. fi
  7047. else
  7048. DSYMUTIL="$ac_cv_prog_DSYMUTIL"
  7049. fi
  7050. if test -n "$ac_tool_prefix"; then
  7051. # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
  7052. set dummy ${ac_tool_prefix}nmedit; ac_word=$2
  7053. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7054. $as_echo_n "checking for $ac_word... " >&6; }
  7055. if ${ac_cv_prog_NMEDIT+:} false; then :
  7056. $as_echo_n "(cached) " >&6
  7057. else
  7058. if test -n "$NMEDIT"; then
  7059. ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
  7060. else
  7061. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7062. for as_dir in $PATH
  7063. do
  7064. IFS=$as_save_IFS
  7065. test -z "$as_dir" && as_dir=.
  7066. for ac_exec_ext in '' $ac_executable_extensions; do
  7067. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7068. ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
  7069. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7070. break 2
  7071. fi
  7072. done
  7073. done
  7074. IFS=$as_save_IFS
  7075. fi
  7076. fi
  7077. NMEDIT=$ac_cv_prog_NMEDIT
  7078. if test -n "$NMEDIT"; then
  7079. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
  7080. $as_echo "$NMEDIT" >&6; }
  7081. else
  7082. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7083. $as_echo "no" >&6; }
  7084. fi
  7085. fi
  7086. if test -z "$ac_cv_prog_NMEDIT"; then
  7087. ac_ct_NMEDIT=$NMEDIT
  7088. # Extract the first word of "nmedit", so it can be a program name with args.
  7089. set dummy nmedit; ac_word=$2
  7090. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7091. $as_echo_n "checking for $ac_word... " >&6; }
  7092. if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
  7093. $as_echo_n "(cached) " >&6
  7094. else
  7095. if test -n "$ac_ct_NMEDIT"; then
  7096. ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
  7097. else
  7098. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7099. for as_dir in $PATH
  7100. do
  7101. IFS=$as_save_IFS
  7102. test -z "$as_dir" && as_dir=.
  7103. for ac_exec_ext in '' $ac_executable_extensions; do
  7104. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7105. ac_cv_prog_ac_ct_NMEDIT="nmedit"
  7106. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7107. break 2
  7108. fi
  7109. done
  7110. done
  7111. IFS=$as_save_IFS
  7112. fi
  7113. fi
  7114. ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
  7115. if test -n "$ac_ct_NMEDIT"; then
  7116. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
  7117. $as_echo "$ac_ct_NMEDIT" >&6; }
  7118. else
  7119. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7120. $as_echo "no" >&6; }
  7121. fi
  7122. if test "x$ac_ct_NMEDIT" = x; then
  7123. NMEDIT=":"
  7124. else
  7125. case $cross_compiling:$ac_tool_warned in
  7126. yes:)
  7127. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7128. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7129. ac_tool_warned=yes ;;
  7130. esac
  7131. NMEDIT=$ac_ct_NMEDIT
  7132. fi
  7133. else
  7134. NMEDIT="$ac_cv_prog_NMEDIT"
  7135. fi
  7136. if test -n "$ac_tool_prefix"; then
  7137. # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
  7138. set dummy ${ac_tool_prefix}lipo; ac_word=$2
  7139. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7140. $as_echo_n "checking for $ac_word... " >&6; }
  7141. if ${ac_cv_prog_LIPO+:} false; then :
  7142. $as_echo_n "(cached) " >&6
  7143. else
  7144. if test -n "$LIPO"; then
  7145. ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
  7146. else
  7147. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7148. for as_dir in $PATH
  7149. do
  7150. IFS=$as_save_IFS
  7151. test -z "$as_dir" && as_dir=.
  7152. for ac_exec_ext in '' $ac_executable_extensions; do
  7153. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7154. ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
  7155. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7156. break 2
  7157. fi
  7158. done
  7159. done
  7160. IFS=$as_save_IFS
  7161. fi
  7162. fi
  7163. LIPO=$ac_cv_prog_LIPO
  7164. if test -n "$LIPO"; then
  7165. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
  7166. $as_echo "$LIPO" >&6; }
  7167. else
  7168. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7169. $as_echo "no" >&6; }
  7170. fi
  7171. fi
  7172. if test -z "$ac_cv_prog_LIPO"; then
  7173. ac_ct_LIPO=$LIPO
  7174. # Extract the first word of "lipo", so it can be a program name with args.
  7175. set dummy lipo; ac_word=$2
  7176. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7177. $as_echo_n "checking for $ac_word... " >&6; }
  7178. if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
  7179. $as_echo_n "(cached) " >&6
  7180. else
  7181. if test -n "$ac_ct_LIPO"; then
  7182. ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
  7183. else
  7184. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7185. for as_dir in $PATH
  7186. do
  7187. IFS=$as_save_IFS
  7188. test -z "$as_dir" && as_dir=.
  7189. for ac_exec_ext in '' $ac_executable_extensions; do
  7190. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7191. ac_cv_prog_ac_ct_LIPO="lipo"
  7192. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7193. break 2
  7194. fi
  7195. done
  7196. done
  7197. IFS=$as_save_IFS
  7198. fi
  7199. fi
  7200. ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
  7201. if test -n "$ac_ct_LIPO"; then
  7202. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
  7203. $as_echo "$ac_ct_LIPO" >&6; }
  7204. else
  7205. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7206. $as_echo "no" >&6; }
  7207. fi
  7208. if test "x$ac_ct_LIPO" = x; then
  7209. LIPO=":"
  7210. else
  7211. case $cross_compiling:$ac_tool_warned in
  7212. yes:)
  7213. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7214. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7215. ac_tool_warned=yes ;;
  7216. esac
  7217. LIPO=$ac_ct_LIPO
  7218. fi
  7219. else
  7220. LIPO="$ac_cv_prog_LIPO"
  7221. fi
  7222. if test -n "$ac_tool_prefix"; then
  7223. # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
  7224. set dummy ${ac_tool_prefix}otool; ac_word=$2
  7225. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7226. $as_echo_n "checking for $ac_word... " >&6; }
  7227. if ${ac_cv_prog_OTOOL+:} false; then :
  7228. $as_echo_n "(cached) " >&6
  7229. else
  7230. if test -n "$OTOOL"; then
  7231. ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
  7232. else
  7233. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7234. for as_dir in $PATH
  7235. do
  7236. IFS=$as_save_IFS
  7237. test -z "$as_dir" && as_dir=.
  7238. for ac_exec_ext in '' $ac_executable_extensions; do
  7239. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7240. ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
  7241. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7242. break 2
  7243. fi
  7244. done
  7245. done
  7246. IFS=$as_save_IFS
  7247. fi
  7248. fi
  7249. OTOOL=$ac_cv_prog_OTOOL
  7250. if test -n "$OTOOL"; then
  7251. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
  7252. $as_echo "$OTOOL" >&6; }
  7253. else
  7254. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7255. $as_echo "no" >&6; }
  7256. fi
  7257. fi
  7258. if test -z "$ac_cv_prog_OTOOL"; then
  7259. ac_ct_OTOOL=$OTOOL
  7260. # Extract the first word of "otool", so it can be a program name with args.
  7261. set dummy otool; ac_word=$2
  7262. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7263. $as_echo_n "checking for $ac_word... " >&6; }
  7264. if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
  7265. $as_echo_n "(cached) " >&6
  7266. else
  7267. if test -n "$ac_ct_OTOOL"; then
  7268. ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
  7269. else
  7270. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7271. for as_dir in $PATH
  7272. do
  7273. IFS=$as_save_IFS
  7274. test -z "$as_dir" && as_dir=.
  7275. for ac_exec_ext in '' $ac_executable_extensions; do
  7276. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7277. ac_cv_prog_ac_ct_OTOOL="otool"
  7278. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7279. break 2
  7280. fi
  7281. done
  7282. done
  7283. IFS=$as_save_IFS
  7284. fi
  7285. fi
  7286. ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
  7287. if test -n "$ac_ct_OTOOL"; then
  7288. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
  7289. $as_echo "$ac_ct_OTOOL" >&6; }
  7290. else
  7291. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7292. $as_echo "no" >&6; }
  7293. fi
  7294. if test "x$ac_ct_OTOOL" = x; then
  7295. OTOOL=":"
  7296. else
  7297. case $cross_compiling:$ac_tool_warned in
  7298. yes:)
  7299. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7300. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7301. ac_tool_warned=yes ;;
  7302. esac
  7303. OTOOL=$ac_ct_OTOOL
  7304. fi
  7305. else
  7306. OTOOL="$ac_cv_prog_OTOOL"
  7307. fi
  7308. if test -n "$ac_tool_prefix"; then
  7309. # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
  7310. set dummy ${ac_tool_prefix}otool64; ac_word=$2
  7311. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7312. $as_echo_n "checking for $ac_word... " >&6; }
  7313. if ${ac_cv_prog_OTOOL64+:} false; then :
  7314. $as_echo_n "(cached) " >&6
  7315. else
  7316. if test -n "$OTOOL64"; then
  7317. ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
  7318. else
  7319. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7320. for as_dir in $PATH
  7321. do
  7322. IFS=$as_save_IFS
  7323. test -z "$as_dir" && as_dir=.
  7324. for ac_exec_ext in '' $ac_executable_extensions; do
  7325. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7326. ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
  7327. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7328. break 2
  7329. fi
  7330. done
  7331. done
  7332. IFS=$as_save_IFS
  7333. fi
  7334. fi
  7335. OTOOL64=$ac_cv_prog_OTOOL64
  7336. if test -n "$OTOOL64"; then
  7337. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
  7338. $as_echo "$OTOOL64" >&6; }
  7339. else
  7340. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7341. $as_echo "no" >&6; }
  7342. fi
  7343. fi
  7344. if test -z "$ac_cv_prog_OTOOL64"; then
  7345. ac_ct_OTOOL64=$OTOOL64
  7346. # Extract the first word of "otool64", so it can be a program name with args.
  7347. set dummy otool64; ac_word=$2
  7348. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7349. $as_echo_n "checking for $ac_word... " >&6; }
  7350. if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
  7351. $as_echo_n "(cached) " >&6
  7352. else
  7353. if test -n "$ac_ct_OTOOL64"; then
  7354. ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
  7355. else
  7356. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7357. for as_dir in $PATH
  7358. do
  7359. IFS=$as_save_IFS
  7360. test -z "$as_dir" && as_dir=.
  7361. for ac_exec_ext in '' $ac_executable_extensions; do
  7362. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7363. ac_cv_prog_ac_ct_OTOOL64="otool64"
  7364. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7365. break 2
  7366. fi
  7367. done
  7368. done
  7369. IFS=$as_save_IFS
  7370. fi
  7371. fi
  7372. ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
  7373. if test -n "$ac_ct_OTOOL64"; then
  7374. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
  7375. $as_echo "$ac_ct_OTOOL64" >&6; }
  7376. else
  7377. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7378. $as_echo "no" >&6; }
  7379. fi
  7380. if test "x$ac_ct_OTOOL64" = x; then
  7381. OTOOL64=":"
  7382. else
  7383. case $cross_compiling:$ac_tool_warned in
  7384. yes:)
  7385. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7386. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7387. ac_tool_warned=yes ;;
  7388. esac
  7389. OTOOL64=$ac_ct_OTOOL64
  7390. fi
  7391. else
  7392. OTOOL64="$ac_cv_prog_OTOOL64"
  7393. fi
  7394. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
  7395. $as_echo_n "checking for -single_module linker flag... " >&6; }
  7396. if ${lt_cv_apple_cc_single_mod+:} false; then :
  7397. $as_echo_n "(cached) " >&6
  7398. else
  7399. lt_cv_apple_cc_single_mod=no
  7400. if test -z "${LT_MULTI_MODULE}"; then
  7401. # By default we will add the -single_module flag. You can override
  7402. # by either setting the environment variable LT_MULTI_MODULE
  7403. # non-empty at configure time, or by adding -multi_module to the
  7404. # link flags.
  7405. rm -rf libconftest.dylib*
  7406. echo "int foo(void){return 1;}" > conftest.c
  7407. echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  7408. -dynamiclib -Wl,-single_module conftest.c" >&5
  7409. $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  7410. -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
  7411. _lt_result=$?
  7412. # If there is a non-empty error log, and "single_module"
  7413. # appears in it, assume the flag caused a linker warning
  7414. if test -s conftest.err && $GREP single_module conftest.err; then
  7415. cat conftest.err >&5
  7416. # Otherwise, if the output was created with a 0 exit code from
  7417. # the compiler, it worked.
  7418. elif test -f libconftest.dylib && test $_lt_result -eq 0; then
  7419. lt_cv_apple_cc_single_mod=yes
  7420. else
  7421. cat conftest.err >&5
  7422. fi
  7423. rm -rf libconftest.dylib*
  7424. rm -f conftest.*
  7425. fi
  7426. fi
  7427. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
  7428. $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
  7429. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
  7430. $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
  7431. if ${lt_cv_ld_exported_symbols_list+:} false; then :
  7432. $as_echo_n "(cached) " >&6
  7433. else
  7434. lt_cv_ld_exported_symbols_list=no
  7435. save_LDFLAGS=$LDFLAGS
  7436. echo "_main" > conftest.sym
  7437. LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
  7438. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7439. /* end confdefs.h. */
  7440. int
  7441. main ()
  7442. {
  7443. ;
  7444. return 0;
  7445. }
  7446. _ACEOF
  7447. if ac_fn_c_try_link "$LINENO"; then :
  7448. lt_cv_ld_exported_symbols_list=yes
  7449. else
  7450. lt_cv_ld_exported_symbols_list=no
  7451. fi
  7452. rm -f core conftest.err conftest.$ac_objext \
  7453. conftest$ac_exeext conftest.$ac_ext
  7454. LDFLAGS="$save_LDFLAGS"
  7455. fi
  7456. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
  7457. $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
  7458. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
  7459. $as_echo_n "checking for -force_load linker flag... " >&6; }
  7460. if ${lt_cv_ld_force_load+:} false; then :
  7461. $as_echo_n "(cached) " >&6
  7462. else
  7463. lt_cv_ld_force_load=no
  7464. cat > conftest.c << _LT_EOF
  7465. int forced_loaded() { return 2;}
  7466. _LT_EOF
  7467. echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
  7468. $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
  7469. echo "$AR cru libconftest.a conftest.o" >&5
  7470. $AR cru libconftest.a conftest.o 2>&5
  7471. echo "$RANLIB libconftest.a" >&5
  7472. $RANLIB libconftest.a 2>&5
  7473. cat > conftest.c << _LT_EOF
  7474. int main() { return 0;}
  7475. _LT_EOF
  7476. echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
  7477. $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
  7478. _lt_result=$?
  7479. if test -s conftest.err && $GREP force_load conftest.err; then
  7480. cat conftest.err >&5
  7481. elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
  7482. lt_cv_ld_force_load=yes
  7483. else
  7484. cat conftest.err >&5
  7485. fi
  7486. rm -f conftest.err libconftest.a conftest conftest.c
  7487. rm -rf conftest.dSYM
  7488. fi
  7489. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
  7490. $as_echo "$lt_cv_ld_force_load" >&6; }
  7491. case $host_os in
  7492. rhapsody* | darwin1.[012])
  7493. _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
  7494. darwin1.*)
  7495. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  7496. darwin*) # darwin 5.x on
  7497. # if running on 10.5 or later, the deployment target defaults
  7498. # to the OS version, if on x86, and 10.4, the deployment
  7499. # target defaults to 10.4. Don't you love it?
  7500. case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
  7501. 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
  7502. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  7503. 10.[012]*)
  7504. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  7505. 10.*)
  7506. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  7507. esac
  7508. ;;
  7509. esac
  7510. if test "$lt_cv_apple_cc_single_mod" = "yes"; then
  7511. _lt_dar_single_mod='$single_module'
  7512. fi
  7513. if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
  7514. _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
  7515. else
  7516. _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
  7517. fi
  7518. if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
  7519. _lt_dsymutil='~$DSYMUTIL $lib || :'
  7520. else
  7521. _lt_dsymutil=
  7522. fi
  7523. ;;
  7524. esac
  7525. for ac_header in dlfcn.h
  7526. do :
  7527. ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
  7528. "
  7529. if test "x$ac_cv_header_dlfcn_h" = xyes; then :
  7530. cat >>confdefs.h <<_ACEOF
  7531. @%:@define HAVE_DLFCN_H 1
  7532. _ACEOF
  7533. fi
  7534. done
  7535. func_stripname_cnf ()
  7536. {
  7537. case ${2} in
  7538. .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
  7539. *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
  7540. esac
  7541. } # func_stripname_cnf
  7542. # Set options
  7543. enable_dlopen=no
  7544. enable_win32_dll=no
  7545. @%:@ Check whether --enable-shared was given.
  7546. if test "${enable_shared+set}" = set; then :
  7547. enableval=$enable_shared; p=${PACKAGE-default}
  7548. case $enableval in
  7549. yes) enable_shared=yes ;;
  7550. no) enable_shared=no ;;
  7551. *)
  7552. enable_shared=no
  7553. # Look at the argument we got. We use all the common list separators.
  7554. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  7555. for pkg in $enableval; do
  7556. IFS="$lt_save_ifs"
  7557. if test "X$pkg" = "X$p"; then
  7558. enable_shared=yes
  7559. fi
  7560. done
  7561. IFS="$lt_save_ifs"
  7562. ;;
  7563. esac
  7564. else
  7565. enable_shared=yes
  7566. fi
  7567. @%:@ Check whether --enable-static was given.
  7568. if test "${enable_static+set}" = set; then :
  7569. enableval=$enable_static; p=${PACKAGE-default}
  7570. case $enableval in
  7571. yes) enable_static=yes ;;
  7572. no) enable_static=no ;;
  7573. *)
  7574. enable_static=no
  7575. # Look at the argument we got. We use all the common list separators.
  7576. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  7577. for pkg in $enableval; do
  7578. IFS="$lt_save_ifs"
  7579. if test "X$pkg" = "X$p"; then
  7580. enable_static=yes
  7581. fi
  7582. done
  7583. IFS="$lt_save_ifs"
  7584. ;;
  7585. esac
  7586. else
  7587. enable_static=yes
  7588. fi
  7589. @%:@ Check whether --with-pic was given.
  7590. if test "${with_pic+set}" = set; then :
  7591. withval=$with_pic; lt_p=${PACKAGE-default}
  7592. case $withval in
  7593. yes|no) pic_mode=$withval ;;
  7594. *)
  7595. pic_mode=default
  7596. # Look at the argument we got. We use all the common list separators.
  7597. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  7598. for lt_pkg in $withval; do
  7599. IFS="$lt_save_ifs"
  7600. if test "X$lt_pkg" = "X$lt_p"; then
  7601. pic_mode=yes
  7602. fi
  7603. done
  7604. IFS="$lt_save_ifs"
  7605. ;;
  7606. esac
  7607. else
  7608. pic_mode=default
  7609. fi
  7610. test -z "$pic_mode" && pic_mode=default
  7611. @%:@ Check whether --enable-fast-install was given.
  7612. if test "${enable_fast_install+set}" = set; then :
  7613. enableval=$enable_fast_install; p=${PACKAGE-default}
  7614. case $enableval in
  7615. yes) enable_fast_install=yes ;;
  7616. no) enable_fast_install=no ;;
  7617. *)
  7618. enable_fast_install=no
  7619. # Look at the argument we got. We use all the common list separators.
  7620. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  7621. for pkg in $enableval; do
  7622. IFS="$lt_save_ifs"
  7623. if test "X$pkg" = "X$p"; then
  7624. enable_fast_install=yes
  7625. fi
  7626. done
  7627. IFS="$lt_save_ifs"
  7628. ;;
  7629. esac
  7630. else
  7631. enable_fast_install=yes
  7632. fi
  7633. # This can be used to rebuild libtool when needed
  7634. LIBTOOL_DEPS="$ltmain"
  7635. # Always use our own libtool.
  7636. LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  7637. test -z "$LN_S" && LN_S="ln -s"
  7638. if test -n "${ZSH_VERSION+set}" ; then
  7639. setopt NO_GLOB_SUBST
  7640. fi
  7641. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
  7642. $as_echo_n "checking for objdir... " >&6; }
  7643. if ${lt_cv_objdir+:} false; then :
  7644. $as_echo_n "(cached) " >&6
  7645. else
  7646. rm -f .libs 2>/dev/null
  7647. mkdir .libs 2>/dev/null
  7648. if test -d .libs; then
  7649. lt_cv_objdir=.libs
  7650. else
  7651. # MS-DOS does not allow filenames that begin with a dot.
  7652. lt_cv_objdir=_libs
  7653. fi
  7654. rmdir .libs 2>/dev/null
  7655. fi
  7656. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
  7657. $as_echo "$lt_cv_objdir" >&6; }
  7658. objdir=$lt_cv_objdir
  7659. cat >>confdefs.h <<_ACEOF
  7660. @%:@define LT_OBJDIR "$lt_cv_objdir/"
  7661. _ACEOF
  7662. case $host_os in
  7663. aix3*)
  7664. # AIX sometimes has problems with the GCC collect2 program. For some
  7665. # reason, if we set the COLLECT_NAMES environment variable, the problems
  7666. # vanish in a puff of smoke.
  7667. if test "X${COLLECT_NAMES+set}" != Xset; then
  7668. COLLECT_NAMES=
  7669. export COLLECT_NAMES
  7670. fi
  7671. ;;
  7672. esac
  7673. # Global variables:
  7674. ofile=libtool
  7675. can_build_shared=yes
  7676. # All known linkers require a `.a' archive for static linking (except MSVC,
  7677. # which needs '.lib').
  7678. libext=a
  7679. with_gnu_ld="$lt_cv_prog_gnu_ld"
  7680. old_CC="$CC"
  7681. old_CFLAGS="$CFLAGS"
  7682. # Set sane defaults for various variables
  7683. test -z "$CC" && CC=cc
  7684. test -z "$LTCC" && LTCC=$CC
  7685. test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  7686. test -z "$LD" && LD=ld
  7687. test -z "$ac_objext" && ac_objext=o
  7688. for cc_temp in $compiler""; do
  7689. case $cc_temp in
  7690. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  7691. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  7692. \-*) ;;
  7693. *) break;;
  7694. esac
  7695. done
  7696. cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  7697. # Only perform the check for file, if the check method requires it
  7698. test -z "$MAGIC_CMD" && MAGIC_CMD=file
  7699. case $deplibs_check_method in
  7700. file_magic*)
  7701. if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  7702. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
  7703. $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
  7704. if ${lt_cv_path_MAGIC_CMD+:} false; then :
  7705. $as_echo_n "(cached) " >&6
  7706. else
  7707. case $MAGIC_CMD in
  7708. [\\/*] | ?:[\\/]*)
  7709. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  7710. ;;
  7711. *)
  7712. lt_save_MAGIC_CMD="$MAGIC_CMD"
  7713. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  7714. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  7715. for ac_dir in $ac_dummy; do
  7716. IFS="$lt_save_ifs"
  7717. test -z "$ac_dir" && ac_dir=.
  7718. if test -f $ac_dir/${ac_tool_prefix}file; then
  7719. lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
  7720. if test -n "$file_magic_test_file"; then
  7721. case $deplibs_check_method in
  7722. "file_magic "*)
  7723. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  7724. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  7725. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  7726. $EGREP "$file_magic_regex" > /dev/null; then
  7727. :
  7728. else
  7729. cat <<_LT_EOF 1>&2
  7730. *** Warning: the command libtool uses to detect shared libraries,
  7731. *** $file_magic_cmd, produces output that libtool cannot recognize.
  7732. *** The result is that libtool may fail to recognize shared libraries
  7733. *** as such. This will affect the creation of libtool libraries that
  7734. *** depend on shared libraries, but programs linked with such libtool
  7735. *** libraries will work regardless of this problem. Nevertheless, you
  7736. *** may want to report the problem to your system manager and/or to
  7737. *** bug-libtool@gnu.org
  7738. _LT_EOF
  7739. fi ;;
  7740. esac
  7741. fi
  7742. break
  7743. fi
  7744. done
  7745. IFS="$lt_save_ifs"
  7746. MAGIC_CMD="$lt_save_MAGIC_CMD"
  7747. ;;
  7748. esac
  7749. fi
  7750. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  7751. if test -n "$MAGIC_CMD"; then
  7752. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  7753. $as_echo "$MAGIC_CMD" >&6; }
  7754. else
  7755. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7756. $as_echo "no" >&6; }
  7757. fi
  7758. if test -z "$lt_cv_path_MAGIC_CMD"; then
  7759. if test -n "$ac_tool_prefix"; then
  7760. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
  7761. $as_echo_n "checking for file... " >&6; }
  7762. if ${lt_cv_path_MAGIC_CMD+:} false; then :
  7763. $as_echo_n "(cached) " >&6
  7764. else
  7765. case $MAGIC_CMD in
  7766. [\\/*] | ?:[\\/]*)
  7767. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  7768. ;;
  7769. *)
  7770. lt_save_MAGIC_CMD="$MAGIC_CMD"
  7771. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  7772. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  7773. for ac_dir in $ac_dummy; do
  7774. IFS="$lt_save_ifs"
  7775. test -z "$ac_dir" && ac_dir=.
  7776. if test -f $ac_dir/file; then
  7777. lt_cv_path_MAGIC_CMD="$ac_dir/file"
  7778. if test -n "$file_magic_test_file"; then
  7779. case $deplibs_check_method in
  7780. "file_magic "*)
  7781. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  7782. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  7783. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  7784. $EGREP "$file_magic_regex" > /dev/null; then
  7785. :
  7786. else
  7787. cat <<_LT_EOF 1>&2
  7788. *** Warning: the command libtool uses to detect shared libraries,
  7789. *** $file_magic_cmd, produces output that libtool cannot recognize.
  7790. *** The result is that libtool may fail to recognize shared libraries
  7791. *** as such. This will affect the creation of libtool libraries that
  7792. *** depend on shared libraries, but programs linked with such libtool
  7793. *** libraries will work regardless of this problem. Nevertheless, you
  7794. *** may want to report the problem to your system manager and/or to
  7795. *** bug-libtool@gnu.org
  7796. _LT_EOF
  7797. fi ;;
  7798. esac
  7799. fi
  7800. break
  7801. fi
  7802. done
  7803. IFS="$lt_save_ifs"
  7804. MAGIC_CMD="$lt_save_MAGIC_CMD"
  7805. ;;
  7806. esac
  7807. fi
  7808. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  7809. if test -n "$MAGIC_CMD"; then
  7810. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  7811. $as_echo "$MAGIC_CMD" >&6; }
  7812. else
  7813. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7814. $as_echo "no" >&6; }
  7815. fi
  7816. else
  7817. MAGIC_CMD=:
  7818. fi
  7819. fi
  7820. fi
  7821. ;;
  7822. esac
  7823. # Use C for the default configuration in the libtool script
  7824. lt_save_CC="$CC"
  7825. ac_ext=c
  7826. ac_cpp='$CPP $CPPFLAGS'
  7827. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  7828. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  7829. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  7830. # Source file extension for C test sources.
  7831. ac_ext=c
  7832. # Object file extension for compiled C test sources.
  7833. objext=o
  7834. objext=$objext
  7835. # Code to be used in simple compile tests
  7836. lt_simple_compile_test_code="int some_variable = 0;"
  7837. # Code to be used in simple link tests
  7838. lt_simple_link_test_code='int main(){return(0);}'
  7839. # If no C compiler was specified, use CC.
  7840. LTCC=${LTCC-"$CC"}
  7841. # If no C compiler flags were specified, use CFLAGS.
  7842. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  7843. # Allow CC to be a program name with arguments.
  7844. compiler=$CC
  7845. # Save the default compiler, since it gets overwritten when the other
  7846. # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
  7847. compiler_DEFAULT=$CC
  7848. # save warnings/boilerplate of simple test code
  7849. ac_outfile=conftest.$ac_objext
  7850. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  7851. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  7852. _lt_compiler_boilerplate=`cat conftest.err`
  7853. $RM conftest*
  7854. ac_outfile=conftest.$ac_objext
  7855. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  7856. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  7857. _lt_linker_boilerplate=`cat conftest.err`
  7858. $RM -r conftest*
  7859. ## CAVEAT EMPTOR:
  7860. ## There is no encapsulation within the following macros, do not change
  7861. ## the running order or otherwise move them around unless you know exactly
  7862. ## what you are doing...
  7863. if test -n "$compiler"; then
  7864. lt_prog_compiler_no_builtin_flag=
  7865. if test "$GCC" = yes; then
  7866. case $cc_basename in
  7867. nvcc*)
  7868. lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
  7869. *)
  7870. lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
  7871. esac
  7872. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  7873. $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
  7874. if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
  7875. $as_echo_n "(cached) " >&6
  7876. else
  7877. lt_cv_prog_compiler_rtti_exceptions=no
  7878. ac_outfile=conftest.$ac_objext
  7879. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7880. lt_compiler_flag="-fno-rtti -fno-exceptions"
  7881. # Insert the option either (1) after the last *FLAGS variable, or
  7882. # (2) before a word containing "conftest.", or (3) at the end.
  7883. # Note that $ac_compile itself does not contain backslashes and begins
  7884. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7885. # The option is referenced via a variable to avoid confusing sed.
  7886. lt_compile=`echo "$ac_compile" | $SED \
  7887. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7888. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7889. -e 's:$: $lt_compiler_flag:'`
  7890. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7891. (eval "$lt_compile" 2>conftest.err)
  7892. ac_status=$?
  7893. cat conftest.err >&5
  7894. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7895. if (exit $ac_status) && test -s "$ac_outfile"; then
  7896. # The compiler can only warn and ignore the option if not recognized
  7897. # So say no if there are warnings other than the usual output.
  7898. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  7899. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7900. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  7901. lt_cv_prog_compiler_rtti_exceptions=yes
  7902. fi
  7903. fi
  7904. $RM conftest*
  7905. fi
  7906. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  7907. $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
  7908. if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
  7909. lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
  7910. else
  7911. :
  7912. fi
  7913. fi
  7914. lt_prog_compiler_wl=
  7915. lt_prog_compiler_pic=
  7916. lt_prog_compiler_static=
  7917. if test "$GCC" = yes; then
  7918. lt_prog_compiler_wl='-Wl,'
  7919. lt_prog_compiler_static='-static'
  7920. case $host_os in
  7921. aix*)
  7922. # All AIX code is PIC.
  7923. if test "$host_cpu" = ia64; then
  7924. # AIX 5 now supports IA64 processor
  7925. lt_prog_compiler_static='-Bstatic'
  7926. fi
  7927. ;;
  7928. amigaos*)
  7929. case $host_cpu in
  7930. powerpc)
  7931. # see comment about AmigaOS4 .so support
  7932. lt_prog_compiler_pic='-fPIC'
  7933. ;;
  7934. m68k)
  7935. # FIXME: we need at least 68020 code to build shared libraries, but
  7936. # adding the `-m68020' flag to GCC prevents building anything better,
  7937. # like `-m68040'.
  7938. lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
  7939. ;;
  7940. esac
  7941. ;;
  7942. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  7943. # PIC is the default for these OSes.
  7944. ;;
  7945. mingw* | cygwin* | pw32* | os2* | cegcc*)
  7946. # This hack is so that the source file can tell whether it is being
  7947. # built for inclusion in a dll (and should export symbols for example).
  7948. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  7949. # (--disable-auto-import) libraries
  7950. lt_prog_compiler_pic='-DDLL_EXPORT'
  7951. ;;
  7952. darwin* | rhapsody*)
  7953. # PIC is the default on this platform
  7954. # Common symbols not allowed in MH_DYLIB files
  7955. lt_prog_compiler_pic='-fno-common'
  7956. ;;
  7957. haiku*)
  7958. # PIC is the default for Haiku.
  7959. # The "-static" flag exists, but is broken.
  7960. lt_prog_compiler_static=
  7961. ;;
  7962. hpux*)
  7963. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  7964. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  7965. # sets the default TLS model and affects inlining.
  7966. case $host_cpu in
  7967. hppa*64*)
  7968. # +Z the default
  7969. ;;
  7970. *)
  7971. lt_prog_compiler_pic='-fPIC'
  7972. ;;
  7973. esac
  7974. ;;
  7975. interix[3-9]*)
  7976. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  7977. # Instead, we relocate shared libraries at runtime.
  7978. ;;
  7979. msdosdjgpp*)
  7980. # Just because we use GCC doesn't mean we suddenly get shared libraries
  7981. # on systems that don't support them.
  7982. lt_prog_compiler_can_build_shared=no
  7983. enable_shared=no
  7984. ;;
  7985. *nto* | *qnx*)
  7986. # QNX uses GNU C++, but need to define -shared option too, otherwise
  7987. # it will coredump.
  7988. lt_prog_compiler_pic='-fPIC -shared'
  7989. ;;
  7990. sysv4*MP*)
  7991. if test -d /usr/nec; then
  7992. lt_prog_compiler_pic=-Kconform_pic
  7993. fi
  7994. ;;
  7995. *)
  7996. lt_prog_compiler_pic='-fPIC'
  7997. ;;
  7998. esac
  7999. case $cc_basename in
  8000. nvcc*) # Cuda Compiler Driver 2.2
  8001. lt_prog_compiler_wl='-Xlinker '
  8002. if test -n "$lt_prog_compiler_pic"; then
  8003. lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
  8004. fi
  8005. ;;
  8006. esac
  8007. else
  8008. # PORTME Check for flag to pass linker flags through the system compiler.
  8009. case $host_os in
  8010. aix*)
  8011. lt_prog_compiler_wl='-Wl,'
  8012. if test "$host_cpu" = ia64; then
  8013. # AIX 5 now supports IA64 processor
  8014. lt_prog_compiler_static='-Bstatic'
  8015. else
  8016. lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
  8017. fi
  8018. ;;
  8019. mingw* | cygwin* | pw32* | os2* | cegcc*)
  8020. # This hack is so that the source file can tell whether it is being
  8021. # built for inclusion in a dll (and should export symbols for example).
  8022. lt_prog_compiler_pic='-DDLL_EXPORT'
  8023. ;;
  8024. hpux9* | hpux10* | hpux11*)
  8025. lt_prog_compiler_wl='-Wl,'
  8026. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  8027. # not for PA HP-UX.
  8028. case $host_cpu in
  8029. hppa*64*|ia64*)
  8030. # +Z the default
  8031. ;;
  8032. *)
  8033. lt_prog_compiler_pic='+Z'
  8034. ;;
  8035. esac
  8036. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  8037. lt_prog_compiler_static='${wl}-a ${wl}archive'
  8038. ;;
  8039. irix5* | irix6* | nonstopux*)
  8040. lt_prog_compiler_wl='-Wl,'
  8041. # PIC (with -KPIC) is the default.
  8042. lt_prog_compiler_static='-non_shared'
  8043. ;;
  8044. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  8045. case $cc_basename in
  8046. # old Intel for x86_64 which still supported -KPIC.
  8047. ecc*)
  8048. lt_prog_compiler_wl='-Wl,'
  8049. lt_prog_compiler_pic='-KPIC'
  8050. lt_prog_compiler_static='-static'
  8051. ;;
  8052. # icc used to be incompatible with GCC.
  8053. # ICC 10 doesn't accept -KPIC any more.
  8054. icc* | ifort*)
  8055. lt_prog_compiler_wl='-Wl,'
  8056. lt_prog_compiler_pic='-fPIC'
  8057. lt_prog_compiler_static='-static'
  8058. ;;
  8059. # Lahey Fortran 8.1.
  8060. lf95*)
  8061. lt_prog_compiler_wl='-Wl,'
  8062. lt_prog_compiler_pic='--shared'
  8063. lt_prog_compiler_static='--static'
  8064. ;;
  8065. nagfor*)
  8066. # NAG Fortran compiler
  8067. lt_prog_compiler_wl='-Wl,-Wl,,'
  8068. lt_prog_compiler_pic='-PIC'
  8069. lt_prog_compiler_static='-Bstatic'
  8070. ;;
  8071. pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
  8072. # Portland Group compilers (*not* the Pentium gcc compiler,
  8073. # which looks to be a dead project)
  8074. lt_prog_compiler_wl='-Wl,'
  8075. lt_prog_compiler_pic='-fpic'
  8076. lt_prog_compiler_static='-Bstatic'
  8077. ;;
  8078. ccc*)
  8079. lt_prog_compiler_wl='-Wl,'
  8080. # All Alpha code is PIC.
  8081. lt_prog_compiler_static='-non_shared'
  8082. ;;
  8083. xl* | bgxl* | bgf* | mpixl*)
  8084. # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
  8085. lt_prog_compiler_wl='-Wl,'
  8086. lt_prog_compiler_pic='-qpic'
  8087. lt_prog_compiler_static='-qstaticlink'
  8088. ;;
  8089. *)
  8090. case `$CC -V 2>&1 | sed 5q` in
  8091. *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
  8092. # Sun Fortran 8.3 passes all unrecognized flags to the linker
  8093. lt_prog_compiler_pic='-KPIC'
  8094. lt_prog_compiler_static='-Bstatic'
  8095. lt_prog_compiler_wl=''
  8096. ;;
  8097. *Sun\ F* | *Sun*Fortran*)
  8098. lt_prog_compiler_pic='-KPIC'
  8099. lt_prog_compiler_static='-Bstatic'
  8100. lt_prog_compiler_wl='-Qoption ld '
  8101. ;;
  8102. *Sun\ C*)
  8103. # Sun C 5.9
  8104. lt_prog_compiler_pic='-KPIC'
  8105. lt_prog_compiler_static='-Bstatic'
  8106. lt_prog_compiler_wl='-Wl,'
  8107. ;;
  8108. *Intel*\ [CF]*Compiler*)
  8109. lt_prog_compiler_wl='-Wl,'
  8110. lt_prog_compiler_pic='-fPIC'
  8111. lt_prog_compiler_static='-static'
  8112. ;;
  8113. *Portland\ Group*)
  8114. lt_prog_compiler_wl='-Wl,'
  8115. lt_prog_compiler_pic='-fpic'
  8116. lt_prog_compiler_static='-Bstatic'
  8117. ;;
  8118. esac
  8119. ;;
  8120. esac
  8121. ;;
  8122. newsos6)
  8123. lt_prog_compiler_pic='-KPIC'
  8124. lt_prog_compiler_static='-Bstatic'
  8125. ;;
  8126. *nto* | *qnx*)
  8127. # QNX uses GNU C++, but need to define -shared option too, otherwise
  8128. # it will coredump.
  8129. lt_prog_compiler_pic='-fPIC -shared'
  8130. ;;
  8131. osf3* | osf4* | osf5*)
  8132. lt_prog_compiler_wl='-Wl,'
  8133. # All OSF/1 code is PIC.
  8134. lt_prog_compiler_static='-non_shared'
  8135. ;;
  8136. rdos*)
  8137. lt_prog_compiler_static='-non_shared'
  8138. ;;
  8139. solaris*)
  8140. lt_prog_compiler_pic='-KPIC'
  8141. lt_prog_compiler_static='-Bstatic'
  8142. case $cc_basename in
  8143. f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
  8144. lt_prog_compiler_wl='-Qoption ld ';;
  8145. *)
  8146. lt_prog_compiler_wl='-Wl,';;
  8147. esac
  8148. ;;
  8149. sunos4*)
  8150. lt_prog_compiler_wl='-Qoption ld '
  8151. lt_prog_compiler_pic='-PIC'
  8152. lt_prog_compiler_static='-Bstatic'
  8153. ;;
  8154. sysv4 | sysv4.2uw2* | sysv4.3*)
  8155. lt_prog_compiler_wl='-Wl,'
  8156. lt_prog_compiler_pic='-KPIC'
  8157. lt_prog_compiler_static='-Bstatic'
  8158. ;;
  8159. sysv4*MP*)
  8160. if test -d /usr/nec ;then
  8161. lt_prog_compiler_pic='-Kconform_pic'
  8162. lt_prog_compiler_static='-Bstatic'
  8163. fi
  8164. ;;
  8165. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  8166. lt_prog_compiler_wl='-Wl,'
  8167. lt_prog_compiler_pic='-KPIC'
  8168. lt_prog_compiler_static='-Bstatic'
  8169. ;;
  8170. unicos*)
  8171. lt_prog_compiler_wl='-Wl,'
  8172. lt_prog_compiler_can_build_shared=no
  8173. ;;
  8174. uts4*)
  8175. lt_prog_compiler_pic='-pic'
  8176. lt_prog_compiler_static='-Bstatic'
  8177. ;;
  8178. *)
  8179. lt_prog_compiler_can_build_shared=no
  8180. ;;
  8181. esac
  8182. fi
  8183. case $host_os in
  8184. # For platforms which do not support PIC, -DPIC is meaningless:
  8185. *djgpp*)
  8186. lt_prog_compiler_pic=
  8187. ;;
  8188. *)
  8189. lt_prog_compiler_pic="$lt_prog_compiler_pic@&t@ -DPIC"
  8190. ;;
  8191. esac
  8192. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  8193. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  8194. if ${lt_cv_prog_compiler_pic+:} false; then :
  8195. $as_echo_n "(cached) " >&6
  8196. else
  8197. lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
  8198. fi
  8199. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
  8200. $as_echo "$lt_cv_prog_compiler_pic" >&6; }
  8201. lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
  8202. #
  8203. # Check to make sure the PIC flag actually works.
  8204. #
  8205. if test -n "$lt_prog_compiler_pic"; then
  8206. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
  8207. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
  8208. if ${lt_cv_prog_compiler_pic_works+:} false; then :
  8209. $as_echo_n "(cached) " >&6
  8210. else
  8211. lt_cv_prog_compiler_pic_works=no
  8212. ac_outfile=conftest.$ac_objext
  8213. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8214. lt_compiler_flag="$lt_prog_compiler_pic@&t@ -DPIC"
  8215. # Insert the option either (1) after the last *FLAGS variable, or
  8216. # (2) before a word containing "conftest.", or (3) at the end.
  8217. # Note that $ac_compile itself does not contain backslashes and begins
  8218. # with a dollar sign (not a hyphen), so the echo should work correctly.
  8219. # The option is referenced via a variable to avoid confusing sed.
  8220. lt_compile=`echo "$ac_compile" | $SED \
  8221. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  8222. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  8223. -e 's:$: $lt_compiler_flag:'`
  8224. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  8225. (eval "$lt_compile" 2>conftest.err)
  8226. ac_status=$?
  8227. cat conftest.err >&5
  8228. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8229. if (exit $ac_status) && test -s "$ac_outfile"; then
  8230. # The compiler can only warn and ignore the option if not recognized
  8231. # So say no if there are warnings other than the usual output.
  8232. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  8233. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  8234. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  8235. lt_cv_prog_compiler_pic_works=yes
  8236. fi
  8237. fi
  8238. $RM conftest*
  8239. fi
  8240. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
  8241. $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
  8242. if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
  8243. case $lt_prog_compiler_pic in
  8244. "" | " "*) ;;
  8245. *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
  8246. esac
  8247. else
  8248. lt_prog_compiler_pic=
  8249. lt_prog_compiler_can_build_shared=no
  8250. fi
  8251. fi
  8252. #
  8253. # Check to make sure the static flag actually works.
  8254. #
  8255. wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
  8256. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  8257. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  8258. if ${lt_cv_prog_compiler_static_works+:} false; then :
  8259. $as_echo_n "(cached) " >&6
  8260. else
  8261. lt_cv_prog_compiler_static_works=no
  8262. save_LDFLAGS="$LDFLAGS"
  8263. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  8264. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  8265. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  8266. # The linker can only warn and ignore the option if not recognized
  8267. # So say no if there are warnings
  8268. if test -s conftest.err; then
  8269. # Append any errors to the config.log.
  8270. cat conftest.err 1>&5
  8271. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  8272. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  8273. if diff conftest.exp conftest.er2 >/dev/null; then
  8274. lt_cv_prog_compiler_static_works=yes
  8275. fi
  8276. else
  8277. lt_cv_prog_compiler_static_works=yes
  8278. fi
  8279. fi
  8280. $RM -r conftest*
  8281. LDFLAGS="$save_LDFLAGS"
  8282. fi
  8283. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
  8284. $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
  8285. if test x"$lt_cv_prog_compiler_static_works" = xyes; then
  8286. :
  8287. else
  8288. lt_prog_compiler_static=
  8289. fi
  8290. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  8291. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  8292. if ${lt_cv_prog_compiler_c_o+:} false; then :
  8293. $as_echo_n "(cached) " >&6
  8294. else
  8295. lt_cv_prog_compiler_c_o=no
  8296. $RM -r conftest 2>/dev/null
  8297. mkdir conftest
  8298. cd conftest
  8299. mkdir out
  8300. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8301. lt_compiler_flag="-o out/conftest2.$ac_objext"
  8302. # Insert the option either (1) after the last *FLAGS variable, or
  8303. # (2) before a word containing "conftest.", or (3) at the end.
  8304. # Note that $ac_compile itself does not contain backslashes and begins
  8305. # with a dollar sign (not a hyphen), so the echo should work correctly.
  8306. lt_compile=`echo "$ac_compile" | $SED \
  8307. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  8308. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  8309. -e 's:$: $lt_compiler_flag:'`
  8310. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  8311. (eval "$lt_compile" 2>out/conftest.err)
  8312. ac_status=$?
  8313. cat out/conftest.err >&5
  8314. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8315. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  8316. then
  8317. # The compiler can only warn and ignore the option if not recognized
  8318. # So say no if there are warnings
  8319. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  8320. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  8321. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  8322. lt_cv_prog_compiler_c_o=yes
  8323. fi
  8324. fi
  8325. chmod u+w . 2>&5
  8326. $RM conftest*
  8327. # SGI C++ compiler will create directory out/ii_files/ for
  8328. # template instantiation
  8329. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  8330. $RM out/* && rmdir out
  8331. cd ..
  8332. $RM -r conftest
  8333. $RM conftest*
  8334. fi
  8335. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  8336. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  8337. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  8338. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  8339. if ${lt_cv_prog_compiler_c_o+:} false; then :
  8340. $as_echo_n "(cached) " >&6
  8341. else
  8342. lt_cv_prog_compiler_c_o=no
  8343. $RM -r conftest 2>/dev/null
  8344. mkdir conftest
  8345. cd conftest
  8346. mkdir out
  8347. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8348. lt_compiler_flag="-o out/conftest2.$ac_objext"
  8349. # Insert the option either (1) after the last *FLAGS variable, or
  8350. # (2) before a word containing "conftest.", or (3) at the end.
  8351. # Note that $ac_compile itself does not contain backslashes and begins
  8352. # with a dollar sign (not a hyphen), so the echo should work correctly.
  8353. lt_compile=`echo "$ac_compile" | $SED \
  8354. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  8355. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  8356. -e 's:$: $lt_compiler_flag:'`
  8357. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  8358. (eval "$lt_compile" 2>out/conftest.err)
  8359. ac_status=$?
  8360. cat out/conftest.err >&5
  8361. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8362. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  8363. then
  8364. # The compiler can only warn and ignore the option if not recognized
  8365. # So say no if there are warnings
  8366. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  8367. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  8368. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  8369. lt_cv_prog_compiler_c_o=yes
  8370. fi
  8371. fi
  8372. chmod u+w . 2>&5
  8373. $RM conftest*
  8374. # SGI C++ compiler will create directory out/ii_files/ for
  8375. # template instantiation
  8376. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  8377. $RM out/* && rmdir out
  8378. cd ..
  8379. $RM -r conftest
  8380. $RM conftest*
  8381. fi
  8382. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  8383. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  8384. hard_links="nottested"
  8385. if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
  8386. # do not overwrite the value of need_locks provided by the user
  8387. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  8388. $as_echo_n "checking if we can lock with hard links... " >&6; }
  8389. hard_links=yes
  8390. $RM conftest*
  8391. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  8392. touch conftest.a
  8393. ln conftest.a conftest.b 2>&5 || hard_links=no
  8394. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  8395. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  8396. $as_echo "$hard_links" >&6; }
  8397. if test "$hard_links" = no; then
  8398. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  8399. $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  8400. need_locks=warn
  8401. fi
  8402. else
  8403. need_locks=no
  8404. fi
  8405. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  8406. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  8407. runpath_var=
  8408. allow_undefined_flag=
  8409. always_export_symbols=no
  8410. archive_cmds=
  8411. archive_expsym_cmds=
  8412. compiler_needs_object=no
  8413. enable_shared_with_static_runtimes=no
  8414. export_dynamic_flag_spec=
  8415. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  8416. hardcode_automatic=no
  8417. hardcode_direct=no
  8418. hardcode_direct_absolute=no
  8419. hardcode_libdir_flag_spec=
  8420. hardcode_libdir_separator=
  8421. hardcode_minus_L=no
  8422. hardcode_shlibpath_var=unsupported
  8423. inherit_rpath=no
  8424. link_all_deplibs=unknown
  8425. module_cmds=
  8426. module_expsym_cmds=
  8427. old_archive_from_new_cmds=
  8428. old_archive_from_expsyms_cmds=
  8429. thread_safe_flag_spec=
  8430. whole_archive_flag_spec=
  8431. # include_expsyms should be a list of space-separated symbols to be *always*
  8432. # included in the symbol list
  8433. include_expsyms=
  8434. # exclude_expsyms can be an extended regexp of symbols to exclude
  8435. # it will be wrapped by ` (' and `)$', so one must not match beginning or
  8436. # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  8437. # as well as any symbol that contains `d'.
  8438. exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  8439. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  8440. # platforms (ab)use it in PIC code, but their linkers get confused if
  8441. # the symbol is explicitly referenced. Since portable code cannot
  8442. # rely on this symbol name, it's probably fine to never include it in
  8443. # preloaded symbol tables.
  8444. # Exclude shared library initialization/finalization symbols.
  8445. extract_expsyms_cmds=
  8446. case $host_os in
  8447. cygwin* | mingw* | pw32* | cegcc*)
  8448. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  8449. # When not using gcc, we currently assume that we are using
  8450. # Microsoft Visual C++.
  8451. if test "$GCC" != yes; then
  8452. with_gnu_ld=no
  8453. fi
  8454. ;;
  8455. interix*)
  8456. # we just hope/assume this is gcc and not c89 (= MSVC++)
  8457. with_gnu_ld=yes
  8458. ;;
  8459. openbsd*)
  8460. with_gnu_ld=no
  8461. ;;
  8462. esac
  8463. ld_shlibs=yes
  8464. # On some targets, GNU ld is compatible enough with the native linker
  8465. # that we're better off using the native interface for both.
  8466. lt_use_gnu_ld_interface=no
  8467. if test "$with_gnu_ld" = yes; then
  8468. case $host_os in
  8469. aix*)
  8470. # The AIX port of GNU ld has always aspired to compatibility
  8471. # with the native linker. However, as the warning in the GNU ld
  8472. # block says, versions before 2.19.5* couldn't really create working
  8473. # shared libraries, regardless of the interface used.
  8474. case `$LD -v 2>&1` in
  8475. *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
  8476. *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
  8477. *\ \(GNU\ Binutils\)\ [3-9]*) ;;
  8478. *)
  8479. lt_use_gnu_ld_interface=yes
  8480. ;;
  8481. esac
  8482. ;;
  8483. *)
  8484. lt_use_gnu_ld_interface=yes
  8485. ;;
  8486. esac
  8487. fi
  8488. if test "$lt_use_gnu_ld_interface" = yes; then
  8489. # If archive_cmds runs LD, not CC, wlarc should be empty
  8490. wlarc='${wl}'
  8491. # Set some defaults for GNU ld with shared library support. These
  8492. # are reset later if shared libraries are not supported. Putting them
  8493. # here allows them to be overridden if necessary.
  8494. runpath_var=LD_RUN_PATH
  8495. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8496. export_dynamic_flag_spec='${wl}--export-dynamic'
  8497. # ancient GNU ld didn't support --whole-archive et. al.
  8498. if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
  8499. whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  8500. else
  8501. whole_archive_flag_spec=
  8502. fi
  8503. supports_anon_versioning=no
  8504. case `$LD -v 2>&1` in
  8505. *GNU\ gold*) supports_anon_versioning=yes ;;
  8506. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  8507. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  8508. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  8509. *\ 2.11.*) ;; # other 2.11 versions
  8510. *) supports_anon_versioning=yes ;;
  8511. esac
  8512. # See if GNU ld supports shared libraries.
  8513. case $host_os in
  8514. aix[3-9]*)
  8515. # On AIX/PPC, the GNU linker is very broken
  8516. if test "$host_cpu" != ia64; then
  8517. ld_shlibs=no
  8518. cat <<_LT_EOF 1>&2
  8519. *** Warning: the GNU linker, at least up to release 2.19, is reported
  8520. *** to be unable to reliably create shared libraries on AIX.
  8521. *** Therefore, libtool is disabling shared libraries support. If you
  8522. *** really care for shared libraries, you may want to install binutils
  8523. *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
  8524. *** You will then need to restart the configuration process.
  8525. _LT_EOF
  8526. fi
  8527. ;;
  8528. amigaos*)
  8529. case $host_cpu in
  8530. powerpc)
  8531. # see comment about AmigaOS4 .so support
  8532. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8533. archive_expsym_cmds=''
  8534. ;;
  8535. m68k)
  8536. 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)'
  8537. hardcode_libdir_flag_spec='-L$libdir'
  8538. hardcode_minus_L=yes
  8539. ;;
  8540. esac
  8541. ;;
  8542. beos*)
  8543. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8544. allow_undefined_flag=unsupported
  8545. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  8546. # support --undefined. This deserves some investigation. FIXME
  8547. archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8548. else
  8549. ld_shlibs=no
  8550. fi
  8551. ;;
  8552. cygwin* | mingw* | pw32* | cegcc*)
  8553. # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
  8554. # as there is no search path for DLLs.
  8555. hardcode_libdir_flag_spec='-L$libdir'
  8556. export_dynamic_flag_spec='${wl}--export-all-symbols'
  8557. allow_undefined_flag=unsupported
  8558. always_export_symbols=no
  8559. enable_shared_with_static_runtimes=yes
  8560. 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'
  8561. exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
  8562. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  8563. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  8564. # If the export-symbols file already is a .def file (1st line
  8565. # is EXPORTS), use it as is; otherwise, prepend...
  8566. archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  8567. cp $export_symbols $output_objdir/$soname.def;
  8568. else
  8569. echo EXPORTS > $output_objdir/$soname.def;
  8570. cat $export_symbols >> $output_objdir/$soname.def;
  8571. fi~
  8572. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  8573. else
  8574. ld_shlibs=no
  8575. fi
  8576. ;;
  8577. haiku*)
  8578. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8579. link_all_deplibs=yes
  8580. ;;
  8581. interix[3-9]*)
  8582. hardcode_direct=no
  8583. hardcode_shlibpath_var=no
  8584. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  8585. export_dynamic_flag_spec='${wl}-E'
  8586. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  8587. # Instead, shared libraries are loaded at an image base (0x10000000 by
  8588. # default) and relocated if they conflict, which is a slow very memory
  8589. # consuming and fragmenting process. To avoid this, we pick a random,
  8590. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  8591. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  8592. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  8593. 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'
  8594. ;;
  8595. gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
  8596. tmp_diet=no
  8597. if test "$host_os" = linux-dietlibc; then
  8598. case $cc_basename in
  8599. diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
  8600. esac
  8601. fi
  8602. if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
  8603. && test "$tmp_diet" = no
  8604. then
  8605. tmp_addflag=' $pic_flag'
  8606. tmp_sharedflag='-shared'
  8607. case $cc_basename,$host_cpu in
  8608. pgcc*) # Portland Group C compiler
  8609. 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'
  8610. tmp_addflag=' $pic_flag'
  8611. ;;
  8612. pgf77* | pgf90* | pgf95* | pgfortran*)
  8613. # Portland Group f77 and f90 compilers
  8614. 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'
  8615. tmp_addflag=' $pic_flag -Mnomain' ;;
  8616. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  8617. tmp_addflag=' -i_dynamic' ;;
  8618. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  8619. tmp_addflag=' -i_dynamic -nofor_main' ;;
  8620. ifc* | ifort*) # Intel Fortran compiler
  8621. tmp_addflag=' -nofor_main' ;;
  8622. lf95*) # Lahey Fortran 8.1
  8623. whole_archive_flag_spec=
  8624. tmp_sharedflag='--shared' ;;
  8625. xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
  8626. tmp_sharedflag='-qmkshrobj'
  8627. tmp_addflag= ;;
  8628. nvcc*) # Cuda Compiler Driver 2.2
  8629. 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'
  8630. compiler_needs_object=yes
  8631. ;;
  8632. esac
  8633. case `$CC -V 2>&1 | sed 5q` in
  8634. *Sun\ C*) # Sun C 5.9
  8635. 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'
  8636. compiler_needs_object=yes
  8637. tmp_sharedflag='-G' ;;
  8638. *Sun\ F*) # Sun Fortran 8.3
  8639. tmp_sharedflag='-G' ;;
  8640. esac
  8641. archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8642. if test "x$supports_anon_versioning" = xyes; then
  8643. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  8644. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  8645. echo "local: *; };" >> $output_objdir/$libname.ver~
  8646. $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  8647. fi
  8648. case $cc_basename in
  8649. xlf* | bgf* | bgxlf* | mpixlf*)
  8650. # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
  8651. whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
  8652. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8653. archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
  8654. if test "x$supports_anon_versioning" = xyes; then
  8655. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  8656. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  8657. echo "local: *; };" >> $output_objdir/$libname.ver~
  8658. $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
  8659. fi
  8660. ;;
  8661. esac
  8662. else
  8663. ld_shlibs=no
  8664. fi
  8665. ;;
  8666. netbsd*)
  8667. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  8668. archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  8669. wlarc=
  8670. else
  8671. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8672. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  8673. fi
  8674. ;;
  8675. solaris*)
  8676. if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
  8677. ld_shlibs=no
  8678. cat <<_LT_EOF 1>&2
  8679. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  8680. *** create shared libraries on Solaris systems. Therefore, libtool
  8681. *** is disabling shared libraries support. We urge you to upgrade GNU
  8682. *** binutils to release 2.9.1 or newer. Another option is to modify
  8683. *** your PATH or compiler configuration so that the native linker is
  8684. *** used, and then restart.
  8685. _LT_EOF
  8686. elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8687. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8688. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  8689. else
  8690. ld_shlibs=no
  8691. fi
  8692. ;;
  8693. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  8694. case `$LD -v 2>&1` in
  8695. *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  8696. ld_shlibs=no
  8697. cat <<_LT_EOF 1>&2
  8698. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  8699. *** reliably create shared libraries on SCO systems. Therefore, libtool
  8700. *** is disabling shared libraries support. We urge you to upgrade GNU
  8701. *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  8702. *** your PATH or compiler configuration so that the native linker is
  8703. *** used, and then restart.
  8704. _LT_EOF
  8705. ;;
  8706. *)
  8707. # For security reasons, it is highly recommended that you always
  8708. # use absolute paths for naming shared libraries, and exclude the
  8709. # DT_RUNPATH tag from executables and libraries. But doing so
  8710. # requires that you compile everything twice, which is a pain.
  8711. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8712. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8713. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8714. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  8715. else
  8716. ld_shlibs=no
  8717. fi
  8718. ;;
  8719. esac
  8720. ;;
  8721. sunos4*)
  8722. archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8723. wlarc=
  8724. hardcode_direct=yes
  8725. hardcode_shlibpath_var=no
  8726. ;;
  8727. *)
  8728. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8729. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8730. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  8731. else
  8732. ld_shlibs=no
  8733. fi
  8734. ;;
  8735. esac
  8736. if test "$ld_shlibs" = no; then
  8737. runpath_var=
  8738. hardcode_libdir_flag_spec=
  8739. export_dynamic_flag_spec=
  8740. whole_archive_flag_spec=
  8741. fi
  8742. else
  8743. # PORTME fill in a description of your system's linker (not GNU ld)
  8744. case $host_os in
  8745. aix3*)
  8746. allow_undefined_flag=unsupported
  8747. always_export_symbols=yes
  8748. 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'
  8749. # Note: this linker hardcodes the directories in LIBPATH if there
  8750. # are no directories specified by -L.
  8751. hardcode_minus_L=yes
  8752. if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  8753. # Neither direct hardcoding nor static linking is supported with a
  8754. # broken collect2.
  8755. hardcode_direct=unsupported
  8756. fi
  8757. ;;
  8758. aix[4-9]*)
  8759. if test "$host_cpu" = ia64; then
  8760. # On IA64, the linker does run time linking by default, so we don't
  8761. # have to do anything special.
  8762. aix_use_runtimelinking=no
  8763. exp_sym_flag='-Bexport'
  8764. no_entry_flag=""
  8765. else
  8766. # If we're using GNU nm, then we don't want the "-C" option.
  8767. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  8768. # Also, AIX nm treats weak defined symbols like other global
  8769. # defined symbols, whereas GNU nm marks them as "W".
  8770. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  8771. 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'
  8772. else
  8773. 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'
  8774. fi
  8775. aix_use_runtimelinking=no
  8776. # Test if we are trying to use run time linking or normal
  8777. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  8778. # need to do runtime linking.
  8779. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  8780. for ld_flag in $LDFLAGS; do
  8781. if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  8782. aix_use_runtimelinking=yes
  8783. break
  8784. fi
  8785. done
  8786. ;;
  8787. esac
  8788. exp_sym_flag='-bexport'
  8789. no_entry_flag='-bnoentry'
  8790. fi
  8791. # When large executables or shared objects are built, AIX ld can
  8792. # have problems creating the table of contents. If linking a library
  8793. # or program results in "error TOC overflow" add -mminimal-toc to
  8794. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  8795. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  8796. archive_cmds=''
  8797. hardcode_direct=yes
  8798. hardcode_direct_absolute=yes
  8799. hardcode_libdir_separator=':'
  8800. link_all_deplibs=yes
  8801. file_list_spec='${wl}-f,'
  8802. if test "$GCC" = yes; then
  8803. case $host_os in aix4.[012]|aix4.[012].*)
  8804. # We only want to do this on AIX 4.2 and lower, the check
  8805. # below for broken collect2 doesn't work under 4.3+
  8806. collect2name=`${CC} -print-prog-name=collect2`
  8807. if test -f "$collect2name" &&
  8808. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  8809. then
  8810. # We have reworked collect2
  8811. :
  8812. else
  8813. # We have old collect2
  8814. hardcode_direct=unsupported
  8815. # It fails to find uninstalled libraries when the uninstalled
  8816. # path is not listed in the libpath. Setting hardcode_minus_L
  8817. # to unsupported forces relinking
  8818. hardcode_minus_L=yes
  8819. hardcode_libdir_flag_spec='-L$libdir'
  8820. hardcode_libdir_separator=
  8821. fi
  8822. ;;
  8823. esac
  8824. shared_flag='-shared'
  8825. if test "$aix_use_runtimelinking" = yes; then
  8826. shared_flag="$shared_flag "'${wl}-G'
  8827. fi
  8828. else
  8829. # not using gcc
  8830. if test "$host_cpu" = ia64; then
  8831. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  8832. # chokes on -Wl,-G. The following line is correct:
  8833. shared_flag='-G'
  8834. else
  8835. if test "$aix_use_runtimelinking" = yes; then
  8836. shared_flag='${wl}-G'
  8837. else
  8838. shared_flag='${wl}-bM:SRE'
  8839. fi
  8840. fi
  8841. fi
  8842. export_dynamic_flag_spec='${wl}-bexpall'
  8843. # It seems that -bexpall does not export symbols beginning with
  8844. # underscore (_), so it is better to generate a list of symbols to export.
  8845. always_export_symbols=yes
  8846. if test "$aix_use_runtimelinking" = yes; then
  8847. # Warning - without using the other runtime loading flags (-brtl),
  8848. # -berok will link without error, but may produce a broken library.
  8849. allow_undefined_flag='-berok'
  8850. # Determine the default libpath from the value encoded in an
  8851. # empty executable.
  8852. if test "${lt_cv_aix_libpath+set}" = set; then
  8853. aix_libpath=$lt_cv_aix_libpath
  8854. else
  8855. if ${lt_cv_aix_libpath_+:} false; then :
  8856. $as_echo_n "(cached) " >&6
  8857. else
  8858. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8859. /* end confdefs.h. */
  8860. int
  8861. main ()
  8862. {
  8863. ;
  8864. return 0;
  8865. }
  8866. _ACEOF
  8867. if ac_fn_c_try_link "$LINENO"; then :
  8868. lt_aix_libpath_sed='
  8869. /Import File Strings/,/^$/ {
  8870. /^0/ {
  8871. s/^0 *\([^ ]*\) *$/\1/
  8872. p
  8873. }
  8874. }'
  8875. lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8876. # Check for a 64-bit object if we didn't find anything.
  8877. if test -z "$lt_cv_aix_libpath_"; then
  8878. lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8879. fi
  8880. fi
  8881. rm -f core conftest.err conftest.$ac_objext \
  8882. conftest$ac_exeext conftest.$ac_ext
  8883. if test -z "$lt_cv_aix_libpath_"; then
  8884. lt_cv_aix_libpath_="/usr/lib:/lib"
  8885. fi
  8886. fi
  8887. aix_libpath=$lt_cv_aix_libpath_
  8888. fi
  8889. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  8890. 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"
  8891. else
  8892. if test "$host_cpu" = ia64; then
  8893. hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
  8894. allow_undefined_flag="-z nodefs"
  8895. 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"
  8896. else
  8897. # Determine the default libpath from the value encoded in an
  8898. # empty executable.
  8899. if test "${lt_cv_aix_libpath+set}" = set; then
  8900. aix_libpath=$lt_cv_aix_libpath
  8901. else
  8902. if ${lt_cv_aix_libpath_+:} false; then :
  8903. $as_echo_n "(cached) " >&6
  8904. else
  8905. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8906. /* end confdefs.h. */
  8907. int
  8908. main ()
  8909. {
  8910. ;
  8911. return 0;
  8912. }
  8913. _ACEOF
  8914. if ac_fn_c_try_link "$LINENO"; then :
  8915. lt_aix_libpath_sed='
  8916. /Import File Strings/,/^$/ {
  8917. /^0/ {
  8918. s/^0 *\([^ ]*\) *$/\1/
  8919. p
  8920. }
  8921. }'
  8922. lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8923. # Check for a 64-bit object if we didn't find anything.
  8924. if test -z "$lt_cv_aix_libpath_"; then
  8925. lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8926. fi
  8927. fi
  8928. rm -f core conftest.err conftest.$ac_objext \
  8929. conftest$ac_exeext conftest.$ac_ext
  8930. if test -z "$lt_cv_aix_libpath_"; then
  8931. lt_cv_aix_libpath_="/usr/lib:/lib"
  8932. fi
  8933. fi
  8934. aix_libpath=$lt_cv_aix_libpath_
  8935. fi
  8936. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  8937. # Warning - without using the other run time loading flags,
  8938. # -berok will link without error, but may produce a broken library.
  8939. no_undefined_flag=' ${wl}-bernotok'
  8940. allow_undefined_flag=' ${wl}-berok'
  8941. if test "$with_gnu_ld" = yes; then
  8942. # We only use this code for GNU lds that support --whole-archive.
  8943. whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  8944. else
  8945. # Exported symbols can be pulled into shared objects from archives
  8946. whole_archive_flag_spec='$convenience'
  8947. fi
  8948. archive_cmds_need_lc=yes
  8949. # This is similar to how AIX traditionally builds its shared libraries.
  8950. 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'
  8951. fi
  8952. fi
  8953. ;;
  8954. amigaos*)
  8955. case $host_cpu in
  8956. powerpc)
  8957. # see comment about AmigaOS4 .so support
  8958. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8959. archive_expsym_cmds=''
  8960. ;;
  8961. m68k)
  8962. 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)'
  8963. hardcode_libdir_flag_spec='-L$libdir'
  8964. hardcode_minus_L=yes
  8965. ;;
  8966. esac
  8967. ;;
  8968. bsdi[45]*)
  8969. export_dynamic_flag_spec=-rdynamic
  8970. ;;
  8971. cygwin* | mingw* | pw32* | cegcc*)
  8972. # When not using gcc, we currently assume that we are using
  8973. # Microsoft Visual C++.
  8974. # hardcode_libdir_flag_spec is actually meaningless, as there is
  8975. # no search path for DLLs.
  8976. case $cc_basename in
  8977. cl*)
  8978. # Native MSVC
  8979. hardcode_libdir_flag_spec=' '
  8980. allow_undefined_flag=unsupported
  8981. always_export_symbols=yes
  8982. file_list_spec='@'
  8983. # Tell ltmain to make .lib files, not .a files.
  8984. libext=lib
  8985. # Tell ltmain to make .dll files, not .so files.
  8986. shrext_cmds=".dll"
  8987. # FIXME: Setting linknames here is a bad hack.
  8988. archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
  8989. archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  8990. sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
  8991. else
  8992. sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
  8993. fi~
  8994. $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
  8995. linknames='
  8996. # The linker will not automatically build a static lib if we build a DLL.
  8997. # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
  8998. enable_shared_with_static_runtimes=yes
  8999. exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
  9000. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
  9001. # Don't use ranlib
  9002. old_postinstall_cmds='chmod 644 $oldlib'
  9003. postlink_cmds='lt_outputfile="@OUTPUT@"~
  9004. lt_tool_outputfile="@TOOL_OUTPUT@"~
  9005. case $lt_outputfile in
  9006. *.exe|*.EXE) ;;
  9007. *)
  9008. lt_outputfile="$lt_outputfile.exe"
  9009. lt_tool_outputfile="$lt_tool_outputfile.exe"
  9010. ;;
  9011. esac~
  9012. if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
  9013. $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
  9014. $RM "$lt_outputfile.manifest";
  9015. fi'
  9016. ;;
  9017. *)
  9018. # Assume MSVC wrapper
  9019. hardcode_libdir_flag_spec=' '
  9020. allow_undefined_flag=unsupported
  9021. # Tell ltmain to make .lib files, not .a files.
  9022. libext=lib
  9023. # Tell ltmain to make .dll files, not .so files.
  9024. shrext_cmds=".dll"
  9025. # FIXME: Setting linknames here is a bad hack.
  9026. archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
  9027. # The linker will automatically build a .lib file if we build a DLL.
  9028. old_archive_from_new_cmds='true'
  9029. # FIXME: Should let the user specify the lib program.
  9030. old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
  9031. enable_shared_with_static_runtimes=yes
  9032. ;;
  9033. esac
  9034. ;;
  9035. darwin* | rhapsody*)
  9036. archive_cmds_need_lc=no
  9037. hardcode_direct=no
  9038. hardcode_automatic=yes
  9039. hardcode_shlibpath_var=unsupported
  9040. if test "$lt_cv_ld_force_load" = "yes"; then
  9041. 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\"`'
  9042. else
  9043. whole_archive_flag_spec=''
  9044. fi
  9045. link_all_deplibs=yes
  9046. allow_undefined_flag="$_lt_dar_allow_undefined"
  9047. case $cc_basename in
  9048. ifort*) _lt_dar_can_shared=yes ;;
  9049. *) _lt_dar_can_shared=$GCC ;;
  9050. esac
  9051. if test "$_lt_dar_can_shared" = "yes"; then
  9052. output_verbose_link_cmd=func_echo_all
  9053. archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
  9054. module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  9055. 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}"
  9056. 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}"
  9057. else
  9058. ld_shlibs=no
  9059. fi
  9060. ;;
  9061. dgux*)
  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. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  9067. # support. Future versions do this automatically, but an explicit c++rt0.o
  9068. # does not break anything, and helps significantly (at the cost of a little
  9069. # extra space).
  9070. freebsd2.2*)
  9071. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  9072. hardcode_libdir_flag_spec='-R$libdir'
  9073. hardcode_direct=yes
  9074. hardcode_shlibpath_var=no
  9075. ;;
  9076. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  9077. freebsd2.*)
  9078. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  9079. hardcode_direct=yes
  9080. hardcode_minus_L=yes
  9081. hardcode_shlibpath_var=no
  9082. ;;
  9083. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  9084. freebsd* | dragonfly*)
  9085. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  9086. hardcode_libdir_flag_spec='-R$libdir'
  9087. hardcode_direct=yes
  9088. hardcode_shlibpath_var=no
  9089. ;;
  9090. hpux9*)
  9091. if test "$GCC" = yes; then
  9092. 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'
  9093. else
  9094. 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'
  9095. fi
  9096. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  9097. hardcode_libdir_separator=:
  9098. hardcode_direct=yes
  9099. # hardcode_minus_L: Not really in the search PATH,
  9100. # but as the default location of the library.
  9101. hardcode_minus_L=yes
  9102. export_dynamic_flag_spec='${wl}-E'
  9103. ;;
  9104. hpux10*)
  9105. if test "$GCC" = yes && test "$with_gnu_ld" = no; then
  9106. archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  9107. else
  9108. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  9109. fi
  9110. if test "$with_gnu_ld" = no; then
  9111. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  9112. hardcode_libdir_separator=:
  9113. hardcode_direct=yes
  9114. hardcode_direct_absolute=yes
  9115. export_dynamic_flag_spec='${wl}-E'
  9116. # hardcode_minus_L: Not really in the search PATH,
  9117. # but as the default location of the library.
  9118. hardcode_minus_L=yes
  9119. fi
  9120. ;;
  9121. hpux11*)
  9122. if test "$GCC" = yes && test "$with_gnu_ld" = no; then
  9123. case $host_cpu in
  9124. hppa*64*)
  9125. archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  9126. ;;
  9127. ia64*)
  9128. archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  9129. ;;
  9130. *)
  9131. archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  9132. ;;
  9133. esac
  9134. else
  9135. case $host_cpu in
  9136. hppa*64*)
  9137. archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  9138. ;;
  9139. ia64*)
  9140. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  9141. ;;
  9142. *)
  9143. # Older versions of the 11.00 compiler do not understand -b yet
  9144. # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
  9145. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
  9146. $as_echo_n "checking if $CC understands -b... " >&6; }
  9147. if ${lt_cv_prog_compiler__b+:} false; then :
  9148. $as_echo_n "(cached) " >&6
  9149. else
  9150. lt_cv_prog_compiler__b=no
  9151. save_LDFLAGS="$LDFLAGS"
  9152. LDFLAGS="$LDFLAGS -b"
  9153. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  9154. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  9155. # The linker can only warn and ignore the option if not recognized
  9156. # So say no if there are warnings
  9157. if test -s conftest.err; then
  9158. # Append any errors to the config.log.
  9159. cat conftest.err 1>&5
  9160. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  9161. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  9162. if diff conftest.exp conftest.er2 >/dev/null; then
  9163. lt_cv_prog_compiler__b=yes
  9164. fi
  9165. else
  9166. lt_cv_prog_compiler__b=yes
  9167. fi
  9168. fi
  9169. $RM -r conftest*
  9170. LDFLAGS="$save_LDFLAGS"
  9171. fi
  9172. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
  9173. $as_echo "$lt_cv_prog_compiler__b" >&6; }
  9174. if test x"$lt_cv_prog_compiler__b" = xyes; then
  9175. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  9176. else
  9177. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  9178. fi
  9179. ;;
  9180. esac
  9181. fi
  9182. if test "$with_gnu_ld" = no; then
  9183. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  9184. hardcode_libdir_separator=:
  9185. case $host_cpu in
  9186. hppa*64*|ia64*)
  9187. hardcode_direct=no
  9188. hardcode_shlibpath_var=no
  9189. ;;
  9190. *)
  9191. hardcode_direct=yes
  9192. hardcode_direct_absolute=yes
  9193. export_dynamic_flag_spec='${wl}-E'
  9194. # hardcode_minus_L: Not really in the search PATH,
  9195. # but as the default location of the library.
  9196. hardcode_minus_L=yes
  9197. ;;
  9198. esac
  9199. fi
  9200. ;;
  9201. irix5* | irix6* | nonstopux*)
  9202. if test "$GCC" = yes; then
  9203. 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'
  9204. # Try to use the -exported_symbol ld option, if it does not
  9205. # work, assume that -exports_file does not work either and
  9206. # implicitly export all symbols.
  9207. # This should be the same for all languages, so no per-tag cache variable.
  9208. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
  9209. $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
  9210. if ${lt_cv_irix_exported_symbol+:} false; then :
  9211. $as_echo_n "(cached) " >&6
  9212. else
  9213. save_LDFLAGS="$LDFLAGS"
  9214. LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
  9215. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9216. /* end confdefs.h. */
  9217. int foo (void) { return 0; }
  9218. _ACEOF
  9219. if ac_fn_c_try_link "$LINENO"; then :
  9220. lt_cv_irix_exported_symbol=yes
  9221. else
  9222. lt_cv_irix_exported_symbol=no
  9223. fi
  9224. rm -f core conftest.err conftest.$ac_objext \
  9225. conftest$ac_exeext conftest.$ac_ext
  9226. LDFLAGS="$save_LDFLAGS"
  9227. fi
  9228. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
  9229. $as_echo "$lt_cv_irix_exported_symbol" >&6; }
  9230. if test "$lt_cv_irix_exported_symbol" = yes; then
  9231. 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'
  9232. fi
  9233. else
  9234. 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'
  9235. 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'
  9236. fi
  9237. archive_cmds_need_lc='no'
  9238. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  9239. hardcode_libdir_separator=:
  9240. inherit_rpath=yes
  9241. link_all_deplibs=yes
  9242. ;;
  9243. netbsd*)
  9244. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  9245. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  9246. else
  9247. archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  9248. fi
  9249. hardcode_libdir_flag_spec='-R$libdir'
  9250. hardcode_direct=yes
  9251. hardcode_shlibpath_var=no
  9252. ;;
  9253. newsos6)
  9254. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9255. hardcode_direct=yes
  9256. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  9257. hardcode_libdir_separator=:
  9258. hardcode_shlibpath_var=no
  9259. ;;
  9260. *nto* | *qnx*)
  9261. ;;
  9262. openbsd*)
  9263. if test -f /usr/libexec/ld.so; then
  9264. hardcode_direct=yes
  9265. hardcode_shlibpath_var=no
  9266. hardcode_direct_absolute=yes
  9267. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  9268. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  9269. archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  9270. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  9271. export_dynamic_flag_spec='${wl}-E'
  9272. else
  9273. case $host_os in
  9274. openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  9275. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  9276. hardcode_libdir_flag_spec='-R$libdir'
  9277. ;;
  9278. *)
  9279. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  9280. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  9281. ;;
  9282. esac
  9283. fi
  9284. else
  9285. ld_shlibs=no
  9286. fi
  9287. ;;
  9288. os2*)
  9289. hardcode_libdir_flag_spec='-L$libdir'
  9290. hardcode_minus_L=yes
  9291. allow_undefined_flag=unsupported
  9292. 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'
  9293. old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  9294. ;;
  9295. osf3*)
  9296. if test "$GCC" = yes; then
  9297. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  9298. 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'
  9299. else
  9300. allow_undefined_flag=' -expect_unresolved \*'
  9301. 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'
  9302. fi
  9303. archive_cmds_need_lc='no'
  9304. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  9305. hardcode_libdir_separator=:
  9306. ;;
  9307. osf4* | osf5*) # as osf3* with the addition of -msym flag
  9308. if test "$GCC" = yes; then
  9309. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  9310. 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'
  9311. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  9312. else
  9313. allow_undefined_flag=' -expect_unresolved \*'
  9314. 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'
  9315. 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~
  9316. $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'
  9317. # Both c and cxx compiler support -rpath directly
  9318. hardcode_libdir_flag_spec='-rpath $libdir'
  9319. fi
  9320. archive_cmds_need_lc='no'
  9321. hardcode_libdir_separator=:
  9322. ;;
  9323. solaris*)
  9324. no_undefined_flag=' -z defs'
  9325. if test "$GCC" = yes; then
  9326. wlarc='${wl}'
  9327. archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  9328. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  9329. $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'
  9330. else
  9331. case `$CC -V 2>&1` in
  9332. *"Compilers 5.0"*)
  9333. wlarc=''
  9334. archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9335. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  9336. $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
  9337. ;;
  9338. *)
  9339. wlarc='${wl}'
  9340. archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
  9341. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  9342. $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  9343. ;;
  9344. esac
  9345. fi
  9346. hardcode_libdir_flag_spec='-R$libdir'
  9347. hardcode_shlibpath_var=no
  9348. case $host_os in
  9349. solaris2.[0-5] | solaris2.[0-5].*) ;;
  9350. *)
  9351. # The compiler driver will combine and reorder linker options,
  9352. # but understands `-z linker_flag'. GCC discards it without `$wl',
  9353. # but is careful enough not to reorder.
  9354. # Supported since Solaris 2.6 (maybe 2.5.1?)
  9355. if test "$GCC" = yes; then
  9356. whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  9357. else
  9358. whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
  9359. fi
  9360. ;;
  9361. esac
  9362. link_all_deplibs=yes
  9363. ;;
  9364. sunos4*)
  9365. if test "x$host_vendor" = xsequent; then
  9366. # Use $CC to link under sequent, because it throws in some extra .o
  9367. # files that make .init and .fini sections work.
  9368. archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  9369. else
  9370. archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  9371. fi
  9372. hardcode_libdir_flag_spec='-L$libdir'
  9373. hardcode_direct=yes
  9374. hardcode_minus_L=yes
  9375. hardcode_shlibpath_var=no
  9376. ;;
  9377. sysv4)
  9378. case $host_vendor in
  9379. sni)
  9380. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9381. hardcode_direct=yes # is this really true???
  9382. ;;
  9383. siemens)
  9384. ## LD is ld it makes a PLAMLIB
  9385. ## CC just makes a GrossModule.
  9386. archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  9387. reload_cmds='$CC -r -o $output$reload_objs'
  9388. hardcode_direct=no
  9389. ;;
  9390. motorola)
  9391. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9392. hardcode_direct=no #Motorola manual says yes, but my tests say they lie
  9393. ;;
  9394. esac
  9395. runpath_var='LD_RUN_PATH'
  9396. hardcode_shlibpath_var=no
  9397. ;;
  9398. sysv4.3*)
  9399. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9400. hardcode_shlibpath_var=no
  9401. export_dynamic_flag_spec='-Bexport'
  9402. ;;
  9403. sysv4*MP*)
  9404. if test -d /usr/nec; then
  9405. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9406. hardcode_shlibpath_var=no
  9407. runpath_var=LD_RUN_PATH
  9408. hardcode_runpath_var=yes
  9409. ld_shlibs=yes
  9410. fi
  9411. ;;
  9412. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  9413. no_undefined_flag='${wl}-z,text'
  9414. archive_cmds_need_lc=no
  9415. hardcode_shlibpath_var=no
  9416. runpath_var='LD_RUN_PATH'
  9417. if test "$GCC" = yes; then
  9418. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9419. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9420. else
  9421. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9422. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9423. fi
  9424. ;;
  9425. sysv5* | sco3.2v5* | sco5v6*)
  9426. # Note: We can NOT use -z defs as we might desire, because we do not
  9427. # link with -lc, and that would cause any symbols used from libc to
  9428. # always be unresolved, which means just about no library would
  9429. # ever link correctly. If we're not using GNU ld we use -z text
  9430. # though, which does catch some bad symbols but isn't as heavy-handed
  9431. # as -z defs.
  9432. no_undefined_flag='${wl}-z,text'
  9433. allow_undefined_flag='${wl}-z,nodefs'
  9434. archive_cmds_need_lc=no
  9435. hardcode_shlibpath_var=no
  9436. hardcode_libdir_flag_spec='${wl}-R,$libdir'
  9437. hardcode_libdir_separator=':'
  9438. link_all_deplibs=yes
  9439. export_dynamic_flag_spec='${wl}-Bexport'
  9440. runpath_var='LD_RUN_PATH'
  9441. if test "$GCC" = yes; then
  9442. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9443. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9444. else
  9445. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9446. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9447. fi
  9448. ;;
  9449. uts4*)
  9450. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9451. hardcode_libdir_flag_spec='-L$libdir'
  9452. hardcode_shlibpath_var=no
  9453. ;;
  9454. *)
  9455. ld_shlibs=no
  9456. ;;
  9457. esac
  9458. if test x$host_vendor = xsni; then
  9459. case $host in
  9460. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  9461. export_dynamic_flag_spec='${wl}-Blargedynsym'
  9462. ;;
  9463. esac
  9464. fi
  9465. fi
  9466. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
  9467. $as_echo "$ld_shlibs" >&6; }
  9468. test "$ld_shlibs" = no && can_build_shared=no
  9469. with_gnu_ld=$with_gnu_ld
  9470. #
  9471. # Do we need to explicitly link libc?
  9472. #
  9473. case "x$archive_cmds_need_lc" in
  9474. x|xyes)
  9475. # Assume -lc should be added
  9476. archive_cmds_need_lc=yes
  9477. if test "$enable_shared" = yes && test "$GCC" = yes; then
  9478. case $archive_cmds in
  9479. *'~'*)
  9480. # FIXME: we may have to deal with multi-command sequences.
  9481. ;;
  9482. '$CC '*)
  9483. # Test whether the compiler implicitly links with -lc since on some
  9484. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  9485. # to ld, don't add -lc before -lgcc.
  9486. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  9487. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  9488. if ${lt_cv_archive_cmds_need_lc+:} false; then :
  9489. $as_echo_n "(cached) " >&6
  9490. else
  9491. $RM conftest*
  9492. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  9493. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  9494. (eval $ac_compile) 2>&5
  9495. ac_status=$?
  9496. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9497. test $ac_status = 0; } 2>conftest.err; then
  9498. soname=conftest
  9499. lib=conftest
  9500. libobjs=conftest.$ac_objext
  9501. deplibs=
  9502. wl=$lt_prog_compiler_wl
  9503. pic_flag=$lt_prog_compiler_pic
  9504. compiler_flags=-v
  9505. linker_flags=-v
  9506. verstring=
  9507. output_objdir=.
  9508. libname=conftest
  9509. lt_save_allow_undefined_flag=$allow_undefined_flag
  9510. allow_undefined_flag=
  9511. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  9512. (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  9513. ac_status=$?
  9514. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9515. test $ac_status = 0; }
  9516. then
  9517. lt_cv_archive_cmds_need_lc=no
  9518. else
  9519. lt_cv_archive_cmds_need_lc=yes
  9520. fi
  9521. allow_undefined_flag=$lt_save_allow_undefined_flag
  9522. else
  9523. cat conftest.err 1>&5
  9524. fi
  9525. $RM conftest*
  9526. fi
  9527. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
  9528. $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
  9529. archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
  9530. ;;
  9531. esac
  9532. fi
  9533. ;;
  9534. esac
  9535. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  9536. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  9537. if test "$GCC" = yes; then
  9538. case $host_os in
  9539. darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
  9540. *) lt_awk_arg="/^libraries:/" ;;
  9541. esac
  9542. case $host_os in
  9543. mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
  9544. *) lt_sed_strip_eq="s,=/,/,g" ;;
  9545. esac
  9546. lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
  9547. case $lt_search_path_spec in
  9548. *\;*)
  9549. # if the path contains ";" then we assume it to be the separator
  9550. # otherwise default to the standard path separator (i.e. ":") - it is
  9551. # assumed that no part of a normal pathname contains ";" but that should
  9552. # okay in the real world where ";" in dirpaths is itself problematic.
  9553. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
  9554. ;;
  9555. *)
  9556. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
  9557. ;;
  9558. esac
  9559. # Ok, now we have the path, separated by spaces, we can step through it
  9560. # and add multilib dir if necessary.
  9561. lt_tmp_lt_search_path_spec=
  9562. lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
  9563. for lt_sys_path in $lt_search_path_spec; do
  9564. if test -d "$lt_sys_path/$lt_multi_os_dir"; then
  9565. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
  9566. else
  9567. test -d "$lt_sys_path" && \
  9568. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
  9569. fi
  9570. done
  9571. lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
  9572. BEGIN {RS=" "; FS="/|\n";} {
  9573. lt_foo="";
  9574. lt_count=0;
  9575. for (lt_i = NF; lt_i > 0; lt_i--) {
  9576. if ($lt_i != "" && $lt_i != ".") {
  9577. if ($lt_i == "..") {
  9578. lt_count++;
  9579. } else {
  9580. if (lt_count == 0) {
  9581. lt_foo="/" $lt_i lt_foo;
  9582. } else {
  9583. lt_count--;
  9584. }
  9585. }
  9586. }
  9587. }
  9588. if (lt_foo != "") { lt_freq[lt_foo]++; }
  9589. if (lt_freq[lt_foo] == 1) { print lt_foo; }
  9590. }'`
  9591. # AWK program above erroneously prepends '/' to C:/dos/paths
  9592. # for these hosts.
  9593. case $host_os in
  9594. mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
  9595. $SED 's,/\([A-Za-z]:\),\1,g'` ;;
  9596. esac
  9597. sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
  9598. else
  9599. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  9600. fi
  9601. library_names_spec=
  9602. libname_spec='lib$name'
  9603. soname_spec=
  9604. shrext_cmds=".so"
  9605. postinstall_cmds=
  9606. postuninstall_cmds=
  9607. finish_cmds=
  9608. finish_eval=
  9609. shlibpath_var=
  9610. shlibpath_overrides_runpath=unknown
  9611. version_type=none
  9612. dynamic_linker="$host_os ld.so"
  9613. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  9614. need_lib_prefix=unknown
  9615. hardcode_into_libs=no
  9616. # when you set need_version to no, make sure it does not cause -set_version
  9617. # flags to be left without arguments
  9618. need_version=unknown
  9619. case $host_os in
  9620. aix3*)
  9621. version_type=linux # correct to gnu/linux during the next big refactor
  9622. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  9623. shlibpath_var=LIBPATH
  9624. # AIX 3 has no versioning support, so we append a major version to the name.
  9625. soname_spec='${libname}${release}${shared_ext}$major'
  9626. ;;
  9627. aix[4-9]*)
  9628. version_type=linux # correct to gnu/linux during the next big refactor
  9629. need_lib_prefix=no
  9630. need_version=no
  9631. hardcode_into_libs=yes
  9632. if test "$host_cpu" = ia64; then
  9633. # AIX 5 supports IA64
  9634. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  9635. shlibpath_var=LD_LIBRARY_PATH
  9636. else
  9637. # With GCC up to 2.95.x, collect2 would create an import file
  9638. # for dependence libraries. The import file would start with
  9639. # the line `#! .'. This would cause the generated library to
  9640. # depend on `.', always an invalid library. This was fixed in
  9641. # development snapshots of GCC prior to 3.0.
  9642. case $host_os in
  9643. aix4 | aix4.[01] | aix4.[01].*)
  9644. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  9645. echo ' yes '
  9646. echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  9647. :
  9648. else
  9649. can_build_shared=no
  9650. fi
  9651. ;;
  9652. esac
  9653. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  9654. # soname into executable. Probably we can add versioning support to
  9655. # collect2, so additional links can be useful in future.
  9656. if test "$aix_use_runtimelinking" = yes; then
  9657. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  9658. # instead of lib<name>.a to let people know that these are not
  9659. # typical AIX shared libraries.
  9660. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9661. else
  9662. # We preserve .a as extension for shared libraries through AIX4.2
  9663. # and later when we are not doing run time linking.
  9664. library_names_spec='${libname}${release}.a $libname.a'
  9665. soname_spec='${libname}${release}${shared_ext}$major'
  9666. fi
  9667. shlibpath_var=LIBPATH
  9668. fi
  9669. ;;
  9670. amigaos*)
  9671. case $host_cpu in
  9672. powerpc)
  9673. # Since July 2007 AmigaOS4 officially supports .so libraries.
  9674. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  9675. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9676. ;;
  9677. m68k)
  9678. library_names_spec='$libname.ixlibrary $libname.a'
  9679. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  9680. 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'
  9681. ;;
  9682. esac
  9683. ;;
  9684. beos*)
  9685. library_names_spec='${libname}${shared_ext}'
  9686. dynamic_linker="$host_os ld.so"
  9687. shlibpath_var=LIBRARY_PATH
  9688. ;;
  9689. bsdi[45]*)
  9690. version_type=linux # correct to gnu/linux during the next big refactor
  9691. need_version=no
  9692. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9693. soname_spec='${libname}${release}${shared_ext}$major'
  9694. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  9695. shlibpath_var=LD_LIBRARY_PATH
  9696. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  9697. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  9698. # the default ld.so.conf also contains /usr/contrib/lib and
  9699. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  9700. # libtool to hard-code these into programs
  9701. ;;
  9702. cygwin* | mingw* | pw32* | cegcc*)
  9703. version_type=windows
  9704. shrext_cmds=".dll"
  9705. need_version=no
  9706. need_lib_prefix=no
  9707. case $GCC,$cc_basename in
  9708. yes,*)
  9709. # gcc
  9710. library_names_spec='$libname.dll.a'
  9711. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  9712. postinstall_cmds='base_file=`basename \${file}`~
  9713. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  9714. dldir=$destdir/`dirname \$dlpath`~
  9715. test -d \$dldir || mkdir -p \$dldir~
  9716. $install_prog $dir/$dlname \$dldir/$dlname~
  9717. chmod a+x \$dldir/$dlname~
  9718. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  9719. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  9720. fi'
  9721. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  9722. dlpath=$dir/\$dldll~
  9723. $RM \$dlpath'
  9724. shlibpath_overrides_runpath=yes
  9725. case $host_os in
  9726. cygwin*)
  9727. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  9728. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  9729. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
  9730. ;;
  9731. mingw* | cegcc*)
  9732. # MinGW DLLs use traditional 'lib' prefix
  9733. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  9734. ;;
  9735. pw32*)
  9736. # pw32 DLLs use 'pw' prefix rather than 'lib'
  9737. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  9738. ;;
  9739. esac
  9740. dynamic_linker='Win32 ld.exe'
  9741. ;;
  9742. *,cl*)
  9743. # Native MSVC
  9744. libname_spec='$name'
  9745. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  9746. library_names_spec='${libname}.dll.lib'
  9747. case $build_os in
  9748. mingw*)
  9749. sys_lib_search_path_spec=
  9750. lt_save_ifs=$IFS
  9751. IFS=';'
  9752. for lt_path in $LIB
  9753. do
  9754. IFS=$lt_save_ifs
  9755. # Let DOS variable expansion print the short 8.3 style file name.
  9756. lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
  9757. sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
  9758. done
  9759. IFS=$lt_save_ifs
  9760. # Convert to MSYS style.
  9761. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
  9762. ;;
  9763. cygwin*)
  9764. # Convert to unix form, then to dos form, then back to unix form
  9765. # but this time dos style (no spaces!) so that the unix form looks
  9766. # like /cygdrive/c/PROGRA~1:/cygdr...
  9767. sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
  9768. sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
  9769. sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  9770. ;;
  9771. *)
  9772. sys_lib_search_path_spec="$LIB"
  9773. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  9774. # It is most probably a Windows format PATH.
  9775. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  9776. else
  9777. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  9778. fi
  9779. # FIXME: find the short name or the path components, as spaces are
  9780. # common. (e.g. "Program Files" -> "PROGRA~1")
  9781. ;;
  9782. esac
  9783. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  9784. postinstall_cmds='base_file=`basename \${file}`~
  9785. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  9786. dldir=$destdir/`dirname \$dlpath`~
  9787. test -d \$dldir || mkdir -p \$dldir~
  9788. $install_prog $dir/$dlname \$dldir/$dlname'
  9789. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  9790. dlpath=$dir/\$dldll~
  9791. $RM \$dlpath'
  9792. shlibpath_overrides_runpath=yes
  9793. dynamic_linker='Win32 link.exe'
  9794. ;;
  9795. *)
  9796. # Assume MSVC wrapper
  9797. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  9798. dynamic_linker='Win32 ld.exe'
  9799. ;;
  9800. esac
  9801. # FIXME: first we should search . and the directory the executable is in
  9802. shlibpath_var=PATH
  9803. ;;
  9804. darwin* | rhapsody*)
  9805. dynamic_linker="$host_os dyld"
  9806. version_type=darwin
  9807. need_lib_prefix=no
  9808. need_version=no
  9809. library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  9810. soname_spec='${libname}${release}${major}$shared_ext'
  9811. shlibpath_overrides_runpath=yes
  9812. shlibpath_var=DYLD_LIBRARY_PATH
  9813. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  9814. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
  9815. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  9816. ;;
  9817. dgux*)
  9818. version_type=linux # correct to gnu/linux during the next big refactor
  9819. need_lib_prefix=no
  9820. need_version=no
  9821. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  9822. soname_spec='${libname}${release}${shared_ext}$major'
  9823. shlibpath_var=LD_LIBRARY_PATH
  9824. ;;
  9825. freebsd* | dragonfly*)
  9826. # DragonFly does not have aout. When/if they implement a new
  9827. # versioning mechanism, adjust this.
  9828. if test -x /usr/bin/objformat; then
  9829. objformat=`/usr/bin/objformat`
  9830. else
  9831. case $host_os in
  9832. freebsd[23].*) objformat=aout ;;
  9833. *) objformat=elf ;;
  9834. esac
  9835. fi
  9836. version_type=freebsd-$objformat
  9837. case $version_type in
  9838. freebsd-elf*)
  9839. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  9840. need_version=no
  9841. need_lib_prefix=no
  9842. ;;
  9843. freebsd-*)
  9844. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  9845. need_version=yes
  9846. ;;
  9847. esac
  9848. shlibpath_var=LD_LIBRARY_PATH
  9849. case $host_os in
  9850. freebsd2.*)
  9851. shlibpath_overrides_runpath=yes
  9852. ;;
  9853. freebsd3.[01]* | freebsdelf3.[01]*)
  9854. shlibpath_overrides_runpath=yes
  9855. hardcode_into_libs=yes
  9856. ;;
  9857. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  9858. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  9859. shlibpath_overrides_runpath=no
  9860. hardcode_into_libs=yes
  9861. ;;
  9862. *) # from 4.6 on, and DragonFly
  9863. shlibpath_overrides_runpath=yes
  9864. hardcode_into_libs=yes
  9865. ;;
  9866. esac
  9867. ;;
  9868. gnu*)
  9869. version_type=linux # correct to gnu/linux during the next big refactor
  9870. need_lib_prefix=no
  9871. need_version=no
  9872. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  9873. soname_spec='${libname}${release}${shared_ext}$major'
  9874. shlibpath_var=LD_LIBRARY_PATH
  9875. shlibpath_overrides_runpath=no
  9876. hardcode_into_libs=yes
  9877. ;;
  9878. haiku*)
  9879. version_type=linux # correct to gnu/linux during the next big refactor
  9880. need_lib_prefix=no
  9881. need_version=no
  9882. dynamic_linker="$host_os runtime_loader"
  9883. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  9884. soname_spec='${libname}${release}${shared_ext}$major'
  9885. shlibpath_var=LIBRARY_PATH
  9886. shlibpath_overrides_runpath=yes
  9887. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
  9888. hardcode_into_libs=yes
  9889. ;;
  9890. hpux9* | hpux10* | hpux11*)
  9891. # Give a soname corresponding to the major version so that dld.sl refuses to
  9892. # link against other versions.
  9893. version_type=sunos
  9894. need_lib_prefix=no
  9895. need_version=no
  9896. case $host_cpu in
  9897. ia64*)
  9898. shrext_cmds='.so'
  9899. hardcode_into_libs=yes
  9900. dynamic_linker="$host_os dld.so"
  9901. shlibpath_var=LD_LIBRARY_PATH
  9902. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  9903. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9904. soname_spec='${libname}${release}${shared_ext}$major'
  9905. if test "X$HPUX_IA64_MODE" = X32; then
  9906. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  9907. else
  9908. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  9909. fi
  9910. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  9911. ;;
  9912. hppa*64*)
  9913. shrext_cmds='.sl'
  9914. hardcode_into_libs=yes
  9915. dynamic_linker="$host_os dld.sl"
  9916. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  9917. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  9918. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9919. soname_spec='${libname}${release}${shared_ext}$major'
  9920. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  9921. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  9922. ;;
  9923. *)
  9924. shrext_cmds='.sl'
  9925. dynamic_linker="$host_os dld.sl"
  9926. shlibpath_var=SHLIB_PATH
  9927. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  9928. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9929. soname_spec='${libname}${release}${shared_ext}$major'
  9930. ;;
  9931. esac
  9932. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  9933. postinstall_cmds='chmod 555 $lib'
  9934. # or fails outright, so override atomically:
  9935. install_override_mode=555
  9936. ;;
  9937. interix[3-9]*)
  9938. version_type=linux # correct to gnu/linux during the next big refactor
  9939. need_lib_prefix=no
  9940. need_version=no
  9941. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  9942. soname_spec='${libname}${release}${shared_ext}$major'
  9943. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  9944. shlibpath_var=LD_LIBRARY_PATH
  9945. shlibpath_overrides_runpath=no
  9946. hardcode_into_libs=yes
  9947. ;;
  9948. irix5* | irix6* | nonstopux*)
  9949. case $host_os in
  9950. nonstopux*) version_type=nonstopux ;;
  9951. *)
  9952. if test "$lt_cv_prog_gnu_ld" = yes; then
  9953. version_type=linux # correct to gnu/linux during the next big refactor
  9954. else
  9955. version_type=irix
  9956. fi ;;
  9957. esac
  9958. need_lib_prefix=no
  9959. need_version=no
  9960. soname_spec='${libname}${release}${shared_ext}$major'
  9961. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  9962. case $host_os in
  9963. irix5* | nonstopux*)
  9964. libsuff= shlibsuff=
  9965. ;;
  9966. *)
  9967. case $LD in # libtool.m4 will add one of these switches to LD
  9968. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  9969. libsuff= shlibsuff= libmagic=32-bit;;
  9970. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  9971. libsuff=32 shlibsuff=N32 libmagic=N32;;
  9972. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  9973. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  9974. *) libsuff= shlibsuff= libmagic=never-match;;
  9975. esac
  9976. ;;
  9977. esac
  9978. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  9979. shlibpath_overrides_runpath=no
  9980. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  9981. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  9982. hardcode_into_libs=yes
  9983. ;;
  9984. # No shared lib support for Linux oldld, aout, or coff.
  9985. linux*oldld* | linux*aout* | linux*coff*)
  9986. dynamic_linker=no
  9987. ;;
  9988. # This must be glibc/ELF.
  9989. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  9990. version_type=linux # correct to gnu/linux during the next big refactor
  9991. need_lib_prefix=no
  9992. need_version=no
  9993. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9994. soname_spec='${libname}${release}${shared_ext}$major'
  9995. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  9996. shlibpath_var=LD_LIBRARY_PATH
  9997. shlibpath_overrides_runpath=no
  9998. # Some binutils ld are patched to set DT_RUNPATH
  9999. if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
  10000. $as_echo_n "(cached) " >&6
  10001. else
  10002. lt_cv_shlibpath_overrides_runpath=no
  10003. save_LDFLAGS=$LDFLAGS
  10004. save_libdir=$libdir
  10005. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
  10006. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
  10007. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10008. /* end confdefs.h. */
  10009. int
  10010. main ()
  10011. {
  10012. ;
  10013. return 0;
  10014. }
  10015. _ACEOF
  10016. if ac_fn_c_try_link "$LINENO"; then :
  10017. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  10018. lt_cv_shlibpath_overrides_runpath=yes
  10019. fi
  10020. fi
  10021. rm -f core conftest.err conftest.$ac_objext \
  10022. conftest$ac_exeext conftest.$ac_ext
  10023. LDFLAGS=$save_LDFLAGS
  10024. libdir=$save_libdir
  10025. fi
  10026. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  10027. # This implies no fast_install, which is unacceptable.
  10028. # Some rework will be needed to allow for fast_install
  10029. # before this can be enabled.
  10030. hardcode_into_libs=yes
  10031. # Add ABI-specific directories to the system library path.
  10032. sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
  10033. # Append ld.so.conf contents to the search path
  10034. if test -f /etc/ld.so.conf; then
  10035. 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' ' '`
  10036. sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
  10037. fi
  10038. # We used to test for /lib/ld.so.1 and disable shared libraries on
  10039. # powerpc, because MkLinux only supported shared libraries with the
  10040. # GNU dynamic linker. Since this was broken with cross compilers,
  10041. # most powerpc-linux boxes support dynamic linking these days and
  10042. # people can always --disable-shared, the test was removed, and we
  10043. # assume the GNU/Linux dynamic linker is in use.
  10044. dynamic_linker='GNU/Linux ld.so'
  10045. ;;
  10046. netbsd*)
  10047. version_type=sunos
  10048. need_lib_prefix=no
  10049. need_version=no
  10050. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  10051. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  10052. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  10053. dynamic_linker='NetBSD (a.out) ld.so'
  10054. else
  10055. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  10056. soname_spec='${libname}${release}${shared_ext}$major'
  10057. dynamic_linker='NetBSD ld.elf_so'
  10058. fi
  10059. shlibpath_var=LD_LIBRARY_PATH
  10060. shlibpath_overrides_runpath=yes
  10061. hardcode_into_libs=yes
  10062. ;;
  10063. newsos6)
  10064. version_type=linux # correct to gnu/linux during the next big refactor
  10065. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10066. shlibpath_var=LD_LIBRARY_PATH
  10067. shlibpath_overrides_runpath=yes
  10068. ;;
  10069. *nto* | *qnx*)
  10070. version_type=qnx
  10071. need_lib_prefix=no
  10072. need_version=no
  10073. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10074. soname_spec='${libname}${release}${shared_ext}$major'
  10075. shlibpath_var=LD_LIBRARY_PATH
  10076. shlibpath_overrides_runpath=no
  10077. hardcode_into_libs=yes
  10078. dynamic_linker='ldqnx.so'
  10079. ;;
  10080. openbsd*)
  10081. version_type=sunos
  10082. sys_lib_dlsearch_path_spec="/usr/lib"
  10083. need_lib_prefix=no
  10084. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  10085. case $host_os in
  10086. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  10087. *) need_version=no ;;
  10088. esac
  10089. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  10090. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  10091. shlibpath_var=LD_LIBRARY_PATH
  10092. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  10093. case $host_os in
  10094. openbsd2.[89] | openbsd2.[89].*)
  10095. shlibpath_overrides_runpath=no
  10096. ;;
  10097. *)
  10098. shlibpath_overrides_runpath=yes
  10099. ;;
  10100. esac
  10101. else
  10102. shlibpath_overrides_runpath=yes
  10103. fi
  10104. ;;
  10105. os2*)
  10106. libname_spec='$name'
  10107. shrext_cmds=".dll"
  10108. need_lib_prefix=no
  10109. library_names_spec='$libname${shared_ext} $libname.a'
  10110. dynamic_linker='OS/2 ld.exe'
  10111. shlibpath_var=LIBPATH
  10112. ;;
  10113. osf3* | osf4* | osf5*)
  10114. version_type=osf
  10115. need_lib_prefix=no
  10116. need_version=no
  10117. soname_spec='${libname}${release}${shared_ext}$major'
  10118. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10119. shlibpath_var=LD_LIBRARY_PATH
  10120. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  10121. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  10122. ;;
  10123. rdos*)
  10124. dynamic_linker=no
  10125. ;;
  10126. solaris*)
  10127. version_type=linux # correct to gnu/linux during the next big refactor
  10128. need_lib_prefix=no
  10129. need_version=no
  10130. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10131. soname_spec='${libname}${release}${shared_ext}$major'
  10132. shlibpath_var=LD_LIBRARY_PATH
  10133. shlibpath_overrides_runpath=yes
  10134. hardcode_into_libs=yes
  10135. # ldd complains unless libraries are executable
  10136. postinstall_cmds='chmod +x $lib'
  10137. ;;
  10138. sunos4*)
  10139. version_type=sunos
  10140. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  10141. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  10142. shlibpath_var=LD_LIBRARY_PATH
  10143. shlibpath_overrides_runpath=yes
  10144. if test "$with_gnu_ld" = yes; then
  10145. need_lib_prefix=no
  10146. fi
  10147. need_version=yes
  10148. ;;
  10149. sysv4 | sysv4.3*)
  10150. version_type=linux # correct to gnu/linux during the next big refactor
  10151. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10152. soname_spec='${libname}${release}${shared_ext}$major'
  10153. shlibpath_var=LD_LIBRARY_PATH
  10154. case $host_vendor in
  10155. sni)
  10156. shlibpath_overrides_runpath=no
  10157. need_lib_prefix=no
  10158. runpath_var=LD_RUN_PATH
  10159. ;;
  10160. siemens)
  10161. need_lib_prefix=no
  10162. ;;
  10163. motorola)
  10164. need_lib_prefix=no
  10165. need_version=no
  10166. shlibpath_overrides_runpath=no
  10167. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  10168. ;;
  10169. esac
  10170. ;;
  10171. sysv4*MP*)
  10172. if test -d /usr/nec ;then
  10173. version_type=linux # correct to gnu/linux during the next big refactor
  10174. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  10175. soname_spec='$libname${shared_ext}.$major'
  10176. shlibpath_var=LD_LIBRARY_PATH
  10177. fi
  10178. ;;
  10179. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  10180. version_type=freebsd-elf
  10181. need_lib_prefix=no
  10182. need_version=no
  10183. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  10184. soname_spec='${libname}${release}${shared_ext}$major'
  10185. shlibpath_var=LD_LIBRARY_PATH
  10186. shlibpath_overrides_runpath=yes
  10187. hardcode_into_libs=yes
  10188. if test "$with_gnu_ld" = yes; then
  10189. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  10190. else
  10191. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  10192. case $host_os in
  10193. sco3.2v5*)
  10194. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  10195. ;;
  10196. esac
  10197. fi
  10198. sys_lib_dlsearch_path_spec='/usr/lib'
  10199. ;;
  10200. tpf*)
  10201. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  10202. version_type=linux # correct to gnu/linux during the next big refactor
  10203. need_lib_prefix=no
  10204. need_version=no
  10205. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10206. shlibpath_var=LD_LIBRARY_PATH
  10207. shlibpath_overrides_runpath=no
  10208. hardcode_into_libs=yes
  10209. ;;
  10210. uts4*)
  10211. version_type=linux # correct to gnu/linux during the next big refactor
  10212. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10213. soname_spec='${libname}${release}${shared_ext}$major'
  10214. shlibpath_var=LD_LIBRARY_PATH
  10215. ;;
  10216. *)
  10217. dynamic_linker=no
  10218. ;;
  10219. esac
  10220. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  10221. $as_echo "$dynamic_linker" >&6; }
  10222. test "$dynamic_linker" = no && can_build_shared=no
  10223. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  10224. if test "$GCC" = yes; then
  10225. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  10226. fi
  10227. if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  10228. sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  10229. fi
  10230. if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  10231. sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  10232. fi
  10233. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  10234. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  10235. hardcode_action=
  10236. if test -n "$hardcode_libdir_flag_spec" ||
  10237. test -n "$runpath_var" ||
  10238. test "X$hardcode_automatic" = "Xyes" ; then
  10239. # We can hardcode non-existent directories.
  10240. if test "$hardcode_direct" != no &&
  10241. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  10242. # have to relink, otherwise we might link with an installed library
  10243. # when we should be linking with a yet-to-be-installed one
  10244. ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
  10245. test "$hardcode_minus_L" != no; then
  10246. # Linking always hardcodes the temporary library directory.
  10247. hardcode_action=relink
  10248. else
  10249. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  10250. hardcode_action=immediate
  10251. fi
  10252. else
  10253. # We cannot hardcode anything, or else we can only hardcode existing
  10254. # directories.
  10255. hardcode_action=unsupported
  10256. fi
  10257. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
  10258. $as_echo "$hardcode_action" >&6; }
  10259. if test "$hardcode_action" = relink ||
  10260. test "$inherit_rpath" = yes; then
  10261. # Fast installation is not supported
  10262. enable_fast_install=no
  10263. elif test "$shlibpath_overrides_runpath" = yes ||
  10264. test "$enable_shared" = no; then
  10265. # Fast installation is not necessary
  10266. enable_fast_install=needless
  10267. fi
  10268. if test "x$enable_dlopen" != xyes; then
  10269. enable_dlopen=unknown
  10270. enable_dlopen_self=unknown
  10271. enable_dlopen_self_static=unknown
  10272. else
  10273. lt_cv_dlopen=no
  10274. lt_cv_dlopen_libs=
  10275. case $host_os in
  10276. beos*)
  10277. lt_cv_dlopen="load_add_on"
  10278. lt_cv_dlopen_libs=
  10279. lt_cv_dlopen_self=yes
  10280. ;;
  10281. mingw* | pw32* | cegcc*)
  10282. lt_cv_dlopen="LoadLibrary"
  10283. lt_cv_dlopen_libs=
  10284. ;;
  10285. cygwin*)
  10286. lt_cv_dlopen="dlopen"
  10287. lt_cv_dlopen_libs=
  10288. ;;
  10289. darwin*)
  10290. # if libdl is installed we need to link against it
  10291. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  10292. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  10293. if ${ac_cv_lib_dl_dlopen+:} false; then :
  10294. $as_echo_n "(cached) " >&6
  10295. else
  10296. ac_check_lib_save_LIBS=$LIBS
  10297. LIBS="-ldl $LIBS"
  10298. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10299. /* end confdefs.h. */
  10300. /* Override any GCC internal prototype to avoid an error.
  10301. Use char because int might match the return type of a GCC
  10302. builtin and then its argument prototype would still apply. */
  10303. #ifdef __cplusplus
  10304. extern "C"
  10305. #endif
  10306. char dlopen ();
  10307. int
  10308. main ()
  10309. {
  10310. return dlopen ();
  10311. ;
  10312. return 0;
  10313. }
  10314. _ACEOF
  10315. if ac_fn_c_try_link "$LINENO"; then :
  10316. ac_cv_lib_dl_dlopen=yes
  10317. else
  10318. ac_cv_lib_dl_dlopen=no
  10319. fi
  10320. rm -f core conftest.err conftest.$ac_objext \
  10321. conftest$ac_exeext conftest.$ac_ext
  10322. LIBS=$ac_check_lib_save_LIBS
  10323. fi
  10324. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  10325. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  10326. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  10327. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  10328. else
  10329. lt_cv_dlopen="dyld"
  10330. lt_cv_dlopen_libs=
  10331. lt_cv_dlopen_self=yes
  10332. fi
  10333. ;;
  10334. *)
  10335. ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
  10336. if test "x$ac_cv_func_shl_load" = xyes; then :
  10337. lt_cv_dlopen="shl_load"
  10338. else
  10339. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
  10340. $as_echo_n "checking for shl_load in -ldld... " >&6; }
  10341. if ${ac_cv_lib_dld_shl_load+:} false; then :
  10342. $as_echo_n "(cached) " >&6
  10343. else
  10344. ac_check_lib_save_LIBS=$LIBS
  10345. LIBS="-ldld $LIBS"
  10346. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10347. /* end confdefs.h. */
  10348. /* Override any GCC internal prototype to avoid an error.
  10349. Use char because int might match the return type of a GCC
  10350. builtin and then its argument prototype would still apply. */
  10351. #ifdef __cplusplus
  10352. extern "C"
  10353. #endif
  10354. char shl_load ();
  10355. int
  10356. main ()
  10357. {
  10358. return shl_load ();
  10359. ;
  10360. return 0;
  10361. }
  10362. _ACEOF
  10363. if ac_fn_c_try_link "$LINENO"; then :
  10364. ac_cv_lib_dld_shl_load=yes
  10365. else
  10366. ac_cv_lib_dld_shl_load=no
  10367. fi
  10368. rm -f core conftest.err conftest.$ac_objext \
  10369. conftest$ac_exeext conftest.$ac_ext
  10370. LIBS=$ac_check_lib_save_LIBS
  10371. fi
  10372. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
  10373. $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
  10374. if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
  10375. lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
  10376. else
  10377. ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
  10378. if test "x$ac_cv_func_dlopen" = xyes; then :
  10379. lt_cv_dlopen="dlopen"
  10380. else
  10381. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  10382. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  10383. if ${ac_cv_lib_dl_dlopen+:} false; then :
  10384. $as_echo_n "(cached) " >&6
  10385. else
  10386. ac_check_lib_save_LIBS=$LIBS
  10387. LIBS="-ldl $LIBS"
  10388. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10389. /* end confdefs.h. */
  10390. /* Override any GCC internal prototype to avoid an error.
  10391. Use char because int might match the return type of a GCC
  10392. builtin and then its argument prototype would still apply. */
  10393. #ifdef __cplusplus
  10394. extern "C"
  10395. #endif
  10396. char dlopen ();
  10397. int
  10398. main ()
  10399. {
  10400. return dlopen ();
  10401. ;
  10402. return 0;
  10403. }
  10404. _ACEOF
  10405. if ac_fn_c_try_link "$LINENO"; then :
  10406. ac_cv_lib_dl_dlopen=yes
  10407. else
  10408. ac_cv_lib_dl_dlopen=no
  10409. fi
  10410. rm -f core conftest.err conftest.$ac_objext \
  10411. conftest$ac_exeext conftest.$ac_ext
  10412. LIBS=$ac_check_lib_save_LIBS
  10413. fi
  10414. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  10415. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  10416. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  10417. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  10418. else
  10419. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
  10420. $as_echo_n "checking for dlopen in -lsvld... " >&6; }
  10421. if ${ac_cv_lib_svld_dlopen+:} false; then :
  10422. $as_echo_n "(cached) " >&6
  10423. else
  10424. ac_check_lib_save_LIBS=$LIBS
  10425. LIBS="-lsvld $LIBS"
  10426. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10427. /* end confdefs.h. */
  10428. /* Override any GCC internal prototype to avoid an error.
  10429. Use char because int might match the return type of a GCC
  10430. builtin and then its argument prototype would still apply. */
  10431. #ifdef __cplusplus
  10432. extern "C"
  10433. #endif
  10434. char dlopen ();
  10435. int
  10436. main ()
  10437. {
  10438. return dlopen ();
  10439. ;
  10440. return 0;
  10441. }
  10442. _ACEOF
  10443. if ac_fn_c_try_link "$LINENO"; then :
  10444. ac_cv_lib_svld_dlopen=yes
  10445. else
  10446. ac_cv_lib_svld_dlopen=no
  10447. fi
  10448. rm -f core conftest.err conftest.$ac_objext \
  10449. conftest$ac_exeext conftest.$ac_ext
  10450. LIBS=$ac_check_lib_save_LIBS
  10451. fi
  10452. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
  10453. $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
  10454. if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
  10455. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
  10456. else
  10457. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
  10458. $as_echo_n "checking for dld_link in -ldld... " >&6; }
  10459. if ${ac_cv_lib_dld_dld_link+:} false; then :
  10460. $as_echo_n "(cached) " >&6
  10461. else
  10462. ac_check_lib_save_LIBS=$LIBS
  10463. LIBS="-ldld $LIBS"
  10464. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10465. /* end confdefs.h. */
  10466. /* Override any GCC internal prototype to avoid an error.
  10467. Use char because int might match the return type of a GCC
  10468. builtin and then its argument prototype would still apply. */
  10469. #ifdef __cplusplus
  10470. extern "C"
  10471. #endif
  10472. char dld_link ();
  10473. int
  10474. main ()
  10475. {
  10476. return dld_link ();
  10477. ;
  10478. return 0;
  10479. }
  10480. _ACEOF
  10481. if ac_fn_c_try_link "$LINENO"; then :
  10482. ac_cv_lib_dld_dld_link=yes
  10483. else
  10484. ac_cv_lib_dld_dld_link=no
  10485. fi
  10486. rm -f core conftest.err conftest.$ac_objext \
  10487. conftest$ac_exeext conftest.$ac_ext
  10488. LIBS=$ac_check_lib_save_LIBS
  10489. fi
  10490. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
  10491. $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
  10492. if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
  10493. lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
  10494. fi
  10495. fi
  10496. fi
  10497. fi
  10498. fi
  10499. fi
  10500. ;;
  10501. esac
  10502. if test "x$lt_cv_dlopen" != xno; then
  10503. enable_dlopen=yes
  10504. else
  10505. enable_dlopen=no
  10506. fi
  10507. case $lt_cv_dlopen in
  10508. dlopen)
  10509. save_CPPFLAGS="$CPPFLAGS"
  10510. test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  10511. save_LDFLAGS="$LDFLAGS"
  10512. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  10513. save_LIBS="$LIBS"
  10514. LIBS="$lt_cv_dlopen_libs $LIBS"
  10515. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
  10516. $as_echo_n "checking whether a program can dlopen itself... " >&6; }
  10517. if ${lt_cv_dlopen_self+:} false; then :
  10518. $as_echo_n "(cached) " >&6
  10519. else
  10520. if test "$cross_compiling" = yes; then :
  10521. lt_cv_dlopen_self=cross
  10522. else
  10523. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  10524. lt_status=$lt_dlunknown
  10525. cat > conftest.$ac_ext <<_LT_EOF
  10526. #line $LINENO "configure"
  10527. #include "confdefs.h"
  10528. #if HAVE_DLFCN_H
  10529. #include <dlfcn.h>
  10530. #endif
  10531. #include <stdio.h>
  10532. #ifdef RTLD_GLOBAL
  10533. # define LT_DLGLOBAL RTLD_GLOBAL
  10534. #else
  10535. # ifdef DL_GLOBAL
  10536. # define LT_DLGLOBAL DL_GLOBAL
  10537. # else
  10538. # define LT_DLGLOBAL 0
  10539. # endif
  10540. #endif
  10541. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  10542. find out it does not work in some platform. */
  10543. #ifndef LT_DLLAZY_OR_NOW
  10544. # ifdef RTLD_LAZY
  10545. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  10546. # else
  10547. # ifdef DL_LAZY
  10548. # define LT_DLLAZY_OR_NOW DL_LAZY
  10549. # else
  10550. # ifdef RTLD_NOW
  10551. # define LT_DLLAZY_OR_NOW RTLD_NOW
  10552. # else
  10553. # ifdef DL_NOW
  10554. # define LT_DLLAZY_OR_NOW DL_NOW
  10555. # else
  10556. # define LT_DLLAZY_OR_NOW 0
  10557. # endif
  10558. # endif
  10559. # endif
  10560. # endif
  10561. #endif
  10562. /* When -fvisbility=hidden is used, assume the code has been annotated
  10563. correspondingly for the symbols needed. */
  10564. #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  10565. int fnord () __attribute__((visibility("default")));
  10566. #endif
  10567. int fnord () { return 42; }
  10568. int main ()
  10569. {
  10570. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  10571. int status = $lt_dlunknown;
  10572. if (self)
  10573. {
  10574. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  10575. else
  10576. {
  10577. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  10578. else puts (dlerror ());
  10579. }
  10580. /* dlclose (self); */
  10581. }
  10582. else
  10583. puts (dlerror ());
  10584. return status;
  10585. }
  10586. _LT_EOF
  10587. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  10588. (eval $ac_link) 2>&5
  10589. ac_status=$?
  10590. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10591. test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  10592. (./conftest; exit; ) >&5 2>/dev/null
  10593. lt_status=$?
  10594. case x$lt_status in
  10595. x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  10596. x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  10597. x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
  10598. esac
  10599. else :
  10600. # compilation failed
  10601. lt_cv_dlopen_self=no
  10602. fi
  10603. fi
  10604. rm -fr conftest*
  10605. fi
  10606. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
  10607. $as_echo "$lt_cv_dlopen_self" >&6; }
  10608. if test "x$lt_cv_dlopen_self" = xyes; then
  10609. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  10610. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
  10611. $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
  10612. if ${lt_cv_dlopen_self_static+:} false; then :
  10613. $as_echo_n "(cached) " >&6
  10614. else
  10615. if test "$cross_compiling" = yes; then :
  10616. lt_cv_dlopen_self_static=cross
  10617. else
  10618. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  10619. lt_status=$lt_dlunknown
  10620. cat > conftest.$ac_ext <<_LT_EOF
  10621. #line $LINENO "configure"
  10622. #include "confdefs.h"
  10623. #if HAVE_DLFCN_H
  10624. #include <dlfcn.h>
  10625. #endif
  10626. #include <stdio.h>
  10627. #ifdef RTLD_GLOBAL
  10628. # define LT_DLGLOBAL RTLD_GLOBAL
  10629. #else
  10630. # ifdef DL_GLOBAL
  10631. # define LT_DLGLOBAL DL_GLOBAL
  10632. # else
  10633. # define LT_DLGLOBAL 0
  10634. # endif
  10635. #endif
  10636. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  10637. find out it does not work in some platform. */
  10638. #ifndef LT_DLLAZY_OR_NOW
  10639. # ifdef RTLD_LAZY
  10640. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  10641. # else
  10642. # ifdef DL_LAZY
  10643. # define LT_DLLAZY_OR_NOW DL_LAZY
  10644. # else
  10645. # ifdef RTLD_NOW
  10646. # define LT_DLLAZY_OR_NOW RTLD_NOW
  10647. # else
  10648. # ifdef DL_NOW
  10649. # define LT_DLLAZY_OR_NOW DL_NOW
  10650. # else
  10651. # define LT_DLLAZY_OR_NOW 0
  10652. # endif
  10653. # endif
  10654. # endif
  10655. # endif
  10656. #endif
  10657. /* When -fvisbility=hidden is used, assume the code has been annotated
  10658. correspondingly for the symbols needed. */
  10659. #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  10660. int fnord () __attribute__((visibility("default")));
  10661. #endif
  10662. int fnord () { return 42; }
  10663. int main ()
  10664. {
  10665. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  10666. int status = $lt_dlunknown;
  10667. if (self)
  10668. {
  10669. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  10670. else
  10671. {
  10672. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  10673. else puts (dlerror ());
  10674. }
  10675. /* dlclose (self); */
  10676. }
  10677. else
  10678. puts (dlerror ());
  10679. return status;
  10680. }
  10681. _LT_EOF
  10682. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  10683. (eval $ac_link) 2>&5
  10684. ac_status=$?
  10685. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10686. test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  10687. (./conftest; exit; ) >&5 2>/dev/null
  10688. lt_status=$?
  10689. case x$lt_status in
  10690. x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  10691. x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  10692. x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
  10693. esac
  10694. else :
  10695. # compilation failed
  10696. lt_cv_dlopen_self_static=no
  10697. fi
  10698. fi
  10699. rm -fr conftest*
  10700. fi
  10701. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
  10702. $as_echo "$lt_cv_dlopen_self_static" >&6; }
  10703. fi
  10704. CPPFLAGS="$save_CPPFLAGS"
  10705. LDFLAGS="$save_LDFLAGS"
  10706. LIBS="$save_LIBS"
  10707. ;;
  10708. esac
  10709. case $lt_cv_dlopen_self in
  10710. yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  10711. *) enable_dlopen_self=unknown ;;
  10712. esac
  10713. case $lt_cv_dlopen_self_static in
  10714. yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  10715. *) enable_dlopen_self_static=unknown ;;
  10716. esac
  10717. fi
  10718. striplib=
  10719. old_striplib=
  10720. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
  10721. $as_echo_n "checking whether stripping libraries is possible... " >&6; }
  10722. if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
  10723. test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  10724. test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  10725. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  10726. $as_echo "yes" >&6; }
  10727. else
  10728. # FIXME - insert some real tests, host_os isn't really good enough
  10729. case $host_os in
  10730. darwin*)
  10731. if test -n "$STRIP" ; then
  10732. striplib="$STRIP -x"
  10733. old_striplib="$STRIP -S"
  10734. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  10735. $as_echo "yes" >&6; }
  10736. else
  10737. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10738. $as_echo "no" >&6; }
  10739. fi
  10740. ;;
  10741. *)
  10742. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10743. $as_echo "no" >&6; }
  10744. ;;
  10745. esac
  10746. fi
  10747. # Report which library types will actually be built
  10748. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
  10749. $as_echo_n "checking if libtool supports shared libraries... " >&6; }
  10750. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
  10751. $as_echo "$can_build_shared" >&6; }
  10752. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
  10753. $as_echo_n "checking whether to build shared libraries... " >&6; }
  10754. test "$can_build_shared" = "no" && enable_shared=no
  10755. # On AIX, shared libraries and static libraries use the same namespace, and
  10756. # are all built from PIC.
  10757. case $host_os in
  10758. aix3*)
  10759. test "$enable_shared" = yes && enable_static=no
  10760. if test -n "$RANLIB"; then
  10761. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  10762. postinstall_cmds='$RANLIB $lib'
  10763. fi
  10764. ;;
  10765. aix[4-9]*)
  10766. if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  10767. test "$enable_shared" = yes && enable_static=no
  10768. fi
  10769. ;;
  10770. esac
  10771. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
  10772. $as_echo "$enable_shared" >&6; }
  10773. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
  10774. $as_echo_n "checking whether to build static libraries... " >&6; }
  10775. # Make sure either enable_shared or enable_static is yes.
  10776. test "$enable_shared" = yes || enable_static=yes
  10777. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
  10778. $as_echo "$enable_static" >&6; }
  10779. fi
  10780. ac_ext=c
  10781. ac_cpp='$CPP $CPPFLAGS'
  10782. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10783. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10784. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  10785. CC="$lt_save_CC"
  10786. if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
  10787. ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
  10788. (test "X$CXX" != "Xg++"))) ; then
  10789. ac_ext=cpp
  10790. ac_cpp='$CXXCPP $CPPFLAGS'
  10791. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10792. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10793. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  10794. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
  10795. $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
  10796. if test -z "$CXXCPP"; then
  10797. if ${ac_cv_prog_CXXCPP+:} false; then :
  10798. $as_echo_n "(cached) " >&6
  10799. else
  10800. # Double quotes because CXXCPP needs to be expanded
  10801. for CXXCPP in "$CXX -E" "/lib/cpp"
  10802. do
  10803. ac_preproc_ok=false
  10804. for ac_cxx_preproc_warn_flag in '' yes
  10805. do
  10806. # Use a header file that comes with gcc, so configuring glibc
  10807. # with a fresh cross-compiler works.
  10808. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  10809. # <limits.h> exists even on freestanding compilers.
  10810. # On the NeXT, cc -E runs the code through the compiler's parser,
  10811. # not just through cpp. "Syntax error" is here to catch this case.
  10812. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10813. /* end confdefs.h. */
  10814. @%:@ifdef __STDC__
  10815. @%:@ include <limits.h>
  10816. @%:@else
  10817. @%:@ include <assert.h>
  10818. @%:@endif
  10819. Syntax error
  10820. _ACEOF
  10821. if ac_fn_cxx_try_cpp "$LINENO"; then :
  10822. else
  10823. # Broken: fails on valid input.
  10824. continue
  10825. fi
  10826. rm -f conftest.err conftest.i conftest.$ac_ext
  10827. # OK, works on sane cases. Now check whether nonexistent headers
  10828. # can be detected and how.
  10829. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10830. /* end confdefs.h. */
  10831. @%:@include <ac_nonexistent.h>
  10832. _ACEOF
  10833. if ac_fn_cxx_try_cpp "$LINENO"; then :
  10834. # Broken: success on invalid input.
  10835. continue
  10836. else
  10837. # Passes both tests.
  10838. ac_preproc_ok=:
  10839. break
  10840. fi
  10841. rm -f conftest.err conftest.i conftest.$ac_ext
  10842. done
  10843. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  10844. rm -f conftest.i conftest.err conftest.$ac_ext
  10845. if $ac_preproc_ok; then :
  10846. break
  10847. fi
  10848. done
  10849. ac_cv_prog_CXXCPP=$CXXCPP
  10850. fi
  10851. CXXCPP=$ac_cv_prog_CXXCPP
  10852. else
  10853. ac_cv_prog_CXXCPP=$CXXCPP
  10854. fi
  10855. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
  10856. $as_echo "$CXXCPP" >&6; }
  10857. ac_preproc_ok=false
  10858. for ac_cxx_preproc_warn_flag in '' yes
  10859. do
  10860. # Use a header file that comes with gcc, so configuring glibc
  10861. # with a fresh cross-compiler works.
  10862. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  10863. # <limits.h> exists even on freestanding compilers.
  10864. # On the NeXT, cc -E runs the code through the compiler's parser,
  10865. # not just through cpp. "Syntax error" is here to catch this case.
  10866. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10867. /* end confdefs.h. */
  10868. @%:@ifdef __STDC__
  10869. @%:@ include <limits.h>
  10870. @%:@else
  10871. @%:@ include <assert.h>
  10872. @%:@endif
  10873. Syntax error
  10874. _ACEOF
  10875. if ac_fn_cxx_try_cpp "$LINENO"; then :
  10876. else
  10877. # Broken: fails on valid input.
  10878. continue
  10879. fi
  10880. rm -f conftest.err conftest.i conftest.$ac_ext
  10881. # OK, works on sane cases. Now check whether nonexistent headers
  10882. # can be detected and how.
  10883. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10884. /* end confdefs.h. */
  10885. @%:@include <ac_nonexistent.h>
  10886. _ACEOF
  10887. if ac_fn_cxx_try_cpp "$LINENO"; then :
  10888. # Broken: success on invalid input.
  10889. continue
  10890. else
  10891. # Passes both tests.
  10892. ac_preproc_ok=:
  10893. break
  10894. fi
  10895. rm -f conftest.err conftest.i conftest.$ac_ext
  10896. done
  10897. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  10898. rm -f conftest.i conftest.err conftest.$ac_ext
  10899. if $ac_preproc_ok; then :
  10900. else
  10901. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  10902. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  10903. as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
  10904. See \`config.log' for more details" "$LINENO" 5; }
  10905. fi
  10906. ac_ext=c
  10907. ac_cpp='$CPP $CPPFLAGS'
  10908. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10909. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10910. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  10911. else
  10912. _lt_caught_CXX_error=yes
  10913. fi
  10914. ac_ext=cpp
  10915. ac_cpp='$CXXCPP $CPPFLAGS'
  10916. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10917. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10918. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  10919. archive_cmds_need_lc_CXX=no
  10920. allow_undefined_flag_CXX=
  10921. always_export_symbols_CXX=no
  10922. archive_expsym_cmds_CXX=
  10923. compiler_needs_object_CXX=no
  10924. export_dynamic_flag_spec_CXX=
  10925. hardcode_direct_CXX=no
  10926. hardcode_direct_absolute_CXX=no
  10927. hardcode_libdir_flag_spec_CXX=
  10928. hardcode_libdir_separator_CXX=
  10929. hardcode_minus_L_CXX=no
  10930. hardcode_shlibpath_var_CXX=unsupported
  10931. hardcode_automatic_CXX=no
  10932. inherit_rpath_CXX=no
  10933. module_cmds_CXX=
  10934. module_expsym_cmds_CXX=
  10935. link_all_deplibs_CXX=unknown
  10936. old_archive_cmds_CXX=$old_archive_cmds
  10937. reload_flag_CXX=$reload_flag
  10938. reload_cmds_CXX=$reload_cmds
  10939. no_undefined_flag_CXX=
  10940. whole_archive_flag_spec_CXX=
  10941. enable_shared_with_static_runtimes_CXX=no
  10942. # Source file extension for C++ test sources.
  10943. ac_ext=cpp
  10944. # Object file extension for compiled C++ test sources.
  10945. objext=o
  10946. objext_CXX=$objext
  10947. # No sense in running all these tests if we already determined that
  10948. # the CXX compiler isn't working. Some variables (like enable_shared)
  10949. # are currently assumed to apply to all compilers on this platform,
  10950. # and will be corrupted by setting them based on a non-working compiler.
  10951. if test "$_lt_caught_CXX_error" != yes; then
  10952. # Code to be used in simple compile tests
  10953. lt_simple_compile_test_code="int some_variable = 0;"
  10954. # Code to be used in simple link tests
  10955. lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
  10956. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  10957. # If no C compiler was specified, use CC.
  10958. LTCC=${LTCC-"$CC"}
  10959. # If no C compiler flags were specified, use CFLAGS.
  10960. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  10961. # Allow CC to be a program name with arguments.
  10962. compiler=$CC
  10963. # save warnings/boilerplate of simple test code
  10964. ac_outfile=conftest.$ac_objext
  10965. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  10966. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  10967. _lt_compiler_boilerplate=`cat conftest.err`
  10968. $RM conftest*
  10969. ac_outfile=conftest.$ac_objext
  10970. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  10971. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  10972. _lt_linker_boilerplate=`cat conftest.err`
  10973. $RM -r conftest*
  10974. # Allow CC to be a program name with arguments.
  10975. lt_save_CC=$CC
  10976. lt_save_CFLAGS=$CFLAGS
  10977. lt_save_LD=$LD
  10978. lt_save_GCC=$GCC
  10979. GCC=$GXX
  10980. lt_save_with_gnu_ld=$with_gnu_ld
  10981. lt_save_path_LD=$lt_cv_path_LD
  10982. if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
  10983. lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
  10984. else
  10985. $as_unset lt_cv_prog_gnu_ld
  10986. fi
  10987. if test -n "${lt_cv_path_LDCXX+set}"; then
  10988. lt_cv_path_LD=$lt_cv_path_LDCXX
  10989. else
  10990. $as_unset lt_cv_path_LD
  10991. fi
  10992. test -z "${LDCXX+set}" || LD=$LDCXX
  10993. CC=${CXX-"c++"}
  10994. CFLAGS=$CXXFLAGS
  10995. compiler=$CC
  10996. compiler_CXX=$CC
  10997. for cc_temp in $compiler""; do
  10998. case $cc_temp in
  10999. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  11000. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  11001. \-*) ;;
  11002. *) break;;
  11003. esac
  11004. done
  11005. cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  11006. if test -n "$compiler"; then
  11007. # We don't want -fno-exception when compiling C++ code, so set the
  11008. # no_builtin_flag separately
  11009. if test "$GXX" = yes; then
  11010. lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
  11011. else
  11012. lt_prog_compiler_no_builtin_flag_CXX=
  11013. fi
  11014. if test "$GXX" = yes; then
  11015. # Set up default GNU C++ configuration
  11016. @%:@ Check whether --with-gnu-ld was given.
  11017. if test "${with_gnu_ld+set}" = set; then :
  11018. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  11019. else
  11020. with_gnu_ld=no
  11021. fi
  11022. ac_prog=ld
  11023. if test "$GCC" = yes; then
  11024. # Check if gcc -print-prog-name=ld gives a path.
  11025. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  11026. $as_echo_n "checking for ld used by $CC... " >&6; }
  11027. case $host in
  11028. *-*-mingw*)
  11029. # gcc leaves a trailing carriage return which upsets mingw
  11030. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  11031. *)
  11032. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  11033. esac
  11034. case $ac_prog in
  11035. # Accept absolute paths.
  11036. [\\/]* | ?:[\\/]*)
  11037. re_direlt='/[^/][^/]*/\.\./'
  11038. # Canonicalize the pathname of ld
  11039. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  11040. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  11041. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  11042. done
  11043. test -z "$LD" && LD="$ac_prog"
  11044. ;;
  11045. "")
  11046. # If it fails, then pretend we aren't using GCC.
  11047. ac_prog=ld
  11048. ;;
  11049. *)
  11050. # If it is relative, then search for the first ld in PATH.
  11051. with_gnu_ld=unknown
  11052. ;;
  11053. esac
  11054. elif test "$with_gnu_ld" = yes; then
  11055. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  11056. $as_echo_n "checking for GNU ld... " >&6; }
  11057. else
  11058. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  11059. $as_echo_n "checking for non-GNU ld... " >&6; }
  11060. fi
  11061. if ${lt_cv_path_LD+:} false; then :
  11062. $as_echo_n "(cached) " >&6
  11063. else
  11064. if test -z "$LD"; then
  11065. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  11066. for ac_dir in $PATH; do
  11067. IFS="$lt_save_ifs"
  11068. test -z "$ac_dir" && ac_dir=.
  11069. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  11070. lt_cv_path_LD="$ac_dir/$ac_prog"
  11071. # Check to see if the program is GNU ld. I'd rather use --version,
  11072. # but apparently some variants of GNU ld only accept -v.
  11073. # Break only if it was the GNU/non-GNU ld that we prefer.
  11074. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  11075. *GNU* | *'with BFD'*)
  11076. test "$with_gnu_ld" != no && break
  11077. ;;
  11078. *)
  11079. test "$with_gnu_ld" != yes && break
  11080. ;;
  11081. esac
  11082. fi
  11083. done
  11084. IFS="$lt_save_ifs"
  11085. else
  11086. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  11087. fi
  11088. fi
  11089. LD="$lt_cv_path_LD"
  11090. if test -n "$LD"; then
  11091. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  11092. $as_echo "$LD" >&6; }
  11093. else
  11094. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11095. $as_echo "no" >&6; }
  11096. fi
  11097. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  11098. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  11099. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  11100. if ${lt_cv_prog_gnu_ld+:} false; then :
  11101. $as_echo_n "(cached) " >&6
  11102. else
  11103. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  11104. case `$LD -v 2>&1 </dev/null` in
  11105. *GNU* | *'with BFD'*)
  11106. lt_cv_prog_gnu_ld=yes
  11107. ;;
  11108. *)
  11109. lt_cv_prog_gnu_ld=no
  11110. ;;
  11111. esac
  11112. fi
  11113. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  11114. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  11115. with_gnu_ld=$lt_cv_prog_gnu_ld
  11116. # Check if GNU C++ uses GNU ld as the underlying linker, since the
  11117. # archiving commands below assume that GNU ld is being used.
  11118. if test "$with_gnu_ld" = yes; then
  11119. archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11120. 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'
  11121. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11122. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11123. # If archive_cmds runs LD, not CC, wlarc should be empty
  11124. # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
  11125. # investigate it a little bit more. (MM)
  11126. wlarc='${wl}'
  11127. # ancient GNU ld didn't support --whole-archive et. al.
  11128. if eval "`$CC -print-prog-name=ld` --help 2>&1" |
  11129. $GREP 'no-whole-archive' > /dev/null; then
  11130. whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  11131. else
  11132. whole_archive_flag_spec_CXX=
  11133. fi
  11134. else
  11135. with_gnu_ld=no
  11136. wlarc=
  11137. # A generic and very simple default shared library creation
  11138. # command for GNU C++ for the case where it uses the native
  11139. # linker, instead of GNU ld. If possible, this setting should
  11140. # overridden to take advantage of the native linker features on
  11141. # the platform it is being used on.
  11142. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  11143. fi
  11144. # Commands to make compiler produce verbose output that lists
  11145. # what "hidden" libraries, object files and flags are used when
  11146. # linking a shared library.
  11147. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  11148. else
  11149. GXX=no
  11150. with_gnu_ld=no
  11151. wlarc=
  11152. fi
  11153. # PORTME: fill in a description of your system's C++ link characteristics
  11154. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  11155. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  11156. ld_shlibs_CXX=yes
  11157. case $host_os in
  11158. aix3*)
  11159. # FIXME: insert proper C++ library support
  11160. ld_shlibs_CXX=no
  11161. ;;
  11162. aix[4-9]*)
  11163. if test "$host_cpu" = ia64; then
  11164. # On IA64, the linker does run time linking by default, so we don't
  11165. # have to do anything special.
  11166. aix_use_runtimelinking=no
  11167. exp_sym_flag='-Bexport'
  11168. no_entry_flag=""
  11169. else
  11170. aix_use_runtimelinking=no
  11171. # Test if we are trying to use run time linking or normal
  11172. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  11173. # need to do runtime linking.
  11174. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  11175. for ld_flag in $LDFLAGS; do
  11176. case $ld_flag in
  11177. *-brtl*)
  11178. aix_use_runtimelinking=yes
  11179. break
  11180. ;;
  11181. esac
  11182. done
  11183. ;;
  11184. esac
  11185. exp_sym_flag='-bexport'
  11186. no_entry_flag='-bnoentry'
  11187. fi
  11188. # When large executables or shared objects are built, AIX ld can
  11189. # have problems creating the table of contents. If linking a library
  11190. # or program results in "error TOC overflow" add -mminimal-toc to
  11191. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  11192. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  11193. archive_cmds_CXX=''
  11194. hardcode_direct_CXX=yes
  11195. hardcode_direct_absolute_CXX=yes
  11196. hardcode_libdir_separator_CXX=':'
  11197. link_all_deplibs_CXX=yes
  11198. file_list_spec_CXX='${wl}-f,'
  11199. if test "$GXX" = yes; then
  11200. case $host_os in aix4.[012]|aix4.[012].*)
  11201. # We only want to do this on AIX 4.2 and lower, the check
  11202. # below for broken collect2 doesn't work under 4.3+
  11203. collect2name=`${CC} -print-prog-name=collect2`
  11204. if test -f "$collect2name" &&
  11205. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  11206. then
  11207. # We have reworked collect2
  11208. :
  11209. else
  11210. # We have old collect2
  11211. hardcode_direct_CXX=unsupported
  11212. # It fails to find uninstalled libraries when the uninstalled
  11213. # path is not listed in the libpath. Setting hardcode_minus_L
  11214. # to unsupported forces relinking
  11215. hardcode_minus_L_CXX=yes
  11216. hardcode_libdir_flag_spec_CXX='-L$libdir'
  11217. hardcode_libdir_separator_CXX=
  11218. fi
  11219. esac
  11220. shared_flag='-shared'
  11221. if test "$aix_use_runtimelinking" = yes; then
  11222. shared_flag="$shared_flag "'${wl}-G'
  11223. fi
  11224. else
  11225. # not using gcc
  11226. if test "$host_cpu" = ia64; then
  11227. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  11228. # chokes on -Wl,-G. The following line is correct:
  11229. shared_flag='-G'
  11230. else
  11231. if test "$aix_use_runtimelinking" = yes; then
  11232. shared_flag='${wl}-G'
  11233. else
  11234. shared_flag='${wl}-bM:SRE'
  11235. fi
  11236. fi
  11237. fi
  11238. export_dynamic_flag_spec_CXX='${wl}-bexpall'
  11239. # It seems that -bexpall does not export symbols beginning with
  11240. # underscore (_), so it is better to generate a list of symbols to
  11241. # export.
  11242. always_export_symbols_CXX=yes
  11243. if test "$aix_use_runtimelinking" = yes; then
  11244. # Warning - without using the other runtime loading flags (-brtl),
  11245. # -berok will link without error, but may produce a broken library.
  11246. allow_undefined_flag_CXX='-berok'
  11247. # Determine the default libpath from the value encoded in an empty
  11248. # executable.
  11249. if test "${lt_cv_aix_libpath+set}" = set; then
  11250. aix_libpath=$lt_cv_aix_libpath
  11251. else
  11252. if ${lt_cv_aix_libpath__CXX+:} false; then :
  11253. $as_echo_n "(cached) " >&6
  11254. else
  11255. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11256. /* end confdefs.h. */
  11257. int
  11258. main ()
  11259. {
  11260. ;
  11261. return 0;
  11262. }
  11263. _ACEOF
  11264. if ac_fn_cxx_try_link "$LINENO"; then :
  11265. lt_aix_libpath_sed='
  11266. /Import File Strings/,/^$/ {
  11267. /^0/ {
  11268. s/^0 *\([^ ]*\) *$/\1/
  11269. p
  11270. }
  11271. }'
  11272. lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  11273. # Check for a 64-bit object if we didn't find anything.
  11274. if test -z "$lt_cv_aix_libpath__CXX"; then
  11275. lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  11276. fi
  11277. fi
  11278. rm -f core conftest.err conftest.$ac_objext \
  11279. conftest$ac_exeext conftest.$ac_ext
  11280. if test -z "$lt_cv_aix_libpath__CXX"; then
  11281. lt_cv_aix_libpath__CXX="/usr/lib:/lib"
  11282. fi
  11283. fi
  11284. aix_libpath=$lt_cv_aix_libpath__CXX
  11285. fi
  11286. hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
  11287. 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"
  11288. else
  11289. if test "$host_cpu" = ia64; then
  11290. hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
  11291. allow_undefined_flag_CXX="-z nodefs"
  11292. 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"
  11293. else
  11294. # Determine the default libpath from the value encoded in an
  11295. # empty executable.
  11296. if test "${lt_cv_aix_libpath+set}" = set; then
  11297. aix_libpath=$lt_cv_aix_libpath
  11298. else
  11299. if ${lt_cv_aix_libpath__CXX+:} false; then :
  11300. $as_echo_n "(cached) " >&6
  11301. else
  11302. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11303. /* end confdefs.h. */
  11304. int
  11305. main ()
  11306. {
  11307. ;
  11308. return 0;
  11309. }
  11310. _ACEOF
  11311. if ac_fn_cxx_try_link "$LINENO"; then :
  11312. lt_aix_libpath_sed='
  11313. /Import File Strings/,/^$/ {
  11314. /^0/ {
  11315. s/^0 *\([^ ]*\) *$/\1/
  11316. p
  11317. }
  11318. }'
  11319. lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  11320. # Check for a 64-bit object if we didn't find anything.
  11321. if test -z "$lt_cv_aix_libpath__CXX"; then
  11322. lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  11323. fi
  11324. fi
  11325. rm -f core conftest.err conftest.$ac_objext \
  11326. conftest$ac_exeext conftest.$ac_ext
  11327. if test -z "$lt_cv_aix_libpath__CXX"; then
  11328. lt_cv_aix_libpath__CXX="/usr/lib:/lib"
  11329. fi
  11330. fi
  11331. aix_libpath=$lt_cv_aix_libpath__CXX
  11332. fi
  11333. hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
  11334. # Warning - without using the other run time loading flags,
  11335. # -berok will link without error, but may produce a broken library.
  11336. no_undefined_flag_CXX=' ${wl}-bernotok'
  11337. allow_undefined_flag_CXX=' ${wl}-berok'
  11338. if test "$with_gnu_ld" = yes; then
  11339. # We only use this code for GNU lds that support --whole-archive.
  11340. whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  11341. else
  11342. # Exported symbols can be pulled into shared objects from archives
  11343. whole_archive_flag_spec_CXX='$convenience'
  11344. fi
  11345. archive_cmds_need_lc_CXX=yes
  11346. # This is similar to how AIX traditionally builds its shared
  11347. # libraries.
  11348. 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'
  11349. fi
  11350. fi
  11351. ;;
  11352. beos*)
  11353. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  11354. allow_undefined_flag_CXX=unsupported
  11355. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  11356. # support --undefined. This deserves some investigation. FIXME
  11357. archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11358. else
  11359. ld_shlibs_CXX=no
  11360. fi
  11361. ;;
  11362. chorus*)
  11363. case $cc_basename in
  11364. *)
  11365. # FIXME: insert proper C++ library support
  11366. ld_shlibs_CXX=no
  11367. ;;
  11368. esac
  11369. ;;
  11370. cygwin* | mingw* | pw32* | cegcc*)
  11371. case $GXX,$cc_basename in
  11372. ,cl* | no,cl*)
  11373. # Native MSVC
  11374. # hardcode_libdir_flag_spec is actually meaningless, as there is
  11375. # no search path for DLLs.
  11376. hardcode_libdir_flag_spec_CXX=' '
  11377. allow_undefined_flag_CXX=unsupported
  11378. always_export_symbols_CXX=yes
  11379. file_list_spec_CXX='@'
  11380. # Tell ltmain to make .lib files, not .a files.
  11381. libext=lib
  11382. # Tell ltmain to make .dll files, not .so files.
  11383. shrext_cmds=".dll"
  11384. # FIXME: Setting linknames here is a bad hack.
  11385. archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
  11386. archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  11387. $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
  11388. else
  11389. $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
  11390. fi~
  11391. $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
  11392. linknames='
  11393. # The linker will not automatically build a static lib if we build a DLL.
  11394. # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
  11395. enable_shared_with_static_runtimes_CXX=yes
  11396. # Don't use ranlib
  11397. old_postinstall_cmds_CXX='chmod 644 $oldlib'
  11398. postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
  11399. lt_tool_outputfile="@TOOL_OUTPUT@"~
  11400. case $lt_outputfile in
  11401. *.exe|*.EXE) ;;
  11402. *)
  11403. lt_outputfile="$lt_outputfile.exe"
  11404. lt_tool_outputfile="$lt_tool_outputfile.exe"
  11405. ;;
  11406. esac~
  11407. func_to_tool_file "$lt_outputfile"~
  11408. if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
  11409. $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
  11410. $RM "$lt_outputfile.manifest";
  11411. fi'
  11412. ;;
  11413. *)
  11414. # g++
  11415. # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
  11416. # as there is no search path for DLLs.
  11417. hardcode_libdir_flag_spec_CXX='-L$libdir'
  11418. export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
  11419. allow_undefined_flag_CXX=unsupported
  11420. always_export_symbols_CXX=no
  11421. enable_shared_with_static_runtimes_CXX=yes
  11422. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  11423. 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'
  11424. # If the export-symbols file already is a .def file (1st line
  11425. # is EXPORTS), use it as is; otherwise, prepend...
  11426. archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  11427. cp $export_symbols $output_objdir/$soname.def;
  11428. else
  11429. echo EXPORTS > $output_objdir/$soname.def;
  11430. cat $export_symbols >> $output_objdir/$soname.def;
  11431. fi~
  11432. $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'
  11433. else
  11434. ld_shlibs_CXX=no
  11435. fi
  11436. ;;
  11437. esac
  11438. ;;
  11439. darwin* | rhapsody*)
  11440. archive_cmds_need_lc_CXX=no
  11441. hardcode_direct_CXX=no
  11442. hardcode_automatic_CXX=yes
  11443. hardcode_shlibpath_var_CXX=unsupported
  11444. if test "$lt_cv_ld_force_load" = "yes"; then
  11445. 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\"`'
  11446. else
  11447. whole_archive_flag_spec_CXX=''
  11448. fi
  11449. link_all_deplibs_CXX=yes
  11450. allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
  11451. case $cc_basename in
  11452. ifort*) _lt_dar_can_shared=yes ;;
  11453. *) _lt_dar_can_shared=$GCC ;;
  11454. esac
  11455. if test "$_lt_dar_can_shared" = "yes"; then
  11456. output_verbose_link_cmd=func_echo_all
  11457. 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}"
  11458. module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  11459. 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}"
  11460. 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}"
  11461. if test "$lt_cv_apple_cc_single_mod" != "yes"; then
  11462. 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}"
  11463. 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}"
  11464. fi
  11465. else
  11466. ld_shlibs_CXX=no
  11467. fi
  11468. ;;
  11469. dgux*)
  11470. case $cc_basename in
  11471. ec++*)
  11472. # FIXME: insert proper C++ library support
  11473. ld_shlibs_CXX=no
  11474. ;;
  11475. ghcx*)
  11476. # Green Hills C++ Compiler
  11477. # FIXME: insert proper C++ library support
  11478. ld_shlibs_CXX=no
  11479. ;;
  11480. *)
  11481. # FIXME: insert proper C++ library support
  11482. ld_shlibs_CXX=no
  11483. ;;
  11484. esac
  11485. ;;
  11486. freebsd2.*)
  11487. # C++ shared libraries reported to be fairly broken before
  11488. # switch to ELF
  11489. ld_shlibs_CXX=no
  11490. ;;
  11491. freebsd-elf*)
  11492. archive_cmds_need_lc_CXX=no
  11493. ;;
  11494. freebsd* | dragonfly*)
  11495. # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
  11496. # conventions
  11497. ld_shlibs_CXX=yes
  11498. ;;
  11499. gnu*)
  11500. ;;
  11501. haiku*)
  11502. archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11503. link_all_deplibs_CXX=yes
  11504. ;;
  11505. hpux9*)
  11506. hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
  11507. hardcode_libdir_separator_CXX=:
  11508. export_dynamic_flag_spec_CXX='${wl}-E'
  11509. hardcode_direct_CXX=yes
  11510. hardcode_minus_L_CXX=yes # Not in the search PATH,
  11511. # but as the default
  11512. # location of the library.
  11513. case $cc_basename in
  11514. CC*)
  11515. # FIXME: insert proper C++ library support
  11516. ld_shlibs_CXX=no
  11517. ;;
  11518. aCC*)
  11519. 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'
  11520. # Commands to make compiler produce verbose output that lists
  11521. # what "hidden" libraries, object files and flags are used when
  11522. # linking a shared library.
  11523. #
  11524. # There doesn't appear to be a way to prevent this compiler from
  11525. # explicitly linking system object files so we need to strip them
  11526. # from the output so that they don't get included in the library
  11527. # dependencies.
  11528. 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"'
  11529. ;;
  11530. *)
  11531. if test "$GXX" = yes; then
  11532. 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'
  11533. else
  11534. # FIXME: insert proper C++ library support
  11535. ld_shlibs_CXX=no
  11536. fi
  11537. ;;
  11538. esac
  11539. ;;
  11540. hpux10*|hpux11*)
  11541. if test $with_gnu_ld = no; then
  11542. hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
  11543. hardcode_libdir_separator_CXX=:
  11544. case $host_cpu in
  11545. hppa*64*|ia64*)
  11546. ;;
  11547. *)
  11548. export_dynamic_flag_spec_CXX='${wl}-E'
  11549. ;;
  11550. esac
  11551. fi
  11552. case $host_cpu in
  11553. hppa*64*|ia64*)
  11554. hardcode_direct_CXX=no
  11555. hardcode_shlibpath_var_CXX=no
  11556. ;;
  11557. *)
  11558. hardcode_direct_CXX=yes
  11559. hardcode_direct_absolute_CXX=yes
  11560. hardcode_minus_L_CXX=yes # Not in the search PATH,
  11561. # but as the default
  11562. # location of the library.
  11563. ;;
  11564. esac
  11565. case $cc_basename in
  11566. CC*)
  11567. # FIXME: insert proper C++ library support
  11568. ld_shlibs_CXX=no
  11569. ;;
  11570. aCC*)
  11571. case $host_cpu in
  11572. hppa*64*)
  11573. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11574. ;;
  11575. ia64*)
  11576. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11577. ;;
  11578. *)
  11579. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11580. ;;
  11581. esac
  11582. # Commands to make compiler produce verbose output that lists
  11583. # what "hidden" libraries, object files and flags are used when
  11584. # linking a shared library.
  11585. #
  11586. # There doesn't appear to be a way to prevent this compiler from
  11587. # explicitly linking system object files so we need to strip them
  11588. # from the output so that they don't get included in the library
  11589. # dependencies.
  11590. 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"'
  11591. ;;
  11592. *)
  11593. if test "$GXX" = yes; then
  11594. if test $with_gnu_ld = no; then
  11595. case $host_cpu in
  11596. hppa*64*)
  11597. archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11598. ;;
  11599. ia64*)
  11600. archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11601. ;;
  11602. *)
  11603. 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'
  11604. ;;
  11605. esac
  11606. fi
  11607. else
  11608. # FIXME: insert proper C++ library support
  11609. ld_shlibs_CXX=no
  11610. fi
  11611. ;;
  11612. esac
  11613. ;;
  11614. interix[3-9]*)
  11615. hardcode_direct_CXX=no
  11616. hardcode_shlibpath_var_CXX=no
  11617. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11618. export_dynamic_flag_spec_CXX='${wl}-E'
  11619. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  11620. # Instead, shared libraries are loaded at an image base (0x10000000 by
  11621. # default) and relocated if they conflict, which is a slow very memory
  11622. # consuming and fragmenting process. To avoid this, we pick a random,
  11623. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  11624. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  11625. 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'
  11626. 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'
  11627. ;;
  11628. irix5* | irix6*)
  11629. case $cc_basename in
  11630. CC*)
  11631. # SGI C++
  11632. 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'
  11633. # Archives containing C++ object files must be created using
  11634. # "CC -ar", where "CC" is the IRIX C++ compiler. This is
  11635. # necessary to make sure instantiated templates are included
  11636. # in the archive.
  11637. old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
  11638. ;;
  11639. *)
  11640. if test "$GXX" = yes; then
  11641. if test "$with_gnu_ld" = no; then
  11642. 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'
  11643. else
  11644. 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'
  11645. fi
  11646. fi
  11647. link_all_deplibs_CXX=yes
  11648. ;;
  11649. esac
  11650. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11651. hardcode_libdir_separator_CXX=:
  11652. inherit_rpath_CXX=yes
  11653. ;;
  11654. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  11655. case $cc_basename in
  11656. KCC*)
  11657. # Kuck and Associates, Inc. (KAI) C++ Compiler
  11658. # KCC will only create a shared library if the output file
  11659. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  11660. # to its proper name (with version) after linking.
  11661. 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'
  11662. 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'
  11663. # Commands to make compiler produce verbose output that lists
  11664. # what "hidden" libraries, object files and flags are used when
  11665. # linking a shared library.
  11666. #
  11667. # There doesn't appear to be a way to prevent this compiler from
  11668. # explicitly linking system object files so we need to strip them
  11669. # from the output so that they don't get included in the library
  11670. # dependencies.
  11671. 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"'
  11672. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11673. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11674. # Archives containing C++ object files must be created using
  11675. # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  11676. old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
  11677. ;;
  11678. icpc* | ecpc* )
  11679. # Intel C++
  11680. with_gnu_ld=yes
  11681. # version 8.0 and above of icpc choke on multiply defined symbols
  11682. # if we add $predep_objects and $postdep_objects, however 7.1 and
  11683. # earlier do not add the objects themselves.
  11684. case `$CC -V 2>&1` in
  11685. *"Version 7."*)
  11686. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11687. 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'
  11688. ;;
  11689. *) # Version 8.0 or newer
  11690. tmp_idyn=
  11691. case $host_cpu in
  11692. ia64*) tmp_idyn=' -i_dynamic';;
  11693. esac
  11694. archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11695. 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'
  11696. ;;
  11697. esac
  11698. archive_cmds_need_lc_CXX=no
  11699. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11700. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11701. whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  11702. ;;
  11703. pgCC* | pgcpp*)
  11704. # Portland Group C++ compiler
  11705. case `$CC -V` in
  11706. *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
  11707. prelink_cmds_CXX='tpldir=Template.dir~
  11708. rm -rf $tpldir~
  11709. $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
  11710. compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
  11711. old_archive_cmds_CXX='tpldir=Template.dir~
  11712. rm -rf $tpldir~
  11713. $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
  11714. $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
  11715. $RANLIB $oldlib'
  11716. archive_cmds_CXX='tpldir=Template.dir~
  11717. rm -rf $tpldir~
  11718. $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  11719. $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  11720. archive_expsym_cmds_CXX='tpldir=Template.dir~
  11721. rm -rf $tpldir~
  11722. $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  11723. $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'
  11724. ;;
  11725. *) # Version 6 and above use weak symbols
  11726. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  11727. 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'
  11728. ;;
  11729. esac
  11730. hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
  11731. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11732. 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'
  11733. ;;
  11734. cxx*)
  11735. # Compaq C++
  11736. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11737. 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'
  11738. runpath_var=LD_RUN_PATH
  11739. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  11740. hardcode_libdir_separator_CXX=:
  11741. # Commands to make compiler produce verbose output that lists
  11742. # what "hidden" libraries, object files and flags are used when
  11743. # linking a shared library.
  11744. #
  11745. # There doesn't appear to be a way to prevent this compiler from
  11746. # explicitly linking system object files so we need to strip them
  11747. # from the output so that they don't get included in the library
  11748. # dependencies.
  11749. 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'
  11750. ;;
  11751. xl* | mpixl* | bgxl*)
  11752. # IBM XL 8.0 on PPC, with GNU ld
  11753. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11754. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11755. archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11756. if test "x$supports_anon_versioning" = xyes; then
  11757. archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
  11758. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  11759. echo "local: *; };" >> $output_objdir/$libname.ver~
  11760. $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  11761. fi
  11762. ;;
  11763. *)
  11764. case `$CC -V 2>&1 | sed 5q` in
  11765. *Sun\ C*)
  11766. # Sun C++ 5.9
  11767. no_undefined_flag_CXX=' -zdefs'
  11768. archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11769. 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'
  11770. hardcode_libdir_flag_spec_CXX='-R$libdir'
  11771. 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'
  11772. compiler_needs_object_CXX=yes
  11773. # Not sure whether something based on
  11774. # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
  11775. # would be better.
  11776. output_verbose_link_cmd='func_echo_all'
  11777. # Archives containing C++ object files must be created using
  11778. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  11779. # necessary to make sure instantiated templates are included
  11780. # in the archive.
  11781. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  11782. ;;
  11783. esac
  11784. ;;
  11785. esac
  11786. ;;
  11787. lynxos*)
  11788. # FIXME: insert proper C++ library support
  11789. ld_shlibs_CXX=no
  11790. ;;
  11791. m88k*)
  11792. # FIXME: insert proper C++ library support
  11793. ld_shlibs_CXX=no
  11794. ;;
  11795. mvs*)
  11796. case $cc_basename in
  11797. cxx*)
  11798. # FIXME: insert proper C++ library support
  11799. ld_shlibs_CXX=no
  11800. ;;
  11801. *)
  11802. # FIXME: insert proper C++ library support
  11803. ld_shlibs_CXX=no
  11804. ;;
  11805. esac
  11806. ;;
  11807. netbsd*)
  11808. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  11809. archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
  11810. wlarc=
  11811. hardcode_libdir_flag_spec_CXX='-R$libdir'
  11812. hardcode_direct_CXX=yes
  11813. hardcode_shlibpath_var_CXX=no
  11814. fi
  11815. # Workaround some broken pre-1.5 toolchains
  11816. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
  11817. ;;
  11818. *nto* | *qnx*)
  11819. ld_shlibs_CXX=yes
  11820. ;;
  11821. openbsd2*)
  11822. # C++ shared libraries are fairly broken
  11823. ld_shlibs_CXX=no
  11824. ;;
  11825. openbsd*)
  11826. if test -f /usr/libexec/ld.so; then
  11827. hardcode_direct_CXX=yes
  11828. hardcode_shlibpath_var_CXX=no
  11829. hardcode_direct_absolute_CXX=yes
  11830. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  11831. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11832. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  11833. archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
  11834. export_dynamic_flag_spec_CXX='${wl}-E'
  11835. whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  11836. fi
  11837. output_verbose_link_cmd=func_echo_all
  11838. else
  11839. ld_shlibs_CXX=no
  11840. fi
  11841. ;;
  11842. osf3* | osf4* | osf5*)
  11843. case $cc_basename in
  11844. KCC*)
  11845. # Kuck and Associates, Inc. (KAI) C++ Compiler
  11846. # KCC will only create a shared library if the output file
  11847. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  11848. # to its proper name (with version) after linking.
  11849. 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'
  11850. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11851. hardcode_libdir_separator_CXX=:
  11852. # Archives containing C++ object files must be created using
  11853. # the KAI C++ compiler.
  11854. case $host in
  11855. osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
  11856. *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
  11857. esac
  11858. ;;
  11859. RCC*)
  11860. # Rational C++ 2.4.1
  11861. # FIXME: insert proper C++ library support
  11862. ld_shlibs_CXX=no
  11863. ;;
  11864. cxx*)
  11865. case $host in
  11866. osf3*)
  11867. allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  11868. 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'
  11869. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11870. ;;
  11871. *)
  11872. allow_undefined_flag_CXX=' -expect_unresolved \*'
  11873. 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'
  11874. archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
  11875. echo "-hidden">> $lib.exp~
  11876. $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~
  11877. $RM $lib.exp'
  11878. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  11879. ;;
  11880. esac
  11881. hardcode_libdir_separator_CXX=:
  11882. # Commands to make compiler produce verbose output that lists
  11883. # what "hidden" libraries, object files and flags are used when
  11884. # linking a shared library.
  11885. #
  11886. # There doesn't appear to be a way to prevent this compiler from
  11887. # explicitly linking system object files so we need to strip them
  11888. # from the output so that they don't get included in the library
  11889. # dependencies.
  11890. 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"'
  11891. ;;
  11892. *)
  11893. if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  11894. allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  11895. case $host in
  11896. osf3*)
  11897. 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'
  11898. ;;
  11899. *)
  11900. 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'
  11901. ;;
  11902. esac
  11903. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11904. hardcode_libdir_separator_CXX=:
  11905. # Commands to make compiler produce verbose output that lists
  11906. # what "hidden" libraries, object files and flags are used when
  11907. # linking a shared library.
  11908. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  11909. else
  11910. # FIXME: insert proper C++ library support
  11911. ld_shlibs_CXX=no
  11912. fi
  11913. ;;
  11914. esac
  11915. ;;
  11916. psos*)
  11917. # FIXME: insert proper C++ library support
  11918. ld_shlibs_CXX=no
  11919. ;;
  11920. sunos4*)
  11921. case $cc_basename in
  11922. CC*)
  11923. # Sun C++ 4.x
  11924. # FIXME: insert proper C++ library support
  11925. ld_shlibs_CXX=no
  11926. ;;
  11927. lcc*)
  11928. # Lucid
  11929. # FIXME: insert proper C++ library support
  11930. ld_shlibs_CXX=no
  11931. ;;
  11932. *)
  11933. # FIXME: insert proper C++ library support
  11934. ld_shlibs_CXX=no
  11935. ;;
  11936. esac
  11937. ;;
  11938. solaris*)
  11939. case $cc_basename in
  11940. CC* | sunCC*)
  11941. # Sun C++ 4.2, 5.x and Centerline C++
  11942. archive_cmds_need_lc_CXX=yes
  11943. no_undefined_flag_CXX=' -zdefs'
  11944. archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11945. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  11946. $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'
  11947. hardcode_libdir_flag_spec_CXX='-R$libdir'
  11948. hardcode_shlibpath_var_CXX=no
  11949. case $host_os in
  11950. solaris2.[0-5] | solaris2.[0-5].*) ;;
  11951. *)
  11952. # The compiler driver will combine and reorder linker options,
  11953. # but understands `-z linker_flag'.
  11954. # Supported since Solaris 2.6 (maybe 2.5.1?)
  11955. whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
  11956. ;;
  11957. esac
  11958. link_all_deplibs_CXX=yes
  11959. output_verbose_link_cmd='func_echo_all'
  11960. # Archives containing C++ object files must be created using
  11961. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  11962. # necessary to make sure instantiated templates are included
  11963. # in the archive.
  11964. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  11965. ;;
  11966. gcx*)
  11967. # Green Hills C++ Compiler
  11968. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  11969. # The C++ compiler must be used to create the archive.
  11970. old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
  11971. ;;
  11972. *)
  11973. # GNU C++ compiler with Solaris linker
  11974. if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  11975. no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
  11976. if $CC --version | $GREP -v '^2\.7' > /dev/null; then
  11977. archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  11978. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  11979. $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  11980. # Commands to make compiler produce verbose output that lists
  11981. # what "hidden" libraries, object files and flags are used when
  11982. # linking a shared library.
  11983. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  11984. else
  11985. # g++ 2.7 appears to require `-G' NOT `-shared' on this
  11986. # platform.
  11987. archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  11988. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  11989. $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  11990. # Commands to make compiler produce verbose output that lists
  11991. # what "hidden" libraries, object files and flags are used when
  11992. # linking a shared library.
  11993. output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  11994. fi
  11995. hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
  11996. case $host_os in
  11997. solaris2.[0-5] | solaris2.[0-5].*) ;;
  11998. *)
  11999. whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  12000. ;;
  12001. esac
  12002. fi
  12003. ;;
  12004. esac
  12005. ;;
  12006. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  12007. no_undefined_flag_CXX='${wl}-z,text'
  12008. archive_cmds_need_lc_CXX=no
  12009. hardcode_shlibpath_var_CXX=no
  12010. runpath_var='LD_RUN_PATH'
  12011. case $cc_basename in
  12012. CC*)
  12013. archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12014. archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12015. ;;
  12016. *)
  12017. archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12018. archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12019. ;;
  12020. esac
  12021. ;;
  12022. sysv5* | sco3.2v5* | sco5v6*)
  12023. # Note: We can NOT use -z defs as we might desire, because we do not
  12024. # link with -lc, and that would cause any symbols used from libc to
  12025. # always be unresolved, which means just about no library would
  12026. # ever link correctly. If we're not using GNU ld we use -z text
  12027. # though, which does catch some bad symbols but isn't as heavy-handed
  12028. # as -z defs.
  12029. no_undefined_flag_CXX='${wl}-z,text'
  12030. allow_undefined_flag_CXX='${wl}-z,nodefs'
  12031. archive_cmds_need_lc_CXX=no
  12032. hardcode_shlibpath_var_CXX=no
  12033. hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
  12034. hardcode_libdir_separator_CXX=':'
  12035. link_all_deplibs_CXX=yes
  12036. export_dynamic_flag_spec_CXX='${wl}-Bexport'
  12037. runpath_var='LD_RUN_PATH'
  12038. case $cc_basename in
  12039. CC*)
  12040. archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12041. archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12042. old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
  12043. '"$old_archive_cmds_CXX"
  12044. reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
  12045. '"$reload_cmds_CXX"
  12046. ;;
  12047. *)
  12048. archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12049. archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12050. ;;
  12051. esac
  12052. ;;
  12053. tandem*)
  12054. case $cc_basename in
  12055. NCC*)
  12056. # NonStop-UX NCC 3.20
  12057. # FIXME: insert proper C++ library support
  12058. ld_shlibs_CXX=no
  12059. ;;
  12060. *)
  12061. # FIXME: insert proper C++ library support
  12062. ld_shlibs_CXX=no
  12063. ;;
  12064. esac
  12065. ;;
  12066. vxworks*)
  12067. # FIXME: insert proper C++ library support
  12068. ld_shlibs_CXX=no
  12069. ;;
  12070. *)
  12071. # FIXME: insert proper C++ library support
  12072. ld_shlibs_CXX=no
  12073. ;;
  12074. esac
  12075. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
  12076. $as_echo "$ld_shlibs_CXX" >&6; }
  12077. test "$ld_shlibs_CXX" = no && can_build_shared=no
  12078. GCC_CXX="$GXX"
  12079. LD_CXX="$LD"
  12080. ## CAVEAT EMPTOR:
  12081. ## There is no encapsulation within the following macros, do not change
  12082. ## the running order or otherwise move them around unless you know exactly
  12083. ## what you are doing...
  12084. # Dependencies to place before and after the object being linked:
  12085. predep_objects_CXX=
  12086. postdep_objects_CXX=
  12087. predeps_CXX=
  12088. postdeps_CXX=
  12089. compiler_lib_search_path_CXX=
  12090. cat > conftest.$ac_ext <<_LT_EOF
  12091. class Foo
  12092. {
  12093. public:
  12094. Foo (void) { a = 0; }
  12095. private:
  12096. int a;
  12097. };
  12098. _LT_EOF
  12099. _lt_libdeps_save_CFLAGS=$CFLAGS
  12100. case "$CC $CFLAGS " in #(
  12101. *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
  12102. *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
  12103. *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
  12104. esac
  12105. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  12106. (eval $ac_compile) 2>&5
  12107. ac_status=$?
  12108. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12109. test $ac_status = 0; }; then
  12110. # Parse the compiler output and extract the necessary
  12111. # objects, libraries and library flags.
  12112. # Sentinel used to keep track of whether or not we are before
  12113. # the conftest object file.
  12114. pre_test_object_deps_done=no
  12115. for p in `eval "$output_verbose_link_cmd"`; do
  12116. case ${prev}${p} in
  12117. -L* | -R* | -l*)
  12118. # Some compilers place space between "-{L,R}" and the path.
  12119. # Remove the space.
  12120. if test $p = "-L" ||
  12121. test $p = "-R"; then
  12122. prev=$p
  12123. continue
  12124. fi
  12125. # Expand the sysroot to ease extracting the directories later.
  12126. if test -z "$prev"; then
  12127. case $p in
  12128. -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
  12129. -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
  12130. -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
  12131. esac
  12132. fi
  12133. case $p in
  12134. =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
  12135. esac
  12136. if test "$pre_test_object_deps_done" = no; then
  12137. case ${prev} in
  12138. -L | -R)
  12139. # Internal compiler library paths should come after those
  12140. # provided the user. The postdeps already come after the
  12141. # user supplied libs so there is no need to process them.
  12142. if test -z "$compiler_lib_search_path_CXX"; then
  12143. compiler_lib_search_path_CXX="${prev}${p}"
  12144. else
  12145. compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
  12146. fi
  12147. ;;
  12148. # The "-l" case would never come before the object being
  12149. # linked, so don't bother handling this case.
  12150. esac
  12151. else
  12152. if test -z "$postdeps_CXX"; then
  12153. postdeps_CXX="${prev}${p}"
  12154. else
  12155. postdeps_CXX="${postdeps_CXX} ${prev}${p}"
  12156. fi
  12157. fi
  12158. prev=
  12159. ;;
  12160. *.lto.$objext) ;; # Ignore GCC LTO objects
  12161. *.$objext)
  12162. # This assumes that the test object file only shows up
  12163. # once in the compiler output.
  12164. if test "$p" = "conftest.$objext"; then
  12165. pre_test_object_deps_done=yes
  12166. continue
  12167. fi
  12168. if test "$pre_test_object_deps_done" = no; then
  12169. if test -z "$predep_objects_CXX"; then
  12170. predep_objects_CXX="$p"
  12171. else
  12172. predep_objects_CXX="$predep_objects_CXX $p"
  12173. fi
  12174. else
  12175. if test -z "$postdep_objects_CXX"; then
  12176. postdep_objects_CXX="$p"
  12177. else
  12178. postdep_objects_CXX="$postdep_objects_CXX $p"
  12179. fi
  12180. fi
  12181. ;;
  12182. *) ;; # Ignore the rest.
  12183. esac
  12184. done
  12185. # Clean up.
  12186. rm -f a.out a.exe
  12187. else
  12188. echo "libtool.m4: error: problem compiling CXX test program"
  12189. fi
  12190. $RM -f confest.$objext
  12191. CFLAGS=$_lt_libdeps_save_CFLAGS
  12192. # PORTME: override above test on systems where it is broken
  12193. case $host_os in
  12194. interix[3-9]*)
  12195. # Interix 3.5 installs completely hosed .la files for C++, so rather than
  12196. # hack all around it, let's just trust "g++" to DTRT.
  12197. predep_objects_CXX=
  12198. postdep_objects_CXX=
  12199. postdeps_CXX=
  12200. ;;
  12201. linux*)
  12202. case `$CC -V 2>&1 | sed 5q` in
  12203. *Sun\ C*)
  12204. # Sun C++ 5.9
  12205. # The more standards-conforming stlport4 library is
  12206. # incompatible with the Cstd library. Avoid specifying
  12207. # it if it's in CXXFLAGS. Ignore libCrun as
  12208. # -library=stlport4 depends on it.
  12209. case " $CXX $CXXFLAGS " in
  12210. *" -library=stlport4 "*)
  12211. solaris_use_stlport4=yes
  12212. ;;
  12213. esac
  12214. if test "$solaris_use_stlport4" != yes; then
  12215. postdeps_CXX='-library=Cstd -library=Crun'
  12216. fi
  12217. ;;
  12218. esac
  12219. ;;
  12220. solaris*)
  12221. case $cc_basename in
  12222. CC* | sunCC*)
  12223. # The more standards-conforming stlport4 library is
  12224. # incompatible with the Cstd library. Avoid specifying
  12225. # it if it's in CXXFLAGS. Ignore libCrun as
  12226. # -library=stlport4 depends on it.
  12227. case " $CXX $CXXFLAGS " in
  12228. *" -library=stlport4 "*)
  12229. solaris_use_stlport4=yes
  12230. ;;
  12231. esac
  12232. # Adding this requires a known-good setup of shared libraries for
  12233. # Sun compiler versions before 5.6, else PIC objects from an old
  12234. # archive will be linked into the output, leading to subtle bugs.
  12235. if test "$solaris_use_stlport4" != yes; then
  12236. postdeps_CXX='-library=Cstd -library=Crun'
  12237. fi
  12238. ;;
  12239. esac
  12240. ;;
  12241. esac
  12242. case " $postdeps_CXX " in
  12243. *" -lc "*) archive_cmds_need_lc_CXX=no ;;
  12244. esac
  12245. compiler_lib_search_dirs_CXX=
  12246. if test -n "${compiler_lib_search_path_CXX}"; then
  12247. compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
  12248. fi
  12249. lt_prog_compiler_wl_CXX=
  12250. lt_prog_compiler_pic_CXX=
  12251. lt_prog_compiler_static_CXX=
  12252. # C++ specific cases for pic, static, wl, etc.
  12253. if test "$GXX" = yes; then
  12254. lt_prog_compiler_wl_CXX='-Wl,'
  12255. lt_prog_compiler_static_CXX='-static'
  12256. case $host_os in
  12257. aix*)
  12258. # All AIX code is PIC.
  12259. if test "$host_cpu" = ia64; then
  12260. # AIX 5 now supports IA64 processor
  12261. lt_prog_compiler_static_CXX='-Bstatic'
  12262. fi
  12263. ;;
  12264. amigaos*)
  12265. case $host_cpu in
  12266. powerpc)
  12267. # see comment about AmigaOS4 .so support
  12268. lt_prog_compiler_pic_CXX='-fPIC'
  12269. ;;
  12270. m68k)
  12271. # FIXME: we need at least 68020 code to build shared libraries, but
  12272. # adding the `-m68020' flag to GCC prevents building anything better,
  12273. # like `-m68040'.
  12274. lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
  12275. ;;
  12276. esac
  12277. ;;
  12278. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  12279. # PIC is the default for these OSes.
  12280. ;;
  12281. mingw* | cygwin* | os2* | pw32* | cegcc*)
  12282. # This hack is so that the source file can tell whether it is being
  12283. # built for inclusion in a dll (and should export symbols for example).
  12284. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  12285. # (--disable-auto-import) libraries
  12286. lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
  12287. ;;
  12288. darwin* | rhapsody*)
  12289. # PIC is the default on this platform
  12290. # Common symbols not allowed in MH_DYLIB files
  12291. lt_prog_compiler_pic_CXX='-fno-common'
  12292. ;;
  12293. *djgpp*)
  12294. # DJGPP does not support shared libraries at all
  12295. lt_prog_compiler_pic_CXX=
  12296. ;;
  12297. haiku*)
  12298. # PIC is the default for Haiku.
  12299. # The "-static" flag exists, but is broken.
  12300. lt_prog_compiler_static_CXX=
  12301. ;;
  12302. interix[3-9]*)
  12303. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  12304. # Instead, we relocate shared libraries at runtime.
  12305. ;;
  12306. sysv4*MP*)
  12307. if test -d /usr/nec; then
  12308. lt_prog_compiler_pic_CXX=-Kconform_pic
  12309. fi
  12310. ;;
  12311. hpux*)
  12312. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  12313. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  12314. # sets the default TLS model and affects inlining.
  12315. case $host_cpu in
  12316. hppa*64*)
  12317. ;;
  12318. *)
  12319. lt_prog_compiler_pic_CXX='-fPIC'
  12320. ;;
  12321. esac
  12322. ;;
  12323. *qnx* | *nto*)
  12324. # QNX uses GNU C++, but need to define -shared option too, otherwise
  12325. # it will coredump.
  12326. lt_prog_compiler_pic_CXX='-fPIC -shared'
  12327. ;;
  12328. *)
  12329. lt_prog_compiler_pic_CXX='-fPIC'
  12330. ;;
  12331. esac
  12332. else
  12333. case $host_os in
  12334. aix[4-9]*)
  12335. # All AIX code is PIC.
  12336. if test "$host_cpu" = ia64; then
  12337. # AIX 5 now supports IA64 processor
  12338. lt_prog_compiler_static_CXX='-Bstatic'
  12339. else
  12340. lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
  12341. fi
  12342. ;;
  12343. chorus*)
  12344. case $cc_basename in
  12345. cxch68*)
  12346. # Green Hills C++ Compiler
  12347. # _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"
  12348. ;;
  12349. esac
  12350. ;;
  12351. mingw* | cygwin* | os2* | pw32* | cegcc*)
  12352. # This hack is so that the source file can tell whether it is being
  12353. # built for inclusion in a dll (and should export symbols for example).
  12354. lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
  12355. ;;
  12356. dgux*)
  12357. case $cc_basename in
  12358. ec++*)
  12359. lt_prog_compiler_pic_CXX='-KPIC'
  12360. ;;
  12361. ghcx*)
  12362. # Green Hills C++ Compiler
  12363. lt_prog_compiler_pic_CXX='-pic'
  12364. ;;
  12365. *)
  12366. ;;
  12367. esac
  12368. ;;
  12369. freebsd* | dragonfly*)
  12370. # FreeBSD uses GNU C++
  12371. ;;
  12372. hpux9* | hpux10* | hpux11*)
  12373. case $cc_basename in
  12374. CC*)
  12375. lt_prog_compiler_wl_CXX='-Wl,'
  12376. lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
  12377. if test "$host_cpu" != ia64; then
  12378. lt_prog_compiler_pic_CXX='+Z'
  12379. fi
  12380. ;;
  12381. aCC*)
  12382. lt_prog_compiler_wl_CXX='-Wl,'
  12383. lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
  12384. case $host_cpu in
  12385. hppa*64*|ia64*)
  12386. # +Z the default
  12387. ;;
  12388. *)
  12389. lt_prog_compiler_pic_CXX='+Z'
  12390. ;;
  12391. esac
  12392. ;;
  12393. *)
  12394. ;;
  12395. esac
  12396. ;;
  12397. interix*)
  12398. # This is c89, which is MS Visual C++ (no shared libs)
  12399. # Anyone wants to do a port?
  12400. ;;
  12401. irix5* | irix6* | nonstopux*)
  12402. case $cc_basename in
  12403. CC*)
  12404. lt_prog_compiler_wl_CXX='-Wl,'
  12405. lt_prog_compiler_static_CXX='-non_shared'
  12406. # CC pic flag -KPIC is the default.
  12407. ;;
  12408. *)
  12409. ;;
  12410. esac
  12411. ;;
  12412. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  12413. case $cc_basename in
  12414. KCC*)
  12415. # KAI C++ Compiler
  12416. lt_prog_compiler_wl_CXX='--backend -Wl,'
  12417. lt_prog_compiler_pic_CXX='-fPIC'
  12418. ;;
  12419. ecpc* )
  12420. # old Intel C++ for x86_64 which still supported -KPIC.
  12421. lt_prog_compiler_wl_CXX='-Wl,'
  12422. lt_prog_compiler_pic_CXX='-KPIC'
  12423. lt_prog_compiler_static_CXX='-static'
  12424. ;;
  12425. icpc* )
  12426. # Intel C++, used to be incompatible with GCC.
  12427. # ICC 10 doesn't accept -KPIC any more.
  12428. lt_prog_compiler_wl_CXX='-Wl,'
  12429. lt_prog_compiler_pic_CXX='-fPIC'
  12430. lt_prog_compiler_static_CXX='-static'
  12431. ;;
  12432. pgCC* | pgcpp*)
  12433. # Portland Group C++ compiler
  12434. lt_prog_compiler_wl_CXX='-Wl,'
  12435. lt_prog_compiler_pic_CXX='-fpic'
  12436. lt_prog_compiler_static_CXX='-Bstatic'
  12437. ;;
  12438. cxx*)
  12439. # Compaq C++
  12440. # Make sure the PIC flag is empty. It appears that all Alpha
  12441. # Linux and Compaq Tru64 Unix objects are PIC.
  12442. lt_prog_compiler_pic_CXX=
  12443. lt_prog_compiler_static_CXX='-non_shared'
  12444. ;;
  12445. xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
  12446. # IBM XL 8.0, 9.0 on PPC and BlueGene
  12447. lt_prog_compiler_wl_CXX='-Wl,'
  12448. lt_prog_compiler_pic_CXX='-qpic'
  12449. lt_prog_compiler_static_CXX='-qstaticlink'
  12450. ;;
  12451. *)
  12452. case `$CC -V 2>&1 | sed 5q` in
  12453. *Sun\ C*)
  12454. # Sun C++ 5.9
  12455. lt_prog_compiler_pic_CXX='-KPIC'
  12456. lt_prog_compiler_static_CXX='-Bstatic'
  12457. lt_prog_compiler_wl_CXX='-Qoption ld '
  12458. ;;
  12459. esac
  12460. ;;
  12461. esac
  12462. ;;
  12463. lynxos*)
  12464. ;;
  12465. m88k*)
  12466. ;;
  12467. mvs*)
  12468. case $cc_basename in
  12469. cxx*)
  12470. lt_prog_compiler_pic_CXX='-W c,exportall'
  12471. ;;
  12472. *)
  12473. ;;
  12474. esac
  12475. ;;
  12476. netbsd*)
  12477. ;;
  12478. *qnx* | *nto*)
  12479. # QNX uses GNU C++, but need to define -shared option too, otherwise
  12480. # it will coredump.
  12481. lt_prog_compiler_pic_CXX='-fPIC -shared'
  12482. ;;
  12483. osf3* | osf4* | osf5*)
  12484. case $cc_basename in
  12485. KCC*)
  12486. lt_prog_compiler_wl_CXX='--backend -Wl,'
  12487. ;;
  12488. RCC*)
  12489. # Rational C++ 2.4.1
  12490. lt_prog_compiler_pic_CXX='-pic'
  12491. ;;
  12492. cxx*)
  12493. # Digital/Compaq C++
  12494. lt_prog_compiler_wl_CXX='-Wl,'
  12495. # Make sure the PIC flag is empty. It appears that all Alpha
  12496. # Linux and Compaq Tru64 Unix objects are PIC.
  12497. lt_prog_compiler_pic_CXX=
  12498. lt_prog_compiler_static_CXX='-non_shared'
  12499. ;;
  12500. *)
  12501. ;;
  12502. esac
  12503. ;;
  12504. psos*)
  12505. ;;
  12506. solaris*)
  12507. case $cc_basename in
  12508. CC* | sunCC*)
  12509. # Sun C++ 4.2, 5.x and Centerline C++
  12510. lt_prog_compiler_pic_CXX='-KPIC'
  12511. lt_prog_compiler_static_CXX='-Bstatic'
  12512. lt_prog_compiler_wl_CXX='-Qoption ld '
  12513. ;;
  12514. gcx*)
  12515. # Green Hills C++ Compiler
  12516. lt_prog_compiler_pic_CXX='-PIC'
  12517. ;;
  12518. *)
  12519. ;;
  12520. esac
  12521. ;;
  12522. sunos4*)
  12523. case $cc_basename in
  12524. CC*)
  12525. # Sun C++ 4.x
  12526. lt_prog_compiler_pic_CXX='-pic'
  12527. lt_prog_compiler_static_CXX='-Bstatic'
  12528. ;;
  12529. lcc*)
  12530. # Lucid
  12531. lt_prog_compiler_pic_CXX='-pic'
  12532. ;;
  12533. *)
  12534. ;;
  12535. esac
  12536. ;;
  12537. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  12538. case $cc_basename in
  12539. CC*)
  12540. lt_prog_compiler_wl_CXX='-Wl,'
  12541. lt_prog_compiler_pic_CXX='-KPIC'
  12542. lt_prog_compiler_static_CXX='-Bstatic'
  12543. ;;
  12544. esac
  12545. ;;
  12546. tandem*)
  12547. case $cc_basename in
  12548. NCC*)
  12549. # NonStop-UX NCC 3.20
  12550. lt_prog_compiler_pic_CXX='-KPIC'
  12551. ;;
  12552. *)
  12553. ;;
  12554. esac
  12555. ;;
  12556. vxworks*)
  12557. ;;
  12558. *)
  12559. lt_prog_compiler_can_build_shared_CXX=no
  12560. ;;
  12561. esac
  12562. fi
  12563. case $host_os in
  12564. # For platforms which do not support PIC, -DPIC is meaningless:
  12565. *djgpp*)
  12566. lt_prog_compiler_pic_CXX=
  12567. ;;
  12568. *)
  12569. lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX@&t@ -DPIC"
  12570. ;;
  12571. esac
  12572. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  12573. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  12574. if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
  12575. $as_echo_n "(cached) " >&6
  12576. else
  12577. lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
  12578. fi
  12579. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
  12580. $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
  12581. lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
  12582. #
  12583. # Check to make sure the PIC flag actually works.
  12584. #
  12585. if test -n "$lt_prog_compiler_pic_CXX"; then
  12586. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
  12587. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
  12588. if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
  12589. $as_echo_n "(cached) " >&6
  12590. else
  12591. lt_cv_prog_compiler_pic_works_CXX=no
  12592. ac_outfile=conftest.$ac_objext
  12593. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12594. lt_compiler_flag="$lt_prog_compiler_pic_CXX@&t@ -DPIC"
  12595. # Insert the option either (1) after the last *FLAGS variable, or
  12596. # (2) before a word containing "conftest.", or (3) at the end.
  12597. # Note that $ac_compile itself does not contain backslashes and begins
  12598. # with a dollar sign (not a hyphen), so the echo should work correctly.
  12599. # The option is referenced via a variable to avoid confusing sed.
  12600. lt_compile=`echo "$ac_compile" | $SED \
  12601. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  12602. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  12603. -e 's:$: $lt_compiler_flag:'`
  12604. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  12605. (eval "$lt_compile" 2>conftest.err)
  12606. ac_status=$?
  12607. cat conftest.err >&5
  12608. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12609. if (exit $ac_status) && test -s "$ac_outfile"; then
  12610. # The compiler can only warn and ignore the option if not recognized
  12611. # So say no if there are warnings other than the usual output.
  12612. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  12613. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  12614. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  12615. lt_cv_prog_compiler_pic_works_CXX=yes
  12616. fi
  12617. fi
  12618. $RM conftest*
  12619. fi
  12620. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
  12621. $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
  12622. if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
  12623. case $lt_prog_compiler_pic_CXX in
  12624. "" | " "*) ;;
  12625. *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
  12626. esac
  12627. else
  12628. lt_prog_compiler_pic_CXX=
  12629. lt_prog_compiler_can_build_shared_CXX=no
  12630. fi
  12631. fi
  12632. #
  12633. # Check to make sure the static flag actually works.
  12634. #
  12635. wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
  12636. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  12637. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  12638. if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
  12639. $as_echo_n "(cached) " >&6
  12640. else
  12641. lt_cv_prog_compiler_static_works_CXX=no
  12642. save_LDFLAGS="$LDFLAGS"
  12643. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  12644. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  12645. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  12646. # The linker can only warn and ignore the option if not recognized
  12647. # So say no if there are warnings
  12648. if test -s conftest.err; then
  12649. # Append any errors to the config.log.
  12650. cat conftest.err 1>&5
  12651. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  12652. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  12653. if diff conftest.exp conftest.er2 >/dev/null; then
  12654. lt_cv_prog_compiler_static_works_CXX=yes
  12655. fi
  12656. else
  12657. lt_cv_prog_compiler_static_works_CXX=yes
  12658. fi
  12659. fi
  12660. $RM -r conftest*
  12661. LDFLAGS="$save_LDFLAGS"
  12662. fi
  12663. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
  12664. $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
  12665. if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
  12666. :
  12667. else
  12668. lt_prog_compiler_static_CXX=
  12669. fi
  12670. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  12671. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  12672. if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
  12673. $as_echo_n "(cached) " >&6
  12674. else
  12675. lt_cv_prog_compiler_c_o_CXX=no
  12676. $RM -r conftest 2>/dev/null
  12677. mkdir conftest
  12678. cd conftest
  12679. mkdir out
  12680. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12681. lt_compiler_flag="-o out/conftest2.$ac_objext"
  12682. # Insert the option either (1) after the last *FLAGS variable, or
  12683. # (2) before a word containing "conftest.", or (3) at the end.
  12684. # Note that $ac_compile itself does not contain backslashes and begins
  12685. # with a dollar sign (not a hyphen), so the echo should work correctly.
  12686. lt_compile=`echo "$ac_compile" | $SED \
  12687. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  12688. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  12689. -e 's:$: $lt_compiler_flag:'`
  12690. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  12691. (eval "$lt_compile" 2>out/conftest.err)
  12692. ac_status=$?
  12693. cat out/conftest.err >&5
  12694. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12695. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  12696. then
  12697. # The compiler can only warn and ignore the option if not recognized
  12698. # So say no if there are warnings
  12699. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  12700. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  12701. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  12702. lt_cv_prog_compiler_c_o_CXX=yes
  12703. fi
  12704. fi
  12705. chmod u+w . 2>&5
  12706. $RM conftest*
  12707. # SGI C++ compiler will create directory out/ii_files/ for
  12708. # template instantiation
  12709. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  12710. $RM out/* && rmdir out
  12711. cd ..
  12712. $RM -r conftest
  12713. $RM conftest*
  12714. fi
  12715. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  12716. $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
  12717. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  12718. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  12719. if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
  12720. $as_echo_n "(cached) " >&6
  12721. else
  12722. lt_cv_prog_compiler_c_o_CXX=no
  12723. $RM -r conftest 2>/dev/null
  12724. mkdir conftest
  12725. cd conftest
  12726. mkdir out
  12727. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12728. lt_compiler_flag="-o out/conftest2.$ac_objext"
  12729. # Insert the option either (1) after the last *FLAGS variable, or
  12730. # (2) before a word containing "conftest.", or (3) at the end.
  12731. # Note that $ac_compile itself does not contain backslashes and begins
  12732. # with a dollar sign (not a hyphen), so the echo should work correctly.
  12733. lt_compile=`echo "$ac_compile" | $SED \
  12734. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  12735. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  12736. -e 's:$: $lt_compiler_flag:'`
  12737. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  12738. (eval "$lt_compile" 2>out/conftest.err)
  12739. ac_status=$?
  12740. cat out/conftest.err >&5
  12741. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12742. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  12743. then
  12744. # The compiler can only warn and ignore the option if not recognized
  12745. # So say no if there are warnings
  12746. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  12747. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  12748. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  12749. lt_cv_prog_compiler_c_o_CXX=yes
  12750. fi
  12751. fi
  12752. chmod u+w . 2>&5
  12753. $RM conftest*
  12754. # SGI C++ compiler will create directory out/ii_files/ for
  12755. # template instantiation
  12756. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  12757. $RM out/* && rmdir out
  12758. cd ..
  12759. $RM -r conftest
  12760. $RM conftest*
  12761. fi
  12762. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  12763. $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
  12764. hard_links="nottested"
  12765. if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
  12766. # do not overwrite the value of need_locks provided by the user
  12767. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  12768. $as_echo_n "checking if we can lock with hard links... " >&6; }
  12769. hard_links=yes
  12770. $RM conftest*
  12771. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  12772. touch conftest.a
  12773. ln conftest.a conftest.b 2>&5 || hard_links=no
  12774. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  12775. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  12776. $as_echo "$hard_links" >&6; }
  12777. if test "$hard_links" = no; then
  12778. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  12779. $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  12780. need_locks=warn
  12781. fi
  12782. else
  12783. need_locks=no
  12784. fi
  12785. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  12786. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  12787. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  12788. exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  12789. case $host_os in
  12790. aix[4-9]*)
  12791. # If we're using GNU nm, then we don't want the "-C" option.
  12792. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  12793. # Also, AIX nm treats weak defined symbols like other global defined
  12794. # symbols, whereas GNU nm marks them as "W".
  12795. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  12796. 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'
  12797. else
  12798. 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'
  12799. fi
  12800. ;;
  12801. pw32*)
  12802. export_symbols_cmds_CXX="$ltdll_cmds"
  12803. ;;
  12804. cygwin* | mingw* | cegcc*)
  12805. case $cc_basename in
  12806. cl*)
  12807. exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
  12808. ;;
  12809. *)
  12810. 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'
  12811. exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
  12812. ;;
  12813. esac
  12814. ;;
  12815. *)
  12816. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  12817. ;;
  12818. esac
  12819. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
  12820. $as_echo "$ld_shlibs_CXX" >&6; }
  12821. test "$ld_shlibs_CXX" = no && can_build_shared=no
  12822. with_gnu_ld_CXX=$with_gnu_ld
  12823. #
  12824. # Do we need to explicitly link libc?
  12825. #
  12826. case "x$archive_cmds_need_lc_CXX" in
  12827. x|xyes)
  12828. # Assume -lc should be added
  12829. archive_cmds_need_lc_CXX=yes
  12830. if test "$enable_shared" = yes && test "$GCC" = yes; then
  12831. case $archive_cmds_CXX in
  12832. *'~'*)
  12833. # FIXME: we may have to deal with multi-command sequences.
  12834. ;;
  12835. '$CC '*)
  12836. # Test whether the compiler implicitly links with -lc since on some
  12837. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  12838. # to ld, don't add -lc before -lgcc.
  12839. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  12840. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  12841. if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
  12842. $as_echo_n "(cached) " >&6
  12843. else
  12844. $RM conftest*
  12845. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12846. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  12847. (eval $ac_compile) 2>&5
  12848. ac_status=$?
  12849. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12850. test $ac_status = 0; } 2>conftest.err; then
  12851. soname=conftest
  12852. lib=conftest
  12853. libobjs=conftest.$ac_objext
  12854. deplibs=
  12855. wl=$lt_prog_compiler_wl_CXX
  12856. pic_flag=$lt_prog_compiler_pic_CXX
  12857. compiler_flags=-v
  12858. linker_flags=-v
  12859. verstring=
  12860. output_objdir=.
  12861. libname=conftest
  12862. lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
  12863. allow_undefined_flag_CXX=
  12864. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  12865. (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  12866. ac_status=$?
  12867. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12868. test $ac_status = 0; }
  12869. then
  12870. lt_cv_archive_cmds_need_lc_CXX=no
  12871. else
  12872. lt_cv_archive_cmds_need_lc_CXX=yes
  12873. fi
  12874. allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
  12875. else
  12876. cat conftest.err 1>&5
  12877. fi
  12878. $RM conftest*
  12879. fi
  12880. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
  12881. $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
  12882. archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
  12883. ;;
  12884. esac
  12885. fi
  12886. ;;
  12887. esac
  12888. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  12889. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  12890. library_names_spec=
  12891. libname_spec='lib$name'
  12892. soname_spec=
  12893. shrext_cmds=".so"
  12894. postinstall_cmds=
  12895. postuninstall_cmds=
  12896. finish_cmds=
  12897. finish_eval=
  12898. shlibpath_var=
  12899. shlibpath_overrides_runpath=unknown
  12900. version_type=none
  12901. dynamic_linker="$host_os ld.so"
  12902. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  12903. need_lib_prefix=unknown
  12904. hardcode_into_libs=no
  12905. # when you set need_version to no, make sure it does not cause -set_version
  12906. # flags to be left without arguments
  12907. need_version=unknown
  12908. case $host_os in
  12909. aix3*)
  12910. version_type=linux # correct to gnu/linux during the next big refactor
  12911. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  12912. shlibpath_var=LIBPATH
  12913. # AIX 3 has no versioning support, so we append a major version to the name.
  12914. soname_spec='${libname}${release}${shared_ext}$major'
  12915. ;;
  12916. aix[4-9]*)
  12917. version_type=linux # correct to gnu/linux during the next big refactor
  12918. need_lib_prefix=no
  12919. need_version=no
  12920. hardcode_into_libs=yes
  12921. if test "$host_cpu" = ia64; then
  12922. # AIX 5 supports IA64
  12923. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  12924. shlibpath_var=LD_LIBRARY_PATH
  12925. else
  12926. # With GCC up to 2.95.x, collect2 would create an import file
  12927. # for dependence libraries. The import file would start with
  12928. # the line `#! .'. This would cause the generated library to
  12929. # depend on `.', always an invalid library. This was fixed in
  12930. # development snapshots of GCC prior to 3.0.
  12931. case $host_os in
  12932. aix4 | aix4.[01] | aix4.[01].*)
  12933. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  12934. echo ' yes '
  12935. echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  12936. :
  12937. else
  12938. can_build_shared=no
  12939. fi
  12940. ;;
  12941. esac
  12942. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  12943. # soname into executable. Probably we can add versioning support to
  12944. # collect2, so additional links can be useful in future.
  12945. if test "$aix_use_runtimelinking" = yes; then
  12946. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  12947. # instead of lib<name>.a to let people know that these are not
  12948. # typical AIX shared libraries.
  12949. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12950. else
  12951. # We preserve .a as extension for shared libraries through AIX4.2
  12952. # and later when we are not doing run time linking.
  12953. library_names_spec='${libname}${release}.a $libname.a'
  12954. soname_spec='${libname}${release}${shared_ext}$major'
  12955. fi
  12956. shlibpath_var=LIBPATH
  12957. fi
  12958. ;;
  12959. amigaos*)
  12960. case $host_cpu in
  12961. powerpc)
  12962. # Since July 2007 AmigaOS4 officially supports .so libraries.
  12963. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  12964. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12965. ;;
  12966. m68k)
  12967. library_names_spec='$libname.ixlibrary $libname.a'
  12968. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  12969. 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'
  12970. ;;
  12971. esac
  12972. ;;
  12973. beos*)
  12974. library_names_spec='${libname}${shared_ext}'
  12975. dynamic_linker="$host_os ld.so"
  12976. shlibpath_var=LIBRARY_PATH
  12977. ;;
  12978. bsdi[45]*)
  12979. version_type=linux # correct to gnu/linux during the next big refactor
  12980. need_version=no
  12981. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12982. soname_spec='${libname}${release}${shared_ext}$major'
  12983. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  12984. shlibpath_var=LD_LIBRARY_PATH
  12985. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  12986. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  12987. # the default ld.so.conf also contains /usr/contrib/lib and
  12988. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  12989. # libtool to hard-code these into programs
  12990. ;;
  12991. cygwin* | mingw* | pw32* | cegcc*)
  12992. version_type=windows
  12993. shrext_cmds=".dll"
  12994. need_version=no
  12995. need_lib_prefix=no
  12996. case $GCC,$cc_basename in
  12997. yes,*)
  12998. # gcc
  12999. library_names_spec='$libname.dll.a'
  13000. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  13001. postinstall_cmds='base_file=`basename \${file}`~
  13002. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  13003. dldir=$destdir/`dirname \$dlpath`~
  13004. test -d \$dldir || mkdir -p \$dldir~
  13005. $install_prog $dir/$dlname \$dldir/$dlname~
  13006. chmod a+x \$dldir/$dlname~
  13007. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  13008. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  13009. fi'
  13010. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  13011. dlpath=$dir/\$dldll~
  13012. $RM \$dlpath'
  13013. shlibpath_overrides_runpath=yes
  13014. case $host_os in
  13015. cygwin*)
  13016. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  13017. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  13018. ;;
  13019. mingw* | cegcc*)
  13020. # MinGW DLLs use traditional 'lib' prefix
  13021. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  13022. ;;
  13023. pw32*)
  13024. # pw32 DLLs use 'pw' prefix rather than 'lib'
  13025. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  13026. ;;
  13027. esac
  13028. dynamic_linker='Win32 ld.exe'
  13029. ;;
  13030. *,cl*)
  13031. # Native MSVC
  13032. libname_spec='$name'
  13033. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  13034. library_names_spec='${libname}.dll.lib'
  13035. case $build_os in
  13036. mingw*)
  13037. sys_lib_search_path_spec=
  13038. lt_save_ifs=$IFS
  13039. IFS=';'
  13040. for lt_path in $LIB
  13041. do
  13042. IFS=$lt_save_ifs
  13043. # Let DOS variable expansion print the short 8.3 style file name.
  13044. lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
  13045. sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
  13046. done
  13047. IFS=$lt_save_ifs
  13048. # Convert to MSYS style.
  13049. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
  13050. ;;
  13051. cygwin*)
  13052. # Convert to unix form, then to dos form, then back to unix form
  13053. # but this time dos style (no spaces!) so that the unix form looks
  13054. # like /cygdrive/c/PROGRA~1:/cygdr...
  13055. sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
  13056. sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
  13057. sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  13058. ;;
  13059. *)
  13060. sys_lib_search_path_spec="$LIB"
  13061. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  13062. # It is most probably a Windows format PATH.
  13063. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  13064. else
  13065. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  13066. fi
  13067. # FIXME: find the short name or the path components, as spaces are
  13068. # common. (e.g. "Program Files" -> "PROGRA~1")
  13069. ;;
  13070. esac
  13071. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  13072. postinstall_cmds='base_file=`basename \${file}`~
  13073. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  13074. dldir=$destdir/`dirname \$dlpath`~
  13075. test -d \$dldir || mkdir -p \$dldir~
  13076. $install_prog $dir/$dlname \$dldir/$dlname'
  13077. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  13078. dlpath=$dir/\$dldll~
  13079. $RM \$dlpath'
  13080. shlibpath_overrides_runpath=yes
  13081. dynamic_linker='Win32 link.exe'
  13082. ;;
  13083. *)
  13084. # Assume MSVC wrapper
  13085. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  13086. dynamic_linker='Win32 ld.exe'
  13087. ;;
  13088. esac
  13089. # FIXME: first we should search . and the directory the executable is in
  13090. shlibpath_var=PATH
  13091. ;;
  13092. darwin* | rhapsody*)
  13093. dynamic_linker="$host_os dyld"
  13094. version_type=darwin
  13095. need_lib_prefix=no
  13096. need_version=no
  13097. library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  13098. soname_spec='${libname}${release}${major}$shared_ext'
  13099. shlibpath_overrides_runpath=yes
  13100. shlibpath_var=DYLD_LIBRARY_PATH
  13101. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  13102. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  13103. ;;
  13104. dgux*)
  13105. version_type=linux # correct to gnu/linux during the next big refactor
  13106. need_lib_prefix=no
  13107. need_version=no
  13108. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  13109. soname_spec='${libname}${release}${shared_ext}$major'
  13110. shlibpath_var=LD_LIBRARY_PATH
  13111. ;;
  13112. freebsd* | dragonfly*)
  13113. # DragonFly does not have aout. When/if they implement a new
  13114. # versioning mechanism, adjust this.
  13115. if test -x /usr/bin/objformat; then
  13116. objformat=`/usr/bin/objformat`
  13117. else
  13118. case $host_os in
  13119. freebsd[23].*) objformat=aout ;;
  13120. *) objformat=elf ;;
  13121. esac
  13122. fi
  13123. version_type=freebsd-$objformat
  13124. case $version_type in
  13125. freebsd-elf*)
  13126. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  13127. need_version=no
  13128. need_lib_prefix=no
  13129. ;;
  13130. freebsd-*)
  13131. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  13132. need_version=yes
  13133. ;;
  13134. esac
  13135. shlibpath_var=LD_LIBRARY_PATH
  13136. case $host_os in
  13137. freebsd2.*)
  13138. shlibpath_overrides_runpath=yes
  13139. ;;
  13140. freebsd3.[01]* | freebsdelf3.[01]*)
  13141. shlibpath_overrides_runpath=yes
  13142. hardcode_into_libs=yes
  13143. ;;
  13144. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  13145. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  13146. shlibpath_overrides_runpath=no
  13147. hardcode_into_libs=yes
  13148. ;;
  13149. *) # from 4.6 on, and DragonFly
  13150. shlibpath_overrides_runpath=yes
  13151. hardcode_into_libs=yes
  13152. ;;
  13153. esac
  13154. ;;
  13155. gnu*)
  13156. version_type=linux # correct to gnu/linux during the next big refactor
  13157. need_lib_prefix=no
  13158. need_version=no
  13159. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  13160. soname_spec='${libname}${release}${shared_ext}$major'
  13161. shlibpath_var=LD_LIBRARY_PATH
  13162. shlibpath_overrides_runpath=no
  13163. hardcode_into_libs=yes
  13164. ;;
  13165. haiku*)
  13166. version_type=linux # correct to gnu/linux during the next big refactor
  13167. need_lib_prefix=no
  13168. need_version=no
  13169. dynamic_linker="$host_os runtime_loader"
  13170. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  13171. soname_spec='${libname}${release}${shared_ext}$major'
  13172. shlibpath_var=LIBRARY_PATH
  13173. shlibpath_overrides_runpath=yes
  13174. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
  13175. hardcode_into_libs=yes
  13176. ;;
  13177. hpux9* | hpux10* | hpux11*)
  13178. # Give a soname corresponding to the major version so that dld.sl refuses to
  13179. # link against other versions.
  13180. version_type=sunos
  13181. need_lib_prefix=no
  13182. need_version=no
  13183. case $host_cpu in
  13184. ia64*)
  13185. shrext_cmds='.so'
  13186. hardcode_into_libs=yes
  13187. dynamic_linker="$host_os dld.so"
  13188. shlibpath_var=LD_LIBRARY_PATH
  13189. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  13190. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13191. soname_spec='${libname}${release}${shared_ext}$major'
  13192. if test "X$HPUX_IA64_MODE" = X32; then
  13193. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  13194. else
  13195. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  13196. fi
  13197. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  13198. ;;
  13199. hppa*64*)
  13200. shrext_cmds='.sl'
  13201. hardcode_into_libs=yes
  13202. dynamic_linker="$host_os dld.sl"
  13203. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  13204. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  13205. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13206. soname_spec='${libname}${release}${shared_ext}$major'
  13207. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  13208. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  13209. ;;
  13210. *)
  13211. shrext_cmds='.sl'
  13212. dynamic_linker="$host_os dld.sl"
  13213. shlibpath_var=SHLIB_PATH
  13214. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  13215. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13216. soname_spec='${libname}${release}${shared_ext}$major'
  13217. ;;
  13218. esac
  13219. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  13220. postinstall_cmds='chmod 555 $lib'
  13221. # or fails outright, so override atomically:
  13222. install_override_mode=555
  13223. ;;
  13224. interix[3-9]*)
  13225. version_type=linux # correct to gnu/linux during the next big refactor
  13226. need_lib_prefix=no
  13227. need_version=no
  13228. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  13229. soname_spec='${libname}${release}${shared_ext}$major'
  13230. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  13231. shlibpath_var=LD_LIBRARY_PATH
  13232. shlibpath_overrides_runpath=no
  13233. hardcode_into_libs=yes
  13234. ;;
  13235. irix5* | irix6* | nonstopux*)
  13236. case $host_os in
  13237. nonstopux*) version_type=nonstopux ;;
  13238. *)
  13239. if test "$lt_cv_prog_gnu_ld" = yes; then
  13240. version_type=linux # correct to gnu/linux during the next big refactor
  13241. else
  13242. version_type=irix
  13243. fi ;;
  13244. esac
  13245. need_lib_prefix=no
  13246. need_version=no
  13247. soname_spec='${libname}${release}${shared_ext}$major'
  13248. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  13249. case $host_os in
  13250. irix5* | nonstopux*)
  13251. libsuff= shlibsuff=
  13252. ;;
  13253. *)
  13254. case $LD in # libtool.m4 will add one of these switches to LD
  13255. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  13256. libsuff= shlibsuff= libmagic=32-bit;;
  13257. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  13258. libsuff=32 shlibsuff=N32 libmagic=N32;;
  13259. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  13260. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  13261. *) libsuff= shlibsuff= libmagic=never-match;;
  13262. esac
  13263. ;;
  13264. esac
  13265. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  13266. shlibpath_overrides_runpath=no
  13267. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  13268. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  13269. hardcode_into_libs=yes
  13270. ;;
  13271. # No shared lib support for Linux oldld, aout, or coff.
  13272. linux*oldld* | linux*aout* | linux*coff*)
  13273. dynamic_linker=no
  13274. ;;
  13275. # This must be glibc/ELF.
  13276. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  13277. version_type=linux # correct to gnu/linux during the next big refactor
  13278. need_lib_prefix=no
  13279. need_version=no
  13280. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13281. soname_spec='${libname}${release}${shared_ext}$major'
  13282. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  13283. shlibpath_var=LD_LIBRARY_PATH
  13284. shlibpath_overrides_runpath=no
  13285. # Some binutils ld are patched to set DT_RUNPATH
  13286. if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
  13287. $as_echo_n "(cached) " >&6
  13288. else
  13289. lt_cv_shlibpath_overrides_runpath=no
  13290. save_LDFLAGS=$LDFLAGS
  13291. save_libdir=$libdir
  13292. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
  13293. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
  13294. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13295. /* end confdefs.h. */
  13296. int
  13297. main ()
  13298. {
  13299. ;
  13300. return 0;
  13301. }
  13302. _ACEOF
  13303. if ac_fn_cxx_try_link "$LINENO"; then :
  13304. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  13305. lt_cv_shlibpath_overrides_runpath=yes
  13306. fi
  13307. fi
  13308. rm -f core conftest.err conftest.$ac_objext \
  13309. conftest$ac_exeext conftest.$ac_ext
  13310. LDFLAGS=$save_LDFLAGS
  13311. libdir=$save_libdir
  13312. fi
  13313. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  13314. # This implies no fast_install, which is unacceptable.
  13315. # Some rework will be needed to allow for fast_install
  13316. # before this can be enabled.
  13317. hardcode_into_libs=yes
  13318. # Add ABI-specific directories to the system library path.
  13319. sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
  13320. # Append ld.so.conf contents to the search path
  13321. if test -f /etc/ld.so.conf; then
  13322. 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' ' '`
  13323. sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
  13324. fi
  13325. # We used to test for /lib/ld.so.1 and disable shared libraries on
  13326. # powerpc, because MkLinux only supported shared libraries with the
  13327. # GNU dynamic linker. Since this was broken with cross compilers,
  13328. # most powerpc-linux boxes support dynamic linking these days and
  13329. # people can always --disable-shared, the test was removed, and we
  13330. # assume the GNU/Linux dynamic linker is in use.
  13331. dynamic_linker='GNU/Linux ld.so'
  13332. ;;
  13333. netbsd*)
  13334. version_type=sunos
  13335. need_lib_prefix=no
  13336. need_version=no
  13337. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  13338. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  13339. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  13340. dynamic_linker='NetBSD (a.out) ld.so'
  13341. else
  13342. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  13343. soname_spec='${libname}${release}${shared_ext}$major'
  13344. dynamic_linker='NetBSD ld.elf_so'
  13345. fi
  13346. shlibpath_var=LD_LIBRARY_PATH
  13347. shlibpath_overrides_runpath=yes
  13348. hardcode_into_libs=yes
  13349. ;;
  13350. newsos6)
  13351. version_type=linux # correct to gnu/linux during the next big refactor
  13352. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13353. shlibpath_var=LD_LIBRARY_PATH
  13354. shlibpath_overrides_runpath=yes
  13355. ;;
  13356. *nto* | *qnx*)
  13357. version_type=qnx
  13358. need_lib_prefix=no
  13359. need_version=no
  13360. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13361. soname_spec='${libname}${release}${shared_ext}$major'
  13362. shlibpath_var=LD_LIBRARY_PATH
  13363. shlibpath_overrides_runpath=no
  13364. hardcode_into_libs=yes
  13365. dynamic_linker='ldqnx.so'
  13366. ;;
  13367. openbsd*)
  13368. version_type=sunos
  13369. sys_lib_dlsearch_path_spec="/usr/lib"
  13370. need_lib_prefix=no
  13371. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  13372. case $host_os in
  13373. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  13374. *) need_version=no ;;
  13375. esac
  13376. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  13377. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  13378. shlibpath_var=LD_LIBRARY_PATH
  13379. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  13380. case $host_os in
  13381. openbsd2.[89] | openbsd2.[89].*)
  13382. shlibpath_overrides_runpath=no
  13383. ;;
  13384. *)
  13385. shlibpath_overrides_runpath=yes
  13386. ;;
  13387. esac
  13388. else
  13389. shlibpath_overrides_runpath=yes
  13390. fi
  13391. ;;
  13392. os2*)
  13393. libname_spec='$name'
  13394. shrext_cmds=".dll"
  13395. need_lib_prefix=no
  13396. library_names_spec='$libname${shared_ext} $libname.a'
  13397. dynamic_linker='OS/2 ld.exe'
  13398. shlibpath_var=LIBPATH
  13399. ;;
  13400. osf3* | osf4* | osf5*)
  13401. version_type=osf
  13402. need_lib_prefix=no
  13403. need_version=no
  13404. soname_spec='${libname}${release}${shared_ext}$major'
  13405. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13406. shlibpath_var=LD_LIBRARY_PATH
  13407. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  13408. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  13409. ;;
  13410. rdos*)
  13411. dynamic_linker=no
  13412. ;;
  13413. solaris*)
  13414. version_type=linux # correct to gnu/linux during the next big refactor
  13415. need_lib_prefix=no
  13416. need_version=no
  13417. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13418. soname_spec='${libname}${release}${shared_ext}$major'
  13419. shlibpath_var=LD_LIBRARY_PATH
  13420. shlibpath_overrides_runpath=yes
  13421. hardcode_into_libs=yes
  13422. # ldd complains unless libraries are executable
  13423. postinstall_cmds='chmod +x $lib'
  13424. ;;
  13425. sunos4*)
  13426. version_type=sunos
  13427. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  13428. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  13429. shlibpath_var=LD_LIBRARY_PATH
  13430. shlibpath_overrides_runpath=yes
  13431. if test "$with_gnu_ld" = yes; then
  13432. need_lib_prefix=no
  13433. fi
  13434. need_version=yes
  13435. ;;
  13436. sysv4 | sysv4.3*)
  13437. version_type=linux # correct to gnu/linux during the next big refactor
  13438. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13439. soname_spec='${libname}${release}${shared_ext}$major'
  13440. shlibpath_var=LD_LIBRARY_PATH
  13441. case $host_vendor in
  13442. sni)
  13443. shlibpath_overrides_runpath=no
  13444. need_lib_prefix=no
  13445. runpath_var=LD_RUN_PATH
  13446. ;;
  13447. siemens)
  13448. need_lib_prefix=no
  13449. ;;
  13450. motorola)
  13451. need_lib_prefix=no
  13452. need_version=no
  13453. shlibpath_overrides_runpath=no
  13454. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  13455. ;;
  13456. esac
  13457. ;;
  13458. sysv4*MP*)
  13459. if test -d /usr/nec ;then
  13460. version_type=linux # correct to gnu/linux during the next big refactor
  13461. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  13462. soname_spec='$libname${shared_ext}.$major'
  13463. shlibpath_var=LD_LIBRARY_PATH
  13464. fi
  13465. ;;
  13466. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  13467. version_type=freebsd-elf
  13468. need_lib_prefix=no
  13469. need_version=no
  13470. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  13471. soname_spec='${libname}${release}${shared_ext}$major'
  13472. shlibpath_var=LD_LIBRARY_PATH
  13473. shlibpath_overrides_runpath=yes
  13474. hardcode_into_libs=yes
  13475. if test "$with_gnu_ld" = yes; then
  13476. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  13477. else
  13478. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  13479. case $host_os in
  13480. sco3.2v5*)
  13481. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  13482. ;;
  13483. esac
  13484. fi
  13485. sys_lib_dlsearch_path_spec='/usr/lib'
  13486. ;;
  13487. tpf*)
  13488. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  13489. version_type=linux # correct to gnu/linux during the next big refactor
  13490. need_lib_prefix=no
  13491. need_version=no
  13492. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13493. shlibpath_var=LD_LIBRARY_PATH
  13494. shlibpath_overrides_runpath=no
  13495. hardcode_into_libs=yes
  13496. ;;
  13497. uts4*)
  13498. version_type=linux # correct to gnu/linux during the next big refactor
  13499. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13500. soname_spec='${libname}${release}${shared_ext}$major'
  13501. shlibpath_var=LD_LIBRARY_PATH
  13502. ;;
  13503. *)
  13504. dynamic_linker=no
  13505. ;;
  13506. esac
  13507. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  13508. $as_echo "$dynamic_linker" >&6; }
  13509. test "$dynamic_linker" = no && can_build_shared=no
  13510. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  13511. if test "$GCC" = yes; then
  13512. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  13513. fi
  13514. if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  13515. sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  13516. fi
  13517. if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  13518. sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  13519. fi
  13520. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  13521. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  13522. hardcode_action_CXX=
  13523. if test -n "$hardcode_libdir_flag_spec_CXX" ||
  13524. test -n "$runpath_var_CXX" ||
  13525. test "X$hardcode_automatic_CXX" = "Xyes" ; then
  13526. # We can hardcode non-existent directories.
  13527. if test "$hardcode_direct_CXX" != no &&
  13528. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  13529. # have to relink, otherwise we might link with an installed library
  13530. # when we should be linking with a yet-to-be-installed one
  13531. ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
  13532. test "$hardcode_minus_L_CXX" != no; then
  13533. # Linking always hardcodes the temporary library directory.
  13534. hardcode_action_CXX=relink
  13535. else
  13536. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  13537. hardcode_action_CXX=immediate
  13538. fi
  13539. else
  13540. # We cannot hardcode anything, or else we can only hardcode existing
  13541. # directories.
  13542. hardcode_action_CXX=unsupported
  13543. fi
  13544. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
  13545. $as_echo "$hardcode_action_CXX" >&6; }
  13546. if test "$hardcode_action_CXX" = relink ||
  13547. test "$inherit_rpath_CXX" = yes; then
  13548. # Fast installation is not supported
  13549. enable_fast_install=no
  13550. elif test "$shlibpath_overrides_runpath" = yes ||
  13551. test "$enable_shared" = no; then
  13552. # Fast installation is not necessary
  13553. enable_fast_install=needless
  13554. fi
  13555. fi # test -n "$compiler"
  13556. CC=$lt_save_CC
  13557. CFLAGS=$lt_save_CFLAGS
  13558. LDCXX=$LD
  13559. LD=$lt_save_LD
  13560. GCC=$lt_save_GCC
  13561. with_gnu_ld=$lt_save_with_gnu_ld
  13562. lt_cv_path_LDCXX=$lt_cv_path_LD
  13563. lt_cv_path_LD=$lt_save_path_LD
  13564. lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
  13565. lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
  13566. fi # test "$_lt_caught_CXX_error" != yes
  13567. ac_ext=c
  13568. ac_cpp='$CPP $CPPFLAGS'
  13569. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  13570. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  13571. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  13572. ac_config_commands="$ac_config_commands libtool"
  13573. # Only expand once:
  13574. # Checks for library functions.
  13575. # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
  13576. # for constant arguments. Useless!
  13577. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
  13578. $as_echo_n "checking for working alloca.h... " >&6; }
  13579. if ${ac_cv_working_alloca_h+:} false; then :
  13580. $as_echo_n "(cached) " >&6
  13581. else
  13582. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13583. /* end confdefs.h. */
  13584. @%:@include <alloca.h>
  13585. int
  13586. main ()
  13587. {
  13588. char *p = (char *) alloca (2 * sizeof (int));
  13589. if (p) return 0;
  13590. ;
  13591. return 0;
  13592. }
  13593. _ACEOF
  13594. if ac_fn_c_try_link "$LINENO"; then :
  13595. ac_cv_working_alloca_h=yes
  13596. else
  13597. ac_cv_working_alloca_h=no
  13598. fi
  13599. rm -f core conftest.err conftest.$ac_objext \
  13600. conftest$ac_exeext conftest.$ac_ext
  13601. fi
  13602. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
  13603. $as_echo "$ac_cv_working_alloca_h" >&6; }
  13604. if test $ac_cv_working_alloca_h = yes; then
  13605. $as_echo "@%:@define HAVE_ALLOCA_H 1" >>confdefs.h
  13606. fi
  13607. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
  13608. $as_echo_n "checking for alloca... " >&6; }
  13609. if ${ac_cv_func_alloca_works+:} false; then :
  13610. $as_echo_n "(cached) " >&6
  13611. else
  13612. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13613. /* end confdefs.h. */
  13614. #ifdef __GNUC__
  13615. # define alloca __builtin_alloca
  13616. #else
  13617. # ifdef _MSC_VER
  13618. # include <malloc.h>
  13619. # define alloca _alloca
  13620. # else
  13621. # ifdef HAVE_ALLOCA_H
  13622. # include <alloca.h>
  13623. # else
  13624. # ifdef _AIX
  13625. #pragma alloca
  13626. # else
  13627. # ifndef alloca /* predefined by HP cc +Olibcalls */
  13628. void *alloca (size_t);
  13629. # endif
  13630. # endif
  13631. # endif
  13632. # endif
  13633. #endif
  13634. int
  13635. main ()
  13636. {
  13637. char *p = (char *) alloca (1);
  13638. if (p) return 0;
  13639. ;
  13640. return 0;
  13641. }
  13642. _ACEOF
  13643. if ac_fn_c_try_link "$LINENO"; then :
  13644. ac_cv_func_alloca_works=yes
  13645. else
  13646. ac_cv_func_alloca_works=no
  13647. fi
  13648. rm -f core conftest.err conftest.$ac_objext \
  13649. conftest$ac_exeext conftest.$ac_ext
  13650. fi
  13651. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
  13652. $as_echo "$ac_cv_func_alloca_works" >&6; }
  13653. if test $ac_cv_func_alloca_works = yes; then
  13654. $as_echo "@%:@define HAVE_ALLOCA 1" >>confdefs.h
  13655. else
  13656. # The SVR3 libPW and SVR4 libucb both contain incompatible functions
  13657. # that cause trouble. Some versions do not even contain alloca or
  13658. # contain a buggy version. If you still want to use their alloca,
  13659. # use ar to extract alloca.o from them instead of compiling alloca.c.
  13660. ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
  13661. $as_echo "@%:@define C_ALLOCA 1" >>confdefs.h
  13662. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
  13663. $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
  13664. if ${ac_cv_os_cray+:} false; then :
  13665. $as_echo_n "(cached) " >&6
  13666. else
  13667. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13668. /* end confdefs.h. */
  13669. #if defined CRAY && ! defined CRAY2
  13670. webecray
  13671. #else
  13672. wenotbecray
  13673. #endif
  13674. _ACEOF
  13675. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  13676. $EGREP "webecray" >/dev/null 2>&1; then :
  13677. ac_cv_os_cray=yes
  13678. else
  13679. ac_cv_os_cray=no
  13680. fi
  13681. rm -f conftest*
  13682. fi
  13683. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
  13684. $as_echo "$ac_cv_os_cray" >&6; }
  13685. if test $ac_cv_os_cray = yes; then
  13686. for ac_func in _getb67 GETB67 getb67; do
  13687. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  13688. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  13689. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  13690. cat >>confdefs.h <<_ACEOF
  13691. @%:@define CRAY_STACKSEG_END $ac_func
  13692. _ACEOF
  13693. break
  13694. fi
  13695. done
  13696. fi
  13697. { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
  13698. $as_echo_n "checking stack direction for C alloca... " >&6; }
  13699. if ${ac_cv_c_stack_direction+:} false; then :
  13700. $as_echo_n "(cached) " >&6
  13701. else
  13702. if test "$cross_compiling" = yes; then :
  13703. ac_cv_c_stack_direction=0
  13704. else
  13705. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13706. /* end confdefs.h. */
  13707. $ac_includes_default
  13708. int
  13709. find_stack_direction (int *addr, int depth)
  13710. {
  13711. int dir, dummy = 0;
  13712. if (! addr)
  13713. addr = &dummy;
  13714. *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
  13715. dir = depth ? find_stack_direction (addr, depth - 1) : 0;
  13716. return dir + dummy;
  13717. }
  13718. int
  13719. main (int argc, char **argv)
  13720. {
  13721. return find_stack_direction (0, argc + !argv + 20) < 0;
  13722. }
  13723. _ACEOF
  13724. if ac_fn_c_try_run "$LINENO"; then :
  13725. ac_cv_c_stack_direction=1
  13726. else
  13727. ac_cv_c_stack_direction=-1
  13728. fi
  13729. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  13730. conftest.$ac_objext conftest.beam conftest.$ac_ext
  13731. fi
  13732. fi
  13733. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
  13734. $as_echo "$ac_cv_c_stack_direction" >&6; }
  13735. cat >>confdefs.h <<_ACEOF
  13736. @%:@define STACK_DIRECTION $ac_cv_c_stack_direction
  13737. _ACEOF
  13738. fi
  13739. for ac_header in stdlib.h
  13740. do :
  13741. ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
  13742. if test "x$ac_cv_header_stdlib_h" = xyes; then :
  13743. cat >>confdefs.h <<_ACEOF
  13744. @%:@define HAVE_STDLIB_H 1
  13745. _ACEOF
  13746. fi
  13747. done
  13748. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5
  13749. $as_echo_n "checking for GNU libc compatible malloc... " >&6; }
  13750. if ${ac_cv_func_malloc_0_nonnull+:} false; then :
  13751. $as_echo_n "(cached) " >&6
  13752. else
  13753. if test "$cross_compiling" = yes; then :
  13754. ac_cv_func_malloc_0_nonnull=no
  13755. else
  13756. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13757. /* end confdefs.h. */
  13758. #if defined STDC_HEADERS || defined HAVE_STDLIB_H
  13759. # include <stdlib.h>
  13760. #else
  13761. char *malloc ();
  13762. #endif
  13763. int
  13764. main ()
  13765. {
  13766. return ! malloc (0);
  13767. ;
  13768. return 0;
  13769. }
  13770. _ACEOF
  13771. if ac_fn_c_try_run "$LINENO"; then :
  13772. ac_cv_func_malloc_0_nonnull=yes
  13773. else
  13774. ac_cv_func_malloc_0_nonnull=no
  13775. fi
  13776. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  13777. conftest.$ac_objext conftest.beam conftest.$ac_ext
  13778. fi
  13779. fi
  13780. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5
  13781. $as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
  13782. if test $ac_cv_func_malloc_0_nonnull = yes; then :
  13783. $as_echo "@%:@define HAVE_MALLOC 1" >>confdefs.h
  13784. else
  13785. $as_echo "@%:@define HAVE_MALLOC 0" >>confdefs.h
  13786. case " $LIB@&t@OBJS " in
  13787. *" malloc.$ac_objext "* ) ;;
  13788. *) LIB@&t@OBJS="$LIB@&t@OBJS malloc.$ac_objext"
  13789. ;;
  13790. esac
  13791. $as_echo "@%:@define malloc rpl_malloc" >>confdefs.h
  13792. fi
  13793. for ac_func in clock_gettime gettimeofday localtime_r memmove realpath strchr strerror strstr
  13794. do :
  13795. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  13796. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  13797. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  13798. cat >>confdefs.h <<_ACEOF
  13799. @%:@define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  13800. _ACEOF
  13801. fi
  13802. done
  13803. ac_config_files="$ac_config_files Makefile"
  13804. cat >confcache <<\_ACEOF
  13805. # This file is a shell script that caches the results of configure
  13806. # tests run on this system so they can be shared between configure
  13807. # scripts and configure runs, see configure's option --config-cache.
  13808. # It is not useful on other systems. If it contains results you don't
  13809. # want to keep, you may remove or edit it.
  13810. #
  13811. # config.status only pays attention to the cache file if you give it
  13812. # the --recheck option to rerun configure.
  13813. #
  13814. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  13815. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  13816. # following values.
  13817. _ACEOF
  13818. # The following way of writing the cache mishandles newlines in values,
  13819. # but we know of no workaround that is simple, portable, and efficient.
  13820. # So, we kill variables containing newlines.
  13821. # Ultrix sh set writes to stderr and can't be redirected directly,
  13822. # and sets the high bit in the cache file unless we assign to the vars.
  13823. (
  13824. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  13825. eval ac_val=\$$ac_var
  13826. case $ac_val in #(
  13827. *${as_nl}*)
  13828. case $ac_var in #(
  13829. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  13830. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  13831. esac
  13832. case $ac_var in #(
  13833. _ | IFS | as_nl) ;; #(
  13834. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  13835. *) { eval $ac_var=; unset $ac_var;} ;;
  13836. esac ;;
  13837. esac
  13838. done
  13839. (set) 2>&1 |
  13840. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  13841. *${as_nl}ac_space=\ *)
  13842. # `set' does not quote correctly, so add quotes: double-quote
  13843. # substitution turns \\\\ into \\, and sed turns \\ into \.
  13844. sed -n \
  13845. "s/'/'\\\\''/g;
  13846. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  13847. ;; #(
  13848. *)
  13849. # `set' quotes correctly as required by POSIX, so do not add quotes.
  13850. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  13851. ;;
  13852. esac |
  13853. sort
  13854. ) |
  13855. sed '
  13856. /^ac_cv_env_/b end
  13857. t clear
  13858. :clear
  13859. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  13860. t end
  13861. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  13862. :end' >>confcache
  13863. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  13864. if test -w "$cache_file"; then
  13865. if test "x$cache_file" != "x/dev/null"; then
  13866. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  13867. $as_echo "$as_me: updating cache $cache_file" >&6;}
  13868. if test ! -f "$cache_file" || test -h "$cache_file"; then
  13869. cat confcache >"$cache_file"
  13870. else
  13871. case $cache_file in #(
  13872. */* | ?:*)
  13873. mv -f confcache "$cache_file"$$ &&
  13874. mv -f "$cache_file"$$ "$cache_file" ;; #(
  13875. *)
  13876. mv -f confcache "$cache_file" ;;
  13877. esac
  13878. fi
  13879. fi
  13880. else
  13881. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  13882. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  13883. fi
  13884. fi
  13885. rm -f confcache
  13886. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  13887. # Let make expand exec_prefix.
  13888. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  13889. DEFS=-DHAVE_CONFIG_H
  13890. ac_libobjs=
  13891. ac_ltlibobjs=
  13892. U=
  13893. for ac_i in : $LIB@&t@OBJS; do test "x$ac_i" = x: && continue
  13894. # 1. Remove the extension, and $U if already installed.
  13895. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  13896. ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  13897. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  13898. # will be set to the directory where LIBOBJS objects are built.
  13899. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  13900. as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  13901. done
  13902. LIB@&t@OBJS=$ac_libobjs
  13903. LTLIBOBJS=$ac_ltlibobjs
  13904. { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
  13905. $as_echo_n "checking that generated files are newer than configure... " >&6; }
  13906. if test -n "$am_sleep_pid"; then
  13907. # Hide warnings about reused PIDs.
  13908. wait $am_sleep_pid 2>/dev/null
  13909. fi
  13910. { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
  13911. $as_echo "done" >&6; }
  13912. if test -n "$EXEEXT"; then
  13913. am__EXEEXT_TRUE=
  13914. am__EXEEXT_FALSE='#'
  13915. else
  13916. am__EXEEXT_TRUE='#'
  13917. am__EXEEXT_FALSE=
  13918. fi
  13919. if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
  13920. as_fn_error $? "conditional \"AMDEP\" was never defined.
  13921. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13922. fi
  13923. if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
  13924. as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
  13925. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13926. fi
  13927. if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  13928. as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
  13929. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13930. fi
  13931. : "${CONFIG_STATUS=./config.status}"
  13932. ac_write_fail=0
  13933. ac_clean_files_save=$ac_clean_files
  13934. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  13935. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  13936. $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  13937. as_write_fail=0
  13938. cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  13939. #! $SHELL
  13940. # Generated by $as_me.
  13941. # Run this file to recreate the current configuration.
  13942. # Compiler output produced by configure, useful for debugging
  13943. # configure, is in config.log if it exists.
  13944. debug=false
  13945. ac_cs_recheck=false
  13946. ac_cs_silent=false
  13947. SHELL=\${CONFIG_SHELL-$SHELL}
  13948. export SHELL
  13949. _ASEOF
  13950. cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  13951. ## -------------------- ##
  13952. ## M4sh Initialization. ##
  13953. ## -------------------- ##
  13954. # Be more Bourne compatible
  13955. DUALCASE=1; export DUALCASE # for MKS sh
  13956. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  13957. emulate sh
  13958. NULLCMD=:
  13959. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  13960. # is contrary to our usage. Disable this feature.
  13961. alias -g '${1+"$@"}'='"$@"'
  13962. setopt NO_GLOB_SUBST
  13963. else
  13964. case `(set -o) 2>/dev/null` in @%:@(
  13965. *posix*) :
  13966. set -o posix ;; @%:@(
  13967. *) :
  13968. ;;
  13969. esac
  13970. fi
  13971. as_nl='
  13972. '
  13973. export as_nl
  13974. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  13975. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  13976. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  13977. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  13978. # Prefer a ksh shell builtin over an external printf program on Solaris,
  13979. # but without wasting forks for bash or zsh.
  13980. if test -z "$BASH_VERSION$ZSH_VERSION" \
  13981. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  13982. as_echo='print -r --'
  13983. as_echo_n='print -rn --'
  13984. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  13985. as_echo='printf %s\n'
  13986. as_echo_n='printf %s'
  13987. else
  13988. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  13989. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  13990. as_echo_n='/usr/ucb/echo -n'
  13991. else
  13992. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  13993. as_echo_n_body='eval
  13994. arg=$1;
  13995. case $arg in @%:@(
  13996. *"$as_nl"*)
  13997. expr "X$arg" : "X\\(.*\\)$as_nl";
  13998. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  13999. esac;
  14000. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  14001. '
  14002. export as_echo_n_body
  14003. as_echo_n='sh -c $as_echo_n_body as_echo'
  14004. fi
  14005. export as_echo_body
  14006. as_echo='sh -c $as_echo_body as_echo'
  14007. fi
  14008. # The user is always right.
  14009. if test "${PATH_SEPARATOR+set}" != set; then
  14010. PATH_SEPARATOR=:
  14011. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  14012. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  14013. PATH_SEPARATOR=';'
  14014. }
  14015. fi
  14016. # IFS
  14017. # We need space, tab and new line, in precisely that order. Quoting is
  14018. # there to prevent editors from complaining about space-tab.
  14019. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  14020. # splitting by setting IFS to empty value.)
  14021. IFS=" "" $as_nl"
  14022. # Find who we are. Look in the path if we contain no directory separator.
  14023. as_myself=
  14024. case $0 in @%:@((
  14025. *[\\/]* ) as_myself=$0 ;;
  14026. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  14027. for as_dir in $PATH
  14028. do
  14029. IFS=$as_save_IFS
  14030. test -z "$as_dir" && as_dir=.
  14031. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  14032. done
  14033. IFS=$as_save_IFS
  14034. ;;
  14035. esac
  14036. # We did not find ourselves, most probably we were run as `sh COMMAND'
  14037. # in which case we are not to be found in the path.
  14038. if test "x$as_myself" = x; then
  14039. as_myself=$0
  14040. fi
  14041. if test ! -f "$as_myself"; then
  14042. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  14043. exit 1
  14044. fi
  14045. # Unset variables that we do not need and which cause bugs (e.g. in
  14046. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  14047. # suppresses any "Segmentation fault" message there. '((' could
  14048. # trigger a bug in pdksh 5.2.14.
  14049. for as_var in BASH_ENV ENV MAIL MAILPATH
  14050. do eval test x\${$as_var+set} = xset \
  14051. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  14052. done
  14053. PS1='$ '
  14054. PS2='> '
  14055. PS4='+ '
  14056. # NLS nuisances.
  14057. LC_ALL=C
  14058. export LC_ALL
  14059. LANGUAGE=C
  14060. export LANGUAGE
  14061. # CDPATH.
  14062. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  14063. @%:@ as_fn_error STATUS ERROR [LINENO LOG_FD]
  14064. @%:@ ----------------------------------------
  14065. @%:@ Output "`basename @S|@0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  14066. @%:@ provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  14067. @%:@ script with STATUS, using 1 if that was 0.
  14068. as_fn_error ()
  14069. {
  14070. as_status=$1; test $as_status -eq 0 && as_status=1
  14071. if test "$4"; then
  14072. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  14073. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  14074. fi
  14075. $as_echo "$as_me: error: $2" >&2
  14076. as_fn_exit $as_status
  14077. } @%:@ as_fn_error
  14078. @%:@ as_fn_set_status STATUS
  14079. @%:@ -----------------------
  14080. @%:@ Set @S|@? to STATUS, without forking.
  14081. as_fn_set_status ()
  14082. {
  14083. return $1
  14084. } @%:@ as_fn_set_status
  14085. @%:@ as_fn_exit STATUS
  14086. @%:@ -----------------
  14087. @%:@ Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  14088. as_fn_exit ()
  14089. {
  14090. set +e
  14091. as_fn_set_status $1
  14092. exit $1
  14093. } @%:@ as_fn_exit
  14094. @%:@ as_fn_unset VAR
  14095. @%:@ ---------------
  14096. @%:@ Portably unset VAR.
  14097. as_fn_unset ()
  14098. {
  14099. { eval $1=; unset $1;}
  14100. }
  14101. as_unset=as_fn_unset
  14102. @%:@ as_fn_append VAR VALUE
  14103. @%:@ ----------------------
  14104. @%:@ Append the text in VALUE to the end of the definition contained in VAR. Take
  14105. @%:@ advantage of any shell optimizations that allow amortized linear growth over
  14106. @%:@ repeated appends, instead of the typical quadratic growth present in naive
  14107. @%:@ implementations.
  14108. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  14109. eval 'as_fn_append ()
  14110. {
  14111. eval $1+=\$2
  14112. }'
  14113. else
  14114. as_fn_append ()
  14115. {
  14116. eval $1=\$$1\$2
  14117. }
  14118. fi # as_fn_append
  14119. @%:@ as_fn_arith ARG...
  14120. @%:@ ------------------
  14121. @%:@ Perform arithmetic evaluation on the ARGs, and store the result in the
  14122. @%:@ global @S|@as_val. Take advantage of shells that can avoid forks. The arguments
  14123. @%:@ must be portable across @S|@(()) and expr.
  14124. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  14125. eval 'as_fn_arith ()
  14126. {
  14127. as_val=$(( $* ))
  14128. }'
  14129. else
  14130. as_fn_arith ()
  14131. {
  14132. as_val=`expr "$@" || test $? -eq 1`
  14133. }
  14134. fi # as_fn_arith
  14135. if expr a : '\(a\)' >/dev/null 2>&1 &&
  14136. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  14137. as_expr=expr
  14138. else
  14139. as_expr=false
  14140. fi
  14141. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  14142. as_basename=basename
  14143. else
  14144. as_basename=false
  14145. fi
  14146. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  14147. as_dirname=dirname
  14148. else
  14149. as_dirname=false
  14150. fi
  14151. as_me=`$as_basename -- "$0" ||
  14152. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  14153. X"$0" : 'X\(//\)$' \| \
  14154. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  14155. $as_echo X/"$0" |
  14156. sed '/^.*\/\([^/][^/]*\)\/*$/{
  14157. s//\1/
  14158. q
  14159. }
  14160. /^X\/\(\/\/\)$/{
  14161. s//\1/
  14162. q
  14163. }
  14164. /^X\/\(\/\).*/{
  14165. s//\1/
  14166. q
  14167. }
  14168. s/.*/./; q'`
  14169. # Avoid depending upon Character Ranges.
  14170. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  14171. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  14172. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  14173. as_cr_digits='0123456789'
  14174. as_cr_alnum=$as_cr_Letters$as_cr_digits
  14175. ECHO_C= ECHO_N= ECHO_T=
  14176. case `echo -n x` in @%:@(((((
  14177. -n*)
  14178. case `echo 'xy\c'` in
  14179. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  14180. xy) ECHO_C='\c';;
  14181. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  14182. ECHO_T=' ';;
  14183. esac;;
  14184. *)
  14185. ECHO_N='-n';;
  14186. esac
  14187. rm -f conf$$ conf$$.exe conf$$.file
  14188. if test -d conf$$.dir; then
  14189. rm -f conf$$.dir/conf$$.file
  14190. else
  14191. rm -f conf$$.dir
  14192. mkdir conf$$.dir 2>/dev/null
  14193. fi
  14194. if (echo >conf$$.file) 2>/dev/null; then
  14195. if ln -s conf$$.file conf$$ 2>/dev/null; then
  14196. as_ln_s='ln -s'
  14197. # ... but there are two gotchas:
  14198. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  14199. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  14200. # In both cases, we have to default to `cp -pR'.
  14201. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  14202. as_ln_s='cp -pR'
  14203. elif ln conf$$.file conf$$ 2>/dev/null; then
  14204. as_ln_s=ln
  14205. else
  14206. as_ln_s='cp -pR'
  14207. fi
  14208. else
  14209. as_ln_s='cp -pR'
  14210. fi
  14211. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  14212. rmdir conf$$.dir 2>/dev/null
  14213. @%:@ as_fn_mkdir_p
  14214. @%:@ -------------
  14215. @%:@ Create "@S|@as_dir" as a directory, including parents if necessary.
  14216. as_fn_mkdir_p ()
  14217. {
  14218. case $as_dir in #(
  14219. -*) as_dir=./$as_dir;;
  14220. esac
  14221. test -d "$as_dir" || eval $as_mkdir_p || {
  14222. as_dirs=
  14223. while :; do
  14224. case $as_dir in #(
  14225. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  14226. *) as_qdir=$as_dir;;
  14227. esac
  14228. as_dirs="'$as_qdir' $as_dirs"
  14229. as_dir=`$as_dirname -- "$as_dir" ||
  14230. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  14231. X"$as_dir" : 'X\(//\)[^/]' \| \
  14232. X"$as_dir" : 'X\(//\)$' \| \
  14233. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  14234. $as_echo X"$as_dir" |
  14235. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  14236. s//\1/
  14237. q
  14238. }
  14239. /^X\(\/\/\)[^/].*/{
  14240. s//\1/
  14241. q
  14242. }
  14243. /^X\(\/\/\)$/{
  14244. s//\1/
  14245. q
  14246. }
  14247. /^X\(\/\).*/{
  14248. s//\1/
  14249. q
  14250. }
  14251. s/.*/./; q'`
  14252. test -d "$as_dir" && break
  14253. done
  14254. test -z "$as_dirs" || eval "mkdir $as_dirs"
  14255. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  14256. } @%:@ as_fn_mkdir_p
  14257. if mkdir -p . 2>/dev/null; then
  14258. as_mkdir_p='mkdir -p "$as_dir"'
  14259. else
  14260. test -d ./-p && rmdir ./-p
  14261. as_mkdir_p=false
  14262. fi
  14263. @%:@ as_fn_executable_p FILE
  14264. @%:@ -----------------------
  14265. @%:@ Test if FILE is an executable regular file.
  14266. as_fn_executable_p ()
  14267. {
  14268. test -f "$1" && test -x "$1"
  14269. } @%:@ as_fn_executable_p
  14270. as_test_x='test -x'
  14271. as_executable_p=as_fn_executable_p
  14272. # Sed expression to map a string onto a valid CPP name.
  14273. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  14274. # Sed expression to map a string onto a valid variable name.
  14275. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  14276. exec 6>&1
  14277. ## ----------------------------------- ##
  14278. ## Main body of $CONFIG_STATUS script. ##
  14279. ## ----------------------------------- ##
  14280. _ASEOF
  14281. test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  14282. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14283. # Save the log message, to keep $0 and so on meaningful, and to
  14284. # report actual input values of CONFIG_FILES etc. instead of their
  14285. # values after options handling.
  14286. ac_log="
  14287. This file was extended by zlog $as_me 1.0, which was
  14288. generated by GNU Autoconf 2.69. Invocation command line was
  14289. CONFIG_FILES = $CONFIG_FILES
  14290. CONFIG_HEADERS = $CONFIG_HEADERS
  14291. CONFIG_LINKS = $CONFIG_LINKS
  14292. CONFIG_COMMANDS = $CONFIG_COMMANDS
  14293. $ $0 $@
  14294. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  14295. "
  14296. _ACEOF
  14297. case $ac_config_files in *"
  14298. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  14299. esac
  14300. case $ac_config_headers in *"
  14301. "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
  14302. esac
  14303. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  14304. # Files that config.status was made for.
  14305. config_files="$ac_config_files"
  14306. config_headers="$ac_config_headers"
  14307. config_commands="$ac_config_commands"
  14308. _ACEOF
  14309. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14310. ac_cs_usage="\
  14311. \`$as_me' instantiates files and other configuration actions
  14312. from templates according to the current configuration. Unless the files
  14313. and actions are specified as TAGs, all are instantiated by default.
  14314. Usage: $0 [OPTION]... [TAG]...
  14315. -h, --help print this help, then exit
  14316. -V, --version print version number and configuration settings, then exit
  14317. --config print configuration, then exit
  14318. -q, --quiet, --silent
  14319. do not print progress messages
  14320. -d, --debug don't remove temporary files
  14321. --recheck update $as_me by reconfiguring in the same conditions
  14322. --file=FILE[:TEMPLATE]
  14323. instantiate the configuration file FILE
  14324. --header=FILE[:TEMPLATE]
  14325. instantiate the configuration header FILE
  14326. Configuration files:
  14327. $config_files
  14328. Configuration headers:
  14329. $config_headers
  14330. Configuration commands:
  14331. $config_commands
  14332. Report bugs to <BUG-REPORT-ADDRESS>."
  14333. _ACEOF
  14334. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  14335. ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
  14336. ac_cs_version="\\
  14337. zlog config.status 1.0
  14338. configured by $0, generated by GNU Autoconf 2.69,
  14339. with options \\"\$ac_cs_config\\"
  14340. Copyright (C) 2012 Free Software Foundation, Inc.
  14341. This config.status script is free software; the Free Software Foundation
  14342. gives unlimited permission to copy, distribute and modify it."
  14343. ac_pwd='$ac_pwd'
  14344. srcdir='$srcdir'
  14345. INSTALL='$INSTALL'
  14346. MKDIR_P='$MKDIR_P'
  14347. AWK='$AWK'
  14348. test -n "\$AWK" || AWK=awk
  14349. _ACEOF
  14350. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14351. # The default lists apply if the user does not specify any file.
  14352. ac_need_defaults=:
  14353. while test $# != 0
  14354. do
  14355. case $1 in
  14356. --*=?*)
  14357. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  14358. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  14359. ac_shift=:
  14360. ;;
  14361. --*=)
  14362. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  14363. ac_optarg=
  14364. ac_shift=:
  14365. ;;
  14366. *)
  14367. ac_option=$1
  14368. ac_optarg=$2
  14369. ac_shift=shift
  14370. ;;
  14371. esac
  14372. case $ac_option in
  14373. # Handling of the options.
  14374. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  14375. ac_cs_recheck=: ;;
  14376. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  14377. $as_echo "$ac_cs_version"; exit ;;
  14378. --config | --confi | --conf | --con | --co | --c )
  14379. $as_echo "$ac_cs_config"; exit ;;
  14380. --debug | --debu | --deb | --de | --d | -d )
  14381. debug=: ;;
  14382. --file | --fil | --fi | --f )
  14383. $ac_shift
  14384. case $ac_optarg in
  14385. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  14386. '') as_fn_error $? "missing file argument" ;;
  14387. esac
  14388. as_fn_append CONFIG_FILES " '$ac_optarg'"
  14389. ac_need_defaults=false;;
  14390. --header | --heade | --head | --hea )
  14391. $ac_shift
  14392. case $ac_optarg in
  14393. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  14394. esac
  14395. as_fn_append CONFIG_HEADERS " '$ac_optarg'"
  14396. ac_need_defaults=false;;
  14397. --he | --h)
  14398. # Conflict between --help and --header
  14399. as_fn_error $? "ambiguous option: \`$1'
  14400. Try \`$0 --help' for more information.";;
  14401. --help | --hel | -h )
  14402. $as_echo "$ac_cs_usage"; exit ;;
  14403. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  14404. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  14405. ac_cs_silent=: ;;
  14406. # This is an error.
  14407. -*) as_fn_error $? "unrecognized option: \`$1'
  14408. Try \`$0 --help' for more information." ;;
  14409. *) as_fn_append ac_config_targets " $1"
  14410. ac_need_defaults=false ;;
  14411. esac
  14412. shift
  14413. done
  14414. ac_configure_extra_args=
  14415. if $ac_cs_silent; then
  14416. exec 6>/dev/null
  14417. ac_configure_extra_args="$ac_configure_extra_args --silent"
  14418. fi
  14419. _ACEOF
  14420. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  14421. if \$ac_cs_recheck; then
  14422. set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  14423. shift
  14424. \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  14425. CONFIG_SHELL='$SHELL'
  14426. export CONFIG_SHELL
  14427. exec "\$@"
  14428. fi
  14429. _ACEOF
  14430. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14431. exec 5>>config.log
  14432. {
  14433. echo
  14434. sed 'h;s/./-/g;s/^.../@%:@@%:@ /;s/...$/ @%:@@%:@/;p;x;p;x' <<_ASBOX
  14435. @%:@@%:@ Running $as_me. @%:@@%:@
  14436. _ASBOX
  14437. $as_echo "$ac_log"
  14438. } >&5
  14439. _ACEOF
  14440. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  14441. #
  14442. # INIT-COMMANDS
  14443. #
  14444. AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
  14445. # The HP-UX ksh and POSIX shell print the target directory to stdout
  14446. # if CDPATH is set.
  14447. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  14448. sed_quote_subst='$sed_quote_subst'
  14449. double_quote_subst='$double_quote_subst'
  14450. delay_variable_subst='$delay_variable_subst'
  14451. macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
  14452. macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
  14453. enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
  14454. enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
  14455. pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
  14456. enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
  14457. SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
  14458. ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
  14459. PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
  14460. host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
  14461. host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
  14462. host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
  14463. build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
  14464. build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
  14465. build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
  14466. SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
  14467. Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
  14468. GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
  14469. EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
  14470. FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
  14471. LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
  14472. NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
  14473. LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
  14474. max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
  14475. ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
  14476. exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
  14477. lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
  14478. lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
  14479. lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
  14480. lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
  14481. lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
  14482. reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
  14483. reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
  14484. OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
  14485. deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
  14486. file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
  14487. file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
  14488. want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
  14489. DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
  14490. sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
  14491. AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
  14492. AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
  14493. archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
  14494. STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
  14495. RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
  14496. old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  14497. old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  14498. old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
  14499. lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
  14500. CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
  14501. CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
  14502. compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
  14503. GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
  14504. lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
  14505. lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
  14506. lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
  14507. 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"`'
  14508. nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
  14509. lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
  14510. objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
  14511. MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
  14512. lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
  14513. lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
  14514. lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
  14515. lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
  14516. lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
  14517. need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
  14518. MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
  14519. DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
  14520. NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
  14521. LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
  14522. OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
  14523. OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
  14524. libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
  14525. shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
  14526. extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  14527. archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
  14528. enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
  14529. export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
  14530. whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
  14531. compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
  14532. old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
  14533. old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  14534. archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
  14535. archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  14536. module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
  14537. module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  14538. with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
  14539. allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
  14540. no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
  14541. hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
  14542. hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
  14543. hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
  14544. hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
  14545. hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
  14546. hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
  14547. hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
  14548. inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
  14549. link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
  14550. always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
  14551. export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
  14552. exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
  14553. include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
  14554. prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
  14555. postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
  14556. file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
  14557. variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
  14558. need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
  14559. need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
  14560. version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
  14561. runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
  14562. shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
  14563. shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
  14564. libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
  14565. library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
  14566. soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
  14567. install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
  14568. postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  14569. postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  14570. finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
  14571. finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
  14572. hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
  14573. sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
  14574. sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
  14575. hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
  14576. enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
  14577. enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
  14578. enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
  14579. old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
  14580. striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
  14581. compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
  14582. predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
  14583. postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
  14584. predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
  14585. postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
  14586. compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
  14587. LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
  14588. reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
  14589. reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  14590. old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  14591. compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
  14592. GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
  14593. lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
  14594. lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
  14595. lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
  14596. lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
  14597. lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
  14598. archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
  14599. enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
  14600. export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  14601. whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  14602. compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
  14603. old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  14604. old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  14605. archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  14606. archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  14607. module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  14608. module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  14609. with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
  14610. allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
  14611. no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
  14612. hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  14613. hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
  14614. hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
  14615. hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
  14616. hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
  14617. hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
  14618. hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
  14619. inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
  14620. link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
  14621. always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
  14622. export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  14623. exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
  14624. include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
  14625. prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  14626. postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  14627. file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
  14628. hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
  14629. compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
  14630. predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
  14631. postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
  14632. predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
  14633. postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
  14634. compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
  14635. LTCC='$LTCC'
  14636. LTCFLAGS='$LTCFLAGS'
  14637. compiler='$compiler_DEFAULT'
  14638. # A function that is used when there is no print builtin or printf.
  14639. func_fallback_echo ()
  14640. {
  14641. eval 'cat <<_LTECHO_EOF
  14642. \$1
  14643. _LTECHO_EOF'
  14644. }
  14645. # Quote evaled strings.
  14646. for var in SHELL \
  14647. ECHO \
  14648. PATH_SEPARATOR \
  14649. SED \
  14650. GREP \
  14651. EGREP \
  14652. FGREP \
  14653. LD \
  14654. NM \
  14655. LN_S \
  14656. lt_SP2NL \
  14657. lt_NL2SP \
  14658. reload_flag \
  14659. OBJDUMP \
  14660. deplibs_check_method \
  14661. file_magic_cmd \
  14662. file_magic_glob \
  14663. want_nocaseglob \
  14664. DLLTOOL \
  14665. sharedlib_from_linklib_cmd \
  14666. AR \
  14667. AR_FLAGS \
  14668. archiver_list_spec \
  14669. STRIP \
  14670. RANLIB \
  14671. CC \
  14672. CFLAGS \
  14673. compiler \
  14674. lt_cv_sys_global_symbol_pipe \
  14675. lt_cv_sys_global_symbol_to_cdecl \
  14676. lt_cv_sys_global_symbol_to_c_name_address \
  14677. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
  14678. nm_file_list_spec \
  14679. lt_prog_compiler_no_builtin_flag \
  14680. lt_prog_compiler_pic \
  14681. lt_prog_compiler_wl \
  14682. lt_prog_compiler_static \
  14683. lt_cv_prog_compiler_c_o \
  14684. need_locks \
  14685. MANIFEST_TOOL \
  14686. DSYMUTIL \
  14687. NMEDIT \
  14688. LIPO \
  14689. OTOOL \
  14690. OTOOL64 \
  14691. shrext_cmds \
  14692. export_dynamic_flag_spec \
  14693. whole_archive_flag_spec \
  14694. compiler_needs_object \
  14695. with_gnu_ld \
  14696. allow_undefined_flag \
  14697. no_undefined_flag \
  14698. hardcode_libdir_flag_spec \
  14699. hardcode_libdir_separator \
  14700. exclude_expsyms \
  14701. include_expsyms \
  14702. file_list_spec \
  14703. variables_saved_for_relink \
  14704. libname_spec \
  14705. library_names_spec \
  14706. soname_spec \
  14707. install_override_mode \
  14708. finish_eval \
  14709. old_striplib \
  14710. striplib \
  14711. compiler_lib_search_dirs \
  14712. predep_objects \
  14713. postdep_objects \
  14714. predeps \
  14715. postdeps \
  14716. compiler_lib_search_path \
  14717. LD_CXX \
  14718. reload_flag_CXX \
  14719. compiler_CXX \
  14720. lt_prog_compiler_no_builtin_flag_CXX \
  14721. lt_prog_compiler_pic_CXX \
  14722. lt_prog_compiler_wl_CXX \
  14723. lt_prog_compiler_static_CXX \
  14724. lt_cv_prog_compiler_c_o_CXX \
  14725. export_dynamic_flag_spec_CXX \
  14726. whole_archive_flag_spec_CXX \
  14727. compiler_needs_object_CXX \
  14728. with_gnu_ld_CXX \
  14729. allow_undefined_flag_CXX \
  14730. no_undefined_flag_CXX \
  14731. hardcode_libdir_flag_spec_CXX \
  14732. hardcode_libdir_separator_CXX \
  14733. exclude_expsyms_CXX \
  14734. include_expsyms_CXX \
  14735. file_list_spec_CXX \
  14736. compiler_lib_search_dirs_CXX \
  14737. predep_objects_CXX \
  14738. postdep_objects_CXX \
  14739. predeps_CXX \
  14740. postdeps_CXX \
  14741. compiler_lib_search_path_CXX; do
  14742. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  14743. *[\\\\\\\`\\"\\\$]*)
  14744. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
  14745. ;;
  14746. *)
  14747. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  14748. ;;
  14749. esac
  14750. done
  14751. # Double-quote double-evaled strings.
  14752. for var in reload_cmds \
  14753. old_postinstall_cmds \
  14754. old_postuninstall_cmds \
  14755. old_archive_cmds \
  14756. extract_expsyms_cmds \
  14757. old_archive_from_new_cmds \
  14758. old_archive_from_expsyms_cmds \
  14759. archive_cmds \
  14760. archive_expsym_cmds \
  14761. module_cmds \
  14762. module_expsym_cmds \
  14763. export_symbols_cmds \
  14764. prelink_cmds \
  14765. postlink_cmds \
  14766. postinstall_cmds \
  14767. postuninstall_cmds \
  14768. finish_cmds \
  14769. sys_lib_search_path_spec \
  14770. sys_lib_dlsearch_path_spec \
  14771. reload_cmds_CXX \
  14772. old_archive_cmds_CXX \
  14773. old_archive_from_new_cmds_CXX \
  14774. old_archive_from_expsyms_cmds_CXX \
  14775. archive_cmds_CXX \
  14776. archive_expsym_cmds_CXX \
  14777. module_cmds_CXX \
  14778. module_expsym_cmds_CXX \
  14779. export_symbols_cmds_CXX \
  14780. prelink_cmds_CXX \
  14781. postlink_cmds_CXX; do
  14782. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  14783. *[\\\\\\\`\\"\\\$]*)
  14784. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
  14785. ;;
  14786. *)
  14787. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  14788. ;;
  14789. esac
  14790. done
  14791. ac_aux_dir='$ac_aux_dir'
  14792. xsi_shell='$xsi_shell'
  14793. lt_shell_append='$lt_shell_append'
  14794. # See if we are running on zsh, and set the options which allow our
  14795. # commands through without removal of \ escapes INIT.
  14796. if test -n "\${ZSH_VERSION+set}" ; then
  14797. setopt NO_GLOB_SUBST
  14798. fi
  14799. PACKAGE='$PACKAGE'
  14800. VERSION='$VERSION'
  14801. TIMESTAMP='$TIMESTAMP'
  14802. RM='$RM'
  14803. ofile='$ofile'
  14804. _ACEOF
  14805. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14806. # Handling of arguments.
  14807. for ac_config_target in $ac_config_targets
  14808. do
  14809. case $ac_config_target in
  14810. "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
  14811. "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
  14812. "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
  14813. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  14814. *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  14815. esac
  14816. done
  14817. # If the user did not use the arguments to specify the items to instantiate,
  14818. # then the envvar interface is used. Set only those that are not.
  14819. # We use the long form for the default assignment because of an extremely
  14820. # bizarre bug on SunOS 4.1.3.
  14821. if $ac_need_defaults; then
  14822. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  14823. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  14824. test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  14825. fi
  14826. # Have a temporary directory for convenience. Make it in the build tree
  14827. # simply because there is no reason against having it here, and in addition,
  14828. # creating and moving files from /tmp can sometimes cause problems.
  14829. # Hook for its removal unless debugging.
  14830. # Note that there is a small window in which the directory will not be cleaned:
  14831. # after its creation but before its name has been assigned to `$tmp'.
  14832. $debug ||
  14833. {
  14834. tmp= ac_tmp=
  14835. trap 'exit_status=$?
  14836. : "${ac_tmp:=$tmp}"
  14837. { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
  14838. ' 0
  14839. trap 'as_fn_exit 1' 1 2 13 15
  14840. }
  14841. # Create a (secure) tmp directory for tmp files.
  14842. {
  14843. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  14844. test -d "$tmp"
  14845. } ||
  14846. {
  14847. tmp=./conf$$-$RANDOM
  14848. (umask 077 && mkdir "$tmp")
  14849. } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
  14850. ac_tmp=$tmp
  14851. # Set up the scripts for CONFIG_FILES section.
  14852. # No need to generate them if there are no CONFIG_FILES.
  14853. # This happens for instance with `./config.status config.h'.
  14854. if test -n "$CONFIG_FILES"; then
  14855. ac_cr=`echo X | tr X '\015'`
  14856. # On cygwin, bash can eat \r inside `` if the user requested igncr.
  14857. # But we know of no other shell where ac_cr would be empty at this
  14858. # point, so we can use a bashism as a fallback.
  14859. if test "x$ac_cr" = x; then
  14860. eval ac_cr=\$\'\\r\'
  14861. fi
  14862. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  14863. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  14864. ac_cs_awk_cr='\\r'
  14865. else
  14866. ac_cs_awk_cr=$ac_cr
  14867. fi
  14868. echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
  14869. _ACEOF
  14870. {
  14871. echo "cat >conf$$subs.awk <<_ACEOF" &&
  14872. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  14873. echo "_ACEOF"
  14874. } >conf$$subs.sh ||
  14875. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  14876. ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
  14877. ac_delim='%!_!# '
  14878. for ac_last_try in false false false false false :; do
  14879. . ./conf$$subs.sh ||
  14880. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  14881. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  14882. if test $ac_delim_n = $ac_delim_num; then
  14883. break
  14884. elif $ac_last_try; then
  14885. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  14886. else
  14887. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  14888. fi
  14889. done
  14890. rm -f conf$$subs.sh
  14891. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  14892. cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
  14893. _ACEOF
  14894. sed -n '
  14895. h
  14896. s/^/S["/; s/!.*/"]=/
  14897. p
  14898. g
  14899. s/^[^!]*!//
  14900. :repl
  14901. t repl
  14902. s/'"$ac_delim"'$//
  14903. t delim
  14904. :nl
  14905. h
  14906. s/\(.\{148\}\)..*/\1/
  14907. t more1
  14908. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  14909. p
  14910. n
  14911. b repl
  14912. :more1
  14913. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  14914. p
  14915. g
  14916. s/.\{148\}//
  14917. t nl
  14918. :delim
  14919. h
  14920. s/\(.\{148\}\)..*/\1/
  14921. t more2
  14922. s/["\\]/\\&/g; s/^/"/; s/$/"/
  14923. p
  14924. b
  14925. :more2
  14926. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  14927. p
  14928. g
  14929. s/.\{148\}//
  14930. t delim
  14931. ' <conf$$subs.awk | sed '
  14932. /^[^""]/{
  14933. N
  14934. s/\n//
  14935. }
  14936. ' >>$CONFIG_STATUS || ac_write_fail=1
  14937. rm -f conf$$subs.awk
  14938. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  14939. _ACAWK
  14940. cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
  14941. for (key in S) S_is_set[key] = 1
  14942. FS = ""
  14943. }
  14944. {
  14945. line = $ 0
  14946. nfields = split(line, field, "@")
  14947. substed = 0
  14948. len = length(field[1])
  14949. for (i = 2; i < nfields; i++) {
  14950. key = field[i]
  14951. keylen = length(key)
  14952. if (S_is_set[key]) {
  14953. value = S[key]
  14954. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  14955. len += length(value) + length(field[++i])
  14956. substed = 1
  14957. } else
  14958. len += 1 + keylen
  14959. }
  14960. print line
  14961. }
  14962. _ACAWK
  14963. _ACEOF
  14964. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14965. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  14966. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  14967. else
  14968. cat
  14969. fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
  14970. || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
  14971. _ACEOF
  14972. # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
  14973. # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
  14974. # trailing colons and then remove the whole line if VPATH becomes empty
  14975. # (actually we leave an empty line to preserve line numbers).
  14976. if test "x$srcdir" = x.; then
  14977. ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
  14978. h
  14979. s///
  14980. s/^/:/
  14981. s/[ ]*$/:/
  14982. s/:\$(srcdir):/:/g
  14983. s/:\${srcdir}:/:/g
  14984. s/:@srcdir@:/:/g
  14985. s/^:*//
  14986. s/:*$//
  14987. x
  14988. s/\(=[ ]*\).*/\1/
  14989. G
  14990. s/\n//
  14991. s/^[^=]*=[ ]*$//
  14992. }'
  14993. fi
  14994. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14995. fi # test -n "$CONFIG_FILES"
  14996. # Set up the scripts for CONFIG_HEADERS section.
  14997. # No need to generate them if there are no CONFIG_HEADERS.
  14998. # This happens for instance with `./config.status Makefile'.
  14999. if test -n "$CONFIG_HEADERS"; then
  15000. cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
  15001. BEGIN {
  15002. _ACEOF
  15003. # Transform confdefs.h into an awk script `defines.awk', embedded as
  15004. # here-document in config.status, that substitutes the proper values into
  15005. # config.h.in to produce config.h.
  15006. # Create a delimiter string that does not exist in confdefs.h, to ease
  15007. # handling of long lines.
  15008. ac_delim='%!_!# '
  15009. for ac_last_try in false false :; do
  15010. ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
  15011. if test -z "$ac_tt"; then
  15012. break
  15013. elif $ac_last_try; then
  15014. as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
  15015. else
  15016. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  15017. fi
  15018. done
  15019. # For the awk script, D is an array of macro values keyed by name,
  15020. # likewise P contains macro parameters if any. Preserve backslash
  15021. # newline sequences.
  15022. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  15023. sed -n '
  15024. s/.\{148\}/&'"$ac_delim"'/g
  15025. t rset
  15026. :rset
  15027. s/^[ ]*#[ ]*define[ ][ ]*/ /
  15028. t def
  15029. d
  15030. :def
  15031. s/\\$//
  15032. t bsnl
  15033. s/["\\]/\\&/g
  15034. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  15035. D["\1"]=" \3"/p
  15036. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
  15037. d
  15038. :bsnl
  15039. s/["\\]/\\&/g
  15040. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  15041. D["\1"]=" \3\\\\\\n"\\/p
  15042. t cont
  15043. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
  15044. t cont
  15045. d
  15046. :cont
  15047. n
  15048. s/.\{148\}/&'"$ac_delim"'/g
  15049. t clear
  15050. :clear
  15051. s/\\$//
  15052. t bsnlc
  15053. s/["\\]/\\&/g; s/^/"/; s/$/"/p
  15054. d
  15055. :bsnlc
  15056. s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
  15057. b cont
  15058. ' <confdefs.h | sed '
  15059. s/'"$ac_delim"'/"\\\
  15060. "/g' >>$CONFIG_STATUS || ac_write_fail=1
  15061. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  15062. for (key in D) D_is_set[key] = 1
  15063. FS = ""
  15064. }
  15065. /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  15066. line = \$ 0
  15067. split(line, arg, " ")
  15068. if (arg[1] == "#") {
  15069. defundef = arg[2]
  15070. mac1 = arg[3]
  15071. } else {
  15072. defundef = substr(arg[1], 2)
  15073. mac1 = arg[2]
  15074. }
  15075. split(mac1, mac2, "(") #)
  15076. macro = mac2[1]
  15077. prefix = substr(line, 1, index(line, defundef) - 1)
  15078. if (D_is_set[macro]) {
  15079. # Preserve the white space surrounding the "#".
  15080. print prefix "define", macro P[macro] D[macro]
  15081. next
  15082. } else {
  15083. # Replace #undef with comments. This is necessary, for example,
  15084. # in the case of _POSIX_SOURCE, which is predefined and required
  15085. # on some systems where configure will not decide to define it.
  15086. if (defundef == "undef") {
  15087. print "/*", prefix defundef, macro, "*/"
  15088. next
  15089. }
  15090. }
  15091. }
  15092. { print }
  15093. _ACAWK
  15094. _ACEOF
  15095. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  15096. as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
  15097. fi # test -n "$CONFIG_HEADERS"
  15098. eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
  15099. shift
  15100. for ac_tag
  15101. do
  15102. case $ac_tag in
  15103. :[FHLC]) ac_mode=$ac_tag; continue;;
  15104. esac
  15105. case $ac_mode$ac_tag in
  15106. :[FHL]*:*);;
  15107. :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
  15108. :[FH]-) ac_tag=-:-;;
  15109. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  15110. esac
  15111. ac_save_IFS=$IFS
  15112. IFS=:
  15113. set x $ac_tag
  15114. IFS=$ac_save_IFS
  15115. shift
  15116. ac_file=$1
  15117. shift
  15118. case $ac_mode in
  15119. :L) ac_source=$1;;
  15120. :[FH])
  15121. ac_file_inputs=
  15122. for ac_f
  15123. do
  15124. case $ac_f in
  15125. -) ac_f="$ac_tmp/stdin";;
  15126. *) # Look for the file first in the build tree, then in the source tree
  15127. # (if the path is not absolute). The absolute path cannot be DOS-style,
  15128. # because $ac_f cannot contain `:'.
  15129. test -f "$ac_f" ||
  15130. case $ac_f in
  15131. [\\/$]*) false;;
  15132. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  15133. esac ||
  15134. as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
  15135. esac
  15136. case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  15137. as_fn_append ac_file_inputs " '$ac_f'"
  15138. done
  15139. # Let's still pretend it is `configure' which instantiates (i.e., don't
  15140. # use $as_me), people would be surprised to read:
  15141. # /* config.h. Generated by config.status. */
  15142. configure_input='Generated from '`
  15143. $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  15144. `' by configure.'
  15145. if test x"$ac_file" != x-; then
  15146. configure_input="$ac_file. $configure_input"
  15147. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  15148. $as_echo "$as_me: creating $ac_file" >&6;}
  15149. fi
  15150. # Neutralize special characters interpreted by sed in replacement strings.
  15151. case $configure_input in #(
  15152. *\&* | *\|* | *\\* )
  15153. ac_sed_conf_input=`$as_echo "$configure_input" |
  15154. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  15155. *) ac_sed_conf_input=$configure_input;;
  15156. esac
  15157. case $ac_tag in
  15158. *:-:* | *:-) cat >"$ac_tmp/stdin" \
  15159. || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
  15160. esac
  15161. ;;
  15162. esac
  15163. ac_dir=`$as_dirname -- "$ac_file" ||
  15164. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  15165. X"$ac_file" : 'X\(//\)[^/]' \| \
  15166. X"$ac_file" : 'X\(//\)$' \| \
  15167. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  15168. $as_echo X"$ac_file" |
  15169. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  15170. s//\1/
  15171. q
  15172. }
  15173. /^X\(\/\/\)[^/].*/{
  15174. s//\1/
  15175. q
  15176. }
  15177. /^X\(\/\/\)$/{
  15178. s//\1/
  15179. q
  15180. }
  15181. /^X\(\/\).*/{
  15182. s//\1/
  15183. q
  15184. }
  15185. s/.*/./; q'`
  15186. as_dir="$ac_dir"; as_fn_mkdir_p
  15187. ac_builddir=.
  15188. case "$ac_dir" in
  15189. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  15190. *)
  15191. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  15192. # A ".." for each directory in $ac_dir_suffix.
  15193. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  15194. case $ac_top_builddir_sub in
  15195. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  15196. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  15197. esac ;;
  15198. esac
  15199. ac_abs_top_builddir=$ac_pwd
  15200. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  15201. # for backward compatibility:
  15202. ac_top_builddir=$ac_top_build_prefix
  15203. case $srcdir in
  15204. .) # We are building in place.
  15205. ac_srcdir=.
  15206. ac_top_srcdir=$ac_top_builddir_sub
  15207. ac_abs_top_srcdir=$ac_pwd ;;
  15208. [\\/]* | ?:[\\/]* ) # Absolute name.
  15209. ac_srcdir=$srcdir$ac_dir_suffix;
  15210. ac_top_srcdir=$srcdir
  15211. ac_abs_top_srcdir=$srcdir ;;
  15212. *) # Relative name.
  15213. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  15214. ac_top_srcdir=$ac_top_build_prefix$srcdir
  15215. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  15216. esac
  15217. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  15218. case $ac_mode in
  15219. :F)
  15220. #
  15221. # CONFIG_FILE
  15222. #
  15223. case $INSTALL in
  15224. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  15225. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  15226. esac
  15227. ac_MKDIR_P=$MKDIR_P
  15228. case $MKDIR_P in
  15229. [\\/$]* | ?:[\\/]* ) ;;
  15230. */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
  15231. esac
  15232. _ACEOF
  15233. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  15234. # If the template does not know about datarootdir, expand it.
  15235. # FIXME: This hack should be removed a few years after 2.60.
  15236. ac_datarootdir_hack=; ac_datarootdir_seen=
  15237. ac_sed_dataroot='
  15238. /datarootdir/ {
  15239. p
  15240. q
  15241. }
  15242. /@datadir@/p
  15243. /@docdir@/p
  15244. /@infodir@/p
  15245. /@localedir@/p
  15246. /@mandir@/p'
  15247. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  15248. *datarootdir*) ac_datarootdir_seen=yes;;
  15249. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  15250. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  15251. $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  15252. _ACEOF
  15253. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  15254. ac_datarootdir_hack='
  15255. s&@datadir@&$datadir&g
  15256. s&@docdir@&$docdir&g
  15257. s&@infodir@&$infodir&g
  15258. s&@localedir@&$localedir&g
  15259. s&@mandir@&$mandir&g
  15260. s&\\\${datarootdir}&$datarootdir&g' ;;
  15261. esac
  15262. _ACEOF
  15263. # Neutralize VPATH when `$srcdir' = `.'.
  15264. # Shell code in configure.ac might set extrasub.
  15265. # FIXME: do we really want to maintain this feature?
  15266. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  15267. ac_sed_extra="$ac_vpsub
  15268. $extrasub
  15269. _ACEOF
  15270. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  15271. :t
  15272. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  15273. s|@configure_input@|$ac_sed_conf_input|;t t
  15274. s&@top_builddir@&$ac_top_builddir_sub&;t t
  15275. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  15276. s&@srcdir@&$ac_srcdir&;t t
  15277. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  15278. s&@top_srcdir@&$ac_top_srcdir&;t t
  15279. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  15280. s&@builddir@&$ac_builddir&;t t
  15281. s&@abs_builddir@&$ac_abs_builddir&;t t
  15282. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  15283. s&@INSTALL@&$ac_INSTALL&;t t
  15284. s&@MKDIR_P@&$ac_MKDIR_P&;t t
  15285. $ac_datarootdir_hack
  15286. "
  15287. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
  15288. >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  15289. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  15290. { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
  15291. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
  15292. "$ac_tmp/out"`; test -z "$ac_out"; } &&
  15293. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  15294. which seems to be undefined. Please make sure it is defined" >&5
  15295. $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  15296. which seems to be undefined. Please make sure it is defined" >&2;}
  15297. rm -f "$ac_tmp/stdin"
  15298. case $ac_file in
  15299. -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
  15300. *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
  15301. esac \
  15302. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  15303. ;;
  15304. :H)
  15305. #
  15306. # CONFIG_HEADER
  15307. #
  15308. if test x"$ac_file" != x-; then
  15309. {
  15310. $as_echo "/* $configure_input */" \
  15311. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
  15312. } >"$ac_tmp/config.h" \
  15313. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  15314. if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
  15315. { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
  15316. $as_echo "$as_me: $ac_file is unchanged" >&6;}
  15317. else
  15318. rm -f "$ac_file"
  15319. mv "$ac_tmp/config.h" "$ac_file" \
  15320. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  15321. fi
  15322. else
  15323. $as_echo "/* $configure_input */" \
  15324. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
  15325. || as_fn_error $? "could not create -" "$LINENO" 5
  15326. fi
  15327. # Compute "$ac_file"'s index in $config_headers.
  15328. _am_arg="$ac_file"
  15329. _am_stamp_count=1
  15330. for _am_header in $config_headers :; do
  15331. case $_am_header in
  15332. $_am_arg | $_am_arg:* )
  15333. break ;;
  15334. * )
  15335. _am_stamp_count=`expr $_am_stamp_count + 1` ;;
  15336. esac
  15337. done
  15338. echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
  15339. $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  15340. X"$_am_arg" : 'X\(//\)[^/]' \| \
  15341. X"$_am_arg" : 'X\(//\)$' \| \
  15342. X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
  15343. $as_echo X"$_am_arg" |
  15344. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  15345. s//\1/
  15346. q
  15347. }
  15348. /^X\(\/\/\)[^/].*/{
  15349. s//\1/
  15350. q
  15351. }
  15352. /^X\(\/\/\)$/{
  15353. s//\1/
  15354. q
  15355. }
  15356. /^X\(\/\).*/{
  15357. s//\1/
  15358. q
  15359. }
  15360. s/.*/./; q'`/stamp-h$_am_stamp_count
  15361. ;;
  15362. :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
  15363. $as_echo "$as_me: executing $ac_file commands" >&6;}
  15364. ;;
  15365. esac
  15366. case $ac_file$ac_mode in
  15367. "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
  15368. # Older Autoconf quotes --file arguments for eval, but not when files
  15369. # are listed without --file. Let's play safe and only enable the eval
  15370. # if we detect the quoting.
  15371. case $CONFIG_FILES in
  15372. *\'*) eval set x "$CONFIG_FILES" ;;
  15373. *) set x $CONFIG_FILES ;;
  15374. esac
  15375. shift
  15376. for mf
  15377. do
  15378. # Strip MF so we end up with the name of the file.
  15379. mf=`echo "$mf" | sed -e 's/:.*$//'`
  15380. # Check whether this is an Automake generated Makefile or not.
  15381. # We used to match only the files named 'Makefile.in', but
  15382. # some people rename them; so instead we look at the file content.
  15383. # Grep'ing the first line is not enough: some people post-process
  15384. # each Makefile.in and add a new line on top of each file to say so.
  15385. # Grep'ing the whole file is not good either: AIX grep has a line
  15386. # limit of 2048, but all sed's we know have understand at least 4000.
  15387. if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
  15388. dirpart=`$as_dirname -- "$mf" ||
  15389. $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  15390. X"$mf" : 'X\(//\)[^/]' \| \
  15391. X"$mf" : 'X\(//\)$' \| \
  15392. X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
  15393. $as_echo X"$mf" |
  15394. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  15395. s//\1/
  15396. q
  15397. }
  15398. /^X\(\/\/\)[^/].*/{
  15399. s//\1/
  15400. q
  15401. }
  15402. /^X\(\/\/\)$/{
  15403. s//\1/
  15404. q
  15405. }
  15406. /^X\(\/\).*/{
  15407. s//\1/
  15408. q
  15409. }
  15410. s/.*/./; q'`
  15411. else
  15412. continue
  15413. fi
  15414. # Extract the definition of DEPDIR, am__include, and am__quote
  15415. # from the Makefile without running 'make'.
  15416. DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
  15417. test -z "$DEPDIR" && continue
  15418. am__include=`sed -n 's/^am__include = //p' < "$mf"`
  15419. test -z "$am__include" && continue
  15420. am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
  15421. # Find all dependency output files, they are included files with
  15422. # $(DEPDIR) in their names. We invoke sed twice because it is the
  15423. # simplest approach to changing $(DEPDIR) to its actual value in the
  15424. # expansion.
  15425. for file in `sed -n "
  15426. s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
  15427. sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
  15428. # Make sure the directory exists.
  15429. test -f "$dirpart/$file" && continue
  15430. fdir=`$as_dirname -- "$file" ||
  15431. $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  15432. X"$file" : 'X\(//\)[^/]' \| \
  15433. X"$file" : 'X\(//\)$' \| \
  15434. X"$file" : 'X\(/\)' \| . 2>/dev/null ||
  15435. $as_echo X"$file" |
  15436. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  15437. s//\1/
  15438. q
  15439. }
  15440. /^X\(\/\/\)[^/].*/{
  15441. s//\1/
  15442. q
  15443. }
  15444. /^X\(\/\/\)$/{
  15445. s//\1/
  15446. q
  15447. }
  15448. /^X\(\/\).*/{
  15449. s//\1/
  15450. q
  15451. }
  15452. s/.*/./; q'`
  15453. as_dir=$dirpart/$fdir; as_fn_mkdir_p
  15454. # echo "creating $dirpart/$file"
  15455. echo '# dummy' > "$dirpart/$file"
  15456. done
  15457. done
  15458. }
  15459. ;;
  15460. "libtool":C)
  15461. # See if we are running on zsh, and set the options which allow our
  15462. # commands through without removal of \ escapes.
  15463. if test -n "${ZSH_VERSION+set}" ; then
  15464. setopt NO_GLOB_SUBST
  15465. fi
  15466. cfgfile="${ofile}T"
  15467. trap "$RM \"$cfgfile\"; exit 1" 1 2 15
  15468. $RM "$cfgfile"
  15469. cat <<_LT_EOF >> "$cfgfile"
  15470. #! $SHELL
  15471. # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
  15472. # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
  15473. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  15474. # NOTE: Changes made to this file will be lost: look at ltmain.sh.
  15475. #
  15476. # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
  15477. # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
  15478. # Foundation, Inc.
  15479. # Written by Gordon Matzigkeit, 1996
  15480. #
  15481. # This file is part of GNU Libtool.
  15482. #
  15483. # GNU Libtool is free software; you can redistribute it and/or
  15484. # modify it under the terms of the GNU General Public License as
  15485. # published by the Free Software Foundation; either version 2 of
  15486. # the License, or (at your option) any later version.
  15487. #
  15488. # As a special exception to the GNU General Public License,
  15489. # if you distribute this file as part of a program or library that
  15490. # is built using GNU Libtool, you may include this file under the
  15491. # same distribution terms that you use for the rest of that program.
  15492. #
  15493. # GNU Libtool is distributed in the hope that it will be useful,
  15494. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  15495. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  15496. # GNU General Public License for more details.
  15497. #
  15498. # You should have received a copy of the GNU General Public License
  15499. # along with GNU Libtool; see the file COPYING. If not, a copy
  15500. # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
  15501. # obtained by writing to the Free Software Foundation, Inc.,
  15502. # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  15503. # The names of the tagged configurations supported by this script.
  15504. available_tags="CXX "
  15505. # ### BEGIN LIBTOOL CONFIG
  15506. # Which release of libtool.m4 was used?
  15507. macro_version=$macro_version
  15508. macro_revision=$macro_revision
  15509. # Whether or not to build shared libraries.
  15510. build_libtool_libs=$enable_shared
  15511. # Whether or not to build static libraries.
  15512. build_old_libs=$enable_static
  15513. # What type of objects to build.
  15514. pic_mode=$pic_mode
  15515. # Whether or not to optimize for fast installation.
  15516. fast_install=$enable_fast_install
  15517. # Shell to use when invoking shell scripts.
  15518. SHELL=$lt_SHELL
  15519. # An echo program that protects backslashes.
  15520. ECHO=$lt_ECHO
  15521. # The PATH separator for the build system.
  15522. PATH_SEPARATOR=$lt_PATH_SEPARATOR
  15523. # The host system.
  15524. host_alias=$host_alias
  15525. host=$host
  15526. host_os=$host_os
  15527. # The build system.
  15528. build_alias=$build_alias
  15529. build=$build
  15530. build_os=$build_os
  15531. # A sed program that does not truncate output.
  15532. SED=$lt_SED
  15533. # Sed that helps us avoid accidentally triggering echo(1) options like -n.
  15534. Xsed="\$SED -e 1s/^X//"
  15535. # A grep program that handles long lines.
  15536. GREP=$lt_GREP
  15537. # An ERE matcher.
  15538. EGREP=$lt_EGREP
  15539. # A literal string matcher.
  15540. FGREP=$lt_FGREP
  15541. # A BSD- or MS-compatible name lister.
  15542. NM=$lt_NM
  15543. # Whether we need soft or hard links.
  15544. LN_S=$lt_LN_S
  15545. # What is the maximum length of a command?
  15546. max_cmd_len=$max_cmd_len
  15547. # Object file suffix (normally "o").
  15548. objext=$ac_objext
  15549. # Executable file suffix (normally "").
  15550. exeext=$exeext
  15551. # whether the shell understands "unset".
  15552. lt_unset=$lt_unset
  15553. # turn spaces into newlines.
  15554. SP2NL=$lt_lt_SP2NL
  15555. # turn newlines into spaces.
  15556. NL2SP=$lt_lt_NL2SP
  15557. # convert \$build file names to \$host format.
  15558. to_host_file_cmd=$lt_cv_to_host_file_cmd
  15559. # convert \$build files to toolchain format.
  15560. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  15561. # An object symbol dumper.
  15562. OBJDUMP=$lt_OBJDUMP
  15563. # Method to check whether dependent libraries are shared objects.
  15564. deplibs_check_method=$lt_deplibs_check_method
  15565. # Command to use when deplibs_check_method = "file_magic".
  15566. file_magic_cmd=$lt_file_magic_cmd
  15567. # How to find potential files when deplibs_check_method = "file_magic".
  15568. file_magic_glob=$lt_file_magic_glob
  15569. # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
  15570. want_nocaseglob=$lt_want_nocaseglob
  15571. # DLL creation program.
  15572. DLLTOOL=$lt_DLLTOOL
  15573. # Command to associate shared and link libraries.
  15574. sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
  15575. # The archiver.
  15576. AR=$lt_AR
  15577. # Flags to create an archive.
  15578. AR_FLAGS=$lt_AR_FLAGS
  15579. # How to feed a file listing to the archiver.
  15580. archiver_list_spec=$lt_archiver_list_spec
  15581. # A symbol stripping program.
  15582. STRIP=$lt_STRIP
  15583. # Commands used to install an old-style archive.
  15584. RANLIB=$lt_RANLIB
  15585. old_postinstall_cmds=$lt_old_postinstall_cmds
  15586. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  15587. # Whether to use a lock for old archive extraction.
  15588. lock_old_archive_extraction=$lock_old_archive_extraction
  15589. # A C compiler.
  15590. LTCC=$lt_CC
  15591. # LTCC compiler flags.
  15592. LTCFLAGS=$lt_CFLAGS
  15593. # Take the output of nm and produce a listing of raw symbols and C names.
  15594. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  15595. # Transform the output of nm in a proper C declaration.
  15596. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  15597. # Transform the output of nm in a C name address pair.
  15598. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  15599. # Transform the output of nm in a C name address pair when lib prefix is needed.
  15600. global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
  15601. # Specify filename containing input files for \$NM.
  15602. nm_file_list_spec=$lt_nm_file_list_spec
  15603. # The root where to search for dependent libraries,and in which our libraries should be installed.
  15604. lt_sysroot=$lt_sysroot
  15605. # The name of the directory that contains temporary libtool files.
  15606. objdir=$objdir
  15607. # Used to examine libraries when file_magic_cmd begins with "file".
  15608. MAGIC_CMD=$MAGIC_CMD
  15609. # Must we lock files when doing compilation?
  15610. need_locks=$lt_need_locks
  15611. # Manifest tool.
  15612. MANIFEST_TOOL=$lt_MANIFEST_TOOL
  15613. # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
  15614. DSYMUTIL=$lt_DSYMUTIL
  15615. # Tool to change global to local symbols on Mac OS X.
  15616. NMEDIT=$lt_NMEDIT
  15617. # Tool to manipulate fat objects and archives on Mac OS X.
  15618. LIPO=$lt_LIPO
  15619. # ldd/readelf like tool for Mach-O binaries on Mac OS X.
  15620. OTOOL=$lt_OTOOL
  15621. # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
  15622. OTOOL64=$lt_OTOOL64
  15623. # Old archive suffix (normally "a").
  15624. libext=$libext
  15625. # Shared library suffix (normally ".so").
  15626. shrext_cmds=$lt_shrext_cmds
  15627. # The commands to extract the exported symbol list from a shared archive.
  15628. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  15629. # Variables whose values should be saved in libtool wrapper scripts and
  15630. # restored at link time.
  15631. variables_saved_for_relink=$lt_variables_saved_for_relink
  15632. # Do we need the "lib" prefix for modules?
  15633. need_lib_prefix=$need_lib_prefix
  15634. # Do we need a version for libraries?
  15635. need_version=$need_version
  15636. # Library versioning type.
  15637. version_type=$version_type
  15638. # Shared library runtime path variable.
  15639. runpath_var=$runpath_var
  15640. # Shared library path variable.
  15641. shlibpath_var=$shlibpath_var
  15642. # Is shlibpath searched before the hard-coded library search path?
  15643. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  15644. # Format of library name prefix.
  15645. libname_spec=$lt_libname_spec
  15646. # List of archive names. First name is the real one, the rest are links.
  15647. # The last name is the one that the linker finds with -lNAME
  15648. library_names_spec=$lt_library_names_spec
  15649. # The coded name of the library, if different from the real name.
  15650. soname_spec=$lt_soname_spec
  15651. # Permission mode override for installation of shared libraries.
  15652. install_override_mode=$lt_install_override_mode
  15653. # Command to use after installation of a shared archive.
  15654. postinstall_cmds=$lt_postinstall_cmds
  15655. # Command to use after uninstallation of a shared archive.
  15656. postuninstall_cmds=$lt_postuninstall_cmds
  15657. # Commands used to finish a libtool library installation in a directory.
  15658. finish_cmds=$lt_finish_cmds
  15659. # As "finish_cmds", except a single script fragment to be evaled but
  15660. # not shown.
  15661. finish_eval=$lt_finish_eval
  15662. # Whether we should hardcode library paths into libraries.
  15663. hardcode_into_libs=$hardcode_into_libs
  15664. # Compile-time system search path for libraries.
  15665. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  15666. # Run-time system search path for libraries.
  15667. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  15668. # Whether dlopen is supported.
  15669. dlopen_support=$enable_dlopen
  15670. # Whether dlopen of programs is supported.
  15671. dlopen_self=$enable_dlopen_self
  15672. # Whether dlopen of statically linked programs is supported.
  15673. dlopen_self_static=$enable_dlopen_self_static
  15674. # Commands to strip libraries.
  15675. old_striplib=$lt_old_striplib
  15676. striplib=$lt_striplib
  15677. # The linker used to build libraries.
  15678. LD=$lt_LD
  15679. # How to create reloadable object files.
  15680. reload_flag=$lt_reload_flag
  15681. reload_cmds=$lt_reload_cmds
  15682. # Commands used to build an old-style archive.
  15683. old_archive_cmds=$lt_old_archive_cmds
  15684. # A language specific compiler.
  15685. CC=$lt_compiler
  15686. # Is the compiler the GNU compiler?
  15687. with_gcc=$GCC
  15688. # Compiler flag to turn off builtin functions.
  15689. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
  15690. # Additional compiler flags for building library objects.
  15691. pic_flag=$lt_lt_prog_compiler_pic
  15692. # How to pass a linker flag through the compiler.
  15693. wl=$lt_lt_prog_compiler_wl
  15694. # Compiler flag to prevent dynamic linking.
  15695. link_static_flag=$lt_lt_prog_compiler_static
  15696. # Does compiler simultaneously support -c and -o options?
  15697. compiler_c_o=$lt_lt_cv_prog_compiler_c_o
  15698. # Whether or not to add -lc for building shared libraries.
  15699. build_libtool_need_lc=$archive_cmds_need_lc
  15700. # Whether or not to disallow shared libs when runtime libs are static.
  15701. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
  15702. # Compiler flag to allow reflexive dlopens.
  15703. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
  15704. # Compiler flag to generate shared objects directly from archives.
  15705. whole_archive_flag_spec=$lt_whole_archive_flag_spec
  15706. # Whether the compiler copes with passing no objects directly.
  15707. compiler_needs_object=$lt_compiler_needs_object
  15708. # Create an old-style archive from a shared archive.
  15709. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
  15710. # Create a temporary old-style archive to link instead of a shared archive.
  15711. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
  15712. # Commands used to build a shared archive.
  15713. archive_cmds=$lt_archive_cmds
  15714. archive_expsym_cmds=$lt_archive_expsym_cmds
  15715. # Commands used to build a loadable module if different from building
  15716. # a shared archive.
  15717. module_cmds=$lt_module_cmds
  15718. module_expsym_cmds=$lt_module_expsym_cmds
  15719. # Whether we are building with GNU ld or not.
  15720. with_gnu_ld=$lt_with_gnu_ld
  15721. # Flag that allows shared libraries with undefined symbols to be built.
  15722. allow_undefined_flag=$lt_allow_undefined_flag
  15723. # Flag that enforces no undefined symbols.
  15724. no_undefined_flag=$lt_no_undefined_flag
  15725. # Flag to hardcode \$libdir into a binary during linking.
  15726. # This must work even if \$libdir does not exist
  15727. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
  15728. # Whether we need a single "-rpath" flag with a separated argument.
  15729. hardcode_libdir_separator=$lt_hardcode_libdir_separator
  15730. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  15731. # DIR into the resulting binary.
  15732. hardcode_direct=$hardcode_direct
  15733. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  15734. # DIR into the resulting binary and the resulting library dependency is
  15735. # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
  15736. # library is relocated.
  15737. hardcode_direct_absolute=$hardcode_direct_absolute
  15738. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  15739. # into the resulting binary.
  15740. hardcode_minus_L=$hardcode_minus_L
  15741. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  15742. # into the resulting binary.
  15743. hardcode_shlibpath_var=$hardcode_shlibpath_var
  15744. # Set to "yes" if building a shared library automatically hardcodes DIR
  15745. # into the library and all subsequent libraries and executables linked
  15746. # against it.
  15747. hardcode_automatic=$hardcode_automatic
  15748. # Set to yes if linker adds runtime paths of dependent libraries
  15749. # to runtime path list.
  15750. inherit_rpath=$inherit_rpath
  15751. # Whether libtool must link a program against all its dependency libraries.
  15752. link_all_deplibs=$link_all_deplibs
  15753. # Set to "yes" if exported symbols are required.
  15754. always_export_symbols=$always_export_symbols
  15755. # The commands to list exported symbols.
  15756. export_symbols_cmds=$lt_export_symbols_cmds
  15757. # Symbols that should not be listed in the preloaded symbols.
  15758. exclude_expsyms=$lt_exclude_expsyms
  15759. # Symbols that must always be exported.
  15760. include_expsyms=$lt_include_expsyms
  15761. # Commands necessary for linking programs (against libraries) with templates.
  15762. prelink_cmds=$lt_prelink_cmds
  15763. # Commands necessary for finishing linking programs.
  15764. postlink_cmds=$lt_postlink_cmds
  15765. # Specify filename containing input files.
  15766. file_list_spec=$lt_file_list_spec
  15767. # How to hardcode a shared library path into an executable.
  15768. hardcode_action=$hardcode_action
  15769. # The directories searched by this compiler when creating a shared library.
  15770. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
  15771. # Dependencies to place before and after the objects being linked to
  15772. # create a shared library.
  15773. predep_objects=$lt_predep_objects
  15774. postdep_objects=$lt_postdep_objects
  15775. predeps=$lt_predeps
  15776. postdeps=$lt_postdeps
  15777. # The library search path used internally by the compiler when linking
  15778. # a shared library.
  15779. compiler_lib_search_path=$lt_compiler_lib_search_path
  15780. # ### END LIBTOOL CONFIG
  15781. _LT_EOF
  15782. case $host_os in
  15783. aix3*)
  15784. cat <<\_LT_EOF >> "$cfgfile"
  15785. # AIX sometimes has problems with the GCC collect2 program. For some
  15786. # reason, if we set the COLLECT_NAMES environment variable, the problems
  15787. # vanish in a puff of smoke.
  15788. if test "X${COLLECT_NAMES+set}" != Xset; then
  15789. COLLECT_NAMES=
  15790. export COLLECT_NAMES
  15791. fi
  15792. _LT_EOF
  15793. ;;
  15794. esac
  15795. ltmain="$ac_aux_dir/ltmain.sh"
  15796. # We use sed instead of cat because bash on DJGPP gets confused if
  15797. # if finds mixed CR/LF and LF-only lines. Since sed operates in
  15798. # text mode, it properly converts lines to CR/LF. This bash problem
  15799. # is reportedly fixed, but why not run on old versions too?
  15800. sed '$q' "$ltmain" >> "$cfgfile" \
  15801. || (rm -f "$cfgfile"; exit 1)
  15802. if test x"$xsi_shell" = xyes; then
  15803. sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
  15804. func_dirname ()\
  15805. {\
  15806. \ case ${1} in\
  15807. \ */*) func_dirname_result="${1%/*}${2}" ;;\
  15808. \ * ) func_dirname_result="${3}" ;;\
  15809. \ esac\
  15810. } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
  15811. && mv -f "$cfgfile.tmp" "$cfgfile" \
  15812. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  15813. test 0 -eq $? || _lt_function_replace_fail=:
  15814. sed -e '/^func_basename ()$/,/^} # func_basename /c\
  15815. func_basename ()\
  15816. {\
  15817. \ func_basename_result="${1##*/}"\
  15818. } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
  15819. && mv -f "$cfgfile.tmp" "$cfgfile" \
  15820. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  15821. test 0 -eq $? || _lt_function_replace_fail=:
  15822. sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
  15823. func_dirname_and_basename ()\
  15824. {\
  15825. \ case ${1} in\
  15826. \ */*) func_dirname_result="${1%/*}${2}" ;;\
  15827. \ * ) func_dirname_result="${3}" ;;\
  15828. \ esac\
  15829. \ func_basename_result="${1##*/}"\
  15830. } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
  15831. && mv -f "$cfgfile.tmp" "$cfgfile" \
  15832. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  15833. test 0 -eq $? || _lt_function_replace_fail=:
  15834. sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
  15835. func_stripname ()\
  15836. {\
  15837. \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
  15838. \ # positional parameters, so assign one to ordinary parameter first.\
  15839. \ func_stripname_result=${3}\
  15840. \ func_stripname_result=${func_stripname_result#"${1}"}\
  15841. \ func_stripname_result=${func_stripname_result%"${2}"}\
  15842. } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
  15843. && mv -f "$cfgfile.tmp" "$cfgfile" \
  15844. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  15845. test 0 -eq $? || _lt_function_replace_fail=:
  15846. sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
  15847. func_split_long_opt ()\
  15848. {\
  15849. \ func_split_long_opt_name=${1%%=*}\
  15850. \ func_split_long_opt_arg=${1#*=}\
  15851. } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
  15852. && mv -f "$cfgfile.tmp" "$cfgfile" \
  15853. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  15854. test 0 -eq $? || _lt_function_replace_fail=:
  15855. sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
  15856. func_split_short_opt ()\
  15857. {\
  15858. \ func_split_short_opt_arg=${1#??}\
  15859. \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
  15860. } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
  15861. && mv -f "$cfgfile.tmp" "$cfgfile" \
  15862. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  15863. test 0 -eq $? || _lt_function_replace_fail=:
  15864. sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
  15865. func_lo2o ()\
  15866. {\
  15867. \ case ${1} in\
  15868. \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
  15869. \ *) func_lo2o_result=${1} ;;\
  15870. \ esac\
  15871. } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
  15872. && mv -f "$cfgfile.tmp" "$cfgfile" \
  15873. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  15874. test 0 -eq $? || _lt_function_replace_fail=:
  15875. sed -e '/^func_xform ()$/,/^} # func_xform /c\
  15876. func_xform ()\
  15877. {\
  15878. func_xform_result=${1%.*}.lo\
  15879. } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
  15880. && mv -f "$cfgfile.tmp" "$cfgfile" \
  15881. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  15882. test 0 -eq $? || _lt_function_replace_fail=:
  15883. sed -e '/^func_arith ()$/,/^} # func_arith /c\
  15884. func_arith ()\
  15885. {\
  15886. func_arith_result=$(( $* ))\
  15887. } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
  15888. && mv -f "$cfgfile.tmp" "$cfgfile" \
  15889. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  15890. test 0 -eq $? || _lt_function_replace_fail=:
  15891. sed -e '/^func_len ()$/,/^} # func_len /c\
  15892. func_len ()\
  15893. {\
  15894. func_len_result=${#1}\
  15895. } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
  15896. && mv -f "$cfgfile.tmp" "$cfgfile" \
  15897. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  15898. test 0 -eq $? || _lt_function_replace_fail=:
  15899. fi
  15900. if test x"$lt_shell_append" = xyes; then
  15901. sed -e '/^func_append ()$/,/^} # func_append /c\
  15902. func_append ()\
  15903. {\
  15904. eval "${1}+=\\${2}"\
  15905. } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
  15906. && mv -f "$cfgfile.tmp" "$cfgfile" \
  15907. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  15908. test 0 -eq $? || _lt_function_replace_fail=:
  15909. sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
  15910. func_append_quoted ()\
  15911. {\
  15912. \ func_quote_for_eval "${2}"\
  15913. \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
  15914. } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
  15915. && mv -f "$cfgfile.tmp" "$cfgfile" \
  15916. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  15917. test 0 -eq $? || _lt_function_replace_fail=:
  15918. # Save a `func_append' function call where possible by direct use of '+='
  15919. sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
  15920. && mv -f "$cfgfile.tmp" "$cfgfile" \
  15921. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  15922. test 0 -eq $? || _lt_function_replace_fail=:
  15923. else
  15924. # Save a `func_append' function call even when '+=' is not available
  15925. sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
  15926. && mv -f "$cfgfile.tmp" "$cfgfile" \
  15927. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  15928. test 0 -eq $? || _lt_function_replace_fail=:
  15929. fi
  15930. if test x"$_lt_function_replace_fail" = x":"; then
  15931. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
  15932. $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
  15933. fi
  15934. mv -f "$cfgfile" "$ofile" ||
  15935. (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  15936. chmod +x "$ofile"
  15937. cat <<_LT_EOF >> "$ofile"
  15938. # ### BEGIN LIBTOOL TAG CONFIG: CXX
  15939. # The linker used to build libraries.
  15940. LD=$lt_LD_CXX
  15941. # How to create reloadable object files.
  15942. reload_flag=$lt_reload_flag_CXX
  15943. reload_cmds=$lt_reload_cmds_CXX
  15944. # Commands used to build an old-style archive.
  15945. old_archive_cmds=$lt_old_archive_cmds_CXX
  15946. # A language specific compiler.
  15947. CC=$lt_compiler_CXX
  15948. # Is the compiler the GNU compiler?
  15949. with_gcc=$GCC_CXX
  15950. # Compiler flag to turn off builtin functions.
  15951. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
  15952. # Additional compiler flags for building library objects.
  15953. pic_flag=$lt_lt_prog_compiler_pic_CXX
  15954. # How to pass a linker flag through the compiler.
  15955. wl=$lt_lt_prog_compiler_wl_CXX
  15956. # Compiler flag to prevent dynamic linking.
  15957. link_static_flag=$lt_lt_prog_compiler_static_CXX
  15958. # Does compiler simultaneously support -c and -o options?
  15959. compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
  15960. # Whether or not to add -lc for building shared libraries.
  15961. build_libtool_need_lc=$archive_cmds_need_lc_CXX
  15962. # Whether or not to disallow shared libs when runtime libs are static.
  15963. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
  15964. # Compiler flag to allow reflexive dlopens.
  15965. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
  15966. # Compiler flag to generate shared objects directly from archives.
  15967. whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
  15968. # Whether the compiler copes with passing no objects directly.
  15969. compiler_needs_object=$lt_compiler_needs_object_CXX
  15970. # Create an old-style archive from a shared archive.
  15971. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
  15972. # Create a temporary old-style archive to link instead of a shared archive.
  15973. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
  15974. # Commands used to build a shared archive.
  15975. archive_cmds=$lt_archive_cmds_CXX
  15976. archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
  15977. # Commands used to build a loadable module if different from building
  15978. # a shared archive.
  15979. module_cmds=$lt_module_cmds_CXX
  15980. module_expsym_cmds=$lt_module_expsym_cmds_CXX
  15981. # Whether we are building with GNU ld or not.
  15982. with_gnu_ld=$lt_with_gnu_ld_CXX
  15983. # Flag that allows shared libraries with undefined symbols to be built.
  15984. allow_undefined_flag=$lt_allow_undefined_flag_CXX
  15985. # Flag that enforces no undefined symbols.
  15986. no_undefined_flag=$lt_no_undefined_flag_CXX
  15987. # Flag to hardcode \$libdir into a binary during linking.
  15988. # This must work even if \$libdir does not exist
  15989. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
  15990. # Whether we need a single "-rpath" flag with a separated argument.
  15991. hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
  15992. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  15993. # DIR into the resulting binary.
  15994. hardcode_direct=$hardcode_direct_CXX
  15995. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  15996. # DIR into the resulting binary and the resulting library dependency is
  15997. # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
  15998. # library is relocated.
  15999. hardcode_direct_absolute=$hardcode_direct_absolute_CXX
  16000. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  16001. # into the resulting binary.
  16002. hardcode_minus_L=$hardcode_minus_L_CXX
  16003. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  16004. # into the resulting binary.
  16005. hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
  16006. # Set to "yes" if building a shared library automatically hardcodes DIR
  16007. # into the library and all subsequent libraries and executables linked
  16008. # against it.
  16009. hardcode_automatic=$hardcode_automatic_CXX
  16010. # Set to yes if linker adds runtime paths of dependent libraries
  16011. # to runtime path list.
  16012. inherit_rpath=$inherit_rpath_CXX
  16013. # Whether libtool must link a program against all its dependency libraries.
  16014. link_all_deplibs=$link_all_deplibs_CXX
  16015. # Set to "yes" if exported symbols are required.
  16016. always_export_symbols=$always_export_symbols_CXX
  16017. # The commands to list exported symbols.
  16018. export_symbols_cmds=$lt_export_symbols_cmds_CXX
  16019. # Symbols that should not be listed in the preloaded symbols.
  16020. exclude_expsyms=$lt_exclude_expsyms_CXX
  16021. # Symbols that must always be exported.
  16022. include_expsyms=$lt_include_expsyms_CXX
  16023. # Commands necessary for linking programs (against libraries) with templates.
  16024. prelink_cmds=$lt_prelink_cmds_CXX
  16025. # Commands necessary for finishing linking programs.
  16026. postlink_cmds=$lt_postlink_cmds_CXX
  16027. # Specify filename containing input files.
  16028. file_list_spec=$lt_file_list_spec_CXX
  16029. # How to hardcode a shared library path into an executable.
  16030. hardcode_action=$hardcode_action_CXX
  16031. # The directories searched by this compiler when creating a shared library.
  16032. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
  16033. # Dependencies to place before and after the objects being linked to
  16034. # create a shared library.
  16035. predep_objects=$lt_predep_objects_CXX
  16036. postdep_objects=$lt_postdep_objects_CXX
  16037. predeps=$lt_predeps_CXX
  16038. postdeps=$lt_postdeps_CXX
  16039. # The library search path used internally by the compiler when linking
  16040. # a shared library.
  16041. compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
  16042. # ### END LIBTOOL TAG CONFIG: CXX
  16043. _LT_EOF
  16044. ;;
  16045. esac
  16046. done # for ac_tag
  16047. as_fn_exit 0
  16048. _ACEOF
  16049. ac_clean_files=$ac_clean_files_save
  16050. test $ac_write_fail = 0 ||
  16051. as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
  16052. # configure is writing to config.log, and then calls config.status.
  16053. # config.status does its own redirection, appending to config.log.
  16054. # Unfortunately, on DOS this fails, as config.log is still kept open
  16055. # by configure, so config.status won't be able to write to it; its
  16056. # output is simply discarded. So we exec the FD to /dev/null,
  16057. # effectively closing config.log, so it can be properly (re)opened and
  16058. # appended to by config.status. When coming back to configure, we
  16059. # need to make the FD available again.
  16060. if test "$no_create" != yes; then
  16061. ac_cs_success=:
  16062. ac_config_status_args=
  16063. test "$silent" = yes &&
  16064. ac_config_status_args="$ac_config_status_args --quiet"
  16065. exec 5>/dev/null
  16066. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  16067. exec 5>>config.log
  16068. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  16069. # would make configure fail if this is the last instruction.
  16070. $ac_cs_success || as_fn_exit 1
  16071. fi
  16072. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  16073. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  16074. $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  16075. fi