output.3 518 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210132111321213213132141321513216132171321813219132201322113222132231322413225132261322713228132291323013231132321323313234132351323613237132381323913240132411324213243132441324513246132471324813249132501325113252132531325413255132561325713258132591326013261132621326313264132651326613267132681326913270132711327213273132741327513276132771327813279132801328113282132831328413285132861328713288132891329013291132921329313294132951329613297132981329913300133011330213303133041330513306133071330813309133101331113312133131331413315133161331713318133191332013321133221332313324133251332613327133281332913330133311333213333133341333513336133371333813339133401334113342133431334413345133461334713348133491335013351133521335313354133551335613357133581335913360133611336213363133641336513366133671336813369133701337113372133731337413375133761337713378133791338013381133821338313384133851338613387133881338913390133911339213393133941339513396133971339813399134001340113402134031340413405134061340713408134091341013411134121341313414134151341613417134181341913420134211342213423134241342513426134271342813429134301343113432134331343413435134361343713438134391344013441134421344313444134451344613447134481344913450134511345213453134541345513456134571345813459134601346113462134631346413465134661346713468134691347013471134721347313474134751347613477134781347913480134811348213483134841348513486134871348813489134901349113492134931349413495134961349713498134991350013501135021350313504135051350613507135081350913510135111351213513135141351513516135171351813519135201352113522135231352413525135261352713528135291353013531135321353313534135351353613537135381353913540135411354213543135441354513546135471354813549135501355113552135531355413555135561355713558135591356013561135621356313564135651356613567135681356913570135711357213573135741357513576135771357813579135801358113582135831358413585135861358713588135891359013591135921359313594135951359613597135981359913600136011360213603136041360513606136071360813609136101361113612136131361413615136161361713618136191362013621136221362313624136251362613627136281362913630136311363213633136341363513636136371363813639136401364113642136431364413645136461364713648136491365013651136521365313654136551365613657136581365913660136611366213663136641366513666136671366813669136701367113672136731367413675136761367713678136791368013681136821368313684136851368613687136881368913690136911369213693136941369513696136971369813699137001370113702137031370413705137061370713708137091371013711137121371313714137151371613717137181371913720137211372213723137241372513726137271372813729137301373113732137331373413735137361373713738137391374013741137421374313744137451374613747137481374913750137511375213753137541375513756137571375813759137601376113762137631376413765137661376713768137691377013771137721377313774137751377613777137781377913780137811378213783137841378513786137871378813789137901379113792137931379413795137961379713798137991380013801138021380313804138051380613807138081380913810138111381213813138141381513816138171381813819138201382113822138231382413825138261382713828138291383013831138321383313834138351383613837138381383913840138411384213843138441384513846138471384813849138501385113852138531385413855138561385713858138591386013861138621386313864138651386613867138681386913870138711387213873138741387513876138771387813879138801388113882138831388413885138861388713888138891389013891138921389313894138951389613897138981389913900139011390213903139041390513906139071390813909139101391113912139131391413915139161391713918139191392013921139221392313924139251392613927139281392913930139311393213933139341393513936139371393813939139401394113942139431394413945139461394713948139491395013951139521395313954139551395613957139581395913960139611396213963139641396513966139671396813969139701397113972139731397413975139761397713978139791398013981139821398313984139851398613987139881398913990139911399213993139941399513996139971399813999140001400114002140031400414005140061400714008140091401014011140121401314014140151401614017140181401914020140211402214023140241402514026140271402814029140301403114032140331403414035140361403714038140391404014041140421404314044140451404614047140481404914050140511405214053140541405514056140571405814059140601406114062140631406414065140661406714068140691407014071140721407314074140751407614077140781407914080140811408214083140841408514086140871408814089140901409114092140931409414095140961409714098140991410014101141021410314104141051410614107141081410914110141111411214113141141411514116141171411814119141201412114122141231412414125141261412714128141291413014131141321413314134141351413614137141381413914140141411414214143141441414514146141471414814149141501415114152141531415414155141561415714158141591416014161141621416314164141651416614167141681416914170141711417214173141741417514176141771417814179141801418114182141831418414185141861418714188141891419014191141921419314194141951419614197141981419914200142011420214203142041420514206142071420814209142101421114212142131421414215142161421714218142191422014221142221422314224142251422614227142281422914230142311423214233142341423514236142371423814239142401424114242142431424414245142461424714248142491425014251142521425314254142551425614257142581425914260142611426214263142641426514266142671426814269142701427114272142731427414275142761427714278142791428014281142821428314284142851428614287142881428914290142911429214293142941429514296142971429814299143001430114302143031430414305143061430714308143091431014311143121431314314143151431614317143181431914320143211432214323143241432514326143271432814329143301433114332143331433414335143361433714338143391434014341143421434314344143451434614347143481434914350143511435214353143541435514356143571435814359143601436114362143631436414365143661436714368143691437014371143721437314374143751437614377143781437914380143811438214383143841438514386143871438814389143901439114392143931439414395143961439714398143991440014401144021440314404144051440614407144081440914410144111441214413144141441514416144171441814419144201442114422144231442414425144261442714428144291443014431144321443314434144351443614437144381443914440144411444214443144441444514446144471444814449144501445114452144531445414455144561445714458144591446014461144621446314464144651446614467144681446914470144711447214473144741447514476144771447814479144801448114482144831448414485144861448714488144891449014491144921449314494144951449614497144981449914500145011450214503145041450514506145071450814509145101451114512145131451414515145161451714518145191452014521145221452314524145251452614527145281452914530145311453214533145341453514536145371453814539145401454114542145431454414545145461454714548145491455014551145521455314554145551455614557145581455914560145611456214563145641456514566145671456814569145701457114572145731457414575145761457714578145791458014581145821458314584145851458614587145881458914590145911459214593145941459514596145971459814599146001460114602146031460414605146061460714608146091461014611146121461314614146151461614617146181461914620146211462214623146241462514626146271462814629146301463114632146331463414635146361463714638146391464014641146421464314644146451464614647146481464914650146511465214653146541465514656146571465814659146601466114662146631466414665146661466714668146691467014671146721467314674146751467614677146781467914680146811468214683146841468514686146871468814689146901469114692146931469414695146961469714698146991470014701147021470314704147051470614707147081470914710147111471214713147141471514716147171471814719147201472114722147231472414725147261472714728147291473014731147321473314734147351473614737147381473914740147411474214743147441474514746147471474814749147501475114752147531475414755147561475714758147591476014761147621476314764147651476614767147681476914770147711477214773147741477514776147771477814779147801478114782147831478414785147861478714788147891479014791147921479314794147951479614797147981479914800148011480214803148041480514806148071480814809148101481114812148131481414815148161481714818148191482014821148221482314824148251482614827148281482914830148311483214833148341483514836148371483814839148401484114842148431484414845148461484714848148491485014851148521485314854148551485614857148581485914860148611486214863148641486514866148671486814869148701487114872148731487414875148761487714878148791488014881148821488314884148851488614887148881488914890148911489214893148941489514896148971489814899149001490114902149031490414905149061490714908149091491014911149121491314914149151491614917149181491914920149211492214923149241492514926149271492814929149301493114932149331493414935149361493714938149391494014941149421494314944149451494614947149481494914950149511495214953149541495514956149571495814959149601496114962149631496414965149661496714968149691497014971149721497314974149751497614977149781497914980149811498214983149841498514986149871498814989149901499114992149931499414995149961499714998149991500015001150021500315004150051500615007150081500915010150111501215013150141501515016150171501815019150201502115022150231502415025150261502715028150291503015031150321503315034150351503615037150381503915040150411504215043150441504515046150471504815049150501505115052150531505415055150561505715058150591506015061150621506315064150651506615067150681506915070150711507215073150741507515076150771507815079150801508115082150831508415085150861508715088150891509015091150921509315094150951509615097150981509915100151011510215103151041510515106151071510815109151101511115112151131511415115151161511715118151191512015121151221512315124151251512615127151281512915130151311513215133151341513515136151371513815139151401514115142151431514415145151461514715148151491515015151151521515315154151551515615157151581515915160151611516215163151641516515166151671516815169151701517115172151731517415175151761517715178151791518015181151821518315184151851518615187151881518915190151911519215193151941519515196151971519815199152001520115202152031520415205152061520715208152091521015211152121521315214152151521615217152181521915220152211522215223152241522515226152271522815229152301523115232152331523415235152361523715238152391524015241152421524315244152451524615247152481524915250152511525215253152541525515256152571525815259152601526115262152631526415265152661526715268152691527015271152721527315274152751527615277152781527915280152811528215283152841528515286152871528815289152901529115292152931529415295152961529715298152991530015301153021530315304153051530615307153081530915310153111531215313153141531515316153171531815319153201532115322153231532415325153261532715328153291533015331153321533315334153351533615337153381533915340153411534215343153441534515346153471534815349153501535115352153531535415355153561535715358153591536015361153621536315364153651536615367153681536915370153711537215373153741537515376153771537815379153801538115382153831538415385153861538715388153891539015391153921539315394153951539615397153981539915400154011540215403154041540515406154071540815409154101541115412154131541415415154161541715418154191542015421154221542315424154251542615427154281542915430154311543215433154341543515436154371543815439154401544115442154431544415445154461544715448154491545015451154521545315454154551545615457154581545915460154611546215463154641546515466154671546815469154701547115472154731547415475154761547715478154791548015481154821548315484154851548615487154881548915490154911549215493154941549515496154971549815499155001550115502155031550415505155061550715508155091551015511155121551315514155151551615517155181551915520155211552215523155241552515526155271552815529155301553115532155331553415535155361553715538155391554015541155421554315544155451554615547155481554915550155511555215553155541555515556155571555815559155601556115562155631556415565155661556715568155691557015571155721557315574155751557615577155781557915580155811558215583155841558515586155871558815589155901559115592155931559415595155961559715598155991560015601156021560315604156051560615607156081560915610156111561215613156141561515616156171561815619156201562115622156231562415625156261562715628156291563015631156321563315634156351563615637156381563915640156411564215643156441564515646156471564815649156501565115652156531565415655156561565715658156591566015661156621566315664156651566615667156681566915670156711567215673156741567515676156771567815679156801568115682156831568415685156861568715688156891569015691156921569315694156951569615697156981569915700157011570215703157041570515706157071570815709157101571115712157131571415715157161571715718157191572015721157221572315724157251572615727157281572915730157311573215733157341573515736157371573815739157401574115742157431574415745157461574715748157491575015751157521575315754157551575615757157581575915760157611576215763157641576515766157671576815769157701577115772157731577415775157761577715778157791578015781157821578315784157851578615787157881578915790157911579215793157941579515796157971579815799158001580115802158031580415805158061580715808158091581015811158121581315814158151581615817158181581915820158211582215823158241582515826158271582815829158301583115832158331583415835158361583715838158391584015841158421584315844158451584615847158481584915850158511585215853158541585515856158571585815859158601586115862158631586415865158661586715868158691587015871158721587315874158751587615877158781587915880158811588215883158841588515886158871588815889158901589115892158931589415895158961589715898158991590015901159021590315904159051590615907159081590915910159111591215913159141591515916159171591815919159201592115922159231592415925159261592715928159291593015931159321593315934159351593615937159381593915940159411594215943159441594515946159471594815949159501595115952159531595415955159561595715958159591596015961159621596315964159651596615967159681596915970159711597215973159741597515976159771597815979159801598115982159831598415985159861598715988159891599015991159921599315994159951599615997159981599916000160011600216003160041600516006160071600816009160101601116012160131601416015160161601716018160191602016021160221602316024160251602616027160281602916030160311603216033160341603516036160371603816039160401604116042160431604416045160461604716048160491605016051160521605316054160551605616057160581605916060160611606216063160641606516066160671606816069160701607116072160731607416075160761607716078160791608016081160821608316084160851608616087160881608916090160911609216093160941609516096160971609816099161001610116102161031610416105161061610716108161091611016111161121611316114161151611616117161181611916120161211612216123161241612516126161271612816129161301613116132161331613416135161361613716138161391614016141161421614316144161451614616147161481614916150161511615216153161541615516156161571615816159161601616116162161631616416165161661616716168161691617016171161721617316174161751617616177161781617916180161811618216183161841618516186161871618816189161901619116192161931619416195161961619716198161991620016201162021620316204162051620616207162081620916210162111621216213162141621516216162171621816219162201622116222162231622416225162261622716228162291623016231162321623316234162351623616237162381623916240162411624216243162441624516246162471624816249162501625116252162531625416255162561625716258162591626016261162621626316264162651626616267162681626916270162711627216273162741627516276162771627816279162801628116282162831628416285162861628716288162891629016291162921629316294162951629616297162981629916300163011630216303163041630516306163071630816309163101631116312163131631416315163161631716318163191632016321163221632316324163251632616327163281632916330163311633216333163341633516336163371633816339163401634116342163431634416345163461634716348163491635016351163521635316354163551635616357163581635916360163611636216363163641636516366163671636816369163701637116372163731637416375163761637716378163791638016381163821638316384163851638616387163881638916390163911639216393163941639516396163971639816399164001640116402164031640416405164061640716408164091641016411164121641316414164151641616417164181641916420164211642216423164241642516426164271642816429164301643116432164331643416435164361643716438164391644016441164421644316444164451644616447164481644916450164511645216453164541645516456164571645816459164601646116462164631646416465164661646716468164691647016471164721647316474164751647616477164781647916480164811648216483164841648516486164871648816489164901649116492164931649416495164961649716498164991650016501165021650316504165051650616507165081650916510165111651216513165141651516516165171651816519165201652116522165231652416525165261652716528165291653016531165321653316534165351653616537165381653916540165411654216543165441654516546165471654816549165501655116552165531655416555165561655716558165591656016561165621656316564165651656616567165681656916570165711657216573165741657516576165771657816579165801658116582165831658416585165861658716588165891659016591165921659316594165951659616597165981659916600166011660216603166041660516606166071660816609166101661116612166131661416615166161661716618166191662016621166221662316624166251662616627166281662916630166311663216633166341663516636166371663816639166401664116642166431664416645166461664716648166491665016651166521665316654166551665616657166581665916660166611666216663166641666516666166671666816669166701667116672166731667416675166761667716678166791668016681166821668316684166851668616687166881668916690166911669216693166941669516696166971669816699167001670116702167031670416705167061670716708167091671016711167121671316714167151671616717167181671916720167211672216723167241672516726167271672816729167301673116732167331673416735167361673716738167391674016741167421674316744167451674616747167481674916750167511675216753167541675516756167571675816759167601676116762167631676416765167661676716768167691677016771167721677316774167751677616777167781677916780167811678216783167841678516786167871678816789167901679116792167931679416795167961679716798167991680016801168021680316804168051680616807168081680916810168111681216813168141681516816168171681816819168201682116822168231682416825168261682716828168291683016831168321683316834168351683616837168381683916840168411684216843168441684516846168471684816849168501685116852168531685416855168561685716858168591686016861168621686316864168651686616867168681686916870168711687216873168741687516876168771687816879168801688116882168831688416885168861688716888168891689016891168921689316894168951689616897168981689916900169011690216903169041690516906169071690816909169101691116912169131691416915169161691716918169191692016921169221692316924169251692616927169281692916930169311693216933169341693516936169371693816939169401694116942169431694416945169461694716948169491695016951169521695316954169551695616957169581695916960169611696216963169641696516966169671696816969169701697116972169731697416975169761697716978169791698016981169821698316984169851698616987169881698916990169911699216993169941699516996169971699816999170001700117002170031700417005170061700717008170091701017011170121701317014170151701617017170181701917020170211702217023170241702517026170271702817029170301703117032170331703417035170361703717038170391704017041170421704317044170451704617047170481704917050170511705217053170541705517056170571705817059170601706117062170631706417065170661706717068170691707017071170721707317074170751707617077170781707917080170811708217083170841708517086170871708817089170901709117092170931709417095170961709717098170991710017101171021710317104171051710617107171081710917110171111711217113171141711517116171171711817119171201712117122171231712417125171261712717128171291713017131171321713317134171351713617137171381713917140171411714217143171441714517146171471714817149171501715117152171531715417155171561715717158171591716017161171621716317164171651716617167171681716917170171711717217173171741717517176171771717817179171801718117182171831718417185171861718717188171891719017191171921719317194171951719617197171981719917200172011720217203172041720517206172071720817209172101721117212172131721417215172161721717218172191722017221172221722317224172251722617227172281722917230
  1. @%:@! /bin/sh
  2. @%:@ Guess values for system-dependent variables and create Makefiles.
  3. @%:@ Generated by GNU Autoconf 2.67 for libPolyCore 0.8.2.
  4. @%:@
  5. @%:@ Report bugs to <[email protected]>.
  6. @%:@
  7. @%:@
  8. @%:@ Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
  9. @%:@ 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
  10. @%:@ Foundation, Inc.
  11. @%:@
  12. @%:@
  13. @%:@ This configure script is free software; the Free Software Foundation
  14. @%:@ gives unlimited permission to copy, distribute and modify it.
  15. ## -------------------- ##
  16. ## M4sh Initialization. ##
  17. ## -------------------- ##
  18. # Be more Bourne compatible
  19. DUALCASE=1; export DUALCASE # for MKS sh
  20. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  21. emulate sh
  22. NULLCMD=:
  23. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  24. # is contrary to our usage. Disable this feature.
  25. alias -g '${1+"$@"}'='"$@"'
  26. setopt NO_GLOB_SUBST
  27. else
  28. case `(set -o) 2>/dev/null` in @%:@(
  29. *posix*) :
  30. set -o posix ;; @%:@(
  31. *) :
  32. ;;
  33. esac
  34. fi
  35. as_nl='
  36. '
  37. export as_nl
  38. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  39. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  40. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  41. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  42. # Prefer a ksh shell builtin over an external printf program on Solaris,
  43. # but without wasting forks for bash or zsh.
  44. if test -z "$BASH_VERSION$ZSH_VERSION" \
  45. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  46. as_echo='print -r --'
  47. as_echo_n='print -rn --'
  48. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  49. as_echo='printf %s\n'
  50. as_echo_n='printf %s'
  51. else
  52. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  53. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  54. as_echo_n='/usr/ucb/echo -n'
  55. else
  56. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  57. as_echo_n_body='eval
  58. arg=$1;
  59. case $arg in @%:@(
  60. *"$as_nl"*)
  61. expr "X$arg" : "X\\(.*\\)$as_nl";
  62. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  63. esac;
  64. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  65. '
  66. export as_echo_n_body
  67. as_echo_n='sh -c $as_echo_n_body as_echo'
  68. fi
  69. export as_echo_body
  70. as_echo='sh -c $as_echo_body as_echo'
  71. fi
  72. # The user is always right.
  73. if test "${PATH_SEPARATOR+set}" != set; then
  74. PATH_SEPARATOR=:
  75. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  76. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  77. PATH_SEPARATOR=';'
  78. }
  79. fi
  80. # IFS
  81. # We need space, tab and new line, in precisely that order. Quoting is
  82. # there to prevent editors from complaining about space-tab.
  83. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  84. # splitting by setting IFS to empty value.)
  85. IFS=" "" $as_nl"
  86. # Find who we are. Look in the path if we contain no directory separator.
  87. case $0 in @%:@((
  88. *[\\/]* ) as_myself=$0 ;;
  89. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  90. for as_dir in $PATH
  91. do
  92. IFS=$as_save_IFS
  93. test -z "$as_dir" && as_dir=.
  94. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  95. done
  96. IFS=$as_save_IFS
  97. ;;
  98. esac
  99. # We did not find ourselves, most probably we were run as `sh COMMAND'
  100. # in which case we are not to be found in the path.
  101. if test "x$as_myself" = x; then
  102. as_myself=$0
  103. fi
  104. if test ! -f "$as_myself"; then
  105. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  106. exit 1
  107. fi
  108. # Unset variables that we do not need and which cause bugs (e.g. in
  109. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  110. # suppresses any "Segmentation fault" message there. '((' could
  111. # trigger a bug in pdksh 5.2.14.
  112. for as_var in BASH_ENV ENV MAIL MAILPATH
  113. do eval test x\${$as_var+set} = xset \
  114. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  115. done
  116. PS1='$ '
  117. PS2='> '
  118. PS4='+ '
  119. # NLS nuisances.
  120. LC_ALL=C
  121. export LC_ALL
  122. LANGUAGE=C
  123. export LANGUAGE
  124. # CDPATH.
  125. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  126. if test "x$CONFIG_SHELL" = x; then
  127. as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
  128. emulate sh
  129. NULLCMD=:
  130. # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
  131. # is contrary to our usage. Disable this feature.
  132. alias -g '\${1+\"\$@\"}'='\"\$@\"'
  133. setopt NO_GLOB_SUBST
  134. else
  135. case \`(set -o) 2>/dev/null\` in @%:@(
  136. *posix*) :
  137. set -o posix ;; @%:@(
  138. *) :
  139. ;;
  140. esac
  141. fi
  142. "
  143. as_required="as_fn_return () { (exit \$1); }
  144. as_fn_success () { as_fn_return 0; }
  145. as_fn_failure () { as_fn_return 1; }
  146. as_fn_ret_success () { return 0; }
  147. as_fn_ret_failure () { return 1; }
  148. exitcode=0
  149. as_fn_success || { exitcode=1; echo as_fn_success failed.; }
  150. as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
  151. as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
  152. as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
  153. if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
  154. else
  155. exitcode=1; echo positional parameters were not saved.
  156. fi
  157. test x\$exitcode = x0 || exit 1"
  158. as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
  159. as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
  160. eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
  161. test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
  162. test \$(( 1 + 1 )) = 2 || exit 1"
  163. if (eval "$as_required") 2>/dev/null; then :
  164. as_have_required=yes
  165. else
  166. as_have_required=no
  167. fi
  168. if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
  169. else
  170. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  171. as_found=false
  172. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  173. do
  174. IFS=$as_save_IFS
  175. test -z "$as_dir" && as_dir=.
  176. as_found=:
  177. case $as_dir in @%:@(
  178. /*)
  179. for as_base in sh bash ksh sh5; do
  180. # Try only shells that exist, to save several forks.
  181. as_shell=$as_dir/$as_base
  182. if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
  183. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
  184. CONFIG_SHELL=$as_shell as_have_required=yes
  185. if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
  186. break 2
  187. fi
  188. fi
  189. done;;
  190. esac
  191. as_found=false
  192. done
  193. $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
  194. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
  195. CONFIG_SHELL=$SHELL as_have_required=yes
  196. fi; }
  197. IFS=$as_save_IFS
  198. if test "x$CONFIG_SHELL" != x; then :
  199. # We cannot yet assume a decent shell, so we have to provide a
  200. # neutralization value for shells without unset; and this also
  201. # works around shells that cannot unset nonexistent variables.
  202. BASH_ENV=/dev/null
  203. ENV=/dev/null
  204. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  205. export CONFIG_SHELL
  206. exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
  207. fi
  208. if test x$as_have_required = xno; then :
  209. $as_echo "$0: This script requires a shell more modern than all"
  210. $as_echo "$0: the shells that I found on your system."
  211. if test x${ZSH_VERSION+set} = xset ; then
  212. $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
  213. $as_echo "$0: be upgraded to zsh 4.3.4 or later."
  214. else
  215. $as_echo "$0: Please tell [email protected] and [email protected]
  216. $0: about your system, including any error possibly output
  217. $0: before this message. Then install a modern shell, or
  218. $0: manually run the script under such a shell if you do
  219. $0: have one."
  220. fi
  221. exit 1
  222. fi
  223. fi
  224. fi
  225. SHELL=${CONFIG_SHELL-/bin/sh}
  226. export SHELL
  227. # Unset more variables known to interfere with behavior of common tools.
  228. CLICOLOR_FORCE= GREP_OPTIONS=
  229. unset CLICOLOR_FORCE GREP_OPTIONS
  230. ## --------------------- ##
  231. ## M4sh Shell Functions. ##
  232. ## --------------------- ##
  233. @%:@ as_fn_unset VAR
  234. @%:@ ---------------
  235. @%:@ Portably unset VAR.
  236. as_fn_unset ()
  237. {
  238. { eval $1=; unset $1;}
  239. }
  240. as_unset=as_fn_unset
  241. @%:@ as_fn_set_status STATUS
  242. @%:@ -----------------------
  243. @%:@ Set @S|@? to STATUS, without forking.
  244. as_fn_set_status ()
  245. {
  246. return $1
  247. } @%:@ as_fn_set_status
  248. @%:@ as_fn_exit STATUS
  249. @%:@ -----------------
  250. @%:@ Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  251. as_fn_exit ()
  252. {
  253. set +e
  254. as_fn_set_status $1
  255. exit $1
  256. } @%:@ as_fn_exit
  257. @%:@ as_fn_mkdir_p
  258. @%:@ -------------
  259. @%:@ Create "@S|@as_dir" as a directory, including parents if necessary.
  260. as_fn_mkdir_p ()
  261. {
  262. case $as_dir in #(
  263. -*) as_dir=./$as_dir;;
  264. esac
  265. test -d "$as_dir" || eval $as_mkdir_p || {
  266. as_dirs=
  267. while :; do
  268. case $as_dir in #(
  269. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  270. *) as_qdir=$as_dir;;
  271. esac
  272. as_dirs="'$as_qdir' $as_dirs"
  273. as_dir=`$as_dirname -- "$as_dir" ||
  274. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  275. X"$as_dir" : 'X\(//\)[^/]' \| \
  276. X"$as_dir" : 'X\(//\)$' \| \
  277. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  278. $as_echo X"$as_dir" |
  279. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  280. s//\1/
  281. q
  282. }
  283. /^X\(\/\/\)[^/].*/{
  284. s//\1/
  285. q
  286. }
  287. /^X\(\/\/\)$/{
  288. s//\1/
  289. q
  290. }
  291. /^X\(\/\).*/{
  292. s//\1/
  293. q
  294. }
  295. s/.*/./; q'`
  296. test -d "$as_dir" && break
  297. done
  298. test -z "$as_dirs" || eval "mkdir $as_dirs"
  299. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  300. } @%:@ as_fn_mkdir_p
  301. @%:@ as_fn_append VAR VALUE
  302. @%:@ ----------------------
  303. @%:@ Append the text in VALUE to the end of the definition contained in VAR. Take
  304. @%:@ advantage of any shell optimizations that allow amortized linear growth over
  305. @%:@ repeated appends, instead of the typical quadratic growth present in naive
  306. @%:@ implementations.
  307. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  308. eval 'as_fn_append ()
  309. {
  310. eval $1+=\$2
  311. }'
  312. else
  313. as_fn_append ()
  314. {
  315. eval $1=\$$1\$2
  316. }
  317. fi # as_fn_append
  318. @%:@ as_fn_arith ARG...
  319. @%:@ ------------------
  320. @%:@ Perform arithmetic evaluation on the ARGs, and store the result in the
  321. @%:@ global @S|@as_val. Take advantage of shells that can avoid forks. The arguments
  322. @%:@ must be portable across @S|@(()) and expr.
  323. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  324. eval 'as_fn_arith ()
  325. {
  326. as_val=$(( $* ))
  327. }'
  328. else
  329. as_fn_arith ()
  330. {
  331. as_val=`expr "$@" || test $? -eq 1`
  332. }
  333. fi # as_fn_arith
  334. @%:@ as_fn_error STATUS ERROR [LINENO LOG_FD]
  335. @%:@ ----------------------------------------
  336. @%:@ Output "`basename @S|@0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  337. @%:@ provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  338. @%:@ script with STATUS, using 1 if that was 0.
  339. as_fn_error ()
  340. {
  341. as_status=$1; test $as_status -eq 0 && as_status=1
  342. if test "$4"; then
  343. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  344. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  345. fi
  346. $as_echo "$as_me: error: $2" >&2
  347. as_fn_exit $as_status
  348. } @%:@ as_fn_error
  349. if expr a : '\(a\)' >/dev/null 2>&1 &&
  350. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  351. as_expr=expr
  352. else
  353. as_expr=false
  354. fi
  355. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  356. as_basename=basename
  357. else
  358. as_basename=false
  359. fi
  360. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  361. as_dirname=dirname
  362. else
  363. as_dirname=false
  364. fi
  365. as_me=`$as_basename -- "$0" ||
  366. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  367. X"$0" : 'X\(//\)$' \| \
  368. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  369. $as_echo X/"$0" |
  370. sed '/^.*\/\([^/][^/]*\)\/*$/{
  371. s//\1/
  372. q
  373. }
  374. /^X\/\(\/\/\)$/{
  375. s//\1/
  376. q
  377. }
  378. /^X\/\(\/\).*/{
  379. s//\1/
  380. q
  381. }
  382. s/.*/./; q'`
  383. # Avoid depending upon Character Ranges.
  384. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  385. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  386. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  387. as_cr_digits='0123456789'
  388. as_cr_alnum=$as_cr_Letters$as_cr_digits
  389. as_lineno_1=$LINENO as_lineno_1a=$LINENO
  390. as_lineno_2=$LINENO as_lineno_2a=$LINENO
  391. eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
  392. test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
  393. # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
  394. sed -n '
  395. p
  396. /[$]LINENO/=
  397. ' <$as_myself |
  398. sed '
  399. s/[$]LINENO.*/&-/
  400. t lineno
  401. b
  402. :lineno
  403. N
  404. :loop
  405. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  406. t loop
  407. s/-\n.*//
  408. ' >$as_me.lineno &&
  409. chmod +x "$as_me.lineno" ||
  410. { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
  411. # Don't try to exec as it changes $[0], causing all sort of problems
  412. # (the dirname of $[0] is not the place where we might find the
  413. # original and so on. Autoconf is especially sensitive to this).
  414. . "./$as_me.lineno"
  415. # Exit status is that of the last command.
  416. exit
  417. }
  418. ECHO_C= ECHO_N= ECHO_T=
  419. case `echo -n x` in @%:@(((((
  420. -n*)
  421. case `echo 'xy\c'` in
  422. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  423. xy) ECHO_C='\c';;
  424. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  425. ECHO_T=' ';;
  426. esac;;
  427. *)
  428. ECHO_N='-n';;
  429. esac
  430. rm -f conf$$ conf$$.exe conf$$.file
  431. if test -d conf$$.dir; then
  432. rm -f conf$$.dir/conf$$.file
  433. else
  434. rm -f conf$$.dir
  435. mkdir conf$$.dir 2>/dev/null
  436. fi
  437. if (echo >conf$$.file) 2>/dev/null; then
  438. if ln -s conf$$.file conf$$ 2>/dev/null; then
  439. as_ln_s='ln -s'
  440. # ... but there are two gotchas:
  441. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  442. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  443. # In both cases, we have to default to `cp -p'.
  444. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  445. as_ln_s='cp -p'
  446. elif ln conf$$.file conf$$ 2>/dev/null; then
  447. as_ln_s=ln
  448. else
  449. as_ln_s='cp -p'
  450. fi
  451. else
  452. as_ln_s='cp -p'
  453. fi
  454. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  455. rmdir conf$$.dir 2>/dev/null
  456. if mkdir -p . 2>/dev/null; then
  457. as_mkdir_p='mkdir -p "$as_dir"'
  458. else
  459. test -d ./-p && rmdir ./-p
  460. as_mkdir_p=false
  461. fi
  462. if test -x / >/dev/null 2>&1; then
  463. as_test_x='test -x'
  464. else
  465. if ls -dL / >/dev/null 2>&1; then
  466. as_ls_L_option=L
  467. else
  468. as_ls_L_option=
  469. fi
  470. as_test_x='
  471. eval sh -c '\''
  472. if test -d "$1"; then
  473. test -d "$1/.";
  474. else
  475. case $1 in @%:@(
  476. -*)set "./$1";;
  477. esac;
  478. case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in @%:@((
  479. ???[sx]*):;;*)false;;esac;fi
  480. '\'' sh
  481. '
  482. fi
  483. as_executable_p=$as_test_x
  484. # Sed expression to map a string onto a valid CPP name.
  485. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  486. # Sed expression to map a string onto a valid variable name.
  487. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  488. # Check that we are running under the correct shell.
  489. SHELL=${CONFIG_SHELL-/bin/sh}
  490. case X$lt_ECHO in
  491. X*--fallback-echo)
  492. # Remove one level of quotation (which was required for Make).
  493. ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
  494. ;;
  495. esac
  496. ECHO=${lt_ECHO-echo}
  497. if test "X$1" = X--no-reexec; then
  498. # Discard the --no-reexec flag, and continue.
  499. shift
  500. elif test "X$1" = X--fallback-echo; then
  501. # Avoid inline document here, it may be left over
  502. :
  503. elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
  504. # Yippee, $ECHO works!
  505. :
  506. else
  507. # Restart under the correct shell.
  508. exec $SHELL "$0" --no-reexec ${1+"$@"}
  509. fi
  510. if test "X$1" = X--fallback-echo; then
  511. # used as fallback echo
  512. shift
  513. cat <<_LT_EOF
  514. $*
  515. _LT_EOF
  516. exit 0
  517. fi
  518. # The HP-UX ksh and POSIX shell print the target directory to stdout
  519. # if CDPATH is set.
  520. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  521. if test -z "$lt_ECHO"; then
  522. if test "X${echo_test_string+set}" != Xset; then
  523. # find a string as large as possible, as long as the shell can cope with it
  524. for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
  525. # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
  526. if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
  527. { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
  528. then
  529. break
  530. fi
  531. done
  532. fi
  533. if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
  534. echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
  535. test "X$echo_testing_string" = "X$echo_test_string"; then
  536. :
  537. else
  538. # The Solaris, AIX, and Digital Unix default echo programs unquote
  539. # backslashes. This makes it impossible to quote backslashes using
  540. # echo "$something" | sed 's/\\/\\\\/g'
  541. #
  542. # So, first we look for a working echo in the user's PATH.
  543. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  544. for dir in $PATH /usr/ucb; do
  545. IFS="$lt_save_ifs"
  546. if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
  547. test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
  548. echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
  549. test "X$echo_testing_string" = "X$echo_test_string"; then
  550. ECHO="$dir/echo"
  551. break
  552. fi
  553. done
  554. IFS="$lt_save_ifs"
  555. if test "X$ECHO" = Xecho; then
  556. # We didn't find a better echo, so look for alternatives.
  557. if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
  558. echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
  559. test "X$echo_testing_string" = "X$echo_test_string"; then
  560. # This shell has a builtin print -r that does the trick.
  561. ECHO='print -r'
  562. elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
  563. test "X$CONFIG_SHELL" != X/bin/ksh; then
  564. # If we have ksh, try running configure again with it.
  565. ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
  566. export ORIGINAL_CONFIG_SHELL
  567. CONFIG_SHELL=/bin/ksh
  568. export CONFIG_SHELL
  569. exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
  570. else
  571. # Try using printf.
  572. ECHO='printf %s\n'
  573. if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
  574. echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
  575. test "X$echo_testing_string" = "X$echo_test_string"; then
  576. # Cool, printf works
  577. :
  578. elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
  579. test "X$echo_testing_string" = 'X\t' &&
  580. echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
  581. test "X$echo_testing_string" = "X$echo_test_string"; then
  582. CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
  583. export CONFIG_SHELL
  584. SHELL="$CONFIG_SHELL"
  585. export SHELL
  586. ECHO="$CONFIG_SHELL $0 --fallback-echo"
  587. elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
  588. test "X$echo_testing_string" = 'X\t' &&
  589. echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
  590. test "X$echo_testing_string" = "X$echo_test_string"; then
  591. ECHO="$CONFIG_SHELL $0 --fallback-echo"
  592. else
  593. # maybe with a smaller string...
  594. prev=:
  595. for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
  596. if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
  597. then
  598. break
  599. fi
  600. prev="$cmd"
  601. done
  602. if test "$prev" != 'sed 50q "$0"'; then
  603. echo_test_string=`eval $prev`
  604. export echo_test_string
  605. exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
  606. else
  607. # Oops. We lost completely, so just stick with echo.
  608. ECHO=echo
  609. fi
  610. fi
  611. fi
  612. fi
  613. fi
  614. fi
  615. # Copy echo and quote the copy suitably for passing to libtool from
  616. # the Makefile, instead of quoting the original, which is used later.
  617. lt_ECHO=$ECHO
  618. if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
  619. lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
  620. fi
  621. test -n "$DJDIR" || exec 7<&0 </dev/null
  622. exec 6>&1
  623. # Name of the host.
  624. # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
  625. # so uname gets run too.
  626. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  627. #
  628. # Initializations.
  629. #
  630. ac_default_prefix=/usr/local
  631. ac_clean_files=
  632. ac_config_libobj_dir=.
  633. LIB@&t@OBJS=
  634. cross_compiling=no
  635. subdirs=
  636. MFLAGS=
  637. MAKEFLAGS=
  638. # Identity of this package.
  639. PACKAGE_NAME='libPolyCore'
  640. PACKAGE_TARNAME='libpolycore'
  641. PACKAGE_VERSION='0.8.2'
  642. PACKAGE_STRING='libPolyCore 0.8.2'
  643. PACKAGE_BUGREPORT='[email protected]'
  644. PACKAGE_URL=''
  645. # Factoring default headers for most tests.
  646. ac_includes_default="\
  647. #include <stdio.h>
  648. #ifdef HAVE_SYS_TYPES_H
  649. # include <sys/types.h>
  650. #endif
  651. #ifdef HAVE_SYS_STAT_H
  652. # include <sys/stat.h>
  653. #endif
  654. #ifdef STDC_HEADERS
  655. # include <stdlib.h>
  656. # include <stddef.h>
  657. #else
  658. # ifdef HAVE_STDLIB_H
  659. # include <stdlib.h>
  660. # endif
  661. #endif
  662. #ifdef HAVE_STRING_H
  663. # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
  664. # include <memory.h>
  665. # endif
  666. # include <string.h>
  667. #endif
  668. #ifdef HAVE_STRINGS_H
  669. # include <strings.h>
  670. #endif
  671. #ifdef HAVE_INTTYPES_H
  672. # include <inttypes.h>
  673. #endif
  674. #ifdef HAVE_STDINT_H
  675. # include <stdint.h>
  676. #endif
  677. #ifdef HAVE_UNISTD_H
  678. # include <unistd.h>
  679. #endif"
  680. ac_subst_vars='am__EXEEXT_FALSE
  681. am__EXEEXT_TRUE
  682. LTLIBOBJS
  683. LIB@&t@OBJS
  684. CXXCPP
  685. am__fastdepCXX_FALSE
  686. am__fastdepCXX_TRUE
  687. CXXDEPMODE
  688. ac_ct_CXX
  689. CXXFLAGS
  690. CXX
  691. CPP
  692. OTOOL64
  693. OTOOL
  694. LIPO
  695. NMEDIT
  696. DSYMUTIL
  697. lt_ECHO
  698. RANLIB
  699. AR
  700. OBJDUMP
  701. LN_S
  702. NM
  703. ac_ct_DUMPBIN
  704. DUMPBIN
  705. LD
  706. FGREP
  707. EGREP
  708. GREP
  709. SED
  710. am__fastdepCC_FALSE
  711. am__fastdepCC_TRUE
  712. CCDEPMODE
  713. AMDEPBACKSLASH
  714. AMDEP_FALSE
  715. AMDEP_TRUE
  716. am__quote
  717. am__include
  718. DEPDIR
  719. OBJEXT
  720. EXEEXT
  721. ac_ct_CC
  722. CPPFLAGS
  723. LDFLAGS
  724. CFLAGS
  725. CC
  726. host_os
  727. host_vendor
  728. host_cpu
  729. host
  730. build_os
  731. build_vendor
  732. build_cpu
  733. build
  734. LIBTOOL
  735. am__untar
  736. am__tar
  737. AMTAR
  738. am__leading_dot
  739. SET_MAKE
  740. AWK
  741. mkdir_p
  742. MKDIR_P
  743. INSTALL_STRIP_PROGRAM
  744. STRIP
  745. install_sh
  746. MAKEINFO
  747. AUTOHEADER
  748. AUTOMAKE
  749. AUTOCONF
  750. ACLOCAL
  751. VERSION
  752. PACKAGE
  753. CYGPATH_W
  754. am__isrc
  755. INSTALL_DATA
  756. INSTALL_SCRIPT
  757. INSTALL_PROGRAM
  758. target_alias
  759. host_alias
  760. build_alias
  761. LIBS
  762. ECHO_T
  763. ECHO_N
  764. ECHO_C
  765. DEFS
  766. mandir
  767. localedir
  768. libdir
  769. psdir
  770. pdfdir
  771. dvidir
  772. htmldir
  773. infodir
  774. docdir
  775. oldincludedir
  776. includedir
  777. localstatedir
  778. sharedstatedir
  779. sysconfdir
  780. datadir
  781. datarootdir
  782. libexecdir
  783. sbindir
  784. bindir
  785. program_transform_name
  786. prefix
  787. exec_prefix
  788. PACKAGE_URL
  789. PACKAGE_BUGREPORT
  790. PACKAGE_STRING
  791. PACKAGE_VERSION
  792. PACKAGE_TARNAME
  793. PACKAGE_NAME
  794. PATH_SEPARATOR
  795. SHELL'
  796. ac_subst_files=''
  797. ac_user_opts='
  798. enable_option_checking
  799. enable_shared
  800. enable_static
  801. with_pic
  802. enable_fast_install
  803. enable_dependency_tracking
  804. with_gnu_ld
  805. enable_libtool_lock
  806. '
  807. ac_precious_vars='build_alias
  808. host_alias
  809. target_alias
  810. CC
  811. CFLAGS
  812. LDFLAGS
  813. LIBS
  814. CPPFLAGS
  815. CPP
  816. CXX
  817. CXXFLAGS
  818. CCC
  819. CXXCPP'
  820. # Initialize some variables set by options.
  821. ac_init_help=
  822. ac_init_version=false
  823. ac_unrecognized_opts=
  824. ac_unrecognized_sep=
  825. # The variables have the same names as the options, with
  826. # dashes changed to underlines.
  827. cache_file=/dev/null
  828. exec_prefix=NONE
  829. no_create=
  830. no_recursion=
  831. prefix=NONE
  832. program_prefix=NONE
  833. program_suffix=NONE
  834. program_transform_name=s,x,x,
  835. silent=
  836. site=
  837. srcdir=
  838. verbose=
  839. x_includes=NONE
  840. x_libraries=NONE
  841. # Installation directory options.
  842. # These are left unexpanded so users can "make install exec_prefix=/foo"
  843. # and all the variables that are supposed to be based on exec_prefix
  844. # by default will actually change.
  845. # Use braces instead of parens because sh, perl, etc. also accept them.
  846. # (The list follows the same order as the GNU Coding Standards.)
  847. bindir='${exec_prefix}/bin'
  848. sbindir='${exec_prefix}/sbin'
  849. libexecdir='${exec_prefix}/libexec'
  850. datarootdir='${prefix}/share'
  851. datadir='${datarootdir}'
  852. sysconfdir='${prefix}/etc'
  853. sharedstatedir='${prefix}/com'
  854. localstatedir='${prefix}/var'
  855. includedir='${prefix}/include'
  856. oldincludedir='/usr/include'
  857. docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
  858. infodir='${datarootdir}/info'
  859. htmldir='${docdir}'
  860. dvidir='${docdir}'
  861. pdfdir='${docdir}'
  862. psdir='${docdir}'
  863. libdir='${exec_prefix}/lib'
  864. localedir='${datarootdir}/locale'
  865. mandir='${datarootdir}/man'
  866. ac_prev=
  867. ac_dashdash=
  868. for ac_option
  869. do
  870. # If the previous option needs an argument, assign it.
  871. if test -n "$ac_prev"; then
  872. eval $ac_prev=\$ac_option
  873. ac_prev=
  874. continue
  875. fi
  876. case $ac_option in
  877. *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  878. *=) ac_optarg= ;;
  879. *) ac_optarg=yes ;;
  880. esac
  881. # Accept the important Cygnus configure options, so we can diagnose typos.
  882. case $ac_dashdash$ac_option in
  883. --)
  884. ac_dashdash=yes ;;
  885. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  886. ac_prev=bindir ;;
  887. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  888. bindir=$ac_optarg ;;
  889. -build | --build | --buil | --bui | --bu)
  890. ac_prev=build_alias ;;
  891. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  892. build_alias=$ac_optarg ;;
  893. -cache-file | --cache-file | --cache-fil | --cache-fi \
  894. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  895. ac_prev=cache_file ;;
  896. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  897. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  898. cache_file=$ac_optarg ;;
  899. --config-cache | -C)
  900. cache_file=config.cache ;;
  901. -datadir | --datadir | --datadi | --datad)
  902. ac_prev=datadir ;;
  903. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  904. datadir=$ac_optarg ;;
  905. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  906. | --dataroo | --dataro | --datar)
  907. ac_prev=datarootdir ;;
  908. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  909. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  910. datarootdir=$ac_optarg ;;
  911. -disable-* | --disable-*)
  912. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  913. # Reject names that are not valid shell variable names.
  914. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  915. as_fn_error $? "invalid feature name: $ac_useropt"
  916. ac_useropt_orig=$ac_useropt
  917. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  918. case $ac_user_opts in
  919. *"
  920. "enable_$ac_useropt"
  921. "*) ;;
  922. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  923. ac_unrecognized_sep=', ';;
  924. esac
  925. eval enable_$ac_useropt=no ;;
  926. -docdir | --docdir | --docdi | --doc | --do)
  927. ac_prev=docdir ;;
  928. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  929. docdir=$ac_optarg ;;
  930. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  931. ac_prev=dvidir ;;
  932. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  933. dvidir=$ac_optarg ;;
  934. -enable-* | --enable-*)
  935. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  936. # Reject names that are not valid shell variable names.
  937. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  938. as_fn_error $? "invalid feature name: $ac_useropt"
  939. ac_useropt_orig=$ac_useropt
  940. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  941. case $ac_user_opts in
  942. *"
  943. "enable_$ac_useropt"
  944. "*) ;;
  945. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  946. ac_unrecognized_sep=', ';;
  947. esac
  948. eval enable_$ac_useropt=\$ac_optarg ;;
  949. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  950. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  951. | --exec | --exe | --ex)
  952. ac_prev=exec_prefix ;;
  953. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  954. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  955. | --exec=* | --exe=* | --ex=*)
  956. exec_prefix=$ac_optarg ;;
  957. -gas | --gas | --ga | --g)
  958. # Obsolete; use --with-gas.
  959. with_gas=yes ;;
  960. -help | --help | --hel | --he | -h)
  961. ac_init_help=long ;;
  962. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  963. ac_init_help=recursive ;;
  964. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  965. ac_init_help=short ;;
  966. -host | --host | --hos | --ho)
  967. ac_prev=host_alias ;;
  968. -host=* | --host=* | --hos=* | --ho=*)
  969. host_alias=$ac_optarg ;;
  970. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  971. ac_prev=htmldir ;;
  972. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  973. | --ht=*)
  974. htmldir=$ac_optarg ;;
  975. -includedir | --includedir | --includedi | --included | --include \
  976. | --includ | --inclu | --incl | --inc)
  977. ac_prev=includedir ;;
  978. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  979. | --includ=* | --inclu=* | --incl=* | --inc=*)
  980. includedir=$ac_optarg ;;
  981. -infodir | --infodir | --infodi | --infod | --info | --inf)
  982. ac_prev=infodir ;;
  983. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  984. infodir=$ac_optarg ;;
  985. -libdir | --libdir | --libdi | --libd)
  986. ac_prev=libdir ;;
  987. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  988. libdir=$ac_optarg ;;
  989. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  990. | --libexe | --libex | --libe)
  991. ac_prev=libexecdir ;;
  992. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  993. | --libexe=* | --libex=* | --libe=*)
  994. libexecdir=$ac_optarg ;;
  995. -localedir | --localedir | --localedi | --localed | --locale)
  996. ac_prev=localedir ;;
  997. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  998. localedir=$ac_optarg ;;
  999. -localstatedir | --localstatedir | --localstatedi | --localstated \
  1000. | --localstate | --localstat | --localsta | --localst | --locals)
  1001. ac_prev=localstatedir ;;
  1002. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  1003. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  1004. localstatedir=$ac_optarg ;;
  1005. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  1006. ac_prev=mandir ;;
  1007. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  1008. mandir=$ac_optarg ;;
  1009. -nfp | --nfp | --nf)
  1010. # Obsolete; use --without-fp.
  1011. with_fp=no ;;
  1012. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  1013. | --no-cr | --no-c | -n)
  1014. no_create=yes ;;
  1015. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  1016. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  1017. no_recursion=yes ;;
  1018. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  1019. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  1020. | --oldin | --oldi | --old | --ol | --o)
  1021. ac_prev=oldincludedir ;;
  1022. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  1023. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  1024. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  1025. oldincludedir=$ac_optarg ;;
  1026. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  1027. ac_prev=prefix ;;
  1028. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  1029. prefix=$ac_optarg ;;
  1030. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  1031. | --program-pre | --program-pr | --program-p)
  1032. ac_prev=program_prefix ;;
  1033. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  1034. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  1035. program_prefix=$ac_optarg ;;
  1036. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  1037. | --program-suf | --program-su | --program-s)
  1038. ac_prev=program_suffix ;;
  1039. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  1040. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  1041. program_suffix=$ac_optarg ;;
  1042. -program-transform-name | --program-transform-name \
  1043. | --program-transform-nam | --program-transform-na \
  1044. | --program-transform-n | --program-transform- \
  1045. | --program-transform | --program-transfor \
  1046. | --program-transfo | --program-transf \
  1047. | --program-trans | --program-tran \
  1048. | --progr-tra | --program-tr | --program-t)
  1049. ac_prev=program_transform_name ;;
  1050. -program-transform-name=* | --program-transform-name=* \
  1051. | --program-transform-nam=* | --program-transform-na=* \
  1052. | --program-transform-n=* | --program-transform-=* \
  1053. | --program-transform=* | --program-transfor=* \
  1054. | --program-transfo=* | --program-transf=* \
  1055. | --program-trans=* | --program-tran=* \
  1056. | --progr-tra=* | --program-tr=* | --program-t=*)
  1057. program_transform_name=$ac_optarg ;;
  1058. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  1059. ac_prev=pdfdir ;;
  1060. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  1061. pdfdir=$ac_optarg ;;
  1062. -psdir | --psdir | --psdi | --psd | --ps)
  1063. ac_prev=psdir ;;
  1064. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  1065. psdir=$ac_optarg ;;
  1066. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1067. | -silent | --silent | --silen | --sile | --sil)
  1068. silent=yes ;;
  1069. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  1070. ac_prev=sbindir ;;
  1071. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  1072. | --sbi=* | --sb=*)
  1073. sbindir=$ac_optarg ;;
  1074. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  1075. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  1076. | --sharedst | --shareds | --shared | --share | --shar \
  1077. | --sha | --sh)
  1078. ac_prev=sharedstatedir ;;
  1079. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  1080. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  1081. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  1082. | --sha=* | --sh=*)
  1083. sharedstatedir=$ac_optarg ;;
  1084. -site | --site | --sit)
  1085. ac_prev=site ;;
  1086. -site=* | --site=* | --sit=*)
  1087. site=$ac_optarg ;;
  1088. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  1089. ac_prev=srcdir ;;
  1090. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1091. srcdir=$ac_optarg ;;
  1092. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  1093. | --syscon | --sysco | --sysc | --sys | --sy)
  1094. ac_prev=sysconfdir ;;
  1095. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  1096. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  1097. sysconfdir=$ac_optarg ;;
  1098. -target | --target | --targe | --targ | --tar | --ta | --t)
  1099. ac_prev=target_alias ;;
  1100. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  1101. target_alias=$ac_optarg ;;
  1102. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  1103. verbose=yes ;;
  1104. -version | --version | --versio | --versi | --vers | -V)
  1105. ac_init_version=: ;;
  1106. -with-* | --with-*)
  1107. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1108. # Reject names that are not valid shell variable names.
  1109. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1110. as_fn_error $? "invalid package name: $ac_useropt"
  1111. ac_useropt_orig=$ac_useropt
  1112. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1113. case $ac_user_opts in
  1114. *"
  1115. "with_$ac_useropt"
  1116. "*) ;;
  1117. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  1118. ac_unrecognized_sep=', ';;
  1119. esac
  1120. eval with_$ac_useropt=\$ac_optarg ;;
  1121. -without-* | --without-*)
  1122. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1123. # Reject names that are not valid shell variable names.
  1124. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1125. as_fn_error $? "invalid package name: $ac_useropt"
  1126. ac_useropt_orig=$ac_useropt
  1127. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1128. case $ac_user_opts in
  1129. *"
  1130. "with_$ac_useropt"
  1131. "*) ;;
  1132. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  1133. ac_unrecognized_sep=', ';;
  1134. esac
  1135. eval with_$ac_useropt=no ;;
  1136. --x)
  1137. # Obsolete; use --with-x.
  1138. with_x=yes ;;
  1139. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1140. | --x-incl | --x-inc | --x-in | --x-i)
  1141. ac_prev=x_includes ;;
  1142. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1143. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1144. x_includes=$ac_optarg ;;
  1145. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1146. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1147. ac_prev=x_libraries ;;
  1148. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1149. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1150. x_libraries=$ac_optarg ;;
  1151. -*) as_fn_error $? "unrecognized option: \`$ac_option'
  1152. Try \`$0 --help' for more information"
  1153. ;;
  1154. *=*)
  1155. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1156. # Reject names that are not valid shell variable names.
  1157. case $ac_envvar in #(
  1158. '' | [0-9]* | *[!_$as_cr_alnum]* )
  1159. as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
  1160. esac
  1161. eval $ac_envvar=\$ac_optarg
  1162. export $ac_envvar ;;
  1163. *)
  1164. # FIXME: should be removed in autoconf 3.0.
  1165. $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1166. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1167. $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1168. : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
  1169. ;;
  1170. esac
  1171. done
  1172. if test -n "$ac_prev"; then
  1173. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1174. as_fn_error $? "missing argument to $ac_option"
  1175. fi
  1176. if test -n "$ac_unrecognized_opts"; then
  1177. case $enable_option_checking in
  1178. no) ;;
  1179. fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
  1180. *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1181. esac
  1182. fi
  1183. # Check all directory arguments for consistency.
  1184. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1185. datadir sysconfdir sharedstatedir localstatedir includedir \
  1186. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1187. libdir localedir mandir
  1188. do
  1189. eval ac_val=\$$ac_var
  1190. # Remove trailing slashes.
  1191. case $ac_val in
  1192. */ )
  1193. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1194. eval $ac_var=\$ac_val;;
  1195. esac
  1196. # Be sure to have absolute directory names.
  1197. case $ac_val in
  1198. [\\/$]* | ?:[\\/]* ) continue;;
  1199. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1200. esac
  1201. as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
  1202. done
  1203. # There might be people who depend on the old broken behavior: `$host'
  1204. # used to hold the argument of --host etc.
  1205. # FIXME: To remove some day.
  1206. build=$build_alias
  1207. host=$host_alias
  1208. target=$target_alias
  1209. # FIXME: To remove some day.
  1210. if test "x$host_alias" != x; then
  1211. if test "x$build_alias" = x; then
  1212. cross_compiling=maybe
  1213. $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
  1214. If a cross compiler is detected then cross compile mode will be used" >&2
  1215. elif test "x$build_alias" != "x$host_alias"; then
  1216. cross_compiling=yes
  1217. fi
  1218. fi
  1219. ac_tool_prefix=
  1220. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1221. test "$silent" = yes && exec 6>/dev/null
  1222. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1223. ac_ls_di=`ls -di .` &&
  1224. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1225. as_fn_error $? "working directory cannot be determined"
  1226. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1227. as_fn_error $? "pwd does not report name of working directory"
  1228. # Find the source files, if location was not specified.
  1229. if test -z "$srcdir"; then
  1230. ac_srcdir_defaulted=yes
  1231. # Try the directory containing this script, then the parent directory.
  1232. ac_confdir=`$as_dirname -- "$as_myself" ||
  1233. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1234. X"$as_myself" : 'X\(//\)[^/]' \| \
  1235. X"$as_myself" : 'X\(//\)$' \| \
  1236. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1237. $as_echo X"$as_myself" |
  1238. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1239. s//\1/
  1240. q
  1241. }
  1242. /^X\(\/\/\)[^/].*/{
  1243. s//\1/
  1244. q
  1245. }
  1246. /^X\(\/\/\)$/{
  1247. s//\1/
  1248. q
  1249. }
  1250. /^X\(\/\).*/{
  1251. s//\1/
  1252. q
  1253. }
  1254. s/.*/./; q'`
  1255. srcdir=$ac_confdir
  1256. if test ! -r "$srcdir/$ac_unique_file"; then
  1257. srcdir=..
  1258. fi
  1259. else
  1260. ac_srcdir_defaulted=no
  1261. fi
  1262. if test ! -r "$srcdir/$ac_unique_file"; then
  1263. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1264. as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
  1265. fi
  1266. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1267. ac_abs_confdir=`(
  1268. cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
  1269. pwd)`
  1270. # When building in place, set srcdir=.
  1271. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1272. srcdir=.
  1273. fi
  1274. # Remove unnecessary trailing slashes from srcdir.
  1275. # Double slashes in file names in object file debugging info
  1276. # mess up M-x gdb in Emacs.
  1277. case $srcdir in
  1278. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1279. esac
  1280. for ac_var in $ac_precious_vars; do
  1281. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1282. eval ac_env_${ac_var}_value=\$${ac_var}
  1283. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1284. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1285. done
  1286. #
  1287. # Report the --help message.
  1288. #
  1289. if test "$ac_init_help" = "long"; then
  1290. # Omit some internal or obsolete options to make the list less imposing.
  1291. # This message is too long to be a string in the A/UX 3.1 sh.
  1292. cat <<_ACEOF
  1293. \`configure' configures libPolyCore 0.8.2 to adapt to many kinds of systems.
  1294. Usage: $0 [OPTION]... [VAR=VALUE]...
  1295. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1296. VAR=VALUE. See below for descriptions of some of the useful variables.
  1297. Defaults for the options are specified in brackets.
  1298. Configuration:
  1299. -h, --help display this help and exit
  1300. --help=short display options specific to this package
  1301. --help=recursive display the short help of all the included packages
  1302. -V, --version display version information and exit
  1303. -q, --quiet, --silent do not print \`checking ...' messages
  1304. --cache-file=FILE cache test results in FILE [disabled]
  1305. -C, --config-cache alias for \`--cache-file=config.cache'
  1306. -n, --no-create do not create output files
  1307. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1308. Installation directories:
  1309. --prefix=PREFIX install architecture-independent files in PREFIX
  1310. @<:@@S|@ac_default_prefix@:>@
  1311. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1312. @<:@PREFIX@:>@
  1313. By default, \`make install' will install all the files in
  1314. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1315. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1316. for instance \`--prefix=\$HOME'.
  1317. For better control, use the options below.
  1318. Fine tuning of the installation directories:
  1319. --bindir=DIR user executables [EPREFIX/bin]
  1320. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1321. --libexecdir=DIR program executables [EPREFIX/libexec]
  1322. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1323. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1324. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1325. --libdir=DIR object code libraries [EPREFIX/lib]
  1326. --includedir=DIR C header files [PREFIX/include]
  1327. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1328. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1329. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1330. --infodir=DIR info documentation [DATAROOTDIR/info]
  1331. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1332. --mandir=DIR man documentation [DATAROOTDIR/man]
  1333. --docdir=DIR documentation root @<:@DATAROOTDIR/doc/libpolycore@:>@
  1334. --htmldir=DIR html documentation [DOCDIR]
  1335. --dvidir=DIR dvi documentation [DOCDIR]
  1336. --pdfdir=DIR pdf documentation [DOCDIR]
  1337. --psdir=DIR ps documentation [DOCDIR]
  1338. _ACEOF
  1339. cat <<\_ACEOF
  1340. Program names:
  1341. --program-prefix=PREFIX prepend PREFIX to installed program names
  1342. --program-suffix=SUFFIX append SUFFIX to installed program names
  1343. --program-transform-name=PROGRAM run sed PROGRAM on installed program names
  1344. System types:
  1345. --build=BUILD configure for building on BUILD [guessed]
  1346. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1347. _ACEOF
  1348. fi
  1349. if test -n "$ac_init_help"; then
  1350. case $ac_init_help in
  1351. short | recursive ) echo "Configuration of libPolyCore 0.8.2:";;
  1352. esac
  1353. cat <<\_ACEOF
  1354. Optional Features:
  1355. --disable-option-checking ignore unrecognized --enable/--with options
  1356. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1357. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1358. --enable-shared@<:@=PKGS@:>@ build shared libraries @<:@default=yes@:>@
  1359. --enable-static@<:@=PKGS@:>@ build static libraries @<:@default=yes@:>@
  1360. --enable-fast-install@<:@=PKGS@:>@
  1361. optimize for fast installation @<:@default=yes@:>@
  1362. --disable-dependency-tracking speeds up one-time build
  1363. --enable-dependency-tracking do not reject slow dependency extractors
  1364. --disable-libtool-lock avoid locking (might break parallel builds)
  1365. Optional Packages:
  1366. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1367. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1368. --with-pic try to use only PIC/non-PIC objects @<:@default=use
  1369. both@:>@
  1370. --with-gnu-ld assume the C compiler uses GNU ld @<:@default=no@:>@
  1371. Some influential environment variables:
  1372. CC C compiler command
  1373. CFLAGS C compiler flags
  1374. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1375. nonstandard directory <lib dir>
  1376. LIBS libraries to pass to the linker, e.g. -l<library>
  1377. CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
  1378. you have headers in a nonstandard directory <include dir>
  1379. CPP C preprocessor
  1380. CXX C++ compiler command
  1381. CXXFLAGS C++ compiler flags
  1382. CXXCPP C++ preprocessor
  1383. Use these variables to override the choices made by `configure' or to help
  1384. it to find libraries and programs with nonstandard names/locations.
  1385. Report bugs to <[email protected]>.
  1386. _ACEOF
  1387. ac_status=$?
  1388. fi
  1389. if test "$ac_init_help" = "recursive"; then
  1390. # If there are subdirs, report their specific --help.
  1391. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1392. test -d "$ac_dir" ||
  1393. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1394. continue
  1395. ac_builddir=.
  1396. case "$ac_dir" in
  1397. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1398. *)
  1399. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  1400. # A ".." for each directory in $ac_dir_suffix.
  1401. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1402. case $ac_top_builddir_sub in
  1403. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1404. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1405. esac ;;
  1406. esac
  1407. ac_abs_top_builddir=$ac_pwd
  1408. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1409. # for backward compatibility:
  1410. ac_top_builddir=$ac_top_build_prefix
  1411. case $srcdir in
  1412. .) # We are building in place.
  1413. ac_srcdir=.
  1414. ac_top_srcdir=$ac_top_builddir_sub
  1415. ac_abs_top_srcdir=$ac_pwd ;;
  1416. [\\/]* | ?:[\\/]* ) # Absolute name.
  1417. ac_srcdir=$srcdir$ac_dir_suffix;
  1418. ac_top_srcdir=$srcdir
  1419. ac_abs_top_srcdir=$srcdir ;;
  1420. *) # Relative name.
  1421. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1422. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1423. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1424. esac
  1425. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1426. cd "$ac_dir" || { ac_status=$?; continue; }
  1427. # Check for guested configure.
  1428. if test -f "$ac_srcdir/configure.gnu"; then
  1429. echo &&
  1430. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1431. elif test -f "$ac_srcdir/configure"; then
  1432. echo &&
  1433. $SHELL "$ac_srcdir/configure" --help=recursive
  1434. else
  1435. $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1436. fi || ac_status=$?
  1437. cd "$ac_pwd" || { ac_status=$?; break; }
  1438. done
  1439. fi
  1440. test -n "$ac_init_help" && exit $ac_status
  1441. if $ac_init_version; then
  1442. cat <<\_ACEOF
  1443. libPolyCore configure 0.8.2
  1444. generated by GNU Autoconf 2.67
  1445. Copyright (C) 2010 Free Software Foundation, Inc.
  1446. This configure script is free software; the Free Software Foundation
  1447. gives unlimited permission to copy, distribute and modify it.
  1448. _ACEOF
  1449. exit
  1450. fi
  1451. ## ------------------------ ##
  1452. ## Autoconf initialization. ##
  1453. ## ------------------------ ##
  1454. @%:@ ac_fn_c_try_compile LINENO
  1455. @%:@ --------------------------
  1456. @%:@ Try to compile conftest.@S|@ac_ext, and return whether this succeeded.
  1457. ac_fn_c_try_compile ()
  1458. {
  1459. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1460. rm -f conftest.$ac_objext
  1461. if { { ac_try="$ac_compile"
  1462. case "(($ac_try" in
  1463. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1464. *) ac_try_echo=$ac_try;;
  1465. esac
  1466. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1467. $as_echo "$ac_try_echo"; } >&5
  1468. (eval "$ac_compile") 2>conftest.err
  1469. ac_status=$?
  1470. if test -s conftest.err; then
  1471. grep -v '^ *+' conftest.err >conftest.er1
  1472. cat conftest.er1 >&5
  1473. mv -f conftest.er1 conftest.err
  1474. fi
  1475. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1476. test $ac_status = 0; } && {
  1477. test -z "$ac_c_werror_flag" ||
  1478. test ! -s conftest.err
  1479. } && test -s conftest.$ac_objext; then :
  1480. ac_retval=0
  1481. else
  1482. $as_echo "$as_me: failed program was:" >&5
  1483. sed 's/^/| /' conftest.$ac_ext >&5
  1484. ac_retval=1
  1485. fi
  1486. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1487. as_fn_set_status $ac_retval
  1488. } @%:@ ac_fn_c_try_compile
  1489. @%:@ ac_fn_c_try_link LINENO
  1490. @%:@ -----------------------
  1491. @%:@ Try to link conftest.@S|@ac_ext, and return whether this succeeded.
  1492. ac_fn_c_try_link ()
  1493. {
  1494. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1495. rm -f conftest.$ac_objext conftest$ac_exeext
  1496. if { { ac_try="$ac_link"
  1497. case "(($ac_try" in
  1498. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1499. *) ac_try_echo=$ac_try;;
  1500. esac
  1501. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1502. $as_echo "$ac_try_echo"; } >&5
  1503. (eval "$ac_link") 2>conftest.err
  1504. ac_status=$?
  1505. if test -s conftest.err; then
  1506. grep -v '^ *+' conftest.err >conftest.er1
  1507. cat conftest.er1 >&5
  1508. mv -f conftest.er1 conftest.err
  1509. fi
  1510. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1511. test $ac_status = 0; } && {
  1512. test -z "$ac_c_werror_flag" ||
  1513. test ! -s conftest.err
  1514. } && test -s conftest$ac_exeext && {
  1515. test "$cross_compiling" = yes ||
  1516. $as_test_x conftest$ac_exeext
  1517. }; then :
  1518. ac_retval=0
  1519. else
  1520. $as_echo "$as_me: failed program was:" >&5
  1521. sed 's/^/| /' conftest.$ac_ext >&5
  1522. ac_retval=1
  1523. fi
  1524. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1525. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1526. # interfere with the next link command; also delete a directory that is
  1527. # left behind by Apple's compiler. We do this before executing the actions.
  1528. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1529. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1530. as_fn_set_status $ac_retval
  1531. } @%:@ ac_fn_c_try_link
  1532. @%:@ ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
  1533. @%:@ -------------------------------------------------------
  1534. @%:@ Tests whether HEADER exists and can be compiled using the include files in
  1535. @%:@ INCLUDES, setting the cache variable VAR accordingly.
  1536. ac_fn_c_check_header_compile ()
  1537. {
  1538. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1539. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1540. $as_echo_n "checking for $2... " >&6; }
  1541. if eval "test \"\${$3+set}\"" = set; then :
  1542. $as_echo_n "(cached) " >&6
  1543. else
  1544. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1545. /* end confdefs.h. */
  1546. $4
  1547. @%:@include <$2>
  1548. _ACEOF
  1549. if ac_fn_c_try_compile "$LINENO"; then :
  1550. eval "$3=yes"
  1551. else
  1552. eval "$3=no"
  1553. fi
  1554. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1555. fi
  1556. eval ac_res=\$$3
  1557. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1558. $as_echo "$ac_res" >&6; }
  1559. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1560. } @%:@ ac_fn_c_check_header_compile
  1561. @%:@ ac_fn_c_try_cpp LINENO
  1562. @%:@ ----------------------
  1563. @%:@ Try to preprocess conftest.@S|@ac_ext, and return whether this succeeded.
  1564. ac_fn_c_try_cpp ()
  1565. {
  1566. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1567. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1568. case "(($ac_try" in
  1569. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1570. *) ac_try_echo=$ac_try;;
  1571. esac
  1572. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1573. $as_echo "$ac_try_echo"; } >&5
  1574. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1575. ac_status=$?
  1576. if test -s conftest.err; then
  1577. grep -v '^ *+' conftest.err >conftest.er1
  1578. cat conftest.er1 >&5
  1579. mv -f conftest.er1 conftest.err
  1580. fi
  1581. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1582. test $ac_status = 0; } > conftest.i && {
  1583. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  1584. test ! -s conftest.err
  1585. }; then :
  1586. ac_retval=0
  1587. else
  1588. $as_echo "$as_me: failed program was:" >&5
  1589. sed 's/^/| /' conftest.$ac_ext >&5
  1590. ac_retval=1
  1591. fi
  1592. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1593. as_fn_set_status $ac_retval
  1594. } @%:@ ac_fn_c_try_cpp
  1595. @%:@ ac_fn_c_try_run LINENO
  1596. @%:@ ----------------------
  1597. @%:@ Try to link conftest.@S|@ac_ext, and return whether this succeeded. Assumes
  1598. @%:@ that executables *can* be run.
  1599. ac_fn_c_try_run ()
  1600. {
  1601. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1602. if { { ac_try="$ac_link"
  1603. case "(($ac_try" in
  1604. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1605. *) ac_try_echo=$ac_try;;
  1606. esac
  1607. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1608. $as_echo "$ac_try_echo"; } >&5
  1609. (eval "$ac_link") 2>&5
  1610. ac_status=$?
  1611. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1612. test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  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_try") 2>&5
  1620. ac_status=$?
  1621. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1622. test $ac_status = 0; }; }; then :
  1623. ac_retval=0
  1624. else
  1625. $as_echo "$as_me: program exited with status $ac_status" >&5
  1626. $as_echo "$as_me: failed program was:" >&5
  1627. sed 's/^/| /' conftest.$ac_ext >&5
  1628. ac_retval=$ac_status
  1629. fi
  1630. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1631. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1632. as_fn_set_status $ac_retval
  1633. } @%:@ ac_fn_c_try_run
  1634. @%:@ ac_fn_c_check_func LINENO FUNC VAR
  1635. @%:@ ----------------------------------
  1636. @%:@ Tests whether FUNC exists, setting the cache variable VAR accordingly
  1637. ac_fn_c_check_func ()
  1638. {
  1639. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1640. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1641. $as_echo_n "checking for $2... " >&6; }
  1642. if eval "test \"\${$3+set}\"" = set; then :
  1643. $as_echo_n "(cached) " >&6
  1644. else
  1645. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1646. /* end confdefs.h. */
  1647. /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
  1648. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  1649. #define $2 innocuous_$2
  1650. /* System header to define __stub macros and hopefully few prototypes,
  1651. which can conflict with char $2 (); below.
  1652. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  1653. <limits.h> exists even on freestanding compilers. */
  1654. #ifdef __STDC__
  1655. # include <limits.h>
  1656. #else
  1657. # include <assert.h>
  1658. #endif
  1659. #undef $2
  1660. /* Override any GCC internal prototype to avoid an error.
  1661. Use char because int might match the return type of a GCC
  1662. builtin and then its argument prototype would still apply. */
  1663. #ifdef __cplusplus
  1664. extern "C"
  1665. #endif
  1666. char $2 ();
  1667. /* The GNU C library defines this for functions which it implements
  1668. to always fail with ENOSYS. Some functions are actually named
  1669. something starting with __ and the normal name is an alias. */
  1670. #if defined __stub_$2 || defined __stub___$2
  1671. choke me
  1672. #endif
  1673. int
  1674. main ()
  1675. {
  1676. return $2 ();
  1677. ;
  1678. return 0;
  1679. }
  1680. _ACEOF
  1681. if ac_fn_c_try_link "$LINENO"; then :
  1682. eval "$3=yes"
  1683. else
  1684. eval "$3=no"
  1685. fi
  1686. rm -f core conftest.err conftest.$ac_objext \
  1687. conftest$ac_exeext conftest.$ac_ext
  1688. fi
  1689. eval ac_res=\$$3
  1690. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1691. $as_echo "$ac_res" >&6; }
  1692. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1693. } @%:@ ac_fn_c_check_func
  1694. @%:@ ac_fn_cxx_try_compile LINENO
  1695. @%:@ ----------------------------
  1696. @%:@ Try to compile conftest.@S|@ac_ext, and return whether this succeeded.
  1697. ac_fn_cxx_try_compile ()
  1698. {
  1699. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1700. rm -f conftest.$ac_objext
  1701. if { { ac_try="$ac_compile"
  1702. case "(($ac_try" in
  1703. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1704. *) ac_try_echo=$ac_try;;
  1705. esac
  1706. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1707. $as_echo "$ac_try_echo"; } >&5
  1708. (eval "$ac_compile") 2>conftest.err
  1709. ac_status=$?
  1710. if test -s conftest.err; then
  1711. grep -v '^ *+' conftest.err >conftest.er1
  1712. cat conftest.er1 >&5
  1713. mv -f conftest.er1 conftest.err
  1714. fi
  1715. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1716. test $ac_status = 0; } && {
  1717. test -z "$ac_cxx_werror_flag" ||
  1718. test ! -s conftest.err
  1719. } && test -s conftest.$ac_objext; then :
  1720. ac_retval=0
  1721. else
  1722. $as_echo "$as_me: failed program was:" >&5
  1723. sed 's/^/| /' conftest.$ac_ext >&5
  1724. ac_retval=1
  1725. fi
  1726. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1727. as_fn_set_status $ac_retval
  1728. } @%:@ ac_fn_cxx_try_compile
  1729. @%:@ ac_fn_cxx_try_cpp LINENO
  1730. @%:@ ------------------------
  1731. @%:@ Try to preprocess conftest.@S|@ac_ext, and return whether this succeeded.
  1732. ac_fn_cxx_try_cpp ()
  1733. {
  1734. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1735. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1736. case "(($ac_try" in
  1737. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1738. *) ac_try_echo=$ac_try;;
  1739. esac
  1740. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1741. $as_echo "$ac_try_echo"; } >&5
  1742. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1743. ac_status=$?
  1744. if test -s conftest.err; then
  1745. grep -v '^ *+' conftest.err >conftest.er1
  1746. cat conftest.er1 >&5
  1747. mv -f conftest.er1 conftest.err
  1748. fi
  1749. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1750. test $ac_status = 0; } > conftest.i && {
  1751. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  1752. test ! -s conftest.err
  1753. }; then :
  1754. ac_retval=0
  1755. else
  1756. $as_echo "$as_me: failed program was:" >&5
  1757. sed 's/^/| /' conftest.$ac_ext >&5
  1758. ac_retval=1
  1759. fi
  1760. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1761. as_fn_set_status $ac_retval
  1762. } @%:@ ac_fn_cxx_try_cpp
  1763. @%:@ ac_fn_cxx_try_link LINENO
  1764. @%:@ -------------------------
  1765. @%:@ Try to link conftest.@S|@ac_ext, and return whether this succeeded.
  1766. ac_fn_cxx_try_link ()
  1767. {
  1768. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1769. rm -f conftest.$ac_objext conftest$ac_exeext
  1770. if { { ac_try="$ac_link"
  1771. case "(($ac_try" in
  1772. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1773. *) ac_try_echo=$ac_try;;
  1774. esac
  1775. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1776. $as_echo "$ac_try_echo"; } >&5
  1777. (eval "$ac_link") 2>conftest.err
  1778. ac_status=$?
  1779. if test -s conftest.err; then
  1780. grep -v '^ *+' conftest.err >conftest.er1
  1781. cat conftest.er1 >&5
  1782. mv -f conftest.er1 conftest.err
  1783. fi
  1784. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1785. test $ac_status = 0; } && {
  1786. test -z "$ac_cxx_werror_flag" ||
  1787. test ! -s conftest.err
  1788. } && test -s conftest$ac_exeext && {
  1789. test "$cross_compiling" = yes ||
  1790. $as_test_x conftest$ac_exeext
  1791. }; then :
  1792. ac_retval=0
  1793. else
  1794. $as_echo "$as_me: failed program was:" >&5
  1795. sed 's/^/| /' conftest.$ac_ext >&5
  1796. ac_retval=1
  1797. fi
  1798. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1799. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1800. # interfere with the next link command; also delete a directory that is
  1801. # left behind by Apple's compiler. We do this before executing the actions.
  1802. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1803. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1804. as_fn_set_status $ac_retval
  1805. } @%:@ ac_fn_cxx_try_link
  1806. cat >config.log <<_ACEOF
  1807. This file contains any messages produced by compilers while
  1808. running configure, to aid debugging if configure makes a mistake.
  1809. It was created by libPolyCore $as_me 0.8.2, which was
  1810. generated by GNU Autoconf 2.67. Invocation command line was
  1811. $ $0 $@
  1812. _ACEOF
  1813. exec 5>>config.log
  1814. {
  1815. cat <<_ASUNAME
  1816. ## --------- ##
  1817. ## Platform. ##
  1818. ## --------- ##
  1819. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  1820. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  1821. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  1822. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  1823. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  1824. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  1825. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  1826. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  1827. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  1828. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  1829. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  1830. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  1831. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  1832. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  1833. _ASUNAME
  1834. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1835. for as_dir in $PATH
  1836. do
  1837. IFS=$as_save_IFS
  1838. test -z "$as_dir" && as_dir=.
  1839. $as_echo "PATH: $as_dir"
  1840. done
  1841. IFS=$as_save_IFS
  1842. } >&5
  1843. cat >&5 <<_ACEOF
  1844. ## ----------- ##
  1845. ## Core tests. ##
  1846. ## ----------- ##
  1847. _ACEOF
  1848. # Keep a trace of the command line.
  1849. # Strip out --no-create and --no-recursion so they do not pile up.
  1850. # Strip out --silent because we don't want to record it for future runs.
  1851. # Also quote any args containing shell meta-characters.
  1852. # Make two passes to allow for proper duplicate-argument suppression.
  1853. ac_configure_args=
  1854. ac_configure_args0=
  1855. ac_configure_args1=
  1856. ac_must_keep_next=false
  1857. for ac_pass in 1 2
  1858. do
  1859. for ac_arg
  1860. do
  1861. case $ac_arg in
  1862. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  1863. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1864. | -silent | --silent | --silen | --sile | --sil)
  1865. continue ;;
  1866. *\'*)
  1867. ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  1868. esac
  1869. case $ac_pass in
  1870. 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  1871. 2)
  1872. as_fn_append ac_configure_args1 " '$ac_arg'"
  1873. if test $ac_must_keep_next = true; then
  1874. ac_must_keep_next=false # Got value, back to normal.
  1875. else
  1876. case $ac_arg in
  1877. *=* | --config-cache | -C | -disable-* | --disable-* \
  1878. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  1879. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  1880. | -with-* | --with-* | -without-* | --without-* | --x)
  1881. case "$ac_configure_args0 " in
  1882. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  1883. esac
  1884. ;;
  1885. -* ) ac_must_keep_next=true ;;
  1886. esac
  1887. fi
  1888. as_fn_append ac_configure_args " '$ac_arg'"
  1889. ;;
  1890. esac
  1891. done
  1892. done
  1893. { ac_configure_args0=; unset ac_configure_args0;}
  1894. { ac_configure_args1=; unset ac_configure_args1;}
  1895. # When interrupted or exit'd, cleanup temporary files, and complete
  1896. # config.log. We remove comments because anyway the quotes in there
  1897. # would cause problems or look ugly.
  1898. # WARNING: Use '\'' to represent an apostrophe within the trap.
  1899. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  1900. trap 'exit_status=$?
  1901. # Save into config.log some information that might help in debugging.
  1902. {
  1903. echo
  1904. $as_echo "## ---------------- ##
  1905. ## Cache variables. ##
  1906. ## ---------------- ##"
  1907. echo
  1908. # The following way of writing the cache mishandles newlines in values,
  1909. (
  1910. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  1911. eval ac_val=\$$ac_var
  1912. case $ac_val in #(
  1913. *${as_nl}*)
  1914. case $ac_var in #(
  1915. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  1916. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  1917. esac
  1918. case $ac_var in #(
  1919. _ | IFS | as_nl) ;; #(
  1920. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  1921. *) { eval $ac_var=; unset $ac_var;} ;;
  1922. esac ;;
  1923. esac
  1924. done
  1925. (set) 2>&1 |
  1926. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  1927. *${as_nl}ac_space=\ *)
  1928. sed -n \
  1929. "s/'\''/'\''\\\\'\'''\''/g;
  1930. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  1931. ;; #(
  1932. *)
  1933. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  1934. ;;
  1935. esac |
  1936. sort
  1937. )
  1938. echo
  1939. $as_echo "## ----------------- ##
  1940. ## Output variables. ##
  1941. ## ----------------- ##"
  1942. echo
  1943. for ac_var in $ac_subst_vars
  1944. do
  1945. eval ac_val=\$$ac_var
  1946. case $ac_val in
  1947. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1948. esac
  1949. $as_echo "$ac_var='\''$ac_val'\''"
  1950. done | sort
  1951. echo
  1952. if test -n "$ac_subst_files"; then
  1953. $as_echo "## ------------------- ##
  1954. ## File substitutions. ##
  1955. ## ------------------- ##"
  1956. echo
  1957. for ac_var in $ac_subst_files
  1958. do
  1959. eval ac_val=\$$ac_var
  1960. case $ac_val in
  1961. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1962. esac
  1963. $as_echo "$ac_var='\''$ac_val'\''"
  1964. done | sort
  1965. echo
  1966. fi
  1967. if test -s confdefs.h; then
  1968. $as_echo "## ----------- ##
  1969. ## confdefs.h. ##
  1970. ## ----------- ##"
  1971. echo
  1972. cat confdefs.h
  1973. echo
  1974. fi
  1975. test "$ac_signal" != 0 &&
  1976. $as_echo "$as_me: caught signal $ac_signal"
  1977. $as_echo "$as_me: exit $exit_status"
  1978. } >&5
  1979. rm -f core *.core core.conftest.* &&
  1980. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  1981. exit $exit_status
  1982. ' 0
  1983. for ac_signal in 1 2 13 15; do
  1984. trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  1985. done
  1986. ac_signal=0
  1987. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  1988. rm -f -r conftest* confdefs.h
  1989. $as_echo "/* confdefs.h */" > confdefs.h
  1990. # Predefined preprocessor variables.
  1991. cat >>confdefs.h <<_ACEOF
  1992. @%:@define PACKAGE_NAME "$PACKAGE_NAME"
  1993. _ACEOF
  1994. cat >>confdefs.h <<_ACEOF
  1995. @%:@define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  1996. _ACEOF
  1997. cat >>confdefs.h <<_ACEOF
  1998. @%:@define PACKAGE_VERSION "$PACKAGE_VERSION"
  1999. _ACEOF
  2000. cat >>confdefs.h <<_ACEOF
  2001. @%:@define PACKAGE_STRING "$PACKAGE_STRING"
  2002. _ACEOF
  2003. cat >>confdefs.h <<_ACEOF
  2004. @%:@define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  2005. _ACEOF
  2006. cat >>confdefs.h <<_ACEOF
  2007. @%:@define PACKAGE_URL "$PACKAGE_URL"
  2008. _ACEOF
  2009. # Let the site file select an alternate cache file if it wants to.
  2010. # Prefer an explicitly selected file to automatically selected ones.
  2011. ac_site_file1=NONE
  2012. ac_site_file2=NONE
  2013. if test -n "$CONFIG_SITE"; then
  2014. # We do not want a PATH search for config.site.
  2015. case $CONFIG_SITE in @%:@((
  2016. -*) ac_site_file1=./$CONFIG_SITE;;
  2017. */*) ac_site_file1=$CONFIG_SITE;;
  2018. *) ac_site_file1=./$CONFIG_SITE;;
  2019. esac
  2020. elif test "x$prefix" != xNONE; then
  2021. ac_site_file1=$prefix/share/config.site
  2022. ac_site_file2=$prefix/etc/config.site
  2023. else
  2024. ac_site_file1=$ac_default_prefix/share/config.site
  2025. ac_site_file2=$ac_default_prefix/etc/config.site
  2026. fi
  2027. for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  2028. do
  2029. test "x$ac_site_file" = xNONE && continue
  2030. if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
  2031. { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  2032. $as_echo "$as_me: loading site script $ac_site_file" >&6;}
  2033. sed 's/^/| /' "$ac_site_file" >&5
  2034. . "$ac_site_file" \
  2035. || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2036. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2037. as_fn_error $? "failed to load site script $ac_site_file
  2038. See \`config.log' for more details" "$LINENO" 5 ; }
  2039. fi
  2040. done
  2041. if test -r "$cache_file"; then
  2042. # Some versions of bash will fail to source /dev/null (special files
  2043. # actually), so we avoid doing that. DJGPP emulates it as a regular file.
  2044. if test /dev/null != "$cache_file" && test -f "$cache_file"; then
  2045. { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  2046. $as_echo "$as_me: loading cache $cache_file" >&6;}
  2047. case $cache_file in
  2048. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  2049. *) . "./$cache_file";;
  2050. esac
  2051. fi
  2052. else
  2053. { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  2054. $as_echo "$as_me: creating cache $cache_file" >&6;}
  2055. >$cache_file
  2056. fi
  2057. # Check that the precious variables saved in the cache have kept the same
  2058. # value.
  2059. ac_cache_corrupted=false
  2060. for ac_var in $ac_precious_vars; do
  2061. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  2062. eval ac_new_set=\$ac_env_${ac_var}_set
  2063. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  2064. eval ac_new_val=\$ac_env_${ac_var}_value
  2065. case $ac_old_set,$ac_new_set in
  2066. set,)
  2067. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  2068. $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  2069. ac_cache_corrupted=: ;;
  2070. ,set)
  2071. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  2072. $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  2073. ac_cache_corrupted=: ;;
  2074. ,);;
  2075. *)
  2076. if test "x$ac_old_val" != "x$ac_new_val"; then
  2077. # differences in whitespace do not lead to failure.
  2078. ac_old_val_w=`echo x $ac_old_val`
  2079. ac_new_val_w=`echo x $ac_new_val`
  2080. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  2081. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  2082. $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  2083. ac_cache_corrupted=:
  2084. else
  2085. { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  2086. $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  2087. eval $ac_var=\$ac_old_val
  2088. fi
  2089. { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
  2090. $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
  2091. { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
  2092. $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
  2093. fi;;
  2094. esac
  2095. # Pass precious variables to config.status.
  2096. if test "$ac_new_set" = set; then
  2097. case $ac_new_val in
  2098. *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  2099. *) ac_arg=$ac_var=$ac_new_val ;;
  2100. esac
  2101. case " $ac_configure_args " in
  2102. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  2103. *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  2104. esac
  2105. fi
  2106. done
  2107. if $ac_cache_corrupted; then
  2108. { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2109. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2110. { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  2111. $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  2112. as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
  2113. fi
  2114. ## -------------------- ##
  2115. ## Main body of script. ##
  2116. ## -------------------- ##
  2117. ac_ext=c
  2118. ac_cpp='$CPP $CPPFLAGS'
  2119. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2120. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2121. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2122. ac_config_files="$ac_config_files Makefile"
  2123. am__api_version='1.11'
  2124. ac_aux_dir=
  2125. for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
  2126. if test -f "$ac_dir/install-sh"; then
  2127. ac_aux_dir=$ac_dir
  2128. ac_install_sh="$ac_aux_dir/install-sh -c"
  2129. break
  2130. elif test -f "$ac_dir/install.sh"; then
  2131. ac_aux_dir=$ac_dir
  2132. ac_install_sh="$ac_aux_dir/install.sh -c"
  2133. break
  2134. elif test -f "$ac_dir/shtool"; then
  2135. ac_aux_dir=$ac_dir
  2136. ac_install_sh="$ac_aux_dir/shtool install -c"
  2137. break
  2138. fi
  2139. done
  2140. if test -z "$ac_aux_dir"; then
  2141. as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
  2142. fi
  2143. # These three variables are undocumented and unsupported,
  2144. # and are intended to be withdrawn in a future Autoconf release.
  2145. # They can cause serious problems if a builder's source tree is in a directory
  2146. # whose full name contains unusual characters.
  2147. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  2148. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  2149. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  2150. # Find a good install program. We prefer a C program (faster),
  2151. # so one script is as good as another. But avoid the broken or
  2152. # incompatible versions:
  2153. # SysV /etc/install, /usr/sbin/install
  2154. # SunOS /usr/etc/install
  2155. # IRIX /sbin/install
  2156. # AIX /bin/install
  2157. # AmigaOS /C/install, which installs bootblocks on floppy discs
  2158. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  2159. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  2160. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  2161. # OS/2's system install, which has a completely different semantic
  2162. # ./install, which can be erroneously created by make from ./install.sh.
  2163. # Reject install programs that cannot install multiple files.
  2164. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
  2165. $as_echo_n "checking for a BSD-compatible install... " >&6; }
  2166. if test -z "$INSTALL"; then
  2167. if test "${ac_cv_path_install+set}" = set; then :
  2168. $as_echo_n "(cached) " >&6
  2169. else
  2170. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2171. for as_dir in $PATH
  2172. do
  2173. IFS=$as_save_IFS
  2174. test -z "$as_dir" && as_dir=.
  2175. # Account for people who put trailing slashes in PATH elements.
  2176. case $as_dir/ in @%:@((
  2177. ./ | .// | /[cC]/* | \
  2178. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  2179. ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
  2180. /usr/ucb/* ) ;;
  2181. *)
  2182. # OSF1 and SCO ODT 3.0 have their own names for install.
  2183. # Don't use installbsd from OSF since it installs stuff as root
  2184. # by default.
  2185. for ac_prog in ginstall scoinst install; do
  2186. for ac_exec_ext in '' $ac_executable_extensions; do
  2187. if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
  2188. if test $ac_prog = install &&
  2189. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2190. # AIX install. It has an incompatible calling convention.
  2191. :
  2192. elif test $ac_prog = install &&
  2193. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2194. # program-specific install script used by HP pwplus--don't use.
  2195. :
  2196. else
  2197. rm -rf conftest.one conftest.two conftest.dir
  2198. echo one > conftest.one
  2199. echo two > conftest.two
  2200. mkdir conftest.dir
  2201. if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
  2202. test -s conftest.one && test -s conftest.two &&
  2203. test -s conftest.dir/conftest.one &&
  2204. test -s conftest.dir/conftest.two
  2205. then
  2206. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  2207. break 3
  2208. fi
  2209. fi
  2210. fi
  2211. done
  2212. done
  2213. ;;
  2214. esac
  2215. done
  2216. IFS=$as_save_IFS
  2217. rm -rf conftest.one conftest.two conftest.dir
  2218. fi
  2219. if test "${ac_cv_path_install+set}" = set; then
  2220. INSTALL=$ac_cv_path_install
  2221. else
  2222. # As a last resort, use the slow shell script. Don't cache a
  2223. # value for INSTALL within a source directory, because that will
  2224. # break other packages using the cache if that directory is
  2225. # removed, or if the value is a relative name.
  2226. INSTALL=$ac_install_sh
  2227. fi
  2228. fi
  2229. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
  2230. $as_echo "$INSTALL" >&6; }
  2231. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  2232. # It thinks the first close brace ends the variable substitution.
  2233. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  2234. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  2235. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  2236. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
  2237. $as_echo_n "checking whether build environment is sane... " >&6; }
  2238. # Just in case
  2239. sleep 1
  2240. echo timestamp > conftest.file
  2241. # Reject unsafe characters in $srcdir or the absolute working directory
  2242. # name. Accept space and tab only in the latter.
  2243. am_lf='
  2244. '
  2245. case `pwd` in
  2246. *[\\\"\#\$\&\'\`$am_lf]*)
  2247. as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5 ;;
  2248. esac
  2249. case $srcdir in
  2250. *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
  2251. as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5 ;;
  2252. esac
  2253. # Do `set' in a subshell so we don't clobber the current shell's
  2254. # arguments. Must try -L first in case configure is actually a
  2255. # symlink; some systems play weird games with the mod time of symlinks
  2256. # (eg FreeBSD returns the mod time of the symlink's containing
  2257. # directory).
  2258. if (
  2259. set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
  2260. if test "$*" = "X"; then
  2261. # -L didn't work.
  2262. set X `ls -t "$srcdir/configure" conftest.file`
  2263. fi
  2264. rm -f conftest.file
  2265. if test "$*" != "X $srcdir/configure conftest.file" \
  2266. && test "$*" != "X conftest.file $srcdir/configure"; then
  2267. # If neither matched, then we have a broken ls. This can happen
  2268. # if, for instance, CONFIG_SHELL is bash and it inherits a
  2269. # broken ls alias from the environment. This has actually
  2270. # happened. Such a system could not be considered "sane".
  2271. as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
  2272. alias in your environment" "$LINENO" 5
  2273. fi
  2274. test "$2" = conftest.file
  2275. )
  2276. then
  2277. # Ok.
  2278. :
  2279. else
  2280. as_fn_error $? "newly created file is older than distributed files!
  2281. Check your system clock" "$LINENO" 5
  2282. fi
  2283. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2284. $as_echo "yes" >&6; }
  2285. test "$program_prefix" != NONE &&
  2286. program_transform_name="s&^&$program_prefix&;$program_transform_name"
  2287. # Use a double $ so make ignores it.
  2288. test "$program_suffix" != NONE &&
  2289. program_transform_name="s&\$&$program_suffix&;$program_transform_name"
  2290. # Double any \ or $.
  2291. # By default was `s,x,x', remove it if useless.
  2292. ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
  2293. program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
  2294. # expand $ac_aux_dir to an absolute path
  2295. am_aux_dir=`cd $ac_aux_dir && pwd`
  2296. if test x"${MISSING+set}" != xset; then
  2297. case $am_aux_dir in
  2298. *\ * | *\ *)
  2299. MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
  2300. *)
  2301. MISSING="\${SHELL} $am_aux_dir/missing" ;;
  2302. esac
  2303. fi
  2304. # Use eval to expand $SHELL
  2305. if eval "$MISSING --run true"; then
  2306. am_missing_run="$MISSING --run "
  2307. else
  2308. am_missing_run=
  2309. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
  2310. $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
  2311. fi
  2312. if test x"${install_sh}" != xset; then
  2313. case $am_aux_dir in
  2314. *\ * | *\ *)
  2315. install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
  2316. *)
  2317. install_sh="\${SHELL} $am_aux_dir/install-sh"
  2318. esac
  2319. fi
  2320. # Installed binaries are usually stripped using `strip' when the user
  2321. # run `make install-strip'. However `strip' might not be the right
  2322. # tool to use in cross-compilation environments, therefore Automake
  2323. # will honor the `STRIP' environment variable to overrule this program.
  2324. if test "$cross_compiling" != no; then
  2325. if test -n "$ac_tool_prefix"; then
  2326. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  2327. set dummy ${ac_tool_prefix}strip; ac_word=$2
  2328. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2329. $as_echo_n "checking for $ac_word... " >&6; }
  2330. if test "${ac_cv_prog_STRIP+set}" = set; then :
  2331. $as_echo_n "(cached) " >&6
  2332. else
  2333. if test -n "$STRIP"; then
  2334. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  2335. else
  2336. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2337. for as_dir in $PATH
  2338. do
  2339. IFS=$as_save_IFS
  2340. test -z "$as_dir" && as_dir=.
  2341. for ac_exec_ext in '' $ac_executable_extensions; do
  2342. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2343. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  2344. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2345. break 2
  2346. fi
  2347. done
  2348. done
  2349. IFS=$as_save_IFS
  2350. fi
  2351. fi
  2352. STRIP=$ac_cv_prog_STRIP
  2353. if test -n "$STRIP"; then
  2354. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  2355. $as_echo "$STRIP" >&6; }
  2356. else
  2357. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2358. $as_echo "no" >&6; }
  2359. fi
  2360. fi
  2361. if test -z "$ac_cv_prog_STRIP"; then
  2362. ac_ct_STRIP=$STRIP
  2363. # Extract the first word of "strip", so it can be a program name with args.
  2364. set dummy strip; ac_word=$2
  2365. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2366. $as_echo_n "checking for $ac_word... " >&6; }
  2367. if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
  2368. $as_echo_n "(cached) " >&6
  2369. else
  2370. if test -n "$ac_ct_STRIP"; then
  2371. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  2372. else
  2373. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2374. for as_dir in $PATH
  2375. do
  2376. IFS=$as_save_IFS
  2377. test -z "$as_dir" && as_dir=.
  2378. for ac_exec_ext in '' $ac_executable_extensions; do
  2379. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2380. ac_cv_prog_ac_ct_STRIP="strip"
  2381. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2382. break 2
  2383. fi
  2384. done
  2385. done
  2386. IFS=$as_save_IFS
  2387. fi
  2388. fi
  2389. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  2390. if test -n "$ac_ct_STRIP"; then
  2391. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  2392. $as_echo "$ac_ct_STRIP" >&6; }
  2393. else
  2394. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2395. $as_echo "no" >&6; }
  2396. fi
  2397. if test "x$ac_ct_STRIP" = x; then
  2398. STRIP=":"
  2399. else
  2400. case $cross_compiling:$ac_tool_warned in
  2401. yes:)
  2402. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2403. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2404. ac_tool_warned=yes ;;
  2405. esac
  2406. STRIP=$ac_ct_STRIP
  2407. fi
  2408. else
  2409. STRIP="$ac_cv_prog_STRIP"
  2410. fi
  2411. fi
  2412. INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
  2413. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
  2414. $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
  2415. if test -z "$MKDIR_P"; then
  2416. if test "${ac_cv_path_mkdir+set}" = set; then :
  2417. $as_echo_n "(cached) " >&6
  2418. else
  2419. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2420. for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
  2421. do
  2422. IFS=$as_save_IFS
  2423. test -z "$as_dir" && as_dir=.
  2424. for ac_prog in mkdir gmkdir; do
  2425. for ac_exec_ext in '' $ac_executable_extensions; do
  2426. { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
  2427. case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
  2428. 'mkdir (GNU coreutils) '* | \
  2429. 'mkdir (coreutils) '* | \
  2430. 'mkdir (fileutils) '4.1*)
  2431. ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
  2432. break 3;;
  2433. esac
  2434. done
  2435. done
  2436. done
  2437. IFS=$as_save_IFS
  2438. fi
  2439. test -d ./--version && rmdir ./--version
  2440. if test "${ac_cv_path_mkdir+set}" = set; then
  2441. MKDIR_P="$ac_cv_path_mkdir -p"
  2442. else
  2443. # As a last resort, use the slow shell script. Don't cache a
  2444. # value for MKDIR_P within a source directory, because that will
  2445. # break other packages using the cache if that directory is
  2446. # removed, or if the value is a relative name.
  2447. MKDIR_P="$ac_install_sh -d"
  2448. fi
  2449. fi
  2450. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
  2451. $as_echo "$MKDIR_P" >&6; }
  2452. mkdir_p="$MKDIR_P"
  2453. case $mkdir_p in
  2454. [\\/$]* | ?:[\\/]*) ;;
  2455. */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
  2456. esac
  2457. for ac_prog in gawk mawk nawk awk
  2458. do
  2459. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2460. set dummy $ac_prog; ac_word=$2
  2461. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2462. $as_echo_n "checking for $ac_word... " >&6; }
  2463. if test "${ac_cv_prog_AWK+set}" = set; then :
  2464. $as_echo_n "(cached) " >&6
  2465. else
  2466. if test -n "$AWK"; then
  2467. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  2468. else
  2469. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2470. for as_dir in $PATH
  2471. do
  2472. IFS=$as_save_IFS
  2473. test -z "$as_dir" && as_dir=.
  2474. for ac_exec_ext in '' $ac_executable_extensions; do
  2475. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2476. ac_cv_prog_AWK="$ac_prog"
  2477. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2478. break 2
  2479. fi
  2480. done
  2481. done
  2482. IFS=$as_save_IFS
  2483. fi
  2484. fi
  2485. AWK=$ac_cv_prog_AWK
  2486. if test -n "$AWK"; then
  2487. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  2488. $as_echo "$AWK" >&6; }
  2489. else
  2490. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2491. $as_echo "no" >&6; }
  2492. fi
  2493. test -n "$AWK" && break
  2494. done
  2495. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  2496. $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  2497. set x ${MAKE-make}
  2498. ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  2499. if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\"" = set; then :
  2500. $as_echo_n "(cached) " >&6
  2501. else
  2502. cat >conftest.make <<\_ACEOF
  2503. SHELL = /bin/sh
  2504. all:
  2505. @echo '@@@%%%=$(MAKE)=@@@%%%'
  2506. _ACEOF
  2507. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  2508. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  2509. *@@@%%%=?*=@@@%%%*)
  2510. eval ac_cv_prog_make_${ac_make}_set=yes;;
  2511. *)
  2512. eval ac_cv_prog_make_${ac_make}_set=no;;
  2513. esac
  2514. rm -f conftest.make
  2515. fi
  2516. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  2517. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2518. $as_echo "yes" >&6; }
  2519. SET_MAKE=
  2520. else
  2521. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2522. $as_echo "no" >&6; }
  2523. SET_MAKE="MAKE=${MAKE-make}"
  2524. fi
  2525. rm -rf .tst 2>/dev/null
  2526. mkdir .tst 2>/dev/null
  2527. if test -d .tst; then
  2528. am__leading_dot=.
  2529. else
  2530. am__leading_dot=_
  2531. fi
  2532. rmdir .tst 2>/dev/null
  2533. if test "`cd $srcdir && pwd`" != "`pwd`"; then
  2534. # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
  2535. # is not polluted with repeated "-I."
  2536. am__isrc=' -I$(srcdir)'
  2537. # test to see if srcdir already configured
  2538. if test -f $srcdir/config.status; then
  2539. as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
  2540. fi
  2541. fi
  2542. # test whether we have cygpath
  2543. if test -z "$CYGPATH_W"; then
  2544. if (cygpath --version) >/dev/null 2>/dev/null; then
  2545. CYGPATH_W='cygpath -w'
  2546. else
  2547. CYGPATH_W=echo
  2548. fi
  2549. fi
  2550. # Define the identity of the package.
  2551. PACKAGE=libPolyCore
  2552. VERSION=0.8.2
  2553. cat >>confdefs.h <<_ACEOF
  2554. @%:@define PACKAGE "$PACKAGE"
  2555. _ACEOF
  2556. cat >>confdefs.h <<_ACEOF
  2557. @%:@define VERSION "$VERSION"
  2558. _ACEOF
  2559. # Some tools Automake needs.
  2560. ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
  2561. AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
  2562. AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
  2563. AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
  2564. MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
  2565. # We need awk for the "check" target. The system "awk" is bad on
  2566. # some platforms.
  2567. # Always define AMTAR for backward compatibility.
  2568. AMTAR=${AMTAR-"${am_missing_run}tar"}
  2569. am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
  2570. case `pwd` in
  2571. *\ * | *\ *)
  2572. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
  2573. $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
  2574. esac
  2575. macro_version='2.2.6b'
  2576. macro_revision='1.3017'
  2577. ltmain="$ac_aux_dir/ltmain.sh"
  2578. # Make sure we can run config.sub.
  2579. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  2580. as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
  2581. { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
  2582. $as_echo_n "checking build system type... " >&6; }
  2583. if test "${ac_cv_build+set}" = set; then :
  2584. $as_echo_n "(cached) " >&6
  2585. else
  2586. ac_build_alias=$build_alias
  2587. test "x$ac_build_alias" = x &&
  2588. ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  2589. test "x$ac_build_alias" = x &&
  2590. as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
  2591. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  2592. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
  2593. fi
  2594. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
  2595. $as_echo "$ac_cv_build" >&6; }
  2596. case $ac_cv_build in
  2597. *-*-*) ;;
  2598. *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5 ;;
  2599. esac
  2600. build=$ac_cv_build
  2601. ac_save_IFS=$IFS; IFS='-'
  2602. set x $ac_cv_build
  2603. shift
  2604. build_cpu=$1
  2605. build_vendor=$2
  2606. shift; shift
  2607. # Remember, the first character of IFS is used to create $*,
  2608. # except with old shells:
  2609. build_os=$*
  2610. IFS=$ac_save_IFS
  2611. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  2612. { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
  2613. $as_echo_n "checking host system type... " >&6; }
  2614. if test "${ac_cv_host+set}" = set; then :
  2615. $as_echo_n "(cached) " >&6
  2616. else
  2617. if test "x$host_alias" = x; then
  2618. ac_cv_host=$ac_cv_build
  2619. else
  2620. ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  2621. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
  2622. fi
  2623. fi
  2624. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
  2625. $as_echo "$ac_cv_host" >&6; }
  2626. case $ac_cv_host in
  2627. *-*-*) ;;
  2628. *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5 ;;
  2629. esac
  2630. host=$ac_cv_host
  2631. ac_save_IFS=$IFS; IFS='-'
  2632. set x $ac_cv_host
  2633. shift
  2634. host_cpu=$1
  2635. host_vendor=$2
  2636. shift; shift
  2637. # Remember, the first character of IFS is used to create $*,
  2638. # except with old shells:
  2639. host_os=$*
  2640. IFS=$ac_save_IFS
  2641. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  2642. DEPDIR="${am__leading_dot}deps"
  2643. ac_config_commands="$ac_config_commands depfiles"
  2644. am_make=${MAKE-make}
  2645. cat > confinc << 'END'
  2646. am__doit:
  2647. @echo this is the am__doit target
  2648. .PHONY: am__doit
  2649. END
  2650. # If we don't find an include directive, just comment out the code.
  2651. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
  2652. $as_echo_n "checking for style of include used by $am_make... " >&6; }
  2653. am__include="#"
  2654. am__quote=
  2655. _am_result=none
  2656. # First try GNU make style include.
  2657. echo "include confinc" > confmf
  2658. # Ignore all kinds of additional output from `make'.
  2659. case `$am_make -s -f confmf 2> /dev/null` in #(
  2660. *the\ am__doit\ target*)
  2661. am__include=include
  2662. am__quote=
  2663. _am_result=GNU
  2664. ;;
  2665. esac
  2666. # Now try BSD make style include.
  2667. if test "$am__include" = "#"; then
  2668. echo '.include "confinc"' > confmf
  2669. case `$am_make -s -f confmf 2> /dev/null` in #(
  2670. *the\ am__doit\ target*)
  2671. am__include=.include
  2672. am__quote="\""
  2673. _am_result=BSD
  2674. ;;
  2675. esac
  2676. fi
  2677. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
  2678. $as_echo "$_am_result" >&6; }
  2679. rm -f confinc confmf
  2680. @%:@ Check whether --enable-dependency-tracking was given.
  2681. if test "${enable_dependency_tracking+set}" = set; then :
  2682. enableval=$enable_dependency_tracking;
  2683. fi
  2684. if test "x$enable_dependency_tracking" != xno; then
  2685. am_depcomp="$ac_aux_dir/depcomp"
  2686. AMDEPBACKSLASH='\'
  2687. fi
  2688. if test "x$enable_dependency_tracking" != xno; then
  2689. AMDEP_TRUE=
  2690. AMDEP_FALSE='#'
  2691. else
  2692. AMDEP_TRUE='#'
  2693. AMDEP_FALSE=
  2694. fi
  2695. ac_ext=c
  2696. ac_cpp='$CPP $CPPFLAGS'
  2697. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2698. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2699. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2700. if test -n "$ac_tool_prefix"; then
  2701. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  2702. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  2703. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2704. $as_echo_n "checking for $ac_word... " >&6; }
  2705. if test "${ac_cv_prog_CC+set}" = set; then :
  2706. $as_echo_n "(cached) " >&6
  2707. else
  2708. if test -n "$CC"; then
  2709. ac_cv_prog_CC="$CC" # Let the user override the test.
  2710. else
  2711. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2712. for as_dir in $PATH
  2713. do
  2714. IFS=$as_save_IFS
  2715. test -z "$as_dir" && as_dir=.
  2716. for ac_exec_ext in '' $ac_executable_extensions; do
  2717. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2718. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  2719. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2720. break 2
  2721. fi
  2722. done
  2723. done
  2724. IFS=$as_save_IFS
  2725. fi
  2726. fi
  2727. CC=$ac_cv_prog_CC
  2728. if test -n "$CC"; then
  2729. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2730. $as_echo "$CC" >&6; }
  2731. else
  2732. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2733. $as_echo "no" >&6; }
  2734. fi
  2735. fi
  2736. if test -z "$ac_cv_prog_CC"; then
  2737. ac_ct_CC=$CC
  2738. # Extract the first word of "gcc", so it can be a program name with args.
  2739. set dummy gcc; ac_word=$2
  2740. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2741. $as_echo_n "checking for $ac_word... " >&6; }
  2742. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
  2743. $as_echo_n "(cached) " >&6
  2744. else
  2745. if test -n "$ac_ct_CC"; then
  2746. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2747. else
  2748. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2749. for as_dir in $PATH
  2750. do
  2751. IFS=$as_save_IFS
  2752. test -z "$as_dir" && as_dir=.
  2753. for ac_exec_ext in '' $ac_executable_extensions; do
  2754. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2755. ac_cv_prog_ac_ct_CC="gcc"
  2756. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2757. break 2
  2758. fi
  2759. done
  2760. done
  2761. IFS=$as_save_IFS
  2762. fi
  2763. fi
  2764. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2765. if test -n "$ac_ct_CC"; then
  2766. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  2767. $as_echo "$ac_ct_CC" >&6; }
  2768. else
  2769. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2770. $as_echo "no" >&6; }
  2771. fi
  2772. if test "x$ac_ct_CC" = x; then
  2773. CC=""
  2774. else
  2775. case $cross_compiling:$ac_tool_warned in
  2776. yes:)
  2777. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2778. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2779. ac_tool_warned=yes ;;
  2780. esac
  2781. CC=$ac_ct_CC
  2782. fi
  2783. else
  2784. CC="$ac_cv_prog_CC"
  2785. fi
  2786. if test -z "$CC"; then
  2787. if test -n "$ac_tool_prefix"; then
  2788. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  2789. set dummy ${ac_tool_prefix}cc; ac_word=$2
  2790. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2791. $as_echo_n "checking for $ac_word... " >&6; }
  2792. if test "${ac_cv_prog_CC+set}" = set; then :
  2793. $as_echo_n "(cached) " >&6
  2794. else
  2795. if test -n "$CC"; then
  2796. ac_cv_prog_CC="$CC" # Let the user override the test.
  2797. else
  2798. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2799. for as_dir in $PATH
  2800. do
  2801. IFS=$as_save_IFS
  2802. test -z "$as_dir" && as_dir=.
  2803. for ac_exec_ext in '' $ac_executable_extensions; do
  2804. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2805. ac_cv_prog_CC="${ac_tool_prefix}cc"
  2806. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2807. break 2
  2808. fi
  2809. done
  2810. done
  2811. IFS=$as_save_IFS
  2812. fi
  2813. fi
  2814. CC=$ac_cv_prog_CC
  2815. if test -n "$CC"; then
  2816. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2817. $as_echo "$CC" >&6; }
  2818. else
  2819. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2820. $as_echo "no" >&6; }
  2821. fi
  2822. fi
  2823. fi
  2824. if test -z "$CC"; then
  2825. # Extract the first word of "cc", so it can be a program name with args.
  2826. set dummy cc; ac_word=$2
  2827. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2828. $as_echo_n "checking for $ac_word... " >&6; }
  2829. if test "${ac_cv_prog_CC+set}" = set; then :
  2830. $as_echo_n "(cached) " >&6
  2831. else
  2832. if test -n "$CC"; then
  2833. ac_cv_prog_CC="$CC" # Let the user override the test.
  2834. else
  2835. ac_prog_rejected=no
  2836. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2837. for as_dir in $PATH
  2838. do
  2839. IFS=$as_save_IFS
  2840. test -z "$as_dir" && as_dir=.
  2841. for ac_exec_ext in '' $ac_executable_extensions; do
  2842. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2843. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  2844. ac_prog_rejected=yes
  2845. continue
  2846. fi
  2847. ac_cv_prog_CC="cc"
  2848. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2849. break 2
  2850. fi
  2851. done
  2852. done
  2853. IFS=$as_save_IFS
  2854. if test $ac_prog_rejected = yes; then
  2855. # We found a bogon in the path, so make sure we never use it.
  2856. set dummy $ac_cv_prog_CC
  2857. shift
  2858. if test $@%:@ != 0; then
  2859. # We chose a different compiler from the bogus one.
  2860. # However, it has the same basename, so the bogon will be chosen
  2861. # first if we set CC to just the basename; use the full file name.
  2862. shift
  2863. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  2864. fi
  2865. fi
  2866. fi
  2867. fi
  2868. CC=$ac_cv_prog_CC
  2869. if test -n "$CC"; then
  2870. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2871. $as_echo "$CC" >&6; }
  2872. else
  2873. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2874. $as_echo "no" >&6; }
  2875. fi
  2876. fi
  2877. if test -z "$CC"; then
  2878. if test -n "$ac_tool_prefix"; then
  2879. for ac_prog in cl.exe
  2880. do
  2881. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  2882. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  2883. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2884. $as_echo_n "checking for $ac_word... " >&6; }
  2885. if test "${ac_cv_prog_CC+set}" = set; then :
  2886. $as_echo_n "(cached) " >&6
  2887. else
  2888. if test -n "$CC"; then
  2889. ac_cv_prog_CC="$CC" # Let the user override the test.
  2890. else
  2891. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2892. for as_dir in $PATH
  2893. do
  2894. IFS=$as_save_IFS
  2895. test -z "$as_dir" && as_dir=.
  2896. for ac_exec_ext in '' $ac_executable_extensions; do
  2897. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2898. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  2899. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2900. break 2
  2901. fi
  2902. done
  2903. done
  2904. IFS=$as_save_IFS
  2905. fi
  2906. fi
  2907. CC=$ac_cv_prog_CC
  2908. if test -n "$CC"; then
  2909. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2910. $as_echo "$CC" >&6; }
  2911. else
  2912. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2913. $as_echo "no" >&6; }
  2914. fi
  2915. test -n "$CC" && break
  2916. done
  2917. fi
  2918. if test -z "$CC"; then
  2919. ac_ct_CC=$CC
  2920. for ac_prog in cl.exe
  2921. do
  2922. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2923. set dummy $ac_prog; ac_word=$2
  2924. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2925. $as_echo_n "checking for $ac_word... " >&6; }
  2926. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
  2927. $as_echo_n "(cached) " >&6
  2928. else
  2929. if test -n "$ac_ct_CC"; then
  2930. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2931. else
  2932. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2933. for as_dir in $PATH
  2934. do
  2935. IFS=$as_save_IFS
  2936. test -z "$as_dir" && as_dir=.
  2937. for ac_exec_ext in '' $ac_executable_extensions; do
  2938. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2939. ac_cv_prog_ac_ct_CC="$ac_prog"
  2940. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2941. break 2
  2942. fi
  2943. done
  2944. done
  2945. IFS=$as_save_IFS
  2946. fi
  2947. fi
  2948. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2949. if test -n "$ac_ct_CC"; then
  2950. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  2951. $as_echo "$ac_ct_CC" >&6; }
  2952. else
  2953. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2954. $as_echo "no" >&6; }
  2955. fi
  2956. test -n "$ac_ct_CC" && break
  2957. done
  2958. if test "x$ac_ct_CC" = x; then
  2959. CC=""
  2960. else
  2961. case $cross_compiling:$ac_tool_warned in
  2962. yes:)
  2963. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2964. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2965. ac_tool_warned=yes ;;
  2966. esac
  2967. CC=$ac_ct_CC
  2968. fi
  2969. fi
  2970. fi
  2971. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2972. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2973. as_fn_error $? "no acceptable C compiler found in \$PATH
  2974. See \`config.log' for more details" "$LINENO" 5 ; }
  2975. # Provide some information about the compiler.
  2976. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  2977. set X $ac_compile
  2978. ac_compiler=$2
  2979. for ac_option in --version -v -V -qversion; do
  2980. { { ac_try="$ac_compiler $ac_option >&5"
  2981. case "(($ac_try" in
  2982. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2983. *) ac_try_echo=$ac_try;;
  2984. esac
  2985. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2986. $as_echo "$ac_try_echo"; } >&5
  2987. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  2988. ac_status=$?
  2989. if test -s conftest.err; then
  2990. sed '10a\
  2991. ... rest of stderr output deleted ...
  2992. 10q' conftest.err >conftest.er1
  2993. cat conftest.er1 >&5
  2994. fi
  2995. rm -f conftest.er1 conftest.err
  2996. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2997. test $ac_status = 0; }
  2998. done
  2999. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3000. /* end confdefs.h. */
  3001. int
  3002. main ()
  3003. {
  3004. ;
  3005. return 0;
  3006. }
  3007. _ACEOF
  3008. ac_clean_files_save=$ac_clean_files
  3009. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  3010. # Try to create an executable without -o first, disregard a.out.
  3011. # It will help us diagnose broken compilers, and finding out an intuition
  3012. # of exeext.
  3013. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
  3014. $as_echo_n "checking whether the C compiler works... " >&6; }
  3015. ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  3016. # The possible output files:
  3017. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  3018. ac_rmfiles=
  3019. for ac_file in $ac_files
  3020. do
  3021. case $ac_file in
  3022. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3023. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  3024. esac
  3025. done
  3026. rm -f $ac_rmfiles
  3027. if { { ac_try="$ac_link_default"
  3028. case "(($ac_try" in
  3029. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3030. *) ac_try_echo=$ac_try;;
  3031. esac
  3032. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3033. $as_echo "$ac_try_echo"; } >&5
  3034. (eval "$ac_link_default") 2>&5
  3035. ac_status=$?
  3036. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3037. test $ac_status = 0; }; then :
  3038. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  3039. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  3040. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  3041. # so that the user can short-circuit this test for compilers unknown to
  3042. # Autoconf.
  3043. for ac_file in $ac_files ''
  3044. do
  3045. test -f "$ac_file" || continue
  3046. case $ac_file in
  3047. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  3048. ;;
  3049. [ab].out )
  3050. # We found the default executable, but exeext='' is most
  3051. # certainly right.
  3052. break;;
  3053. *.* )
  3054. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  3055. then :; else
  3056. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3057. fi
  3058. # We set ac_cv_exeext here because the later test for it is not
  3059. # safe: cross compilers may not add the suffix if given an `-o'
  3060. # argument, so we may need to know it at that point already.
  3061. # Even if this section looks crufty: it has the advantage of
  3062. # actually working.
  3063. break;;
  3064. * )
  3065. break;;
  3066. esac
  3067. done
  3068. test "$ac_cv_exeext" = no && ac_cv_exeext=
  3069. else
  3070. ac_file=''
  3071. fi
  3072. if test -z "$ac_file"; then :
  3073. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3074. $as_echo "no" >&6; }
  3075. $as_echo "$as_me: failed program was:" >&5
  3076. sed 's/^/| /' conftest.$ac_ext >&5
  3077. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3078. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3079. as_fn_error 77 "C compiler cannot create executables
  3080. See \`config.log' for more details" "$LINENO" 5 ; }
  3081. else
  3082. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3083. $as_echo "yes" >&6; }
  3084. fi
  3085. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
  3086. $as_echo_n "checking for C compiler default output file name... " >&6; }
  3087. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  3088. $as_echo "$ac_file" >&6; }
  3089. ac_exeext=$ac_cv_exeext
  3090. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  3091. ac_clean_files=$ac_clean_files_save
  3092. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  3093. $as_echo_n "checking for suffix of executables... " >&6; }
  3094. if { { ac_try="$ac_link"
  3095. case "(($ac_try" in
  3096. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3097. *) ac_try_echo=$ac_try;;
  3098. esac
  3099. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3100. $as_echo "$ac_try_echo"; } >&5
  3101. (eval "$ac_link") 2>&5
  3102. ac_status=$?
  3103. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3104. test $ac_status = 0; }; then :
  3105. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  3106. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  3107. # work properly (i.e., refer to `conftest.exe'), while it won't with
  3108. # `rm'.
  3109. for ac_file in conftest.exe conftest conftest.*; do
  3110. test -f "$ac_file" || continue
  3111. case $ac_file in
  3112. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3113. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3114. break;;
  3115. * ) break;;
  3116. esac
  3117. done
  3118. else
  3119. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3120. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3121. as_fn_error $? "cannot compute suffix of executables: cannot compile and link
  3122. See \`config.log' for more details" "$LINENO" 5 ; }
  3123. fi
  3124. rm -f conftest conftest$ac_cv_exeext
  3125. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  3126. $as_echo "$ac_cv_exeext" >&6; }
  3127. rm -f conftest.$ac_ext
  3128. EXEEXT=$ac_cv_exeext
  3129. ac_exeext=$EXEEXT
  3130. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3131. /* end confdefs.h. */
  3132. @%:@include <stdio.h>
  3133. int
  3134. main ()
  3135. {
  3136. FILE *f = fopen ("conftest.out", "w");
  3137. return ferror (f) || fclose (f) != 0;
  3138. ;
  3139. return 0;
  3140. }
  3141. _ACEOF
  3142. ac_clean_files="$ac_clean_files conftest.out"
  3143. # Check that the compiler produces executables we can run. If not, either
  3144. # the compiler is broken, or we cross compile.
  3145. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  3146. $as_echo_n "checking whether we are cross compiling... " >&6; }
  3147. if test "$cross_compiling" != yes; then
  3148. { { ac_try="$ac_link"
  3149. case "(($ac_try" in
  3150. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3151. *) ac_try_echo=$ac_try;;
  3152. esac
  3153. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3154. $as_echo "$ac_try_echo"; } >&5
  3155. (eval "$ac_link") 2>&5
  3156. ac_status=$?
  3157. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3158. test $ac_status = 0; }
  3159. if { ac_try='./conftest$ac_cv_exeext'
  3160. { { case "(($ac_try" in
  3161. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3162. *) ac_try_echo=$ac_try;;
  3163. esac
  3164. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3165. $as_echo "$ac_try_echo"; } >&5
  3166. (eval "$ac_try") 2>&5
  3167. ac_status=$?
  3168. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3169. test $ac_status = 0; }; }; then
  3170. cross_compiling=no
  3171. else
  3172. if test "$cross_compiling" = maybe; then
  3173. cross_compiling=yes
  3174. else
  3175. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3176. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3177. as_fn_error $? "cannot run C compiled programs.
  3178. If you meant to cross compile, use \`--host'.
  3179. See \`config.log' for more details" "$LINENO" 5 ; }
  3180. fi
  3181. fi
  3182. fi
  3183. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  3184. $as_echo "$cross_compiling" >&6; }
  3185. rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
  3186. ac_clean_files=$ac_clean_files_save
  3187. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  3188. $as_echo_n "checking for suffix of object files... " >&6; }
  3189. if test "${ac_cv_objext+set}" = set; then :
  3190. $as_echo_n "(cached) " >&6
  3191. else
  3192. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3193. /* end confdefs.h. */
  3194. int
  3195. main ()
  3196. {
  3197. ;
  3198. return 0;
  3199. }
  3200. _ACEOF
  3201. rm -f conftest.o conftest.obj
  3202. if { { ac_try="$ac_compile"
  3203. case "(($ac_try" in
  3204. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3205. *) ac_try_echo=$ac_try;;
  3206. esac
  3207. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3208. $as_echo "$ac_try_echo"; } >&5
  3209. (eval "$ac_compile") 2>&5
  3210. ac_status=$?
  3211. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3212. test $ac_status = 0; }; then :
  3213. for ac_file in conftest.o conftest.obj conftest.*; do
  3214. test -f "$ac_file" || continue;
  3215. case $ac_file in
  3216. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  3217. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  3218. break;;
  3219. esac
  3220. done
  3221. else
  3222. $as_echo "$as_me: failed program was:" >&5
  3223. sed 's/^/| /' conftest.$ac_ext >&5
  3224. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3225. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3226. as_fn_error $? "cannot compute suffix of object files: cannot compile
  3227. See \`config.log' for more details" "$LINENO" 5 ; }
  3228. fi
  3229. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  3230. fi
  3231. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  3232. $as_echo "$ac_cv_objext" >&6; }
  3233. OBJEXT=$ac_cv_objext
  3234. ac_objext=$OBJEXT
  3235. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  3236. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  3237. if test "${ac_cv_c_compiler_gnu+set}" = set; then :
  3238. $as_echo_n "(cached) " >&6
  3239. else
  3240. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3241. /* end confdefs.h. */
  3242. int
  3243. main ()
  3244. {
  3245. #ifndef __GNUC__
  3246. choke me
  3247. #endif
  3248. ;
  3249. return 0;
  3250. }
  3251. _ACEOF
  3252. if ac_fn_c_try_compile "$LINENO"; then :
  3253. ac_compiler_gnu=yes
  3254. else
  3255. ac_compiler_gnu=no
  3256. fi
  3257. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3258. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  3259. fi
  3260. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  3261. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  3262. if test $ac_compiler_gnu = yes; then
  3263. GCC=yes
  3264. else
  3265. GCC=
  3266. fi
  3267. ac_test_CFLAGS=${CFLAGS+set}
  3268. ac_save_CFLAGS=$CFLAGS
  3269. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  3270. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  3271. if test "${ac_cv_prog_cc_g+set}" = set; then :
  3272. $as_echo_n "(cached) " >&6
  3273. else
  3274. ac_save_c_werror_flag=$ac_c_werror_flag
  3275. ac_c_werror_flag=yes
  3276. ac_cv_prog_cc_g=no
  3277. CFLAGS="-g"
  3278. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3279. /* end confdefs.h. */
  3280. int
  3281. main ()
  3282. {
  3283. ;
  3284. return 0;
  3285. }
  3286. _ACEOF
  3287. if ac_fn_c_try_compile "$LINENO"; then :
  3288. ac_cv_prog_cc_g=yes
  3289. else
  3290. CFLAGS=""
  3291. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3292. /* end confdefs.h. */
  3293. int
  3294. main ()
  3295. {
  3296. ;
  3297. return 0;
  3298. }
  3299. _ACEOF
  3300. if ac_fn_c_try_compile "$LINENO"; then :
  3301. else
  3302. ac_c_werror_flag=$ac_save_c_werror_flag
  3303. CFLAGS="-g"
  3304. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3305. /* end confdefs.h. */
  3306. int
  3307. main ()
  3308. {
  3309. ;
  3310. return 0;
  3311. }
  3312. _ACEOF
  3313. if ac_fn_c_try_compile "$LINENO"; then :
  3314. ac_cv_prog_cc_g=yes
  3315. fi
  3316. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3317. fi
  3318. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3319. fi
  3320. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3321. ac_c_werror_flag=$ac_save_c_werror_flag
  3322. fi
  3323. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  3324. $as_echo "$ac_cv_prog_cc_g" >&6; }
  3325. if test "$ac_test_CFLAGS" = set; then
  3326. CFLAGS=$ac_save_CFLAGS
  3327. elif test $ac_cv_prog_cc_g = yes; then
  3328. if test "$GCC" = yes; then
  3329. CFLAGS="-g -O2"
  3330. else
  3331. CFLAGS="-g"
  3332. fi
  3333. else
  3334. if test "$GCC" = yes; then
  3335. CFLAGS="-O2"
  3336. else
  3337. CFLAGS=
  3338. fi
  3339. fi
  3340. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  3341. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  3342. if test "${ac_cv_prog_cc_c89+set}" = set; then :
  3343. $as_echo_n "(cached) " >&6
  3344. else
  3345. ac_cv_prog_cc_c89=no
  3346. ac_save_CC=$CC
  3347. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3348. /* end confdefs.h. */
  3349. #include <stdarg.h>
  3350. #include <stdio.h>
  3351. #include <sys/types.h>
  3352. #include <sys/stat.h>
  3353. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  3354. struct buf { int x; };
  3355. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  3356. static char *e (p, i)
  3357. char **p;
  3358. int i;
  3359. {
  3360. return p[i];
  3361. }
  3362. static char *f (char * (*g) (char **, int), char **p, ...)
  3363. {
  3364. char *s;
  3365. va_list v;
  3366. va_start (v,p);
  3367. s = g (p, va_arg (v,int));
  3368. va_end (v);
  3369. return s;
  3370. }
  3371. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  3372. function prototypes and stuff, but not '\xHH' hex character constants.
  3373. These don't provoke an error unfortunately, instead are silently treated
  3374. as 'x'. The following induces an error, until -std is added to get
  3375. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  3376. array size at least. It's necessary to write '\x00'==0 to get something
  3377. that's true only with -std. */
  3378. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  3379. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  3380. inside strings and character constants. */
  3381. #define FOO(x) 'x'
  3382. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  3383. int test (int i, double x);
  3384. struct s1 {int (*f) (int a);};
  3385. struct s2 {int (*f) (double a);};
  3386. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  3387. int argc;
  3388. char **argv;
  3389. int
  3390. main ()
  3391. {
  3392. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  3393. ;
  3394. return 0;
  3395. }
  3396. _ACEOF
  3397. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  3398. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  3399. do
  3400. CC="$ac_save_CC $ac_arg"
  3401. if ac_fn_c_try_compile "$LINENO"; then :
  3402. ac_cv_prog_cc_c89=$ac_arg
  3403. fi
  3404. rm -f core conftest.err conftest.$ac_objext
  3405. test "x$ac_cv_prog_cc_c89" != "xno" && break
  3406. done
  3407. rm -f conftest.$ac_ext
  3408. CC=$ac_save_CC
  3409. fi
  3410. # AC_CACHE_VAL
  3411. case "x$ac_cv_prog_cc_c89" in
  3412. x)
  3413. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  3414. $as_echo "none needed" >&6; } ;;
  3415. xno)
  3416. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  3417. $as_echo "unsupported" >&6; } ;;
  3418. *)
  3419. CC="$CC $ac_cv_prog_cc_c89"
  3420. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  3421. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  3422. esac
  3423. if test "x$ac_cv_prog_cc_c89" != xno; then :
  3424. fi
  3425. ac_ext=c
  3426. ac_cpp='$CPP $CPPFLAGS'
  3427. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3428. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3429. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3430. depcc="$CC" am_compiler_list=
  3431. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  3432. $as_echo_n "checking dependency style of $depcc... " >&6; }
  3433. if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
  3434. $as_echo_n "(cached) " >&6
  3435. else
  3436. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  3437. # We make a subdir and do the tests there. Otherwise we can end up
  3438. # making bogus files that we don't know about and never remove. For
  3439. # instance it was reported that on HP-UX the gcc test will end up
  3440. # making a dummy file named `D' -- because `-MD' means `put the output
  3441. # in D'.
  3442. mkdir conftest.dir
  3443. # Copy depcomp to subdir because otherwise we won't find it if we're
  3444. # using a relative directory.
  3445. cp "$am_depcomp" conftest.dir
  3446. cd conftest.dir
  3447. # We will build objects and dependencies in a subdirectory because
  3448. # it helps to detect inapplicable dependency modes. For instance
  3449. # both Tru64's cc and ICC support -MD to output dependencies as a
  3450. # side effect of compilation, but ICC will put the dependencies in
  3451. # the current directory while Tru64 will put them in the object
  3452. # directory.
  3453. mkdir sub
  3454. am_cv_CC_dependencies_compiler_type=none
  3455. if test "$am_compiler_list" = ""; then
  3456. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  3457. fi
  3458. am__universal=false
  3459. case " $depcc " in #(
  3460. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  3461. esac
  3462. for depmode in $am_compiler_list; do
  3463. # Setup a source with many dependencies, because some compilers
  3464. # like to wrap large dependency lists on column 80 (with \), and
  3465. # we should not choose a depcomp mode which is confused by this.
  3466. #
  3467. # We need to recreate these files for each test, as the compiler may
  3468. # overwrite some of them when testing with obscure command lines.
  3469. # This happens at least with the AIX C compiler.
  3470. : > sub/conftest.c
  3471. for i in 1 2 3 4 5 6; do
  3472. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  3473. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  3474. # Solaris 8's {/usr,}/bin/sh.
  3475. touch sub/conftst$i.h
  3476. done
  3477. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  3478. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  3479. # mode. It turns out that the SunPro C++ compiler does not properly
  3480. # handle `-M -o', and we need to detect this. Also, some Intel
  3481. # versions had trouble with output in subdirs
  3482. am__obj=sub/conftest.${OBJEXT-o}
  3483. am__minus_obj="-o $am__obj"
  3484. case $depmode in
  3485. gcc)
  3486. # This depmode causes a compiler race in universal mode.
  3487. test "$am__universal" = false || continue
  3488. ;;
  3489. nosideeffect)
  3490. # after this tag, mechanisms are not by side-effect, so they'll
  3491. # only be used when explicitly requested
  3492. if test "x$enable_dependency_tracking" = xyes; then
  3493. continue
  3494. else
  3495. break
  3496. fi
  3497. ;;
  3498. msvisualcpp | msvcmsys)
  3499. # This compiler won't grok `-c -o', but also, the minuso test has
  3500. # not run yet. These depmodes are late enough in the game, and
  3501. # so weak that their functioning should not be impacted.
  3502. am__obj=conftest.${OBJEXT-o}
  3503. am__minus_obj=
  3504. ;;
  3505. none) break ;;
  3506. esac
  3507. if depmode=$depmode \
  3508. source=sub/conftest.c object=$am__obj \
  3509. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  3510. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  3511. >/dev/null 2>conftest.err &&
  3512. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  3513. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  3514. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  3515. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  3516. # icc doesn't choke on unknown options, it will just issue warnings
  3517. # or remarks (even with -Werror). So we grep stderr for any message
  3518. # that says an option was ignored or not supported.
  3519. # When given -MP, icc 7.0 and 7.1 complain thusly:
  3520. # icc: Command line warning: ignoring option '-M'; no argument required
  3521. # The diagnosis changed in icc 8.0:
  3522. # icc: Command line remark: option '-MP' not supported
  3523. if (grep 'ignoring option' conftest.err ||
  3524. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  3525. am_cv_CC_dependencies_compiler_type=$depmode
  3526. break
  3527. fi
  3528. fi
  3529. done
  3530. cd ..
  3531. rm -rf conftest.dir
  3532. else
  3533. am_cv_CC_dependencies_compiler_type=none
  3534. fi
  3535. fi
  3536. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
  3537. $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
  3538. CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  3539. if
  3540. test "x$enable_dependency_tracking" != xno \
  3541. && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  3542. am__fastdepCC_TRUE=
  3543. am__fastdepCC_FALSE='#'
  3544. else
  3545. am__fastdepCC_TRUE='#'
  3546. am__fastdepCC_FALSE=
  3547. fi
  3548. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
  3549. $as_echo_n "checking for a sed that does not truncate output... " >&6; }
  3550. if test "${ac_cv_path_SED+set}" = set; then :
  3551. $as_echo_n "(cached) " >&6
  3552. else
  3553. ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  3554. for ac_i in 1 2 3 4 5 6 7; do
  3555. ac_script="$ac_script$as_nl$ac_script"
  3556. done
  3557. echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
  3558. { ac_script=; unset ac_script;}
  3559. if test -z "$SED"; then
  3560. ac_path_SED_found=false
  3561. # Loop through the user's path and test for each of PROGNAME-LIST
  3562. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3563. for as_dir in $PATH
  3564. do
  3565. IFS=$as_save_IFS
  3566. test -z "$as_dir" && as_dir=.
  3567. for ac_prog in sed gsed; do
  3568. for ac_exec_ext in '' $ac_executable_extensions; do
  3569. ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
  3570. { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
  3571. # Check for GNU ac_path_SED and select it if it is found.
  3572. # Check for GNU $ac_path_SED
  3573. case `"$ac_path_SED" --version 2>&1` in
  3574. *GNU*)
  3575. ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  3576. *)
  3577. ac_count=0
  3578. $as_echo_n 0123456789 >"conftest.in"
  3579. while :
  3580. do
  3581. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3582. mv "conftest.tmp" "conftest.in"
  3583. cp "conftest.in" "conftest.nl"
  3584. $as_echo '' >> "conftest.nl"
  3585. "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3586. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3587. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3588. if test $ac_count -gt ${ac_path_SED_max-0}; then
  3589. # Best one so far, save it but keep looking for a better one
  3590. ac_cv_path_SED="$ac_path_SED"
  3591. ac_path_SED_max=$ac_count
  3592. fi
  3593. # 10*(2^10) chars as input seems more than enough
  3594. test $ac_count -gt 10 && break
  3595. done
  3596. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3597. esac
  3598. $ac_path_SED_found && break 3
  3599. done
  3600. done
  3601. done
  3602. IFS=$as_save_IFS
  3603. if test -z "$ac_cv_path_SED"; then
  3604. as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
  3605. fi
  3606. else
  3607. ac_cv_path_SED=$SED
  3608. fi
  3609. fi
  3610. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
  3611. $as_echo "$ac_cv_path_SED" >&6; }
  3612. SED="$ac_cv_path_SED"
  3613. rm -f conftest.sed
  3614. test -z "$SED" && SED=sed
  3615. Xsed="$SED -e 1s/^X//"
  3616. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
  3617. $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
  3618. if test "${ac_cv_path_GREP+set}" = set; then :
  3619. $as_echo_n "(cached) " >&6
  3620. else
  3621. if test -z "$GREP"; then
  3622. ac_path_GREP_found=false
  3623. # Loop through the user's path and test for each of PROGNAME-LIST
  3624. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3625. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3626. do
  3627. IFS=$as_save_IFS
  3628. test -z "$as_dir" && as_dir=.
  3629. for ac_prog in grep ggrep; do
  3630. for ac_exec_ext in '' $ac_executable_extensions; do
  3631. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  3632. { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
  3633. # Check for GNU ac_path_GREP and select it if it is found.
  3634. # Check for GNU $ac_path_GREP
  3635. case `"$ac_path_GREP" --version 2>&1` in
  3636. *GNU*)
  3637. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  3638. *)
  3639. ac_count=0
  3640. $as_echo_n 0123456789 >"conftest.in"
  3641. while :
  3642. do
  3643. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3644. mv "conftest.tmp" "conftest.in"
  3645. cp "conftest.in" "conftest.nl"
  3646. $as_echo 'GREP' >> "conftest.nl"
  3647. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3648. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3649. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3650. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  3651. # Best one so far, save it but keep looking for a better one
  3652. ac_cv_path_GREP="$ac_path_GREP"
  3653. ac_path_GREP_max=$ac_count
  3654. fi
  3655. # 10*(2^10) chars as input seems more than enough
  3656. test $ac_count -gt 10 && break
  3657. done
  3658. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3659. esac
  3660. $ac_path_GREP_found && break 3
  3661. done
  3662. done
  3663. done
  3664. IFS=$as_save_IFS
  3665. if test -z "$ac_cv_path_GREP"; then
  3666. as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  3667. fi
  3668. else
  3669. ac_cv_path_GREP=$GREP
  3670. fi
  3671. fi
  3672. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
  3673. $as_echo "$ac_cv_path_GREP" >&6; }
  3674. GREP="$ac_cv_path_GREP"
  3675. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  3676. $as_echo_n "checking for egrep... " >&6; }
  3677. if test "${ac_cv_path_EGREP+set}" = set; then :
  3678. $as_echo_n "(cached) " >&6
  3679. else
  3680. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  3681. then ac_cv_path_EGREP="$GREP -E"
  3682. else
  3683. if test -z "$EGREP"; then
  3684. ac_path_EGREP_found=false
  3685. # Loop through the user's path and test for each of PROGNAME-LIST
  3686. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3687. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3688. do
  3689. IFS=$as_save_IFS
  3690. test -z "$as_dir" && as_dir=.
  3691. for ac_prog in egrep; do
  3692. for ac_exec_ext in '' $ac_executable_extensions; do
  3693. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  3694. { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
  3695. # Check for GNU ac_path_EGREP and select it if it is found.
  3696. # Check for GNU $ac_path_EGREP
  3697. case `"$ac_path_EGREP" --version 2>&1` in
  3698. *GNU*)
  3699. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  3700. *)
  3701. ac_count=0
  3702. $as_echo_n 0123456789 >"conftest.in"
  3703. while :
  3704. do
  3705. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3706. mv "conftest.tmp" "conftest.in"
  3707. cp "conftest.in" "conftest.nl"
  3708. $as_echo 'EGREP' >> "conftest.nl"
  3709. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3710. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3711. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3712. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  3713. # Best one so far, save it but keep looking for a better one
  3714. ac_cv_path_EGREP="$ac_path_EGREP"
  3715. ac_path_EGREP_max=$ac_count
  3716. fi
  3717. # 10*(2^10) chars as input seems more than enough
  3718. test $ac_count -gt 10 && break
  3719. done
  3720. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3721. esac
  3722. $ac_path_EGREP_found && break 3
  3723. done
  3724. done
  3725. done
  3726. IFS=$as_save_IFS
  3727. if test -z "$ac_cv_path_EGREP"; then
  3728. as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  3729. fi
  3730. else
  3731. ac_cv_path_EGREP=$EGREP
  3732. fi
  3733. fi
  3734. fi
  3735. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  3736. $as_echo "$ac_cv_path_EGREP" >&6; }
  3737. EGREP="$ac_cv_path_EGREP"
  3738. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
  3739. $as_echo_n "checking for fgrep... " >&6; }
  3740. if test "${ac_cv_path_FGREP+set}" = set; then :
  3741. $as_echo_n "(cached) " >&6
  3742. else
  3743. if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
  3744. then ac_cv_path_FGREP="$GREP -F"
  3745. else
  3746. if test -z "$FGREP"; then
  3747. ac_path_FGREP_found=false
  3748. # Loop through the user's path and test for each of PROGNAME-LIST
  3749. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3750. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3751. do
  3752. IFS=$as_save_IFS
  3753. test -z "$as_dir" && as_dir=.
  3754. for ac_prog in fgrep; do
  3755. for ac_exec_ext in '' $ac_executable_extensions; do
  3756. ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
  3757. { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
  3758. # Check for GNU ac_path_FGREP and select it if it is found.
  3759. # Check for GNU $ac_path_FGREP
  3760. case `"$ac_path_FGREP" --version 2>&1` in
  3761. *GNU*)
  3762. ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
  3763. *)
  3764. ac_count=0
  3765. $as_echo_n 0123456789 >"conftest.in"
  3766. while :
  3767. do
  3768. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3769. mv "conftest.tmp" "conftest.in"
  3770. cp "conftest.in" "conftest.nl"
  3771. $as_echo 'FGREP' >> "conftest.nl"
  3772. "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3773. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3774. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3775. if test $ac_count -gt ${ac_path_FGREP_max-0}; then
  3776. # Best one so far, save it but keep looking for a better one
  3777. ac_cv_path_FGREP="$ac_path_FGREP"
  3778. ac_path_FGREP_max=$ac_count
  3779. fi
  3780. # 10*(2^10) chars as input seems more than enough
  3781. test $ac_count -gt 10 && break
  3782. done
  3783. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3784. esac
  3785. $ac_path_FGREP_found && break 3
  3786. done
  3787. done
  3788. done
  3789. IFS=$as_save_IFS
  3790. if test -z "$ac_cv_path_FGREP"; then
  3791. as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  3792. fi
  3793. else
  3794. ac_cv_path_FGREP=$FGREP
  3795. fi
  3796. fi
  3797. fi
  3798. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
  3799. $as_echo "$ac_cv_path_FGREP" >&6; }
  3800. FGREP="$ac_cv_path_FGREP"
  3801. test -z "$GREP" && GREP=grep
  3802. @%:@ Check whether --with-gnu-ld was given.
  3803. if test "${with_gnu_ld+set}" = set; then :
  3804. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  3805. else
  3806. with_gnu_ld=no
  3807. fi
  3808. ac_prog=ld
  3809. if test "$GCC" = yes; then
  3810. # Check if gcc -print-prog-name=ld gives a path.
  3811. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  3812. $as_echo_n "checking for ld used by $CC... " >&6; }
  3813. case $host in
  3814. *-*-mingw*)
  3815. # gcc leaves a trailing carriage return which upsets mingw
  3816. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  3817. *)
  3818. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  3819. esac
  3820. case $ac_prog in
  3821. # Accept absolute paths.
  3822. [\\/]* | ?:[\\/]*)
  3823. re_direlt='/[^/][^/]*/\.\./'
  3824. # Canonicalize the pathname of ld
  3825. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  3826. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  3827. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  3828. done
  3829. test -z "$LD" && LD="$ac_prog"
  3830. ;;
  3831. "")
  3832. # If it fails, then pretend we aren't using GCC.
  3833. ac_prog=ld
  3834. ;;
  3835. *)
  3836. # If it is relative, then search for the first ld in PATH.
  3837. with_gnu_ld=unknown
  3838. ;;
  3839. esac
  3840. elif test "$with_gnu_ld" = yes; then
  3841. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  3842. $as_echo_n "checking for GNU ld... " >&6; }
  3843. else
  3844. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  3845. $as_echo_n "checking for non-GNU ld... " >&6; }
  3846. fi
  3847. if test "${lt_cv_path_LD+set}" = set; then :
  3848. $as_echo_n "(cached) " >&6
  3849. else
  3850. if test -z "$LD"; then
  3851. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  3852. for ac_dir in $PATH; do
  3853. IFS="$lt_save_ifs"
  3854. test -z "$ac_dir" && ac_dir=.
  3855. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  3856. lt_cv_path_LD="$ac_dir/$ac_prog"
  3857. # Check to see if the program is GNU ld. I'd rather use --version,
  3858. # but apparently some variants of GNU ld only accept -v.
  3859. # Break only if it was the GNU/non-GNU ld that we prefer.
  3860. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  3861. *GNU* | *'with BFD'*)
  3862. test "$with_gnu_ld" != no && break
  3863. ;;
  3864. *)
  3865. test "$with_gnu_ld" != yes && break
  3866. ;;
  3867. esac
  3868. fi
  3869. done
  3870. IFS="$lt_save_ifs"
  3871. else
  3872. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  3873. fi
  3874. fi
  3875. LD="$lt_cv_path_LD"
  3876. if test -n "$LD"; then
  3877. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  3878. $as_echo "$LD" >&6; }
  3879. else
  3880. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3881. $as_echo "no" >&6; }
  3882. fi
  3883. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  3884. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  3885. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  3886. if test "${lt_cv_prog_gnu_ld+set}" = set; then :
  3887. $as_echo_n "(cached) " >&6
  3888. else
  3889. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  3890. case `$LD -v 2>&1 </dev/null` in
  3891. *GNU* | *'with BFD'*)
  3892. lt_cv_prog_gnu_ld=yes
  3893. ;;
  3894. *)
  3895. lt_cv_prog_gnu_ld=no
  3896. ;;
  3897. esac
  3898. fi
  3899. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  3900. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  3901. with_gnu_ld=$lt_cv_prog_gnu_ld
  3902. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
  3903. $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
  3904. if test "${lt_cv_path_NM+set}" = set; then :
  3905. $as_echo_n "(cached) " >&6
  3906. else
  3907. if test -n "$NM"; then
  3908. # Let the user override the test.
  3909. lt_cv_path_NM="$NM"
  3910. else
  3911. lt_nm_to_check="${ac_tool_prefix}nm"
  3912. if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
  3913. lt_nm_to_check="$lt_nm_to_check nm"
  3914. fi
  3915. for lt_tmp_nm in $lt_nm_to_check; do
  3916. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  3917. for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
  3918. IFS="$lt_save_ifs"
  3919. test -z "$ac_dir" && ac_dir=.
  3920. tmp_nm="$ac_dir/$lt_tmp_nm"
  3921. if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
  3922. # Check to see if the nm accepts a BSD-compat flag.
  3923. # Adding the `sed 1q' prevents false positives on HP-UX, which says:
  3924. # nm: unknown option "B" ignored
  3925. # Tru64's nm complains that /dev/null is an invalid object file
  3926. case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
  3927. */dev/null* | *'Invalid file or object type'*)
  3928. lt_cv_path_NM="$tmp_nm -B"
  3929. break
  3930. ;;
  3931. *)
  3932. case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  3933. */dev/null*)
  3934. lt_cv_path_NM="$tmp_nm -p"
  3935. break
  3936. ;;
  3937. *)
  3938. lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  3939. continue # so that we can try to find one that supports BSD flags
  3940. ;;
  3941. esac
  3942. ;;
  3943. esac
  3944. fi
  3945. done
  3946. IFS="$lt_save_ifs"
  3947. done
  3948. : ${lt_cv_path_NM=no}
  3949. fi
  3950. fi
  3951. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
  3952. $as_echo "$lt_cv_path_NM" >&6; }
  3953. if test "$lt_cv_path_NM" != "no"; then
  3954. NM="$lt_cv_path_NM"
  3955. else
  3956. # Didn't find any BSD compatible name lister, look for dumpbin.
  3957. if test -n "$ac_tool_prefix"; then
  3958. for ac_prog in "dumpbin -symbols" "link -dump -symbols"
  3959. do
  3960. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  3961. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  3962. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3963. $as_echo_n "checking for $ac_word... " >&6; }
  3964. if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
  3965. $as_echo_n "(cached) " >&6
  3966. else
  3967. if test -n "$DUMPBIN"; then
  3968. ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
  3969. else
  3970. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3971. for as_dir in $PATH
  3972. do
  3973. IFS=$as_save_IFS
  3974. test -z "$as_dir" && as_dir=.
  3975. for ac_exec_ext in '' $ac_executable_extensions; do
  3976. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3977. ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
  3978. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3979. break 2
  3980. fi
  3981. done
  3982. done
  3983. IFS=$as_save_IFS
  3984. fi
  3985. fi
  3986. DUMPBIN=$ac_cv_prog_DUMPBIN
  3987. if test -n "$DUMPBIN"; then
  3988. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
  3989. $as_echo "$DUMPBIN" >&6; }
  3990. else
  3991. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3992. $as_echo "no" >&6; }
  3993. fi
  3994. test -n "$DUMPBIN" && break
  3995. done
  3996. fi
  3997. if test -z "$DUMPBIN"; then
  3998. ac_ct_DUMPBIN=$DUMPBIN
  3999. for ac_prog in "dumpbin -symbols" "link -dump -symbols"
  4000. do
  4001. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4002. set dummy $ac_prog; ac_word=$2
  4003. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4004. $as_echo_n "checking for $ac_word... " >&6; }
  4005. if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
  4006. $as_echo_n "(cached) " >&6
  4007. else
  4008. if test -n "$ac_ct_DUMPBIN"; then
  4009. ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
  4010. else
  4011. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4012. for as_dir in $PATH
  4013. do
  4014. IFS=$as_save_IFS
  4015. test -z "$as_dir" && as_dir=.
  4016. for ac_exec_ext in '' $ac_executable_extensions; do
  4017. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4018. ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
  4019. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4020. break 2
  4021. fi
  4022. done
  4023. done
  4024. IFS=$as_save_IFS
  4025. fi
  4026. fi
  4027. ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
  4028. if test -n "$ac_ct_DUMPBIN"; then
  4029. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
  4030. $as_echo "$ac_ct_DUMPBIN" >&6; }
  4031. else
  4032. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4033. $as_echo "no" >&6; }
  4034. fi
  4035. test -n "$ac_ct_DUMPBIN" && break
  4036. done
  4037. if test "x$ac_ct_DUMPBIN" = x; then
  4038. DUMPBIN=":"
  4039. else
  4040. case $cross_compiling:$ac_tool_warned in
  4041. yes:)
  4042. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4043. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4044. ac_tool_warned=yes ;;
  4045. esac
  4046. DUMPBIN=$ac_ct_DUMPBIN
  4047. fi
  4048. fi
  4049. if test "$DUMPBIN" != ":"; then
  4050. NM="$DUMPBIN"
  4051. fi
  4052. fi
  4053. test -z "$NM" && NM=nm
  4054. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
  4055. $as_echo_n "checking the name lister ($NM) interface... " >&6; }
  4056. if test "${lt_cv_nm_interface+set}" = set; then :
  4057. $as_echo_n "(cached) " >&6
  4058. else
  4059. lt_cv_nm_interface="BSD nm"
  4060. echo "int some_variable = 0;" > conftest.$ac_ext
  4061. (eval echo "\"\$as_me:__oline__: $ac_compile\"" >&5)
  4062. (eval "$ac_compile" 2>conftest.err)
  4063. cat conftest.err >&5
  4064. (eval echo "\"\$as_me:__oline__: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
  4065. (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
  4066. cat conftest.err >&5
  4067. (eval echo "\"\$as_me:__oline__: output\"" >&5)
  4068. cat conftest.out >&5
  4069. if $GREP 'External.*some_variable' conftest.out > /dev/null; then
  4070. lt_cv_nm_interface="MS dumpbin"
  4071. fi
  4072. rm -f conftest*
  4073. fi
  4074. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
  4075. $as_echo "$lt_cv_nm_interface" >&6; }
  4076. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
  4077. $as_echo_n "checking whether ln -s works... " >&6; }
  4078. LN_S=$as_ln_s
  4079. if test "$LN_S" = "ln -s"; then
  4080. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4081. $as_echo "yes" >&6; }
  4082. else
  4083. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
  4084. $as_echo "no, using $LN_S" >&6; }
  4085. fi
  4086. # find the maximum length of command line arguments
  4087. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
  4088. $as_echo_n "checking the maximum length of command line arguments... " >&6; }
  4089. if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
  4090. $as_echo_n "(cached) " >&6
  4091. else
  4092. i=0
  4093. teststring="ABCD"
  4094. case $build_os in
  4095. msdosdjgpp*)
  4096. # On DJGPP, this test can blow up pretty badly due to problems in libc
  4097. # (any single argument exceeding 2000 bytes causes a buffer overrun
  4098. # during glob expansion). Even if it were fixed, the result of this
  4099. # check would be larger than it should be.
  4100. lt_cv_sys_max_cmd_len=12288; # 12K is about right
  4101. ;;
  4102. gnu*)
  4103. # Under GNU Hurd, this test is not required because there is
  4104. # no limit to the length of command line arguments.
  4105. # Libtool will interpret -1 as no limit whatsoever
  4106. lt_cv_sys_max_cmd_len=-1;
  4107. ;;
  4108. cygwin* | mingw* | cegcc*)
  4109. # On Win9x/ME, this test blows up -- it succeeds, but takes
  4110. # about 5 minutes as the teststring grows exponentially.
  4111. # Worse, since 9x/ME are not pre-emptively multitasking,
  4112. # you end up with a "frozen" computer, even though with patience
  4113. # the test eventually succeeds (with a max line length of 256k).
  4114. # Instead, let's just punt: use the minimum linelength reported by
  4115. # all of the supported platforms: 8192 (on NT/2K/XP).
  4116. lt_cv_sys_max_cmd_len=8192;
  4117. ;;
  4118. amigaos*)
  4119. # On AmigaOS with pdksh, this test takes hours, literally.
  4120. # So we just punt and use a minimum line length of 8192.
  4121. lt_cv_sys_max_cmd_len=8192;
  4122. ;;
  4123. netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
  4124. # This has been around since 386BSD, at least. Likely further.
  4125. if test -x /sbin/sysctl; then
  4126. lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  4127. elif test -x /usr/sbin/sysctl; then
  4128. lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  4129. else
  4130. lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  4131. fi
  4132. # And add a safety zone
  4133. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  4134. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  4135. ;;
  4136. interix*)
  4137. # We know the value 262144 and hardcode it with a safety zone (like BSD)
  4138. lt_cv_sys_max_cmd_len=196608
  4139. ;;
  4140. osf*)
  4141. # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  4142. # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  4143. # nice to cause kernel panics so lets avoid the loop below.
  4144. # First set a reasonable default.
  4145. lt_cv_sys_max_cmd_len=16384
  4146. #
  4147. if test -x /sbin/sysconfig; then
  4148. case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  4149. *1*) lt_cv_sys_max_cmd_len=-1 ;;
  4150. esac
  4151. fi
  4152. ;;
  4153. sco3.2v5*)
  4154. lt_cv_sys_max_cmd_len=102400
  4155. ;;
  4156. sysv5* | sco5v6* | sysv4.2uw2*)
  4157. kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  4158. if test -n "$kargmax"; then
  4159. lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
  4160. else
  4161. lt_cv_sys_max_cmd_len=32768
  4162. fi
  4163. ;;
  4164. *)
  4165. lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
  4166. if test -n "$lt_cv_sys_max_cmd_len"; then
  4167. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  4168. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  4169. else
  4170. # Make teststring a little bigger before we do anything with it.
  4171. # a 1K string should be a reasonable start.
  4172. for i in 1 2 3 4 5 6 7 8 ; do
  4173. teststring=$teststring$teststring
  4174. done
  4175. SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  4176. # If test is not a shell built-in, we'll probably end up computing a
  4177. # maximum length that is only half of the actual maximum length, but
  4178. # we can't tell.
  4179. while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
  4180. = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
  4181. test $i != 17 # 1/2 MB should be enough
  4182. do
  4183. i=`expr $i + 1`
  4184. teststring=$teststring$teststring
  4185. done
  4186. # Only check the string length outside the loop.
  4187. lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
  4188. teststring=
  4189. # Add a significant safety factor because C++ compilers can tack on
  4190. # massive amounts of additional arguments before passing them to the
  4191. # linker. It appears as though 1/2 is a usable value.
  4192. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  4193. fi
  4194. ;;
  4195. esac
  4196. fi
  4197. if test -n $lt_cv_sys_max_cmd_len ; then
  4198. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
  4199. $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
  4200. else
  4201. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
  4202. $as_echo "none" >&6; }
  4203. fi
  4204. max_cmd_len=$lt_cv_sys_max_cmd_len
  4205. : ${CP="cp -f"}
  4206. : ${MV="mv -f"}
  4207. : ${RM="rm -f"}
  4208. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
  4209. $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
  4210. # Try some XSI features
  4211. xsi_shell=no
  4212. ( _lt_dummy="a/b/c"
  4213. test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
  4214. = c,a/b,, \
  4215. && eval 'test $(( 1 + 1 )) -eq 2 \
  4216. && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
  4217. && xsi_shell=yes
  4218. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
  4219. $as_echo "$xsi_shell" >&6; }
  4220. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
  4221. $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
  4222. lt_shell_append=no
  4223. ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
  4224. >/dev/null 2>&1 \
  4225. && lt_shell_append=yes
  4226. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
  4227. $as_echo "$lt_shell_append" >&6; }
  4228. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  4229. lt_unset=unset
  4230. else
  4231. lt_unset=false
  4232. fi
  4233. # test EBCDIC or ASCII
  4234. case `echo X|tr X '\101'` in
  4235. A) # ASCII based system
  4236. # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
  4237. lt_SP2NL='tr \040 \012'
  4238. lt_NL2SP='tr \015\012 \040\040'
  4239. ;;
  4240. *) # EBCDIC based system
  4241. lt_SP2NL='tr \100 \n'
  4242. lt_NL2SP='tr \r\n \100\100'
  4243. ;;
  4244. esac
  4245. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
  4246. $as_echo_n "checking for $LD option to reload object files... " >&6; }
  4247. if test "${lt_cv_ld_reload_flag+set}" = set; then :
  4248. $as_echo_n "(cached) " >&6
  4249. else
  4250. lt_cv_ld_reload_flag='-r'
  4251. fi
  4252. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
  4253. $as_echo "$lt_cv_ld_reload_flag" >&6; }
  4254. reload_flag=$lt_cv_ld_reload_flag
  4255. case $reload_flag in
  4256. "" | " "*) ;;
  4257. *) reload_flag=" $reload_flag" ;;
  4258. esac
  4259. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  4260. case $host_os in
  4261. darwin*)
  4262. if test "$GCC" = yes; then
  4263. reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
  4264. else
  4265. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  4266. fi
  4267. ;;
  4268. esac
  4269. if test -n "$ac_tool_prefix"; then
  4270. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  4271. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  4272. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4273. $as_echo_n "checking for $ac_word... " >&6; }
  4274. if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
  4275. $as_echo_n "(cached) " >&6
  4276. else
  4277. if test -n "$OBJDUMP"; then
  4278. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  4279. else
  4280. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4281. for as_dir in $PATH
  4282. do
  4283. IFS=$as_save_IFS
  4284. test -z "$as_dir" && as_dir=.
  4285. for ac_exec_ext in '' $ac_executable_extensions; do
  4286. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4287. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  4288. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4289. break 2
  4290. fi
  4291. done
  4292. done
  4293. IFS=$as_save_IFS
  4294. fi
  4295. fi
  4296. OBJDUMP=$ac_cv_prog_OBJDUMP
  4297. if test -n "$OBJDUMP"; then
  4298. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  4299. $as_echo "$OBJDUMP" >&6; }
  4300. else
  4301. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4302. $as_echo "no" >&6; }
  4303. fi
  4304. fi
  4305. if test -z "$ac_cv_prog_OBJDUMP"; then
  4306. ac_ct_OBJDUMP=$OBJDUMP
  4307. # Extract the first word of "objdump", so it can be a program name with args.
  4308. set dummy objdump; ac_word=$2
  4309. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4310. $as_echo_n "checking for $ac_word... " >&6; }
  4311. if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
  4312. $as_echo_n "(cached) " >&6
  4313. else
  4314. if test -n "$ac_ct_OBJDUMP"; then
  4315. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  4316. else
  4317. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4318. for as_dir in $PATH
  4319. do
  4320. IFS=$as_save_IFS
  4321. test -z "$as_dir" && as_dir=.
  4322. for ac_exec_ext in '' $ac_executable_extensions; do
  4323. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4324. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  4325. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4326. break 2
  4327. fi
  4328. done
  4329. done
  4330. IFS=$as_save_IFS
  4331. fi
  4332. fi
  4333. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  4334. if test -n "$ac_ct_OBJDUMP"; then
  4335. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  4336. $as_echo "$ac_ct_OBJDUMP" >&6; }
  4337. else
  4338. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4339. $as_echo "no" >&6; }
  4340. fi
  4341. if test "x$ac_ct_OBJDUMP" = x; then
  4342. OBJDUMP="false"
  4343. else
  4344. case $cross_compiling:$ac_tool_warned in
  4345. yes:)
  4346. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4347. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4348. ac_tool_warned=yes ;;
  4349. esac
  4350. OBJDUMP=$ac_ct_OBJDUMP
  4351. fi
  4352. else
  4353. OBJDUMP="$ac_cv_prog_OBJDUMP"
  4354. fi
  4355. test -z "$OBJDUMP" && OBJDUMP=objdump
  4356. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
  4357. $as_echo_n "checking how to recognize dependent libraries... " >&6; }
  4358. if test "${lt_cv_deplibs_check_method+set}" = set; then :
  4359. $as_echo_n "(cached) " >&6
  4360. else
  4361. lt_cv_file_magic_cmd='$MAGIC_CMD'
  4362. lt_cv_file_magic_test_file=
  4363. lt_cv_deplibs_check_method='unknown'
  4364. # Need to set the preceding variable on all platforms that support
  4365. # interlibrary dependencies.
  4366. # 'none' -- dependencies not supported.
  4367. # `unknown' -- same as none, but documents that we really don't know.
  4368. # 'pass_all' -- all dependencies passed with no checks.
  4369. # 'test_compile' -- check by making test program.
  4370. # 'file_magic [[regex]]' -- check by looking for files in library path
  4371. # which responds to the $file_magic_cmd with a given extended regex.
  4372. # If you have `file' or equivalent on your system and you're not sure
  4373. # whether `pass_all' will *always* work, you probably want this one.
  4374. case $host_os in
  4375. aix[4-9]*)
  4376. lt_cv_deplibs_check_method=pass_all
  4377. ;;
  4378. beos*)
  4379. lt_cv_deplibs_check_method=pass_all
  4380. ;;
  4381. bsdi[45]*)
  4382. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  4383. lt_cv_file_magic_cmd='/usr/bin/file -L'
  4384. lt_cv_file_magic_test_file=/shlib/libc.so
  4385. ;;
  4386. cygwin*)
  4387. # func_win32_libid is a shell function defined in ltmain.sh
  4388. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  4389. lt_cv_file_magic_cmd='func_win32_libid'
  4390. ;;
  4391. mingw* | pw32*)
  4392. # Base MSYS/MinGW do not provide the 'file' command needed by
  4393. # func_win32_libid shell function, so use a weaker test based on 'objdump',
  4394. # unless we find 'file', for example because we are cross-compiling.
  4395. if ( file / ) >/dev/null 2>&1; then
  4396. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  4397. lt_cv_file_magic_cmd='func_win32_libid'
  4398. else
  4399. lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
  4400. lt_cv_file_magic_cmd='$OBJDUMP -f'
  4401. fi
  4402. ;;
  4403. cegcc)
  4404. # use the weaker test based on 'objdump'. See mingw*.
  4405. lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
  4406. lt_cv_file_magic_cmd='$OBJDUMP -f'
  4407. ;;
  4408. darwin* | rhapsody*)
  4409. lt_cv_deplibs_check_method=pass_all
  4410. ;;
  4411. freebsd* | dragonfly*)
  4412. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  4413. case $host_cpu in
  4414. i*86 )
  4415. # Not sure whether the presence of OpenBSD here was a mistake.
  4416. # Let's accept both of them until this is cleared up.
  4417. lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
  4418. lt_cv_file_magic_cmd=/usr/bin/file
  4419. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  4420. ;;
  4421. esac
  4422. else
  4423. lt_cv_deplibs_check_method=pass_all
  4424. fi
  4425. ;;
  4426. gnu*)
  4427. lt_cv_deplibs_check_method=pass_all
  4428. ;;
  4429. hpux10.20* | hpux11*)
  4430. lt_cv_file_magic_cmd=/usr/bin/file
  4431. case $host_cpu in
  4432. ia64*)
  4433. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
  4434. lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  4435. ;;
  4436. hppa*64*)
  4437. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
  4438. lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  4439. ;;
  4440. *)
  4441. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
  4442. lt_cv_file_magic_test_file=/usr/lib/libc.sl
  4443. ;;
  4444. esac
  4445. ;;
  4446. interix[3-9]*)
  4447. # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  4448. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
  4449. ;;
  4450. irix5* | irix6* | nonstopux*)
  4451. case $LD in
  4452. *-32|*"-32 ") libmagic=32-bit;;
  4453. *-n32|*"-n32 ") libmagic=N32;;
  4454. *-64|*"-64 ") libmagic=64-bit;;
  4455. *) libmagic=never-match;;
  4456. esac
  4457. lt_cv_deplibs_check_method=pass_all
  4458. ;;
  4459. # This must be Linux ELF.
  4460. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  4461. lt_cv_deplibs_check_method=pass_all
  4462. ;;
  4463. netbsd* | netbsdelf*-gnu)
  4464. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  4465. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  4466. else
  4467. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
  4468. fi
  4469. ;;
  4470. newos6*)
  4471. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  4472. lt_cv_file_magic_cmd=/usr/bin/file
  4473. lt_cv_file_magic_test_file=/usr/lib/libnls.so
  4474. ;;
  4475. *nto* | *qnx*)
  4476. lt_cv_deplibs_check_method=pass_all
  4477. ;;
  4478. openbsd*)
  4479. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  4480. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
  4481. else
  4482. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  4483. fi
  4484. ;;
  4485. osf3* | osf4* | osf5*)
  4486. lt_cv_deplibs_check_method=pass_all
  4487. ;;
  4488. rdos*)
  4489. lt_cv_deplibs_check_method=pass_all
  4490. ;;
  4491. solaris*)
  4492. lt_cv_deplibs_check_method=pass_all
  4493. ;;
  4494. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  4495. lt_cv_deplibs_check_method=pass_all
  4496. ;;
  4497. sysv4 | sysv4.3*)
  4498. case $host_vendor in
  4499. motorola)
  4500. 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]'
  4501. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  4502. ;;
  4503. ncr)
  4504. lt_cv_deplibs_check_method=pass_all
  4505. ;;
  4506. sequent)
  4507. lt_cv_file_magic_cmd='/bin/file'
  4508. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
  4509. ;;
  4510. sni)
  4511. lt_cv_file_magic_cmd='/bin/file'
  4512. lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
  4513. lt_cv_file_magic_test_file=/lib/libc.so
  4514. ;;
  4515. siemens)
  4516. lt_cv_deplibs_check_method=pass_all
  4517. ;;
  4518. pc)
  4519. lt_cv_deplibs_check_method=pass_all
  4520. ;;
  4521. esac
  4522. ;;
  4523. tpf*)
  4524. lt_cv_deplibs_check_method=pass_all
  4525. ;;
  4526. esac
  4527. fi
  4528. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
  4529. $as_echo "$lt_cv_deplibs_check_method" >&6; }
  4530. file_magic_cmd=$lt_cv_file_magic_cmd
  4531. deplibs_check_method=$lt_cv_deplibs_check_method
  4532. test -z "$deplibs_check_method" && deplibs_check_method=unknown
  4533. if test -n "$ac_tool_prefix"; then
  4534. # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
  4535. set dummy ${ac_tool_prefix}ar; ac_word=$2
  4536. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4537. $as_echo_n "checking for $ac_word... " >&6; }
  4538. if test "${ac_cv_prog_AR+set}" = set; then :
  4539. $as_echo_n "(cached) " >&6
  4540. else
  4541. if test -n "$AR"; then
  4542. ac_cv_prog_AR="$AR" # Let the user override the test.
  4543. else
  4544. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4545. for as_dir in $PATH
  4546. do
  4547. IFS=$as_save_IFS
  4548. test -z "$as_dir" && as_dir=.
  4549. for ac_exec_ext in '' $ac_executable_extensions; do
  4550. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4551. ac_cv_prog_AR="${ac_tool_prefix}ar"
  4552. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4553. break 2
  4554. fi
  4555. done
  4556. done
  4557. IFS=$as_save_IFS
  4558. fi
  4559. fi
  4560. AR=$ac_cv_prog_AR
  4561. if test -n "$AR"; then
  4562. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  4563. $as_echo "$AR" >&6; }
  4564. else
  4565. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4566. $as_echo "no" >&6; }
  4567. fi
  4568. fi
  4569. if test -z "$ac_cv_prog_AR"; then
  4570. ac_ct_AR=$AR
  4571. # Extract the first word of "ar", so it can be a program name with args.
  4572. set dummy ar; ac_word=$2
  4573. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4574. $as_echo_n "checking for $ac_word... " >&6; }
  4575. if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
  4576. $as_echo_n "(cached) " >&6
  4577. else
  4578. if test -n "$ac_ct_AR"; then
  4579. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  4580. else
  4581. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4582. for as_dir in $PATH
  4583. do
  4584. IFS=$as_save_IFS
  4585. test -z "$as_dir" && as_dir=.
  4586. for ac_exec_ext in '' $ac_executable_extensions; do
  4587. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4588. ac_cv_prog_ac_ct_AR="ar"
  4589. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4590. break 2
  4591. fi
  4592. done
  4593. done
  4594. IFS=$as_save_IFS
  4595. fi
  4596. fi
  4597. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  4598. if test -n "$ac_ct_AR"; then
  4599. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
  4600. $as_echo "$ac_ct_AR" >&6; }
  4601. else
  4602. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4603. $as_echo "no" >&6; }
  4604. fi
  4605. if test "x$ac_ct_AR" = x; then
  4606. AR="false"
  4607. else
  4608. case $cross_compiling:$ac_tool_warned in
  4609. yes:)
  4610. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4611. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4612. ac_tool_warned=yes ;;
  4613. esac
  4614. AR=$ac_ct_AR
  4615. fi
  4616. else
  4617. AR="$ac_cv_prog_AR"
  4618. fi
  4619. test -z "$AR" && AR=ar
  4620. test -z "$AR_FLAGS" && AR_FLAGS=cru
  4621. if test -n "$ac_tool_prefix"; then
  4622. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  4623. set dummy ${ac_tool_prefix}strip; ac_word=$2
  4624. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4625. $as_echo_n "checking for $ac_word... " >&6; }
  4626. if test "${ac_cv_prog_STRIP+set}" = set; then :
  4627. $as_echo_n "(cached) " >&6
  4628. else
  4629. if test -n "$STRIP"; then
  4630. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  4631. else
  4632. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4633. for as_dir in $PATH
  4634. do
  4635. IFS=$as_save_IFS
  4636. test -z "$as_dir" && as_dir=.
  4637. for ac_exec_ext in '' $ac_executable_extensions; do
  4638. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4639. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  4640. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4641. break 2
  4642. fi
  4643. done
  4644. done
  4645. IFS=$as_save_IFS
  4646. fi
  4647. fi
  4648. STRIP=$ac_cv_prog_STRIP
  4649. if test -n "$STRIP"; then
  4650. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  4651. $as_echo "$STRIP" >&6; }
  4652. else
  4653. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4654. $as_echo "no" >&6; }
  4655. fi
  4656. fi
  4657. if test -z "$ac_cv_prog_STRIP"; then
  4658. ac_ct_STRIP=$STRIP
  4659. # Extract the first word of "strip", so it can be a program name with args.
  4660. set dummy strip; ac_word=$2
  4661. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4662. $as_echo_n "checking for $ac_word... " >&6; }
  4663. if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
  4664. $as_echo_n "(cached) " >&6
  4665. else
  4666. if test -n "$ac_ct_STRIP"; then
  4667. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  4668. else
  4669. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4670. for as_dir in $PATH
  4671. do
  4672. IFS=$as_save_IFS
  4673. test -z "$as_dir" && as_dir=.
  4674. for ac_exec_ext in '' $ac_executable_extensions; do
  4675. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4676. ac_cv_prog_ac_ct_STRIP="strip"
  4677. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4678. break 2
  4679. fi
  4680. done
  4681. done
  4682. IFS=$as_save_IFS
  4683. fi
  4684. fi
  4685. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  4686. if test -n "$ac_ct_STRIP"; then
  4687. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  4688. $as_echo "$ac_ct_STRIP" >&6; }
  4689. else
  4690. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4691. $as_echo "no" >&6; }
  4692. fi
  4693. if test "x$ac_ct_STRIP" = x; then
  4694. STRIP=":"
  4695. else
  4696. case $cross_compiling:$ac_tool_warned in
  4697. yes:)
  4698. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4699. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4700. ac_tool_warned=yes ;;
  4701. esac
  4702. STRIP=$ac_ct_STRIP
  4703. fi
  4704. else
  4705. STRIP="$ac_cv_prog_STRIP"
  4706. fi
  4707. test -z "$STRIP" && STRIP=:
  4708. if test -n "$ac_tool_prefix"; then
  4709. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  4710. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  4711. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4712. $as_echo_n "checking for $ac_word... " >&6; }
  4713. if test "${ac_cv_prog_RANLIB+set}" = set; then :
  4714. $as_echo_n "(cached) " >&6
  4715. else
  4716. if test -n "$RANLIB"; then
  4717. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  4718. else
  4719. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4720. for as_dir in $PATH
  4721. do
  4722. IFS=$as_save_IFS
  4723. test -z "$as_dir" && as_dir=.
  4724. for ac_exec_ext in '' $ac_executable_extensions; do
  4725. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4726. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  4727. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4728. break 2
  4729. fi
  4730. done
  4731. done
  4732. IFS=$as_save_IFS
  4733. fi
  4734. fi
  4735. RANLIB=$ac_cv_prog_RANLIB
  4736. if test -n "$RANLIB"; then
  4737. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  4738. $as_echo "$RANLIB" >&6; }
  4739. else
  4740. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4741. $as_echo "no" >&6; }
  4742. fi
  4743. fi
  4744. if test -z "$ac_cv_prog_RANLIB"; then
  4745. ac_ct_RANLIB=$RANLIB
  4746. # Extract the first word of "ranlib", so it can be a program name with args.
  4747. set dummy ranlib; ac_word=$2
  4748. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4749. $as_echo_n "checking for $ac_word... " >&6; }
  4750. if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
  4751. $as_echo_n "(cached) " >&6
  4752. else
  4753. if test -n "$ac_ct_RANLIB"; then
  4754. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  4755. else
  4756. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4757. for as_dir in $PATH
  4758. do
  4759. IFS=$as_save_IFS
  4760. test -z "$as_dir" && as_dir=.
  4761. for ac_exec_ext in '' $ac_executable_extensions; do
  4762. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4763. ac_cv_prog_ac_ct_RANLIB="ranlib"
  4764. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4765. break 2
  4766. fi
  4767. done
  4768. done
  4769. IFS=$as_save_IFS
  4770. fi
  4771. fi
  4772. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  4773. if test -n "$ac_ct_RANLIB"; then
  4774. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  4775. $as_echo "$ac_ct_RANLIB" >&6; }
  4776. else
  4777. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4778. $as_echo "no" >&6; }
  4779. fi
  4780. if test "x$ac_ct_RANLIB" = x; then
  4781. RANLIB=":"
  4782. else
  4783. case $cross_compiling:$ac_tool_warned in
  4784. yes:)
  4785. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4786. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4787. ac_tool_warned=yes ;;
  4788. esac
  4789. RANLIB=$ac_ct_RANLIB
  4790. fi
  4791. else
  4792. RANLIB="$ac_cv_prog_RANLIB"
  4793. fi
  4794. test -z "$RANLIB" && RANLIB=:
  4795. # Determine commands to create old-style static archives.
  4796. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
  4797. old_postinstall_cmds='chmod 644 $oldlib'
  4798. old_postuninstall_cmds=
  4799. if test -n "$RANLIB"; then
  4800. case $host_os in
  4801. openbsd*)
  4802. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
  4803. ;;
  4804. *)
  4805. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
  4806. ;;
  4807. esac
  4808. old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
  4809. fi
  4810. # If no C compiler was specified, use CC.
  4811. LTCC=${LTCC-"$CC"}
  4812. # If no C compiler flags were specified, use CFLAGS.
  4813. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  4814. # Allow CC to be a program name with arguments.
  4815. compiler=$CC
  4816. # Check for command to grab the raw symbol name followed by C symbol from nm.
  4817. { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
  4818. $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
  4819. if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
  4820. $as_echo_n "(cached) " >&6
  4821. else
  4822. # These are sane defaults that work on at least a few old systems.
  4823. # [They come from Ultrix. What could be older than Ultrix?!! ;)]
  4824. # Character class describing NM global symbol codes.
  4825. symcode='[BCDEGRST]'
  4826. # Regexp to match symbols that can be accessed directly from C.
  4827. sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
  4828. # Define system-specific variables.
  4829. case $host_os in
  4830. aix*)
  4831. symcode='[BCDT]'
  4832. ;;
  4833. cygwin* | mingw* | pw32* | cegcc*)
  4834. symcode='[ABCDGISTW]'
  4835. ;;
  4836. hpux*)
  4837. if test "$host_cpu" = ia64; then
  4838. symcode='[ABCDEGRST]'
  4839. fi
  4840. ;;
  4841. irix* | nonstopux*)
  4842. symcode='[BCDEGRST]'
  4843. ;;
  4844. osf*)
  4845. symcode='[BCDEGQRST]'
  4846. ;;
  4847. solaris*)
  4848. symcode='[BDRT]'
  4849. ;;
  4850. sco3.2v5*)
  4851. symcode='[DT]'
  4852. ;;
  4853. sysv4.2uw2*)
  4854. symcode='[DT]'
  4855. ;;
  4856. sysv5* | sco5v6* | unixware* | OpenUNIX*)
  4857. symcode='[ABDT]'
  4858. ;;
  4859. sysv4)
  4860. symcode='[DFNSTU]'
  4861. ;;
  4862. esac
  4863. # If we're using GNU nm, then use its standard symbol codes.
  4864. case `$NM -V 2>&1` in
  4865. *GNU* | *'with BFD'*)
  4866. symcode='[ABCDGIRSTW]' ;;
  4867. esac
  4868. # Transform an extracted symbol line into a proper C declaration.
  4869. # Some systems (esp. on ia64) link data and code symbols differently,
  4870. # so use this general approach.
  4871. lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  4872. # Transform an extracted symbol line into symbol name and symbol address
  4873. lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
  4874. 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'"
  4875. # Handle CRLF in mingw tool chain
  4876. opt_cr=
  4877. case $build_os in
  4878. mingw*)
  4879. opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  4880. ;;
  4881. esac
  4882. # Try without a prefix underscore, then with it.
  4883. for ac_symprfx in "" "_"; do
  4884. # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  4885. symxfrm="\\1 $ac_symprfx\\2 \\2"
  4886. # Write the raw and C identifiers.
  4887. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  4888. # Fake it for dumpbin and say T for any non-static function
  4889. # and D for any global variable.
  4890. # Also find C++ and __fastcall symbols from MSVC++,
  4891. # which start with @ or ?.
  4892. lt_cv_sys_global_symbol_pipe="$AWK '"\
  4893. " {last_section=section; section=\$ 3};"\
  4894. " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
  4895. " \$ 0!~/External *\|/{next};"\
  4896. " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
  4897. " {if(hide[section]) next};"\
  4898. " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
  4899. " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
  4900. " s[1]~/^[@?]/{print s[1], s[1]; next};"\
  4901. " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
  4902. " ' prfx=^$ac_symprfx"
  4903. else
  4904. lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  4905. fi
  4906. # Check to see that the pipe works correctly.
  4907. pipe_works=no
  4908. rm -f conftest*
  4909. cat > conftest.$ac_ext <<_LT_EOF
  4910. #ifdef __cplusplus
  4911. extern "C" {
  4912. #endif
  4913. char nm_test_var;
  4914. void nm_test_func(void);
  4915. void nm_test_func(void){}
  4916. #ifdef __cplusplus
  4917. }
  4918. #endif
  4919. int main(){nm_test_var='a';nm_test_func();return(0);}
  4920. _LT_EOF
  4921. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  4922. (eval $ac_compile) 2>&5
  4923. ac_status=$?
  4924. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4925. test $ac_status = 0; }; then
  4926. # Now try to grab the symbols.
  4927. nlist=conftest.nm
  4928. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
  4929. (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
  4930. ac_status=$?
  4931. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4932. test $ac_status = 0; } && test -s "$nlist"; then
  4933. # Try sorting and uniquifying the output.
  4934. if sort "$nlist" | uniq > "$nlist"T; then
  4935. mv -f "$nlist"T "$nlist"
  4936. else
  4937. rm -f "$nlist"T
  4938. fi
  4939. # Make sure that we snagged all the symbols we need.
  4940. if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
  4941. if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
  4942. cat <<_LT_EOF > conftest.$ac_ext
  4943. #ifdef __cplusplus
  4944. extern "C" {
  4945. #endif
  4946. _LT_EOF
  4947. # Now generate the symbol file.
  4948. eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
  4949. cat <<_LT_EOF >> conftest.$ac_ext
  4950. /* The mapping between symbol names and symbols. */
  4951. const struct {
  4952. const char *name;
  4953. void *address;
  4954. }
  4955. lt__PROGRAM__LTX_preloaded_symbols[] =
  4956. {
  4957. { "@PROGRAM@", (void *) 0 },
  4958. _LT_EOF
  4959. $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
  4960. cat <<\_LT_EOF >> conftest.$ac_ext
  4961. {0, (void *) 0}
  4962. };
  4963. /* This works around a problem in FreeBSD linker */
  4964. #ifdef FREEBSD_WORKAROUND
  4965. static const void *lt_preloaded_setup() {
  4966. return lt__PROGRAM__LTX_preloaded_symbols;
  4967. }
  4968. #endif
  4969. #ifdef __cplusplus
  4970. }
  4971. #endif
  4972. _LT_EOF
  4973. # Now try linking the two files.
  4974. mv conftest.$ac_objext conftstm.$ac_objext
  4975. lt_save_LIBS="$LIBS"
  4976. lt_save_CFLAGS="$CFLAGS"
  4977. LIBS="conftstm.$ac_objext"
  4978. CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
  4979. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  4980. (eval $ac_link) 2>&5
  4981. ac_status=$?
  4982. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4983. test $ac_status = 0; } && test -s conftest${ac_exeext}; then
  4984. pipe_works=yes
  4985. fi
  4986. LIBS="$lt_save_LIBS"
  4987. CFLAGS="$lt_save_CFLAGS"
  4988. else
  4989. echo "cannot find nm_test_func in $nlist" >&5
  4990. fi
  4991. else
  4992. echo "cannot find nm_test_var in $nlist" >&5
  4993. fi
  4994. else
  4995. echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
  4996. fi
  4997. else
  4998. echo "$progname: failed program was:" >&5
  4999. cat conftest.$ac_ext >&5
  5000. fi
  5001. rm -rf conftest* conftst*
  5002. # Do not use the global_symbol_pipe unless it works.
  5003. if test "$pipe_works" = yes; then
  5004. break
  5005. else
  5006. lt_cv_sys_global_symbol_pipe=
  5007. fi
  5008. done
  5009. fi
  5010. if test -z "$lt_cv_sys_global_symbol_pipe"; then
  5011. lt_cv_sys_global_symbol_to_cdecl=
  5012. fi
  5013. if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  5014. { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
  5015. $as_echo "failed" >&6; }
  5016. else
  5017. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
  5018. $as_echo "ok" >&6; }
  5019. fi
  5020. @%:@ Check whether --enable-libtool-lock was given.
  5021. if test "${enable_libtool_lock+set}" = set; then :
  5022. enableval=$enable_libtool_lock;
  5023. fi
  5024. test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  5025. # Some flags need to be propagated to the compiler or linker for good
  5026. # libtool support.
  5027. case $host in
  5028. ia64-*-hpux*)
  5029. # Find out which ABI we are using.
  5030. echo 'int i;' > conftest.$ac_ext
  5031. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5032. (eval $ac_compile) 2>&5
  5033. ac_status=$?
  5034. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5035. test $ac_status = 0; }; then
  5036. case `/usr/bin/file conftest.$ac_objext` in
  5037. *ELF-32*)
  5038. HPUX_IA64_MODE="32"
  5039. ;;
  5040. *ELF-64*)
  5041. HPUX_IA64_MODE="64"
  5042. ;;
  5043. esac
  5044. fi
  5045. rm -rf conftest*
  5046. ;;
  5047. *-*-irix6*)
  5048. # Find out which ABI we are using.
  5049. echo '#line __oline__ "configure"' > conftest.$ac_ext
  5050. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5051. (eval $ac_compile) 2>&5
  5052. ac_status=$?
  5053. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5054. test $ac_status = 0; }; then
  5055. if test "$lt_cv_prog_gnu_ld" = yes; then
  5056. case `/usr/bin/file conftest.$ac_objext` in
  5057. *32-bit*)
  5058. LD="${LD-ld} -melf32bsmip"
  5059. ;;
  5060. *N32*)
  5061. LD="${LD-ld} -melf32bmipn32"
  5062. ;;
  5063. *64-bit*)
  5064. LD="${LD-ld} -melf64bmip"
  5065. ;;
  5066. esac
  5067. else
  5068. case `/usr/bin/file conftest.$ac_objext` in
  5069. *32-bit*)
  5070. LD="${LD-ld} -32"
  5071. ;;
  5072. *N32*)
  5073. LD="${LD-ld} -n32"
  5074. ;;
  5075. *64-bit*)
  5076. LD="${LD-ld} -64"
  5077. ;;
  5078. esac
  5079. fi
  5080. fi
  5081. rm -rf conftest*
  5082. ;;
  5083. x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
  5084. s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
  5085. # Find out which ABI we are using.
  5086. echo 'int i;' > conftest.$ac_ext
  5087. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5088. (eval $ac_compile) 2>&5
  5089. ac_status=$?
  5090. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5091. test $ac_status = 0; }; then
  5092. case `/usr/bin/file conftest.o` in
  5093. *32-bit*)
  5094. case $host in
  5095. x86_64-*kfreebsd*-gnu)
  5096. LD="${LD-ld} -m elf_i386_fbsd"
  5097. ;;
  5098. x86_64-*linux*)
  5099. LD="${LD-ld} -m elf_i386"
  5100. ;;
  5101. ppc64-*linux*|powerpc64-*linux*)
  5102. LD="${LD-ld} -m elf32ppclinux"
  5103. ;;
  5104. s390x-*linux*)
  5105. LD="${LD-ld} -m elf_s390"
  5106. ;;
  5107. sparc64-*linux*)
  5108. LD="${LD-ld} -m elf32_sparc"
  5109. ;;
  5110. esac
  5111. ;;
  5112. *64-bit*)
  5113. case $host in
  5114. x86_64-*kfreebsd*-gnu)
  5115. LD="${LD-ld} -m elf_x86_64_fbsd"
  5116. ;;
  5117. x86_64-*linux*)
  5118. LD="${LD-ld} -m elf_x86_64"
  5119. ;;
  5120. ppc*-*linux*|powerpc*-*linux*)
  5121. LD="${LD-ld} -m elf64ppc"
  5122. ;;
  5123. s390*-*linux*|s390*-*tpf*)
  5124. LD="${LD-ld} -m elf64_s390"
  5125. ;;
  5126. sparc*-*linux*)
  5127. LD="${LD-ld} -m elf64_sparc"
  5128. ;;
  5129. esac
  5130. ;;
  5131. esac
  5132. fi
  5133. rm -rf conftest*
  5134. ;;
  5135. *-*-sco3.2v5*)
  5136. # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  5137. SAVE_CFLAGS="$CFLAGS"
  5138. CFLAGS="$CFLAGS -belf"
  5139. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
  5140. $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
  5141. if test "${lt_cv_cc_needs_belf+set}" = set; then :
  5142. $as_echo_n "(cached) " >&6
  5143. else
  5144. ac_ext=c
  5145. ac_cpp='$CPP $CPPFLAGS'
  5146. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5147. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5148. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5149. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5150. /* end confdefs.h. */
  5151. int
  5152. main ()
  5153. {
  5154. ;
  5155. return 0;
  5156. }
  5157. _ACEOF
  5158. if ac_fn_c_try_link "$LINENO"; then :
  5159. lt_cv_cc_needs_belf=yes
  5160. else
  5161. lt_cv_cc_needs_belf=no
  5162. fi
  5163. rm -f core conftest.err conftest.$ac_objext \
  5164. conftest$ac_exeext conftest.$ac_ext
  5165. ac_ext=c
  5166. ac_cpp='$CPP $CPPFLAGS'
  5167. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5168. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5169. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5170. fi
  5171. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
  5172. $as_echo "$lt_cv_cc_needs_belf" >&6; }
  5173. if test x"$lt_cv_cc_needs_belf" != x"yes"; then
  5174. # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  5175. CFLAGS="$SAVE_CFLAGS"
  5176. fi
  5177. ;;
  5178. sparc*-*solaris*)
  5179. # Find out which ABI we are using.
  5180. echo 'int i;' > conftest.$ac_ext
  5181. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5182. (eval $ac_compile) 2>&5
  5183. ac_status=$?
  5184. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5185. test $ac_status = 0; }; then
  5186. case `/usr/bin/file conftest.o` in
  5187. *64-bit*)
  5188. case $lt_cv_prog_gnu_ld in
  5189. yes*) LD="${LD-ld} -m elf64_sparc" ;;
  5190. *)
  5191. if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
  5192. LD="${LD-ld} -64"
  5193. fi
  5194. ;;
  5195. esac
  5196. ;;
  5197. esac
  5198. fi
  5199. rm -rf conftest*
  5200. ;;
  5201. esac
  5202. need_locks="$enable_libtool_lock"
  5203. case $host_os in
  5204. rhapsody* | darwin*)
  5205. if test -n "$ac_tool_prefix"; then
  5206. # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
  5207. set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
  5208. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5209. $as_echo_n "checking for $ac_word... " >&6; }
  5210. if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
  5211. $as_echo_n "(cached) " >&6
  5212. else
  5213. if test -n "$DSYMUTIL"; then
  5214. ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
  5215. else
  5216. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5217. for as_dir in $PATH
  5218. do
  5219. IFS=$as_save_IFS
  5220. test -z "$as_dir" && as_dir=.
  5221. for ac_exec_ext in '' $ac_executable_extensions; do
  5222. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5223. ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
  5224. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5225. break 2
  5226. fi
  5227. done
  5228. done
  5229. IFS=$as_save_IFS
  5230. fi
  5231. fi
  5232. DSYMUTIL=$ac_cv_prog_DSYMUTIL
  5233. if test -n "$DSYMUTIL"; then
  5234. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
  5235. $as_echo "$DSYMUTIL" >&6; }
  5236. else
  5237. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5238. $as_echo "no" >&6; }
  5239. fi
  5240. fi
  5241. if test -z "$ac_cv_prog_DSYMUTIL"; then
  5242. ac_ct_DSYMUTIL=$DSYMUTIL
  5243. # Extract the first word of "dsymutil", so it can be a program name with args.
  5244. set dummy dsymutil; ac_word=$2
  5245. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5246. $as_echo_n "checking for $ac_word... " >&6; }
  5247. if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
  5248. $as_echo_n "(cached) " >&6
  5249. else
  5250. if test -n "$ac_ct_DSYMUTIL"; then
  5251. ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
  5252. else
  5253. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5254. for as_dir in $PATH
  5255. do
  5256. IFS=$as_save_IFS
  5257. test -z "$as_dir" && as_dir=.
  5258. for ac_exec_ext in '' $ac_executable_extensions; do
  5259. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5260. ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
  5261. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5262. break 2
  5263. fi
  5264. done
  5265. done
  5266. IFS=$as_save_IFS
  5267. fi
  5268. fi
  5269. ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
  5270. if test -n "$ac_ct_DSYMUTIL"; then
  5271. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
  5272. $as_echo "$ac_ct_DSYMUTIL" >&6; }
  5273. else
  5274. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5275. $as_echo "no" >&6; }
  5276. fi
  5277. if test "x$ac_ct_DSYMUTIL" = x; then
  5278. DSYMUTIL=":"
  5279. else
  5280. case $cross_compiling:$ac_tool_warned in
  5281. yes:)
  5282. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5283. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5284. ac_tool_warned=yes ;;
  5285. esac
  5286. DSYMUTIL=$ac_ct_DSYMUTIL
  5287. fi
  5288. else
  5289. DSYMUTIL="$ac_cv_prog_DSYMUTIL"
  5290. fi
  5291. if test -n "$ac_tool_prefix"; then
  5292. # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
  5293. set dummy ${ac_tool_prefix}nmedit; ac_word=$2
  5294. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5295. $as_echo_n "checking for $ac_word... " >&6; }
  5296. if test "${ac_cv_prog_NMEDIT+set}" = set; then :
  5297. $as_echo_n "(cached) " >&6
  5298. else
  5299. if test -n "$NMEDIT"; then
  5300. ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
  5301. else
  5302. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5303. for as_dir in $PATH
  5304. do
  5305. IFS=$as_save_IFS
  5306. test -z "$as_dir" && as_dir=.
  5307. for ac_exec_ext in '' $ac_executable_extensions; do
  5308. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5309. ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
  5310. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5311. break 2
  5312. fi
  5313. done
  5314. done
  5315. IFS=$as_save_IFS
  5316. fi
  5317. fi
  5318. NMEDIT=$ac_cv_prog_NMEDIT
  5319. if test -n "$NMEDIT"; then
  5320. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
  5321. $as_echo "$NMEDIT" >&6; }
  5322. else
  5323. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5324. $as_echo "no" >&6; }
  5325. fi
  5326. fi
  5327. if test -z "$ac_cv_prog_NMEDIT"; then
  5328. ac_ct_NMEDIT=$NMEDIT
  5329. # Extract the first word of "nmedit", so it can be a program name with args.
  5330. set dummy nmedit; ac_word=$2
  5331. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5332. $as_echo_n "checking for $ac_word... " >&6; }
  5333. if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
  5334. $as_echo_n "(cached) " >&6
  5335. else
  5336. if test -n "$ac_ct_NMEDIT"; then
  5337. ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
  5338. else
  5339. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5340. for as_dir in $PATH
  5341. do
  5342. IFS=$as_save_IFS
  5343. test -z "$as_dir" && as_dir=.
  5344. for ac_exec_ext in '' $ac_executable_extensions; do
  5345. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5346. ac_cv_prog_ac_ct_NMEDIT="nmedit"
  5347. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5348. break 2
  5349. fi
  5350. done
  5351. done
  5352. IFS=$as_save_IFS
  5353. fi
  5354. fi
  5355. ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
  5356. if test -n "$ac_ct_NMEDIT"; then
  5357. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
  5358. $as_echo "$ac_ct_NMEDIT" >&6; }
  5359. else
  5360. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5361. $as_echo "no" >&6; }
  5362. fi
  5363. if test "x$ac_ct_NMEDIT" = x; then
  5364. NMEDIT=":"
  5365. else
  5366. case $cross_compiling:$ac_tool_warned in
  5367. yes:)
  5368. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5369. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5370. ac_tool_warned=yes ;;
  5371. esac
  5372. NMEDIT=$ac_ct_NMEDIT
  5373. fi
  5374. else
  5375. NMEDIT="$ac_cv_prog_NMEDIT"
  5376. fi
  5377. if test -n "$ac_tool_prefix"; then
  5378. # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
  5379. set dummy ${ac_tool_prefix}lipo; ac_word=$2
  5380. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5381. $as_echo_n "checking for $ac_word... " >&6; }
  5382. if test "${ac_cv_prog_LIPO+set}" = set; then :
  5383. $as_echo_n "(cached) " >&6
  5384. else
  5385. if test -n "$LIPO"; then
  5386. ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
  5387. else
  5388. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5389. for as_dir in $PATH
  5390. do
  5391. IFS=$as_save_IFS
  5392. test -z "$as_dir" && as_dir=.
  5393. for ac_exec_ext in '' $ac_executable_extensions; do
  5394. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5395. ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
  5396. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5397. break 2
  5398. fi
  5399. done
  5400. done
  5401. IFS=$as_save_IFS
  5402. fi
  5403. fi
  5404. LIPO=$ac_cv_prog_LIPO
  5405. if test -n "$LIPO"; then
  5406. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
  5407. $as_echo "$LIPO" >&6; }
  5408. else
  5409. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5410. $as_echo "no" >&6; }
  5411. fi
  5412. fi
  5413. if test -z "$ac_cv_prog_LIPO"; then
  5414. ac_ct_LIPO=$LIPO
  5415. # Extract the first word of "lipo", so it can be a program name with args.
  5416. set dummy lipo; ac_word=$2
  5417. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5418. $as_echo_n "checking for $ac_word... " >&6; }
  5419. if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
  5420. $as_echo_n "(cached) " >&6
  5421. else
  5422. if test -n "$ac_ct_LIPO"; then
  5423. ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
  5424. else
  5425. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5426. for as_dir in $PATH
  5427. do
  5428. IFS=$as_save_IFS
  5429. test -z "$as_dir" && as_dir=.
  5430. for ac_exec_ext in '' $ac_executable_extensions; do
  5431. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5432. ac_cv_prog_ac_ct_LIPO="lipo"
  5433. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5434. break 2
  5435. fi
  5436. done
  5437. done
  5438. IFS=$as_save_IFS
  5439. fi
  5440. fi
  5441. ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
  5442. if test -n "$ac_ct_LIPO"; then
  5443. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
  5444. $as_echo "$ac_ct_LIPO" >&6; }
  5445. else
  5446. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5447. $as_echo "no" >&6; }
  5448. fi
  5449. if test "x$ac_ct_LIPO" = x; then
  5450. LIPO=":"
  5451. else
  5452. case $cross_compiling:$ac_tool_warned in
  5453. yes:)
  5454. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5455. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5456. ac_tool_warned=yes ;;
  5457. esac
  5458. LIPO=$ac_ct_LIPO
  5459. fi
  5460. else
  5461. LIPO="$ac_cv_prog_LIPO"
  5462. fi
  5463. if test -n "$ac_tool_prefix"; then
  5464. # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
  5465. set dummy ${ac_tool_prefix}otool; ac_word=$2
  5466. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5467. $as_echo_n "checking for $ac_word... " >&6; }
  5468. if test "${ac_cv_prog_OTOOL+set}" = set; then :
  5469. $as_echo_n "(cached) " >&6
  5470. else
  5471. if test -n "$OTOOL"; then
  5472. ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
  5473. else
  5474. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5475. for as_dir in $PATH
  5476. do
  5477. IFS=$as_save_IFS
  5478. test -z "$as_dir" && as_dir=.
  5479. for ac_exec_ext in '' $ac_executable_extensions; do
  5480. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5481. ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
  5482. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5483. break 2
  5484. fi
  5485. done
  5486. done
  5487. IFS=$as_save_IFS
  5488. fi
  5489. fi
  5490. OTOOL=$ac_cv_prog_OTOOL
  5491. if test -n "$OTOOL"; then
  5492. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
  5493. $as_echo "$OTOOL" >&6; }
  5494. else
  5495. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5496. $as_echo "no" >&6; }
  5497. fi
  5498. fi
  5499. if test -z "$ac_cv_prog_OTOOL"; then
  5500. ac_ct_OTOOL=$OTOOL
  5501. # Extract the first word of "otool", so it can be a program name with args.
  5502. set dummy otool; ac_word=$2
  5503. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5504. $as_echo_n "checking for $ac_word... " >&6; }
  5505. if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
  5506. $as_echo_n "(cached) " >&6
  5507. else
  5508. if test -n "$ac_ct_OTOOL"; then
  5509. ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
  5510. else
  5511. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5512. for as_dir in $PATH
  5513. do
  5514. IFS=$as_save_IFS
  5515. test -z "$as_dir" && as_dir=.
  5516. for ac_exec_ext in '' $ac_executable_extensions; do
  5517. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5518. ac_cv_prog_ac_ct_OTOOL="otool"
  5519. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5520. break 2
  5521. fi
  5522. done
  5523. done
  5524. IFS=$as_save_IFS
  5525. fi
  5526. fi
  5527. ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
  5528. if test -n "$ac_ct_OTOOL"; then
  5529. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
  5530. $as_echo "$ac_ct_OTOOL" >&6; }
  5531. else
  5532. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5533. $as_echo "no" >&6; }
  5534. fi
  5535. if test "x$ac_ct_OTOOL" = x; then
  5536. OTOOL=":"
  5537. else
  5538. case $cross_compiling:$ac_tool_warned in
  5539. yes:)
  5540. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5541. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5542. ac_tool_warned=yes ;;
  5543. esac
  5544. OTOOL=$ac_ct_OTOOL
  5545. fi
  5546. else
  5547. OTOOL="$ac_cv_prog_OTOOL"
  5548. fi
  5549. if test -n "$ac_tool_prefix"; then
  5550. # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
  5551. set dummy ${ac_tool_prefix}otool64; ac_word=$2
  5552. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5553. $as_echo_n "checking for $ac_word... " >&6; }
  5554. if test "${ac_cv_prog_OTOOL64+set}" = set; then :
  5555. $as_echo_n "(cached) " >&6
  5556. else
  5557. if test -n "$OTOOL64"; then
  5558. ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
  5559. else
  5560. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5561. for as_dir in $PATH
  5562. do
  5563. IFS=$as_save_IFS
  5564. test -z "$as_dir" && as_dir=.
  5565. for ac_exec_ext in '' $ac_executable_extensions; do
  5566. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5567. ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
  5568. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5569. break 2
  5570. fi
  5571. done
  5572. done
  5573. IFS=$as_save_IFS
  5574. fi
  5575. fi
  5576. OTOOL64=$ac_cv_prog_OTOOL64
  5577. if test -n "$OTOOL64"; then
  5578. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
  5579. $as_echo "$OTOOL64" >&6; }
  5580. else
  5581. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5582. $as_echo "no" >&6; }
  5583. fi
  5584. fi
  5585. if test -z "$ac_cv_prog_OTOOL64"; then
  5586. ac_ct_OTOOL64=$OTOOL64
  5587. # Extract the first word of "otool64", so it can be a program name with args.
  5588. set dummy otool64; ac_word=$2
  5589. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5590. $as_echo_n "checking for $ac_word... " >&6; }
  5591. if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
  5592. $as_echo_n "(cached) " >&6
  5593. else
  5594. if test -n "$ac_ct_OTOOL64"; then
  5595. ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
  5596. else
  5597. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5598. for as_dir in $PATH
  5599. do
  5600. IFS=$as_save_IFS
  5601. test -z "$as_dir" && as_dir=.
  5602. for ac_exec_ext in '' $ac_executable_extensions; do
  5603. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5604. ac_cv_prog_ac_ct_OTOOL64="otool64"
  5605. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5606. break 2
  5607. fi
  5608. done
  5609. done
  5610. IFS=$as_save_IFS
  5611. fi
  5612. fi
  5613. ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
  5614. if test -n "$ac_ct_OTOOL64"; then
  5615. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
  5616. $as_echo "$ac_ct_OTOOL64" >&6; }
  5617. else
  5618. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5619. $as_echo "no" >&6; }
  5620. fi
  5621. if test "x$ac_ct_OTOOL64" = x; then
  5622. OTOOL64=":"
  5623. else
  5624. case $cross_compiling:$ac_tool_warned in
  5625. yes:)
  5626. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5627. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5628. ac_tool_warned=yes ;;
  5629. esac
  5630. OTOOL64=$ac_ct_OTOOL64
  5631. fi
  5632. else
  5633. OTOOL64="$ac_cv_prog_OTOOL64"
  5634. fi
  5635. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
  5636. $as_echo_n "checking for -single_module linker flag... " >&6; }
  5637. if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
  5638. $as_echo_n "(cached) " >&6
  5639. else
  5640. lt_cv_apple_cc_single_mod=no
  5641. if test -z "${LT_MULTI_MODULE}"; then
  5642. # By default we will add the -single_module flag. You can override
  5643. # by either setting the environment variable LT_MULTI_MODULE
  5644. # non-empty at configure time, or by adding -multi_module to the
  5645. # link flags.
  5646. rm -rf libconftest.dylib*
  5647. echo "int foo(void){return 1;}" > conftest.c
  5648. echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  5649. -dynamiclib -Wl,-single_module conftest.c" >&5
  5650. $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  5651. -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
  5652. _lt_result=$?
  5653. if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
  5654. lt_cv_apple_cc_single_mod=yes
  5655. else
  5656. cat conftest.err >&5
  5657. fi
  5658. rm -rf libconftest.dylib*
  5659. rm -f conftest.*
  5660. fi
  5661. fi
  5662. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
  5663. $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
  5664. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
  5665. $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
  5666. if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
  5667. $as_echo_n "(cached) " >&6
  5668. else
  5669. lt_cv_ld_exported_symbols_list=no
  5670. save_LDFLAGS=$LDFLAGS
  5671. echo "_main" > conftest.sym
  5672. LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
  5673. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5674. /* end confdefs.h. */
  5675. int
  5676. main ()
  5677. {
  5678. ;
  5679. return 0;
  5680. }
  5681. _ACEOF
  5682. if ac_fn_c_try_link "$LINENO"; then :
  5683. lt_cv_ld_exported_symbols_list=yes
  5684. else
  5685. lt_cv_ld_exported_symbols_list=no
  5686. fi
  5687. rm -f core conftest.err conftest.$ac_objext \
  5688. conftest$ac_exeext conftest.$ac_ext
  5689. LDFLAGS="$save_LDFLAGS"
  5690. fi
  5691. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
  5692. $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
  5693. case $host_os in
  5694. rhapsody* | darwin1.[012])
  5695. _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
  5696. darwin1.*)
  5697. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  5698. darwin*) # darwin 5.x on
  5699. # if running on 10.5 or later, the deployment target defaults
  5700. # to the OS version, if on x86, and 10.4, the deployment
  5701. # target defaults to 10.4. Don't you love it?
  5702. case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
  5703. 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
  5704. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  5705. 10.[012]*)
  5706. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  5707. 10.*)
  5708. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  5709. esac
  5710. ;;
  5711. esac
  5712. if test "$lt_cv_apple_cc_single_mod" = "yes"; then
  5713. _lt_dar_single_mod='$single_module'
  5714. fi
  5715. if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
  5716. _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
  5717. else
  5718. _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
  5719. fi
  5720. if test "$DSYMUTIL" != ":"; then
  5721. _lt_dsymutil='~$DSYMUTIL $lib || :'
  5722. else
  5723. _lt_dsymutil=
  5724. fi
  5725. ;;
  5726. esac
  5727. ac_ext=c
  5728. ac_cpp='$CPP $CPPFLAGS'
  5729. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5730. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5731. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5732. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
  5733. $as_echo_n "checking how to run the C preprocessor... " >&6; }
  5734. # On Suns, sometimes $CPP names a directory.
  5735. if test -n "$CPP" && test -d "$CPP"; then
  5736. CPP=
  5737. fi
  5738. if test -z "$CPP"; then
  5739. if test "${ac_cv_prog_CPP+set}" = set; then :
  5740. $as_echo_n "(cached) " >&6
  5741. else
  5742. # Double quotes because CPP needs to be expanded
  5743. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  5744. do
  5745. ac_preproc_ok=false
  5746. for ac_c_preproc_warn_flag in '' yes
  5747. do
  5748. # Use a header file that comes with gcc, so configuring glibc
  5749. # with a fresh cross-compiler works.
  5750. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  5751. # <limits.h> exists even on freestanding compilers.
  5752. # On the NeXT, cc -E runs the code through the compiler's parser,
  5753. # not just through cpp. "Syntax error" is here to catch this case.
  5754. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5755. /* end confdefs.h. */
  5756. @%:@ifdef __STDC__
  5757. @%:@ include <limits.h>
  5758. @%:@else
  5759. @%:@ include <assert.h>
  5760. @%:@endif
  5761. Syntax error
  5762. _ACEOF
  5763. if ac_fn_c_try_cpp "$LINENO"; then :
  5764. else
  5765. # Broken: fails on valid input.
  5766. continue
  5767. fi
  5768. rm -f conftest.err conftest.i conftest.$ac_ext
  5769. # OK, works on sane cases. Now check whether nonexistent headers
  5770. # can be detected and how.
  5771. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5772. /* end confdefs.h. */
  5773. @%:@include <ac_nonexistent.h>
  5774. _ACEOF
  5775. if ac_fn_c_try_cpp "$LINENO"; then :
  5776. # Broken: success on invalid input.
  5777. continue
  5778. else
  5779. # Passes both tests.
  5780. ac_preproc_ok=:
  5781. break
  5782. fi
  5783. rm -f conftest.err conftest.i conftest.$ac_ext
  5784. done
  5785. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  5786. rm -f conftest.i conftest.err conftest.$ac_ext
  5787. if $ac_preproc_ok; then :
  5788. break
  5789. fi
  5790. done
  5791. ac_cv_prog_CPP=$CPP
  5792. fi
  5793. CPP=$ac_cv_prog_CPP
  5794. else
  5795. ac_cv_prog_CPP=$CPP
  5796. fi
  5797. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
  5798. $as_echo "$CPP" >&6; }
  5799. ac_preproc_ok=false
  5800. for ac_c_preproc_warn_flag in '' yes
  5801. do
  5802. # Use a header file that comes with gcc, so configuring glibc
  5803. # with a fresh cross-compiler works.
  5804. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  5805. # <limits.h> exists even on freestanding compilers.
  5806. # On the NeXT, cc -E runs the code through the compiler's parser,
  5807. # not just through cpp. "Syntax error" is here to catch this case.
  5808. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5809. /* end confdefs.h. */
  5810. @%:@ifdef __STDC__
  5811. @%:@ include <limits.h>
  5812. @%:@else
  5813. @%:@ include <assert.h>
  5814. @%:@endif
  5815. Syntax error
  5816. _ACEOF
  5817. if ac_fn_c_try_cpp "$LINENO"; then :
  5818. else
  5819. # Broken: fails on valid input.
  5820. continue
  5821. fi
  5822. rm -f conftest.err conftest.i conftest.$ac_ext
  5823. # OK, works on sane cases. Now check whether nonexistent headers
  5824. # can be detected and how.
  5825. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5826. /* end confdefs.h. */
  5827. @%:@include <ac_nonexistent.h>
  5828. _ACEOF
  5829. if ac_fn_c_try_cpp "$LINENO"; then :
  5830. # Broken: success on invalid input.
  5831. continue
  5832. else
  5833. # Passes both tests.
  5834. ac_preproc_ok=:
  5835. break
  5836. fi
  5837. rm -f conftest.err conftest.i conftest.$ac_ext
  5838. done
  5839. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  5840. rm -f conftest.i conftest.err conftest.$ac_ext
  5841. if $ac_preproc_ok; then :
  5842. else
  5843. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  5844. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  5845. as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
  5846. See \`config.log' for more details" "$LINENO" 5 ; }
  5847. fi
  5848. ac_ext=c
  5849. ac_cpp='$CPP $CPPFLAGS'
  5850. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5851. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5852. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5853. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  5854. $as_echo_n "checking for ANSI C header files... " >&6; }
  5855. if test "${ac_cv_header_stdc+set}" = set; then :
  5856. $as_echo_n "(cached) " >&6
  5857. else
  5858. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5859. /* end confdefs.h. */
  5860. #include <stdlib.h>
  5861. #include <stdarg.h>
  5862. #include <string.h>
  5863. #include <float.h>
  5864. int
  5865. main ()
  5866. {
  5867. ;
  5868. return 0;
  5869. }
  5870. _ACEOF
  5871. if ac_fn_c_try_compile "$LINENO"; then :
  5872. ac_cv_header_stdc=yes
  5873. else
  5874. ac_cv_header_stdc=no
  5875. fi
  5876. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5877. if test $ac_cv_header_stdc = yes; then
  5878. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  5879. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5880. /* end confdefs.h. */
  5881. #include <string.h>
  5882. _ACEOF
  5883. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  5884. $EGREP "memchr" >/dev/null 2>&1; then :
  5885. else
  5886. ac_cv_header_stdc=no
  5887. fi
  5888. rm -f conftest*
  5889. fi
  5890. if test $ac_cv_header_stdc = yes; then
  5891. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  5892. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5893. /* end confdefs.h. */
  5894. #include <stdlib.h>
  5895. _ACEOF
  5896. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  5897. $EGREP "free" >/dev/null 2>&1; then :
  5898. else
  5899. ac_cv_header_stdc=no
  5900. fi
  5901. rm -f conftest*
  5902. fi
  5903. if test $ac_cv_header_stdc = yes; then
  5904. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  5905. if test "$cross_compiling" = yes; then :
  5906. :
  5907. else
  5908. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5909. /* end confdefs.h. */
  5910. #include <ctype.h>
  5911. #include <stdlib.h>
  5912. #if ((' ' & 0x0FF) == 0x020)
  5913. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  5914. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  5915. #else
  5916. # define ISLOWER(c) \
  5917. (('a' <= (c) && (c) <= 'i') \
  5918. || ('j' <= (c) && (c) <= 'r') \
  5919. || ('s' <= (c) && (c) <= 'z'))
  5920. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  5921. #endif
  5922. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  5923. int
  5924. main ()
  5925. {
  5926. int i;
  5927. for (i = 0; i < 256; i++)
  5928. if (XOR (islower (i), ISLOWER (i))
  5929. || toupper (i) != TOUPPER (i))
  5930. return 2;
  5931. return 0;
  5932. }
  5933. _ACEOF
  5934. if ac_fn_c_try_run "$LINENO"; then :
  5935. else
  5936. ac_cv_header_stdc=no
  5937. fi
  5938. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  5939. conftest.$ac_objext conftest.beam conftest.$ac_ext
  5940. fi
  5941. fi
  5942. fi
  5943. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  5944. $as_echo "$ac_cv_header_stdc" >&6; }
  5945. if test $ac_cv_header_stdc = yes; then
  5946. $as_echo "@%:@define STDC_HEADERS 1" >>confdefs.h
  5947. fi
  5948. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  5949. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  5950. inttypes.h stdint.h unistd.h
  5951. do :
  5952. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  5953. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  5954. "
  5955. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  5956. cat >>confdefs.h <<_ACEOF
  5957. @%:@define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  5958. _ACEOF
  5959. fi
  5960. done
  5961. for ac_header in dlfcn.h
  5962. do :
  5963. ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
  5964. "
  5965. if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
  5966. cat >>confdefs.h <<_ACEOF
  5967. @%:@define HAVE_DLFCN_H 1
  5968. _ACEOF
  5969. fi
  5970. done
  5971. # Set options
  5972. enable_dlopen=no
  5973. enable_win32_dll=no
  5974. @%:@ Check whether --enable-shared was given.
  5975. if test "${enable_shared+set}" = set; then :
  5976. enableval=$enable_shared; p=${PACKAGE-default}
  5977. case $enableval in
  5978. yes) enable_shared=yes ;;
  5979. no) enable_shared=no ;;
  5980. *)
  5981. enable_shared=no
  5982. # Look at the argument we got. We use all the common list separators.
  5983. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  5984. for pkg in $enableval; do
  5985. IFS="$lt_save_ifs"
  5986. if test "X$pkg" = "X$p"; then
  5987. enable_shared=yes
  5988. fi
  5989. done
  5990. IFS="$lt_save_ifs"
  5991. ;;
  5992. esac
  5993. else
  5994. enable_shared=yes
  5995. fi
  5996. @%:@ Check whether --enable-static was given.
  5997. if test "${enable_static+set}" = set; then :
  5998. enableval=$enable_static; p=${PACKAGE-default}
  5999. case $enableval in
  6000. yes) enable_static=yes ;;
  6001. no) enable_static=no ;;
  6002. *)
  6003. enable_static=no
  6004. # Look at the argument we got. We use all the common list separators.
  6005. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  6006. for pkg in $enableval; do
  6007. IFS="$lt_save_ifs"
  6008. if test "X$pkg" = "X$p"; then
  6009. enable_static=yes
  6010. fi
  6011. done
  6012. IFS="$lt_save_ifs"
  6013. ;;
  6014. esac
  6015. else
  6016. enable_static=yes
  6017. fi
  6018. @%:@ Check whether --with-pic was given.
  6019. if test "${with_pic+set}" = set; then :
  6020. withval=$with_pic; pic_mode="$withval"
  6021. else
  6022. pic_mode=default
  6023. fi
  6024. test -z "$pic_mode" && pic_mode=default
  6025. @%:@ Check whether --enable-fast-install was given.
  6026. if test "${enable_fast_install+set}" = set; then :
  6027. enableval=$enable_fast_install; p=${PACKAGE-default}
  6028. case $enableval in
  6029. yes) enable_fast_install=yes ;;
  6030. no) enable_fast_install=no ;;
  6031. *)
  6032. enable_fast_install=no
  6033. # Look at the argument we got. We use all the common list separators.
  6034. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  6035. for pkg in $enableval; do
  6036. IFS="$lt_save_ifs"
  6037. if test "X$pkg" = "X$p"; then
  6038. enable_fast_install=yes
  6039. fi
  6040. done
  6041. IFS="$lt_save_ifs"
  6042. ;;
  6043. esac
  6044. else
  6045. enable_fast_install=yes
  6046. fi
  6047. # This can be used to rebuild libtool when needed
  6048. LIBTOOL_DEPS="$ltmain"
  6049. # Always use our own libtool.
  6050. LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  6051. test -z "$LN_S" && LN_S="ln -s"
  6052. if test -n "${ZSH_VERSION+set}" ; then
  6053. setopt NO_GLOB_SUBST
  6054. fi
  6055. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
  6056. $as_echo_n "checking for objdir... " >&6; }
  6057. if test "${lt_cv_objdir+set}" = set; then :
  6058. $as_echo_n "(cached) " >&6
  6059. else
  6060. rm -f .libs 2>/dev/null
  6061. mkdir .libs 2>/dev/null
  6062. if test -d .libs; then
  6063. lt_cv_objdir=.libs
  6064. else
  6065. # MS-DOS does not allow filenames that begin with a dot.
  6066. lt_cv_objdir=_libs
  6067. fi
  6068. rmdir .libs 2>/dev/null
  6069. fi
  6070. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
  6071. $as_echo "$lt_cv_objdir" >&6; }
  6072. objdir=$lt_cv_objdir
  6073. cat >>confdefs.h <<_ACEOF
  6074. @%:@define LT_OBJDIR "$lt_cv_objdir/"
  6075. _ACEOF
  6076. case $host_os in
  6077. aix3*)
  6078. # AIX sometimes has problems with the GCC collect2 program. For some
  6079. # reason, if we set the COLLECT_NAMES environment variable, the problems
  6080. # vanish in a puff of smoke.
  6081. if test "X${COLLECT_NAMES+set}" != Xset; then
  6082. COLLECT_NAMES=
  6083. export COLLECT_NAMES
  6084. fi
  6085. ;;
  6086. esac
  6087. # Sed substitution that helps us do robust quoting. It backslashifies
  6088. # metacharacters that are still active within double-quoted strings.
  6089. sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
  6090. # Same as above, but do not quote variable references.
  6091. double_quote_subst='s/\(["`\\]\)/\\\1/g'
  6092. # Sed substitution to delay expansion of an escaped shell variable in a
  6093. # double_quote_subst'ed string.
  6094. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  6095. # Sed substitution to delay expansion of an escaped single quote.
  6096. delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
  6097. # Sed substitution to avoid accidental globbing in evaled expressions
  6098. no_glob_subst='s/\*/\\\*/g'
  6099. # Global variables:
  6100. ofile=libtool
  6101. can_build_shared=yes
  6102. # All known linkers require a `.a' archive for static linking (except MSVC,
  6103. # which needs '.lib').
  6104. libext=a
  6105. with_gnu_ld="$lt_cv_prog_gnu_ld"
  6106. old_CC="$CC"
  6107. old_CFLAGS="$CFLAGS"
  6108. # Set sane defaults for various variables
  6109. test -z "$CC" && CC=cc
  6110. test -z "$LTCC" && LTCC=$CC
  6111. test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  6112. test -z "$LD" && LD=ld
  6113. test -z "$ac_objext" && ac_objext=o
  6114. for cc_temp in $compiler""; do
  6115. case $cc_temp in
  6116. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  6117. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  6118. \-*) ;;
  6119. *) break;;
  6120. esac
  6121. done
  6122. cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  6123. # Only perform the check for file, if the check method requires it
  6124. test -z "$MAGIC_CMD" && MAGIC_CMD=file
  6125. case $deplibs_check_method in
  6126. file_magic*)
  6127. if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  6128. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
  6129. $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
  6130. if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
  6131. $as_echo_n "(cached) " >&6
  6132. else
  6133. case $MAGIC_CMD in
  6134. [\\/*] | ?:[\\/]*)
  6135. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  6136. ;;
  6137. *)
  6138. lt_save_MAGIC_CMD="$MAGIC_CMD"
  6139. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  6140. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  6141. for ac_dir in $ac_dummy; do
  6142. IFS="$lt_save_ifs"
  6143. test -z "$ac_dir" && ac_dir=.
  6144. if test -f $ac_dir/${ac_tool_prefix}file; then
  6145. lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
  6146. if test -n "$file_magic_test_file"; then
  6147. case $deplibs_check_method in
  6148. "file_magic "*)
  6149. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  6150. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6151. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  6152. $EGREP "$file_magic_regex" > /dev/null; then
  6153. :
  6154. else
  6155. cat <<_LT_EOF 1>&2
  6156. *** Warning: the command libtool uses to detect shared libraries,
  6157. *** $file_magic_cmd, produces output that libtool cannot recognize.
  6158. *** The result is that libtool may fail to recognize shared libraries
  6159. *** as such. This will affect the creation of libtool libraries that
  6160. *** depend on shared libraries, but programs linked with such libtool
  6161. *** libraries will work regardless of this problem. Nevertheless, you
  6162. *** may want to report the problem to your system manager and/or to
  6163. *** [email protected]
  6164. _LT_EOF
  6165. fi ;;
  6166. esac
  6167. fi
  6168. break
  6169. fi
  6170. done
  6171. IFS="$lt_save_ifs"
  6172. MAGIC_CMD="$lt_save_MAGIC_CMD"
  6173. ;;
  6174. esac
  6175. fi
  6176. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6177. if test -n "$MAGIC_CMD"; then
  6178. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  6179. $as_echo "$MAGIC_CMD" >&6; }
  6180. else
  6181. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6182. $as_echo "no" >&6; }
  6183. fi
  6184. if test -z "$lt_cv_path_MAGIC_CMD"; then
  6185. if test -n "$ac_tool_prefix"; then
  6186. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
  6187. $as_echo_n "checking for file... " >&6; }
  6188. if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
  6189. $as_echo_n "(cached) " >&6
  6190. else
  6191. case $MAGIC_CMD in
  6192. [\\/*] | ?:[\\/]*)
  6193. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  6194. ;;
  6195. *)
  6196. lt_save_MAGIC_CMD="$MAGIC_CMD"
  6197. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  6198. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  6199. for ac_dir in $ac_dummy; do
  6200. IFS="$lt_save_ifs"
  6201. test -z "$ac_dir" && ac_dir=.
  6202. if test -f $ac_dir/file; then
  6203. lt_cv_path_MAGIC_CMD="$ac_dir/file"
  6204. if test -n "$file_magic_test_file"; then
  6205. case $deplibs_check_method in
  6206. "file_magic "*)
  6207. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  6208. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6209. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  6210. $EGREP "$file_magic_regex" > /dev/null; then
  6211. :
  6212. else
  6213. cat <<_LT_EOF 1>&2
  6214. *** Warning: the command libtool uses to detect shared libraries,
  6215. *** $file_magic_cmd, produces output that libtool cannot recognize.
  6216. *** The result is that libtool may fail to recognize shared libraries
  6217. *** as such. This will affect the creation of libtool libraries that
  6218. *** depend on shared libraries, but programs linked with such libtool
  6219. *** libraries will work regardless of this problem. Nevertheless, you
  6220. *** may want to report the problem to your system manager and/or to
  6221. *** [email protected]
  6222. _LT_EOF
  6223. fi ;;
  6224. esac
  6225. fi
  6226. break
  6227. fi
  6228. done
  6229. IFS="$lt_save_ifs"
  6230. MAGIC_CMD="$lt_save_MAGIC_CMD"
  6231. ;;
  6232. esac
  6233. fi
  6234. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6235. if test -n "$MAGIC_CMD"; then
  6236. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  6237. $as_echo "$MAGIC_CMD" >&6; }
  6238. else
  6239. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6240. $as_echo "no" >&6; }
  6241. fi
  6242. else
  6243. MAGIC_CMD=:
  6244. fi
  6245. fi
  6246. fi
  6247. ;;
  6248. esac
  6249. # Use C for the default configuration in the libtool script
  6250. lt_save_CC="$CC"
  6251. ac_ext=c
  6252. ac_cpp='$CPP $CPPFLAGS'
  6253. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6254. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6255. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6256. # Source file extension for C test sources.
  6257. ac_ext=c
  6258. # Object file extension for compiled C test sources.
  6259. objext=o
  6260. objext=$objext
  6261. # Code to be used in simple compile tests
  6262. lt_simple_compile_test_code="int some_variable = 0;"
  6263. # Code to be used in simple link tests
  6264. lt_simple_link_test_code='int main(){return(0);}'
  6265. # If no C compiler was specified, use CC.
  6266. LTCC=${LTCC-"$CC"}
  6267. # If no C compiler flags were specified, use CFLAGS.
  6268. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  6269. # Allow CC to be a program name with arguments.
  6270. compiler=$CC
  6271. # Save the default compiler, since it gets overwritten when the other
  6272. # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
  6273. compiler_DEFAULT=$CC
  6274. # save warnings/boilerplate of simple test code
  6275. ac_outfile=conftest.$ac_objext
  6276. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  6277. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  6278. _lt_compiler_boilerplate=`cat conftest.err`
  6279. $RM conftest*
  6280. ac_outfile=conftest.$ac_objext
  6281. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  6282. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  6283. _lt_linker_boilerplate=`cat conftest.err`
  6284. $RM -r conftest*
  6285. ## CAVEAT EMPTOR:
  6286. ## There is no encapsulation within the following macros, do not change
  6287. ## the running order or otherwise move them around unless you know exactly
  6288. ## what you are doing...
  6289. if test -n "$compiler"; then
  6290. lt_prog_compiler_no_builtin_flag=
  6291. if test "$GCC" = yes; then
  6292. lt_prog_compiler_no_builtin_flag=' -fno-builtin'
  6293. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  6294. $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
  6295. if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
  6296. $as_echo_n "(cached) " >&6
  6297. else
  6298. lt_cv_prog_compiler_rtti_exceptions=no
  6299. ac_outfile=conftest.$ac_objext
  6300. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  6301. lt_compiler_flag="-fno-rtti -fno-exceptions"
  6302. # Insert the option either (1) after the last *FLAGS variable, or
  6303. # (2) before a word containing "conftest.", or (3) at the end.
  6304. # Note that $ac_compile itself does not contain backslashes and begins
  6305. # with a dollar sign (not a hyphen), so the echo should work correctly.
  6306. # The option is referenced via a variable to avoid confusing sed.
  6307. lt_compile=`echo "$ac_compile" | $SED \
  6308. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  6309. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  6310. -e 's:$: $lt_compiler_flag:'`
  6311. (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
  6312. (eval "$lt_compile" 2>conftest.err)
  6313. ac_status=$?
  6314. cat conftest.err >&5
  6315. echo "$as_me:__oline__: \$? = $ac_status" >&5
  6316. if (exit $ac_status) && test -s "$ac_outfile"; then
  6317. # The compiler can only warn and ignore the option if not recognized
  6318. # So say no if there are warnings other than the usual output.
  6319. $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  6320. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  6321. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  6322. lt_cv_prog_compiler_rtti_exceptions=yes
  6323. fi
  6324. fi
  6325. $RM conftest*
  6326. fi
  6327. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  6328. $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
  6329. if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
  6330. lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
  6331. else
  6332. :
  6333. fi
  6334. fi
  6335. lt_prog_compiler_wl=
  6336. lt_prog_compiler_pic=
  6337. lt_prog_compiler_static=
  6338. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  6339. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  6340. if test "$GCC" = yes; then
  6341. lt_prog_compiler_wl='-Wl,'
  6342. lt_prog_compiler_static='-static'
  6343. case $host_os in
  6344. aix*)
  6345. # All AIX code is PIC.
  6346. if test "$host_cpu" = ia64; then
  6347. # AIX 5 now supports IA64 processor
  6348. lt_prog_compiler_static='-Bstatic'
  6349. fi
  6350. ;;
  6351. amigaos*)
  6352. case $host_cpu in
  6353. powerpc)
  6354. # see comment about AmigaOS4 .so support
  6355. lt_prog_compiler_pic='-fPIC'
  6356. ;;
  6357. m68k)
  6358. # FIXME: we need at least 68020 code to build shared libraries, but
  6359. # adding the `-m68020' flag to GCC prevents building anything better,
  6360. # like `-m68040'.
  6361. lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
  6362. ;;
  6363. esac
  6364. ;;
  6365. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  6366. # PIC is the default for these OSes.
  6367. ;;
  6368. mingw* | cygwin* | pw32* | os2* | cegcc*)
  6369. # This hack is so that the source file can tell whether it is being
  6370. # built for inclusion in a dll (and should export symbols for example).
  6371. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  6372. # (--disable-auto-import) libraries
  6373. lt_prog_compiler_pic='-DDLL_EXPORT'
  6374. ;;
  6375. darwin* | rhapsody*)
  6376. # PIC is the default on this platform
  6377. # Common symbols not allowed in MH_DYLIB files
  6378. lt_prog_compiler_pic='-fno-common'
  6379. ;;
  6380. hpux*)
  6381. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  6382. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  6383. # sets the default TLS model and affects inlining.
  6384. case $host_cpu in
  6385. hppa*64*)
  6386. # +Z the default
  6387. ;;
  6388. *)
  6389. lt_prog_compiler_pic='-fPIC'
  6390. ;;
  6391. esac
  6392. ;;
  6393. interix[3-9]*)
  6394. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  6395. # Instead, we relocate shared libraries at runtime.
  6396. ;;
  6397. msdosdjgpp*)
  6398. # Just because we use GCC doesn't mean we suddenly get shared libraries
  6399. # on systems that don't support them.
  6400. lt_prog_compiler_can_build_shared=no
  6401. enable_shared=no
  6402. ;;
  6403. *nto* | *qnx*)
  6404. # QNX uses GNU C++, but need to define -shared option too, otherwise
  6405. # it will coredump.
  6406. lt_prog_compiler_pic='-fPIC -shared'
  6407. ;;
  6408. sysv4*MP*)
  6409. if test -d /usr/nec; then
  6410. lt_prog_compiler_pic=-Kconform_pic
  6411. fi
  6412. ;;
  6413. *)
  6414. lt_prog_compiler_pic='-fPIC'
  6415. ;;
  6416. esac
  6417. else
  6418. # PORTME Check for flag to pass linker flags through the system compiler.
  6419. case $host_os in
  6420. aix*)
  6421. lt_prog_compiler_wl='-Wl,'
  6422. if test "$host_cpu" = ia64; then
  6423. # AIX 5 now supports IA64 processor
  6424. lt_prog_compiler_static='-Bstatic'
  6425. else
  6426. lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
  6427. fi
  6428. ;;
  6429. mingw* | cygwin* | pw32* | os2* | cegcc*)
  6430. # This hack is so that the source file can tell whether it is being
  6431. # built for inclusion in a dll (and should export symbols for example).
  6432. lt_prog_compiler_pic='-DDLL_EXPORT'
  6433. ;;
  6434. hpux9* | hpux10* | hpux11*)
  6435. lt_prog_compiler_wl='-Wl,'
  6436. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  6437. # not for PA HP-UX.
  6438. case $host_cpu in
  6439. hppa*64*|ia64*)
  6440. # +Z the default
  6441. ;;
  6442. *)
  6443. lt_prog_compiler_pic='+Z'
  6444. ;;
  6445. esac
  6446. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  6447. lt_prog_compiler_static='${wl}-a ${wl}archive'
  6448. ;;
  6449. irix5* | irix6* | nonstopux*)
  6450. lt_prog_compiler_wl='-Wl,'
  6451. # PIC (with -KPIC) is the default.
  6452. lt_prog_compiler_static='-non_shared'
  6453. ;;
  6454. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  6455. case $cc_basename in
  6456. # old Intel for x86_64 which still supported -KPIC.
  6457. ecc*)
  6458. lt_prog_compiler_wl='-Wl,'
  6459. lt_prog_compiler_pic='-KPIC'
  6460. lt_prog_compiler_static='-static'
  6461. ;;
  6462. # icc used to be incompatible with GCC.
  6463. # ICC 10 doesn't accept -KPIC any more.
  6464. icc* | ifort*)
  6465. lt_prog_compiler_wl='-Wl,'
  6466. lt_prog_compiler_pic='-fPIC'
  6467. lt_prog_compiler_static='-static'
  6468. ;;
  6469. # Lahey Fortran 8.1.
  6470. lf95*)
  6471. lt_prog_compiler_wl='-Wl,'
  6472. lt_prog_compiler_pic='--shared'
  6473. lt_prog_compiler_static='--static'
  6474. ;;
  6475. pgcc* | pgf77* | pgf90* | pgf95*)
  6476. # Portland Group compilers (*not* the Pentium gcc compiler,
  6477. # which looks to be a dead project)
  6478. lt_prog_compiler_wl='-Wl,'
  6479. lt_prog_compiler_pic='-fpic'
  6480. lt_prog_compiler_static='-Bstatic'
  6481. ;;
  6482. ccc*)
  6483. lt_prog_compiler_wl='-Wl,'
  6484. # All Alpha code is PIC.
  6485. lt_prog_compiler_static='-non_shared'
  6486. ;;
  6487. xl*)
  6488. # IBM XL C 8.0/Fortran 10.1 on PPC
  6489. lt_prog_compiler_wl='-Wl,'
  6490. lt_prog_compiler_pic='-qpic'
  6491. lt_prog_compiler_static='-qstaticlink'
  6492. ;;
  6493. *)
  6494. case `$CC -V 2>&1 | sed 5q` in
  6495. *Sun\ C*)
  6496. # Sun C 5.9
  6497. lt_prog_compiler_pic='-KPIC'
  6498. lt_prog_compiler_static='-Bstatic'
  6499. lt_prog_compiler_wl='-Wl,'
  6500. ;;
  6501. *Sun\ F*)
  6502. # Sun Fortran 8.3 passes all unrecognized flags to the linker
  6503. lt_prog_compiler_pic='-KPIC'
  6504. lt_prog_compiler_static='-Bstatic'
  6505. lt_prog_compiler_wl=''
  6506. ;;
  6507. esac
  6508. ;;
  6509. esac
  6510. ;;
  6511. newsos6)
  6512. lt_prog_compiler_pic='-KPIC'
  6513. lt_prog_compiler_static='-Bstatic'
  6514. ;;
  6515. *nto* | *qnx*)
  6516. # QNX uses GNU C++, but need to define -shared option too, otherwise
  6517. # it will coredump.
  6518. lt_prog_compiler_pic='-fPIC -shared'
  6519. ;;
  6520. osf3* | osf4* | osf5*)
  6521. lt_prog_compiler_wl='-Wl,'
  6522. # All OSF/1 code is PIC.
  6523. lt_prog_compiler_static='-non_shared'
  6524. ;;
  6525. rdos*)
  6526. lt_prog_compiler_static='-non_shared'
  6527. ;;
  6528. solaris*)
  6529. lt_prog_compiler_pic='-KPIC'
  6530. lt_prog_compiler_static='-Bstatic'
  6531. case $cc_basename in
  6532. f77* | f90* | f95*)
  6533. lt_prog_compiler_wl='-Qoption ld ';;
  6534. *)
  6535. lt_prog_compiler_wl='-Wl,';;
  6536. esac
  6537. ;;
  6538. sunos4*)
  6539. lt_prog_compiler_wl='-Qoption ld '
  6540. lt_prog_compiler_pic='-PIC'
  6541. lt_prog_compiler_static='-Bstatic'
  6542. ;;
  6543. sysv4 | sysv4.2uw2* | sysv4.3*)
  6544. lt_prog_compiler_wl='-Wl,'
  6545. lt_prog_compiler_pic='-KPIC'
  6546. lt_prog_compiler_static='-Bstatic'
  6547. ;;
  6548. sysv4*MP*)
  6549. if test -d /usr/nec ;then
  6550. lt_prog_compiler_pic='-Kconform_pic'
  6551. lt_prog_compiler_static='-Bstatic'
  6552. fi
  6553. ;;
  6554. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  6555. lt_prog_compiler_wl='-Wl,'
  6556. lt_prog_compiler_pic='-KPIC'
  6557. lt_prog_compiler_static='-Bstatic'
  6558. ;;
  6559. unicos*)
  6560. lt_prog_compiler_wl='-Wl,'
  6561. lt_prog_compiler_can_build_shared=no
  6562. ;;
  6563. uts4*)
  6564. lt_prog_compiler_pic='-pic'
  6565. lt_prog_compiler_static='-Bstatic'
  6566. ;;
  6567. *)
  6568. lt_prog_compiler_can_build_shared=no
  6569. ;;
  6570. esac
  6571. fi
  6572. case $host_os in
  6573. # For platforms which do not support PIC, -DPIC is meaningless:
  6574. *djgpp*)
  6575. lt_prog_compiler_pic=
  6576. ;;
  6577. *)
  6578. lt_prog_compiler_pic="$lt_prog_compiler_pic@&t@ -DPIC"
  6579. ;;
  6580. esac
  6581. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
  6582. $as_echo "$lt_prog_compiler_pic" >&6; }
  6583. #
  6584. # Check to make sure the PIC flag actually works.
  6585. #
  6586. if test -n "$lt_prog_compiler_pic"; then
  6587. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
  6588. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
  6589. if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
  6590. $as_echo_n "(cached) " >&6
  6591. else
  6592. lt_cv_prog_compiler_pic_works=no
  6593. ac_outfile=conftest.$ac_objext
  6594. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  6595. lt_compiler_flag="$lt_prog_compiler_pic@&t@ -DPIC"
  6596. # Insert the option either (1) after the last *FLAGS variable, or
  6597. # (2) before a word containing "conftest.", or (3) at the end.
  6598. # Note that $ac_compile itself does not contain backslashes and begins
  6599. # with a dollar sign (not a hyphen), so the echo should work correctly.
  6600. # The option is referenced via a variable to avoid confusing sed.
  6601. lt_compile=`echo "$ac_compile" | $SED \
  6602. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  6603. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  6604. -e 's:$: $lt_compiler_flag:'`
  6605. (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
  6606. (eval "$lt_compile" 2>conftest.err)
  6607. ac_status=$?
  6608. cat conftest.err >&5
  6609. echo "$as_me:__oline__: \$? = $ac_status" >&5
  6610. if (exit $ac_status) && test -s "$ac_outfile"; then
  6611. # The compiler can only warn and ignore the option if not recognized
  6612. # So say no if there are warnings other than the usual output.
  6613. $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  6614. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  6615. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  6616. lt_cv_prog_compiler_pic_works=yes
  6617. fi
  6618. fi
  6619. $RM conftest*
  6620. fi
  6621. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
  6622. $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
  6623. if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
  6624. case $lt_prog_compiler_pic in
  6625. "" | " "*) ;;
  6626. *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
  6627. esac
  6628. else
  6629. lt_prog_compiler_pic=
  6630. lt_prog_compiler_can_build_shared=no
  6631. fi
  6632. fi
  6633. #
  6634. # Check to make sure the static flag actually works.
  6635. #
  6636. wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
  6637. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  6638. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  6639. if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
  6640. $as_echo_n "(cached) " >&6
  6641. else
  6642. lt_cv_prog_compiler_static_works=no
  6643. save_LDFLAGS="$LDFLAGS"
  6644. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  6645. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  6646. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  6647. # The linker can only warn and ignore the option if not recognized
  6648. # So say no if there are warnings
  6649. if test -s conftest.err; then
  6650. # Append any errors to the config.log.
  6651. cat conftest.err 1>&5
  6652. $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
  6653. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  6654. if diff conftest.exp conftest.er2 >/dev/null; then
  6655. lt_cv_prog_compiler_static_works=yes
  6656. fi
  6657. else
  6658. lt_cv_prog_compiler_static_works=yes
  6659. fi
  6660. fi
  6661. $RM -r conftest*
  6662. LDFLAGS="$save_LDFLAGS"
  6663. fi
  6664. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
  6665. $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
  6666. if test x"$lt_cv_prog_compiler_static_works" = xyes; then
  6667. :
  6668. else
  6669. lt_prog_compiler_static=
  6670. fi
  6671. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  6672. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  6673. if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
  6674. $as_echo_n "(cached) " >&6
  6675. else
  6676. lt_cv_prog_compiler_c_o=no
  6677. $RM -r conftest 2>/dev/null
  6678. mkdir conftest
  6679. cd conftest
  6680. mkdir out
  6681. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  6682. lt_compiler_flag="-o out/conftest2.$ac_objext"
  6683. # Insert the option either (1) after the last *FLAGS variable, or
  6684. # (2) before a word containing "conftest.", or (3) at the end.
  6685. # Note that $ac_compile itself does not contain backslashes and begins
  6686. # with a dollar sign (not a hyphen), so the echo should work correctly.
  6687. lt_compile=`echo "$ac_compile" | $SED \
  6688. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  6689. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  6690. -e 's:$: $lt_compiler_flag:'`
  6691. (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
  6692. (eval "$lt_compile" 2>out/conftest.err)
  6693. ac_status=$?
  6694. cat out/conftest.err >&5
  6695. echo "$as_me:__oline__: \$? = $ac_status" >&5
  6696. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  6697. then
  6698. # The compiler can only warn and ignore the option if not recognized
  6699. # So say no if there are warnings
  6700. $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  6701. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  6702. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  6703. lt_cv_prog_compiler_c_o=yes
  6704. fi
  6705. fi
  6706. chmod u+w . 2>&5
  6707. $RM conftest*
  6708. # SGI C++ compiler will create directory out/ii_files/ for
  6709. # template instantiation
  6710. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  6711. $RM out/* && rmdir out
  6712. cd ..
  6713. $RM -r conftest
  6714. $RM conftest*
  6715. fi
  6716. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  6717. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  6718. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  6719. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  6720. if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
  6721. $as_echo_n "(cached) " >&6
  6722. else
  6723. lt_cv_prog_compiler_c_o=no
  6724. $RM -r conftest 2>/dev/null
  6725. mkdir conftest
  6726. cd conftest
  6727. mkdir out
  6728. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  6729. lt_compiler_flag="-o out/conftest2.$ac_objext"
  6730. # Insert the option either (1) after the last *FLAGS variable, or
  6731. # (2) before a word containing "conftest.", or (3) at the end.
  6732. # Note that $ac_compile itself does not contain backslashes and begins
  6733. # with a dollar sign (not a hyphen), so the echo should work correctly.
  6734. lt_compile=`echo "$ac_compile" | $SED \
  6735. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  6736. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  6737. -e 's:$: $lt_compiler_flag:'`
  6738. (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
  6739. (eval "$lt_compile" 2>out/conftest.err)
  6740. ac_status=$?
  6741. cat out/conftest.err >&5
  6742. echo "$as_me:__oline__: \$? = $ac_status" >&5
  6743. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  6744. then
  6745. # The compiler can only warn and ignore the option if not recognized
  6746. # So say no if there are warnings
  6747. $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  6748. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  6749. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  6750. lt_cv_prog_compiler_c_o=yes
  6751. fi
  6752. fi
  6753. chmod u+w . 2>&5
  6754. $RM conftest*
  6755. # SGI C++ compiler will create directory out/ii_files/ for
  6756. # template instantiation
  6757. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  6758. $RM out/* && rmdir out
  6759. cd ..
  6760. $RM -r conftest
  6761. $RM conftest*
  6762. fi
  6763. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  6764. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  6765. hard_links="nottested"
  6766. if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
  6767. # do not overwrite the value of need_locks provided by the user
  6768. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  6769. $as_echo_n "checking if we can lock with hard links... " >&6; }
  6770. hard_links=yes
  6771. $RM conftest*
  6772. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  6773. touch conftest.a
  6774. ln conftest.a conftest.b 2>&5 || hard_links=no
  6775. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  6776. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  6777. $as_echo "$hard_links" >&6; }
  6778. if test "$hard_links" = no; then
  6779. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  6780. $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  6781. need_locks=warn
  6782. fi
  6783. else
  6784. need_locks=no
  6785. fi
  6786. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  6787. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  6788. runpath_var=
  6789. allow_undefined_flag=
  6790. always_export_symbols=no
  6791. archive_cmds=
  6792. archive_expsym_cmds=
  6793. compiler_needs_object=no
  6794. enable_shared_with_static_runtimes=no
  6795. export_dynamic_flag_spec=
  6796. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  6797. hardcode_automatic=no
  6798. hardcode_direct=no
  6799. hardcode_direct_absolute=no
  6800. hardcode_libdir_flag_spec=
  6801. hardcode_libdir_flag_spec_ld=
  6802. hardcode_libdir_separator=
  6803. hardcode_minus_L=no
  6804. hardcode_shlibpath_var=unsupported
  6805. inherit_rpath=no
  6806. link_all_deplibs=unknown
  6807. module_cmds=
  6808. module_expsym_cmds=
  6809. old_archive_from_new_cmds=
  6810. old_archive_from_expsyms_cmds=
  6811. thread_safe_flag_spec=
  6812. whole_archive_flag_spec=
  6813. # include_expsyms should be a list of space-separated symbols to be *always*
  6814. # included in the symbol list
  6815. include_expsyms=
  6816. # exclude_expsyms can be an extended regexp of symbols to exclude
  6817. # it will be wrapped by ` (' and `)$', so one must not match beginning or
  6818. # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  6819. # as well as any symbol that contains `d'.
  6820. exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  6821. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  6822. # platforms (ab)use it in PIC code, but their linkers get confused if
  6823. # the symbol is explicitly referenced. Since portable code cannot
  6824. # rely on this symbol name, it's probably fine to never include it in
  6825. # preloaded symbol tables.
  6826. # Exclude shared library initialization/finalization symbols.
  6827. extract_expsyms_cmds=
  6828. case $host_os in
  6829. cygwin* | mingw* | pw32* | cegcc*)
  6830. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  6831. # When not using gcc, we currently assume that we are using
  6832. # Microsoft Visual C++.
  6833. if test "$GCC" != yes; then
  6834. with_gnu_ld=no
  6835. fi
  6836. ;;
  6837. interix*)
  6838. # we just hope/assume this is gcc and not c89 (= MSVC++)
  6839. with_gnu_ld=yes
  6840. ;;
  6841. openbsd*)
  6842. with_gnu_ld=no
  6843. ;;
  6844. linux* | k*bsd*-gnu)
  6845. link_all_deplibs=no
  6846. ;;
  6847. esac
  6848. ld_shlibs=yes
  6849. if test "$with_gnu_ld" = yes; then
  6850. # If archive_cmds runs LD, not CC, wlarc should be empty
  6851. wlarc='${wl}'
  6852. # Set some defaults for GNU ld with shared library support. These
  6853. # are reset later if shared libraries are not supported. Putting them
  6854. # here allows them to be overridden if necessary.
  6855. runpath_var=LD_RUN_PATH
  6856. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  6857. export_dynamic_flag_spec='${wl}--export-dynamic'
  6858. # ancient GNU ld didn't support --whole-archive et. al.
  6859. if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
  6860. whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  6861. else
  6862. whole_archive_flag_spec=
  6863. fi
  6864. supports_anon_versioning=no
  6865. case `$LD -v 2>&1` in
  6866. *GNU\ gold*) supports_anon_versioning=yes ;;
  6867. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  6868. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  6869. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  6870. *\ 2.11.*) ;; # other 2.11 versions
  6871. *) supports_anon_versioning=yes ;;
  6872. esac
  6873. # See if GNU ld supports shared libraries.
  6874. case $host_os in
  6875. aix[3-9]*)
  6876. # On AIX/PPC, the GNU linker is very broken
  6877. if test "$host_cpu" != ia64; then
  6878. ld_shlibs=no
  6879. cat <<_LT_EOF 1>&2
  6880. *** Warning: the GNU linker, at least up to release 2.9.1, is reported
  6881. *** to be unable to reliably create shared libraries on AIX.
  6882. *** Therefore, libtool is disabling shared libraries support. If you
  6883. *** really care for shared libraries, you may want to modify your PATH
  6884. *** so that a non-GNU linker is found, and then restart.
  6885. _LT_EOF
  6886. fi
  6887. ;;
  6888. amigaos*)
  6889. case $host_cpu in
  6890. powerpc)
  6891. # see comment about AmigaOS4 .so support
  6892. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  6893. archive_expsym_cmds=''
  6894. ;;
  6895. m68k)
  6896. 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)'
  6897. hardcode_libdir_flag_spec='-L$libdir'
  6898. hardcode_minus_L=yes
  6899. ;;
  6900. esac
  6901. ;;
  6902. beos*)
  6903. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  6904. allow_undefined_flag=unsupported
  6905. # Joseph Beckenbach <[email protected]> says some releases of gcc
  6906. # support --undefined. This deserves some investigation. FIXME
  6907. archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  6908. else
  6909. ld_shlibs=no
  6910. fi
  6911. ;;
  6912. cygwin* | mingw* | pw32* | cegcc*)
  6913. # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
  6914. # as there is no search path for DLLs.
  6915. hardcode_libdir_flag_spec='-L$libdir'
  6916. allow_undefined_flag=unsupported
  6917. always_export_symbols=no
  6918. enable_shared_with_static_runtimes=yes
  6919. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
  6920. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  6921. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  6922. # If the export-symbols file already is a .def file (1st line
  6923. # is EXPORTS), use it as is; otherwise, prepend...
  6924. archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  6925. cp $export_symbols $output_objdir/$soname.def;
  6926. else
  6927. echo EXPORTS > $output_objdir/$soname.def;
  6928. cat $export_symbols >> $output_objdir/$soname.def;
  6929. fi~
  6930. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  6931. else
  6932. ld_shlibs=no
  6933. fi
  6934. ;;
  6935. interix[3-9]*)
  6936. hardcode_direct=no
  6937. hardcode_shlibpath_var=no
  6938. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  6939. export_dynamic_flag_spec='${wl}-E'
  6940. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  6941. # Instead, shared libraries are loaded at an image base (0x10000000 by
  6942. # default) and relocated if they conflict, which is a slow very memory
  6943. # consuming and fragmenting process. To avoid this, we pick a random,
  6944. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  6945. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  6946. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  6947. 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'
  6948. ;;
  6949. gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
  6950. tmp_diet=no
  6951. if test "$host_os" = linux-dietlibc; then
  6952. case $cc_basename in
  6953. diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
  6954. esac
  6955. fi
  6956. if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
  6957. && test "$tmp_diet" = no
  6958. then
  6959. tmp_addflag=
  6960. tmp_sharedflag='-shared'
  6961. case $cc_basename,$host_cpu in
  6962. pgcc*) # Portland Group C compiler
  6963. whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
  6964. tmp_addflag=' $pic_flag'
  6965. ;;
  6966. pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
  6967. whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
  6968. tmp_addflag=' $pic_flag -Mnomain' ;;
  6969. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  6970. tmp_addflag=' -i_dynamic' ;;
  6971. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  6972. tmp_addflag=' -i_dynamic -nofor_main' ;;
  6973. ifc* | ifort*) # Intel Fortran compiler
  6974. tmp_addflag=' -nofor_main' ;;
  6975. lf95*) # Lahey Fortran 8.1
  6976. whole_archive_flag_spec=
  6977. tmp_sharedflag='--shared' ;;
  6978. xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
  6979. tmp_sharedflag='-qmkshrobj'
  6980. tmp_addflag= ;;
  6981. esac
  6982. case `$CC -V 2>&1 | sed 5q` in
  6983. *Sun\ C*) # Sun C 5.9
  6984. whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
  6985. compiler_needs_object=yes
  6986. tmp_sharedflag='-G' ;;
  6987. *Sun\ F*) # Sun Fortran 8.3
  6988. tmp_sharedflag='-G' ;;
  6989. esac
  6990. archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  6991. if test "x$supports_anon_versioning" = xyes; then
  6992. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  6993. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  6994. echo "local: *; };" >> $output_objdir/$libname.ver~
  6995. $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  6996. fi
  6997. case $cc_basename in
  6998. xlf*)
  6999. # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
  7000. whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
  7001. hardcode_libdir_flag_spec=
  7002. hardcode_libdir_flag_spec_ld='-rpath $libdir'
  7003. archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
  7004. if test "x$supports_anon_versioning" = xyes; then
  7005. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  7006. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  7007. echo "local: *; };" >> $output_objdir/$libname.ver~
  7008. $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
  7009. fi
  7010. ;;
  7011. esac
  7012. else
  7013. ld_shlibs=no
  7014. fi
  7015. ;;
  7016. netbsd* | netbsdelf*-gnu)
  7017. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  7018. archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  7019. wlarc=
  7020. else
  7021. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7022. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7023. fi
  7024. ;;
  7025. solaris*)
  7026. if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
  7027. ld_shlibs=no
  7028. cat <<_LT_EOF 1>&2
  7029. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  7030. *** create shared libraries on Solaris systems. Therefore, libtool
  7031. *** is disabling shared libraries support. We urge you to upgrade GNU
  7032. *** binutils to release 2.9.1 or newer. Another option is to modify
  7033. *** your PATH or compiler configuration so that the native linker is
  7034. *** used, and then restart.
  7035. _LT_EOF
  7036. elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7037. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7038. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7039. else
  7040. ld_shlibs=no
  7041. fi
  7042. ;;
  7043. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  7044. case `$LD -v 2>&1` in
  7045. *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  7046. ld_shlibs=no
  7047. cat <<_LT_EOF 1>&2
  7048. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  7049. *** reliably create shared libraries on SCO systems. Therefore, libtool
  7050. *** is disabling shared libraries support. We urge you to upgrade GNU
  7051. *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  7052. *** your PATH or compiler configuration so that the native linker is
  7053. *** used, and then restart.
  7054. _LT_EOF
  7055. ;;
  7056. *)
  7057. # For security reasons, it is highly recommended that you always
  7058. # use absolute paths for naming shared libraries, and exclude the
  7059. # DT_RUNPATH tag from executables and libraries. But doing so
  7060. # requires that you compile everything twice, which is a pain.
  7061. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7062. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7063. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7064. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7065. else
  7066. ld_shlibs=no
  7067. fi
  7068. ;;
  7069. esac
  7070. ;;
  7071. sunos4*)
  7072. archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  7073. wlarc=
  7074. hardcode_direct=yes
  7075. hardcode_shlibpath_var=no
  7076. ;;
  7077. *)
  7078. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7079. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7080. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7081. else
  7082. ld_shlibs=no
  7083. fi
  7084. ;;
  7085. esac
  7086. if test "$ld_shlibs" = no; then
  7087. runpath_var=
  7088. hardcode_libdir_flag_spec=
  7089. export_dynamic_flag_spec=
  7090. whole_archive_flag_spec=
  7091. fi
  7092. else
  7093. # PORTME fill in a description of your system's linker (not GNU ld)
  7094. case $host_os in
  7095. aix3*)
  7096. allow_undefined_flag=unsupported
  7097. always_export_symbols=yes
  7098. 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'
  7099. # Note: this linker hardcodes the directories in LIBPATH if there
  7100. # are no directories specified by -L.
  7101. hardcode_minus_L=yes
  7102. if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  7103. # Neither direct hardcoding nor static linking is supported with a
  7104. # broken collect2.
  7105. hardcode_direct=unsupported
  7106. fi
  7107. ;;
  7108. aix[4-9]*)
  7109. if test "$host_cpu" = ia64; then
  7110. # On IA64, the linker does run time linking by default, so we don't
  7111. # have to do anything special.
  7112. aix_use_runtimelinking=no
  7113. exp_sym_flag='-Bexport'
  7114. no_entry_flag=""
  7115. else
  7116. # If we're using GNU nm, then we don't want the "-C" option.
  7117. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  7118. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  7119. export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
  7120. else
  7121. 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'
  7122. fi
  7123. aix_use_runtimelinking=no
  7124. # Test if we are trying to use run time linking or normal
  7125. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  7126. # need to do runtime linking.
  7127. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  7128. for ld_flag in $LDFLAGS; do
  7129. if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  7130. aix_use_runtimelinking=yes
  7131. break
  7132. fi
  7133. done
  7134. ;;
  7135. esac
  7136. exp_sym_flag='-bexport'
  7137. no_entry_flag='-bnoentry'
  7138. fi
  7139. # When large executables or shared objects are built, AIX ld can
  7140. # have problems creating the table of contents. If linking a library
  7141. # or program results in "error TOC overflow" add -mminimal-toc to
  7142. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  7143. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  7144. archive_cmds=''
  7145. hardcode_direct=yes
  7146. hardcode_direct_absolute=yes
  7147. hardcode_libdir_separator=':'
  7148. link_all_deplibs=yes
  7149. file_list_spec='${wl}-f,'
  7150. if test "$GCC" = yes; then
  7151. case $host_os in aix4.[012]|aix4.[012].*)
  7152. # We only want to do this on AIX 4.2 and lower, the check
  7153. # below for broken collect2 doesn't work under 4.3+
  7154. collect2name=`${CC} -print-prog-name=collect2`
  7155. if test -f "$collect2name" &&
  7156. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  7157. then
  7158. # We have reworked collect2
  7159. :
  7160. else
  7161. # We have old collect2
  7162. hardcode_direct=unsupported
  7163. # It fails to find uninstalled libraries when the uninstalled
  7164. # path is not listed in the libpath. Setting hardcode_minus_L
  7165. # to unsupported forces relinking
  7166. hardcode_minus_L=yes
  7167. hardcode_libdir_flag_spec='-L$libdir'
  7168. hardcode_libdir_separator=
  7169. fi
  7170. ;;
  7171. esac
  7172. shared_flag='-shared'
  7173. if test "$aix_use_runtimelinking" = yes; then
  7174. shared_flag="$shared_flag "'${wl}-G'
  7175. fi
  7176. link_all_deplibs=no
  7177. else
  7178. # not using gcc
  7179. if test "$host_cpu" = ia64; then
  7180. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  7181. # chokes on -Wl,-G. The following line is correct:
  7182. shared_flag='-G'
  7183. else
  7184. if test "$aix_use_runtimelinking" = yes; then
  7185. shared_flag='${wl}-G'
  7186. else
  7187. shared_flag='${wl}-bM:SRE'
  7188. fi
  7189. fi
  7190. fi
  7191. export_dynamic_flag_spec='${wl}-bexpall'
  7192. # It seems that -bexpall does not export symbols beginning with
  7193. # underscore (_), so it is better to generate a list of symbols to export.
  7194. always_export_symbols=yes
  7195. if test "$aix_use_runtimelinking" = yes; then
  7196. # Warning - without using the other runtime loading flags (-brtl),
  7197. # -berok will link without error, but may produce a broken library.
  7198. allow_undefined_flag='-berok'
  7199. # Determine the default libpath from the value encoded in an
  7200. # empty executable.
  7201. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7202. /* end confdefs.h. */
  7203. int
  7204. main ()
  7205. {
  7206. ;
  7207. return 0;
  7208. }
  7209. _ACEOF
  7210. if ac_fn_c_try_link "$LINENO"; then :
  7211. lt_aix_libpath_sed='
  7212. /Import File Strings/,/^$/ {
  7213. /^0/ {
  7214. s/^0 *\(.*\)$/\1/
  7215. p
  7216. }
  7217. }'
  7218. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  7219. # Check for a 64-bit object if we didn't find anything.
  7220. if test -z "$aix_libpath"; then
  7221. aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  7222. fi
  7223. fi
  7224. rm -f core conftest.err conftest.$ac_objext \
  7225. conftest$ac_exeext conftest.$ac_ext
  7226. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  7227. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  7228. archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
  7229. else
  7230. if test "$host_cpu" = ia64; then
  7231. hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
  7232. allow_undefined_flag="-z nodefs"
  7233. 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"
  7234. else
  7235. # Determine the default libpath from the value encoded in an
  7236. # empty executable.
  7237. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7238. /* end confdefs.h. */
  7239. int
  7240. main ()
  7241. {
  7242. ;
  7243. return 0;
  7244. }
  7245. _ACEOF
  7246. if ac_fn_c_try_link "$LINENO"; then :
  7247. lt_aix_libpath_sed='
  7248. /Import File Strings/,/^$/ {
  7249. /^0/ {
  7250. s/^0 *\(.*\)$/\1/
  7251. p
  7252. }
  7253. }'
  7254. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  7255. # Check for a 64-bit object if we didn't find anything.
  7256. if test -z "$aix_libpath"; then
  7257. aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  7258. fi
  7259. fi
  7260. rm -f core conftest.err conftest.$ac_objext \
  7261. conftest$ac_exeext conftest.$ac_ext
  7262. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  7263. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  7264. # Warning - without using the other run time loading flags,
  7265. # -berok will link without error, but may produce a broken library.
  7266. no_undefined_flag=' ${wl}-bernotok'
  7267. allow_undefined_flag=' ${wl}-berok'
  7268. # Exported symbols can be pulled into shared objects from archives
  7269. whole_archive_flag_spec='$convenience'
  7270. archive_cmds_need_lc=yes
  7271. # This is similar to how AIX traditionally builds its shared libraries.
  7272. 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'
  7273. fi
  7274. fi
  7275. ;;
  7276. amigaos*)
  7277. case $host_cpu in
  7278. powerpc)
  7279. # see comment about AmigaOS4 .so support
  7280. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7281. archive_expsym_cmds=''
  7282. ;;
  7283. m68k)
  7284. 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)'
  7285. hardcode_libdir_flag_spec='-L$libdir'
  7286. hardcode_minus_L=yes
  7287. ;;
  7288. esac
  7289. ;;
  7290. bsdi[45]*)
  7291. export_dynamic_flag_spec=-rdynamic
  7292. ;;
  7293. cygwin* | mingw* | pw32* | cegcc*)
  7294. # When not using gcc, we currently assume that we are using
  7295. # Microsoft Visual C++.
  7296. # hardcode_libdir_flag_spec is actually meaningless, as there is
  7297. # no search path for DLLs.
  7298. hardcode_libdir_flag_spec=' '
  7299. allow_undefined_flag=unsupported
  7300. # Tell ltmain to make .lib files, not .a files.
  7301. libext=lib
  7302. # Tell ltmain to make .dll files, not .so files.
  7303. shrext_cmds=".dll"
  7304. # FIXME: Setting linknames here is a bad hack.
  7305. archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
  7306. # The linker will automatically build a .lib file if we build a DLL.
  7307. old_archive_from_new_cmds='true'
  7308. # FIXME: Should let the user specify the lib program.
  7309. old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
  7310. fix_srcfile_path='`cygpath -w "$srcfile"`'
  7311. enable_shared_with_static_runtimes=yes
  7312. ;;
  7313. darwin* | rhapsody*)
  7314. archive_cmds_need_lc=no
  7315. hardcode_direct=no
  7316. hardcode_automatic=yes
  7317. hardcode_shlibpath_var=unsupported
  7318. whole_archive_flag_spec=''
  7319. link_all_deplibs=yes
  7320. allow_undefined_flag="$_lt_dar_allow_undefined"
  7321. case $cc_basename in
  7322. ifort*) _lt_dar_can_shared=yes ;;
  7323. *) _lt_dar_can_shared=$GCC ;;
  7324. esac
  7325. if test "$_lt_dar_can_shared" = "yes"; then
  7326. output_verbose_link_cmd=echo
  7327. archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
  7328. module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  7329. 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}"
  7330. 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}"
  7331. else
  7332. ld_shlibs=no
  7333. fi
  7334. ;;
  7335. dgux*)
  7336. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  7337. hardcode_libdir_flag_spec='-L$libdir'
  7338. hardcode_shlibpath_var=no
  7339. ;;
  7340. freebsd1*)
  7341. ld_shlibs=no
  7342. ;;
  7343. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  7344. # support. Future versions do this automatically, but an explicit c++rt0.o
  7345. # does not break anything, and helps significantly (at the cost of a little
  7346. # extra space).
  7347. freebsd2.2*)
  7348. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  7349. hardcode_libdir_flag_spec='-R$libdir'
  7350. hardcode_direct=yes
  7351. hardcode_shlibpath_var=no
  7352. ;;
  7353. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  7354. freebsd2*)
  7355. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  7356. hardcode_direct=yes
  7357. hardcode_minus_L=yes
  7358. hardcode_shlibpath_var=no
  7359. ;;
  7360. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  7361. freebsd* | dragonfly*)
  7362. archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
  7363. hardcode_libdir_flag_spec='-R$libdir'
  7364. hardcode_direct=yes
  7365. hardcode_shlibpath_var=no
  7366. ;;
  7367. hpux9*)
  7368. if test "$GCC" = yes; then
  7369. archive_cmds='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  7370. else
  7371. 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'
  7372. fi
  7373. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  7374. hardcode_libdir_separator=:
  7375. hardcode_direct=yes
  7376. # hardcode_minus_L: Not really in the search PATH,
  7377. # but as the default location of the library.
  7378. hardcode_minus_L=yes
  7379. export_dynamic_flag_spec='${wl}-E'
  7380. ;;
  7381. hpux10*)
  7382. if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  7383. archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  7384. else
  7385. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  7386. fi
  7387. if test "$with_gnu_ld" = no; then
  7388. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  7389. hardcode_libdir_flag_spec_ld='+b $libdir'
  7390. hardcode_libdir_separator=:
  7391. hardcode_direct=yes
  7392. hardcode_direct_absolute=yes
  7393. export_dynamic_flag_spec='${wl}-E'
  7394. # hardcode_minus_L: Not really in the search PATH,
  7395. # but as the default location of the library.
  7396. hardcode_minus_L=yes
  7397. fi
  7398. ;;
  7399. hpux11*)
  7400. if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  7401. case $host_cpu in
  7402. hppa*64*)
  7403. archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  7404. ;;
  7405. ia64*)
  7406. archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  7407. ;;
  7408. *)
  7409. archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  7410. ;;
  7411. esac
  7412. else
  7413. case $host_cpu in
  7414. hppa*64*)
  7415. archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  7416. ;;
  7417. ia64*)
  7418. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  7419. ;;
  7420. *)
  7421. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  7422. ;;
  7423. esac
  7424. fi
  7425. if test "$with_gnu_ld" = no; then
  7426. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  7427. hardcode_libdir_separator=:
  7428. case $host_cpu in
  7429. hppa*64*|ia64*)
  7430. hardcode_direct=no
  7431. hardcode_shlibpath_var=no
  7432. ;;
  7433. *)
  7434. hardcode_direct=yes
  7435. hardcode_direct_absolute=yes
  7436. export_dynamic_flag_spec='${wl}-E'
  7437. # hardcode_minus_L: Not really in the search PATH,
  7438. # but as the default location of the library.
  7439. hardcode_minus_L=yes
  7440. ;;
  7441. esac
  7442. fi
  7443. ;;
  7444. irix5* | irix6* | nonstopux*)
  7445. if test "$GCC" = yes; then
  7446. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  7447. # Try to use the -exported_symbol ld option, if it does not
  7448. # work, assume that -exports_file does not work either and
  7449. # implicitly export all symbols.
  7450. save_LDFLAGS="$LDFLAGS"
  7451. LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
  7452. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7453. /* end confdefs.h. */
  7454. int foo(void) {}
  7455. _ACEOF
  7456. if ac_fn_c_try_link "$LINENO"; then :
  7457. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
  7458. fi
  7459. rm -f core conftest.err conftest.$ac_objext \
  7460. conftest$ac_exeext conftest.$ac_ext
  7461. LDFLAGS="$save_LDFLAGS"
  7462. else
  7463. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
  7464. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
  7465. fi
  7466. archive_cmds_need_lc='no'
  7467. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7468. hardcode_libdir_separator=:
  7469. inherit_rpath=yes
  7470. link_all_deplibs=yes
  7471. ;;
  7472. netbsd* | netbsdelf*-gnu)
  7473. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  7474. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  7475. else
  7476. archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  7477. fi
  7478. hardcode_libdir_flag_spec='-R$libdir'
  7479. hardcode_direct=yes
  7480. hardcode_shlibpath_var=no
  7481. ;;
  7482. newsos6)
  7483. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  7484. hardcode_direct=yes
  7485. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7486. hardcode_libdir_separator=:
  7487. hardcode_shlibpath_var=no
  7488. ;;
  7489. *nto* | *qnx*)
  7490. ;;
  7491. openbsd*)
  7492. if test -f /usr/libexec/ld.so; then
  7493. hardcode_direct=yes
  7494. hardcode_shlibpath_var=no
  7495. hardcode_direct_absolute=yes
  7496. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  7497. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  7498. archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  7499. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  7500. export_dynamic_flag_spec='${wl}-E'
  7501. else
  7502. case $host_os in
  7503. openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  7504. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  7505. hardcode_libdir_flag_spec='-R$libdir'
  7506. ;;
  7507. *)
  7508. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  7509. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  7510. ;;
  7511. esac
  7512. fi
  7513. else
  7514. ld_shlibs=no
  7515. fi
  7516. ;;
  7517. os2*)
  7518. hardcode_libdir_flag_spec='-L$libdir'
  7519. hardcode_minus_L=yes
  7520. allow_undefined_flag=unsupported
  7521. 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'
  7522. old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  7523. ;;
  7524. osf3*)
  7525. if test "$GCC" = yes; then
  7526. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  7527. archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  7528. else
  7529. allow_undefined_flag=' -expect_unresolved \*'
  7530. archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
  7531. fi
  7532. archive_cmds_need_lc='no'
  7533. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7534. hardcode_libdir_separator=:
  7535. ;;
  7536. osf4* | osf5*) # as osf3* with the addition of -msym flag
  7537. if test "$GCC" = yes; then
  7538. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  7539. archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  7540. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7541. else
  7542. allow_undefined_flag=' -expect_unresolved \*'
  7543. archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
  7544. 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~
  7545. $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
  7546. # Both c and cxx compiler support -rpath directly
  7547. hardcode_libdir_flag_spec='-rpath $libdir'
  7548. fi
  7549. archive_cmds_need_lc='no'
  7550. hardcode_libdir_separator=:
  7551. ;;
  7552. solaris*)
  7553. no_undefined_flag=' -z defs'
  7554. if test "$GCC" = yes; then
  7555. wlarc='${wl}'
  7556. archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  7557. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  7558. $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  7559. else
  7560. case `$CC -V 2>&1` in
  7561. *"Compilers 5.0"*)
  7562. wlarc=''
  7563. archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  7564. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  7565. $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
  7566. ;;
  7567. *)
  7568. wlarc='${wl}'
  7569. archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
  7570. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  7571. $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  7572. ;;
  7573. esac
  7574. fi
  7575. hardcode_libdir_flag_spec='-R$libdir'
  7576. hardcode_shlibpath_var=no
  7577. case $host_os in
  7578. solaris2.[0-5] | solaris2.[0-5].*) ;;
  7579. *)
  7580. # The compiler driver will combine and reorder linker options,
  7581. # but understands `-z linker_flag'. GCC discards it without `$wl',
  7582. # but is careful enough not to reorder.
  7583. # Supported since Solaris 2.6 (maybe 2.5.1?)
  7584. if test "$GCC" = yes; then
  7585. whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  7586. else
  7587. whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
  7588. fi
  7589. ;;
  7590. esac
  7591. link_all_deplibs=yes
  7592. ;;
  7593. sunos4*)
  7594. if test "x$host_vendor" = xsequent; then
  7595. # Use $CC to link under sequent, because it throws in some extra .o
  7596. # files that make .init and .fini sections work.
  7597. archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  7598. else
  7599. archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  7600. fi
  7601. hardcode_libdir_flag_spec='-L$libdir'
  7602. hardcode_direct=yes
  7603. hardcode_minus_L=yes
  7604. hardcode_shlibpath_var=no
  7605. ;;
  7606. sysv4)
  7607. case $host_vendor in
  7608. sni)
  7609. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  7610. hardcode_direct=yes # is this really true???
  7611. ;;
  7612. siemens)
  7613. ## LD is ld it makes a PLAMLIB
  7614. ## CC just makes a GrossModule.
  7615. archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  7616. reload_cmds='$CC -r -o $output$reload_objs'
  7617. hardcode_direct=no
  7618. ;;
  7619. motorola)
  7620. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  7621. hardcode_direct=no #Motorola manual says yes, but my tests say they lie
  7622. ;;
  7623. esac
  7624. runpath_var='LD_RUN_PATH'
  7625. hardcode_shlibpath_var=no
  7626. ;;
  7627. sysv4.3*)
  7628. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  7629. hardcode_shlibpath_var=no
  7630. export_dynamic_flag_spec='-Bexport'
  7631. ;;
  7632. sysv4*MP*)
  7633. if test -d /usr/nec; then
  7634. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  7635. hardcode_shlibpath_var=no
  7636. runpath_var=LD_RUN_PATH
  7637. hardcode_runpath_var=yes
  7638. ld_shlibs=yes
  7639. fi
  7640. ;;
  7641. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  7642. no_undefined_flag='${wl}-z,text'
  7643. archive_cmds_need_lc=no
  7644. hardcode_shlibpath_var=no
  7645. runpath_var='LD_RUN_PATH'
  7646. if test "$GCC" = yes; then
  7647. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  7648. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  7649. else
  7650. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  7651. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  7652. fi
  7653. ;;
  7654. sysv5* | sco3.2v5* | sco5v6*)
  7655. # Note: We can NOT use -z defs as we might desire, because we do not
  7656. # link with -lc, and that would cause any symbols used from libc to
  7657. # always be unresolved, which means just about no library would
  7658. # ever link correctly. If we're not using GNU ld we use -z text
  7659. # though, which does catch some bad symbols but isn't as heavy-handed
  7660. # as -z defs.
  7661. no_undefined_flag='${wl}-z,text'
  7662. allow_undefined_flag='${wl}-z,nodefs'
  7663. archive_cmds_need_lc=no
  7664. hardcode_shlibpath_var=no
  7665. hardcode_libdir_flag_spec='${wl}-R,$libdir'
  7666. hardcode_libdir_separator=':'
  7667. link_all_deplibs=yes
  7668. export_dynamic_flag_spec='${wl}-Bexport'
  7669. runpath_var='LD_RUN_PATH'
  7670. if test "$GCC" = yes; then
  7671. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  7672. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  7673. else
  7674. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  7675. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  7676. fi
  7677. ;;
  7678. uts4*)
  7679. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  7680. hardcode_libdir_flag_spec='-L$libdir'
  7681. hardcode_shlibpath_var=no
  7682. ;;
  7683. *)
  7684. ld_shlibs=no
  7685. ;;
  7686. esac
  7687. if test x$host_vendor = xsni; then
  7688. case $host in
  7689. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  7690. export_dynamic_flag_spec='${wl}-Blargedynsym'
  7691. ;;
  7692. esac
  7693. fi
  7694. fi
  7695. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
  7696. $as_echo "$ld_shlibs" >&6; }
  7697. test "$ld_shlibs" = no && can_build_shared=no
  7698. with_gnu_ld=$with_gnu_ld
  7699. #
  7700. # Do we need to explicitly link libc?
  7701. #
  7702. case "x$archive_cmds_need_lc" in
  7703. x|xyes)
  7704. # Assume -lc should be added
  7705. archive_cmds_need_lc=yes
  7706. if test "$enable_shared" = yes && test "$GCC" = yes; then
  7707. case $archive_cmds in
  7708. *'~'*)
  7709. # FIXME: we may have to deal with multi-command sequences.
  7710. ;;
  7711. '$CC '*)
  7712. # Test whether the compiler implicitly links with -lc since on some
  7713. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  7714. # to ld, don't add -lc before -lgcc.
  7715. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  7716. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  7717. $RM conftest*
  7718. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7719. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  7720. (eval $ac_compile) 2>&5
  7721. ac_status=$?
  7722. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  7723. test $ac_status = 0; } 2>conftest.err; then
  7724. soname=conftest
  7725. lib=conftest
  7726. libobjs=conftest.$ac_objext
  7727. deplibs=
  7728. wl=$lt_prog_compiler_wl
  7729. pic_flag=$lt_prog_compiler_pic
  7730. compiler_flags=-v
  7731. linker_flags=-v
  7732. verstring=
  7733. output_objdir=.
  7734. libname=conftest
  7735. lt_save_allow_undefined_flag=$allow_undefined_flag
  7736. allow_undefined_flag=
  7737. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  7738. (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  7739. ac_status=$?
  7740. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  7741. test $ac_status = 0; }
  7742. then
  7743. archive_cmds_need_lc=no
  7744. else
  7745. archive_cmds_need_lc=yes
  7746. fi
  7747. allow_undefined_flag=$lt_save_allow_undefined_flag
  7748. else
  7749. cat conftest.err 1>&5
  7750. fi
  7751. $RM conftest*
  7752. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
  7753. $as_echo "$archive_cmds_need_lc" >&6; }
  7754. ;;
  7755. esac
  7756. fi
  7757. ;;
  7758. esac
  7759. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  7760. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  7761. if test "$GCC" = yes; then
  7762. case $host_os in
  7763. darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
  7764. *) lt_awk_arg="/^libraries:/" ;;
  7765. esac
  7766. lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  7767. if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
  7768. # if the path contains ";" then we assume it to be the separator
  7769. # otherwise default to the standard path separator (i.e. ":") - it is
  7770. # assumed that no part of a normal pathname contains ";" but that should
  7771. # okay in the real world where ";" in dirpaths is itself problematic.
  7772. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
  7773. else
  7774. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  7775. fi
  7776. # Ok, now we have the path, separated by spaces, we can step through it
  7777. # and add multilib dir if necessary.
  7778. lt_tmp_lt_search_path_spec=
  7779. lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
  7780. for lt_sys_path in $lt_search_path_spec; do
  7781. if test -d "$lt_sys_path/$lt_multi_os_dir"; then
  7782. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
  7783. else
  7784. test -d "$lt_sys_path" && \
  7785. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
  7786. fi
  7787. done
  7788. lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
  7789. BEGIN {RS=" "; FS="/|\n";} {
  7790. lt_foo="";
  7791. lt_count=0;
  7792. for (lt_i = NF; lt_i > 0; lt_i--) {
  7793. if ($lt_i != "" && $lt_i != ".") {
  7794. if ($lt_i == "..") {
  7795. lt_count++;
  7796. } else {
  7797. if (lt_count == 0) {
  7798. lt_foo="/" $lt_i lt_foo;
  7799. } else {
  7800. lt_count--;
  7801. }
  7802. }
  7803. }
  7804. }
  7805. if (lt_foo != "") { lt_freq[lt_foo]++; }
  7806. if (lt_freq[lt_foo] == 1) { print lt_foo; }
  7807. }'`
  7808. sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
  7809. else
  7810. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  7811. fi
  7812. library_names_spec=
  7813. libname_spec='lib$name'
  7814. soname_spec=
  7815. shrext_cmds=".so"
  7816. postinstall_cmds=
  7817. postuninstall_cmds=
  7818. finish_cmds=
  7819. finish_eval=
  7820. shlibpath_var=
  7821. shlibpath_overrides_runpath=unknown
  7822. version_type=none
  7823. dynamic_linker="$host_os ld.so"
  7824. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  7825. need_lib_prefix=unknown
  7826. hardcode_into_libs=no
  7827. # when you set need_version to no, make sure it does not cause -set_version
  7828. # flags to be left without arguments
  7829. need_version=unknown
  7830. case $host_os in
  7831. aix3*)
  7832. version_type=linux
  7833. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  7834. shlibpath_var=LIBPATH
  7835. # AIX 3 has no versioning support, so we append a major version to the name.
  7836. soname_spec='${libname}${release}${shared_ext}$major'
  7837. ;;
  7838. aix[4-9]*)
  7839. version_type=linux
  7840. need_lib_prefix=no
  7841. need_version=no
  7842. hardcode_into_libs=yes
  7843. if test "$host_cpu" = ia64; then
  7844. # AIX 5 supports IA64
  7845. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  7846. shlibpath_var=LD_LIBRARY_PATH
  7847. else
  7848. # With GCC up to 2.95.x, collect2 would create an import file
  7849. # for dependence libraries. The import file would start with
  7850. # the line `#! .'. This would cause the generated library to
  7851. # depend on `.', always an invalid library. This was fixed in
  7852. # development snapshots of GCC prior to 3.0.
  7853. case $host_os in
  7854. aix4 | aix4.[01] | aix4.[01].*)
  7855. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  7856. echo ' yes '
  7857. echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  7858. :
  7859. else
  7860. can_build_shared=no
  7861. fi
  7862. ;;
  7863. esac
  7864. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  7865. # soname into executable. Probably we can add versioning support to
  7866. # collect2, so additional links can be useful in future.
  7867. if test "$aix_use_runtimelinking" = yes; then
  7868. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  7869. # instead of lib<name>.a to let people know that these are not
  7870. # typical AIX shared libraries.
  7871. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  7872. else
  7873. # We preserve .a as extension for shared libraries through AIX4.2
  7874. # and later when we are not doing run time linking.
  7875. library_names_spec='${libname}${release}.a $libname.a'
  7876. soname_spec='${libname}${release}${shared_ext}$major'
  7877. fi
  7878. shlibpath_var=LIBPATH
  7879. fi
  7880. ;;
  7881. amigaos*)
  7882. case $host_cpu in
  7883. powerpc)
  7884. # Since July 2007 AmigaOS4 officially supports .so libraries.
  7885. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  7886. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  7887. ;;
  7888. m68k)
  7889. library_names_spec='$libname.ixlibrary $libname.a'
  7890. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  7891. finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''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'
  7892. ;;
  7893. esac
  7894. ;;
  7895. beos*)
  7896. library_names_spec='${libname}${shared_ext}'
  7897. dynamic_linker="$host_os ld.so"
  7898. shlibpath_var=LIBRARY_PATH
  7899. ;;
  7900. bsdi[45]*)
  7901. version_type=linux
  7902. need_version=no
  7903. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  7904. soname_spec='${libname}${release}${shared_ext}$major'
  7905. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  7906. shlibpath_var=LD_LIBRARY_PATH
  7907. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  7908. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  7909. # the default ld.so.conf also contains /usr/contrib/lib and
  7910. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  7911. # libtool to hard-code these into programs
  7912. ;;
  7913. cygwin* | mingw* | pw32* | cegcc*)
  7914. version_type=windows
  7915. shrext_cmds=".dll"
  7916. need_version=no
  7917. need_lib_prefix=no
  7918. case $GCC,$host_os in
  7919. yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
  7920. library_names_spec='$libname.dll.a'
  7921. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  7922. postinstall_cmds='base_file=`basename \${file}`~
  7923. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  7924. dldir=$destdir/`dirname \$dlpath`~
  7925. test -d \$dldir || mkdir -p \$dldir~
  7926. $install_prog $dir/$dlname \$dldir/$dlname~
  7927. chmod a+x \$dldir/$dlname~
  7928. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  7929. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  7930. fi'
  7931. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  7932. dlpath=$dir/\$dldll~
  7933. $RM \$dlpath'
  7934. shlibpath_overrides_runpath=yes
  7935. case $host_os in
  7936. cygwin*)
  7937. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  7938. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  7939. sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
  7940. ;;
  7941. mingw* | cegcc*)
  7942. # MinGW DLLs use traditional 'lib' prefix
  7943. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  7944. sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  7945. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  7946. # It is most probably a Windows format PATH printed by
  7947. # mingw gcc, but we are running on Cygwin. Gcc prints its search
  7948. # path with ; separators, and with drive letters. We can handle the
  7949. # drive letters (cygwin fileutils understands them), so leave them,
  7950. # especially as we might pass files found there to a mingw objdump,
  7951. # which wouldn't understand a cygwinified path. Ahh.
  7952. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  7953. else
  7954. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  7955. fi
  7956. ;;
  7957. pw32*)
  7958. # pw32 DLLs use 'pw' prefix rather than 'lib'
  7959. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  7960. ;;
  7961. esac
  7962. ;;
  7963. *)
  7964. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  7965. ;;
  7966. esac
  7967. dynamic_linker='Win32 ld.exe'
  7968. # FIXME: first we should search . and the directory the executable is in
  7969. shlibpath_var=PATH
  7970. ;;
  7971. darwin* | rhapsody*)
  7972. dynamic_linker="$host_os dyld"
  7973. version_type=darwin
  7974. need_lib_prefix=no
  7975. need_version=no
  7976. library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  7977. soname_spec='${libname}${release}${major}$shared_ext'
  7978. shlibpath_overrides_runpath=yes
  7979. shlibpath_var=DYLD_LIBRARY_PATH
  7980. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  7981. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
  7982. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  7983. ;;
  7984. dgux*)
  7985. version_type=linux
  7986. need_lib_prefix=no
  7987. need_version=no
  7988. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  7989. soname_spec='${libname}${release}${shared_ext}$major'
  7990. shlibpath_var=LD_LIBRARY_PATH
  7991. ;;
  7992. freebsd1*)
  7993. dynamic_linker=no
  7994. ;;
  7995. freebsd* | dragonfly*)
  7996. # DragonFly does not have aout. When/if they implement a new
  7997. # versioning mechanism, adjust this.
  7998. if test -x /usr/bin/objformat; then
  7999. objformat=`/usr/bin/objformat`
  8000. else
  8001. case $host_os in
  8002. freebsd[123]*) objformat=aout ;;
  8003. *) objformat=elf ;;
  8004. esac
  8005. fi
  8006. version_type=freebsd-$objformat
  8007. case $version_type in
  8008. freebsd-elf*)
  8009. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  8010. need_version=no
  8011. need_lib_prefix=no
  8012. ;;
  8013. freebsd-*)
  8014. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  8015. need_version=yes
  8016. ;;
  8017. esac
  8018. shlibpath_var=LD_LIBRARY_PATH
  8019. case $host_os in
  8020. freebsd2*)
  8021. shlibpath_overrides_runpath=yes
  8022. ;;
  8023. freebsd3.[01]* | freebsdelf3.[01]*)
  8024. shlibpath_overrides_runpath=yes
  8025. hardcode_into_libs=yes
  8026. ;;
  8027. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  8028. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  8029. shlibpath_overrides_runpath=no
  8030. hardcode_into_libs=yes
  8031. ;;
  8032. *) # from 4.6 on, and DragonFly
  8033. shlibpath_overrides_runpath=yes
  8034. hardcode_into_libs=yes
  8035. ;;
  8036. esac
  8037. ;;
  8038. gnu*)
  8039. version_type=linux
  8040. need_lib_prefix=no
  8041. need_version=no
  8042. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  8043. soname_spec='${libname}${release}${shared_ext}$major'
  8044. shlibpath_var=LD_LIBRARY_PATH
  8045. hardcode_into_libs=yes
  8046. ;;
  8047. hpux9* | hpux10* | hpux11*)
  8048. # Give a soname corresponding to the major version so that dld.sl refuses to
  8049. # link against other versions.
  8050. version_type=sunos
  8051. need_lib_prefix=no
  8052. need_version=no
  8053. case $host_cpu in
  8054. ia64*)
  8055. shrext_cmds='.so'
  8056. hardcode_into_libs=yes
  8057. dynamic_linker="$host_os dld.so"
  8058. shlibpath_var=LD_LIBRARY_PATH
  8059. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  8060. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8061. soname_spec='${libname}${release}${shared_ext}$major'
  8062. if test "X$HPUX_IA64_MODE" = X32; then
  8063. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  8064. else
  8065. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  8066. fi
  8067. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  8068. ;;
  8069. hppa*64*)
  8070. shrext_cmds='.sl'
  8071. hardcode_into_libs=yes
  8072. dynamic_linker="$host_os dld.sl"
  8073. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  8074. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  8075. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8076. soname_spec='${libname}${release}${shared_ext}$major'
  8077. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  8078. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  8079. ;;
  8080. *)
  8081. shrext_cmds='.sl'
  8082. dynamic_linker="$host_os dld.sl"
  8083. shlibpath_var=SHLIB_PATH
  8084. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  8085. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8086. soname_spec='${libname}${release}${shared_ext}$major'
  8087. ;;
  8088. esac
  8089. # HP-UX runs *really* slowly unless shared libraries are mode 555.
  8090. postinstall_cmds='chmod 555 $lib'
  8091. ;;
  8092. interix[3-9]*)
  8093. version_type=linux
  8094. need_lib_prefix=no
  8095. need_version=no
  8096. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  8097. soname_spec='${libname}${release}${shared_ext}$major'
  8098. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  8099. shlibpath_var=LD_LIBRARY_PATH
  8100. shlibpath_overrides_runpath=no
  8101. hardcode_into_libs=yes
  8102. ;;
  8103. irix5* | irix6* | nonstopux*)
  8104. case $host_os in
  8105. nonstopux*) version_type=nonstopux ;;
  8106. *)
  8107. if test "$lt_cv_prog_gnu_ld" = yes; then
  8108. version_type=linux
  8109. else
  8110. version_type=irix
  8111. fi ;;
  8112. esac
  8113. need_lib_prefix=no
  8114. need_version=no
  8115. soname_spec='${libname}${release}${shared_ext}$major'
  8116. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  8117. case $host_os in
  8118. irix5* | nonstopux*)
  8119. libsuff= shlibsuff=
  8120. ;;
  8121. *)
  8122. case $LD in # libtool.m4 will add one of these switches to LD
  8123. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  8124. libsuff= shlibsuff= libmagic=32-bit;;
  8125. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  8126. libsuff=32 shlibsuff=N32 libmagic=N32;;
  8127. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  8128. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  8129. *) libsuff= shlibsuff= libmagic=never-match;;
  8130. esac
  8131. ;;
  8132. esac
  8133. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  8134. shlibpath_overrides_runpath=no
  8135. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  8136. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  8137. hardcode_into_libs=yes
  8138. ;;
  8139. # No shared lib support for Linux oldld, aout, or coff.
  8140. linux*oldld* | linux*aout* | linux*coff*)
  8141. dynamic_linker=no
  8142. ;;
  8143. # This must be Linux ELF.
  8144. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  8145. version_type=linux
  8146. need_lib_prefix=no
  8147. need_version=no
  8148. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8149. soname_spec='${libname}${release}${shared_ext}$major'
  8150. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  8151. shlibpath_var=LD_LIBRARY_PATH
  8152. shlibpath_overrides_runpath=no
  8153. # Some binutils ld are patched to set DT_RUNPATH
  8154. save_LDFLAGS=$LDFLAGS
  8155. save_libdir=$libdir
  8156. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
  8157. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
  8158. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8159. /* end confdefs.h. */
  8160. int
  8161. main ()
  8162. {
  8163. ;
  8164. return 0;
  8165. }
  8166. _ACEOF
  8167. if ac_fn_c_try_link "$LINENO"; then :
  8168. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  8169. shlibpath_overrides_runpath=yes
  8170. fi
  8171. fi
  8172. rm -f core conftest.err conftest.$ac_objext \
  8173. conftest$ac_exeext conftest.$ac_ext
  8174. LDFLAGS=$save_LDFLAGS
  8175. libdir=$save_libdir
  8176. # This implies no fast_install, which is unacceptable.
  8177. # Some rework will be needed to allow for fast_install
  8178. # before this can be enabled.
  8179. hardcode_into_libs=yes
  8180. # Append ld.so.conf contents to the search path
  8181. if test -f /etc/ld.so.conf; then
  8182. 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;/^$/d' | tr '\n' ' '`
  8183. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  8184. fi
  8185. # We used to test for /lib/ld.so.1 and disable shared libraries on
  8186. # powerpc, because MkLinux only supported shared libraries with the
  8187. # GNU dynamic linker. Since this was broken with cross compilers,
  8188. # most powerpc-linux boxes support dynamic linking these days and
  8189. # people can always --disable-shared, the test was removed, and we
  8190. # assume the GNU/Linux dynamic linker is in use.
  8191. dynamic_linker='GNU/Linux ld.so'
  8192. ;;
  8193. netbsdelf*-gnu)
  8194. version_type=linux
  8195. need_lib_prefix=no
  8196. need_version=no
  8197. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  8198. soname_spec='${libname}${release}${shared_ext}$major'
  8199. shlibpath_var=LD_LIBRARY_PATH
  8200. shlibpath_overrides_runpath=no
  8201. hardcode_into_libs=yes
  8202. dynamic_linker='NetBSD ld.elf_so'
  8203. ;;
  8204. netbsd*)
  8205. version_type=sunos
  8206. need_lib_prefix=no
  8207. need_version=no
  8208. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  8209. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  8210. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  8211. dynamic_linker='NetBSD (a.out) ld.so'
  8212. else
  8213. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  8214. soname_spec='${libname}${release}${shared_ext}$major'
  8215. dynamic_linker='NetBSD ld.elf_so'
  8216. fi
  8217. shlibpath_var=LD_LIBRARY_PATH
  8218. shlibpath_overrides_runpath=yes
  8219. hardcode_into_libs=yes
  8220. ;;
  8221. newsos6)
  8222. version_type=linux
  8223. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8224. shlibpath_var=LD_LIBRARY_PATH
  8225. shlibpath_overrides_runpath=yes
  8226. ;;
  8227. *nto* | *qnx*)
  8228. version_type=qnx
  8229. need_lib_prefix=no
  8230. need_version=no
  8231. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8232. soname_spec='${libname}${release}${shared_ext}$major'
  8233. shlibpath_var=LD_LIBRARY_PATH
  8234. shlibpath_overrides_runpath=no
  8235. hardcode_into_libs=yes
  8236. dynamic_linker='ldqnx.so'
  8237. ;;
  8238. openbsd*)
  8239. version_type=sunos
  8240. sys_lib_dlsearch_path_spec="/usr/lib"
  8241. need_lib_prefix=no
  8242. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  8243. case $host_os in
  8244. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  8245. *) need_version=no ;;
  8246. esac
  8247. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  8248. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  8249. shlibpath_var=LD_LIBRARY_PATH
  8250. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  8251. case $host_os in
  8252. openbsd2.[89] | openbsd2.[89].*)
  8253. shlibpath_overrides_runpath=no
  8254. ;;
  8255. *)
  8256. shlibpath_overrides_runpath=yes
  8257. ;;
  8258. esac
  8259. else
  8260. shlibpath_overrides_runpath=yes
  8261. fi
  8262. ;;
  8263. os2*)
  8264. libname_spec='$name'
  8265. shrext_cmds=".dll"
  8266. need_lib_prefix=no
  8267. library_names_spec='$libname${shared_ext} $libname.a'
  8268. dynamic_linker='OS/2 ld.exe'
  8269. shlibpath_var=LIBPATH
  8270. ;;
  8271. osf3* | osf4* | osf5*)
  8272. version_type=osf
  8273. need_lib_prefix=no
  8274. need_version=no
  8275. soname_spec='${libname}${release}${shared_ext}$major'
  8276. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8277. shlibpath_var=LD_LIBRARY_PATH
  8278. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  8279. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  8280. ;;
  8281. rdos*)
  8282. dynamic_linker=no
  8283. ;;
  8284. solaris*)
  8285. version_type=linux
  8286. need_lib_prefix=no
  8287. need_version=no
  8288. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8289. soname_spec='${libname}${release}${shared_ext}$major'
  8290. shlibpath_var=LD_LIBRARY_PATH
  8291. shlibpath_overrides_runpath=yes
  8292. hardcode_into_libs=yes
  8293. # ldd complains unless libraries are executable
  8294. postinstall_cmds='chmod +x $lib'
  8295. ;;
  8296. sunos4*)
  8297. version_type=sunos
  8298. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  8299. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  8300. shlibpath_var=LD_LIBRARY_PATH
  8301. shlibpath_overrides_runpath=yes
  8302. if test "$with_gnu_ld" = yes; then
  8303. need_lib_prefix=no
  8304. fi
  8305. need_version=yes
  8306. ;;
  8307. sysv4 | sysv4.3*)
  8308. version_type=linux
  8309. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8310. soname_spec='${libname}${release}${shared_ext}$major'
  8311. shlibpath_var=LD_LIBRARY_PATH
  8312. case $host_vendor in
  8313. sni)
  8314. shlibpath_overrides_runpath=no
  8315. need_lib_prefix=no
  8316. runpath_var=LD_RUN_PATH
  8317. ;;
  8318. siemens)
  8319. need_lib_prefix=no
  8320. ;;
  8321. motorola)
  8322. need_lib_prefix=no
  8323. need_version=no
  8324. shlibpath_overrides_runpath=no
  8325. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  8326. ;;
  8327. esac
  8328. ;;
  8329. sysv4*MP*)
  8330. if test -d /usr/nec ;then
  8331. version_type=linux
  8332. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  8333. soname_spec='$libname${shared_ext}.$major'
  8334. shlibpath_var=LD_LIBRARY_PATH
  8335. fi
  8336. ;;
  8337. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  8338. version_type=freebsd-elf
  8339. need_lib_prefix=no
  8340. need_version=no
  8341. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  8342. soname_spec='${libname}${release}${shared_ext}$major'
  8343. shlibpath_var=LD_LIBRARY_PATH
  8344. shlibpath_overrides_runpath=yes
  8345. hardcode_into_libs=yes
  8346. if test "$with_gnu_ld" = yes; then
  8347. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  8348. else
  8349. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  8350. case $host_os in
  8351. sco3.2v5*)
  8352. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  8353. ;;
  8354. esac
  8355. fi
  8356. sys_lib_dlsearch_path_spec='/usr/lib'
  8357. ;;
  8358. tpf*)
  8359. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  8360. version_type=linux
  8361. need_lib_prefix=no
  8362. need_version=no
  8363. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8364. shlibpath_var=LD_LIBRARY_PATH
  8365. shlibpath_overrides_runpath=no
  8366. hardcode_into_libs=yes
  8367. ;;
  8368. uts4*)
  8369. version_type=linux
  8370. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8371. soname_spec='${libname}${release}${shared_ext}$major'
  8372. shlibpath_var=LD_LIBRARY_PATH
  8373. ;;
  8374. *)
  8375. dynamic_linker=no
  8376. ;;
  8377. esac
  8378. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  8379. $as_echo "$dynamic_linker" >&6; }
  8380. test "$dynamic_linker" = no && can_build_shared=no
  8381. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  8382. if test "$GCC" = yes; then
  8383. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  8384. fi
  8385. if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  8386. sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  8387. fi
  8388. if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  8389. sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  8390. fi
  8391. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  8392. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  8393. hardcode_action=
  8394. if test -n "$hardcode_libdir_flag_spec" ||
  8395. test -n "$runpath_var" ||
  8396. test "X$hardcode_automatic" = "Xyes" ; then
  8397. # We can hardcode non-existent directories.
  8398. if test "$hardcode_direct" != no &&
  8399. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  8400. # have to relink, otherwise we might link with an installed library
  8401. # when we should be linking with a yet-to-be-installed one
  8402. ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
  8403. test "$hardcode_minus_L" != no; then
  8404. # Linking always hardcodes the temporary library directory.
  8405. hardcode_action=relink
  8406. else
  8407. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  8408. hardcode_action=immediate
  8409. fi
  8410. else
  8411. # We cannot hardcode anything, or else we can only hardcode existing
  8412. # directories.
  8413. hardcode_action=unsupported
  8414. fi
  8415. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
  8416. $as_echo "$hardcode_action" >&6; }
  8417. if test "$hardcode_action" = relink ||
  8418. test "$inherit_rpath" = yes; then
  8419. # Fast installation is not supported
  8420. enable_fast_install=no
  8421. elif test "$shlibpath_overrides_runpath" = yes ||
  8422. test "$enable_shared" = no; then
  8423. # Fast installation is not necessary
  8424. enable_fast_install=needless
  8425. fi
  8426. if test "x$enable_dlopen" != xyes; then
  8427. enable_dlopen=unknown
  8428. enable_dlopen_self=unknown
  8429. enable_dlopen_self_static=unknown
  8430. else
  8431. lt_cv_dlopen=no
  8432. lt_cv_dlopen_libs=
  8433. case $host_os in
  8434. beos*)
  8435. lt_cv_dlopen="load_add_on"
  8436. lt_cv_dlopen_libs=
  8437. lt_cv_dlopen_self=yes
  8438. ;;
  8439. mingw* | pw32* | cegcc*)
  8440. lt_cv_dlopen="LoadLibrary"
  8441. lt_cv_dlopen_libs=
  8442. ;;
  8443. cygwin*)
  8444. lt_cv_dlopen="dlopen"
  8445. lt_cv_dlopen_libs=
  8446. ;;
  8447. darwin*)
  8448. # if libdl is installed we need to link against it
  8449. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  8450. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  8451. if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
  8452. $as_echo_n "(cached) " >&6
  8453. else
  8454. ac_check_lib_save_LIBS=$LIBS
  8455. LIBS="-ldl $LIBS"
  8456. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8457. /* end confdefs.h. */
  8458. /* Override any GCC internal prototype to avoid an error.
  8459. Use char because int might match the return type of a GCC
  8460. builtin and then its argument prototype would still apply. */
  8461. #ifdef __cplusplus
  8462. extern "C"
  8463. #endif
  8464. char dlopen ();
  8465. int
  8466. main ()
  8467. {
  8468. return dlopen ();
  8469. ;
  8470. return 0;
  8471. }
  8472. _ACEOF
  8473. if ac_fn_c_try_link "$LINENO"; then :
  8474. ac_cv_lib_dl_dlopen=yes
  8475. else
  8476. ac_cv_lib_dl_dlopen=no
  8477. fi
  8478. rm -f core conftest.err conftest.$ac_objext \
  8479. conftest$ac_exeext conftest.$ac_ext
  8480. LIBS=$ac_check_lib_save_LIBS
  8481. fi
  8482. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  8483. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  8484. if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
  8485. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  8486. else
  8487. lt_cv_dlopen="dyld"
  8488. lt_cv_dlopen_libs=
  8489. lt_cv_dlopen_self=yes
  8490. fi
  8491. ;;
  8492. *)
  8493. ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
  8494. if test "x$ac_cv_func_shl_load" = x""yes; then :
  8495. lt_cv_dlopen="shl_load"
  8496. else
  8497. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
  8498. $as_echo_n "checking for shl_load in -ldld... " >&6; }
  8499. if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
  8500. $as_echo_n "(cached) " >&6
  8501. else
  8502. ac_check_lib_save_LIBS=$LIBS
  8503. LIBS="-ldld $LIBS"
  8504. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8505. /* end confdefs.h. */
  8506. /* Override any GCC internal prototype to avoid an error.
  8507. Use char because int might match the return type of a GCC
  8508. builtin and then its argument prototype would still apply. */
  8509. #ifdef __cplusplus
  8510. extern "C"
  8511. #endif
  8512. char shl_load ();
  8513. int
  8514. main ()
  8515. {
  8516. return shl_load ();
  8517. ;
  8518. return 0;
  8519. }
  8520. _ACEOF
  8521. if ac_fn_c_try_link "$LINENO"; then :
  8522. ac_cv_lib_dld_shl_load=yes
  8523. else
  8524. ac_cv_lib_dld_shl_load=no
  8525. fi
  8526. rm -f core conftest.err conftest.$ac_objext \
  8527. conftest$ac_exeext conftest.$ac_ext
  8528. LIBS=$ac_check_lib_save_LIBS
  8529. fi
  8530. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
  8531. $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
  8532. if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
  8533. lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
  8534. else
  8535. ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
  8536. if test "x$ac_cv_func_dlopen" = x""yes; then :
  8537. lt_cv_dlopen="dlopen"
  8538. else
  8539. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  8540. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  8541. if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
  8542. $as_echo_n "(cached) " >&6
  8543. else
  8544. ac_check_lib_save_LIBS=$LIBS
  8545. LIBS="-ldl $LIBS"
  8546. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8547. /* end confdefs.h. */
  8548. /* Override any GCC internal prototype to avoid an error.
  8549. Use char because int might match the return type of a GCC
  8550. builtin and then its argument prototype would still apply. */
  8551. #ifdef __cplusplus
  8552. extern "C"
  8553. #endif
  8554. char dlopen ();
  8555. int
  8556. main ()
  8557. {
  8558. return dlopen ();
  8559. ;
  8560. return 0;
  8561. }
  8562. _ACEOF
  8563. if ac_fn_c_try_link "$LINENO"; then :
  8564. ac_cv_lib_dl_dlopen=yes
  8565. else
  8566. ac_cv_lib_dl_dlopen=no
  8567. fi
  8568. rm -f core conftest.err conftest.$ac_objext \
  8569. conftest$ac_exeext conftest.$ac_ext
  8570. LIBS=$ac_check_lib_save_LIBS
  8571. fi
  8572. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  8573. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  8574. if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
  8575. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  8576. else
  8577. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
  8578. $as_echo_n "checking for dlopen in -lsvld... " >&6; }
  8579. if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
  8580. $as_echo_n "(cached) " >&6
  8581. else
  8582. ac_check_lib_save_LIBS=$LIBS
  8583. LIBS="-lsvld $LIBS"
  8584. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8585. /* end confdefs.h. */
  8586. /* Override any GCC internal prototype to avoid an error.
  8587. Use char because int might match the return type of a GCC
  8588. builtin and then its argument prototype would still apply. */
  8589. #ifdef __cplusplus
  8590. extern "C"
  8591. #endif
  8592. char dlopen ();
  8593. int
  8594. main ()
  8595. {
  8596. return dlopen ();
  8597. ;
  8598. return 0;
  8599. }
  8600. _ACEOF
  8601. if ac_fn_c_try_link "$LINENO"; then :
  8602. ac_cv_lib_svld_dlopen=yes
  8603. else
  8604. ac_cv_lib_svld_dlopen=no
  8605. fi
  8606. rm -f core conftest.err conftest.$ac_objext \
  8607. conftest$ac_exeext conftest.$ac_ext
  8608. LIBS=$ac_check_lib_save_LIBS
  8609. fi
  8610. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
  8611. $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
  8612. if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
  8613. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
  8614. else
  8615. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
  8616. $as_echo_n "checking for dld_link in -ldld... " >&6; }
  8617. if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
  8618. $as_echo_n "(cached) " >&6
  8619. else
  8620. ac_check_lib_save_LIBS=$LIBS
  8621. LIBS="-ldld $LIBS"
  8622. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8623. /* end confdefs.h. */
  8624. /* Override any GCC internal prototype to avoid an error.
  8625. Use char because int might match the return type of a GCC
  8626. builtin and then its argument prototype would still apply. */
  8627. #ifdef __cplusplus
  8628. extern "C"
  8629. #endif
  8630. char dld_link ();
  8631. int
  8632. main ()
  8633. {
  8634. return dld_link ();
  8635. ;
  8636. return 0;
  8637. }
  8638. _ACEOF
  8639. if ac_fn_c_try_link "$LINENO"; then :
  8640. ac_cv_lib_dld_dld_link=yes
  8641. else
  8642. ac_cv_lib_dld_dld_link=no
  8643. fi
  8644. rm -f core conftest.err conftest.$ac_objext \
  8645. conftest$ac_exeext conftest.$ac_ext
  8646. LIBS=$ac_check_lib_save_LIBS
  8647. fi
  8648. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
  8649. $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
  8650. if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
  8651. lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
  8652. fi
  8653. fi
  8654. fi
  8655. fi
  8656. fi
  8657. fi
  8658. ;;
  8659. esac
  8660. if test "x$lt_cv_dlopen" != xno; then
  8661. enable_dlopen=yes
  8662. else
  8663. enable_dlopen=no
  8664. fi
  8665. case $lt_cv_dlopen in
  8666. dlopen)
  8667. save_CPPFLAGS="$CPPFLAGS"
  8668. test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  8669. save_LDFLAGS="$LDFLAGS"
  8670. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  8671. save_LIBS="$LIBS"
  8672. LIBS="$lt_cv_dlopen_libs $LIBS"
  8673. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
  8674. $as_echo_n "checking whether a program can dlopen itself... " >&6; }
  8675. if test "${lt_cv_dlopen_self+set}" = set; then :
  8676. $as_echo_n "(cached) " >&6
  8677. else
  8678. if test "$cross_compiling" = yes; then :
  8679. lt_cv_dlopen_self=cross
  8680. else
  8681. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  8682. lt_status=$lt_dlunknown
  8683. cat > conftest.$ac_ext <<_LT_EOF
  8684. #line __oline__ "configure"
  8685. #include "confdefs.h"
  8686. #if HAVE_DLFCN_H
  8687. #include <dlfcn.h>
  8688. #endif
  8689. #include <stdio.h>
  8690. #ifdef RTLD_GLOBAL
  8691. # define LT_DLGLOBAL RTLD_GLOBAL
  8692. #else
  8693. # ifdef DL_GLOBAL
  8694. # define LT_DLGLOBAL DL_GLOBAL
  8695. # else
  8696. # define LT_DLGLOBAL 0
  8697. # endif
  8698. #endif
  8699. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  8700. find out it does not work in some platform. */
  8701. #ifndef LT_DLLAZY_OR_NOW
  8702. # ifdef RTLD_LAZY
  8703. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  8704. # else
  8705. # ifdef DL_LAZY
  8706. # define LT_DLLAZY_OR_NOW DL_LAZY
  8707. # else
  8708. # ifdef RTLD_NOW
  8709. # define LT_DLLAZY_OR_NOW RTLD_NOW
  8710. # else
  8711. # ifdef DL_NOW
  8712. # define LT_DLLAZY_OR_NOW DL_NOW
  8713. # else
  8714. # define LT_DLLAZY_OR_NOW 0
  8715. # endif
  8716. # endif
  8717. # endif
  8718. # endif
  8719. #endif
  8720. void fnord() { int i=42;}
  8721. int main ()
  8722. {
  8723. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  8724. int status = $lt_dlunknown;
  8725. if (self)
  8726. {
  8727. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  8728. else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  8729. /* dlclose (self); */
  8730. }
  8731. else
  8732. puts (dlerror ());
  8733. return status;
  8734. }
  8735. _LT_EOF
  8736. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  8737. (eval $ac_link) 2>&5
  8738. ac_status=$?
  8739. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  8740. test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  8741. (./conftest; exit; ) >&5 2>/dev/null
  8742. lt_status=$?
  8743. case x$lt_status in
  8744. x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  8745. x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  8746. x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
  8747. esac
  8748. else :
  8749. # compilation failed
  8750. lt_cv_dlopen_self=no
  8751. fi
  8752. fi
  8753. rm -fr conftest*
  8754. fi
  8755. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
  8756. $as_echo "$lt_cv_dlopen_self" >&6; }
  8757. if test "x$lt_cv_dlopen_self" = xyes; then
  8758. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  8759. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
  8760. $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
  8761. if test "${lt_cv_dlopen_self_static+set}" = set; then :
  8762. $as_echo_n "(cached) " >&6
  8763. else
  8764. if test "$cross_compiling" = yes; then :
  8765. lt_cv_dlopen_self_static=cross
  8766. else
  8767. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  8768. lt_status=$lt_dlunknown
  8769. cat > conftest.$ac_ext <<_LT_EOF
  8770. #line __oline__ "configure"
  8771. #include "confdefs.h"
  8772. #if HAVE_DLFCN_H
  8773. #include <dlfcn.h>
  8774. #endif
  8775. #include <stdio.h>
  8776. #ifdef RTLD_GLOBAL
  8777. # define LT_DLGLOBAL RTLD_GLOBAL
  8778. #else
  8779. # ifdef DL_GLOBAL
  8780. # define LT_DLGLOBAL DL_GLOBAL
  8781. # else
  8782. # define LT_DLGLOBAL 0
  8783. # endif
  8784. #endif
  8785. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  8786. find out it does not work in some platform. */
  8787. #ifndef LT_DLLAZY_OR_NOW
  8788. # ifdef RTLD_LAZY
  8789. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  8790. # else
  8791. # ifdef DL_LAZY
  8792. # define LT_DLLAZY_OR_NOW DL_LAZY
  8793. # else
  8794. # ifdef RTLD_NOW
  8795. # define LT_DLLAZY_OR_NOW RTLD_NOW
  8796. # else
  8797. # ifdef DL_NOW
  8798. # define LT_DLLAZY_OR_NOW DL_NOW
  8799. # else
  8800. # define LT_DLLAZY_OR_NOW 0
  8801. # endif
  8802. # endif
  8803. # endif
  8804. # endif
  8805. #endif
  8806. void fnord() { int i=42;}
  8807. int main ()
  8808. {
  8809. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  8810. int status = $lt_dlunknown;
  8811. if (self)
  8812. {
  8813. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  8814. else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  8815. /* dlclose (self); */
  8816. }
  8817. else
  8818. puts (dlerror ());
  8819. return status;
  8820. }
  8821. _LT_EOF
  8822. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  8823. (eval $ac_link) 2>&5
  8824. ac_status=$?
  8825. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  8826. test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  8827. (./conftest; exit; ) >&5 2>/dev/null
  8828. lt_status=$?
  8829. case x$lt_status in
  8830. x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  8831. x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  8832. x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
  8833. esac
  8834. else :
  8835. # compilation failed
  8836. lt_cv_dlopen_self_static=no
  8837. fi
  8838. fi
  8839. rm -fr conftest*
  8840. fi
  8841. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
  8842. $as_echo "$lt_cv_dlopen_self_static" >&6; }
  8843. fi
  8844. CPPFLAGS="$save_CPPFLAGS"
  8845. LDFLAGS="$save_LDFLAGS"
  8846. LIBS="$save_LIBS"
  8847. ;;
  8848. esac
  8849. case $lt_cv_dlopen_self in
  8850. yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  8851. *) enable_dlopen_self=unknown ;;
  8852. esac
  8853. case $lt_cv_dlopen_self_static in
  8854. yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  8855. *) enable_dlopen_self_static=unknown ;;
  8856. esac
  8857. fi
  8858. striplib=
  8859. old_striplib=
  8860. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
  8861. $as_echo_n "checking whether stripping libraries is possible... " >&6; }
  8862. if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
  8863. test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  8864. test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  8865. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  8866. $as_echo "yes" >&6; }
  8867. else
  8868. # FIXME - insert some real tests, host_os isn't really good enough
  8869. case $host_os in
  8870. darwin*)
  8871. if test -n "$STRIP" ; then
  8872. striplib="$STRIP -x"
  8873. old_striplib="$STRIP -S"
  8874. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  8875. $as_echo "yes" >&6; }
  8876. else
  8877. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8878. $as_echo "no" >&6; }
  8879. fi
  8880. ;;
  8881. *)
  8882. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8883. $as_echo "no" >&6; }
  8884. ;;
  8885. esac
  8886. fi
  8887. # Report which library types will actually be built
  8888. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
  8889. $as_echo_n "checking if libtool supports shared libraries... " >&6; }
  8890. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
  8891. $as_echo "$can_build_shared" >&6; }
  8892. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
  8893. $as_echo_n "checking whether to build shared libraries... " >&6; }
  8894. test "$can_build_shared" = "no" && enable_shared=no
  8895. # On AIX, shared libraries and static libraries use the same namespace, and
  8896. # are all built from PIC.
  8897. case $host_os in
  8898. aix3*)
  8899. test "$enable_shared" = yes && enable_static=no
  8900. if test -n "$RANLIB"; then
  8901. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  8902. postinstall_cmds='$RANLIB $lib'
  8903. fi
  8904. ;;
  8905. aix[4-9]*)
  8906. if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  8907. test "$enable_shared" = yes && enable_static=no
  8908. fi
  8909. ;;
  8910. esac
  8911. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
  8912. $as_echo "$enable_shared" >&6; }
  8913. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
  8914. $as_echo_n "checking whether to build static libraries... " >&6; }
  8915. # Make sure either enable_shared or enable_static is yes.
  8916. test "$enable_shared" = yes || enable_static=yes
  8917. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
  8918. $as_echo "$enable_static" >&6; }
  8919. fi
  8920. ac_ext=c
  8921. ac_cpp='$CPP $CPPFLAGS'
  8922. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  8923. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  8924. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  8925. CC="$lt_save_CC"
  8926. ac_config_commands="$ac_config_commands libtool"
  8927. # Only expand once:
  8928. if test -n "$ac_tool_prefix"; then
  8929. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  8930. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  8931. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8932. $as_echo_n "checking for $ac_word... " >&6; }
  8933. if test "${ac_cv_prog_RANLIB+set}" = set; then :
  8934. $as_echo_n "(cached) " >&6
  8935. else
  8936. if test -n "$RANLIB"; then
  8937. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  8938. else
  8939. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8940. for as_dir in $PATH
  8941. do
  8942. IFS=$as_save_IFS
  8943. test -z "$as_dir" && as_dir=.
  8944. for ac_exec_ext in '' $ac_executable_extensions; do
  8945. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  8946. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  8947. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  8948. break 2
  8949. fi
  8950. done
  8951. done
  8952. IFS=$as_save_IFS
  8953. fi
  8954. fi
  8955. RANLIB=$ac_cv_prog_RANLIB
  8956. if test -n "$RANLIB"; then
  8957. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  8958. $as_echo "$RANLIB" >&6; }
  8959. else
  8960. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8961. $as_echo "no" >&6; }
  8962. fi
  8963. fi
  8964. if test -z "$ac_cv_prog_RANLIB"; then
  8965. ac_ct_RANLIB=$RANLIB
  8966. # Extract the first word of "ranlib", so it can be a program name with args.
  8967. set dummy ranlib; ac_word=$2
  8968. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8969. $as_echo_n "checking for $ac_word... " >&6; }
  8970. if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
  8971. $as_echo_n "(cached) " >&6
  8972. else
  8973. if test -n "$ac_ct_RANLIB"; then
  8974. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  8975. else
  8976. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8977. for as_dir in $PATH
  8978. do
  8979. IFS=$as_save_IFS
  8980. test -z "$as_dir" && as_dir=.
  8981. for ac_exec_ext in '' $ac_executable_extensions; do
  8982. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  8983. ac_cv_prog_ac_ct_RANLIB="ranlib"
  8984. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  8985. break 2
  8986. fi
  8987. done
  8988. done
  8989. IFS=$as_save_IFS
  8990. fi
  8991. fi
  8992. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  8993. if test -n "$ac_ct_RANLIB"; then
  8994. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  8995. $as_echo "$ac_ct_RANLIB" >&6; }
  8996. else
  8997. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8998. $as_echo "no" >&6; }
  8999. fi
  9000. if test "x$ac_ct_RANLIB" = x; then
  9001. RANLIB=":"
  9002. else
  9003. case $cross_compiling:$ac_tool_warned in
  9004. yes:)
  9005. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  9006. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  9007. ac_tool_warned=yes ;;
  9008. esac
  9009. RANLIB=$ac_ct_RANLIB
  9010. fi
  9011. else
  9012. RANLIB="$ac_cv_prog_RANLIB"
  9013. fi
  9014. ac_ext=cpp
  9015. ac_cpp='$CXXCPP $CPPFLAGS'
  9016. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  9017. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  9018. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  9019. if test -z "$CXX"; then
  9020. if test -n "$CCC"; then
  9021. CXX=$CCC
  9022. else
  9023. if test -n "$ac_tool_prefix"; then
  9024. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  9025. do
  9026. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  9027. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  9028. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9029. $as_echo_n "checking for $ac_word... " >&6; }
  9030. if test "${ac_cv_prog_CXX+set}" = set; then :
  9031. $as_echo_n "(cached) " >&6
  9032. else
  9033. if test -n "$CXX"; then
  9034. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  9035. else
  9036. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9037. for as_dir in $PATH
  9038. do
  9039. IFS=$as_save_IFS
  9040. test -z "$as_dir" && as_dir=.
  9041. for ac_exec_ext in '' $ac_executable_extensions; do
  9042. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  9043. ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  9044. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9045. break 2
  9046. fi
  9047. done
  9048. done
  9049. IFS=$as_save_IFS
  9050. fi
  9051. fi
  9052. CXX=$ac_cv_prog_CXX
  9053. if test -n "$CXX"; then
  9054. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
  9055. $as_echo "$CXX" >&6; }
  9056. else
  9057. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9058. $as_echo "no" >&6; }
  9059. fi
  9060. test -n "$CXX" && break
  9061. done
  9062. fi
  9063. if test -z "$CXX"; then
  9064. ac_ct_CXX=$CXX
  9065. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  9066. do
  9067. # Extract the first word of "$ac_prog", so it can be a program name with args.
  9068. set dummy $ac_prog; ac_word=$2
  9069. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9070. $as_echo_n "checking for $ac_word... " >&6; }
  9071. if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
  9072. $as_echo_n "(cached) " >&6
  9073. else
  9074. if test -n "$ac_ct_CXX"; then
  9075. ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  9076. else
  9077. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9078. for as_dir in $PATH
  9079. do
  9080. IFS=$as_save_IFS
  9081. test -z "$as_dir" && as_dir=.
  9082. for ac_exec_ext in '' $ac_executable_extensions; do
  9083. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  9084. ac_cv_prog_ac_ct_CXX="$ac_prog"
  9085. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9086. break 2
  9087. fi
  9088. done
  9089. done
  9090. IFS=$as_save_IFS
  9091. fi
  9092. fi
  9093. ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  9094. if test -n "$ac_ct_CXX"; then
  9095. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
  9096. $as_echo "$ac_ct_CXX" >&6; }
  9097. else
  9098. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9099. $as_echo "no" >&6; }
  9100. fi
  9101. test -n "$ac_ct_CXX" && break
  9102. done
  9103. if test "x$ac_ct_CXX" = x; then
  9104. CXX="g++"
  9105. else
  9106. case $cross_compiling:$ac_tool_warned in
  9107. yes:)
  9108. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  9109. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  9110. ac_tool_warned=yes ;;
  9111. esac
  9112. CXX=$ac_ct_CXX
  9113. fi
  9114. fi
  9115. fi
  9116. fi
  9117. # Provide some information about the compiler.
  9118. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
  9119. set X $ac_compile
  9120. ac_compiler=$2
  9121. for ac_option in --version -v -V -qversion; do
  9122. { { ac_try="$ac_compiler $ac_option >&5"
  9123. case "(($ac_try" in
  9124. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9125. *) ac_try_echo=$ac_try;;
  9126. esac
  9127. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  9128. $as_echo "$ac_try_echo"; } >&5
  9129. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  9130. ac_status=$?
  9131. if test -s conftest.err; then
  9132. sed '10a\
  9133. ... rest of stderr output deleted ...
  9134. 10q' conftest.err >conftest.er1
  9135. cat conftest.er1 >&5
  9136. fi
  9137. rm -f conftest.er1 conftest.err
  9138. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9139. test $ac_status = 0; }
  9140. done
  9141. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
  9142. $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
  9143. if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
  9144. $as_echo_n "(cached) " >&6
  9145. else
  9146. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9147. /* end confdefs.h. */
  9148. int
  9149. main ()
  9150. {
  9151. #ifndef __GNUC__
  9152. choke me
  9153. #endif
  9154. ;
  9155. return 0;
  9156. }
  9157. _ACEOF
  9158. if ac_fn_cxx_try_compile "$LINENO"; then :
  9159. ac_compiler_gnu=yes
  9160. else
  9161. ac_compiler_gnu=no
  9162. fi
  9163. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9164. ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  9165. fi
  9166. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
  9167. $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
  9168. if test $ac_compiler_gnu = yes; then
  9169. GXX=yes
  9170. else
  9171. GXX=
  9172. fi
  9173. ac_test_CXXFLAGS=${CXXFLAGS+set}
  9174. ac_save_CXXFLAGS=$CXXFLAGS
  9175. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
  9176. $as_echo_n "checking whether $CXX accepts -g... " >&6; }
  9177. if test "${ac_cv_prog_cxx_g+set}" = set; then :
  9178. $as_echo_n "(cached) " >&6
  9179. else
  9180. ac_save_cxx_werror_flag=$ac_cxx_werror_flag
  9181. ac_cxx_werror_flag=yes
  9182. ac_cv_prog_cxx_g=no
  9183. CXXFLAGS="-g"
  9184. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9185. /* end confdefs.h. */
  9186. int
  9187. main ()
  9188. {
  9189. ;
  9190. return 0;
  9191. }
  9192. _ACEOF
  9193. if ac_fn_cxx_try_compile "$LINENO"; then :
  9194. ac_cv_prog_cxx_g=yes
  9195. else
  9196. CXXFLAGS=""
  9197. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9198. /* end confdefs.h. */
  9199. int
  9200. main ()
  9201. {
  9202. ;
  9203. return 0;
  9204. }
  9205. _ACEOF
  9206. if ac_fn_cxx_try_compile "$LINENO"; then :
  9207. else
  9208. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  9209. CXXFLAGS="-g"
  9210. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9211. /* end confdefs.h. */
  9212. int
  9213. main ()
  9214. {
  9215. ;
  9216. return 0;
  9217. }
  9218. _ACEOF
  9219. if ac_fn_cxx_try_compile "$LINENO"; then :
  9220. ac_cv_prog_cxx_g=yes
  9221. fi
  9222. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9223. fi
  9224. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9225. fi
  9226. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9227. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  9228. fi
  9229. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
  9230. $as_echo "$ac_cv_prog_cxx_g" >&6; }
  9231. if test "$ac_test_CXXFLAGS" = set; then
  9232. CXXFLAGS=$ac_save_CXXFLAGS
  9233. elif test $ac_cv_prog_cxx_g = yes; then
  9234. if test "$GXX" = yes; then
  9235. CXXFLAGS="-g -O2"
  9236. else
  9237. CXXFLAGS="-g"
  9238. fi
  9239. else
  9240. if test "$GXX" = yes; then
  9241. CXXFLAGS="-O2"
  9242. else
  9243. CXXFLAGS=
  9244. fi
  9245. fi
  9246. ac_ext=c
  9247. ac_cpp='$CPP $CPPFLAGS'
  9248. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  9249. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  9250. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  9251. depcc="$CXX" am_compiler_list=
  9252. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  9253. $as_echo_n "checking dependency style of $depcc... " >&6; }
  9254. if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
  9255. $as_echo_n "(cached) " >&6
  9256. else
  9257. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  9258. # We make a subdir and do the tests there. Otherwise we can end up
  9259. # making bogus files that we don't know about and never remove. For
  9260. # instance it was reported that on HP-UX the gcc test will end up
  9261. # making a dummy file named `D' -- because `-MD' means `put the output
  9262. # in D'.
  9263. mkdir conftest.dir
  9264. # Copy depcomp to subdir because otherwise we won't find it if we're
  9265. # using a relative directory.
  9266. cp "$am_depcomp" conftest.dir
  9267. cd conftest.dir
  9268. # We will build objects and dependencies in a subdirectory because
  9269. # it helps to detect inapplicable dependency modes. For instance
  9270. # both Tru64's cc and ICC support -MD to output dependencies as a
  9271. # side effect of compilation, but ICC will put the dependencies in
  9272. # the current directory while Tru64 will put them in the object
  9273. # directory.
  9274. mkdir sub
  9275. am_cv_CXX_dependencies_compiler_type=none
  9276. if test "$am_compiler_list" = ""; then
  9277. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  9278. fi
  9279. am__universal=false
  9280. case " $depcc " in #(
  9281. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  9282. esac
  9283. for depmode in $am_compiler_list; do
  9284. # Setup a source with many dependencies, because some compilers
  9285. # like to wrap large dependency lists on column 80 (with \), and
  9286. # we should not choose a depcomp mode which is confused by this.
  9287. #
  9288. # We need to recreate these files for each test, as the compiler may
  9289. # overwrite some of them when testing with obscure command lines.
  9290. # This happens at least with the AIX C compiler.
  9291. : > sub/conftest.c
  9292. for i in 1 2 3 4 5 6; do
  9293. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  9294. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  9295. # Solaris 8's {/usr,}/bin/sh.
  9296. touch sub/conftst$i.h
  9297. done
  9298. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  9299. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  9300. # mode. It turns out that the SunPro C++ compiler does not properly
  9301. # handle `-M -o', and we need to detect this. Also, some Intel
  9302. # versions had trouble with output in subdirs
  9303. am__obj=sub/conftest.${OBJEXT-o}
  9304. am__minus_obj="-o $am__obj"
  9305. case $depmode in
  9306. gcc)
  9307. # This depmode causes a compiler race in universal mode.
  9308. test "$am__universal" = false || continue
  9309. ;;
  9310. nosideeffect)
  9311. # after this tag, mechanisms are not by side-effect, so they'll
  9312. # only be used when explicitly requested
  9313. if test "x$enable_dependency_tracking" = xyes; then
  9314. continue
  9315. else
  9316. break
  9317. fi
  9318. ;;
  9319. msvisualcpp | msvcmsys)
  9320. # This compiler won't grok `-c -o', but also, the minuso test has
  9321. # not run yet. These depmodes are late enough in the game, and
  9322. # so weak that their functioning should not be impacted.
  9323. am__obj=conftest.${OBJEXT-o}
  9324. am__minus_obj=
  9325. ;;
  9326. none) break ;;
  9327. esac
  9328. if depmode=$depmode \
  9329. source=sub/conftest.c object=$am__obj \
  9330. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  9331. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  9332. >/dev/null 2>conftest.err &&
  9333. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  9334. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  9335. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  9336. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  9337. # icc doesn't choke on unknown options, it will just issue warnings
  9338. # or remarks (even with -Werror). So we grep stderr for any message
  9339. # that says an option was ignored or not supported.
  9340. # When given -MP, icc 7.0 and 7.1 complain thusly:
  9341. # icc: Command line warning: ignoring option '-M'; no argument required
  9342. # The diagnosis changed in icc 8.0:
  9343. # icc: Command line remark: option '-MP' not supported
  9344. if (grep 'ignoring option' conftest.err ||
  9345. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  9346. am_cv_CXX_dependencies_compiler_type=$depmode
  9347. break
  9348. fi
  9349. fi
  9350. done
  9351. cd ..
  9352. rm -rf conftest.dir
  9353. else
  9354. am_cv_CXX_dependencies_compiler_type=none
  9355. fi
  9356. fi
  9357. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
  9358. $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
  9359. CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
  9360. if
  9361. test "x$enable_dependency_tracking" != xno \
  9362. && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
  9363. am__fastdepCXX_TRUE=
  9364. am__fastdepCXX_FALSE='#'
  9365. else
  9366. am__fastdepCXX_TRUE='#'
  9367. am__fastdepCXX_FALSE=
  9368. fi
  9369. ac_ext=cpp
  9370. ac_cpp='$CXXCPP $CPPFLAGS'
  9371. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  9372. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  9373. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  9374. if test -z "$CXX"; then
  9375. if test -n "$CCC"; then
  9376. CXX=$CCC
  9377. else
  9378. if test -n "$ac_tool_prefix"; then
  9379. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  9380. do
  9381. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  9382. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  9383. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9384. $as_echo_n "checking for $ac_word... " >&6; }
  9385. if test "${ac_cv_prog_CXX+set}" = set; then :
  9386. $as_echo_n "(cached) " >&6
  9387. else
  9388. if test -n "$CXX"; then
  9389. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  9390. else
  9391. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9392. for as_dir in $PATH
  9393. do
  9394. IFS=$as_save_IFS
  9395. test -z "$as_dir" && as_dir=.
  9396. for ac_exec_ext in '' $ac_executable_extensions; do
  9397. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  9398. ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  9399. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9400. break 2
  9401. fi
  9402. done
  9403. done
  9404. IFS=$as_save_IFS
  9405. fi
  9406. fi
  9407. CXX=$ac_cv_prog_CXX
  9408. if test -n "$CXX"; then
  9409. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
  9410. $as_echo "$CXX" >&6; }
  9411. else
  9412. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9413. $as_echo "no" >&6; }
  9414. fi
  9415. test -n "$CXX" && break
  9416. done
  9417. fi
  9418. if test -z "$CXX"; then
  9419. ac_ct_CXX=$CXX
  9420. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  9421. do
  9422. # Extract the first word of "$ac_prog", so it can be a program name with args.
  9423. set dummy $ac_prog; ac_word=$2
  9424. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9425. $as_echo_n "checking for $ac_word... " >&6; }
  9426. if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
  9427. $as_echo_n "(cached) " >&6
  9428. else
  9429. if test -n "$ac_ct_CXX"; then
  9430. ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  9431. else
  9432. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9433. for as_dir in $PATH
  9434. do
  9435. IFS=$as_save_IFS
  9436. test -z "$as_dir" && as_dir=.
  9437. for ac_exec_ext in '' $ac_executable_extensions; do
  9438. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  9439. ac_cv_prog_ac_ct_CXX="$ac_prog"
  9440. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9441. break 2
  9442. fi
  9443. done
  9444. done
  9445. IFS=$as_save_IFS
  9446. fi
  9447. fi
  9448. ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  9449. if test -n "$ac_ct_CXX"; then
  9450. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
  9451. $as_echo "$ac_ct_CXX" >&6; }
  9452. else
  9453. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9454. $as_echo "no" >&6; }
  9455. fi
  9456. test -n "$ac_ct_CXX" && break
  9457. done
  9458. if test "x$ac_ct_CXX" = x; then
  9459. CXX="g++"
  9460. else
  9461. case $cross_compiling:$ac_tool_warned in
  9462. yes:)
  9463. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  9464. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  9465. ac_tool_warned=yes ;;
  9466. esac
  9467. CXX=$ac_ct_CXX
  9468. fi
  9469. fi
  9470. fi
  9471. fi
  9472. # Provide some information about the compiler.
  9473. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
  9474. set X $ac_compile
  9475. ac_compiler=$2
  9476. for ac_option in --version -v -V -qversion; do
  9477. { { ac_try="$ac_compiler $ac_option >&5"
  9478. case "(($ac_try" in
  9479. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9480. *) ac_try_echo=$ac_try;;
  9481. esac
  9482. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  9483. $as_echo "$ac_try_echo"; } >&5
  9484. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  9485. ac_status=$?
  9486. if test -s conftest.err; then
  9487. sed '10a\
  9488. ... rest of stderr output deleted ...
  9489. 10q' conftest.err >conftest.er1
  9490. cat conftest.er1 >&5
  9491. fi
  9492. rm -f conftest.er1 conftest.err
  9493. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9494. test $ac_status = 0; }
  9495. done
  9496. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
  9497. $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
  9498. if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
  9499. $as_echo_n "(cached) " >&6
  9500. else
  9501. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9502. /* end confdefs.h. */
  9503. int
  9504. main ()
  9505. {
  9506. #ifndef __GNUC__
  9507. choke me
  9508. #endif
  9509. ;
  9510. return 0;
  9511. }
  9512. _ACEOF
  9513. if ac_fn_cxx_try_compile "$LINENO"; then :
  9514. ac_compiler_gnu=yes
  9515. else
  9516. ac_compiler_gnu=no
  9517. fi
  9518. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9519. ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  9520. fi
  9521. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
  9522. $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
  9523. if test $ac_compiler_gnu = yes; then
  9524. GXX=yes
  9525. else
  9526. GXX=
  9527. fi
  9528. ac_test_CXXFLAGS=${CXXFLAGS+set}
  9529. ac_save_CXXFLAGS=$CXXFLAGS
  9530. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
  9531. $as_echo_n "checking whether $CXX accepts -g... " >&6; }
  9532. if test "${ac_cv_prog_cxx_g+set}" = set; then :
  9533. $as_echo_n "(cached) " >&6
  9534. else
  9535. ac_save_cxx_werror_flag=$ac_cxx_werror_flag
  9536. ac_cxx_werror_flag=yes
  9537. ac_cv_prog_cxx_g=no
  9538. CXXFLAGS="-g"
  9539. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9540. /* end confdefs.h. */
  9541. int
  9542. main ()
  9543. {
  9544. ;
  9545. return 0;
  9546. }
  9547. _ACEOF
  9548. if ac_fn_cxx_try_compile "$LINENO"; then :
  9549. ac_cv_prog_cxx_g=yes
  9550. else
  9551. CXXFLAGS=""
  9552. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9553. /* end confdefs.h. */
  9554. int
  9555. main ()
  9556. {
  9557. ;
  9558. return 0;
  9559. }
  9560. _ACEOF
  9561. if ac_fn_cxx_try_compile "$LINENO"; then :
  9562. else
  9563. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  9564. CXXFLAGS="-g"
  9565. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9566. /* end confdefs.h. */
  9567. int
  9568. main ()
  9569. {
  9570. ;
  9571. return 0;
  9572. }
  9573. _ACEOF
  9574. if ac_fn_cxx_try_compile "$LINENO"; then :
  9575. ac_cv_prog_cxx_g=yes
  9576. fi
  9577. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9578. fi
  9579. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9580. fi
  9581. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9582. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  9583. fi
  9584. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
  9585. $as_echo "$ac_cv_prog_cxx_g" >&6; }
  9586. if test "$ac_test_CXXFLAGS" = set; then
  9587. CXXFLAGS=$ac_save_CXXFLAGS
  9588. elif test $ac_cv_prog_cxx_g = yes; then
  9589. if test "$GXX" = yes; then
  9590. CXXFLAGS="-g -O2"
  9591. else
  9592. CXXFLAGS="-g"
  9593. fi
  9594. else
  9595. if test "$GXX" = yes; then
  9596. CXXFLAGS="-O2"
  9597. else
  9598. CXXFLAGS=
  9599. fi
  9600. fi
  9601. ac_ext=c
  9602. ac_cpp='$CPP $CPPFLAGS'
  9603. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  9604. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  9605. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  9606. depcc="$CXX" am_compiler_list=
  9607. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  9608. $as_echo_n "checking dependency style of $depcc... " >&6; }
  9609. if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
  9610. $as_echo_n "(cached) " >&6
  9611. else
  9612. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  9613. # We make a subdir and do the tests there. Otherwise we can end up
  9614. # making bogus files that we don't know about and never remove. For
  9615. # instance it was reported that on HP-UX the gcc test will end up
  9616. # making a dummy file named `D' -- because `-MD' means `put the output
  9617. # in D'.
  9618. mkdir conftest.dir
  9619. # Copy depcomp to subdir because otherwise we won't find it if we're
  9620. # using a relative directory.
  9621. cp "$am_depcomp" conftest.dir
  9622. cd conftest.dir
  9623. # We will build objects and dependencies in a subdirectory because
  9624. # it helps to detect inapplicable dependency modes. For instance
  9625. # both Tru64's cc and ICC support -MD to output dependencies as a
  9626. # side effect of compilation, but ICC will put the dependencies in
  9627. # the current directory while Tru64 will put them in the object
  9628. # directory.
  9629. mkdir sub
  9630. am_cv_CXX_dependencies_compiler_type=none
  9631. if test "$am_compiler_list" = ""; then
  9632. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  9633. fi
  9634. am__universal=false
  9635. case " $depcc " in #(
  9636. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  9637. esac
  9638. for depmode in $am_compiler_list; do
  9639. # Setup a source with many dependencies, because some compilers
  9640. # like to wrap large dependency lists on column 80 (with \), and
  9641. # we should not choose a depcomp mode which is confused by this.
  9642. #
  9643. # We need to recreate these files for each test, as the compiler may
  9644. # overwrite some of them when testing with obscure command lines.
  9645. # This happens at least with the AIX C compiler.
  9646. : > sub/conftest.c
  9647. for i in 1 2 3 4 5 6; do
  9648. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  9649. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  9650. # Solaris 8's {/usr,}/bin/sh.
  9651. touch sub/conftst$i.h
  9652. done
  9653. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  9654. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  9655. # mode. It turns out that the SunPro C++ compiler does not properly
  9656. # handle `-M -o', and we need to detect this. Also, some Intel
  9657. # versions had trouble with output in subdirs
  9658. am__obj=sub/conftest.${OBJEXT-o}
  9659. am__minus_obj="-o $am__obj"
  9660. case $depmode in
  9661. gcc)
  9662. # This depmode causes a compiler race in universal mode.
  9663. test "$am__universal" = false || continue
  9664. ;;
  9665. nosideeffect)
  9666. # after this tag, mechanisms are not by side-effect, so they'll
  9667. # only be used when explicitly requested
  9668. if test "x$enable_dependency_tracking" = xyes; then
  9669. continue
  9670. else
  9671. break
  9672. fi
  9673. ;;
  9674. msvisualcpp | msvcmsys)
  9675. # This compiler won't grok `-c -o', but also, the minuso test has
  9676. # not run yet. These depmodes are late enough in the game, and
  9677. # so weak that their functioning should not be impacted.
  9678. am__obj=conftest.${OBJEXT-o}
  9679. am__minus_obj=
  9680. ;;
  9681. none) break ;;
  9682. esac
  9683. if depmode=$depmode \
  9684. source=sub/conftest.c object=$am__obj \
  9685. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  9686. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  9687. >/dev/null 2>conftest.err &&
  9688. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  9689. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  9690. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  9691. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  9692. # icc doesn't choke on unknown options, it will just issue warnings
  9693. # or remarks (even with -Werror). So we grep stderr for any message
  9694. # that says an option was ignored or not supported.
  9695. # When given -MP, icc 7.0 and 7.1 complain thusly:
  9696. # icc: Command line warning: ignoring option '-M'; no argument required
  9697. # The diagnosis changed in icc 8.0:
  9698. # icc: Command line remark: option '-MP' not supported
  9699. if (grep 'ignoring option' conftest.err ||
  9700. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  9701. am_cv_CXX_dependencies_compiler_type=$depmode
  9702. break
  9703. fi
  9704. fi
  9705. done
  9706. cd ..
  9707. rm -rf conftest.dir
  9708. else
  9709. am_cv_CXX_dependencies_compiler_type=none
  9710. fi
  9711. fi
  9712. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
  9713. $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
  9714. CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
  9715. if
  9716. test "x$enable_dependency_tracking" != xno \
  9717. && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
  9718. am__fastdepCXX_TRUE=
  9719. am__fastdepCXX_FALSE='#'
  9720. else
  9721. am__fastdepCXX_TRUE='#'
  9722. am__fastdepCXX_FALSE=
  9723. fi
  9724. if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
  9725. ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
  9726. (test "X$CXX" != "Xg++"))) ; then
  9727. ac_ext=cpp
  9728. ac_cpp='$CXXCPP $CPPFLAGS'
  9729. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  9730. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  9731. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  9732. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
  9733. $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
  9734. if test -z "$CXXCPP"; then
  9735. if test "${ac_cv_prog_CXXCPP+set}" = set; then :
  9736. $as_echo_n "(cached) " >&6
  9737. else
  9738. # Double quotes because CXXCPP needs to be expanded
  9739. for CXXCPP in "$CXX -E" "/lib/cpp"
  9740. do
  9741. ac_preproc_ok=false
  9742. for ac_cxx_preproc_warn_flag in '' yes
  9743. do
  9744. # Use a header file that comes with gcc, so configuring glibc
  9745. # with a fresh cross-compiler works.
  9746. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  9747. # <limits.h> exists even on freestanding compilers.
  9748. # On the NeXT, cc -E runs the code through the compiler's parser,
  9749. # not just through cpp. "Syntax error" is here to catch this case.
  9750. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9751. /* end confdefs.h. */
  9752. @%:@ifdef __STDC__
  9753. @%:@ include <limits.h>
  9754. @%:@else
  9755. @%:@ include <assert.h>
  9756. @%:@endif
  9757. Syntax error
  9758. _ACEOF
  9759. if ac_fn_cxx_try_cpp "$LINENO"; then :
  9760. else
  9761. # Broken: fails on valid input.
  9762. continue
  9763. fi
  9764. rm -f conftest.err conftest.i conftest.$ac_ext
  9765. # OK, works on sane cases. Now check whether nonexistent headers
  9766. # can be detected and how.
  9767. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9768. /* end confdefs.h. */
  9769. @%:@include <ac_nonexistent.h>
  9770. _ACEOF
  9771. if ac_fn_cxx_try_cpp "$LINENO"; then :
  9772. # Broken: success on invalid input.
  9773. continue
  9774. else
  9775. # Passes both tests.
  9776. ac_preproc_ok=:
  9777. break
  9778. fi
  9779. rm -f conftest.err conftest.i conftest.$ac_ext
  9780. done
  9781. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  9782. rm -f conftest.i conftest.err conftest.$ac_ext
  9783. if $ac_preproc_ok; then :
  9784. break
  9785. fi
  9786. done
  9787. ac_cv_prog_CXXCPP=$CXXCPP
  9788. fi
  9789. CXXCPP=$ac_cv_prog_CXXCPP
  9790. else
  9791. ac_cv_prog_CXXCPP=$CXXCPP
  9792. fi
  9793. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
  9794. $as_echo "$CXXCPP" >&6; }
  9795. ac_preproc_ok=false
  9796. for ac_cxx_preproc_warn_flag in '' yes
  9797. do
  9798. # Use a header file that comes with gcc, so configuring glibc
  9799. # with a fresh cross-compiler works.
  9800. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  9801. # <limits.h> exists even on freestanding compilers.
  9802. # On the NeXT, cc -E runs the code through the compiler's parser,
  9803. # not just through cpp. "Syntax error" is here to catch this case.
  9804. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9805. /* end confdefs.h. */
  9806. @%:@ifdef __STDC__
  9807. @%:@ include <limits.h>
  9808. @%:@else
  9809. @%:@ include <assert.h>
  9810. @%:@endif
  9811. Syntax error
  9812. _ACEOF
  9813. if ac_fn_cxx_try_cpp "$LINENO"; then :
  9814. else
  9815. # Broken: fails on valid input.
  9816. continue
  9817. fi
  9818. rm -f conftest.err conftest.i conftest.$ac_ext
  9819. # OK, works on sane cases. Now check whether nonexistent headers
  9820. # can be detected and how.
  9821. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9822. /* end confdefs.h. */
  9823. @%:@include <ac_nonexistent.h>
  9824. _ACEOF
  9825. if ac_fn_cxx_try_cpp "$LINENO"; then :
  9826. # Broken: success on invalid input.
  9827. continue
  9828. else
  9829. # Passes both tests.
  9830. ac_preproc_ok=:
  9831. break
  9832. fi
  9833. rm -f conftest.err conftest.i conftest.$ac_ext
  9834. done
  9835. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  9836. rm -f conftest.i conftest.err conftest.$ac_ext
  9837. if $ac_preproc_ok; then :
  9838. else
  9839. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  9840. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  9841. _lt_caught_CXX_error=yes; }
  9842. fi
  9843. ac_ext=c
  9844. ac_cpp='$CPP $CPPFLAGS'
  9845. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  9846. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  9847. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  9848. else
  9849. _lt_caught_CXX_error=yes
  9850. fi
  9851. ac_ext=cpp
  9852. ac_cpp='$CXXCPP $CPPFLAGS'
  9853. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  9854. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  9855. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  9856. archive_cmds_need_lc_CXX=no
  9857. allow_undefined_flag_CXX=
  9858. always_export_symbols_CXX=no
  9859. archive_expsym_cmds_CXX=
  9860. compiler_needs_object_CXX=no
  9861. export_dynamic_flag_spec_CXX=
  9862. hardcode_direct_CXX=no
  9863. hardcode_direct_absolute_CXX=no
  9864. hardcode_libdir_flag_spec_CXX=
  9865. hardcode_libdir_flag_spec_ld_CXX=
  9866. hardcode_libdir_separator_CXX=
  9867. hardcode_minus_L_CXX=no
  9868. hardcode_shlibpath_var_CXX=unsupported
  9869. hardcode_automatic_CXX=no
  9870. inherit_rpath_CXX=no
  9871. module_cmds_CXX=
  9872. module_expsym_cmds_CXX=
  9873. link_all_deplibs_CXX=unknown
  9874. old_archive_cmds_CXX=$old_archive_cmds
  9875. no_undefined_flag_CXX=
  9876. whole_archive_flag_spec_CXX=
  9877. enable_shared_with_static_runtimes_CXX=no
  9878. # Source file extension for C++ test sources.
  9879. ac_ext=cpp
  9880. # Object file extension for compiled C++ test sources.
  9881. objext=o
  9882. objext_CXX=$objext
  9883. # No sense in running all these tests if we already determined that
  9884. # the CXX compiler isn't working. Some variables (like enable_shared)
  9885. # are currently assumed to apply to all compilers on this platform,
  9886. # and will be corrupted by setting them based on a non-working compiler.
  9887. if test "$_lt_caught_CXX_error" != yes; then
  9888. # Code to be used in simple compile tests
  9889. lt_simple_compile_test_code="int some_variable = 0;"
  9890. # Code to be used in simple link tests
  9891. lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
  9892. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  9893. # If no C compiler was specified, use CC.
  9894. LTCC=${LTCC-"$CC"}
  9895. # If no C compiler flags were specified, use CFLAGS.
  9896. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  9897. # Allow CC to be a program name with arguments.
  9898. compiler=$CC
  9899. # save warnings/boilerplate of simple test code
  9900. ac_outfile=conftest.$ac_objext
  9901. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  9902. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  9903. _lt_compiler_boilerplate=`cat conftest.err`
  9904. $RM conftest*
  9905. ac_outfile=conftest.$ac_objext
  9906. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  9907. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  9908. _lt_linker_boilerplate=`cat conftest.err`
  9909. $RM -r conftest*
  9910. # Allow CC to be a program name with arguments.
  9911. lt_save_CC=$CC
  9912. lt_save_LD=$LD
  9913. lt_save_GCC=$GCC
  9914. GCC=$GXX
  9915. lt_save_with_gnu_ld=$with_gnu_ld
  9916. lt_save_path_LD=$lt_cv_path_LD
  9917. if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
  9918. lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
  9919. else
  9920. $as_unset lt_cv_prog_gnu_ld
  9921. fi
  9922. if test -n "${lt_cv_path_LDCXX+set}"; then
  9923. lt_cv_path_LD=$lt_cv_path_LDCXX
  9924. else
  9925. $as_unset lt_cv_path_LD
  9926. fi
  9927. test -z "${LDCXX+set}" || LD=$LDCXX
  9928. CC=${CXX-"c++"}
  9929. compiler=$CC
  9930. compiler_CXX=$CC
  9931. for cc_temp in $compiler""; do
  9932. case $cc_temp in
  9933. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  9934. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  9935. \-*) ;;
  9936. *) break;;
  9937. esac
  9938. done
  9939. cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  9940. if test -n "$compiler"; then
  9941. # We don't want -fno-exception when compiling C++ code, so set the
  9942. # no_builtin_flag separately
  9943. if test "$GXX" = yes; then
  9944. lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
  9945. else
  9946. lt_prog_compiler_no_builtin_flag_CXX=
  9947. fi
  9948. if test "$GXX" = yes; then
  9949. # Set up default GNU C++ configuration
  9950. @%:@ Check whether --with-gnu-ld was given.
  9951. if test "${with_gnu_ld+set}" = set; then :
  9952. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  9953. else
  9954. with_gnu_ld=no
  9955. fi
  9956. ac_prog=ld
  9957. if test "$GCC" = yes; then
  9958. # Check if gcc -print-prog-name=ld gives a path.
  9959. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  9960. $as_echo_n "checking for ld used by $CC... " >&6; }
  9961. case $host in
  9962. *-*-mingw*)
  9963. # gcc leaves a trailing carriage return which upsets mingw
  9964. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  9965. *)
  9966. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  9967. esac
  9968. case $ac_prog in
  9969. # Accept absolute paths.
  9970. [\\/]* | ?:[\\/]*)
  9971. re_direlt='/[^/][^/]*/\.\./'
  9972. # Canonicalize the pathname of ld
  9973. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  9974. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  9975. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  9976. done
  9977. test -z "$LD" && LD="$ac_prog"
  9978. ;;
  9979. "")
  9980. # If it fails, then pretend we aren't using GCC.
  9981. ac_prog=ld
  9982. ;;
  9983. *)
  9984. # If it is relative, then search for the first ld in PATH.
  9985. with_gnu_ld=unknown
  9986. ;;
  9987. esac
  9988. elif test "$with_gnu_ld" = yes; then
  9989. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  9990. $as_echo_n "checking for GNU ld... " >&6; }
  9991. else
  9992. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  9993. $as_echo_n "checking for non-GNU ld... " >&6; }
  9994. fi
  9995. if test "${lt_cv_path_LD+set}" = set; then :
  9996. $as_echo_n "(cached) " >&6
  9997. else
  9998. if test -z "$LD"; then
  9999. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  10000. for ac_dir in $PATH; do
  10001. IFS="$lt_save_ifs"
  10002. test -z "$ac_dir" && ac_dir=.
  10003. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  10004. lt_cv_path_LD="$ac_dir/$ac_prog"
  10005. # Check to see if the program is GNU ld. I'd rather use --version,
  10006. # but apparently some variants of GNU ld only accept -v.
  10007. # Break only if it was the GNU/non-GNU ld that we prefer.
  10008. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  10009. *GNU* | *'with BFD'*)
  10010. test "$with_gnu_ld" != no && break
  10011. ;;
  10012. *)
  10013. test "$with_gnu_ld" != yes && break
  10014. ;;
  10015. esac
  10016. fi
  10017. done
  10018. IFS="$lt_save_ifs"
  10019. else
  10020. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  10021. fi
  10022. fi
  10023. LD="$lt_cv_path_LD"
  10024. if test -n "$LD"; then
  10025. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  10026. $as_echo "$LD" >&6; }
  10027. else
  10028. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10029. $as_echo "no" >&6; }
  10030. fi
  10031. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  10032. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  10033. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  10034. if test "${lt_cv_prog_gnu_ld+set}" = set; then :
  10035. $as_echo_n "(cached) " >&6
  10036. else
  10037. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  10038. case `$LD -v 2>&1 </dev/null` in
  10039. *GNU* | *'with BFD'*)
  10040. lt_cv_prog_gnu_ld=yes
  10041. ;;
  10042. *)
  10043. lt_cv_prog_gnu_ld=no
  10044. ;;
  10045. esac
  10046. fi
  10047. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  10048. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  10049. with_gnu_ld=$lt_cv_prog_gnu_ld
  10050. # Check if GNU C++ uses GNU ld as the underlying linker, since the
  10051. # archiving commands below assume that GNU ld is being used.
  10052. if test "$with_gnu_ld" = yes; then
  10053. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  10054. archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  10055. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  10056. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  10057. # If archive_cmds runs LD, not CC, wlarc should be empty
  10058. # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
  10059. # investigate it a little bit more. (MM)
  10060. wlarc='${wl}'
  10061. # ancient GNU ld didn't support --whole-archive et. al.
  10062. if eval "`$CC -print-prog-name=ld` --help 2>&1" |
  10063. $GREP 'no-whole-archive' > /dev/null; then
  10064. whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  10065. else
  10066. whole_archive_flag_spec_CXX=
  10067. fi
  10068. else
  10069. with_gnu_ld=no
  10070. wlarc=
  10071. # A generic and very simple default shared library creation
  10072. # command for GNU C++ for the case where it uses the native
  10073. # linker, instead of GNU ld. If possible, this setting should
  10074. # overridden to take advantage of the native linker features on
  10075. # the platform it is being used on.
  10076. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  10077. fi
  10078. # Commands to make compiler produce verbose output that lists
  10079. # what "hidden" libraries, object files and flags are used when
  10080. # linking a shared library.
  10081. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
  10082. else
  10083. GXX=no
  10084. with_gnu_ld=no
  10085. wlarc=
  10086. fi
  10087. # PORTME: fill in a description of your system's C++ link characteristics
  10088. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  10089. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  10090. ld_shlibs_CXX=yes
  10091. case $host_os in
  10092. aix3*)
  10093. # FIXME: insert proper C++ library support
  10094. ld_shlibs_CXX=no
  10095. ;;
  10096. aix[4-9]*)
  10097. if test "$host_cpu" = ia64; then
  10098. # On IA64, the linker does run time linking by default, so we don't
  10099. # have to do anything special.
  10100. aix_use_runtimelinking=no
  10101. exp_sym_flag='-Bexport'
  10102. no_entry_flag=""
  10103. else
  10104. aix_use_runtimelinking=no
  10105. # Test if we are trying to use run time linking or normal
  10106. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  10107. # need to do runtime linking.
  10108. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  10109. for ld_flag in $LDFLAGS; do
  10110. case $ld_flag in
  10111. *-brtl*)
  10112. aix_use_runtimelinking=yes
  10113. break
  10114. ;;
  10115. esac
  10116. done
  10117. ;;
  10118. esac
  10119. exp_sym_flag='-bexport'
  10120. no_entry_flag='-bnoentry'
  10121. fi
  10122. # When large executables or shared objects are built, AIX ld can
  10123. # have problems creating the table of contents. If linking a library
  10124. # or program results in "error TOC overflow" add -mminimal-toc to
  10125. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  10126. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  10127. archive_cmds_CXX=''
  10128. hardcode_direct_CXX=yes
  10129. hardcode_direct_absolute_CXX=yes
  10130. hardcode_libdir_separator_CXX=':'
  10131. link_all_deplibs_CXX=yes
  10132. file_list_spec_CXX='${wl}-f,'
  10133. if test "$GXX" = yes; then
  10134. case $host_os in aix4.[012]|aix4.[012].*)
  10135. # We only want to do this on AIX 4.2 and lower, the check
  10136. # below for broken collect2 doesn't work under 4.3+
  10137. collect2name=`${CC} -print-prog-name=collect2`
  10138. if test -f "$collect2name" &&
  10139. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  10140. then
  10141. # We have reworked collect2
  10142. :
  10143. else
  10144. # We have old collect2
  10145. hardcode_direct_CXX=unsupported
  10146. # It fails to find uninstalled libraries when the uninstalled
  10147. # path is not listed in the libpath. Setting hardcode_minus_L
  10148. # to unsupported forces relinking
  10149. hardcode_minus_L_CXX=yes
  10150. hardcode_libdir_flag_spec_CXX='-L$libdir'
  10151. hardcode_libdir_separator_CXX=
  10152. fi
  10153. esac
  10154. shared_flag='-shared'
  10155. if test "$aix_use_runtimelinking" = yes; then
  10156. shared_flag="$shared_flag "'${wl}-G'
  10157. fi
  10158. else
  10159. # not using gcc
  10160. if test "$host_cpu" = ia64; then
  10161. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  10162. # chokes on -Wl,-G. The following line is correct:
  10163. shared_flag='-G'
  10164. else
  10165. if test "$aix_use_runtimelinking" = yes; then
  10166. shared_flag='${wl}-G'
  10167. else
  10168. shared_flag='${wl}-bM:SRE'
  10169. fi
  10170. fi
  10171. fi
  10172. export_dynamic_flag_spec_CXX='${wl}-bexpall'
  10173. # It seems that -bexpall does not export symbols beginning with
  10174. # underscore (_), so it is better to generate a list of symbols to
  10175. # export.
  10176. always_export_symbols_CXX=yes
  10177. if test "$aix_use_runtimelinking" = yes; then
  10178. # Warning - without using the other runtime loading flags (-brtl),
  10179. # -berok will link without error, but may produce a broken library.
  10180. allow_undefined_flag_CXX='-berok'
  10181. # Determine the default libpath from the value encoded in an empty
  10182. # executable.
  10183. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10184. /* end confdefs.h. */
  10185. int
  10186. main ()
  10187. {
  10188. ;
  10189. return 0;
  10190. }
  10191. _ACEOF
  10192. if ac_fn_cxx_try_link "$LINENO"; then :
  10193. lt_aix_libpath_sed='
  10194. /Import File Strings/,/^$/ {
  10195. /^0/ {
  10196. s/^0 *\(.*\)$/\1/
  10197. p
  10198. }
  10199. }'
  10200. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  10201. # Check for a 64-bit object if we didn't find anything.
  10202. if test -z "$aix_libpath"; then
  10203. aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  10204. fi
  10205. fi
  10206. rm -f core conftest.err conftest.$ac_objext \
  10207. conftest$ac_exeext conftest.$ac_ext
  10208. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  10209. hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
  10210. 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 $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
  10211. else
  10212. if test "$host_cpu" = ia64; then
  10213. hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
  10214. allow_undefined_flag_CXX="-z nodefs"
  10215. 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"
  10216. else
  10217. # Determine the default libpath from the value encoded in an
  10218. # empty executable.
  10219. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10220. /* end confdefs.h. */
  10221. int
  10222. main ()
  10223. {
  10224. ;
  10225. return 0;
  10226. }
  10227. _ACEOF
  10228. if ac_fn_cxx_try_link "$LINENO"; then :
  10229. lt_aix_libpath_sed='
  10230. /Import File Strings/,/^$/ {
  10231. /^0/ {
  10232. s/^0 *\(.*\)$/\1/
  10233. p
  10234. }
  10235. }'
  10236. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  10237. # Check for a 64-bit object if we didn't find anything.
  10238. if test -z "$aix_libpath"; then
  10239. aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  10240. fi
  10241. fi
  10242. rm -f core conftest.err conftest.$ac_objext \
  10243. conftest$ac_exeext conftest.$ac_ext
  10244. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  10245. hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
  10246. # Warning - without using the other run time loading flags,
  10247. # -berok will link without error, but may produce a broken library.
  10248. no_undefined_flag_CXX=' ${wl}-bernotok'
  10249. allow_undefined_flag_CXX=' ${wl}-berok'
  10250. # Exported symbols can be pulled into shared objects from archives
  10251. whole_archive_flag_spec_CXX='$convenience'
  10252. archive_cmds_need_lc_CXX=yes
  10253. # This is similar to how AIX traditionally builds its shared
  10254. # libraries.
  10255. 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'
  10256. fi
  10257. fi
  10258. ;;
  10259. beos*)
  10260. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  10261. allow_undefined_flag_CXX=unsupported
  10262. # Joseph Beckenbach <[email protected]> says some releases of gcc
  10263. # support --undefined. This deserves some investigation. FIXME
  10264. archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  10265. else
  10266. ld_shlibs_CXX=no
  10267. fi
  10268. ;;
  10269. chorus*)
  10270. case $cc_basename in
  10271. *)
  10272. # FIXME: insert proper C++ library support
  10273. ld_shlibs_CXX=no
  10274. ;;
  10275. esac
  10276. ;;
  10277. cygwin* | mingw* | pw32* | cegcc*)
  10278. # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
  10279. # as there is no search path for DLLs.
  10280. hardcode_libdir_flag_spec_CXX='-L$libdir'
  10281. allow_undefined_flag_CXX=unsupported
  10282. always_export_symbols_CXX=no
  10283. enable_shared_with_static_runtimes_CXX=yes
  10284. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  10285. 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'
  10286. # If the export-symbols file already is a .def file (1st line
  10287. # is EXPORTS), use it as is; otherwise, prepend...
  10288. archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  10289. cp $export_symbols $output_objdir/$soname.def;
  10290. else
  10291. echo EXPORTS > $output_objdir/$soname.def;
  10292. cat $export_symbols >> $output_objdir/$soname.def;
  10293. fi~
  10294. $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'
  10295. else
  10296. ld_shlibs_CXX=no
  10297. fi
  10298. ;;
  10299. darwin* | rhapsody*)
  10300. archive_cmds_need_lc_CXX=no
  10301. hardcode_direct_CXX=no
  10302. hardcode_automatic_CXX=yes
  10303. hardcode_shlibpath_var_CXX=unsupported
  10304. whole_archive_flag_spec_CXX=''
  10305. link_all_deplibs_CXX=yes
  10306. allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
  10307. case $cc_basename in
  10308. ifort*) _lt_dar_can_shared=yes ;;
  10309. *) _lt_dar_can_shared=$GCC ;;
  10310. esac
  10311. if test "$_lt_dar_can_shared" = "yes"; then
  10312. output_verbose_link_cmd=echo
  10313. 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}"
  10314. module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  10315. 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}"
  10316. 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}"
  10317. if test "$lt_cv_apple_cc_single_mod" != "yes"; then
  10318. 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}"
  10319. 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}"
  10320. fi
  10321. else
  10322. ld_shlibs_CXX=no
  10323. fi
  10324. ;;
  10325. dgux*)
  10326. case $cc_basename in
  10327. ec++*)
  10328. # FIXME: insert proper C++ library support
  10329. ld_shlibs_CXX=no
  10330. ;;
  10331. ghcx*)
  10332. # Green Hills C++ Compiler
  10333. # FIXME: insert proper C++ library support
  10334. ld_shlibs_CXX=no
  10335. ;;
  10336. *)
  10337. # FIXME: insert proper C++ library support
  10338. ld_shlibs_CXX=no
  10339. ;;
  10340. esac
  10341. ;;
  10342. freebsd[12]*)
  10343. # C++ shared libraries reported to be fairly broken before
  10344. # switch to ELF
  10345. ld_shlibs_CXX=no
  10346. ;;
  10347. freebsd-elf*)
  10348. archive_cmds_need_lc_CXX=no
  10349. ;;
  10350. freebsd* | dragonfly*)
  10351. # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
  10352. # conventions
  10353. ld_shlibs_CXX=yes
  10354. ;;
  10355. gnu*)
  10356. ;;
  10357. hpux9*)
  10358. hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
  10359. hardcode_libdir_separator_CXX=:
  10360. export_dynamic_flag_spec_CXX='${wl}-E'
  10361. hardcode_direct_CXX=yes
  10362. hardcode_minus_L_CXX=yes # Not in the search PATH,
  10363. # but as the default
  10364. # location of the library.
  10365. case $cc_basename in
  10366. CC*)
  10367. # FIXME: insert proper C++ library support
  10368. ld_shlibs_CXX=no
  10369. ;;
  10370. aCC*)
  10371. 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'
  10372. # Commands to make compiler produce verbose output that lists
  10373. # what "hidden" libraries, object files and flags are used when
  10374. # linking a shared library.
  10375. #
  10376. # There doesn't appear to be a way to prevent this compiler from
  10377. # explicitly linking system object files so we need to strip them
  10378. # from the output so that they don't get included in the library
  10379. # dependencies.
  10380. 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; $ECHO "X$list" | $Xsed'
  10381. ;;
  10382. *)
  10383. if test "$GXX" = yes; then
  10384. archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${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'
  10385. else
  10386. # FIXME: insert proper C++ library support
  10387. ld_shlibs_CXX=no
  10388. fi
  10389. ;;
  10390. esac
  10391. ;;
  10392. hpux10*|hpux11*)
  10393. if test $with_gnu_ld = no; then
  10394. hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
  10395. hardcode_libdir_separator_CXX=:
  10396. case $host_cpu in
  10397. hppa*64*|ia64*)
  10398. ;;
  10399. *)
  10400. export_dynamic_flag_spec_CXX='${wl}-E'
  10401. ;;
  10402. esac
  10403. fi
  10404. case $host_cpu in
  10405. hppa*64*|ia64*)
  10406. hardcode_direct_CXX=no
  10407. hardcode_shlibpath_var_CXX=no
  10408. ;;
  10409. *)
  10410. hardcode_direct_CXX=yes
  10411. hardcode_direct_absolute_CXX=yes
  10412. hardcode_minus_L_CXX=yes # Not in the search PATH,
  10413. # but as the default
  10414. # location of the library.
  10415. ;;
  10416. esac
  10417. case $cc_basename in
  10418. CC*)
  10419. # FIXME: insert proper C++ library support
  10420. ld_shlibs_CXX=no
  10421. ;;
  10422. aCC*)
  10423. case $host_cpu in
  10424. hppa*64*)
  10425. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  10426. ;;
  10427. ia64*)
  10428. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  10429. ;;
  10430. *)
  10431. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  10432. ;;
  10433. esac
  10434. # Commands to make compiler produce verbose output that lists
  10435. # what "hidden" libraries, object files and flags are used when
  10436. # linking a shared library.
  10437. #
  10438. # There doesn't appear to be a way to prevent this compiler from
  10439. # explicitly linking system object files so we need to strip them
  10440. # from the output so that they don't get included in the library
  10441. # dependencies.
  10442. 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; $ECHO "X$list" | $Xsed'
  10443. ;;
  10444. *)
  10445. if test "$GXX" = yes; then
  10446. if test $with_gnu_ld = no; then
  10447. case $host_cpu in
  10448. hppa*64*)
  10449. archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  10450. ;;
  10451. ia64*)
  10452. archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  10453. ;;
  10454. *)
  10455. archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  10456. ;;
  10457. esac
  10458. fi
  10459. else
  10460. # FIXME: insert proper C++ library support
  10461. ld_shlibs_CXX=no
  10462. fi
  10463. ;;
  10464. esac
  10465. ;;
  10466. interix[3-9]*)
  10467. hardcode_direct_CXX=no
  10468. hardcode_shlibpath_var_CXX=no
  10469. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  10470. export_dynamic_flag_spec_CXX='${wl}-E'
  10471. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  10472. # Instead, shared libraries are loaded at an image base (0x10000000 by
  10473. # default) and relocated if they conflict, which is a slow very memory
  10474. # consuming and fragmenting process. To avoid this, we pick a random,
  10475. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  10476. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  10477. 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'
  10478. 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'
  10479. ;;
  10480. irix5* | irix6*)
  10481. case $cc_basename in
  10482. CC*)
  10483. # SGI C++
  10484. archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
  10485. # Archives containing C++ object files must be created using
  10486. # "CC -ar", where "CC" is the IRIX C++ compiler. This is
  10487. # necessary to make sure instantiated templates are included
  10488. # in the archive.
  10489. old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
  10490. ;;
  10491. *)
  10492. if test "$GXX" = yes; then
  10493. if test "$with_gnu_ld" = no; then
  10494. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  10495. else
  10496. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` -o $lib'
  10497. fi
  10498. fi
  10499. link_all_deplibs_CXX=yes
  10500. ;;
  10501. esac
  10502. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  10503. hardcode_libdir_separator_CXX=:
  10504. inherit_rpath_CXX=yes
  10505. ;;
  10506. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  10507. case $cc_basename in
  10508. KCC*)
  10509. # Kuck and Associates, Inc. (KAI) C++ Compiler
  10510. # KCC will only create a shared library if the output file
  10511. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  10512. # to its proper name (with version) after linking.
  10513. 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'
  10514. 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'
  10515. # Commands to make compiler produce verbose output that lists
  10516. # what "hidden" libraries, object files and flags are used when
  10517. # linking a shared library.
  10518. #
  10519. # There doesn't appear to be a way to prevent this compiler from
  10520. # explicitly linking system object files so we need to strip them
  10521. # from the output so that they don't get included in the library
  10522. # dependencies.
  10523. 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; $ECHO "X$list" | $Xsed'
  10524. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  10525. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  10526. # Archives containing C++ object files must be created using
  10527. # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  10528. old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
  10529. ;;
  10530. icpc* | ecpc* )
  10531. # Intel C++
  10532. with_gnu_ld=yes
  10533. # version 8.0 and above of icpc choke on multiply defined symbols
  10534. # if we add $predep_objects and $postdep_objects, however 7.1 and
  10535. # earlier do not add the objects themselves.
  10536. case `$CC -V 2>&1` in
  10537. *"Version 7."*)
  10538. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  10539. 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'
  10540. ;;
  10541. *) # Version 8.0 or newer
  10542. tmp_idyn=
  10543. case $host_cpu in
  10544. ia64*) tmp_idyn=' -i_dynamic';;
  10545. esac
  10546. archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  10547. 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'
  10548. ;;
  10549. esac
  10550. archive_cmds_need_lc_CXX=no
  10551. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  10552. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  10553. whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  10554. ;;
  10555. pgCC* | pgcpp*)
  10556. # Portland Group C++ compiler
  10557. case `$CC -V` in
  10558. *pgCC\ [1-5]* | *pgcpp\ [1-5]*)
  10559. prelink_cmds_CXX='tpldir=Template.dir~
  10560. rm -rf $tpldir~
  10561. $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
  10562. compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
  10563. old_archive_cmds_CXX='tpldir=Template.dir~
  10564. rm -rf $tpldir~
  10565. $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
  10566. $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
  10567. $RANLIB $oldlib'
  10568. archive_cmds_CXX='tpldir=Template.dir~
  10569. rm -rf $tpldir~
  10570. $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  10571. $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  10572. archive_expsym_cmds_CXX='tpldir=Template.dir~
  10573. rm -rf $tpldir~
  10574. $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  10575. $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
  10576. ;;
  10577. *) # Version 6 will use weak symbols
  10578. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  10579. 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'
  10580. ;;
  10581. esac
  10582. hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
  10583. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  10584. whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
  10585. ;;
  10586. cxx*)
  10587. # Compaq C++
  10588. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  10589. 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'
  10590. runpath_var=LD_RUN_PATH
  10591. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  10592. hardcode_libdir_separator_CXX=:
  10593. # Commands to make compiler produce verbose output that lists
  10594. # what "hidden" libraries, object files and flags are used when
  10595. # linking a shared library.
  10596. #
  10597. # There doesn't appear to be a way to prevent this compiler from
  10598. # explicitly linking system object files so we need to strip them
  10599. # from the output so that they don't get included in the library
  10600. # dependencies.
  10601. output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`$ECHO "X$templist" | $Xsed -e "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
  10602. ;;
  10603. xl*)
  10604. # IBM XL 8.0 on PPC, with GNU ld
  10605. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  10606. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  10607. archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  10608. if test "x$supports_anon_versioning" = xyes; then
  10609. archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
  10610. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  10611. echo "local: *; };" >> $output_objdir/$libname.ver~
  10612. $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  10613. fi
  10614. ;;
  10615. *)
  10616. case `$CC -V 2>&1 | sed 5q` in
  10617. *Sun\ C*)
  10618. # Sun C++ 5.9
  10619. no_undefined_flag_CXX=' -zdefs'
  10620. archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  10621. 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'
  10622. hardcode_libdir_flag_spec_CXX='-R$libdir'
  10623. whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
  10624. compiler_needs_object_CXX=yes
  10625. # Not sure whether something based on
  10626. # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
  10627. # would be better.
  10628. output_verbose_link_cmd='echo'
  10629. # Archives containing C++ object files must be created using
  10630. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  10631. # necessary to make sure instantiated templates are included
  10632. # in the archive.
  10633. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  10634. ;;
  10635. esac
  10636. ;;
  10637. esac
  10638. ;;
  10639. lynxos*)
  10640. # FIXME: insert proper C++ library support
  10641. ld_shlibs_CXX=no
  10642. ;;
  10643. m88k*)
  10644. # FIXME: insert proper C++ library support
  10645. ld_shlibs_CXX=no
  10646. ;;
  10647. mvs*)
  10648. case $cc_basename in
  10649. cxx*)
  10650. # FIXME: insert proper C++ library support
  10651. ld_shlibs_CXX=no
  10652. ;;
  10653. *)
  10654. # FIXME: insert proper C++ library support
  10655. ld_shlibs_CXX=no
  10656. ;;
  10657. esac
  10658. ;;
  10659. netbsd*)
  10660. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  10661. archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
  10662. wlarc=
  10663. hardcode_libdir_flag_spec_CXX='-R$libdir'
  10664. hardcode_direct_CXX=yes
  10665. hardcode_shlibpath_var_CXX=no
  10666. fi
  10667. # Workaround some broken pre-1.5 toolchains
  10668. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
  10669. ;;
  10670. *nto* | *qnx*)
  10671. ld_shlibs_CXX=yes
  10672. ;;
  10673. openbsd2*)
  10674. # C++ shared libraries are fairly broken
  10675. ld_shlibs_CXX=no
  10676. ;;
  10677. openbsd*)
  10678. if test -f /usr/libexec/ld.so; then
  10679. hardcode_direct_CXX=yes
  10680. hardcode_shlibpath_var_CXX=no
  10681. hardcode_direct_absolute_CXX=yes
  10682. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  10683. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  10684. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  10685. archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
  10686. export_dynamic_flag_spec_CXX='${wl}-E'
  10687. whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  10688. fi
  10689. output_verbose_link_cmd=echo
  10690. else
  10691. ld_shlibs_CXX=no
  10692. fi
  10693. ;;
  10694. osf3* | osf4* | osf5*)
  10695. case $cc_basename in
  10696. KCC*)
  10697. # Kuck and Associates, Inc. (KAI) C++ Compiler
  10698. # KCC will only create a shared library if the output file
  10699. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  10700. # to its proper name (with version) after linking.
  10701. 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'
  10702. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  10703. hardcode_libdir_separator_CXX=:
  10704. # Archives containing C++ object files must be created using
  10705. # the KAI C++ compiler.
  10706. case $host in
  10707. osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
  10708. *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
  10709. esac
  10710. ;;
  10711. RCC*)
  10712. # Rational C++ 2.4.1
  10713. # FIXME: insert proper C++ library support
  10714. ld_shlibs_CXX=no
  10715. ;;
  10716. cxx*)
  10717. case $host in
  10718. osf3*)
  10719. allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  10720. archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && $ECHO "X${wl}-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
  10721. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  10722. ;;
  10723. *)
  10724. allow_undefined_flag_CXX=' -expect_unresolved \*'
  10725. archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
  10726. archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
  10727. echo "-hidden">> $lib.exp~
  10728. $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 "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~
  10729. $RM $lib.exp'
  10730. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  10731. ;;
  10732. esac
  10733. hardcode_libdir_separator_CXX=:
  10734. # Commands to make compiler produce verbose output that lists
  10735. # what "hidden" libraries, object files and flags are used when
  10736. # linking a shared library.
  10737. #
  10738. # There doesn't appear to be a way to prevent this compiler from
  10739. # explicitly linking system object files so we need to strip them
  10740. # from the output so that they don't get included in the library
  10741. # dependencies.
  10742. output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`$ECHO "X$templist" | $Xsed -e "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
  10743. ;;
  10744. *)
  10745. if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  10746. allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  10747. case $host in
  10748. osf3*)
  10749. archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  10750. ;;
  10751. *)
  10752. archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  10753. ;;
  10754. esac
  10755. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  10756. hardcode_libdir_separator_CXX=:
  10757. # Commands to make compiler produce verbose output that lists
  10758. # what "hidden" libraries, object files and flags are used when
  10759. # linking a shared library.
  10760. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
  10761. else
  10762. # FIXME: insert proper C++ library support
  10763. ld_shlibs_CXX=no
  10764. fi
  10765. ;;
  10766. esac
  10767. ;;
  10768. psos*)
  10769. # FIXME: insert proper C++ library support
  10770. ld_shlibs_CXX=no
  10771. ;;
  10772. sunos4*)
  10773. case $cc_basename in
  10774. CC*)
  10775. # Sun C++ 4.x
  10776. # FIXME: insert proper C++ library support
  10777. ld_shlibs_CXX=no
  10778. ;;
  10779. lcc*)
  10780. # Lucid
  10781. # FIXME: insert proper C++ library support
  10782. ld_shlibs_CXX=no
  10783. ;;
  10784. *)
  10785. # FIXME: insert proper C++ library support
  10786. ld_shlibs_CXX=no
  10787. ;;
  10788. esac
  10789. ;;
  10790. solaris*)
  10791. case $cc_basename in
  10792. CC*)
  10793. # Sun C++ 4.2, 5.x and Centerline C++
  10794. archive_cmds_need_lc_CXX=yes
  10795. no_undefined_flag_CXX=' -zdefs'
  10796. archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  10797. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  10798. $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'
  10799. hardcode_libdir_flag_spec_CXX='-R$libdir'
  10800. hardcode_shlibpath_var_CXX=no
  10801. case $host_os in
  10802. solaris2.[0-5] | solaris2.[0-5].*) ;;
  10803. *)
  10804. # The compiler driver will combine and reorder linker options,
  10805. # but understands `-z linker_flag'.
  10806. # Supported since Solaris 2.6 (maybe 2.5.1?)
  10807. whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
  10808. ;;
  10809. esac
  10810. link_all_deplibs_CXX=yes
  10811. output_verbose_link_cmd='echo'
  10812. # Archives containing C++ object files must be created using
  10813. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  10814. # necessary to make sure instantiated templates are included
  10815. # in the archive.
  10816. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  10817. ;;
  10818. gcx*)
  10819. # Green Hills C++ Compiler
  10820. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  10821. # The C++ compiler must be used to create the archive.
  10822. old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
  10823. ;;
  10824. *)
  10825. # GNU C++ compiler with Solaris linker
  10826. if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  10827. no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
  10828. if $CC --version | $GREP -v '^2\.7' > /dev/null; then
  10829. archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  10830. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  10831. $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  10832. # Commands to make compiler produce verbose output that lists
  10833. # what "hidden" libraries, object files and flags are used when
  10834. # linking a shared library.
  10835. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
  10836. else
  10837. # g++ 2.7 appears to require `-G' NOT `-shared' on this
  10838. # platform.
  10839. archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  10840. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  10841. $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  10842. # Commands to make compiler produce verbose output that lists
  10843. # what "hidden" libraries, object files and flags are used when
  10844. # linking a shared library.
  10845. output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
  10846. fi
  10847. hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
  10848. case $host_os in
  10849. solaris2.[0-5] | solaris2.[0-5].*) ;;
  10850. *)
  10851. whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  10852. ;;
  10853. esac
  10854. fi
  10855. ;;
  10856. esac
  10857. ;;
  10858. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  10859. no_undefined_flag_CXX='${wl}-z,text'
  10860. archive_cmds_need_lc_CXX=no
  10861. hardcode_shlibpath_var_CXX=no
  10862. runpath_var='LD_RUN_PATH'
  10863. case $cc_basename in
  10864. CC*)
  10865. archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10866. archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10867. ;;
  10868. *)
  10869. archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10870. archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10871. ;;
  10872. esac
  10873. ;;
  10874. sysv5* | sco3.2v5* | sco5v6*)
  10875. # Note: We can NOT use -z defs as we might desire, because we do not
  10876. # link with -lc, and that would cause any symbols used from libc to
  10877. # always be unresolved, which means just about no library would
  10878. # ever link correctly. If we're not using GNU ld we use -z text
  10879. # though, which does catch some bad symbols but isn't as heavy-handed
  10880. # as -z defs.
  10881. no_undefined_flag_CXX='${wl}-z,text'
  10882. allow_undefined_flag_CXX='${wl}-z,nodefs'
  10883. archive_cmds_need_lc_CXX=no
  10884. hardcode_shlibpath_var_CXX=no
  10885. hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
  10886. hardcode_libdir_separator_CXX=':'
  10887. link_all_deplibs_CXX=yes
  10888. export_dynamic_flag_spec_CXX='${wl}-Bexport'
  10889. runpath_var='LD_RUN_PATH'
  10890. case $cc_basename in
  10891. CC*)
  10892. archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10893. archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10894. ;;
  10895. *)
  10896. archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10897. archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10898. ;;
  10899. esac
  10900. ;;
  10901. tandem*)
  10902. case $cc_basename in
  10903. NCC*)
  10904. # NonStop-UX NCC 3.20
  10905. # FIXME: insert proper C++ library support
  10906. ld_shlibs_CXX=no
  10907. ;;
  10908. *)
  10909. # FIXME: insert proper C++ library support
  10910. ld_shlibs_CXX=no
  10911. ;;
  10912. esac
  10913. ;;
  10914. vxworks*)
  10915. # FIXME: insert proper C++ library support
  10916. ld_shlibs_CXX=no
  10917. ;;
  10918. *)
  10919. # FIXME: insert proper C++ library support
  10920. ld_shlibs_CXX=no
  10921. ;;
  10922. esac
  10923. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
  10924. $as_echo "$ld_shlibs_CXX" >&6; }
  10925. test "$ld_shlibs_CXX" = no && can_build_shared=no
  10926. GCC_CXX="$GXX"
  10927. LD_CXX="$LD"
  10928. ## CAVEAT EMPTOR:
  10929. ## There is no encapsulation within the following macros, do not change
  10930. ## the running order or otherwise move them around unless you know exactly
  10931. ## what you are doing...
  10932. # Dependencies to place before and after the object being linked:
  10933. predep_objects_CXX=
  10934. postdep_objects_CXX=
  10935. predeps_CXX=
  10936. postdeps_CXX=
  10937. compiler_lib_search_path_CXX=
  10938. cat > conftest.$ac_ext <<_LT_EOF
  10939. class Foo
  10940. {
  10941. public:
  10942. Foo (void) { a = 0; }
  10943. private:
  10944. int a;
  10945. };
  10946. _LT_EOF
  10947. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  10948. (eval $ac_compile) 2>&5
  10949. ac_status=$?
  10950. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10951. test $ac_status = 0; }; then
  10952. # Parse the compiler output and extract the necessary
  10953. # objects, libraries and library flags.
  10954. # Sentinel used to keep track of whether or not we are before
  10955. # the conftest object file.
  10956. pre_test_object_deps_done=no
  10957. for p in `eval "$output_verbose_link_cmd"`; do
  10958. case $p in
  10959. -L* | -R* | -l*)
  10960. # Some compilers place space between "-{L,R}" and the path.
  10961. # Remove the space.
  10962. if test $p = "-L" ||
  10963. test $p = "-R"; then
  10964. prev=$p
  10965. continue
  10966. else
  10967. prev=
  10968. fi
  10969. if test "$pre_test_object_deps_done" = no; then
  10970. case $p in
  10971. -L* | -R*)
  10972. # Internal compiler library paths should come after those
  10973. # provided the user. The postdeps already come after the
  10974. # user supplied libs so there is no need to process them.
  10975. if test -z "$compiler_lib_search_path_CXX"; then
  10976. compiler_lib_search_path_CXX="${prev}${p}"
  10977. else
  10978. compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
  10979. fi
  10980. ;;
  10981. # The "-l" case would never come before the object being
  10982. # linked, so don't bother handling this case.
  10983. esac
  10984. else
  10985. if test -z "$postdeps_CXX"; then
  10986. postdeps_CXX="${prev}${p}"
  10987. else
  10988. postdeps_CXX="${postdeps_CXX} ${prev}${p}"
  10989. fi
  10990. fi
  10991. ;;
  10992. *.$objext)
  10993. # This assumes that the test object file only shows up
  10994. # once in the compiler output.
  10995. if test "$p" = "conftest.$objext"; then
  10996. pre_test_object_deps_done=yes
  10997. continue
  10998. fi
  10999. if test "$pre_test_object_deps_done" = no; then
  11000. if test -z "$predep_objects_CXX"; then
  11001. predep_objects_CXX="$p"
  11002. else
  11003. predep_objects_CXX="$predep_objects_CXX $p"
  11004. fi
  11005. else
  11006. if test -z "$postdep_objects_CXX"; then
  11007. postdep_objects_CXX="$p"
  11008. else
  11009. postdep_objects_CXX="$postdep_objects_CXX $p"
  11010. fi
  11011. fi
  11012. ;;
  11013. *) ;; # Ignore the rest.
  11014. esac
  11015. done
  11016. # Clean up.
  11017. rm -f a.out a.exe
  11018. else
  11019. echo "libtool.m4: error: problem compiling CXX test program"
  11020. fi
  11021. $RM -f confest.$objext
  11022. # PORTME: override above test on systems where it is broken
  11023. case $host_os in
  11024. interix[3-9]*)
  11025. # Interix 3.5 installs completely hosed .la files for C++, so rather than
  11026. # hack all around it, let's just trust "g++" to DTRT.
  11027. predep_objects_CXX=
  11028. postdep_objects_CXX=
  11029. postdeps_CXX=
  11030. ;;
  11031. linux*)
  11032. case `$CC -V 2>&1 | sed 5q` in
  11033. *Sun\ C*)
  11034. # Sun C++ 5.9
  11035. # The more standards-conforming stlport4 library is
  11036. # incompatible with the Cstd library. Avoid specifying
  11037. # it if it's in CXXFLAGS. Ignore libCrun as
  11038. # -library=stlport4 depends on it.
  11039. case " $CXX $CXXFLAGS " in
  11040. *" -library=stlport4 "*)
  11041. solaris_use_stlport4=yes
  11042. ;;
  11043. esac
  11044. if test "$solaris_use_stlport4" != yes; then
  11045. postdeps_CXX='-library=Cstd -library=Crun'
  11046. fi
  11047. ;;
  11048. esac
  11049. ;;
  11050. solaris*)
  11051. case $cc_basename in
  11052. CC*)
  11053. # The more standards-conforming stlport4 library is
  11054. # incompatible with the Cstd library. Avoid specifying
  11055. # it if it's in CXXFLAGS. Ignore libCrun as
  11056. # -library=stlport4 depends on it.
  11057. case " $CXX $CXXFLAGS " in
  11058. *" -library=stlport4 "*)
  11059. solaris_use_stlport4=yes
  11060. ;;
  11061. esac
  11062. # Adding this requires a known-good setup of shared libraries for
  11063. # Sun compiler versions before 5.6, else PIC objects from an old
  11064. # archive will be linked into the output, leading to subtle bugs.
  11065. if test "$solaris_use_stlport4" != yes; then
  11066. postdeps_CXX='-library=Cstd -library=Crun'
  11067. fi
  11068. ;;
  11069. esac
  11070. ;;
  11071. esac
  11072. case " $postdeps_CXX " in
  11073. *" -lc "*) archive_cmds_need_lc_CXX=no ;;
  11074. esac
  11075. compiler_lib_search_dirs_CXX=
  11076. if test -n "${compiler_lib_search_path_CXX}"; then
  11077. compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
  11078. fi
  11079. lt_prog_compiler_wl_CXX=
  11080. lt_prog_compiler_pic_CXX=
  11081. lt_prog_compiler_static_CXX=
  11082. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  11083. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  11084. # C++ specific cases for pic, static, wl, etc.
  11085. if test "$GXX" = yes; then
  11086. lt_prog_compiler_wl_CXX='-Wl,'
  11087. lt_prog_compiler_static_CXX='-static'
  11088. case $host_os in
  11089. aix*)
  11090. # All AIX code is PIC.
  11091. if test "$host_cpu" = ia64; then
  11092. # AIX 5 now supports IA64 processor
  11093. lt_prog_compiler_static_CXX='-Bstatic'
  11094. fi
  11095. ;;
  11096. amigaos*)
  11097. case $host_cpu in
  11098. powerpc)
  11099. # see comment about AmigaOS4 .so support
  11100. lt_prog_compiler_pic_CXX='-fPIC'
  11101. ;;
  11102. m68k)
  11103. # FIXME: we need at least 68020 code to build shared libraries, but
  11104. # adding the `-m68020' flag to GCC prevents building anything better,
  11105. # like `-m68040'.
  11106. lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
  11107. ;;
  11108. esac
  11109. ;;
  11110. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  11111. # PIC is the default for these OSes.
  11112. ;;
  11113. mingw* | cygwin* | os2* | pw32* | cegcc*)
  11114. # This hack is so that the source file can tell whether it is being
  11115. # built for inclusion in a dll (and should export symbols for example).
  11116. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  11117. # (--disable-auto-import) libraries
  11118. lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
  11119. ;;
  11120. darwin* | rhapsody*)
  11121. # PIC is the default on this platform
  11122. # Common symbols not allowed in MH_DYLIB files
  11123. lt_prog_compiler_pic_CXX='-fno-common'
  11124. ;;
  11125. *djgpp*)
  11126. # DJGPP does not support shared libraries at all
  11127. lt_prog_compiler_pic_CXX=
  11128. ;;
  11129. interix[3-9]*)
  11130. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  11131. # Instead, we relocate shared libraries at runtime.
  11132. ;;
  11133. sysv4*MP*)
  11134. if test -d /usr/nec; then
  11135. lt_prog_compiler_pic_CXX=-Kconform_pic
  11136. fi
  11137. ;;
  11138. hpux*)
  11139. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  11140. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  11141. # sets the default TLS model and affects inlining.
  11142. case $host_cpu in
  11143. hppa*64*)
  11144. ;;
  11145. *)
  11146. lt_prog_compiler_pic_CXX='-fPIC'
  11147. ;;
  11148. esac
  11149. ;;
  11150. *qnx* | *nto*)
  11151. # QNX uses GNU C++, but need to define -shared option too, otherwise
  11152. # it will coredump.
  11153. lt_prog_compiler_pic_CXX='-fPIC -shared'
  11154. ;;
  11155. *)
  11156. lt_prog_compiler_pic_CXX='-fPIC'
  11157. ;;
  11158. esac
  11159. else
  11160. case $host_os in
  11161. aix[4-9]*)
  11162. # All AIX code is PIC.
  11163. if test "$host_cpu" = ia64; then
  11164. # AIX 5 now supports IA64 processor
  11165. lt_prog_compiler_static_CXX='-Bstatic'
  11166. else
  11167. lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
  11168. fi
  11169. ;;
  11170. chorus*)
  11171. case $cc_basename in
  11172. cxch68*)
  11173. # Green Hills C++ Compiler
  11174. # _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"
  11175. ;;
  11176. esac
  11177. ;;
  11178. dgux*)
  11179. case $cc_basename in
  11180. ec++*)
  11181. lt_prog_compiler_pic_CXX='-KPIC'
  11182. ;;
  11183. ghcx*)
  11184. # Green Hills C++ Compiler
  11185. lt_prog_compiler_pic_CXX='-pic'
  11186. ;;
  11187. *)
  11188. ;;
  11189. esac
  11190. ;;
  11191. freebsd* | dragonfly*)
  11192. # FreeBSD uses GNU C++
  11193. ;;
  11194. hpux9* | hpux10* | hpux11*)
  11195. case $cc_basename in
  11196. CC*)
  11197. lt_prog_compiler_wl_CXX='-Wl,'
  11198. lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
  11199. if test "$host_cpu" != ia64; then
  11200. lt_prog_compiler_pic_CXX='+Z'
  11201. fi
  11202. ;;
  11203. aCC*)
  11204. lt_prog_compiler_wl_CXX='-Wl,'
  11205. lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
  11206. case $host_cpu in
  11207. hppa*64*|ia64*)
  11208. # +Z the default
  11209. ;;
  11210. *)
  11211. lt_prog_compiler_pic_CXX='+Z'
  11212. ;;
  11213. esac
  11214. ;;
  11215. *)
  11216. ;;
  11217. esac
  11218. ;;
  11219. interix*)
  11220. # This is c89, which is MS Visual C++ (no shared libs)
  11221. # Anyone wants to do a port?
  11222. ;;
  11223. irix5* | irix6* | nonstopux*)
  11224. case $cc_basename in
  11225. CC*)
  11226. lt_prog_compiler_wl_CXX='-Wl,'
  11227. lt_prog_compiler_static_CXX='-non_shared'
  11228. # CC pic flag -KPIC is the default.
  11229. ;;
  11230. *)
  11231. ;;
  11232. esac
  11233. ;;
  11234. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  11235. case $cc_basename in
  11236. KCC*)
  11237. # KAI C++ Compiler
  11238. lt_prog_compiler_wl_CXX='--backend -Wl,'
  11239. lt_prog_compiler_pic_CXX='-fPIC'
  11240. ;;
  11241. ecpc* )
  11242. # old Intel C++ for x86_64 which still supported -KPIC.
  11243. lt_prog_compiler_wl_CXX='-Wl,'
  11244. lt_prog_compiler_pic_CXX='-KPIC'
  11245. lt_prog_compiler_static_CXX='-static'
  11246. ;;
  11247. icpc* )
  11248. # Intel C++, used to be incompatible with GCC.
  11249. # ICC 10 doesn't accept -KPIC any more.
  11250. lt_prog_compiler_wl_CXX='-Wl,'
  11251. lt_prog_compiler_pic_CXX='-fPIC'
  11252. lt_prog_compiler_static_CXX='-static'
  11253. ;;
  11254. pgCC* | pgcpp*)
  11255. # Portland Group C++ compiler
  11256. lt_prog_compiler_wl_CXX='-Wl,'
  11257. lt_prog_compiler_pic_CXX='-fpic'
  11258. lt_prog_compiler_static_CXX='-Bstatic'
  11259. ;;
  11260. cxx*)
  11261. # Compaq C++
  11262. # Make sure the PIC flag is empty. It appears that all Alpha
  11263. # Linux and Compaq Tru64 Unix objects are PIC.
  11264. lt_prog_compiler_pic_CXX=
  11265. lt_prog_compiler_static_CXX='-non_shared'
  11266. ;;
  11267. xlc* | xlC*)
  11268. # IBM XL 8.0 on PPC
  11269. lt_prog_compiler_wl_CXX='-Wl,'
  11270. lt_prog_compiler_pic_CXX='-qpic'
  11271. lt_prog_compiler_static_CXX='-qstaticlink'
  11272. ;;
  11273. *)
  11274. case `$CC -V 2>&1 | sed 5q` in
  11275. *Sun\ C*)
  11276. # Sun C++ 5.9
  11277. lt_prog_compiler_pic_CXX='-KPIC'
  11278. lt_prog_compiler_static_CXX='-Bstatic'
  11279. lt_prog_compiler_wl_CXX='-Qoption ld '
  11280. ;;
  11281. esac
  11282. ;;
  11283. esac
  11284. ;;
  11285. lynxos*)
  11286. ;;
  11287. m88k*)
  11288. ;;
  11289. mvs*)
  11290. case $cc_basename in
  11291. cxx*)
  11292. lt_prog_compiler_pic_CXX='-W c,exportall'
  11293. ;;
  11294. *)
  11295. ;;
  11296. esac
  11297. ;;
  11298. netbsd* | netbsdelf*-gnu)
  11299. ;;
  11300. *qnx* | *nto*)
  11301. # QNX uses GNU C++, but need to define -shared option too, otherwise
  11302. # it will coredump.
  11303. lt_prog_compiler_pic_CXX='-fPIC -shared'
  11304. ;;
  11305. osf3* | osf4* | osf5*)
  11306. case $cc_basename in
  11307. KCC*)
  11308. lt_prog_compiler_wl_CXX='--backend -Wl,'
  11309. ;;
  11310. RCC*)
  11311. # Rational C++ 2.4.1
  11312. lt_prog_compiler_pic_CXX='-pic'
  11313. ;;
  11314. cxx*)
  11315. # Digital/Compaq C++
  11316. lt_prog_compiler_wl_CXX='-Wl,'
  11317. # Make sure the PIC flag is empty. It appears that all Alpha
  11318. # Linux and Compaq Tru64 Unix objects are PIC.
  11319. lt_prog_compiler_pic_CXX=
  11320. lt_prog_compiler_static_CXX='-non_shared'
  11321. ;;
  11322. *)
  11323. ;;
  11324. esac
  11325. ;;
  11326. psos*)
  11327. ;;
  11328. solaris*)
  11329. case $cc_basename in
  11330. CC*)
  11331. # Sun C++ 4.2, 5.x and Centerline C++
  11332. lt_prog_compiler_pic_CXX='-KPIC'
  11333. lt_prog_compiler_static_CXX='-Bstatic'
  11334. lt_prog_compiler_wl_CXX='-Qoption ld '
  11335. ;;
  11336. gcx*)
  11337. # Green Hills C++ Compiler
  11338. lt_prog_compiler_pic_CXX='-PIC'
  11339. ;;
  11340. *)
  11341. ;;
  11342. esac
  11343. ;;
  11344. sunos4*)
  11345. case $cc_basename in
  11346. CC*)
  11347. # Sun C++ 4.x
  11348. lt_prog_compiler_pic_CXX='-pic'
  11349. lt_prog_compiler_static_CXX='-Bstatic'
  11350. ;;
  11351. lcc*)
  11352. # Lucid
  11353. lt_prog_compiler_pic_CXX='-pic'
  11354. ;;
  11355. *)
  11356. ;;
  11357. esac
  11358. ;;
  11359. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  11360. case $cc_basename in
  11361. CC*)
  11362. lt_prog_compiler_wl_CXX='-Wl,'
  11363. lt_prog_compiler_pic_CXX='-KPIC'
  11364. lt_prog_compiler_static_CXX='-Bstatic'
  11365. ;;
  11366. esac
  11367. ;;
  11368. tandem*)
  11369. case $cc_basename in
  11370. NCC*)
  11371. # NonStop-UX NCC 3.20
  11372. lt_prog_compiler_pic_CXX='-KPIC'
  11373. ;;
  11374. *)
  11375. ;;
  11376. esac
  11377. ;;
  11378. vxworks*)
  11379. ;;
  11380. *)
  11381. lt_prog_compiler_can_build_shared_CXX=no
  11382. ;;
  11383. esac
  11384. fi
  11385. case $host_os in
  11386. # For platforms which do not support PIC, -DPIC is meaningless:
  11387. *djgpp*)
  11388. lt_prog_compiler_pic_CXX=
  11389. ;;
  11390. *)
  11391. lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX@&t@ -DPIC"
  11392. ;;
  11393. esac
  11394. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
  11395. $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
  11396. #
  11397. # Check to make sure the PIC flag actually works.
  11398. #
  11399. if test -n "$lt_prog_compiler_pic_CXX"; then
  11400. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
  11401. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
  11402. if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
  11403. $as_echo_n "(cached) " >&6
  11404. else
  11405. lt_cv_prog_compiler_pic_works_CXX=no
  11406. ac_outfile=conftest.$ac_objext
  11407. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  11408. lt_compiler_flag="$lt_prog_compiler_pic_CXX@&t@ -DPIC"
  11409. # Insert the option either (1) after the last *FLAGS variable, or
  11410. # (2) before a word containing "conftest.", or (3) at the end.
  11411. # Note that $ac_compile itself does not contain backslashes and begins
  11412. # with a dollar sign (not a hyphen), so the echo should work correctly.
  11413. # The option is referenced via a variable to avoid confusing sed.
  11414. lt_compile=`echo "$ac_compile" | $SED \
  11415. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  11416. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  11417. -e 's:$: $lt_compiler_flag:'`
  11418. (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
  11419. (eval "$lt_compile" 2>conftest.err)
  11420. ac_status=$?
  11421. cat conftest.err >&5
  11422. echo "$as_me:__oline__: \$? = $ac_status" >&5
  11423. if (exit $ac_status) && test -s "$ac_outfile"; then
  11424. # The compiler can only warn and ignore the option if not recognized
  11425. # So say no if there are warnings other than the usual output.
  11426. $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  11427. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  11428. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  11429. lt_cv_prog_compiler_pic_works_CXX=yes
  11430. fi
  11431. fi
  11432. $RM conftest*
  11433. fi
  11434. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
  11435. $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
  11436. if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
  11437. case $lt_prog_compiler_pic_CXX in
  11438. "" | " "*) ;;
  11439. *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
  11440. esac
  11441. else
  11442. lt_prog_compiler_pic_CXX=
  11443. lt_prog_compiler_can_build_shared_CXX=no
  11444. fi
  11445. fi
  11446. #
  11447. # Check to make sure the static flag actually works.
  11448. #
  11449. wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
  11450. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  11451. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  11452. if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
  11453. $as_echo_n "(cached) " >&6
  11454. else
  11455. lt_cv_prog_compiler_static_works_CXX=no
  11456. save_LDFLAGS="$LDFLAGS"
  11457. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  11458. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  11459. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  11460. # The linker can only warn and ignore the option if not recognized
  11461. # So say no if there are warnings
  11462. if test -s conftest.err; then
  11463. # Append any errors to the config.log.
  11464. cat conftest.err 1>&5
  11465. $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
  11466. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  11467. if diff conftest.exp conftest.er2 >/dev/null; then
  11468. lt_cv_prog_compiler_static_works_CXX=yes
  11469. fi
  11470. else
  11471. lt_cv_prog_compiler_static_works_CXX=yes
  11472. fi
  11473. fi
  11474. $RM -r conftest*
  11475. LDFLAGS="$save_LDFLAGS"
  11476. fi
  11477. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
  11478. $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
  11479. if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
  11480. :
  11481. else
  11482. lt_prog_compiler_static_CXX=
  11483. fi
  11484. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  11485. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  11486. if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
  11487. $as_echo_n "(cached) " >&6
  11488. else
  11489. lt_cv_prog_compiler_c_o_CXX=no
  11490. $RM -r conftest 2>/dev/null
  11491. mkdir conftest
  11492. cd conftest
  11493. mkdir out
  11494. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  11495. lt_compiler_flag="-o out/conftest2.$ac_objext"
  11496. # Insert the option either (1) after the last *FLAGS variable, or
  11497. # (2) before a word containing "conftest.", or (3) at the end.
  11498. # Note that $ac_compile itself does not contain backslashes and begins
  11499. # with a dollar sign (not a hyphen), so the echo should work correctly.
  11500. lt_compile=`echo "$ac_compile" | $SED \
  11501. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  11502. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  11503. -e 's:$: $lt_compiler_flag:'`
  11504. (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
  11505. (eval "$lt_compile" 2>out/conftest.err)
  11506. ac_status=$?
  11507. cat out/conftest.err >&5
  11508. echo "$as_me:__oline__: \$? = $ac_status" >&5
  11509. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  11510. then
  11511. # The compiler can only warn and ignore the option if not recognized
  11512. # So say no if there are warnings
  11513. $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  11514. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  11515. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  11516. lt_cv_prog_compiler_c_o_CXX=yes
  11517. fi
  11518. fi
  11519. chmod u+w . 2>&5
  11520. $RM conftest*
  11521. # SGI C++ compiler will create directory out/ii_files/ for
  11522. # template instantiation
  11523. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  11524. $RM out/* && rmdir out
  11525. cd ..
  11526. $RM -r conftest
  11527. $RM conftest*
  11528. fi
  11529. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  11530. $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
  11531. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  11532. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  11533. if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
  11534. $as_echo_n "(cached) " >&6
  11535. else
  11536. lt_cv_prog_compiler_c_o_CXX=no
  11537. $RM -r conftest 2>/dev/null
  11538. mkdir conftest
  11539. cd conftest
  11540. mkdir out
  11541. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  11542. lt_compiler_flag="-o out/conftest2.$ac_objext"
  11543. # Insert the option either (1) after the last *FLAGS variable, or
  11544. # (2) before a word containing "conftest.", or (3) at the end.
  11545. # Note that $ac_compile itself does not contain backslashes and begins
  11546. # with a dollar sign (not a hyphen), so the echo should work correctly.
  11547. lt_compile=`echo "$ac_compile" | $SED \
  11548. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  11549. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  11550. -e 's:$: $lt_compiler_flag:'`
  11551. (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
  11552. (eval "$lt_compile" 2>out/conftest.err)
  11553. ac_status=$?
  11554. cat out/conftest.err >&5
  11555. echo "$as_me:__oline__: \$? = $ac_status" >&5
  11556. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  11557. then
  11558. # The compiler can only warn and ignore the option if not recognized
  11559. # So say no if there are warnings
  11560. $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  11561. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  11562. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  11563. lt_cv_prog_compiler_c_o_CXX=yes
  11564. fi
  11565. fi
  11566. chmod u+w . 2>&5
  11567. $RM conftest*
  11568. # SGI C++ compiler will create directory out/ii_files/ for
  11569. # template instantiation
  11570. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  11571. $RM out/* && rmdir out
  11572. cd ..
  11573. $RM -r conftest
  11574. $RM conftest*
  11575. fi
  11576. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  11577. $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
  11578. hard_links="nottested"
  11579. if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
  11580. # do not overwrite the value of need_locks provided by the user
  11581. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  11582. $as_echo_n "checking if we can lock with hard links... " >&6; }
  11583. hard_links=yes
  11584. $RM conftest*
  11585. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  11586. touch conftest.a
  11587. ln conftest.a conftest.b 2>&5 || hard_links=no
  11588. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  11589. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  11590. $as_echo "$hard_links" >&6; }
  11591. if test "$hard_links" = no; then
  11592. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  11593. $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  11594. need_locks=warn
  11595. fi
  11596. else
  11597. need_locks=no
  11598. fi
  11599. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  11600. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  11601. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  11602. case $host_os in
  11603. aix[4-9]*)
  11604. # If we're using GNU nm, then we don't want the "-C" option.
  11605. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  11606. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  11607. export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
  11608. else
  11609. 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'
  11610. fi
  11611. ;;
  11612. pw32*)
  11613. export_symbols_cmds_CXX="$ltdll_cmds"
  11614. ;;
  11615. cygwin* | mingw* | cegcc*)
  11616. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;/^.*[ ]__nm__/s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
  11617. ;;
  11618. linux* | k*bsd*-gnu)
  11619. link_all_deplibs_CXX=no
  11620. ;;
  11621. *)
  11622. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  11623. ;;
  11624. esac
  11625. exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  11626. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
  11627. $as_echo "$ld_shlibs_CXX" >&6; }
  11628. test "$ld_shlibs_CXX" = no && can_build_shared=no
  11629. with_gnu_ld_CXX=$with_gnu_ld
  11630. #
  11631. # Do we need to explicitly link libc?
  11632. #
  11633. case "x$archive_cmds_need_lc_CXX" in
  11634. x|xyes)
  11635. # Assume -lc should be added
  11636. archive_cmds_need_lc_CXX=yes
  11637. if test "$enable_shared" = yes && test "$GCC" = yes; then
  11638. case $archive_cmds_CXX in
  11639. *'~'*)
  11640. # FIXME: we may have to deal with multi-command sequences.
  11641. ;;
  11642. '$CC '*)
  11643. # Test whether the compiler implicitly links with -lc since on some
  11644. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  11645. # to ld, don't add -lc before -lgcc.
  11646. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  11647. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  11648. $RM conftest*
  11649. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  11650. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  11651. (eval $ac_compile) 2>&5
  11652. ac_status=$?
  11653. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11654. test $ac_status = 0; } 2>conftest.err; then
  11655. soname=conftest
  11656. lib=conftest
  11657. libobjs=conftest.$ac_objext
  11658. deplibs=
  11659. wl=$lt_prog_compiler_wl_CXX
  11660. pic_flag=$lt_prog_compiler_pic_CXX
  11661. compiler_flags=-v
  11662. linker_flags=-v
  11663. verstring=
  11664. output_objdir=.
  11665. libname=conftest
  11666. lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
  11667. allow_undefined_flag_CXX=
  11668. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  11669. (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  11670. ac_status=$?
  11671. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11672. test $ac_status = 0; }
  11673. then
  11674. archive_cmds_need_lc_CXX=no
  11675. else
  11676. archive_cmds_need_lc_CXX=yes
  11677. fi
  11678. allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
  11679. else
  11680. cat conftest.err 1>&5
  11681. fi
  11682. $RM conftest*
  11683. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc_CXX" >&5
  11684. $as_echo "$archive_cmds_need_lc_CXX" >&6; }
  11685. ;;
  11686. esac
  11687. fi
  11688. ;;
  11689. esac
  11690. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  11691. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  11692. library_names_spec=
  11693. libname_spec='lib$name'
  11694. soname_spec=
  11695. shrext_cmds=".so"
  11696. postinstall_cmds=
  11697. postuninstall_cmds=
  11698. finish_cmds=
  11699. finish_eval=
  11700. shlibpath_var=
  11701. shlibpath_overrides_runpath=unknown
  11702. version_type=none
  11703. dynamic_linker="$host_os ld.so"
  11704. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  11705. need_lib_prefix=unknown
  11706. hardcode_into_libs=no
  11707. # when you set need_version to no, make sure it does not cause -set_version
  11708. # flags to be left without arguments
  11709. need_version=unknown
  11710. case $host_os in
  11711. aix3*)
  11712. version_type=linux
  11713. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  11714. shlibpath_var=LIBPATH
  11715. # AIX 3 has no versioning support, so we append a major version to the name.
  11716. soname_spec='${libname}${release}${shared_ext}$major'
  11717. ;;
  11718. aix[4-9]*)
  11719. version_type=linux
  11720. need_lib_prefix=no
  11721. need_version=no
  11722. hardcode_into_libs=yes
  11723. if test "$host_cpu" = ia64; then
  11724. # AIX 5 supports IA64
  11725. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  11726. shlibpath_var=LD_LIBRARY_PATH
  11727. else
  11728. # With GCC up to 2.95.x, collect2 would create an import file
  11729. # for dependence libraries. The import file would start with
  11730. # the line `#! .'. This would cause the generated library to
  11731. # depend on `.', always an invalid library. This was fixed in
  11732. # development snapshots of GCC prior to 3.0.
  11733. case $host_os in
  11734. aix4 | aix4.[01] | aix4.[01].*)
  11735. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  11736. echo ' yes '
  11737. echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  11738. :
  11739. else
  11740. can_build_shared=no
  11741. fi
  11742. ;;
  11743. esac
  11744. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  11745. # soname into executable. Probably we can add versioning support to
  11746. # collect2, so additional links can be useful in future.
  11747. if test "$aix_use_runtimelinking" = yes; then
  11748. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  11749. # instead of lib<name>.a to let people know that these are not
  11750. # typical AIX shared libraries.
  11751. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11752. else
  11753. # We preserve .a as extension for shared libraries through AIX4.2
  11754. # and later when we are not doing run time linking.
  11755. library_names_spec='${libname}${release}.a $libname.a'
  11756. soname_spec='${libname}${release}${shared_ext}$major'
  11757. fi
  11758. shlibpath_var=LIBPATH
  11759. fi
  11760. ;;
  11761. amigaos*)
  11762. case $host_cpu in
  11763. powerpc)
  11764. # Since July 2007 AmigaOS4 officially supports .so libraries.
  11765. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  11766. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11767. ;;
  11768. m68k)
  11769. library_names_spec='$libname.ixlibrary $libname.a'
  11770. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  11771. finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''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'
  11772. ;;
  11773. esac
  11774. ;;
  11775. beos*)
  11776. library_names_spec='${libname}${shared_ext}'
  11777. dynamic_linker="$host_os ld.so"
  11778. shlibpath_var=LIBRARY_PATH
  11779. ;;
  11780. bsdi[45]*)
  11781. version_type=linux
  11782. need_version=no
  11783. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11784. soname_spec='${libname}${release}${shared_ext}$major'
  11785. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  11786. shlibpath_var=LD_LIBRARY_PATH
  11787. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  11788. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  11789. # the default ld.so.conf also contains /usr/contrib/lib and
  11790. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  11791. # libtool to hard-code these into programs
  11792. ;;
  11793. cygwin* | mingw* | pw32* | cegcc*)
  11794. version_type=windows
  11795. shrext_cmds=".dll"
  11796. need_version=no
  11797. need_lib_prefix=no
  11798. case $GCC,$host_os in
  11799. yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
  11800. library_names_spec='$libname.dll.a'
  11801. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  11802. postinstall_cmds='base_file=`basename \${file}`~
  11803. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  11804. dldir=$destdir/`dirname \$dlpath`~
  11805. test -d \$dldir || mkdir -p \$dldir~
  11806. $install_prog $dir/$dlname \$dldir/$dlname~
  11807. chmod a+x \$dldir/$dlname~
  11808. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  11809. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  11810. fi'
  11811. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  11812. dlpath=$dir/\$dldll~
  11813. $RM \$dlpath'
  11814. shlibpath_overrides_runpath=yes
  11815. case $host_os in
  11816. cygwin*)
  11817. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  11818. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  11819. sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
  11820. ;;
  11821. mingw* | cegcc*)
  11822. # MinGW DLLs use traditional 'lib' prefix
  11823. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  11824. sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  11825. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  11826. # It is most probably a Windows format PATH printed by
  11827. # mingw gcc, but we are running on Cygwin. Gcc prints its search
  11828. # path with ; separators, and with drive letters. We can handle the
  11829. # drive letters (cygwin fileutils understands them), so leave them,
  11830. # especially as we might pass files found there to a mingw objdump,
  11831. # which wouldn't understand a cygwinified path. Ahh.
  11832. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  11833. else
  11834. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  11835. fi
  11836. ;;
  11837. pw32*)
  11838. # pw32 DLLs use 'pw' prefix rather than 'lib'
  11839. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  11840. ;;
  11841. esac
  11842. ;;
  11843. *)
  11844. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  11845. ;;
  11846. esac
  11847. dynamic_linker='Win32 ld.exe'
  11848. # FIXME: first we should search . and the directory the executable is in
  11849. shlibpath_var=PATH
  11850. ;;
  11851. darwin* | rhapsody*)
  11852. dynamic_linker="$host_os dyld"
  11853. version_type=darwin
  11854. need_lib_prefix=no
  11855. need_version=no
  11856. library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  11857. soname_spec='${libname}${release}${major}$shared_ext'
  11858. shlibpath_overrides_runpath=yes
  11859. shlibpath_var=DYLD_LIBRARY_PATH
  11860. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  11861. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  11862. ;;
  11863. dgux*)
  11864. version_type=linux
  11865. need_lib_prefix=no
  11866. need_version=no
  11867. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  11868. soname_spec='${libname}${release}${shared_ext}$major'
  11869. shlibpath_var=LD_LIBRARY_PATH
  11870. ;;
  11871. freebsd1*)
  11872. dynamic_linker=no
  11873. ;;
  11874. freebsd* | dragonfly*)
  11875. # DragonFly does not have aout. When/if they implement a new
  11876. # versioning mechanism, adjust this.
  11877. if test -x /usr/bin/objformat; then
  11878. objformat=`/usr/bin/objformat`
  11879. else
  11880. case $host_os in
  11881. freebsd[123]*) objformat=aout ;;
  11882. *) objformat=elf ;;
  11883. esac
  11884. fi
  11885. version_type=freebsd-$objformat
  11886. case $version_type in
  11887. freebsd-elf*)
  11888. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  11889. need_version=no
  11890. need_lib_prefix=no
  11891. ;;
  11892. freebsd-*)
  11893. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  11894. need_version=yes
  11895. ;;
  11896. esac
  11897. shlibpath_var=LD_LIBRARY_PATH
  11898. case $host_os in
  11899. freebsd2*)
  11900. shlibpath_overrides_runpath=yes
  11901. ;;
  11902. freebsd3.[01]* | freebsdelf3.[01]*)
  11903. shlibpath_overrides_runpath=yes
  11904. hardcode_into_libs=yes
  11905. ;;
  11906. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  11907. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  11908. shlibpath_overrides_runpath=no
  11909. hardcode_into_libs=yes
  11910. ;;
  11911. *) # from 4.6 on, and DragonFly
  11912. shlibpath_overrides_runpath=yes
  11913. hardcode_into_libs=yes
  11914. ;;
  11915. esac
  11916. ;;
  11917. gnu*)
  11918. version_type=linux
  11919. need_lib_prefix=no
  11920. need_version=no
  11921. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  11922. soname_spec='${libname}${release}${shared_ext}$major'
  11923. shlibpath_var=LD_LIBRARY_PATH
  11924. hardcode_into_libs=yes
  11925. ;;
  11926. hpux9* | hpux10* | hpux11*)
  11927. # Give a soname corresponding to the major version so that dld.sl refuses to
  11928. # link against other versions.
  11929. version_type=sunos
  11930. need_lib_prefix=no
  11931. need_version=no
  11932. case $host_cpu in
  11933. ia64*)
  11934. shrext_cmds='.so'
  11935. hardcode_into_libs=yes
  11936. dynamic_linker="$host_os dld.so"
  11937. shlibpath_var=LD_LIBRARY_PATH
  11938. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  11939. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11940. soname_spec='${libname}${release}${shared_ext}$major'
  11941. if test "X$HPUX_IA64_MODE" = X32; then
  11942. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  11943. else
  11944. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  11945. fi
  11946. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  11947. ;;
  11948. hppa*64*)
  11949. shrext_cmds='.sl'
  11950. hardcode_into_libs=yes
  11951. dynamic_linker="$host_os dld.sl"
  11952. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  11953. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  11954. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11955. soname_spec='${libname}${release}${shared_ext}$major'
  11956. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  11957. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  11958. ;;
  11959. *)
  11960. shrext_cmds='.sl'
  11961. dynamic_linker="$host_os dld.sl"
  11962. shlibpath_var=SHLIB_PATH
  11963. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  11964. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11965. soname_spec='${libname}${release}${shared_ext}$major'
  11966. ;;
  11967. esac
  11968. # HP-UX runs *really* slowly unless shared libraries are mode 555.
  11969. postinstall_cmds='chmod 555 $lib'
  11970. ;;
  11971. interix[3-9]*)
  11972. version_type=linux
  11973. need_lib_prefix=no
  11974. need_version=no
  11975. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  11976. soname_spec='${libname}${release}${shared_ext}$major'
  11977. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  11978. shlibpath_var=LD_LIBRARY_PATH
  11979. shlibpath_overrides_runpath=no
  11980. hardcode_into_libs=yes
  11981. ;;
  11982. irix5* | irix6* | nonstopux*)
  11983. case $host_os in
  11984. nonstopux*) version_type=nonstopux ;;
  11985. *)
  11986. if test "$lt_cv_prog_gnu_ld" = yes; then
  11987. version_type=linux
  11988. else
  11989. version_type=irix
  11990. fi ;;
  11991. esac
  11992. need_lib_prefix=no
  11993. need_version=no
  11994. soname_spec='${libname}${release}${shared_ext}$major'
  11995. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  11996. case $host_os in
  11997. irix5* | nonstopux*)
  11998. libsuff= shlibsuff=
  11999. ;;
  12000. *)
  12001. case $LD in # libtool.m4 will add one of these switches to LD
  12002. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  12003. libsuff= shlibsuff= libmagic=32-bit;;
  12004. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  12005. libsuff=32 shlibsuff=N32 libmagic=N32;;
  12006. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  12007. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  12008. *) libsuff= shlibsuff= libmagic=never-match;;
  12009. esac
  12010. ;;
  12011. esac
  12012. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  12013. shlibpath_overrides_runpath=no
  12014. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  12015. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  12016. hardcode_into_libs=yes
  12017. ;;
  12018. # No shared lib support for Linux oldld, aout, or coff.
  12019. linux*oldld* | linux*aout* | linux*coff*)
  12020. dynamic_linker=no
  12021. ;;
  12022. # This must be Linux ELF.
  12023. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  12024. version_type=linux
  12025. need_lib_prefix=no
  12026. need_version=no
  12027. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12028. soname_spec='${libname}${release}${shared_ext}$major'
  12029. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  12030. shlibpath_var=LD_LIBRARY_PATH
  12031. shlibpath_overrides_runpath=no
  12032. # Some binutils ld are patched to set DT_RUNPATH
  12033. save_LDFLAGS=$LDFLAGS
  12034. save_libdir=$libdir
  12035. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
  12036. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
  12037. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12038. /* end confdefs.h. */
  12039. int
  12040. main ()
  12041. {
  12042. ;
  12043. return 0;
  12044. }
  12045. _ACEOF
  12046. if ac_fn_cxx_try_link "$LINENO"; then :
  12047. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  12048. shlibpath_overrides_runpath=yes
  12049. fi
  12050. fi
  12051. rm -f core conftest.err conftest.$ac_objext \
  12052. conftest$ac_exeext conftest.$ac_ext
  12053. LDFLAGS=$save_LDFLAGS
  12054. libdir=$save_libdir
  12055. # This implies no fast_install, which is unacceptable.
  12056. # Some rework will be needed to allow for fast_install
  12057. # before this can be enabled.
  12058. hardcode_into_libs=yes
  12059. # Append ld.so.conf contents to the search path
  12060. if test -f /etc/ld.so.conf; then
  12061. 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;/^$/d' | tr '\n' ' '`
  12062. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  12063. fi
  12064. # We used to test for /lib/ld.so.1 and disable shared libraries on
  12065. # powerpc, because MkLinux only supported shared libraries with the
  12066. # GNU dynamic linker. Since this was broken with cross compilers,
  12067. # most powerpc-linux boxes support dynamic linking these days and
  12068. # people can always --disable-shared, the test was removed, and we
  12069. # assume the GNU/Linux dynamic linker is in use.
  12070. dynamic_linker='GNU/Linux ld.so'
  12071. ;;
  12072. netbsdelf*-gnu)
  12073. version_type=linux
  12074. need_lib_prefix=no
  12075. need_version=no
  12076. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  12077. soname_spec='${libname}${release}${shared_ext}$major'
  12078. shlibpath_var=LD_LIBRARY_PATH
  12079. shlibpath_overrides_runpath=no
  12080. hardcode_into_libs=yes
  12081. dynamic_linker='NetBSD ld.elf_so'
  12082. ;;
  12083. netbsd*)
  12084. version_type=sunos
  12085. need_lib_prefix=no
  12086. need_version=no
  12087. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  12088. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  12089. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  12090. dynamic_linker='NetBSD (a.out) ld.so'
  12091. else
  12092. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  12093. soname_spec='${libname}${release}${shared_ext}$major'
  12094. dynamic_linker='NetBSD ld.elf_so'
  12095. fi
  12096. shlibpath_var=LD_LIBRARY_PATH
  12097. shlibpath_overrides_runpath=yes
  12098. hardcode_into_libs=yes
  12099. ;;
  12100. newsos6)
  12101. version_type=linux
  12102. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12103. shlibpath_var=LD_LIBRARY_PATH
  12104. shlibpath_overrides_runpath=yes
  12105. ;;
  12106. *nto* | *qnx*)
  12107. version_type=qnx
  12108. need_lib_prefix=no
  12109. need_version=no
  12110. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12111. soname_spec='${libname}${release}${shared_ext}$major'
  12112. shlibpath_var=LD_LIBRARY_PATH
  12113. shlibpath_overrides_runpath=no
  12114. hardcode_into_libs=yes
  12115. dynamic_linker='ldqnx.so'
  12116. ;;
  12117. openbsd*)
  12118. version_type=sunos
  12119. sys_lib_dlsearch_path_spec="/usr/lib"
  12120. need_lib_prefix=no
  12121. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  12122. case $host_os in
  12123. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  12124. *) need_version=no ;;
  12125. esac
  12126. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  12127. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  12128. shlibpath_var=LD_LIBRARY_PATH
  12129. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  12130. case $host_os in
  12131. openbsd2.[89] | openbsd2.[89].*)
  12132. shlibpath_overrides_runpath=no
  12133. ;;
  12134. *)
  12135. shlibpath_overrides_runpath=yes
  12136. ;;
  12137. esac
  12138. else
  12139. shlibpath_overrides_runpath=yes
  12140. fi
  12141. ;;
  12142. os2*)
  12143. libname_spec='$name'
  12144. shrext_cmds=".dll"
  12145. need_lib_prefix=no
  12146. library_names_spec='$libname${shared_ext} $libname.a'
  12147. dynamic_linker='OS/2 ld.exe'
  12148. shlibpath_var=LIBPATH
  12149. ;;
  12150. osf3* | osf4* | osf5*)
  12151. version_type=osf
  12152. need_lib_prefix=no
  12153. need_version=no
  12154. soname_spec='${libname}${release}${shared_ext}$major'
  12155. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12156. shlibpath_var=LD_LIBRARY_PATH
  12157. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  12158. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  12159. ;;
  12160. rdos*)
  12161. dynamic_linker=no
  12162. ;;
  12163. solaris*)
  12164. version_type=linux
  12165. need_lib_prefix=no
  12166. need_version=no
  12167. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12168. soname_spec='${libname}${release}${shared_ext}$major'
  12169. shlibpath_var=LD_LIBRARY_PATH
  12170. shlibpath_overrides_runpath=yes
  12171. hardcode_into_libs=yes
  12172. # ldd complains unless libraries are executable
  12173. postinstall_cmds='chmod +x $lib'
  12174. ;;
  12175. sunos4*)
  12176. version_type=sunos
  12177. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  12178. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  12179. shlibpath_var=LD_LIBRARY_PATH
  12180. shlibpath_overrides_runpath=yes
  12181. if test "$with_gnu_ld" = yes; then
  12182. need_lib_prefix=no
  12183. fi
  12184. need_version=yes
  12185. ;;
  12186. sysv4 | sysv4.3*)
  12187. version_type=linux
  12188. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12189. soname_spec='${libname}${release}${shared_ext}$major'
  12190. shlibpath_var=LD_LIBRARY_PATH
  12191. case $host_vendor in
  12192. sni)
  12193. shlibpath_overrides_runpath=no
  12194. need_lib_prefix=no
  12195. runpath_var=LD_RUN_PATH
  12196. ;;
  12197. siemens)
  12198. need_lib_prefix=no
  12199. ;;
  12200. motorola)
  12201. need_lib_prefix=no
  12202. need_version=no
  12203. shlibpath_overrides_runpath=no
  12204. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  12205. ;;
  12206. esac
  12207. ;;
  12208. sysv4*MP*)
  12209. if test -d /usr/nec ;then
  12210. version_type=linux
  12211. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  12212. soname_spec='$libname${shared_ext}.$major'
  12213. shlibpath_var=LD_LIBRARY_PATH
  12214. fi
  12215. ;;
  12216. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  12217. version_type=freebsd-elf
  12218. need_lib_prefix=no
  12219. need_version=no
  12220. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  12221. soname_spec='${libname}${release}${shared_ext}$major'
  12222. shlibpath_var=LD_LIBRARY_PATH
  12223. shlibpath_overrides_runpath=yes
  12224. hardcode_into_libs=yes
  12225. if test "$with_gnu_ld" = yes; then
  12226. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  12227. else
  12228. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  12229. case $host_os in
  12230. sco3.2v5*)
  12231. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  12232. ;;
  12233. esac
  12234. fi
  12235. sys_lib_dlsearch_path_spec='/usr/lib'
  12236. ;;
  12237. tpf*)
  12238. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  12239. version_type=linux
  12240. need_lib_prefix=no
  12241. need_version=no
  12242. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12243. shlibpath_var=LD_LIBRARY_PATH
  12244. shlibpath_overrides_runpath=no
  12245. hardcode_into_libs=yes
  12246. ;;
  12247. uts4*)
  12248. version_type=linux
  12249. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12250. soname_spec='${libname}${release}${shared_ext}$major'
  12251. shlibpath_var=LD_LIBRARY_PATH
  12252. ;;
  12253. *)
  12254. dynamic_linker=no
  12255. ;;
  12256. esac
  12257. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  12258. $as_echo "$dynamic_linker" >&6; }
  12259. test "$dynamic_linker" = no && can_build_shared=no
  12260. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  12261. if test "$GCC" = yes; then
  12262. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  12263. fi
  12264. if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  12265. sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  12266. fi
  12267. if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  12268. sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  12269. fi
  12270. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  12271. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  12272. hardcode_action_CXX=
  12273. if test -n "$hardcode_libdir_flag_spec_CXX" ||
  12274. test -n "$runpath_var_CXX" ||
  12275. test "X$hardcode_automatic_CXX" = "Xyes" ; then
  12276. # We can hardcode non-existent directories.
  12277. if test "$hardcode_direct_CXX" != no &&
  12278. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  12279. # have to relink, otherwise we might link with an installed library
  12280. # when we should be linking with a yet-to-be-installed one
  12281. ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
  12282. test "$hardcode_minus_L_CXX" != no; then
  12283. # Linking always hardcodes the temporary library directory.
  12284. hardcode_action_CXX=relink
  12285. else
  12286. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  12287. hardcode_action_CXX=immediate
  12288. fi
  12289. else
  12290. # We cannot hardcode anything, or else we can only hardcode existing
  12291. # directories.
  12292. hardcode_action_CXX=unsupported
  12293. fi
  12294. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
  12295. $as_echo "$hardcode_action_CXX" >&6; }
  12296. if test "$hardcode_action_CXX" = relink ||
  12297. test "$inherit_rpath_CXX" = yes; then
  12298. # Fast installation is not supported
  12299. enable_fast_install=no
  12300. elif test "$shlibpath_overrides_runpath" = yes ||
  12301. test "$enable_shared" = no; then
  12302. # Fast installation is not necessary
  12303. enable_fast_install=needless
  12304. fi
  12305. fi # test -n "$compiler"
  12306. CC=$lt_save_CC
  12307. LDCXX=$LD
  12308. LD=$lt_save_LD
  12309. GCC=$lt_save_GCC
  12310. with_gnu_ld=$lt_save_with_gnu_ld
  12311. lt_cv_path_LDCXX=$lt_cv_path_LD
  12312. lt_cv_path_LD=$lt_save_path_LD
  12313. lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
  12314. lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
  12315. fi # test "$_lt_caught_CXX_error" != yes
  12316. ac_ext=c
  12317. ac_cpp='$CPP $CPPFLAGS'
  12318. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  12319. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  12320. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  12321. # Checks for programs.
  12322. # Checks for libraries.
  12323. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_create_read_struct in -lpng15" >&5
  12324. $as_echo_n "checking for png_create_read_struct in -lpng15... " >&6; }
  12325. if test "${ac_cv_lib_png15_png_create_read_struct+set}" = set; then :
  12326. $as_echo_n "(cached) " >&6
  12327. else
  12328. ac_check_lib_save_LIBS=$LIBS
  12329. LIBS="-lpng15 $LIBS"
  12330. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12331. /* end confdefs.h. */
  12332. /* Override any GCC internal prototype to avoid an error.
  12333. Use char because int might match the return type of a GCC
  12334. builtin and then its argument prototype would still apply. */
  12335. #ifdef __cplusplus
  12336. extern "C"
  12337. #endif
  12338. char png_create_read_struct ();
  12339. int
  12340. main ()
  12341. {
  12342. return png_create_read_struct ();
  12343. ;
  12344. return 0;
  12345. }
  12346. _ACEOF
  12347. if ac_fn_c_try_link "$LINENO"; then :
  12348. ac_cv_lib_png15_png_create_read_struct=yes
  12349. else
  12350. ac_cv_lib_png15_png_create_read_struct=no
  12351. fi
  12352. rm -f core conftest.err conftest.$ac_objext \
  12353. conftest$ac_exeext conftest.$ac_ext
  12354. LIBS=$ac_check_lib_save_LIBS
  12355. fi
  12356. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png15_png_create_read_struct" >&5
  12357. $as_echo "$ac_cv_lib_png15_png_create_read_struct" >&6; }
  12358. if test "x$ac_cv_lib_png15_png_create_read_struct" = x""yes; then :
  12359. cat >>confdefs.h <<_ACEOF
  12360. @%:@define HAVE_LIBPNG15 1
  12361. _ACEOF
  12362. LIBS="-lpng15 $LIBS"
  12363. else
  12364. echo "libpng is required!"
  12365. exit -1
  12366. fi
  12367. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FT_Load_Glyph in -lfreetype" >&5
  12368. $as_echo_n "checking for FT_Load_Glyph in -lfreetype... " >&6; }
  12369. if test "${ac_cv_lib_freetype_FT_Load_Glyph+set}" = set; then :
  12370. $as_echo_n "(cached) " >&6
  12371. else
  12372. ac_check_lib_save_LIBS=$LIBS
  12373. LIBS="-lfreetype $LIBS"
  12374. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12375. /* end confdefs.h. */
  12376. /* Override any GCC internal prototype to avoid an error.
  12377. Use char because int might match the return type of a GCC
  12378. builtin and then its argument prototype would still apply. */
  12379. #ifdef __cplusplus
  12380. extern "C"
  12381. #endif
  12382. char FT_Load_Glyph ();
  12383. int
  12384. main ()
  12385. {
  12386. return FT_Load_Glyph ();
  12387. ;
  12388. return 0;
  12389. }
  12390. _ACEOF
  12391. if ac_fn_c_try_link "$LINENO"; then :
  12392. ac_cv_lib_freetype_FT_Load_Glyph=yes
  12393. else
  12394. ac_cv_lib_freetype_FT_Load_Glyph=no
  12395. fi
  12396. rm -f core conftest.err conftest.$ac_objext \
  12397. conftest$ac_exeext conftest.$ac_ext
  12398. LIBS=$ac_check_lib_save_LIBS
  12399. fi
  12400. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_freetype_FT_Load_Glyph" >&5
  12401. $as_echo "$ac_cv_lib_freetype_FT_Load_Glyph" >&6; }
  12402. if test "x$ac_cv_lib_freetype_FT_Load_Glyph" = x""yes; then :
  12403. cat >>confdefs.h <<_ACEOF
  12404. @%:@define HAVE_LIBFREETYPE 1
  12405. _ACEOF
  12406. LIBS="-lfreetype $LIBS"
  12407. else
  12408. echo "freetype is required!"
  12409. exit -1
  12410. fi
  12411. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for vorbis_info_init in -lvorbis" >&5
  12412. $as_echo_n "checking for vorbis_info_init in -lvorbis... " >&6; }
  12413. if test "${ac_cv_lib_vorbis_vorbis_info_init+set}" = set; then :
  12414. $as_echo_n "(cached) " >&6
  12415. else
  12416. ac_check_lib_save_LIBS=$LIBS
  12417. LIBS="-lvorbis $LIBS"
  12418. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12419. /* end confdefs.h. */
  12420. /* Override any GCC internal prototype to avoid an error.
  12421. Use char because int might match the return type of a GCC
  12422. builtin and then its argument prototype would still apply. */
  12423. #ifdef __cplusplus
  12424. extern "C"
  12425. #endif
  12426. char vorbis_info_init ();
  12427. int
  12428. main ()
  12429. {
  12430. return vorbis_info_init ();
  12431. ;
  12432. return 0;
  12433. }
  12434. _ACEOF
  12435. if ac_fn_c_try_link "$LINENO"; then :
  12436. ac_cv_lib_vorbis_vorbis_info_init=yes
  12437. else
  12438. ac_cv_lib_vorbis_vorbis_info_init=no
  12439. fi
  12440. rm -f core conftest.err conftest.$ac_objext \
  12441. conftest$ac_exeext conftest.$ac_ext
  12442. LIBS=$ac_check_lib_save_LIBS
  12443. fi
  12444. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_vorbis_vorbis_info_init" >&5
  12445. $as_echo "$ac_cv_lib_vorbis_vorbis_info_init" >&6; }
  12446. if test "x$ac_cv_lib_vorbis_vorbis_info_init" = x""yes; then :
  12447. cat >>confdefs.h <<_ACEOF
  12448. @%:@define HAVE_LIBVORBIS 1
  12449. _ACEOF
  12450. LIBS="-lvorbis $LIBS"
  12451. else
  12452. echo "libvorbis is required!"
  12453. exit -1
  12454. fi
  12455. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ov_open_callbacks in -lvorbisfile" >&5
  12456. $as_echo_n "checking for ov_open_callbacks in -lvorbisfile... " >&6; }
  12457. if test "${ac_cv_lib_vorbisfile_ov_open_callbacks+set}" = set; then :
  12458. $as_echo_n "(cached) " >&6
  12459. else
  12460. ac_check_lib_save_LIBS=$LIBS
  12461. LIBS="-lvorbisfile $LIBS"
  12462. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12463. /* end confdefs.h. */
  12464. /* Override any GCC internal prototype to avoid an error.
  12465. Use char because int might match the return type of a GCC
  12466. builtin and then its argument prototype would still apply. */
  12467. #ifdef __cplusplus
  12468. extern "C"
  12469. #endif
  12470. char ov_open_callbacks ();
  12471. int
  12472. main ()
  12473. {
  12474. return ov_open_callbacks ();
  12475. ;
  12476. return 0;
  12477. }
  12478. _ACEOF
  12479. if ac_fn_c_try_link "$LINENO"; then :
  12480. ac_cv_lib_vorbisfile_ov_open_callbacks=yes
  12481. else
  12482. ac_cv_lib_vorbisfile_ov_open_callbacks=no
  12483. fi
  12484. rm -f core conftest.err conftest.$ac_objext \
  12485. conftest$ac_exeext conftest.$ac_ext
  12486. LIBS=$ac_check_lib_save_LIBS
  12487. fi
  12488. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_vorbisfile_ov_open_callbacks" >&5
  12489. $as_echo "$ac_cv_lib_vorbisfile_ov_open_callbacks" >&6; }
  12490. if test "x$ac_cv_lib_vorbisfile_ov_open_callbacks" = x""yes; then :
  12491. cat >>confdefs.h <<_ACEOF
  12492. @%:@define HAVE_LIBVORBISFILE 1
  12493. _ACEOF
  12494. LIBS="-lvorbisfile $LIBS"
  12495. else
  12496. echo "libvorbisfile is required!"
  12497. exit -1
  12498. fi
  12499. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PHYSFS_init in -lphysfs" >&5
  12500. $as_echo_n "checking for PHYSFS_init in -lphysfs... " >&6; }
  12501. if test "${ac_cv_lib_physfs_PHYSFS_init+set}" = set; then :
  12502. $as_echo_n "(cached) " >&6
  12503. else
  12504. ac_check_lib_save_LIBS=$LIBS
  12505. LIBS="-lphysfs $LIBS"
  12506. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12507. /* end confdefs.h. */
  12508. /* Override any GCC internal prototype to avoid an error.
  12509. Use char because int might match the return type of a GCC
  12510. builtin and then its argument prototype would still apply. */
  12511. #ifdef __cplusplus
  12512. extern "C"
  12513. #endif
  12514. char PHYSFS_init ();
  12515. int
  12516. main ()
  12517. {
  12518. return PHYSFS_init ();
  12519. ;
  12520. return 0;
  12521. }
  12522. _ACEOF
  12523. if ac_fn_c_try_link "$LINENO"; then :
  12524. ac_cv_lib_physfs_PHYSFS_init=yes
  12525. else
  12526. ac_cv_lib_physfs_PHYSFS_init=no
  12527. fi
  12528. rm -f core conftest.err conftest.$ac_objext \
  12529. conftest$ac_exeext conftest.$ac_ext
  12530. LIBS=$ac_check_lib_save_LIBS
  12531. fi
  12532. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_physfs_PHYSFS_init" >&5
  12533. $as_echo "$ac_cv_lib_physfs_PHYSFS_init" >&6; }
  12534. if test "x$ac_cv_lib_physfs_PHYSFS_init" = x""yes; then :
  12535. cat >>confdefs.h <<_ACEOF
  12536. @%:@define HAVE_LIBPHYSFS 1
  12537. _ACEOF
  12538. LIBS="-lphysfs $LIBS"
  12539. else
  12540. echo "physfs is required!"
  12541. exit -1
  12542. fi
  12543. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alGenSources in -lopenal" >&5
  12544. $as_echo_n "checking for alGenSources in -lopenal... " >&6; }
  12545. if test "${ac_cv_lib_openal_alGenSources+set}" = set; then :
  12546. $as_echo_n "(cached) " >&6
  12547. else
  12548. ac_check_lib_save_LIBS=$LIBS
  12549. LIBS="-lopenal $LIBS"
  12550. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12551. /* end confdefs.h. */
  12552. /* Override any GCC internal prototype to avoid an error.
  12553. Use char because int might match the return type of a GCC
  12554. builtin and then its argument prototype would still apply. */
  12555. #ifdef __cplusplus
  12556. extern "C"
  12557. #endif
  12558. char alGenSources ();
  12559. int
  12560. main ()
  12561. {
  12562. return alGenSources ();
  12563. ;
  12564. return 0;
  12565. }
  12566. _ACEOF
  12567. if ac_fn_c_try_link "$LINENO"; then :
  12568. ac_cv_lib_openal_alGenSources=yes
  12569. else
  12570. ac_cv_lib_openal_alGenSources=no
  12571. fi
  12572. rm -f core conftest.err conftest.$ac_objext \
  12573. conftest$ac_exeext conftest.$ac_ext
  12574. LIBS=$ac_check_lib_save_LIBS
  12575. fi
  12576. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_openal_alGenSources" >&5
  12577. $as_echo "$ac_cv_lib_openal_alGenSources" >&6; }
  12578. if test "x$ac_cv_lib_openal_alGenSources" = x""yes; then :
  12579. cat >>confdefs.h <<_ACEOF
  12580. @%:@define HAVE_LIBOPENAL 1
  12581. _ACEOF
  12582. LIBS="-lopenal $LIBS"
  12583. else
  12584. echo "openal is required!"
  12585. exit -1
  12586. fi
  12587. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SDL_Init in -lSDL" >&5
  12588. $as_echo_n "checking for SDL_Init in -lSDL... " >&6; }
  12589. if test "${ac_cv_lib_SDL_SDL_Init+set}" = set; then :
  12590. $as_echo_n "(cached) " >&6
  12591. else
  12592. ac_check_lib_save_LIBS=$LIBS
  12593. LIBS="-lSDL $LIBS"
  12594. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12595. /* end confdefs.h. */
  12596. /* Override any GCC internal prototype to avoid an error.
  12597. Use char because int might match the return type of a GCC
  12598. builtin and then its argument prototype would still apply. */
  12599. #ifdef __cplusplus
  12600. extern "C"
  12601. #endif
  12602. char SDL_Init ();
  12603. int
  12604. main ()
  12605. {
  12606. return SDL_Init ();
  12607. ;
  12608. return 0;
  12609. }
  12610. _ACEOF
  12611. if ac_fn_c_try_link "$LINENO"; then :
  12612. ac_cv_lib_SDL_SDL_Init=yes
  12613. else
  12614. ac_cv_lib_SDL_SDL_Init=no
  12615. fi
  12616. rm -f core conftest.err conftest.$ac_objext \
  12617. conftest$ac_exeext conftest.$ac_ext
  12618. LIBS=$ac_check_lib_save_LIBS
  12619. fi
  12620. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_SDL_SDL_Init" >&5
  12621. $as_echo "$ac_cv_lib_SDL_SDL_Init" >&6; }
  12622. if test "x$ac_cv_lib_SDL_SDL_Init" = x""yes; then :
  12623. cat >>confdefs.h <<_ACEOF
  12624. @%:@define HAVE_LIBSDL 1
  12625. _ACEOF
  12626. LIBS="-lSDL $LIBS"
  12627. else
  12628. echo "SDL is required!"
  12629. exit -1
  12630. fi
  12631. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for glBegin in -lGL" >&5
  12632. $as_echo_n "checking for glBegin in -lGL... " >&6; }
  12633. if test "${ac_cv_lib_GL_glBegin+set}" = set; then :
  12634. $as_echo_n "(cached) " >&6
  12635. else
  12636. ac_check_lib_save_LIBS=$LIBS
  12637. LIBS="-lGL $LIBS"
  12638. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12639. /* end confdefs.h. */
  12640. /* Override any GCC internal prototype to avoid an error.
  12641. Use char because int might match the return type of a GCC
  12642. builtin and then its argument prototype would still apply. */
  12643. #ifdef __cplusplus
  12644. extern "C"
  12645. #endif
  12646. char glBegin ();
  12647. int
  12648. main ()
  12649. {
  12650. return glBegin ();
  12651. ;
  12652. return 0;
  12653. }
  12654. _ACEOF
  12655. if ac_fn_c_try_link "$LINENO"; then :
  12656. ac_cv_lib_GL_glBegin=yes
  12657. else
  12658. ac_cv_lib_GL_glBegin=no
  12659. fi
  12660. rm -f core conftest.err conftest.$ac_objext \
  12661. conftest$ac_exeext conftest.$ac_ext
  12662. LIBS=$ac_check_lib_save_LIBS
  12663. fi
  12664. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_GL_glBegin" >&5
  12665. $as_echo "$ac_cv_lib_GL_glBegin" >&6; }
  12666. if test "x$ac_cv_lib_GL_glBegin" = x""yes; then :
  12667. cat >>confdefs.h <<_ACEOF
  12668. @%:@define HAVE_LIBGL 1
  12669. _ACEOF
  12670. LIBS="-lGL $LIBS"
  12671. else
  12672. echo "OpenGL is required!"
  12673. exit -1
  12674. fi
  12675. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gluGetString in -lGLU" >&5
  12676. $as_echo_n "checking for gluGetString in -lGLU... " >&6; }
  12677. if test "${ac_cv_lib_GLU_gluGetString+set}" = set; then :
  12678. $as_echo_n "(cached) " >&6
  12679. else
  12680. ac_check_lib_save_LIBS=$LIBS
  12681. LIBS="-lGLU $LIBS"
  12682. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12683. /* end confdefs.h. */
  12684. /* Override any GCC internal prototype to avoid an error.
  12685. Use char because int might match the return type of a GCC
  12686. builtin and then its argument prototype would still apply. */
  12687. #ifdef __cplusplus
  12688. extern "C"
  12689. #endif
  12690. char gluGetString ();
  12691. int
  12692. main ()
  12693. {
  12694. return gluGetString ();
  12695. ;
  12696. return 0;
  12697. }
  12698. _ACEOF
  12699. if ac_fn_c_try_link "$LINENO"; then :
  12700. ac_cv_lib_GLU_gluGetString=yes
  12701. else
  12702. ac_cv_lib_GLU_gluGetString=no
  12703. fi
  12704. rm -f core conftest.err conftest.$ac_objext \
  12705. conftest$ac_exeext conftest.$ac_ext
  12706. LIBS=$ac_check_lib_save_LIBS
  12707. fi
  12708. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_GLU_gluGetString" >&5
  12709. $as_echo "$ac_cv_lib_GLU_gluGetString" >&6; }
  12710. if test "x$ac_cv_lib_GLU_gluGetString" = x""yes; then :
  12711. cat >>confdefs.h <<_ACEOF
  12712. @%:@define HAVE_LIBGLU 1
  12713. _ACEOF
  12714. LIBS="-lGLU $LIBS"
  12715. else
  12716. echo "glu is required!"
  12717. exit -1
  12718. fi
  12719. # Checks for header files.
  12720. # Checks for typedefs, structures, and compiler characteristics.
  12721. # Checks for library functions.
  12722. cat >confcache <<\_ACEOF
  12723. # This file is a shell script that caches the results of configure
  12724. # tests run on this system so they can be shared between configure
  12725. # scripts and configure runs, see configure's option --config-cache.
  12726. # It is not useful on other systems. If it contains results you don't
  12727. # want to keep, you may remove or edit it.
  12728. #
  12729. # config.status only pays attention to the cache file if you give it
  12730. # the --recheck option to rerun configure.
  12731. #
  12732. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  12733. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  12734. # following values.
  12735. _ACEOF
  12736. # The following way of writing the cache mishandles newlines in values,
  12737. # but we know of no workaround that is simple, portable, and efficient.
  12738. # So, we kill variables containing newlines.
  12739. # Ultrix sh set writes to stderr and can't be redirected directly,
  12740. # and sets the high bit in the cache file unless we assign to the vars.
  12741. (
  12742. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  12743. eval ac_val=\$$ac_var
  12744. case $ac_val in #(
  12745. *${as_nl}*)
  12746. case $ac_var in #(
  12747. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  12748. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  12749. esac
  12750. case $ac_var in #(
  12751. _ | IFS | as_nl) ;; #(
  12752. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  12753. *) { eval $ac_var=; unset $ac_var;} ;;
  12754. esac ;;
  12755. esac
  12756. done
  12757. (set) 2>&1 |
  12758. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  12759. *${as_nl}ac_space=\ *)
  12760. # `set' does not quote correctly, so add quotes: double-quote
  12761. # substitution turns \\\\ into \\, and sed turns \\ into \.
  12762. sed -n \
  12763. "s/'/'\\\\''/g;
  12764. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  12765. ;; #(
  12766. *)
  12767. # `set' quotes correctly as required by POSIX, so do not add quotes.
  12768. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  12769. ;;
  12770. esac |
  12771. sort
  12772. ) |
  12773. sed '
  12774. /^ac_cv_env_/b end
  12775. t clear
  12776. :clear
  12777. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  12778. t end
  12779. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  12780. :end' >>confcache
  12781. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  12782. if test -w "$cache_file"; then
  12783. test "x$cache_file" != "x/dev/null" &&
  12784. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  12785. $as_echo "$as_me: updating cache $cache_file" >&6;}
  12786. cat confcache >$cache_file
  12787. else
  12788. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  12789. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  12790. fi
  12791. fi
  12792. rm -f confcache
  12793. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  12794. # Let make expand exec_prefix.
  12795. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  12796. # Transform confdefs.h into DEFS.
  12797. # Protect against shell expansion while executing Makefile rules.
  12798. # Protect against Makefile macro expansion.
  12799. #
  12800. # If the first sed substitution is executed (which looks for macros that
  12801. # take arguments), then branch to the quote section. Otherwise,
  12802. # look for a macro that doesn't take arguments.
  12803. ac_script='
  12804. :mline
  12805. /\\$/{
  12806. N
  12807. s,\\\n,,
  12808. b mline
  12809. }
  12810. t clear
  12811. :clear
  12812. s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
  12813. t quote
  12814. s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
  12815. t quote
  12816. b any
  12817. :quote
  12818. s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
  12819. s/\[/\\&/g
  12820. s/\]/\\&/g
  12821. s/\$/$$/g
  12822. H
  12823. :any
  12824. ${
  12825. g
  12826. s/^\n//
  12827. s/\n/ /g
  12828. p
  12829. }
  12830. '
  12831. DEFS=`sed -n "$ac_script" confdefs.h`
  12832. ac_libobjs=
  12833. ac_ltlibobjs=
  12834. U=
  12835. for ac_i in : $LIB@&t@OBJS; do test "x$ac_i" = x: && continue
  12836. # 1. Remove the extension, and $U if already installed.
  12837. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  12838. ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  12839. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  12840. # will be set to the directory where LIBOBJS objects are built.
  12841. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  12842. as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  12843. done
  12844. LIB@&t@OBJS=$ac_libobjs
  12845. LTLIBOBJS=$ac_ltlibobjs
  12846. if test -n "$EXEEXT"; then
  12847. am__EXEEXT_TRUE=
  12848. am__EXEEXT_FALSE='#'
  12849. else
  12850. am__EXEEXT_TRUE='#'
  12851. am__EXEEXT_FALSE=
  12852. fi
  12853. if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
  12854. as_fn_error $? "conditional \"AMDEP\" was never defined.
  12855. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  12856. fi
  12857. if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  12858. as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
  12859. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  12860. fi
  12861. if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
  12862. as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
  12863. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  12864. fi
  12865. if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
  12866. as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
  12867. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  12868. fi
  12869. : ${CONFIG_STATUS=./config.status}
  12870. ac_write_fail=0
  12871. ac_clean_files_save=$ac_clean_files
  12872. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  12873. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  12874. $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  12875. as_write_fail=0
  12876. cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  12877. #! $SHELL
  12878. # Generated by $as_me.
  12879. # Run this file to recreate the current configuration.
  12880. # Compiler output produced by configure, useful for debugging
  12881. # configure, is in config.log if it exists.
  12882. debug=false
  12883. ac_cs_recheck=false
  12884. ac_cs_silent=false
  12885. SHELL=\${CONFIG_SHELL-$SHELL}
  12886. export SHELL
  12887. _ASEOF
  12888. cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  12889. ## -------------------- ##
  12890. ## M4sh Initialization. ##
  12891. ## -------------------- ##
  12892. # Be more Bourne compatible
  12893. DUALCASE=1; export DUALCASE # for MKS sh
  12894. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  12895. emulate sh
  12896. NULLCMD=:
  12897. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  12898. # is contrary to our usage. Disable this feature.
  12899. alias -g '${1+"$@"}'='"$@"'
  12900. setopt NO_GLOB_SUBST
  12901. else
  12902. case `(set -o) 2>/dev/null` in @%:@(
  12903. *posix*) :
  12904. set -o posix ;; @%:@(
  12905. *) :
  12906. ;;
  12907. esac
  12908. fi
  12909. as_nl='
  12910. '
  12911. export as_nl
  12912. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  12913. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  12914. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  12915. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  12916. # Prefer a ksh shell builtin over an external printf program on Solaris,
  12917. # but without wasting forks for bash or zsh.
  12918. if test -z "$BASH_VERSION$ZSH_VERSION" \
  12919. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  12920. as_echo='print -r --'
  12921. as_echo_n='print -rn --'
  12922. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  12923. as_echo='printf %s\n'
  12924. as_echo_n='printf %s'
  12925. else
  12926. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  12927. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  12928. as_echo_n='/usr/ucb/echo -n'
  12929. else
  12930. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  12931. as_echo_n_body='eval
  12932. arg=$1;
  12933. case $arg in @%:@(
  12934. *"$as_nl"*)
  12935. expr "X$arg" : "X\\(.*\\)$as_nl";
  12936. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  12937. esac;
  12938. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  12939. '
  12940. export as_echo_n_body
  12941. as_echo_n='sh -c $as_echo_n_body as_echo'
  12942. fi
  12943. export as_echo_body
  12944. as_echo='sh -c $as_echo_body as_echo'
  12945. fi
  12946. # The user is always right.
  12947. if test "${PATH_SEPARATOR+set}" != set; then
  12948. PATH_SEPARATOR=:
  12949. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  12950. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  12951. PATH_SEPARATOR=';'
  12952. }
  12953. fi
  12954. # IFS
  12955. # We need space, tab and new line, in precisely that order. Quoting is
  12956. # there to prevent editors from complaining about space-tab.
  12957. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  12958. # splitting by setting IFS to empty value.)
  12959. IFS=" "" $as_nl"
  12960. # Find who we are. Look in the path if we contain no directory separator.
  12961. case $0 in @%:@((
  12962. *[\\/]* ) as_myself=$0 ;;
  12963. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  12964. for as_dir in $PATH
  12965. do
  12966. IFS=$as_save_IFS
  12967. test -z "$as_dir" && as_dir=.
  12968. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  12969. done
  12970. IFS=$as_save_IFS
  12971. ;;
  12972. esac
  12973. # We did not find ourselves, most probably we were run as `sh COMMAND'
  12974. # in which case we are not to be found in the path.
  12975. if test "x$as_myself" = x; then
  12976. as_myself=$0
  12977. fi
  12978. if test ! -f "$as_myself"; then
  12979. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  12980. exit 1
  12981. fi
  12982. # Unset variables that we do not need and which cause bugs (e.g. in
  12983. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  12984. # suppresses any "Segmentation fault" message there. '((' could
  12985. # trigger a bug in pdksh 5.2.14.
  12986. for as_var in BASH_ENV ENV MAIL MAILPATH
  12987. do eval test x\${$as_var+set} = xset \
  12988. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  12989. done
  12990. PS1='$ '
  12991. PS2='> '
  12992. PS4='+ '
  12993. # NLS nuisances.
  12994. LC_ALL=C
  12995. export LC_ALL
  12996. LANGUAGE=C
  12997. export LANGUAGE
  12998. # CDPATH.
  12999. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  13000. @%:@ as_fn_error STATUS ERROR [LINENO LOG_FD]
  13001. @%:@ ----------------------------------------
  13002. @%:@ Output "`basename @S|@0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  13003. @%:@ provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  13004. @%:@ script with STATUS, using 1 if that was 0.
  13005. as_fn_error ()
  13006. {
  13007. as_status=$1; test $as_status -eq 0 && as_status=1
  13008. if test "$4"; then
  13009. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  13010. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  13011. fi
  13012. $as_echo "$as_me: error: $2" >&2
  13013. as_fn_exit $as_status
  13014. } @%:@ as_fn_error
  13015. @%:@ as_fn_set_status STATUS
  13016. @%:@ -----------------------
  13017. @%:@ Set @S|@? to STATUS, without forking.
  13018. as_fn_set_status ()
  13019. {
  13020. return $1
  13021. } @%:@ as_fn_set_status
  13022. @%:@ as_fn_exit STATUS
  13023. @%:@ -----------------
  13024. @%:@ Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  13025. as_fn_exit ()
  13026. {
  13027. set +e
  13028. as_fn_set_status $1
  13029. exit $1
  13030. } @%:@ as_fn_exit
  13031. @%:@ as_fn_unset VAR
  13032. @%:@ ---------------
  13033. @%:@ Portably unset VAR.
  13034. as_fn_unset ()
  13035. {
  13036. { eval $1=; unset $1;}
  13037. }
  13038. as_unset=as_fn_unset
  13039. @%:@ as_fn_append VAR VALUE
  13040. @%:@ ----------------------
  13041. @%:@ Append the text in VALUE to the end of the definition contained in VAR. Take
  13042. @%:@ advantage of any shell optimizations that allow amortized linear growth over
  13043. @%:@ repeated appends, instead of the typical quadratic growth present in naive
  13044. @%:@ implementations.
  13045. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  13046. eval 'as_fn_append ()
  13047. {
  13048. eval $1+=\$2
  13049. }'
  13050. else
  13051. as_fn_append ()
  13052. {
  13053. eval $1=\$$1\$2
  13054. }
  13055. fi # as_fn_append
  13056. @%:@ as_fn_arith ARG...
  13057. @%:@ ------------------
  13058. @%:@ Perform arithmetic evaluation on the ARGs, and store the result in the
  13059. @%:@ global @S|@as_val. Take advantage of shells that can avoid forks. The arguments
  13060. @%:@ must be portable across @S|@(()) and expr.
  13061. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  13062. eval 'as_fn_arith ()
  13063. {
  13064. as_val=$(( $* ))
  13065. }'
  13066. else
  13067. as_fn_arith ()
  13068. {
  13069. as_val=`expr "$@" || test $? -eq 1`
  13070. }
  13071. fi # as_fn_arith
  13072. if expr a : '\(a\)' >/dev/null 2>&1 &&
  13073. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  13074. as_expr=expr
  13075. else
  13076. as_expr=false
  13077. fi
  13078. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  13079. as_basename=basename
  13080. else
  13081. as_basename=false
  13082. fi
  13083. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  13084. as_dirname=dirname
  13085. else
  13086. as_dirname=false
  13087. fi
  13088. as_me=`$as_basename -- "$0" ||
  13089. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  13090. X"$0" : 'X\(//\)$' \| \
  13091. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  13092. $as_echo X/"$0" |
  13093. sed '/^.*\/\([^/][^/]*\)\/*$/{
  13094. s//\1/
  13095. q
  13096. }
  13097. /^X\/\(\/\/\)$/{
  13098. s//\1/
  13099. q
  13100. }
  13101. /^X\/\(\/\).*/{
  13102. s//\1/
  13103. q
  13104. }
  13105. s/.*/./; q'`
  13106. # Avoid depending upon Character Ranges.
  13107. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  13108. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  13109. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  13110. as_cr_digits='0123456789'
  13111. as_cr_alnum=$as_cr_Letters$as_cr_digits
  13112. ECHO_C= ECHO_N= ECHO_T=
  13113. case `echo -n x` in @%:@(((((
  13114. -n*)
  13115. case `echo 'xy\c'` in
  13116. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  13117. xy) ECHO_C='\c';;
  13118. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  13119. ECHO_T=' ';;
  13120. esac;;
  13121. *)
  13122. ECHO_N='-n';;
  13123. esac
  13124. rm -f conf$$ conf$$.exe conf$$.file
  13125. if test -d conf$$.dir; then
  13126. rm -f conf$$.dir/conf$$.file
  13127. else
  13128. rm -f conf$$.dir
  13129. mkdir conf$$.dir 2>/dev/null
  13130. fi
  13131. if (echo >conf$$.file) 2>/dev/null; then
  13132. if ln -s conf$$.file conf$$ 2>/dev/null; then
  13133. as_ln_s='ln -s'
  13134. # ... but there are two gotchas:
  13135. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  13136. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  13137. # In both cases, we have to default to `cp -p'.
  13138. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  13139. as_ln_s='cp -p'
  13140. elif ln conf$$.file conf$$ 2>/dev/null; then
  13141. as_ln_s=ln
  13142. else
  13143. as_ln_s='cp -p'
  13144. fi
  13145. else
  13146. as_ln_s='cp -p'
  13147. fi
  13148. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  13149. rmdir conf$$.dir 2>/dev/null
  13150. @%:@ as_fn_mkdir_p
  13151. @%:@ -------------
  13152. @%:@ Create "@S|@as_dir" as a directory, including parents if necessary.
  13153. as_fn_mkdir_p ()
  13154. {
  13155. case $as_dir in #(
  13156. -*) as_dir=./$as_dir;;
  13157. esac
  13158. test -d "$as_dir" || eval $as_mkdir_p || {
  13159. as_dirs=
  13160. while :; do
  13161. case $as_dir in #(
  13162. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  13163. *) as_qdir=$as_dir;;
  13164. esac
  13165. as_dirs="'$as_qdir' $as_dirs"
  13166. as_dir=`$as_dirname -- "$as_dir" ||
  13167. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  13168. X"$as_dir" : 'X\(//\)[^/]' \| \
  13169. X"$as_dir" : 'X\(//\)$' \| \
  13170. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  13171. $as_echo X"$as_dir" |
  13172. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  13173. s//\1/
  13174. q
  13175. }
  13176. /^X\(\/\/\)[^/].*/{
  13177. s//\1/
  13178. q
  13179. }
  13180. /^X\(\/\/\)$/{
  13181. s//\1/
  13182. q
  13183. }
  13184. /^X\(\/\).*/{
  13185. s//\1/
  13186. q
  13187. }
  13188. s/.*/./; q'`
  13189. test -d "$as_dir" && break
  13190. done
  13191. test -z "$as_dirs" || eval "mkdir $as_dirs"
  13192. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  13193. } @%:@ as_fn_mkdir_p
  13194. if mkdir -p . 2>/dev/null; then
  13195. as_mkdir_p='mkdir -p "$as_dir"'
  13196. else
  13197. test -d ./-p && rmdir ./-p
  13198. as_mkdir_p=false
  13199. fi
  13200. if test -x / >/dev/null 2>&1; then
  13201. as_test_x='test -x'
  13202. else
  13203. if ls -dL / >/dev/null 2>&1; then
  13204. as_ls_L_option=L
  13205. else
  13206. as_ls_L_option=
  13207. fi
  13208. as_test_x='
  13209. eval sh -c '\''
  13210. if test -d "$1"; then
  13211. test -d "$1/.";
  13212. else
  13213. case $1 in @%:@(
  13214. -*)set "./$1";;
  13215. esac;
  13216. case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in @%:@((
  13217. ???[sx]*):;;*)false;;esac;fi
  13218. '\'' sh
  13219. '
  13220. fi
  13221. as_executable_p=$as_test_x
  13222. # Sed expression to map a string onto a valid CPP name.
  13223. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  13224. # Sed expression to map a string onto a valid variable name.
  13225. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  13226. exec 6>&1
  13227. ## ----------------------------------- ##
  13228. ## Main body of $CONFIG_STATUS script. ##
  13229. ## ----------------------------------- ##
  13230. _ASEOF
  13231. test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  13232. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  13233. # Save the log message, to keep $0 and so on meaningful, and to
  13234. # report actual input values of CONFIG_FILES etc. instead of their
  13235. # values after options handling.
  13236. ac_log="
  13237. This file was extended by libPolyCore $as_me 0.8.2, which was
  13238. generated by GNU Autoconf 2.67. Invocation command line was
  13239. CONFIG_FILES = $CONFIG_FILES
  13240. CONFIG_HEADERS = $CONFIG_HEADERS
  13241. CONFIG_LINKS = $CONFIG_LINKS
  13242. CONFIG_COMMANDS = $CONFIG_COMMANDS
  13243. $ $0 $@
  13244. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  13245. "
  13246. _ACEOF
  13247. case $ac_config_files in *"
  13248. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  13249. esac
  13250. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  13251. # Files that config.status was made for.
  13252. config_files="$ac_config_files"
  13253. config_commands="$ac_config_commands"
  13254. _ACEOF
  13255. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  13256. ac_cs_usage="\
  13257. \`$as_me' instantiates files and other configuration actions
  13258. from templates according to the current configuration. Unless the files
  13259. and actions are specified as TAGs, all are instantiated by default.
  13260. Usage: $0 [OPTION]... [TAG]...
  13261. -h, --help print this help, then exit
  13262. -V, --version print version number and configuration settings, then exit
  13263. --config print configuration, then exit
  13264. -q, --quiet, --silent
  13265. do not print progress messages
  13266. -d, --debug don't remove temporary files
  13267. --recheck update $as_me by reconfiguring in the same conditions
  13268. --file=FILE[:TEMPLATE]
  13269. instantiate the configuration file FILE
  13270. Configuration files:
  13271. $config_files
  13272. Configuration commands:
  13273. $config_commands
  13274. Report bugs to <[email protected]>."
  13275. _ACEOF
  13276. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  13277. ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
  13278. ac_cs_version="\\
  13279. libPolyCore config.status 0.8.2
  13280. configured by $0, generated by GNU Autoconf 2.67,
  13281. with options \\"\$ac_cs_config\\"
  13282. Copyright (C) 2010 Free Software Foundation, Inc.
  13283. This config.status script is free software; the Free Software Foundation
  13284. gives unlimited permission to copy, distribute and modify it."
  13285. ac_pwd='$ac_pwd'
  13286. srcdir='$srcdir'
  13287. INSTALL='$INSTALL'
  13288. MKDIR_P='$MKDIR_P'
  13289. AWK='$AWK'
  13290. test -n "\$AWK" || AWK=awk
  13291. _ACEOF
  13292. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  13293. # The default lists apply if the user does not specify any file.
  13294. ac_need_defaults=:
  13295. while test $# != 0
  13296. do
  13297. case $1 in
  13298. --*=?*)
  13299. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  13300. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  13301. ac_shift=:
  13302. ;;
  13303. --*=)
  13304. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  13305. ac_optarg=
  13306. ac_shift=:
  13307. ;;
  13308. *)
  13309. ac_option=$1
  13310. ac_optarg=$2
  13311. ac_shift=shift
  13312. ;;
  13313. esac
  13314. case $ac_option in
  13315. # Handling of the options.
  13316. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  13317. ac_cs_recheck=: ;;
  13318. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  13319. $as_echo "$ac_cs_version"; exit ;;
  13320. --config | --confi | --conf | --con | --co | --c )
  13321. $as_echo "$ac_cs_config"; exit ;;
  13322. --debug | --debu | --deb | --de | --d | -d )
  13323. debug=: ;;
  13324. --file | --fil | --fi | --f )
  13325. $ac_shift
  13326. case $ac_optarg in
  13327. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  13328. '') as_fn_error $? "missing file argument" ;;
  13329. esac
  13330. as_fn_append CONFIG_FILES " '$ac_optarg'"
  13331. ac_need_defaults=false;;
  13332. --he | --h | --help | --hel | -h )
  13333. $as_echo "$ac_cs_usage"; exit ;;
  13334. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  13335. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  13336. ac_cs_silent=: ;;
  13337. # This is an error.
  13338. -*) as_fn_error $? "unrecognized option: \`$1'
  13339. Try \`$0 --help' for more information." ;;
  13340. *) as_fn_append ac_config_targets " $1"
  13341. ac_need_defaults=false ;;
  13342. esac
  13343. shift
  13344. done
  13345. ac_configure_extra_args=
  13346. if $ac_cs_silent; then
  13347. exec 6>/dev/null
  13348. ac_configure_extra_args="$ac_configure_extra_args --silent"
  13349. fi
  13350. _ACEOF
  13351. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  13352. if \$ac_cs_recheck; then
  13353. set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  13354. shift
  13355. \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  13356. CONFIG_SHELL='$SHELL'
  13357. export CONFIG_SHELL
  13358. exec "\$@"
  13359. fi
  13360. _ACEOF
  13361. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  13362. exec 5>>config.log
  13363. {
  13364. echo
  13365. sed 'h;s/./-/g;s/^.../@%:@@%:@ /;s/...$/ @%:@@%:@/;p;x;p;x' <<_ASBOX
  13366. @%:@@%:@ Running $as_me. @%:@@%:@
  13367. _ASBOX
  13368. $as_echo "$ac_log"
  13369. } >&5
  13370. _ACEOF
  13371. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  13372. #
  13373. # INIT-COMMANDS
  13374. #
  13375. AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
  13376. # The HP-UX ksh and POSIX shell print the target directory to stdout
  13377. # if CDPATH is set.
  13378. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  13379. sed_quote_subst='$sed_quote_subst'
  13380. double_quote_subst='$double_quote_subst'
  13381. delay_variable_subst='$delay_variable_subst'
  13382. macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
  13383. macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
  13384. enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
  13385. enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
  13386. pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
  13387. enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
  13388. host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
  13389. host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
  13390. host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
  13391. build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
  13392. build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
  13393. build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
  13394. SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
  13395. Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
  13396. GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
  13397. EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
  13398. FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
  13399. LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
  13400. NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
  13401. LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
  13402. max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
  13403. ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
  13404. exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
  13405. lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
  13406. lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
  13407. lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
  13408. reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
  13409. reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  13410. OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
  13411. deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
  13412. file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
  13413. AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
  13414. AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
  13415. STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
  13416. RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
  13417. old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  13418. old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  13419. old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  13420. CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
  13421. CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
  13422. compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
  13423. GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
  13424. lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
  13425. lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
  13426. lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address" | $Xsed -e "$delay_single_quote_subst"`'
  13427. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
  13428. objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
  13429. SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
  13430. ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
  13431. MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
  13432. lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
  13433. lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
  13434. lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
  13435. lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
  13436. lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
  13437. need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
  13438. DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
  13439. NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
  13440. LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
  13441. OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
  13442. OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
  13443. libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
  13444. shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  13445. extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  13446. archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
  13447. enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
  13448. export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
  13449. whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
  13450. compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
  13451. old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  13452. old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  13453. archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  13454. archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  13455. module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  13456. module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  13457. with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
  13458. allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
  13459. no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
  13460. hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
  13461. hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
  13462. hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
  13463. hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
  13464. hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
  13465. hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
  13466. hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
  13467. hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
  13468. inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
  13469. link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
  13470. fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
  13471. always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
  13472. export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  13473. exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
  13474. include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
  13475. prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  13476. file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
  13477. variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
  13478. need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
  13479. need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
  13480. version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
  13481. runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
  13482. shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
  13483. shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
  13484. libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
  13485. library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
  13486. soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
  13487. postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  13488. postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  13489. finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  13490. finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
  13491. hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
  13492. sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
  13493. sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
  13494. hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
  13495. enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
  13496. enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
  13497. enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
  13498. old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
  13499. striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
  13500. compiler_lib_search_dirs='`$ECHO "X$compiler_lib_search_dirs" | $Xsed -e "$delay_single_quote_subst"`'
  13501. predep_objects='`$ECHO "X$predep_objects" | $Xsed -e "$delay_single_quote_subst"`'
  13502. postdep_objects='`$ECHO "X$postdep_objects" | $Xsed -e "$delay_single_quote_subst"`'
  13503. predeps='`$ECHO "X$predeps" | $Xsed -e "$delay_single_quote_subst"`'
  13504. postdeps='`$ECHO "X$postdeps" | $Xsed -e "$delay_single_quote_subst"`'
  13505. compiler_lib_search_path='`$ECHO "X$compiler_lib_search_path" | $Xsed -e "$delay_single_quote_subst"`'
  13506. LD_CXX='`$ECHO "X$LD_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  13507. old_archive_cmds_CXX='`$ECHO "X$old_archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  13508. compiler_CXX='`$ECHO "X$compiler_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  13509. GCC_CXX='`$ECHO "X$GCC_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  13510. lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "X$lt_prog_compiler_no_builtin_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  13511. lt_prog_compiler_wl_CXX='`$ECHO "X$lt_prog_compiler_wl_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  13512. lt_prog_compiler_pic_CXX='`$ECHO "X$lt_prog_compiler_pic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  13513. lt_prog_compiler_static_CXX='`$ECHO "X$lt_prog_compiler_static_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  13514. lt_cv_prog_compiler_c_o_CXX='`$ECHO "X$lt_cv_prog_compiler_c_o_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  13515. archive_cmds_need_lc_CXX='`$ECHO "X$archive_cmds_need_lc_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  13516. enable_shared_with_static_runtimes_CXX='`$ECHO "X$enable_shared_with_static_runtimes_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  13517. export_dynamic_flag_spec_CXX='`$ECHO "X$export_dynamic_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  13518. whole_archive_flag_spec_CXX='`$ECHO "X$whole_archive_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  13519. compiler_needs_object_CXX='`$ECHO "X$compiler_needs_object_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  13520. old_archive_from_new_cmds_CXX='`$ECHO "X$old_archive_from_new_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  13521. old_archive_from_expsyms_cmds_CXX='`$ECHO "X$old_archive_from_expsyms_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  13522. archive_cmds_CXX='`$ECHO "X$archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  13523. archive_expsym_cmds_CXX='`$ECHO "X$archive_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  13524. module_cmds_CXX='`$ECHO "X$module_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  13525. module_expsym_cmds_CXX='`$ECHO "X$module_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  13526. with_gnu_ld_CXX='`$ECHO "X$with_gnu_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  13527. allow_undefined_flag_CXX='`$ECHO "X$allow_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  13528. no_undefined_flag_CXX='`$ECHO "X$no_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  13529. hardcode_libdir_flag_spec_CXX='`$ECHO "X$hardcode_libdir_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  13530. hardcode_libdir_flag_spec_ld_CXX='`$ECHO "X$hardcode_libdir_flag_spec_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  13531. hardcode_libdir_separator_CXX='`$ECHO "X$hardcode_libdir_separator_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  13532. hardcode_direct_CXX='`$ECHO "X$hardcode_direct_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  13533. hardcode_direct_absolute_CXX='`$ECHO "X$hardcode_direct_absolute_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  13534. hardcode_minus_L_CXX='`$ECHO "X$hardcode_minus_L_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  13535. hardcode_shlibpath_var_CXX='`$ECHO "X$hardcode_shlibpath_var_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  13536. hardcode_automatic_CXX='`$ECHO "X$hardcode_automatic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  13537. inherit_rpath_CXX='`$ECHO "X$inherit_rpath_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  13538. link_all_deplibs_CXX='`$ECHO "X$link_all_deplibs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  13539. fix_srcfile_path_CXX='`$ECHO "X$fix_srcfile_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  13540. always_export_symbols_CXX='`$ECHO "X$always_export_symbols_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  13541. export_symbols_cmds_CXX='`$ECHO "X$export_symbols_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  13542. exclude_expsyms_CXX='`$ECHO "X$exclude_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  13543. include_expsyms_CXX='`$ECHO "X$include_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  13544. prelink_cmds_CXX='`$ECHO "X$prelink_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  13545. file_list_spec_CXX='`$ECHO "X$file_list_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  13546. hardcode_action_CXX='`$ECHO "X$hardcode_action_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  13547. compiler_lib_search_dirs_CXX='`$ECHO "X$compiler_lib_search_dirs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  13548. predep_objects_CXX='`$ECHO "X$predep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  13549. postdep_objects_CXX='`$ECHO "X$postdep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  13550. predeps_CXX='`$ECHO "X$predeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  13551. postdeps_CXX='`$ECHO "X$postdeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  13552. compiler_lib_search_path_CXX='`$ECHO "X$compiler_lib_search_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  13553. LTCC='$LTCC'
  13554. LTCFLAGS='$LTCFLAGS'
  13555. compiler='$compiler_DEFAULT'
  13556. # Quote evaled strings.
  13557. for var in SED \
  13558. GREP \
  13559. EGREP \
  13560. FGREP \
  13561. LD \
  13562. NM \
  13563. LN_S \
  13564. lt_SP2NL \
  13565. lt_NL2SP \
  13566. reload_flag \
  13567. OBJDUMP \
  13568. deplibs_check_method \
  13569. file_magic_cmd \
  13570. AR \
  13571. AR_FLAGS \
  13572. STRIP \
  13573. RANLIB \
  13574. CC \
  13575. CFLAGS \
  13576. compiler \
  13577. lt_cv_sys_global_symbol_pipe \
  13578. lt_cv_sys_global_symbol_to_cdecl \
  13579. lt_cv_sys_global_symbol_to_c_name_address \
  13580. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
  13581. SHELL \
  13582. ECHO \
  13583. lt_prog_compiler_no_builtin_flag \
  13584. lt_prog_compiler_wl \
  13585. lt_prog_compiler_pic \
  13586. lt_prog_compiler_static \
  13587. lt_cv_prog_compiler_c_o \
  13588. need_locks \
  13589. DSYMUTIL \
  13590. NMEDIT \
  13591. LIPO \
  13592. OTOOL \
  13593. OTOOL64 \
  13594. shrext_cmds \
  13595. export_dynamic_flag_spec \
  13596. whole_archive_flag_spec \
  13597. compiler_needs_object \
  13598. with_gnu_ld \
  13599. allow_undefined_flag \
  13600. no_undefined_flag \
  13601. hardcode_libdir_flag_spec \
  13602. hardcode_libdir_flag_spec_ld \
  13603. hardcode_libdir_separator \
  13604. fix_srcfile_path \
  13605. exclude_expsyms \
  13606. include_expsyms \
  13607. file_list_spec \
  13608. variables_saved_for_relink \
  13609. libname_spec \
  13610. library_names_spec \
  13611. soname_spec \
  13612. finish_eval \
  13613. old_striplib \
  13614. striplib \
  13615. compiler_lib_search_dirs \
  13616. predep_objects \
  13617. postdep_objects \
  13618. predeps \
  13619. postdeps \
  13620. compiler_lib_search_path \
  13621. LD_CXX \
  13622. compiler_CXX \
  13623. lt_prog_compiler_no_builtin_flag_CXX \
  13624. lt_prog_compiler_wl_CXX \
  13625. lt_prog_compiler_pic_CXX \
  13626. lt_prog_compiler_static_CXX \
  13627. lt_cv_prog_compiler_c_o_CXX \
  13628. export_dynamic_flag_spec_CXX \
  13629. whole_archive_flag_spec_CXX \
  13630. compiler_needs_object_CXX \
  13631. with_gnu_ld_CXX \
  13632. allow_undefined_flag_CXX \
  13633. no_undefined_flag_CXX \
  13634. hardcode_libdir_flag_spec_CXX \
  13635. hardcode_libdir_flag_spec_ld_CXX \
  13636. hardcode_libdir_separator_CXX \
  13637. fix_srcfile_path_CXX \
  13638. exclude_expsyms_CXX \
  13639. include_expsyms_CXX \
  13640. file_list_spec_CXX \
  13641. compiler_lib_search_dirs_CXX \
  13642. predep_objects_CXX \
  13643. postdep_objects_CXX \
  13644. predeps_CXX \
  13645. postdeps_CXX \
  13646. compiler_lib_search_path_CXX; do
  13647. case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
  13648. *[\\\\\\\`\\"\\\$]*)
  13649. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
  13650. ;;
  13651. *)
  13652. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  13653. ;;
  13654. esac
  13655. done
  13656. # Double-quote double-evaled strings.
  13657. for var in reload_cmds \
  13658. old_postinstall_cmds \
  13659. old_postuninstall_cmds \
  13660. old_archive_cmds \
  13661. extract_expsyms_cmds \
  13662. old_archive_from_new_cmds \
  13663. old_archive_from_expsyms_cmds \
  13664. archive_cmds \
  13665. archive_expsym_cmds \
  13666. module_cmds \
  13667. module_expsym_cmds \
  13668. export_symbols_cmds \
  13669. prelink_cmds \
  13670. postinstall_cmds \
  13671. postuninstall_cmds \
  13672. finish_cmds \
  13673. sys_lib_search_path_spec \
  13674. sys_lib_dlsearch_path_spec \
  13675. old_archive_cmds_CXX \
  13676. old_archive_from_new_cmds_CXX \
  13677. old_archive_from_expsyms_cmds_CXX \
  13678. archive_cmds_CXX \
  13679. archive_expsym_cmds_CXX \
  13680. module_cmds_CXX \
  13681. module_expsym_cmds_CXX \
  13682. export_symbols_cmds_CXX \
  13683. prelink_cmds_CXX; do
  13684. case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
  13685. *[\\\\\\\`\\"\\\$]*)
  13686. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
  13687. ;;
  13688. *)
  13689. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  13690. ;;
  13691. esac
  13692. done
  13693. # Fix-up fallback echo if it was mangled by the above quoting rules.
  13694. case \$lt_ECHO in
  13695. *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
  13696. ;;
  13697. esac
  13698. ac_aux_dir='$ac_aux_dir'
  13699. xsi_shell='$xsi_shell'
  13700. lt_shell_append='$lt_shell_append'
  13701. # See if we are running on zsh, and set the options which allow our
  13702. # commands through without removal of \ escapes INIT.
  13703. if test -n "\${ZSH_VERSION+set}" ; then
  13704. setopt NO_GLOB_SUBST
  13705. fi
  13706. PACKAGE='$PACKAGE'
  13707. VERSION='$VERSION'
  13708. TIMESTAMP='$TIMESTAMP'
  13709. RM='$RM'
  13710. ofile='$ofile'
  13711. _ACEOF
  13712. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  13713. # Handling of arguments.
  13714. for ac_config_target in $ac_config_targets
  13715. do
  13716. case $ac_config_target in
  13717. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  13718. "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
  13719. "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
  13720. *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5 ;;
  13721. esac
  13722. done
  13723. # If the user did not use the arguments to specify the items to instantiate,
  13724. # then the envvar interface is used. Set only those that are not.
  13725. # We use the long form for the default assignment because of an extremely
  13726. # bizarre bug on SunOS 4.1.3.
  13727. if $ac_need_defaults; then
  13728. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  13729. test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  13730. fi
  13731. # Have a temporary directory for convenience. Make it in the build tree
  13732. # simply because there is no reason against having it here, and in addition,
  13733. # creating and moving files from /tmp can sometimes cause problems.
  13734. # Hook for its removal unless debugging.
  13735. # Note that there is a small window in which the directory will not be cleaned:
  13736. # after its creation but before its name has been assigned to `$tmp'.
  13737. $debug ||
  13738. {
  13739. tmp=
  13740. trap 'exit_status=$?
  13741. { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
  13742. ' 0
  13743. trap 'as_fn_exit 1' 1 2 13 15
  13744. }
  13745. # Create a (secure) tmp directory for tmp files.
  13746. {
  13747. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  13748. test -n "$tmp" && test -d "$tmp"
  13749. } ||
  13750. {
  13751. tmp=./conf$$-$RANDOM
  13752. (umask 077 && mkdir "$tmp")
  13753. } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
  13754. # Set up the scripts for CONFIG_FILES section.
  13755. # No need to generate them if there are no CONFIG_FILES.
  13756. # This happens for instance with `./config.status config.h'.
  13757. if test -n "$CONFIG_FILES"; then
  13758. ac_cr=`echo X | tr X '\015'`
  13759. # On cygwin, bash can eat \r inside `` if the user requested igncr.
  13760. # But we know of no other shell where ac_cr would be empty at this
  13761. # point, so we can use a bashism as a fallback.
  13762. if test "x$ac_cr" = x; then
  13763. eval ac_cr=\$\'\\r\'
  13764. fi
  13765. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  13766. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  13767. ac_cs_awk_cr='\\r'
  13768. else
  13769. ac_cs_awk_cr=$ac_cr
  13770. fi
  13771. echo 'BEGIN {' >"$tmp/subs1.awk" &&
  13772. _ACEOF
  13773. {
  13774. echo "cat >conf$$subs.awk <<_ACEOF" &&
  13775. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  13776. echo "_ACEOF"
  13777. } >conf$$subs.sh ||
  13778. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  13779. ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
  13780. ac_delim='%!_!# '
  13781. for ac_last_try in false false false false false :; do
  13782. . ./conf$$subs.sh ||
  13783. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  13784. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  13785. if test $ac_delim_n = $ac_delim_num; then
  13786. break
  13787. elif $ac_last_try; then
  13788. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  13789. else
  13790. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  13791. fi
  13792. done
  13793. rm -f conf$$subs.sh
  13794. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  13795. cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
  13796. _ACEOF
  13797. sed -n '
  13798. h
  13799. s/^/S["/; s/!.*/"]=/
  13800. p
  13801. g
  13802. s/^[^!]*!//
  13803. :repl
  13804. t repl
  13805. s/'"$ac_delim"'$//
  13806. t delim
  13807. :nl
  13808. h
  13809. s/\(.\{148\}\)..*/\1/
  13810. t more1
  13811. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  13812. p
  13813. n
  13814. b repl
  13815. :more1
  13816. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  13817. p
  13818. g
  13819. s/.\{148\}//
  13820. t nl
  13821. :delim
  13822. h
  13823. s/\(.\{148\}\)..*/\1/
  13824. t more2
  13825. s/["\\]/\\&/g; s/^/"/; s/$/"/
  13826. p
  13827. b
  13828. :more2
  13829. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  13830. p
  13831. g
  13832. s/.\{148\}//
  13833. t delim
  13834. ' <conf$$subs.awk | sed '
  13835. /^[^""]/{
  13836. N
  13837. s/\n//
  13838. }
  13839. ' >>$CONFIG_STATUS || ac_write_fail=1
  13840. rm -f conf$$subs.awk
  13841. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  13842. _ACAWK
  13843. cat >>"\$tmp/subs1.awk" <<_ACAWK &&
  13844. for (key in S) S_is_set[key] = 1
  13845. FS = ""
  13846. }
  13847. {
  13848. line = $ 0
  13849. nfields = split(line, field, "@")
  13850. substed = 0
  13851. len = length(field[1])
  13852. for (i = 2; i < nfields; i++) {
  13853. key = field[i]
  13854. keylen = length(key)
  13855. if (S_is_set[key]) {
  13856. value = S[key]
  13857. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  13858. len += length(value) + length(field[++i])
  13859. substed = 1
  13860. } else
  13861. len += 1 + keylen
  13862. }
  13863. print line
  13864. }
  13865. _ACAWK
  13866. _ACEOF
  13867. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  13868. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  13869. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  13870. else
  13871. cat
  13872. fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
  13873. || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
  13874. _ACEOF
  13875. # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
  13876. # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
  13877. # trailing colons and then remove the whole line if VPATH becomes empty
  13878. # (actually we leave an empty line to preserve line numbers).
  13879. if test "x$srcdir" = x.; then
  13880. ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
  13881. h
  13882. s///
  13883. s/^/:/
  13884. s/[ ]*$/:/
  13885. s/:\$(srcdir):/:/g
  13886. s/:\${srcdir}:/:/g
  13887. s/:@srcdir@:/:/g
  13888. s/^:*//
  13889. s/:*$//
  13890. x
  13891. s/\(=[ ]*\).*/\1/
  13892. G
  13893. s/\n//
  13894. s/^[^=]*=[ ]*$//
  13895. }'
  13896. fi
  13897. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  13898. fi # test -n "$CONFIG_FILES"
  13899. eval set X " :F $CONFIG_FILES :C $CONFIG_COMMANDS"
  13900. shift
  13901. for ac_tag
  13902. do
  13903. case $ac_tag in
  13904. :[FHLC]) ac_mode=$ac_tag; continue;;
  13905. esac
  13906. case $ac_mode$ac_tag in
  13907. :[FHL]*:*);;
  13908. :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5 ;;
  13909. :[FH]-) ac_tag=-:-;;
  13910. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  13911. esac
  13912. ac_save_IFS=$IFS
  13913. IFS=:
  13914. set x $ac_tag
  13915. IFS=$ac_save_IFS
  13916. shift
  13917. ac_file=$1
  13918. shift
  13919. case $ac_mode in
  13920. :L) ac_source=$1;;
  13921. :[FH])
  13922. ac_file_inputs=
  13923. for ac_f
  13924. do
  13925. case $ac_f in
  13926. -) ac_f="$tmp/stdin";;
  13927. *) # Look for the file first in the build tree, then in the source tree
  13928. # (if the path is not absolute). The absolute path cannot be DOS-style,
  13929. # because $ac_f cannot contain `:'.
  13930. test -f "$ac_f" ||
  13931. case $ac_f in
  13932. [\\/$]*) false;;
  13933. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  13934. esac ||
  13935. as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5 ;;
  13936. esac
  13937. case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  13938. as_fn_append ac_file_inputs " '$ac_f'"
  13939. done
  13940. # Let's still pretend it is `configure' which instantiates (i.e., don't
  13941. # use $as_me), people would be surprised to read:
  13942. # /* config.h. Generated by config.status. */
  13943. configure_input='Generated from '`
  13944. $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  13945. `' by configure.'
  13946. if test x"$ac_file" != x-; then
  13947. configure_input="$ac_file. $configure_input"
  13948. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  13949. $as_echo "$as_me: creating $ac_file" >&6;}
  13950. fi
  13951. # Neutralize special characters interpreted by sed in replacement strings.
  13952. case $configure_input in #(
  13953. *\&* | *\|* | *\\* )
  13954. ac_sed_conf_input=`$as_echo "$configure_input" |
  13955. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  13956. *) ac_sed_conf_input=$configure_input;;
  13957. esac
  13958. case $ac_tag in
  13959. *:-:* | *:-) cat >"$tmp/stdin" \
  13960. || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
  13961. esac
  13962. ;;
  13963. esac
  13964. ac_dir=`$as_dirname -- "$ac_file" ||
  13965. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  13966. X"$ac_file" : 'X\(//\)[^/]' \| \
  13967. X"$ac_file" : 'X\(//\)$' \| \
  13968. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  13969. $as_echo X"$ac_file" |
  13970. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  13971. s//\1/
  13972. q
  13973. }
  13974. /^X\(\/\/\)[^/].*/{
  13975. s//\1/
  13976. q
  13977. }
  13978. /^X\(\/\/\)$/{
  13979. s//\1/
  13980. q
  13981. }
  13982. /^X\(\/\).*/{
  13983. s//\1/
  13984. q
  13985. }
  13986. s/.*/./; q'`
  13987. as_dir="$ac_dir"; as_fn_mkdir_p
  13988. ac_builddir=.
  13989. case "$ac_dir" in
  13990. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  13991. *)
  13992. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  13993. # A ".." for each directory in $ac_dir_suffix.
  13994. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  13995. case $ac_top_builddir_sub in
  13996. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  13997. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  13998. esac ;;
  13999. esac
  14000. ac_abs_top_builddir=$ac_pwd
  14001. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  14002. # for backward compatibility:
  14003. ac_top_builddir=$ac_top_build_prefix
  14004. case $srcdir in
  14005. .) # We are building in place.
  14006. ac_srcdir=.
  14007. ac_top_srcdir=$ac_top_builddir_sub
  14008. ac_abs_top_srcdir=$ac_pwd ;;
  14009. [\\/]* | ?:[\\/]* ) # Absolute name.
  14010. ac_srcdir=$srcdir$ac_dir_suffix;
  14011. ac_top_srcdir=$srcdir
  14012. ac_abs_top_srcdir=$srcdir ;;
  14013. *) # Relative name.
  14014. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  14015. ac_top_srcdir=$ac_top_build_prefix$srcdir
  14016. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  14017. esac
  14018. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  14019. case $ac_mode in
  14020. :F)
  14021. #
  14022. # CONFIG_FILE
  14023. #
  14024. case $INSTALL in
  14025. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  14026. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  14027. esac
  14028. ac_MKDIR_P=$MKDIR_P
  14029. case $MKDIR_P in
  14030. [\\/$]* | ?:[\\/]* ) ;;
  14031. */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
  14032. esac
  14033. _ACEOF
  14034. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14035. # If the template does not know about datarootdir, expand it.
  14036. # FIXME: This hack should be removed a few years after 2.60.
  14037. ac_datarootdir_hack=; ac_datarootdir_seen=
  14038. ac_sed_dataroot='
  14039. /datarootdir/ {
  14040. p
  14041. q
  14042. }
  14043. /@datadir@/p
  14044. /@docdir@/p
  14045. /@infodir@/p
  14046. /@localedir@/p
  14047. /@mandir@/p'
  14048. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  14049. *datarootdir*) ac_datarootdir_seen=yes;;
  14050. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  14051. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  14052. $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  14053. _ACEOF
  14054. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  14055. ac_datarootdir_hack='
  14056. s&@datadir@&$datadir&g
  14057. s&@docdir@&$docdir&g
  14058. s&@infodir@&$infodir&g
  14059. s&@localedir@&$localedir&g
  14060. s&@mandir@&$mandir&g
  14061. s&\\\${datarootdir}&$datarootdir&g' ;;
  14062. esac
  14063. _ACEOF
  14064. # Neutralize VPATH when `$srcdir' = `.'.
  14065. # Shell code in configure.ac might set extrasub.
  14066. # FIXME: do we really want to maintain this feature?
  14067. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  14068. ac_sed_extra="$ac_vpsub
  14069. $extrasub
  14070. _ACEOF
  14071. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14072. :t
  14073. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  14074. s|@configure_input@|$ac_sed_conf_input|;t t
  14075. s&@top_builddir@&$ac_top_builddir_sub&;t t
  14076. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  14077. s&@srcdir@&$ac_srcdir&;t t
  14078. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  14079. s&@top_srcdir@&$ac_top_srcdir&;t t
  14080. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  14081. s&@builddir@&$ac_builddir&;t t
  14082. s&@abs_builddir@&$ac_abs_builddir&;t t
  14083. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  14084. s&@INSTALL@&$ac_INSTALL&;t t
  14085. s&@MKDIR_P@&$ac_MKDIR_P&;t t
  14086. $ac_datarootdir_hack
  14087. "
  14088. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
  14089. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  14090. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  14091. { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
  14092. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
  14093. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  14094. which seems to be undefined. Please make sure it is defined" >&5
  14095. $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  14096. which seems to be undefined. Please make sure it is defined" >&2;}
  14097. rm -f "$tmp/stdin"
  14098. case $ac_file in
  14099. -) cat "$tmp/out" && rm -f "$tmp/out";;
  14100. *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
  14101. esac \
  14102. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  14103. ;;
  14104. :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
  14105. $as_echo "$as_me: executing $ac_file commands" >&6;}
  14106. ;;
  14107. esac
  14108. case $ac_file$ac_mode in
  14109. "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
  14110. # Autoconf 2.62 quotes --file arguments for eval, but not when files
  14111. # are listed without --file. Let's play safe and only enable the eval
  14112. # if we detect the quoting.
  14113. case $CONFIG_FILES in
  14114. *\'*) eval set x "$CONFIG_FILES" ;;
  14115. *) set x $CONFIG_FILES ;;
  14116. esac
  14117. shift
  14118. for mf
  14119. do
  14120. # Strip MF so we end up with the name of the file.
  14121. mf=`echo "$mf" | sed -e 's/:.*$//'`
  14122. # Check whether this is an Automake generated Makefile or not.
  14123. # We used to match only the files named `Makefile.in', but
  14124. # some people rename them; so instead we look at the file content.
  14125. # Grep'ing the first line is not enough: some people post-process
  14126. # each Makefile.in and add a new line on top of each file to say so.
  14127. # Grep'ing the whole file is not good either: AIX grep has a line
  14128. # limit of 2048, but all sed's we know have understand at least 4000.
  14129. if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
  14130. dirpart=`$as_dirname -- "$mf" ||
  14131. $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  14132. X"$mf" : 'X\(//\)[^/]' \| \
  14133. X"$mf" : 'X\(//\)$' \| \
  14134. X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
  14135. $as_echo X"$mf" |
  14136. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  14137. s//\1/
  14138. q
  14139. }
  14140. /^X\(\/\/\)[^/].*/{
  14141. s//\1/
  14142. q
  14143. }
  14144. /^X\(\/\/\)$/{
  14145. s//\1/
  14146. q
  14147. }
  14148. /^X\(\/\).*/{
  14149. s//\1/
  14150. q
  14151. }
  14152. s/.*/./; q'`
  14153. else
  14154. continue
  14155. fi
  14156. # Extract the definition of DEPDIR, am__include, and am__quote
  14157. # from the Makefile without running `make'.
  14158. DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
  14159. test -z "$DEPDIR" && continue
  14160. am__include=`sed -n 's/^am__include = //p' < "$mf"`
  14161. test -z "am__include" && continue
  14162. am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
  14163. # When using ansi2knr, U may be empty or an underscore; expand it
  14164. U=`sed -n 's/^U = //p' < "$mf"`
  14165. # Find all dependency output files, they are included files with
  14166. # $(DEPDIR) in their names. We invoke sed twice because it is the
  14167. # simplest approach to changing $(DEPDIR) to its actual value in the
  14168. # expansion.
  14169. for file in `sed -n "
  14170. s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
  14171. sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
  14172. # Make sure the directory exists.
  14173. test -f "$dirpart/$file" && continue
  14174. fdir=`$as_dirname -- "$file" ||
  14175. $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  14176. X"$file" : 'X\(//\)[^/]' \| \
  14177. X"$file" : 'X\(//\)$' \| \
  14178. X"$file" : 'X\(/\)' \| . 2>/dev/null ||
  14179. $as_echo X"$file" |
  14180. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  14181. s//\1/
  14182. q
  14183. }
  14184. /^X\(\/\/\)[^/].*/{
  14185. s//\1/
  14186. q
  14187. }
  14188. /^X\(\/\/\)$/{
  14189. s//\1/
  14190. q
  14191. }
  14192. /^X\(\/\).*/{
  14193. s//\1/
  14194. q
  14195. }
  14196. s/.*/./; q'`
  14197. as_dir=$dirpart/$fdir; as_fn_mkdir_p
  14198. # echo "creating $dirpart/$file"
  14199. echo '# dummy' > "$dirpart/$file"
  14200. done
  14201. done
  14202. }
  14203. ;;
  14204. "libtool":C)
  14205. # See if we are running on zsh, and set the options which allow our
  14206. # commands through without removal of \ escapes.
  14207. if test -n "${ZSH_VERSION+set}" ; then
  14208. setopt NO_GLOB_SUBST
  14209. fi
  14210. cfgfile="${ofile}T"
  14211. trap "$RM \"$cfgfile\"; exit 1" 1 2 15
  14212. $RM "$cfgfile"
  14213. cat <<_LT_EOF >> "$cfgfile"
  14214. #! $SHELL
  14215. # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
  14216. # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
  14217. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  14218. # NOTE: Changes made to this file will be lost: look at ltmain.sh.
  14219. #
  14220. # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
  14221. # 2006, 2007, 2008 Free Software Foundation, Inc.
  14222. # Written by Gordon Matzigkeit, 1996
  14223. #
  14224. # This file is part of GNU Libtool.
  14225. #
  14226. # GNU Libtool is free software; you can redistribute it and/or
  14227. # modify it under the terms of the GNU General Public License as
  14228. # published by the Free Software Foundation; either version 2 of
  14229. # the License, or (at your option) any later version.
  14230. #
  14231. # As a special exception to the GNU General Public License,
  14232. # if you distribute this file as part of a program or library that
  14233. # is built using GNU Libtool, you may include this file under the
  14234. # same distribution terms that you use for the rest of that program.
  14235. #
  14236. # GNU Libtool is distributed in the hope that it will be useful,
  14237. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  14238. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  14239. # GNU General Public License for more details.
  14240. #
  14241. # You should have received a copy of the GNU General Public License
  14242. # along with GNU Libtool; see the file COPYING. If not, a copy
  14243. # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
  14244. # obtained by writing to the Free Software Foundation, Inc.,
  14245. # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  14246. # The names of the tagged configurations supported by this script.
  14247. available_tags="CXX "
  14248. # ### BEGIN LIBTOOL CONFIG
  14249. # Which release of libtool.m4 was used?
  14250. macro_version=$macro_version
  14251. macro_revision=$macro_revision
  14252. # Whether or not to build shared libraries.
  14253. build_libtool_libs=$enable_shared
  14254. # Whether or not to build static libraries.
  14255. build_old_libs=$enable_static
  14256. # What type of objects to build.
  14257. pic_mode=$pic_mode
  14258. # Whether or not to optimize for fast installation.
  14259. fast_install=$enable_fast_install
  14260. # The host system.
  14261. host_alias=$host_alias
  14262. host=$host
  14263. host_os=$host_os
  14264. # The build system.
  14265. build_alias=$build_alias
  14266. build=$build
  14267. build_os=$build_os
  14268. # A sed program that does not truncate output.
  14269. SED=$lt_SED
  14270. # Sed that helps us avoid accidentally triggering echo(1) options like -n.
  14271. Xsed="\$SED -e 1s/^X//"
  14272. # A grep program that handles long lines.
  14273. GREP=$lt_GREP
  14274. # An ERE matcher.
  14275. EGREP=$lt_EGREP
  14276. # A literal string matcher.
  14277. FGREP=$lt_FGREP
  14278. # A BSD- or MS-compatible name lister.
  14279. NM=$lt_NM
  14280. # Whether we need soft or hard links.
  14281. LN_S=$lt_LN_S
  14282. # What is the maximum length of a command?
  14283. max_cmd_len=$max_cmd_len
  14284. # Object file suffix (normally "o").
  14285. objext=$ac_objext
  14286. # Executable file suffix (normally "").
  14287. exeext=$exeext
  14288. # whether the shell understands "unset".
  14289. lt_unset=$lt_unset
  14290. # turn spaces into newlines.
  14291. SP2NL=$lt_lt_SP2NL
  14292. # turn newlines into spaces.
  14293. NL2SP=$lt_lt_NL2SP
  14294. # How to create reloadable object files.
  14295. reload_flag=$lt_reload_flag
  14296. reload_cmds=$lt_reload_cmds
  14297. # An object symbol dumper.
  14298. OBJDUMP=$lt_OBJDUMP
  14299. # Method to check whether dependent libraries are shared objects.
  14300. deplibs_check_method=$lt_deplibs_check_method
  14301. # Command to use when deplibs_check_method == "file_magic".
  14302. file_magic_cmd=$lt_file_magic_cmd
  14303. # The archiver.
  14304. AR=$lt_AR
  14305. AR_FLAGS=$lt_AR_FLAGS
  14306. # A symbol stripping program.
  14307. STRIP=$lt_STRIP
  14308. # Commands used to install an old-style archive.
  14309. RANLIB=$lt_RANLIB
  14310. old_postinstall_cmds=$lt_old_postinstall_cmds
  14311. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  14312. # A C compiler.
  14313. LTCC=$lt_CC
  14314. # LTCC compiler flags.
  14315. LTCFLAGS=$lt_CFLAGS
  14316. # Take the output of nm and produce a listing of raw symbols and C names.
  14317. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  14318. # Transform the output of nm in a proper C declaration.
  14319. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  14320. # Transform the output of nm in a C name address pair.
  14321. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  14322. # Transform the output of nm in a C name address pair when lib prefix is needed.
  14323. global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
  14324. # The name of the directory that contains temporary libtool files.
  14325. objdir=$objdir
  14326. # Shell to use when invoking shell scripts.
  14327. SHELL=$lt_SHELL
  14328. # An echo program that does not interpret backslashes.
  14329. ECHO=$lt_ECHO
  14330. # Used to examine libraries when file_magic_cmd begins with "file".
  14331. MAGIC_CMD=$MAGIC_CMD
  14332. # Must we lock files when doing compilation?
  14333. need_locks=$lt_need_locks
  14334. # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
  14335. DSYMUTIL=$lt_DSYMUTIL
  14336. # Tool to change global to local symbols on Mac OS X.
  14337. NMEDIT=$lt_NMEDIT
  14338. # Tool to manipulate fat objects and archives on Mac OS X.
  14339. LIPO=$lt_LIPO
  14340. # ldd/readelf like tool for Mach-O binaries on Mac OS X.
  14341. OTOOL=$lt_OTOOL
  14342. # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
  14343. OTOOL64=$lt_OTOOL64
  14344. # Old archive suffix (normally "a").
  14345. libext=$libext
  14346. # Shared library suffix (normally ".so").
  14347. shrext_cmds=$lt_shrext_cmds
  14348. # The commands to extract the exported symbol list from a shared archive.
  14349. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  14350. # Variables whose values should be saved in libtool wrapper scripts and
  14351. # restored at link time.
  14352. variables_saved_for_relink=$lt_variables_saved_for_relink
  14353. # Do we need the "lib" prefix for modules?
  14354. need_lib_prefix=$need_lib_prefix
  14355. # Do we need a version for libraries?
  14356. need_version=$need_version
  14357. # Library versioning type.
  14358. version_type=$version_type
  14359. # Shared library runtime path variable.
  14360. runpath_var=$runpath_var
  14361. # Shared library path variable.
  14362. shlibpath_var=$shlibpath_var
  14363. # Is shlibpath searched before the hard-coded library search path?
  14364. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  14365. # Format of library name prefix.
  14366. libname_spec=$lt_libname_spec
  14367. # List of archive names. First name is the real one, the rest are links.
  14368. # The last name is the one that the linker finds with -lNAME
  14369. library_names_spec=$lt_library_names_spec
  14370. # The coded name of the library, if different from the real name.
  14371. soname_spec=$lt_soname_spec
  14372. # Command to use after installation of a shared archive.
  14373. postinstall_cmds=$lt_postinstall_cmds
  14374. # Command to use after uninstallation of a shared archive.
  14375. postuninstall_cmds=$lt_postuninstall_cmds
  14376. # Commands used to finish a libtool library installation in a directory.
  14377. finish_cmds=$lt_finish_cmds
  14378. # As "finish_cmds", except a single script fragment to be evaled but
  14379. # not shown.
  14380. finish_eval=$lt_finish_eval
  14381. # Whether we should hardcode library paths into libraries.
  14382. hardcode_into_libs=$hardcode_into_libs
  14383. # Compile-time system search path for libraries.
  14384. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  14385. # Run-time system search path for libraries.
  14386. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  14387. # Whether dlopen is supported.
  14388. dlopen_support=$enable_dlopen
  14389. # Whether dlopen of programs is supported.
  14390. dlopen_self=$enable_dlopen_self
  14391. # Whether dlopen of statically linked programs is supported.
  14392. dlopen_self_static=$enable_dlopen_self_static
  14393. # Commands to strip libraries.
  14394. old_striplib=$lt_old_striplib
  14395. striplib=$lt_striplib
  14396. # The linker used to build libraries.
  14397. LD=$lt_LD
  14398. # Commands used to build an old-style archive.
  14399. old_archive_cmds=$lt_old_archive_cmds
  14400. # A language specific compiler.
  14401. CC=$lt_compiler
  14402. # Is the compiler the GNU compiler?
  14403. with_gcc=$GCC
  14404. # Compiler flag to turn off builtin functions.
  14405. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
  14406. # How to pass a linker flag through the compiler.
  14407. wl=$lt_lt_prog_compiler_wl
  14408. # Additional compiler flags for building library objects.
  14409. pic_flag=$lt_lt_prog_compiler_pic
  14410. # Compiler flag to prevent dynamic linking.
  14411. link_static_flag=$lt_lt_prog_compiler_static
  14412. # Does compiler simultaneously support -c and -o options?
  14413. compiler_c_o=$lt_lt_cv_prog_compiler_c_o
  14414. # Whether or not to add -lc for building shared libraries.
  14415. build_libtool_need_lc=$archive_cmds_need_lc
  14416. # Whether or not to disallow shared libs when runtime libs are static.
  14417. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
  14418. # Compiler flag to allow reflexive dlopens.
  14419. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
  14420. # Compiler flag to generate shared objects directly from archives.
  14421. whole_archive_flag_spec=$lt_whole_archive_flag_spec
  14422. # Whether the compiler copes with passing no objects directly.
  14423. compiler_needs_object=$lt_compiler_needs_object
  14424. # Create an old-style archive from a shared archive.
  14425. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
  14426. # Create a temporary old-style archive to link instead of a shared archive.
  14427. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
  14428. # Commands used to build a shared archive.
  14429. archive_cmds=$lt_archive_cmds
  14430. archive_expsym_cmds=$lt_archive_expsym_cmds
  14431. # Commands used to build a loadable module if different from building
  14432. # a shared archive.
  14433. module_cmds=$lt_module_cmds
  14434. module_expsym_cmds=$lt_module_expsym_cmds
  14435. # Whether we are building with GNU ld or not.
  14436. with_gnu_ld=$lt_with_gnu_ld
  14437. # Flag that allows shared libraries with undefined symbols to be built.
  14438. allow_undefined_flag=$lt_allow_undefined_flag
  14439. # Flag that enforces no undefined symbols.
  14440. no_undefined_flag=$lt_no_undefined_flag
  14441. # Flag to hardcode \$libdir into a binary during linking.
  14442. # This must work even if \$libdir does not exist
  14443. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
  14444. # If ld is used when linking, flag to hardcode \$libdir into a binary
  14445. # during linking. This must work even if \$libdir does not exist.
  14446. hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
  14447. # Whether we need a single "-rpath" flag with a separated argument.
  14448. hardcode_libdir_separator=$lt_hardcode_libdir_separator
  14449. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  14450. # DIR into the resulting binary.
  14451. hardcode_direct=$hardcode_direct
  14452. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  14453. # DIR into the resulting binary and the resulting library dependency is
  14454. # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
  14455. # library is relocated.
  14456. hardcode_direct_absolute=$hardcode_direct_absolute
  14457. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  14458. # into the resulting binary.
  14459. hardcode_minus_L=$hardcode_minus_L
  14460. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  14461. # into the resulting binary.
  14462. hardcode_shlibpath_var=$hardcode_shlibpath_var
  14463. # Set to "yes" if building a shared library automatically hardcodes DIR
  14464. # into the library and all subsequent libraries and executables linked
  14465. # against it.
  14466. hardcode_automatic=$hardcode_automatic
  14467. # Set to yes if linker adds runtime paths of dependent libraries
  14468. # to runtime path list.
  14469. inherit_rpath=$inherit_rpath
  14470. # Whether libtool must link a program against all its dependency libraries.
  14471. link_all_deplibs=$link_all_deplibs
  14472. # Fix the shell variable \$srcfile for the compiler.
  14473. fix_srcfile_path=$lt_fix_srcfile_path
  14474. # Set to "yes" if exported symbols are required.
  14475. always_export_symbols=$always_export_symbols
  14476. # The commands to list exported symbols.
  14477. export_symbols_cmds=$lt_export_symbols_cmds
  14478. # Symbols that should not be listed in the preloaded symbols.
  14479. exclude_expsyms=$lt_exclude_expsyms
  14480. # Symbols that must always be exported.
  14481. include_expsyms=$lt_include_expsyms
  14482. # Commands necessary for linking programs (against libraries) with templates.
  14483. prelink_cmds=$lt_prelink_cmds
  14484. # Specify filename containing input files.
  14485. file_list_spec=$lt_file_list_spec
  14486. # How to hardcode a shared library path into an executable.
  14487. hardcode_action=$hardcode_action
  14488. # The directories searched by this compiler when creating a shared library.
  14489. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
  14490. # Dependencies to place before and after the objects being linked to
  14491. # create a shared library.
  14492. predep_objects=$lt_predep_objects
  14493. postdep_objects=$lt_postdep_objects
  14494. predeps=$lt_predeps
  14495. postdeps=$lt_postdeps
  14496. # The library search path used internally by the compiler when linking
  14497. # a shared library.
  14498. compiler_lib_search_path=$lt_compiler_lib_search_path
  14499. # ### END LIBTOOL CONFIG
  14500. _LT_EOF
  14501. case $host_os in
  14502. aix3*)
  14503. cat <<\_LT_EOF >> "$cfgfile"
  14504. # AIX sometimes has problems with the GCC collect2 program. For some
  14505. # reason, if we set the COLLECT_NAMES environment variable, the problems
  14506. # vanish in a puff of smoke.
  14507. if test "X${COLLECT_NAMES+set}" != Xset; then
  14508. COLLECT_NAMES=
  14509. export COLLECT_NAMES
  14510. fi
  14511. _LT_EOF
  14512. ;;
  14513. esac
  14514. ltmain="$ac_aux_dir/ltmain.sh"
  14515. # We use sed instead of cat because bash on DJGPP gets confused if
  14516. # if finds mixed CR/LF and LF-only lines. Since sed operates in
  14517. # text mode, it properly converts lines to CR/LF. This bash problem
  14518. # is reportedly fixed, but why not run on old versions too?
  14519. sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
  14520. || (rm -f "$cfgfile"; exit 1)
  14521. case $xsi_shell in
  14522. yes)
  14523. cat << \_LT_EOF >> "$cfgfile"
  14524. # func_dirname file append nondir_replacement
  14525. # Compute the dirname of FILE. If nonempty, add APPEND to the result,
  14526. # otherwise set result to NONDIR_REPLACEMENT.
  14527. func_dirname ()
  14528. {
  14529. case ${1} in
  14530. */*) func_dirname_result="${1%/*}${2}" ;;
  14531. * ) func_dirname_result="${3}" ;;
  14532. esac
  14533. }
  14534. # func_basename file
  14535. func_basename ()
  14536. {
  14537. func_basename_result="${1##*/}"
  14538. }
  14539. # func_dirname_and_basename file append nondir_replacement
  14540. # perform func_basename and func_dirname in a single function
  14541. # call:
  14542. # dirname: Compute the dirname of FILE. If nonempty,
  14543. # add APPEND to the result, otherwise set result
  14544. # to NONDIR_REPLACEMENT.
  14545. # value returned in "$func_dirname_result"
  14546. # basename: Compute filename of FILE.
  14547. # value retuned in "$func_basename_result"
  14548. # Implementation must be kept synchronized with func_dirname
  14549. # and func_basename. For efficiency, we do not delegate to
  14550. # those functions but instead duplicate the functionality here.
  14551. func_dirname_and_basename ()
  14552. {
  14553. case ${1} in
  14554. */*) func_dirname_result="${1%/*}${2}" ;;
  14555. * ) func_dirname_result="${3}" ;;
  14556. esac
  14557. func_basename_result="${1##*/}"
  14558. }
  14559. # func_stripname prefix suffix name
  14560. # strip PREFIX and SUFFIX off of NAME.
  14561. # PREFIX and SUFFIX must not contain globbing or regex special
  14562. # characters, hashes, percent signs, but SUFFIX may contain a leading
  14563. # dot (in which case that matches only a dot).
  14564. func_stripname ()
  14565. {
  14566. # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
  14567. # positional parameters, so assign one to ordinary parameter first.
  14568. func_stripname_result=${3}
  14569. func_stripname_result=${func_stripname_result#"${1}"}
  14570. func_stripname_result=${func_stripname_result%"${2}"}
  14571. }
  14572. # func_opt_split
  14573. func_opt_split ()
  14574. {
  14575. func_opt_split_opt=${1%%=*}
  14576. func_opt_split_arg=${1#*=}
  14577. }
  14578. # func_lo2o object
  14579. func_lo2o ()
  14580. {
  14581. case ${1} in
  14582. *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
  14583. *) func_lo2o_result=${1} ;;
  14584. esac
  14585. }
  14586. # func_xform libobj-or-source
  14587. func_xform ()
  14588. {
  14589. func_xform_result=${1%.*}.lo
  14590. }
  14591. # func_arith arithmetic-term...
  14592. func_arith ()
  14593. {
  14594. func_arith_result=$(( $* ))
  14595. }
  14596. # func_len string
  14597. # STRING may not start with a hyphen.
  14598. func_len ()
  14599. {
  14600. func_len_result=${#1}
  14601. }
  14602. _LT_EOF
  14603. ;;
  14604. *) # Bourne compatible functions.
  14605. cat << \_LT_EOF >> "$cfgfile"
  14606. # func_dirname file append nondir_replacement
  14607. # Compute the dirname of FILE. If nonempty, add APPEND to the result,
  14608. # otherwise set result to NONDIR_REPLACEMENT.
  14609. func_dirname ()
  14610. {
  14611. # Extract subdirectory from the argument.
  14612. func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
  14613. if test "X$func_dirname_result" = "X${1}"; then
  14614. func_dirname_result="${3}"
  14615. else
  14616. func_dirname_result="$func_dirname_result${2}"
  14617. fi
  14618. }
  14619. # func_basename file
  14620. func_basename ()
  14621. {
  14622. func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
  14623. }
  14624. # func_stripname prefix suffix name
  14625. # strip PREFIX and SUFFIX off of NAME.
  14626. # PREFIX and SUFFIX must not contain globbing or regex special
  14627. # characters, hashes, percent signs, but SUFFIX may contain a leading
  14628. # dot (in which case that matches only a dot).
  14629. # func_strip_suffix prefix name
  14630. func_stripname ()
  14631. {
  14632. case ${2} in
  14633. .*) func_stripname_result=`$ECHO "X${3}" \
  14634. | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
  14635. *) func_stripname_result=`$ECHO "X${3}" \
  14636. | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
  14637. esac
  14638. }
  14639. # sed scripts:
  14640. my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
  14641. my_sed_long_arg='1s/^-[^=]*=//'
  14642. # func_opt_split
  14643. func_opt_split ()
  14644. {
  14645. func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
  14646. func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
  14647. }
  14648. # func_lo2o object
  14649. func_lo2o ()
  14650. {
  14651. func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
  14652. }
  14653. # func_xform libobj-or-source
  14654. func_xform ()
  14655. {
  14656. func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
  14657. }
  14658. # func_arith arithmetic-term...
  14659. func_arith ()
  14660. {
  14661. func_arith_result=`expr "$@"`
  14662. }
  14663. # func_len string
  14664. # STRING may not start with a hyphen.
  14665. func_len ()
  14666. {
  14667. func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
  14668. }
  14669. _LT_EOF
  14670. esac
  14671. case $lt_shell_append in
  14672. yes)
  14673. cat << \_LT_EOF >> "$cfgfile"
  14674. # func_append var value
  14675. # Append VALUE to the end of shell variable VAR.
  14676. func_append ()
  14677. {
  14678. eval "$1+=\$2"
  14679. }
  14680. _LT_EOF
  14681. ;;
  14682. *)
  14683. cat << \_LT_EOF >> "$cfgfile"
  14684. # func_append var value
  14685. # Append VALUE to the end of shell variable VAR.
  14686. func_append ()
  14687. {
  14688. eval "$1=\$$1\$2"
  14689. }
  14690. _LT_EOF
  14691. ;;
  14692. esac
  14693. sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
  14694. || (rm -f "$cfgfile"; exit 1)
  14695. mv -f "$cfgfile" "$ofile" ||
  14696. (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  14697. chmod +x "$ofile"
  14698. cat <<_LT_EOF >> "$ofile"
  14699. # ### BEGIN LIBTOOL TAG CONFIG: CXX
  14700. # The linker used to build libraries.
  14701. LD=$lt_LD_CXX
  14702. # Commands used to build an old-style archive.
  14703. old_archive_cmds=$lt_old_archive_cmds_CXX
  14704. # A language specific compiler.
  14705. CC=$lt_compiler_CXX
  14706. # Is the compiler the GNU compiler?
  14707. with_gcc=$GCC_CXX
  14708. # Compiler flag to turn off builtin functions.
  14709. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
  14710. # How to pass a linker flag through the compiler.
  14711. wl=$lt_lt_prog_compiler_wl_CXX
  14712. # Additional compiler flags for building library objects.
  14713. pic_flag=$lt_lt_prog_compiler_pic_CXX
  14714. # Compiler flag to prevent dynamic linking.
  14715. link_static_flag=$lt_lt_prog_compiler_static_CXX
  14716. # Does compiler simultaneously support -c and -o options?
  14717. compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
  14718. # Whether or not to add -lc for building shared libraries.
  14719. build_libtool_need_lc=$archive_cmds_need_lc_CXX
  14720. # Whether or not to disallow shared libs when runtime libs are static.
  14721. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
  14722. # Compiler flag to allow reflexive dlopens.
  14723. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
  14724. # Compiler flag to generate shared objects directly from archives.
  14725. whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
  14726. # Whether the compiler copes with passing no objects directly.
  14727. compiler_needs_object=$lt_compiler_needs_object_CXX
  14728. # Create an old-style archive from a shared archive.
  14729. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
  14730. # Create a temporary old-style archive to link instead of a shared archive.
  14731. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
  14732. # Commands used to build a shared archive.
  14733. archive_cmds=$lt_archive_cmds_CXX
  14734. archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
  14735. # Commands used to build a loadable module if different from building
  14736. # a shared archive.
  14737. module_cmds=$lt_module_cmds_CXX
  14738. module_expsym_cmds=$lt_module_expsym_cmds_CXX
  14739. # Whether we are building with GNU ld or not.
  14740. with_gnu_ld=$lt_with_gnu_ld_CXX
  14741. # Flag that allows shared libraries with undefined symbols to be built.
  14742. allow_undefined_flag=$lt_allow_undefined_flag_CXX
  14743. # Flag that enforces no undefined symbols.
  14744. no_undefined_flag=$lt_no_undefined_flag_CXX
  14745. # Flag to hardcode \$libdir into a binary during linking.
  14746. # This must work even if \$libdir does not exist
  14747. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
  14748. # If ld is used when linking, flag to hardcode \$libdir into a binary
  14749. # during linking. This must work even if \$libdir does not exist.
  14750. hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
  14751. # Whether we need a single "-rpath" flag with a separated argument.
  14752. hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
  14753. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  14754. # DIR into the resulting binary.
  14755. hardcode_direct=$hardcode_direct_CXX
  14756. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  14757. # DIR into the resulting binary and the resulting library dependency is
  14758. # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
  14759. # library is relocated.
  14760. hardcode_direct_absolute=$hardcode_direct_absolute_CXX
  14761. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  14762. # into the resulting binary.
  14763. hardcode_minus_L=$hardcode_minus_L_CXX
  14764. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  14765. # into the resulting binary.
  14766. hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
  14767. # Set to "yes" if building a shared library automatically hardcodes DIR
  14768. # into the library and all subsequent libraries and executables linked
  14769. # against it.
  14770. hardcode_automatic=$hardcode_automatic_CXX
  14771. # Set to yes if linker adds runtime paths of dependent libraries
  14772. # to runtime path list.
  14773. inherit_rpath=$inherit_rpath_CXX
  14774. # Whether libtool must link a program against all its dependency libraries.
  14775. link_all_deplibs=$link_all_deplibs_CXX
  14776. # Fix the shell variable \$srcfile for the compiler.
  14777. fix_srcfile_path=$lt_fix_srcfile_path_CXX
  14778. # Set to "yes" if exported symbols are required.
  14779. always_export_symbols=$always_export_symbols_CXX
  14780. # The commands to list exported symbols.
  14781. export_symbols_cmds=$lt_export_symbols_cmds_CXX
  14782. # Symbols that should not be listed in the preloaded symbols.
  14783. exclude_expsyms=$lt_exclude_expsyms_CXX
  14784. # Symbols that must always be exported.
  14785. include_expsyms=$lt_include_expsyms_CXX
  14786. # Commands necessary for linking programs (against libraries) with templates.
  14787. prelink_cmds=$lt_prelink_cmds_CXX
  14788. # Specify filename containing input files.
  14789. file_list_spec=$lt_file_list_spec_CXX
  14790. # How to hardcode a shared library path into an executable.
  14791. hardcode_action=$hardcode_action_CXX
  14792. # The directories searched by this compiler when creating a shared library.
  14793. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
  14794. # Dependencies to place before and after the objects being linked to
  14795. # create a shared library.
  14796. predep_objects=$lt_predep_objects_CXX
  14797. postdep_objects=$lt_postdep_objects_CXX
  14798. predeps=$lt_predeps_CXX
  14799. postdeps=$lt_postdeps_CXX
  14800. # The library search path used internally by the compiler when linking
  14801. # a shared library.
  14802. compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
  14803. # ### END LIBTOOL TAG CONFIG: CXX
  14804. _LT_EOF
  14805. ;;
  14806. esac
  14807. done # for ac_tag
  14808. as_fn_exit 0
  14809. _ACEOF
  14810. ac_clean_files=$ac_clean_files_save
  14811. test $ac_write_fail = 0 ||
  14812. as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
  14813. # configure is writing to config.log, and then calls config.status.
  14814. # config.status does its own redirection, appending to config.log.
  14815. # Unfortunately, on DOS this fails, as config.log is still kept open
  14816. # by configure, so config.status won't be able to write to it; its
  14817. # output is simply discarded. So we exec the FD to /dev/null,
  14818. # effectively closing config.log, so it can be properly (re)opened and
  14819. # appended to by config.status. When coming back to configure, we
  14820. # need to make the FD available again.
  14821. if test "$no_create" != yes; then
  14822. ac_cs_success=:
  14823. ac_config_status_args=
  14824. test "$silent" = yes &&
  14825. ac_config_status_args="$ac_config_status_args --quiet"
  14826. exec 5>/dev/null
  14827. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  14828. exec 5>>config.log
  14829. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  14830. # would make configure fail if this is the last instruction.
  14831. $ac_cs_success || as_fn_exit 1
  14832. fi
  14833. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  14834. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  14835. $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  14836. fi