Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.

configure 555KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342123431234412345123461234712348123491235012351123521235312354123551235612357123581235912360123611236212363123641236512366123671236812369123701237112372123731237412375123761237712378123791238012381123821238312384123851238612387123881238912390123911239212393123941239512396123971239812399124001240112402124031240412405124061240712408124091241012411124121241312414124151241612417124181241912420124211242212423124241242512426124271242812429124301243112432124331243412435124361243712438124391244012441124421244312444124451244612447124481244912450124511245212453124541245512456124571245812459124601246112462124631246412465124661246712468124691247012471124721247312474124751247612477124781247912480124811248212483124841248512486124871248812489124901249112492124931249412495124961249712498124991250012501125021250312504125051250612507125081250912510125111251212513125141251512516125171251812519125201252112522125231252412525125261252712528125291253012531125321253312534125351253612537125381253912540125411254212543125441254512546125471254812549125501255112552125531255412555125561255712558125591256012561125621256312564125651256612567125681256912570125711257212573125741257512576125771257812579125801258112582125831258412585125861258712588125891259012591125921259312594125951259612597125981259912600126011260212603126041260512606126071260812609126101261112612126131261412615126161261712618126191262012621126221262312624126251262612627126281262912630126311263212633126341263512636126371263812639126401264112642126431264412645126461264712648126491265012651126521265312654126551265612657126581265912660126611266212663126641266512666126671266812669126701267112672126731267412675126761267712678126791268012681126821268312684126851268612687126881268912690126911269212693126941269512696126971269812699127001270112702127031270412705127061270712708127091271012711127121271312714127151271612717127181271912720127211272212723127241272512726127271272812729127301273112732127331273412735127361273712738127391274012741127421274312744127451274612747127481274912750127511275212753127541275512756127571275812759127601276112762127631276412765127661276712768127691277012771127721277312774127751277612777127781277912780127811278212783127841278512786127871278812789127901279112792127931279412795127961279712798127991280012801128021280312804128051280612807128081280912810128111281212813128141281512816128171281812819128201282112822128231282412825128261282712828128291283012831128321283312834128351283612837128381283912840128411284212843128441284512846128471284812849128501285112852128531285412855128561285712858128591286012861128621286312864128651286612867128681286912870128711287212873128741287512876128771287812879128801288112882128831288412885128861288712888128891289012891128921289312894128951289612897128981289912900129011290212903129041290512906129071290812909129101291112912129131291412915129161291712918129191292012921129221292312924129251292612927129281292912930129311293212933129341293512936129371293812939129401294112942129431294412945129461294712948129491295012951129521295312954129551295612957129581295912960129611296212963129641296512966129671296812969129701297112972129731297412975129761297712978129791298012981129821298312984129851298612987129881298912990129911299212993129941299512996129971299812999130001300113002130031300413005130061300713008130091301013011130121301313014130151301613017130181301913020130211302213023130241302513026130271302813029130301303113032130331303413035130361303713038130391304013041130421304313044130451304613047130481304913050130511305213053130541305513056130571305813059130601306113062130631306413065130661306713068130691307013071130721307313074130751307613077130781307913080130811308213083130841308513086130871308813089130901309113092130931309413095130961309713098130991310013101131021310313104131051310613107131081310913110131111311213113131141311513116131171311813119131201312113122131231312413125131261312713128131291313013131131321313313134131351313613137131381313913140131411314213143131441314513146131471314813149131501315113152131531315413155131561315713158131591316013161131621316313164131651316613167131681316913170131711317213173131741317513176131771317813179131801318113182131831318413185131861318713188131891319013191131921319313194131951319613197131981319913200132011320213203132041320513206132071320813209132101321113212132131321413215132161321713218132191322013221132221322313224132251322613227132281322913230132311323213233132341323513236132371323813239132401324113242132431324413245132461324713248132491325013251132521325313254132551325613257132581325913260132611326213263132641326513266132671326813269132701327113272132731327413275132761327713278132791328013281132821328313284132851328613287132881328913290132911329213293132941329513296132971329813299133001330113302133031330413305133061330713308133091331013311133121331313314133151331613317133181331913320133211332213323133241332513326133271332813329133301333113332133331333413335133361333713338133391334013341133421334313344133451334613347133481334913350133511335213353133541335513356133571335813359133601336113362133631336413365133661336713368133691337013371133721337313374133751337613377133781337913380133811338213383133841338513386133871338813389133901339113392133931339413395133961339713398133991340013401134021340313404134051340613407134081340913410134111341213413134141341513416134171341813419134201342113422134231342413425134261342713428134291343013431134321343313434134351343613437134381343913440134411344213443134441344513446134471344813449134501345113452134531345413455134561345713458134591346013461134621346313464134651346613467134681346913470134711347213473134741347513476134771347813479134801348113482134831348413485134861348713488134891349013491134921349313494134951349613497134981349913500135011350213503135041350513506135071350813509135101351113512135131351413515135161351713518135191352013521135221352313524135251352613527135281352913530135311353213533135341353513536135371353813539135401354113542135431354413545135461354713548135491355013551135521355313554135551355613557135581355913560135611356213563135641356513566135671356813569135701357113572135731357413575135761357713578135791358013581135821358313584135851358613587135881358913590135911359213593135941359513596135971359813599136001360113602136031360413605136061360713608136091361013611136121361313614136151361613617136181361913620136211362213623136241362513626136271362813629136301363113632136331363413635136361363713638136391364013641136421364313644136451364613647136481364913650136511365213653136541365513656136571365813659136601366113662136631366413665136661366713668136691367013671136721367313674136751367613677136781367913680136811368213683136841368513686136871368813689136901369113692136931369413695136961369713698136991370013701137021370313704137051370613707137081370913710137111371213713137141371513716137171371813719137201372113722137231372413725137261372713728137291373013731137321373313734137351373613737137381373913740137411374213743137441374513746137471374813749137501375113752137531375413755137561375713758137591376013761137621376313764137651376613767137681376913770137711377213773137741377513776137771377813779137801378113782137831378413785137861378713788137891379013791137921379313794137951379613797137981379913800138011380213803138041380513806138071380813809138101381113812138131381413815138161381713818138191382013821138221382313824138251382613827138281382913830138311383213833138341383513836138371383813839138401384113842138431384413845138461384713848138491385013851138521385313854138551385613857138581385913860138611386213863138641386513866138671386813869138701387113872138731387413875138761387713878138791388013881138821388313884138851388613887138881388913890138911389213893138941389513896138971389813899139001390113902139031390413905139061390713908139091391013911139121391313914139151391613917139181391913920139211392213923139241392513926139271392813929139301393113932139331393413935139361393713938139391394013941139421394313944139451394613947139481394913950139511395213953139541395513956139571395813959139601396113962139631396413965139661396713968139691397013971139721397313974139751397613977139781397913980139811398213983139841398513986139871398813989139901399113992139931399413995139961399713998139991400014001140021400314004140051400614007140081400914010140111401214013140141401514016140171401814019140201402114022140231402414025140261402714028140291403014031140321403314034140351403614037140381403914040140411404214043140441404514046140471404814049140501405114052140531405414055140561405714058140591406014061140621406314064140651406614067140681406914070140711407214073140741407514076140771407814079140801408114082140831408414085140861408714088140891409014091140921409314094140951409614097140981409914100141011410214103141041410514106141071410814109141101411114112141131411414115141161411714118141191412014121141221412314124141251412614127141281412914130141311413214133141341413514136141371413814139141401414114142141431414414145141461414714148141491415014151141521415314154141551415614157141581415914160141611416214163141641416514166141671416814169141701417114172141731417414175141761417714178141791418014181141821418314184141851418614187141881418914190141911419214193141941419514196141971419814199142001420114202142031420414205142061420714208142091421014211142121421314214142151421614217142181421914220142211422214223142241422514226142271422814229142301423114232142331423414235142361423714238142391424014241142421424314244142451424614247142481424914250142511425214253142541425514256142571425814259142601426114262142631426414265142661426714268142691427014271142721427314274142751427614277142781427914280142811428214283142841428514286142871428814289142901429114292142931429414295142961429714298142991430014301143021430314304143051430614307143081430914310143111431214313143141431514316143171431814319143201432114322143231432414325143261432714328143291433014331143321433314334143351433614337143381433914340143411434214343143441434514346143471434814349143501435114352143531435414355143561435714358143591436014361143621436314364143651436614367143681436914370143711437214373143741437514376143771437814379143801438114382143831438414385143861438714388143891439014391143921439314394143951439614397143981439914400144011440214403144041440514406144071440814409144101441114412144131441414415144161441714418144191442014421144221442314424144251442614427144281442914430144311443214433144341443514436144371443814439144401444114442144431444414445144461444714448144491445014451144521445314454144551445614457144581445914460144611446214463144641446514466144671446814469144701447114472144731447414475144761447714478144791448014481144821448314484144851448614487144881448914490144911449214493144941449514496144971449814499145001450114502145031450414505145061450714508145091451014511145121451314514145151451614517145181451914520145211452214523145241452514526145271452814529145301453114532145331453414535145361453714538145391454014541145421454314544145451454614547145481454914550145511455214553145541455514556145571455814559145601456114562145631456414565145661456714568145691457014571145721457314574145751457614577145781457914580145811458214583145841458514586145871458814589145901459114592145931459414595145961459714598145991460014601146021460314604146051460614607146081460914610146111461214613146141461514616146171461814619146201462114622146231462414625146261462714628146291463014631146321463314634146351463614637146381463914640146411464214643146441464514646146471464814649146501465114652146531465414655146561465714658146591466014661146621466314664146651466614667146681466914670146711467214673146741467514676146771467814679146801468114682146831468414685146861468714688146891469014691146921469314694146951469614697146981469914700147011470214703147041470514706147071470814709147101471114712147131471414715147161471714718147191472014721147221472314724147251472614727147281472914730147311473214733147341473514736147371473814739147401474114742147431474414745147461474714748147491475014751147521475314754147551475614757147581475914760147611476214763147641476514766147671476814769147701477114772147731477414775147761477714778147791478014781147821478314784147851478614787147881478914790147911479214793147941479514796147971479814799148001480114802148031480414805148061480714808148091481014811148121481314814148151481614817148181481914820148211482214823148241482514826148271482814829148301483114832148331483414835148361483714838148391484014841148421484314844148451484614847148481484914850148511485214853148541485514856148571485814859148601486114862148631486414865148661486714868148691487014871148721487314874148751487614877148781487914880148811488214883148841488514886148871488814889148901489114892148931489414895148961489714898148991490014901149021490314904149051490614907149081490914910149111491214913149141491514916149171491814919149201492114922149231492414925149261492714928149291493014931149321493314934149351493614937149381493914940149411494214943149441494514946149471494814949149501495114952149531495414955149561495714958149591496014961149621496314964149651496614967149681496914970149711497214973149741497514976149771497814979149801498114982149831498414985149861498714988149891499014991149921499314994149951499614997149981499915000150011500215003150041500515006150071500815009150101501115012150131501415015150161501715018150191502015021150221502315024150251502615027150281502915030150311503215033150341503515036150371503815039150401504115042150431504415045150461504715048150491505015051150521505315054150551505615057150581505915060150611506215063150641506515066150671506815069150701507115072150731507415075150761507715078150791508015081150821508315084150851508615087150881508915090150911509215093150941509515096150971509815099151001510115102151031510415105151061510715108151091511015111151121511315114151151511615117151181511915120151211512215123151241512515126151271512815129151301513115132151331513415135151361513715138151391514015141151421514315144151451514615147151481514915150151511515215153151541515515156151571515815159151601516115162151631516415165151661516715168151691517015171151721517315174151751517615177151781517915180151811518215183151841518515186151871518815189151901519115192151931519415195151961519715198151991520015201152021520315204152051520615207152081520915210152111521215213152141521515216152171521815219152201522115222152231522415225152261522715228152291523015231152321523315234152351523615237152381523915240152411524215243152441524515246152471524815249152501525115252152531525415255152561525715258152591526015261152621526315264152651526615267152681526915270152711527215273152741527515276152771527815279152801528115282152831528415285152861528715288152891529015291152921529315294152951529615297152981529915300153011530215303153041530515306153071530815309153101531115312153131531415315153161531715318153191532015321153221532315324153251532615327153281532915330153311533215333153341533515336153371533815339153401534115342153431534415345153461534715348153491535015351153521535315354153551535615357153581535915360153611536215363153641536515366153671536815369153701537115372153731537415375153761537715378153791538015381153821538315384153851538615387153881538915390153911539215393153941539515396153971539815399154001540115402154031540415405154061540715408154091541015411154121541315414154151541615417154181541915420154211542215423154241542515426154271542815429154301543115432154331543415435154361543715438154391544015441154421544315444154451544615447154481544915450154511545215453154541545515456154571545815459154601546115462154631546415465154661546715468154691547015471154721547315474154751547615477154781547915480154811548215483154841548515486154871548815489154901549115492154931549415495154961549715498154991550015501155021550315504155051550615507155081550915510155111551215513155141551515516155171551815519155201552115522155231552415525155261552715528155291553015531155321553315534155351553615537155381553915540155411554215543155441554515546155471554815549155501555115552155531555415555155561555715558155591556015561155621556315564155651556615567155681556915570155711557215573155741557515576155771557815579155801558115582155831558415585155861558715588155891559015591155921559315594155951559615597155981559915600156011560215603156041560515606156071560815609156101561115612156131561415615156161561715618156191562015621156221562315624156251562615627156281562915630156311563215633156341563515636156371563815639156401564115642156431564415645156461564715648156491565015651156521565315654156551565615657156581565915660156611566215663156641566515666156671566815669156701567115672156731567415675156761567715678156791568015681156821568315684156851568615687156881568915690156911569215693156941569515696156971569815699157001570115702157031570415705157061570715708157091571015711157121571315714157151571615717157181571915720157211572215723157241572515726157271572815729157301573115732157331573415735157361573715738157391574015741157421574315744157451574615747157481574915750157511575215753157541575515756157571575815759157601576115762157631576415765157661576715768157691577015771157721577315774157751577615777157781577915780157811578215783157841578515786157871578815789157901579115792157931579415795157961579715798157991580015801158021580315804158051580615807158081580915810158111581215813158141581515816158171581815819158201582115822158231582415825158261582715828158291583015831158321583315834158351583615837158381583915840158411584215843158441584515846158471584815849158501585115852158531585415855158561585715858158591586015861158621586315864158651586615867158681586915870158711587215873158741587515876158771587815879158801588115882158831588415885158861588715888158891589015891158921589315894158951589615897158981589915900159011590215903159041590515906159071590815909159101591115912159131591415915159161591715918159191592015921159221592315924159251592615927159281592915930159311593215933159341593515936159371593815939159401594115942159431594415945159461594715948159491595015951159521595315954159551595615957159581595915960159611596215963159641596515966159671596815969159701597115972159731597415975159761597715978159791598015981159821598315984159851598615987159881598915990159911599215993159941599515996159971599815999160001600116002160031600416005160061600716008160091601016011160121601316014160151601616017160181601916020160211602216023160241602516026160271602816029160301603116032160331603416035160361603716038160391604016041160421604316044160451604616047160481604916050160511605216053160541605516056160571605816059160601606116062160631606416065160661606716068160691607016071160721607316074160751607616077160781607916080160811608216083160841608516086160871608816089160901609116092160931609416095160961609716098160991610016101161021610316104161051610616107161081610916110161111611216113161141611516116161171611816119161201612116122161231612416125161261612716128161291613016131161321613316134161351613616137161381613916140161411614216143161441614516146161471614816149161501615116152161531615416155161561615716158161591616016161161621616316164161651616616167161681616916170161711617216173161741617516176161771617816179161801618116182161831618416185161861618716188161891619016191161921619316194161951619616197161981619916200162011620216203162041620516206162071620816209162101621116212162131621416215162161621716218162191622016221162221622316224162251622616227162281622916230162311623216233162341623516236162371623816239162401624116242162431624416245162461624716248162491625016251162521625316254162551625616257162581625916260162611626216263162641626516266162671626816269162701627116272162731627416275162761627716278162791628016281162821628316284162851628616287162881628916290162911629216293162941629516296162971629816299163001630116302163031630416305163061630716308163091631016311163121631316314163151631616317163181631916320163211632216323163241632516326163271632816329163301633116332163331633416335163361633716338163391634016341163421634316344163451634616347163481634916350163511635216353163541635516356163571635816359163601636116362163631636416365163661636716368163691637016371163721637316374163751637616377163781637916380163811638216383163841638516386163871638816389163901639116392163931639416395163961639716398163991640016401164021640316404164051640616407164081640916410164111641216413164141641516416164171641816419164201642116422164231642416425164261642716428164291643016431164321643316434164351643616437164381643916440164411644216443164441644516446164471644816449164501645116452164531645416455164561645716458164591646016461164621646316464164651646616467164681646916470164711647216473164741647516476164771647816479164801648116482164831648416485164861648716488164891649016491164921649316494164951649616497164981649916500165011650216503165041650516506165071650816509165101651116512165131651416515165161651716518165191652016521165221652316524165251652616527165281652916530165311653216533165341653516536165371653816539165401654116542165431654416545165461654716548165491655016551165521655316554165551655616557165581655916560165611656216563165641656516566165671656816569165701657116572165731657416575165761657716578165791658016581165821658316584165851658616587165881658916590165911659216593165941659516596165971659816599166001660116602166031660416605166061660716608166091661016611166121661316614166151661616617166181661916620166211662216623166241662516626166271662816629166301663116632166331663416635166361663716638166391664016641166421664316644166451664616647166481664916650166511665216653166541665516656166571665816659166601666116662166631666416665166661666716668166691667016671166721667316674166751667616677166781667916680166811668216683166841668516686166871668816689166901669116692166931669416695166961669716698166991670016701167021670316704167051670616707167081670916710167111671216713167141671516716167171671816719167201672116722167231672416725167261672716728167291673016731167321673316734167351673616737167381673916740167411674216743167441674516746167471674816749167501675116752167531675416755167561675716758167591676016761167621676316764167651676616767167681676916770167711677216773167741677516776167771677816779167801678116782167831678416785167861678716788167891679016791167921679316794167951679616797167981679916800168011680216803168041680516806168071680816809168101681116812168131681416815168161681716818168191682016821168221682316824168251682616827168281682916830168311683216833168341683516836168371683816839168401684116842168431684416845168461684716848168491685016851168521685316854168551685616857168581685916860168611686216863168641686516866168671686816869168701687116872168731687416875168761687716878168791688016881168821688316884168851688616887168881688916890168911689216893168941689516896168971689816899169001690116902169031690416905169061690716908169091691016911169121691316914169151691616917169181691916920169211692216923169241692516926169271692816929169301693116932169331693416935169361693716938169391694016941169421694316944169451694616947169481694916950169511695216953169541695516956169571695816959169601696116962169631696416965169661696716968169691697016971169721697316974169751697616977169781697916980169811698216983169841698516986169871698816989169901699116992169931699416995169961699716998169991700017001170021700317004170051700617007170081700917010170111701217013170141701517016170171701817019170201702117022170231702417025170261702717028170291703017031170321703317034170351703617037170381703917040170411704217043170441704517046170471704817049170501705117052170531705417055170561705717058170591706017061170621706317064170651706617067170681706917070170711707217073170741707517076170771707817079170801708117082170831708417085170861708717088170891709017091170921709317094170951709617097170981709917100171011710217103171041710517106171071710817109171101711117112171131711417115171161711717118171191712017121171221712317124171251712617127171281712917130171311713217133171341713517136171371713817139171401714117142171431714417145171461714717148171491715017151171521715317154171551715617157171581715917160171611716217163171641716517166171671716817169171701717117172171731717417175171761717717178171791718017181171821718317184171851718617187171881718917190171911719217193171941719517196171971719817199172001720117202172031720417205172061720717208172091721017211172121721317214172151721617217172181721917220172211722217223172241722517226172271722817229172301723117232172331723417235172361723717238172391724017241172421724317244172451724617247172481724917250172511725217253172541725517256172571725817259172601726117262172631726417265172661726717268172691727017271172721727317274172751727617277172781727917280172811728217283172841728517286172871728817289172901729117292172931729417295172961729717298172991730017301173021730317304173051730617307173081730917310173111731217313173141731517316173171731817319173201732117322173231732417325173261732717328173291733017331173321733317334173351733617337173381733917340173411734217343173441734517346173471734817349173501735117352173531735417355173561735717358173591736017361173621736317364173651736617367173681736917370173711737217373173741737517376173771737817379173801738117382173831738417385173861738717388173891739017391173921739317394173951739617397173981739917400174011740217403174041740517406174071740817409174101741117412174131741417415174161741717418174191742017421174221742317424174251742617427174281742917430174311743217433174341743517436174371743817439174401744117442174431744417445174461744717448174491745017451174521745317454174551745617457174581745917460174611746217463174641746517466174671746817469174701747117472174731747417475174761747717478174791748017481174821748317484174851748617487174881748917490174911749217493174941749517496174971749817499175001750117502175031750417505175061750717508175091751017511175121751317514175151751617517175181751917520175211752217523175241752517526175271752817529175301753117532175331753417535175361753717538175391754017541175421754317544175451754617547175481754917550175511755217553175541755517556175571755817559175601756117562175631756417565175661756717568175691757017571175721757317574175751757617577175781757917580175811758217583175841758517586175871758817589175901759117592175931759417595175961759717598175991760017601176021760317604176051760617607176081760917610176111761217613176141761517616176171761817619176201762117622176231762417625176261762717628176291763017631176321763317634176351763617637176381763917640176411764217643176441764517646176471764817649176501765117652176531765417655176561765717658176591766017661176621766317664176651766617667176681766917670176711767217673176741767517676176771767817679176801768117682176831768417685176861768717688176891769017691176921769317694176951769617697176981769917700177011770217703177041770517706177071770817709177101771117712177131771417715177161771717718177191772017721177221772317724177251772617727177281772917730177311773217733177341773517736177371773817739177401774117742177431774417745177461774717748177491775017751177521775317754177551775617757177581775917760177611776217763177641776517766177671776817769177701777117772177731777417775177761777717778177791778017781177821778317784177851778617787177881778917790177911779217793177941779517796177971779817799178001780117802178031780417805178061780717808178091781017811178121781317814178151781617817178181781917820178211782217823178241782517826178271782817829178301783117832178331783417835178361783717838178391784017841178421784317844178451784617847178481784917850178511785217853178541785517856178571785817859178601786117862178631786417865178661786717868178691787017871178721787317874178751787617877178781787917880178811788217883178841788517886178871788817889178901789117892178931789417895178961789717898178991790017901179021790317904179051790617907179081790917910179111791217913179141791517916179171791817919179201792117922179231792417925179261792717928179291793017931179321793317934179351793617937179381793917940179411794217943179441794517946179471794817949179501795117952179531795417955179561795717958179591796017961179621796317964179651796617967179681796917970179711797217973179741797517976179771797817979179801798117982179831798417985179861798717988179891799017991179921799317994179951799617997179981799918000180011800218003180041800518006180071800818009180101801118012180131801418015180161801718018180191802018021180221802318024180251802618027180281802918030180311803218033180341803518036180371803818039180401804118042180431804418045180461804718048180491805018051180521805318054180551805618057180581805918060180611806218063180641806518066180671806818069180701807118072180731807418075180761807718078180791808018081180821808318084180851808618087180881808918090180911809218093180941809518096180971809818099181001810118102181031810418105181061810718108181091811018111181121811318114181151811618117181181811918120181211812218123181241812518126181271812818129181301813118132181331813418135181361813718138181391814018141181421814318144181451814618147181481814918150181511815218153181541815518156181571815818159181601816118162181631816418165181661816718168181691817018171181721817318174181751817618177181781817918180181811818218183181841818518186181871818818189181901819118192181931819418195181961819718198181991820018201182021820318204182051820618207182081820918210182111821218213182141821518216182171821818219182201822118222182231822418225182261822718228182291823018231182321823318234182351823618237182381823918240182411824218243182441824518246182471824818249182501825118252182531825418255182561825718258182591826018261182621826318264182651826618267182681826918270182711827218273182741827518276182771827818279182801828118282182831828418285182861828718288182891829018291182921829318294182951829618297182981829918300183011830218303183041830518306183071830818309183101831118312183131831418315183161831718318183191832018321183221832318324183251832618327183281832918330183311833218333183341833518336183371833818339183401834118342183431834418345183461834718348183491835018351183521835318354183551835618357183581835918360183611836218363183641836518366183671836818369183701837118372183731837418375183761837718378183791838018381183821838318384183851838618387183881838918390183911839218393183941839518396183971839818399184001840118402184031840418405184061840718408184091841018411184121841318414184151841618417184181841918420184211842218423184241842518426184271842818429184301843118432184331843418435184361843718438184391844018441184421844318444184451844618447184481844918450184511845218453184541845518456184571845818459184601846118462184631846418465184661846718468184691847018471184721847318474184751847618477184781847918480184811848218483184841848518486184871848818489184901849118492184931849418495184961849718498184991850018501185021850318504185051850618507185081850918510185111851218513185141851518516185171851818519185201852118522185231852418525185261852718528185291853018531185321853318534185351853618537185381853918540185411854218543185441854518546185471854818549185501855118552185531855418555185561855718558185591856018561185621856318564185651856618567185681856918570185711857218573185741857518576185771857818579185801858118582185831858418585185861858718588185891859018591185921859318594185951859618597185981859918600186011860218603186041860518606186071860818609186101861118612186131861418615186161861718618186191862018621186221862318624186251862618627186281862918630186311863218633186341863518636186371863818639186401864118642186431864418645186461864718648186491865018651186521865318654186551865618657186581865918660186611866218663186641866518666186671866818669186701867118672186731867418675186761867718678186791868018681186821868318684186851868618687186881868918690186911869218693186941869518696186971869818699187001870118702187031870418705187061870718708187091871018711187121871318714187151871618717187181871918720187211872218723187241872518726187271872818729187301873118732187331873418735187361873718738187391874018741187421874318744187451874618747187481874918750187511875218753187541875518756187571875818759187601876118762187631876418765187661876718768187691877018771187721877318774187751877618777187781877918780187811878218783187841878518786187871878818789187901879118792187931879418795187961879718798187991880018801188021880318804188051880618807188081880918810188111881218813188141881518816188171881818819188201882118822188231882418825188261882718828188291883018831188321883318834188351883618837188381883918840188411884218843188441884518846188471884818849188501885118852188531885418855188561885718858188591886018861188621886318864188651886618867188681886918870188711887218873188741887518876188771887818879188801888118882188831888418885188861888718888188891889018891188921889318894188951889618897188981889918900189011890218903189041890518906189071890818909189101891118912189131891418915
  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.63 for snf4cgp 0.1.4.
  4. #
  5. # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
  6. # 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
  7. # This configure script is free software; the Free Software Foundation
  8. # gives unlimited permission to copy, distribute and modify it.
  9. ## --------------------- ##
  10. ## M4sh Initialization. ##
  11. ## --------------------- ##
  12. # Be more Bourne compatible
  13. DUALCASE=1; export DUALCASE # for MKS sh
  14. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  15. emulate sh
  16. NULLCMD=:
  17. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  18. # is contrary to our usage. Disable this feature.
  19. alias -g '${1+"$@"}'='"$@"'
  20. setopt NO_GLOB_SUBST
  21. else
  22. case `(set -o) 2>/dev/null` in
  23. *posix*) set -o posix ;;
  24. esac
  25. fi
  26. # PATH needs CR
  27. # Avoid depending upon Character Ranges.
  28. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  29. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  30. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  31. as_cr_digits='0123456789'
  32. as_cr_alnum=$as_cr_Letters$as_cr_digits
  33. as_nl='
  34. '
  35. export as_nl
  36. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  37. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  38. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  39. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  40. if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  41. as_echo='printf %s\n'
  42. as_echo_n='printf %s'
  43. else
  44. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  45. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  46. as_echo_n='/usr/ucb/echo -n'
  47. else
  48. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  49. as_echo_n_body='eval
  50. arg=$1;
  51. case $arg in
  52. *"$as_nl"*)
  53. expr "X$arg" : "X\\(.*\\)$as_nl";
  54. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  55. esac;
  56. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  57. '
  58. export as_echo_n_body
  59. as_echo_n='sh -c $as_echo_n_body as_echo'
  60. fi
  61. export as_echo_body
  62. as_echo='sh -c $as_echo_body as_echo'
  63. fi
  64. # The user is always right.
  65. if test "${PATH_SEPARATOR+set}" != set; then
  66. PATH_SEPARATOR=:
  67. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  68. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  69. PATH_SEPARATOR=';'
  70. }
  71. fi
  72. # Support unset when possible.
  73. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  74. as_unset=unset
  75. else
  76. as_unset=false
  77. fi
  78. # IFS
  79. # We need space, tab and new line, in precisely that order. Quoting is
  80. # there to prevent editors from complaining about space-tab.
  81. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  82. # splitting by setting IFS to empty value.)
  83. IFS=" "" $as_nl"
  84. # Find who we are. Look in the path if we contain no directory separator.
  85. case $0 in
  86. *[\\/]* ) as_myself=$0 ;;
  87. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  88. for as_dir in $PATH
  89. do
  90. IFS=$as_save_IFS
  91. test -z "$as_dir" && as_dir=.
  92. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  93. done
  94. IFS=$as_save_IFS
  95. ;;
  96. esac
  97. # We did not find ourselves, most probably we were run as `sh COMMAND'
  98. # in which case we are not to be found in the path.
  99. if test "x$as_myself" = x; then
  100. as_myself=$0
  101. fi
  102. if test ! -f "$as_myself"; then
  103. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  104. { (exit 1); exit 1; }
  105. fi
  106. # Work around bugs in pre-3.0 UWIN ksh.
  107. for as_var in ENV MAIL MAILPATH
  108. do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  109. done
  110. PS1='$ '
  111. PS2='> '
  112. PS4='+ '
  113. # NLS nuisances.
  114. LC_ALL=C
  115. export LC_ALL
  116. LANGUAGE=C
  117. export LANGUAGE
  118. # Required to use basename.
  119. if expr a : '\(a\)' >/dev/null 2>&1 &&
  120. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  121. as_expr=expr
  122. else
  123. as_expr=false
  124. fi
  125. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  126. as_basename=basename
  127. else
  128. as_basename=false
  129. fi
  130. # Name of the executable.
  131. as_me=`$as_basename -- "$0" ||
  132. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  133. X"$0" : 'X\(//\)$' \| \
  134. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  135. $as_echo X/"$0" |
  136. sed '/^.*\/\([^/][^/]*\)\/*$/{
  137. s//\1/
  138. q
  139. }
  140. /^X\/\(\/\/\)$/{
  141. s//\1/
  142. q
  143. }
  144. /^X\/\(\/\).*/{
  145. s//\1/
  146. q
  147. }
  148. s/.*/./; q'`
  149. # CDPATH.
  150. $as_unset CDPATH
  151. if test "x$CONFIG_SHELL" = x; then
  152. if (eval ":") 2>/dev/null; then
  153. as_have_required=yes
  154. else
  155. as_have_required=no
  156. fi
  157. if test $as_have_required = yes && (eval ":
  158. (as_func_return () {
  159. (exit \$1)
  160. }
  161. as_func_success () {
  162. as_func_return 0
  163. }
  164. as_func_failure () {
  165. as_func_return 1
  166. }
  167. as_func_ret_success () {
  168. return 0
  169. }
  170. as_func_ret_failure () {
  171. return 1
  172. }
  173. exitcode=0
  174. if as_func_success; then
  175. :
  176. else
  177. exitcode=1
  178. echo as_func_success failed.
  179. fi
  180. if as_func_failure; then
  181. exitcode=1
  182. echo as_func_failure succeeded.
  183. fi
  184. if as_func_ret_success; then
  185. :
  186. else
  187. exitcode=1
  188. echo as_func_ret_success failed.
  189. fi
  190. if as_func_ret_failure; then
  191. exitcode=1
  192. echo as_func_ret_failure succeeded.
  193. fi
  194. if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
  195. :
  196. else
  197. exitcode=1
  198. echo positional parameters were not saved.
  199. fi
  200. test \$exitcode = 0) || { (exit 1); exit 1; }
  201. (
  202. as_lineno_1=\$LINENO
  203. as_lineno_2=\$LINENO
  204. test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
  205. test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
  206. ") 2> /dev/null; then
  207. :
  208. else
  209. as_candidate_shells=
  210. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  211. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  212. do
  213. IFS=$as_save_IFS
  214. test -z "$as_dir" && as_dir=.
  215. case $as_dir in
  216. /*)
  217. for as_base in sh bash ksh sh5; do
  218. as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
  219. done;;
  220. esac
  221. done
  222. IFS=$as_save_IFS
  223. for as_shell in $as_candidate_shells $SHELL; do
  224. # Try only shells that exist, to save several forks.
  225. if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
  226. { ("$as_shell") 2> /dev/null <<\_ASEOF
  227. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  228. emulate sh
  229. NULLCMD=:
  230. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  231. # is contrary to our usage. Disable this feature.
  232. alias -g '${1+"$@"}'='"$@"'
  233. setopt NO_GLOB_SUBST
  234. else
  235. case `(set -o) 2>/dev/null` in
  236. *posix*) set -o posix ;;
  237. esac
  238. fi
  239. :
  240. _ASEOF
  241. }; then
  242. CONFIG_SHELL=$as_shell
  243. as_have_required=yes
  244. if { "$as_shell" 2> /dev/null <<\_ASEOF
  245. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  246. emulate sh
  247. NULLCMD=:
  248. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  249. # is contrary to our usage. Disable this feature.
  250. alias -g '${1+"$@"}'='"$@"'
  251. setopt NO_GLOB_SUBST
  252. else
  253. case `(set -o) 2>/dev/null` in
  254. *posix*) set -o posix ;;
  255. esac
  256. fi
  257. :
  258. (as_func_return () {
  259. (exit $1)
  260. }
  261. as_func_success () {
  262. as_func_return 0
  263. }
  264. as_func_failure () {
  265. as_func_return 1
  266. }
  267. as_func_ret_success () {
  268. return 0
  269. }
  270. as_func_ret_failure () {
  271. return 1
  272. }
  273. exitcode=0
  274. if as_func_success; then
  275. :
  276. else
  277. exitcode=1
  278. echo as_func_success failed.
  279. fi
  280. if as_func_failure; then
  281. exitcode=1
  282. echo as_func_failure succeeded.
  283. fi
  284. if as_func_ret_success; then
  285. :
  286. else
  287. exitcode=1
  288. echo as_func_ret_success failed.
  289. fi
  290. if as_func_ret_failure; then
  291. exitcode=1
  292. echo as_func_ret_failure succeeded.
  293. fi
  294. if ( set x; as_func_ret_success y && test x = "$1" ); then
  295. :
  296. else
  297. exitcode=1
  298. echo positional parameters were not saved.
  299. fi
  300. test $exitcode = 0) || { (exit 1); exit 1; }
  301. (
  302. as_lineno_1=$LINENO
  303. as_lineno_2=$LINENO
  304. test "x$as_lineno_1" != "x$as_lineno_2" &&
  305. test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
  306. _ASEOF
  307. }; then
  308. break
  309. fi
  310. fi
  311. done
  312. if test "x$CONFIG_SHELL" != x; then
  313. for as_var in BASH_ENV ENV
  314. do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  315. done
  316. export CONFIG_SHELL
  317. exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
  318. fi
  319. if test $as_have_required = no; then
  320. echo This script requires a shell more modern than all the
  321. echo shells that I found on your system. Please install a
  322. echo modern shell, or manually run the script under such a
  323. echo shell if you do have one.
  324. { (exit 1); exit 1; }
  325. fi
  326. fi
  327. fi
  328. (eval "as_func_return () {
  329. (exit \$1)
  330. }
  331. as_func_success () {
  332. as_func_return 0
  333. }
  334. as_func_failure () {
  335. as_func_return 1
  336. }
  337. as_func_ret_success () {
  338. return 0
  339. }
  340. as_func_ret_failure () {
  341. return 1
  342. }
  343. exitcode=0
  344. if as_func_success; then
  345. :
  346. else
  347. exitcode=1
  348. echo as_func_success failed.
  349. fi
  350. if as_func_failure; then
  351. exitcode=1
  352. echo as_func_failure succeeded.
  353. fi
  354. if as_func_ret_success; then
  355. :
  356. else
  357. exitcode=1
  358. echo as_func_ret_success failed.
  359. fi
  360. if as_func_ret_failure; then
  361. exitcode=1
  362. echo as_func_ret_failure succeeded.
  363. fi
  364. if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
  365. :
  366. else
  367. exitcode=1
  368. echo positional parameters were not saved.
  369. fi
  370. test \$exitcode = 0") || {
  371. echo No shell found that supports shell functions.
  372. echo Please tell bug-autoconf@gnu.org about your system,
  373. echo including any error possibly output before this message.
  374. echo This can help us improve future autoconf versions.
  375. echo Configuration will now proceed without shell functions.
  376. }
  377. as_lineno_1=$LINENO
  378. as_lineno_2=$LINENO
  379. test "x$as_lineno_1" != "x$as_lineno_2" &&
  380. test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
  381. # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
  382. # uniformly replaced by the line number. The first 'sed' inserts a
  383. # line-number line after each line using $LINENO; the second 'sed'
  384. # does the real work. The second script uses 'N' to pair each
  385. # line-number line with the line containing $LINENO, and appends
  386. # trailing '-' during substitution so that $LINENO is not a special
  387. # case at line end.
  388. # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
  389. # scripts with optimization help from Paolo Bonzini. Blame Lee
  390. # E. McMahon (1931-1989) for sed's syntax. :-)
  391. sed -n '
  392. p
  393. /[$]LINENO/=
  394. ' <$as_myself |
  395. sed '
  396. s/[$]LINENO.*/&-/
  397. t lineno
  398. b
  399. :lineno
  400. N
  401. :loop
  402. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  403. t loop
  404. s/-\n.*//
  405. ' >$as_me.lineno &&
  406. chmod +x "$as_me.lineno" ||
  407. { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
  408. { (exit 1); exit 1; }; }
  409. # Don't try to exec as it changes $[0], causing all sort of problems
  410. # (the dirname of $[0] is not the place where we might find the
  411. # original and so on. Autoconf is especially sensitive to this).
  412. . "./$as_me.lineno"
  413. # Exit status is that of the last command.
  414. exit
  415. }
  416. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  417. as_dirname=dirname
  418. else
  419. as_dirname=false
  420. fi
  421. ECHO_C= ECHO_N= ECHO_T=
  422. case `echo -n x` in
  423. -n*)
  424. case `echo 'x\c'` in
  425. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  426. *) ECHO_C='\c';;
  427. esac;;
  428. *)
  429. ECHO_N='-n';;
  430. esac
  431. if expr a : '\(a\)' >/dev/null 2>&1 &&
  432. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  433. as_expr=expr
  434. else
  435. as_expr=false
  436. fi
  437. rm -f conf$$ conf$$.exe conf$$.file
  438. if test -d conf$$.dir; then
  439. rm -f conf$$.dir/conf$$.file
  440. else
  441. rm -f conf$$.dir
  442. mkdir conf$$.dir 2>/dev/null
  443. fi
  444. if (echo >conf$$.file) 2>/dev/null; then
  445. if ln -s conf$$.file conf$$ 2>/dev/null; then
  446. as_ln_s='ln -s'
  447. # ... but there are two gotchas:
  448. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  449. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  450. # In both cases, we have to default to `cp -p'.
  451. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  452. as_ln_s='cp -p'
  453. elif ln conf$$.file conf$$ 2>/dev/null; then
  454. as_ln_s=ln
  455. else
  456. as_ln_s='cp -p'
  457. fi
  458. else
  459. as_ln_s='cp -p'
  460. fi
  461. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  462. rmdir conf$$.dir 2>/dev/null
  463. if mkdir -p . 2>/dev/null; then
  464. as_mkdir_p=:
  465. else
  466. test -d ./-p && rmdir ./-p
  467. as_mkdir_p=false
  468. fi
  469. if test -x / >/dev/null 2>&1; then
  470. as_test_x='test -x'
  471. else
  472. if ls -dL / >/dev/null 2>&1; then
  473. as_ls_L_option=L
  474. else
  475. as_ls_L_option=
  476. fi
  477. as_test_x='
  478. eval sh -c '\''
  479. if test -d "$1"; then
  480. test -d "$1/.";
  481. else
  482. case $1 in
  483. -*)set "./$1";;
  484. esac;
  485. case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
  486. ???[sx]*):;;*)false;;esac;fi
  487. '\'' sh
  488. '
  489. fi
  490. as_executable_p=$as_test_x
  491. # Sed expression to map a string onto a valid CPP name.
  492. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  493. # Sed expression to map a string onto a valid variable name.
  494. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  495. # Check that we are running under the correct shell.
  496. SHELL=${CONFIG_SHELL-/bin/sh}
  497. case X$lt_ECHO in
  498. X*--fallback-echo)
  499. # Remove one level of quotation (which was required for Make).
  500. ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
  501. ;;
  502. esac
  503. ECHO=${lt_ECHO-echo}
  504. if test "X$1" = X--no-reexec; then
  505. # Discard the --no-reexec flag, and continue.
  506. shift
  507. elif test "X$1" = X--fallback-echo; then
  508. # Avoid inline document here, it may be left over
  509. :
  510. elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
  511. # Yippee, $ECHO works!
  512. :
  513. else
  514. # Restart under the correct shell.
  515. exec $SHELL "$0" --no-reexec ${1+"$@"}
  516. fi
  517. if test "X$1" = X--fallback-echo; then
  518. # used as fallback echo
  519. shift
  520. cat <<_LT_EOF
  521. $*
  522. _LT_EOF
  523. exit 0
  524. fi
  525. # The HP-UX ksh and POSIX shell print the target directory to stdout
  526. # if CDPATH is set.
  527. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  528. if test -z "$lt_ECHO"; then
  529. if test "X${echo_test_string+set}" != Xset; then
  530. # find a string as large as possible, as long as the shell can cope with it
  531. for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
  532. # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
  533. if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
  534. { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
  535. then
  536. break
  537. fi
  538. done
  539. fi
  540. if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
  541. echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
  542. test "X$echo_testing_string" = "X$echo_test_string"; then
  543. :
  544. else
  545. # The Solaris, AIX, and Digital Unix default echo programs unquote
  546. # backslashes. This makes it impossible to quote backslashes using
  547. # echo "$something" | sed 's/\\/\\\\/g'
  548. #
  549. # So, first we look for a working echo in the user's PATH.
  550. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  551. for dir in $PATH /usr/ucb; do
  552. IFS="$lt_save_ifs"
  553. if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
  554. test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
  555. echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
  556. test "X$echo_testing_string" = "X$echo_test_string"; then
  557. ECHO="$dir/echo"
  558. break
  559. fi
  560. done
  561. IFS="$lt_save_ifs"
  562. if test "X$ECHO" = Xecho; then
  563. # We didn't find a better echo, so look for alternatives.
  564. if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
  565. echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
  566. test "X$echo_testing_string" = "X$echo_test_string"; then
  567. # This shell has a builtin print -r that does the trick.
  568. ECHO='print -r'
  569. elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
  570. test "X$CONFIG_SHELL" != X/bin/ksh; then
  571. # If we have ksh, try running configure again with it.
  572. ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
  573. export ORIGINAL_CONFIG_SHELL
  574. CONFIG_SHELL=/bin/ksh
  575. export CONFIG_SHELL
  576. exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
  577. else
  578. # Try using printf.
  579. ECHO='printf %s\n'
  580. if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
  581. echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
  582. test "X$echo_testing_string" = "X$echo_test_string"; then
  583. # Cool, printf works
  584. :
  585. elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
  586. test "X$echo_testing_string" = 'X\t' &&
  587. echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
  588. test "X$echo_testing_string" = "X$echo_test_string"; then
  589. CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
  590. export CONFIG_SHELL
  591. SHELL="$CONFIG_SHELL"
  592. export SHELL
  593. ECHO="$CONFIG_SHELL $0 --fallback-echo"
  594. elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
  595. test "X$echo_testing_string" = 'X\t' &&
  596. echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
  597. test "X$echo_testing_string" = "X$echo_test_string"; then
  598. ECHO="$CONFIG_SHELL $0 --fallback-echo"
  599. else
  600. # maybe with a smaller string...
  601. prev=:
  602. for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
  603. if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
  604. then
  605. break
  606. fi
  607. prev="$cmd"
  608. done
  609. if test "$prev" != 'sed 50q "$0"'; then
  610. echo_test_string=`eval $prev`
  611. export echo_test_string
  612. exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
  613. else
  614. # Oops. We lost completely, so just stick with echo.
  615. ECHO=echo
  616. fi
  617. fi
  618. fi
  619. fi
  620. fi
  621. fi
  622. # Copy echo and quote the copy suitably for passing to libtool from
  623. # the Makefile, instead of quoting the original, which is used later.
  624. lt_ECHO=$ECHO
  625. if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
  626. lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
  627. fi
  628. exec 7<&0 </dev/null 6>&1
  629. # Name of the host.
  630. # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
  631. # so uname gets run too.
  632. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  633. #
  634. # Initializations.
  635. #
  636. ac_default_prefix=/usr/local
  637. ac_clean_files=
  638. ac_config_libobj_dir=.
  639. LIBOBJS=
  640. cross_compiling=no
  641. subdirs=
  642. MFLAGS=
  643. MAKEFLAGS=
  644. SHELL=${CONFIG_SHELL-/bin/sh}
  645. # Identity of this package.
  646. PACKAGE_NAME='snf4cgp'
  647. PACKAGE_TARNAME='snf4cgp'
  648. PACKAGE_VERSION='0.1.4'
  649. PACKAGE_STRING='snf4cgp 0.1.4'
  650. PACKAGE_BUGREPORT=''
  651. ac_unique_file="SNF4CGP/OutputProcessor.cpp"
  652. # Factoring default headers for most tests.
  653. ac_includes_default="\
  654. #include <stdio.h>
  655. #ifdef HAVE_SYS_TYPES_H
  656. # include <sys/types.h>
  657. #endif
  658. #ifdef HAVE_SYS_STAT_H
  659. # include <sys/stat.h>
  660. #endif
  661. #ifdef STDC_HEADERS
  662. # include <stdlib.h>
  663. # include <stddef.h>
  664. #else
  665. # ifdef HAVE_STDLIB_H
  666. # include <stdlib.h>
  667. # endif
  668. #endif
  669. #ifdef HAVE_STRING_H
  670. # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
  671. # include <memory.h>
  672. # endif
  673. # include <string.h>
  674. #endif
  675. #ifdef HAVE_STRINGS_H
  676. # include <strings.h>
  677. #endif
  678. #ifdef HAVE_INTTYPES_H
  679. # include <inttypes.h>
  680. #endif
  681. #ifdef HAVE_STDINT_H
  682. # include <stdint.h>
  683. #endif
  684. #ifdef HAVE_UNISTD_H
  685. # include <unistd.h>
  686. #endif"
  687. ac_subst_vars='LTLIBOBJS
  688. LIBOBJS
  689. SNF_LIBS
  690. SNF_CXXFLAGS
  691. OTHER_CXXFLAGS
  692. ForPackage_FALSE
  693. ForPackage_TRUE
  694. haveCURL
  695. CXXCPP
  696. am__fastdepCXX_FALSE
  697. am__fastdepCXX_TRUE
  698. CXXDEPMODE
  699. ac_ct_CXX
  700. CXXFLAGS
  701. CXX
  702. CPP
  703. OTOOL64
  704. OTOOL
  705. LIPO
  706. NMEDIT
  707. DSYMUTIL
  708. lt_ECHO
  709. RANLIB
  710. AR
  711. OBJDUMP
  712. LN_S
  713. NM
  714. ac_ct_DUMPBIN
  715. DUMPBIN
  716. LD
  717. FGREP
  718. EGREP
  719. GREP
  720. SED
  721. am__fastdepCC_FALSE
  722. am__fastdepCC_TRUE
  723. CCDEPMODE
  724. AMDEPBACKSLASH
  725. AMDEP_FALSE
  726. AMDEP_TRUE
  727. am__quote
  728. am__include
  729. DEPDIR
  730. OBJEXT
  731. EXEEXT
  732. ac_ct_CC
  733. CPPFLAGS
  734. LDFLAGS
  735. CFLAGS
  736. CC
  737. host_os
  738. host_vendor
  739. host_cpu
  740. host
  741. build_os
  742. build_vendor
  743. build_cpu
  744. build
  745. LIBTOOL
  746. am__untar
  747. am__tar
  748. AMTAR
  749. am__leading_dot
  750. SET_MAKE
  751. AWK
  752. mkdir_p
  753. MKDIR_P
  754. INSTALL_STRIP_PROGRAM
  755. STRIP
  756. install_sh
  757. MAKEINFO
  758. AUTOHEADER
  759. AUTOMAKE
  760. AUTOCONF
  761. ACLOCAL
  762. VERSION
  763. PACKAGE
  764. CYGPATH_W
  765. am__isrc
  766. INSTALL_DATA
  767. INSTALL_SCRIPT
  768. INSTALL_PROGRAM
  769. target_alias
  770. host_alias
  771. build_alias
  772. LIBS
  773. ECHO_T
  774. ECHO_N
  775. ECHO_C
  776. DEFS
  777. mandir
  778. localedir
  779. libdir
  780. psdir
  781. pdfdir
  782. dvidir
  783. htmldir
  784. infodir
  785. docdir
  786. oldincludedir
  787. includedir
  788. localstatedir
  789. sharedstatedir
  790. sysconfdir
  791. datadir
  792. datarootdir
  793. libexecdir
  794. sbindir
  795. bindir
  796. program_transform_name
  797. prefix
  798. exec_prefix
  799. PACKAGE_BUGREPORT
  800. PACKAGE_STRING
  801. PACKAGE_VERSION
  802. PACKAGE_TARNAME
  803. PACKAGE_NAME
  804. PATH_SEPARATOR
  805. SHELL'
  806. ac_subst_files=''
  807. ac_user_opts='
  808. enable_option_checking
  809. enable_shared
  810. enable_static
  811. with_pic
  812. enable_fast_install
  813. enable_dependency_tracking
  814. with_gnu_ld
  815. enable_libtool_lock
  816. enable_for_package
  817. '
  818. ac_precious_vars='build_alias
  819. host_alias
  820. target_alias
  821. CC
  822. CFLAGS
  823. LDFLAGS
  824. LIBS
  825. CPPFLAGS
  826. CPP
  827. CXX
  828. CXXFLAGS
  829. CCC
  830. CXXCPP'
  831. # Initialize some variables set by options.
  832. ac_init_help=
  833. ac_init_version=false
  834. ac_unrecognized_opts=
  835. ac_unrecognized_sep=
  836. # The variables have the same names as the options, with
  837. # dashes changed to underlines.
  838. cache_file=/dev/null
  839. exec_prefix=NONE
  840. no_create=
  841. no_recursion=
  842. prefix=NONE
  843. program_prefix=NONE
  844. program_suffix=NONE
  845. program_transform_name=s,x,x,
  846. silent=
  847. site=
  848. srcdir=
  849. verbose=
  850. x_includes=NONE
  851. x_libraries=NONE
  852. # Installation directory options.
  853. # These are left unexpanded so users can "make install exec_prefix=/foo"
  854. # and all the variables that are supposed to be based on exec_prefix
  855. # by default will actually change.
  856. # Use braces instead of parens because sh, perl, etc. also accept them.
  857. # (The list follows the same order as the GNU Coding Standards.)
  858. bindir='${exec_prefix}/bin'
  859. sbindir='${exec_prefix}/sbin'
  860. libexecdir='${exec_prefix}/libexec'
  861. datarootdir='${prefix}/share'
  862. datadir='${datarootdir}'
  863. sysconfdir='${prefix}/etc'
  864. sharedstatedir='${prefix}/com'
  865. localstatedir='${prefix}/var'
  866. includedir='${prefix}/include'
  867. oldincludedir='/usr/include'
  868. docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
  869. infodir='${datarootdir}/info'
  870. htmldir='${docdir}'
  871. dvidir='${docdir}'
  872. pdfdir='${docdir}'
  873. psdir='${docdir}'
  874. libdir='${exec_prefix}/lib'
  875. localedir='${datarootdir}/locale'
  876. mandir='${datarootdir}/man'
  877. ac_prev=
  878. ac_dashdash=
  879. for ac_option
  880. do
  881. # If the previous option needs an argument, assign it.
  882. if test -n "$ac_prev"; then
  883. eval $ac_prev=\$ac_option
  884. ac_prev=
  885. continue
  886. fi
  887. case $ac_option in
  888. *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  889. *) ac_optarg=yes ;;
  890. esac
  891. # Accept the important Cygnus configure options, so we can diagnose typos.
  892. case $ac_dashdash$ac_option in
  893. --)
  894. ac_dashdash=yes ;;
  895. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  896. ac_prev=bindir ;;
  897. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  898. bindir=$ac_optarg ;;
  899. -build | --build | --buil | --bui | --bu)
  900. ac_prev=build_alias ;;
  901. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  902. build_alias=$ac_optarg ;;
  903. -cache-file | --cache-file | --cache-fil | --cache-fi \
  904. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  905. ac_prev=cache_file ;;
  906. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  907. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  908. cache_file=$ac_optarg ;;
  909. --config-cache | -C)
  910. cache_file=config.cache ;;
  911. -datadir | --datadir | --datadi | --datad)
  912. ac_prev=datadir ;;
  913. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  914. datadir=$ac_optarg ;;
  915. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  916. | --dataroo | --dataro | --datar)
  917. ac_prev=datarootdir ;;
  918. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  919. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  920. datarootdir=$ac_optarg ;;
  921. -disable-* | --disable-*)
  922. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  923. # Reject names that are not valid shell variable names.
  924. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  925. { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
  926. { (exit 1); exit 1; }; }
  927. ac_useropt_orig=$ac_useropt
  928. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  929. case $ac_user_opts in
  930. *"
  931. "enable_$ac_useropt"
  932. "*) ;;
  933. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  934. ac_unrecognized_sep=', ';;
  935. esac
  936. eval enable_$ac_useropt=no ;;
  937. -docdir | --docdir | --docdi | --doc | --do)
  938. ac_prev=docdir ;;
  939. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  940. docdir=$ac_optarg ;;
  941. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  942. ac_prev=dvidir ;;
  943. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  944. dvidir=$ac_optarg ;;
  945. -enable-* | --enable-*)
  946. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  947. # Reject names that are not valid shell variable names.
  948. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  949. { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
  950. { (exit 1); exit 1; }; }
  951. ac_useropt_orig=$ac_useropt
  952. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  953. case $ac_user_opts in
  954. *"
  955. "enable_$ac_useropt"
  956. "*) ;;
  957. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  958. ac_unrecognized_sep=', ';;
  959. esac
  960. eval enable_$ac_useropt=\$ac_optarg ;;
  961. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  962. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  963. | --exec | --exe | --ex)
  964. ac_prev=exec_prefix ;;
  965. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  966. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  967. | --exec=* | --exe=* | --ex=*)
  968. exec_prefix=$ac_optarg ;;
  969. -gas | --gas | --ga | --g)
  970. # Obsolete; use --with-gas.
  971. with_gas=yes ;;
  972. -help | --help | --hel | --he | -h)
  973. ac_init_help=long ;;
  974. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  975. ac_init_help=recursive ;;
  976. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  977. ac_init_help=short ;;
  978. -host | --host | --hos | --ho)
  979. ac_prev=host_alias ;;
  980. -host=* | --host=* | --hos=* | --ho=*)
  981. host_alias=$ac_optarg ;;
  982. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  983. ac_prev=htmldir ;;
  984. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  985. | --ht=*)
  986. htmldir=$ac_optarg ;;
  987. -includedir | --includedir | --includedi | --included | --include \
  988. | --includ | --inclu | --incl | --inc)
  989. ac_prev=includedir ;;
  990. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  991. | --includ=* | --inclu=* | --incl=* | --inc=*)
  992. includedir=$ac_optarg ;;
  993. -infodir | --infodir | --infodi | --infod | --info | --inf)
  994. ac_prev=infodir ;;
  995. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  996. infodir=$ac_optarg ;;
  997. -libdir | --libdir | --libdi | --libd)
  998. ac_prev=libdir ;;
  999. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  1000. libdir=$ac_optarg ;;
  1001. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  1002. | --libexe | --libex | --libe)
  1003. ac_prev=libexecdir ;;
  1004. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  1005. | --libexe=* | --libex=* | --libe=*)
  1006. libexecdir=$ac_optarg ;;
  1007. -localedir | --localedir | --localedi | --localed | --locale)
  1008. ac_prev=localedir ;;
  1009. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  1010. localedir=$ac_optarg ;;
  1011. -localstatedir | --localstatedir | --localstatedi | --localstated \
  1012. | --localstate | --localstat | --localsta | --localst | --locals)
  1013. ac_prev=localstatedir ;;
  1014. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  1015. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  1016. localstatedir=$ac_optarg ;;
  1017. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  1018. ac_prev=mandir ;;
  1019. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  1020. mandir=$ac_optarg ;;
  1021. -nfp | --nfp | --nf)
  1022. # Obsolete; use --without-fp.
  1023. with_fp=no ;;
  1024. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  1025. | --no-cr | --no-c | -n)
  1026. no_create=yes ;;
  1027. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  1028. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  1029. no_recursion=yes ;;
  1030. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  1031. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  1032. | --oldin | --oldi | --old | --ol | --o)
  1033. ac_prev=oldincludedir ;;
  1034. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  1035. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  1036. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  1037. oldincludedir=$ac_optarg ;;
  1038. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  1039. ac_prev=prefix ;;
  1040. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  1041. prefix=$ac_optarg ;;
  1042. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  1043. | --program-pre | --program-pr | --program-p)
  1044. ac_prev=program_prefix ;;
  1045. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  1046. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  1047. program_prefix=$ac_optarg ;;
  1048. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  1049. | --program-suf | --program-su | --program-s)
  1050. ac_prev=program_suffix ;;
  1051. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  1052. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  1053. program_suffix=$ac_optarg ;;
  1054. -program-transform-name | --program-transform-name \
  1055. | --program-transform-nam | --program-transform-na \
  1056. | --program-transform-n | --program-transform- \
  1057. | --program-transform | --program-transfor \
  1058. | --program-transfo | --program-transf \
  1059. | --program-trans | --program-tran \
  1060. | --progr-tra | --program-tr | --program-t)
  1061. ac_prev=program_transform_name ;;
  1062. -program-transform-name=* | --program-transform-name=* \
  1063. | --program-transform-nam=* | --program-transform-na=* \
  1064. | --program-transform-n=* | --program-transform-=* \
  1065. | --program-transform=* | --program-transfor=* \
  1066. | --program-transfo=* | --program-transf=* \
  1067. | --program-trans=* | --program-tran=* \
  1068. | --progr-tra=* | --program-tr=* | --program-t=*)
  1069. program_transform_name=$ac_optarg ;;
  1070. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  1071. ac_prev=pdfdir ;;
  1072. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  1073. pdfdir=$ac_optarg ;;
  1074. -psdir | --psdir | --psdi | --psd | --ps)
  1075. ac_prev=psdir ;;
  1076. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  1077. psdir=$ac_optarg ;;
  1078. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1079. | -silent | --silent | --silen | --sile | --sil)
  1080. silent=yes ;;
  1081. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  1082. ac_prev=sbindir ;;
  1083. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  1084. | --sbi=* | --sb=*)
  1085. sbindir=$ac_optarg ;;
  1086. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  1087. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  1088. | --sharedst | --shareds | --shared | --share | --shar \
  1089. | --sha | --sh)
  1090. ac_prev=sharedstatedir ;;
  1091. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  1092. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  1093. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  1094. | --sha=* | --sh=*)
  1095. sharedstatedir=$ac_optarg ;;
  1096. -site | --site | --sit)
  1097. ac_prev=site ;;
  1098. -site=* | --site=* | --sit=*)
  1099. site=$ac_optarg ;;
  1100. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  1101. ac_prev=srcdir ;;
  1102. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1103. srcdir=$ac_optarg ;;
  1104. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  1105. | --syscon | --sysco | --sysc | --sys | --sy)
  1106. ac_prev=sysconfdir ;;
  1107. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  1108. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  1109. sysconfdir=$ac_optarg ;;
  1110. -target | --target | --targe | --targ | --tar | --ta | --t)
  1111. ac_prev=target_alias ;;
  1112. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  1113. target_alias=$ac_optarg ;;
  1114. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  1115. verbose=yes ;;
  1116. -version | --version | --versio | --versi | --vers | -V)
  1117. ac_init_version=: ;;
  1118. -with-* | --with-*)
  1119. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1120. # Reject names that are not valid shell variable names.
  1121. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1122. { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
  1123. { (exit 1); exit 1; }; }
  1124. ac_useropt_orig=$ac_useropt
  1125. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1126. case $ac_user_opts in
  1127. *"
  1128. "with_$ac_useropt"
  1129. "*) ;;
  1130. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  1131. ac_unrecognized_sep=', ';;
  1132. esac
  1133. eval with_$ac_useropt=\$ac_optarg ;;
  1134. -without-* | --without-*)
  1135. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1136. # Reject names that are not valid shell variable names.
  1137. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1138. { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
  1139. { (exit 1); exit 1; }; }
  1140. ac_useropt_orig=$ac_useropt
  1141. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1142. case $ac_user_opts in
  1143. *"
  1144. "with_$ac_useropt"
  1145. "*) ;;
  1146. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  1147. ac_unrecognized_sep=', ';;
  1148. esac
  1149. eval with_$ac_useropt=no ;;
  1150. --x)
  1151. # Obsolete; use --with-x.
  1152. with_x=yes ;;
  1153. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1154. | --x-incl | --x-inc | --x-in | --x-i)
  1155. ac_prev=x_includes ;;
  1156. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1157. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1158. x_includes=$ac_optarg ;;
  1159. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1160. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1161. ac_prev=x_libraries ;;
  1162. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1163. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1164. x_libraries=$ac_optarg ;;
  1165. -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
  1166. Try \`$0 --help' for more information." >&2
  1167. { (exit 1); exit 1; }; }
  1168. ;;
  1169. *=*)
  1170. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1171. # Reject names that are not valid shell variable names.
  1172. expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
  1173. { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
  1174. { (exit 1); exit 1; }; }
  1175. eval $ac_envvar=\$ac_optarg
  1176. export $ac_envvar ;;
  1177. *)
  1178. # FIXME: should be removed in autoconf 3.0.
  1179. $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1180. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1181. $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1182. : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
  1183. ;;
  1184. esac
  1185. done
  1186. if test -n "$ac_prev"; then
  1187. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1188. { $as_echo "$as_me: error: missing argument to $ac_option" >&2
  1189. { (exit 1); exit 1; }; }
  1190. fi
  1191. if test -n "$ac_unrecognized_opts"; then
  1192. case $enable_option_checking in
  1193. no) ;;
  1194. fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
  1195. { (exit 1); exit 1; }; } ;;
  1196. *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1197. esac
  1198. fi
  1199. # Check all directory arguments for consistency.
  1200. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1201. datadir sysconfdir sharedstatedir localstatedir includedir \
  1202. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1203. libdir localedir mandir
  1204. do
  1205. eval ac_val=\$$ac_var
  1206. # Remove trailing slashes.
  1207. case $ac_val in
  1208. */ )
  1209. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1210. eval $ac_var=\$ac_val;;
  1211. esac
  1212. # Be sure to have absolute directory names.
  1213. case $ac_val in
  1214. [\\/$]* | ?:[\\/]* ) continue;;
  1215. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1216. esac
  1217. { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
  1218. { (exit 1); exit 1; }; }
  1219. done
  1220. # There might be people who depend on the old broken behavior: `$host'
  1221. # used to hold the argument of --host etc.
  1222. # FIXME: To remove some day.
  1223. build=$build_alias
  1224. host=$host_alias
  1225. target=$target_alias
  1226. # FIXME: To remove some day.
  1227. if test "x$host_alias" != x; then
  1228. if test "x$build_alias" = x; then
  1229. cross_compiling=maybe
  1230. $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
  1231. If a cross compiler is detected then cross compile mode will be used." >&2
  1232. elif test "x$build_alias" != "x$host_alias"; then
  1233. cross_compiling=yes
  1234. fi
  1235. fi
  1236. ac_tool_prefix=
  1237. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1238. test "$silent" = yes && exec 6>/dev/null
  1239. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1240. ac_ls_di=`ls -di .` &&
  1241. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1242. { $as_echo "$as_me: error: working directory cannot be determined" >&2
  1243. { (exit 1); exit 1; }; }
  1244. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1245. { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
  1246. { (exit 1); exit 1; }; }
  1247. # Find the source files, if location was not specified.
  1248. if test -z "$srcdir"; then
  1249. ac_srcdir_defaulted=yes
  1250. # Try the directory containing this script, then the parent directory.
  1251. ac_confdir=`$as_dirname -- "$as_myself" ||
  1252. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1253. X"$as_myself" : 'X\(//\)[^/]' \| \
  1254. X"$as_myself" : 'X\(//\)$' \| \
  1255. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1256. $as_echo X"$as_myself" |
  1257. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1258. s//\1/
  1259. q
  1260. }
  1261. /^X\(\/\/\)[^/].*/{
  1262. s//\1/
  1263. q
  1264. }
  1265. /^X\(\/\/\)$/{
  1266. s//\1/
  1267. q
  1268. }
  1269. /^X\(\/\).*/{
  1270. s//\1/
  1271. q
  1272. }
  1273. s/.*/./; q'`
  1274. srcdir=$ac_confdir
  1275. if test ! -r "$srcdir/$ac_unique_file"; then
  1276. srcdir=..
  1277. fi
  1278. else
  1279. ac_srcdir_defaulted=no
  1280. fi
  1281. if test ! -r "$srcdir/$ac_unique_file"; then
  1282. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1283. { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
  1284. { (exit 1); exit 1; }; }
  1285. fi
  1286. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1287. ac_abs_confdir=`(
  1288. cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
  1289. { (exit 1); exit 1; }; }
  1290. pwd)`
  1291. # When building in place, set srcdir=.
  1292. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1293. srcdir=.
  1294. fi
  1295. # Remove unnecessary trailing slashes from srcdir.
  1296. # Double slashes in file names in object file debugging info
  1297. # mess up M-x gdb in Emacs.
  1298. case $srcdir in
  1299. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1300. esac
  1301. for ac_var in $ac_precious_vars; do
  1302. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1303. eval ac_env_${ac_var}_value=\$${ac_var}
  1304. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1305. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1306. done
  1307. #
  1308. # Report the --help message.
  1309. #
  1310. if test "$ac_init_help" = "long"; then
  1311. # Omit some internal or obsolete options to make the list less imposing.
  1312. # This message is too long to be a string in the A/UX 3.1 sh.
  1313. cat <<_ACEOF
  1314. \`configure' configures snf4cgp 0.1.4 to adapt to many kinds of systems.
  1315. Usage: $0 [OPTION]... [VAR=VALUE]...
  1316. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1317. VAR=VALUE. See below for descriptions of some of the useful variables.
  1318. Defaults for the options are specified in brackets.
  1319. Configuration:
  1320. -h, --help display this help and exit
  1321. --help=short display options specific to this package
  1322. --help=recursive display the short help of all the included packages
  1323. -V, --version display version information and exit
  1324. -q, --quiet, --silent do not print \`checking...' messages
  1325. --cache-file=FILE cache test results in FILE [disabled]
  1326. -C, --config-cache alias for \`--cache-file=config.cache'
  1327. -n, --no-create do not create output files
  1328. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1329. Installation directories:
  1330. --prefix=PREFIX install architecture-independent files in PREFIX
  1331. [$ac_default_prefix]
  1332. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1333. [PREFIX]
  1334. By default, \`make install' will install all the files in
  1335. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1336. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1337. for instance \`--prefix=\$HOME'.
  1338. For better control, use the options below.
  1339. Fine tuning of the installation directories:
  1340. --bindir=DIR user executables [EPREFIX/bin]
  1341. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1342. --libexecdir=DIR program executables [EPREFIX/libexec]
  1343. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1344. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1345. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1346. --libdir=DIR object code libraries [EPREFIX/lib]
  1347. --includedir=DIR C header files [PREFIX/include]
  1348. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1349. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1350. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1351. --infodir=DIR info documentation [DATAROOTDIR/info]
  1352. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1353. --mandir=DIR man documentation [DATAROOTDIR/man]
  1354. --docdir=DIR documentation root [DATAROOTDIR/doc/snf4cgp]
  1355. --htmldir=DIR html documentation [DOCDIR]
  1356. --dvidir=DIR dvi documentation [DOCDIR]
  1357. --pdfdir=DIR pdf documentation [DOCDIR]
  1358. --psdir=DIR ps documentation [DOCDIR]
  1359. _ACEOF
  1360. cat <<\_ACEOF
  1361. Program names:
  1362. --program-prefix=PREFIX prepend PREFIX to installed program names
  1363. --program-suffix=SUFFIX append SUFFIX to installed program names
  1364. --program-transform-name=PROGRAM run sed PROGRAM on installed program names
  1365. System types:
  1366. --build=BUILD configure for building on BUILD [guessed]
  1367. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1368. _ACEOF
  1369. fi
  1370. if test -n "$ac_init_help"; then
  1371. case $ac_init_help in
  1372. short | recursive ) echo "Configuration of snf4cgp 0.1.4:";;
  1373. esac
  1374. cat <<\_ACEOF
  1375. Optional Features:
  1376. --disable-option-checking ignore unrecognized --enable/--with options
  1377. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1378. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1379. --enable-shared[=PKGS] build shared libraries [default=no]
  1380. --enable-static[=PKGS] build static libraries [default=yes]
  1381. --enable-fast-install[=PKGS]
  1382. optimize for fast installation [default=yes]
  1383. --disable-dependency-tracking speeds up one-time build
  1384. --enable-dependency-tracking do not reject slow dependency extractors
  1385. --disable-libtool-lock avoid locking (might break parallel builds)
  1386. --enable-for-package enable if building for a package
  1387. Optional Packages:
  1388. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1389. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1390. --with-pic try to use only PIC/non-PIC objects [default=use
  1391. both]
  1392. --with-gnu-ld assume the C compiler uses GNU ld [default=no]
  1393. Some influential environment variables:
  1394. CC C compiler command
  1395. CFLAGS C compiler flags
  1396. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1397. nonstandard directory <lib dir>
  1398. LIBS libraries to pass to the linker, e.g. -l<library>
  1399. CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
  1400. you have headers in a nonstandard directory <include dir>
  1401. CPP C preprocessor
  1402. CXX C++ compiler command
  1403. CXXFLAGS C++ compiler flags
  1404. CXXCPP C++ preprocessor
  1405. Use these variables to override the choices made by `configure' or to help
  1406. it to find libraries and programs with nonstandard names/locations.
  1407. _ACEOF
  1408. ac_status=$?
  1409. fi
  1410. if test "$ac_init_help" = "recursive"; then
  1411. # If there are subdirs, report their specific --help.
  1412. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1413. test -d "$ac_dir" ||
  1414. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1415. continue
  1416. ac_builddir=.
  1417. case "$ac_dir" in
  1418. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1419. *)
  1420. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  1421. # A ".." for each directory in $ac_dir_suffix.
  1422. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1423. case $ac_top_builddir_sub in
  1424. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1425. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1426. esac ;;
  1427. esac
  1428. ac_abs_top_builddir=$ac_pwd
  1429. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1430. # for backward compatibility:
  1431. ac_top_builddir=$ac_top_build_prefix
  1432. case $srcdir in
  1433. .) # We are building in place.
  1434. ac_srcdir=.
  1435. ac_top_srcdir=$ac_top_builddir_sub
  1436. ac_abs_top_srcdir=$ac_pwd ;;
  1437. [\\/]* | ?:[\\/]* ) # Absolute name.
  1438. ac_srcdir=$srcdir$ac_dir_suffix;
  1439. ac_top_srcdir=$srcdir
  1440. ac_abs_top_srcdir=$srcdir ;;
  1441. *) # Relative name.
  1442. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1443. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1444. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1445. esac
  1446. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1447. cd "$ac_dir" || { ac_status=$?; continue; }
  1448. # Check for guested configure.
  1449. if test -f "$ac_srcdir/configure.gnu"; then
  1450. echo &&
  1451. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1452. elif test -f "$ac_srcdir/configure"; then
  1453. echo &&
  1454. $SHELL "$ac_srcdir/configure" --help=recursive
  1455. else
  1456. $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1457. fi || ac_status=$?
  1458. cd "$ac_pwd" || { ac_status=$?; break; }
  1459. done
  1460. fi
  1461. test -n "$ac_init_help" && exit $ac_status
  1462. if $ac_init_version; then
  1463. cat <<\_ACEOF
  1464. snf4cgp configure 0.1.4
  1465. generated by GNU Autoconf 2.63
  1466. Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
  1467. 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
  1468. This configure script is free software; the Free Software Foundation
  1469. gives unlimited permission to copy, distribute and modify it.
  1470. _ACEOF
  1471. exit
  1472. fi
  1473. cat >config.log <<_ACEOF
  1474. This file contains any messages produced by compilers while
  1475. running configure, to aid debugging if configure makes a mistake.
  1476. It was created by snf4cgp $as_me 0.1.4, which was
  1477. generated by GNU Autoconf 2.63. Invocation command line was
  1478. $ $0 $@
  1479. _ACEOF
  1480. exec 5>>config.log
  1481. {
  1482. cat <<_ASUNAME
  1483. ## --------- ##
  1484. ## Platform. ##
  1485. ## --------- ##
  1486. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  1487. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  1488. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  1489. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  1490. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  1491. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  1492. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  1493. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  1494. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  1495. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  1496. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  1497. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  1498. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  1499. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  1500. _ASUNAME
  1501. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1502. for as_dir in $PATH
  1503. do
  1504. IFS=$as_save_IFS
  1505. test -z "$as_dir" && as_dir=.
  1506. $as_echo "PATH: $as_dir"
  1507. done
  1508. IFS=$as_save_IFS
  1509. } >&5
  1510. cat >&5 <<_ACEOF
  1511. ## ----------- ##
  1512. ## Core tests. ##
  1513. ## ----------- ##
  1514. _ACEOF
  1515. # Keep a trace of the command line.
  1516. # Strip out --no-create and --no-recursion so they do not pile up.
  1517. # Strip out --silent because we don't want to record it for future runs.
  1518. # Also quote any args containing shell meta-characters.
  1519. # Make two passes to allow for proper duplicate-argument suppression.
  1520. ac_configure_args=
  1521. ac_configure_args0=
  1522. ac_configure_args1=
  1523. ac_must_keep_next=false
  1524. for ac_pass in 1 2
  1525. do
  1526. for ac_arg
  1527. do
  1528. case $ac_arg in
  1529. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  1530. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1531. | -silent | --silent | --silen | --sile | --sil)
  1532. continue ;;
  1533. *\'*)
  1534. ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  1535. esac
  1536. case $ac_pass in
  1537. 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
  1538. 2)
  1539. ac_configure_args1="$ac_configure_args1 '$ac_arg'"
  1540. if test $ac_must_keep_next = true; then
  1541. ac_must_keep_next=false # Got value, back to normal.
  1542. else
  1543. case $ac_arg in
  1544. *=* | --config-cache | -C | -disable-* | --disable-* \
  1545. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  1546. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  1547. | -with-* | --with-* | -without-* | --without-* | --x)
  1548. case "$ac_configure_args0 " in
  1549. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  1550. esac
  1551. ;;
  1552. -* ) ac_must_keep_next=true ;;
  1553. esac
  1554. fi
  1555. ac_configure_args="$ac_configure_args '$ac_arg'"
  1556. ;;
  1557. esac
  1558. done
  1559. done
  1560. $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
  1561. $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
  1562. # When interrupted or exit'd, cleanup temporary files, and complete
  1563. # config.log. We remove comments because anyway the quotes in there
  1564. # would cause problems or look ugly.
  1565. # WARNING: Use '\'' to represent an apostrophe within the trap.
  1566. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  1567. trap 'exit_status=$?
  1568. # Save into config.log some information that might help in debugging.
  1569. {
  1570. echo
  1571. cat <<\_ASBOX
  1572. ## ---------------- ##
  1573. ## Cache variables. ##
  1574. ## ---------------- ##
  1575. _ASBOX
  1576. echo
  1577. # The following way of writing the cache mishandles newlines in values,
  1578. (
  1579. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  1580. eval ac_val=\$$ac_var
  1581. case $ac_val in #(
  1582. *${as_nl}*)
  1583. case $ac_var in #(
  1584. *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
  1585. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  1586. esac
  1587. case $ac_var in #(
  1588. _ | IFS | as_nl) ;; #(
  1589. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  1590. *) $as_unset $ac_var ;;
  1591. esac ;;
  1592. esac
  1593. done
  1594. (set) 2>&1 |
  1595. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  1596. *${as_nl}ac_space=\ *)
  1597. sed -n \
  1598. "s/'\''/'\''\\\\'\'''\''/g;
  1599. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  1600. ;; #(
  1601. *)
  1602. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  1603. ;;
  1604. esac |
  1605. sort
  1606. )
  1607. echo
  1608. cat <<\_ASBOX
  1609. ## ----------------- ##
  1610. ## Output variables. ##
  1611. ## ----------------- ##
  1612. _ASBOX
  1613. echo
  1614. for ac_var in $ac_subst_vars
  1615. do
  1616. eval ac_val=\$$ac_var
  1617. case $ac_val in
  1618. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1619. esac
  1620. $as_echo "$ac_var='\''$ac_val'\''"
  1621. done | sort
  1622. echo
  1623. if test -n "$ac_subst_files"; then
  1624. cat <<\_ASBOX
  1625. ## ------------------- ##
  1626. ## File substitutions. ##
  1627. ## ------------------- ##
  1628. _ASBOX
  1629. echo
  1630. for ac_var in $ac_subst_files
  1631. do
  1632. eval ac_val=\$$ac_var
  1633. case $ac_val in
  1634. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1635. esac
  1636. $as_echo "$ac_var='\''$ac_val'\''"
  1637. done | sort
  1638. echo
  1639. fi
  1640. if test -s confdefs.h; then
  1641. cat <<\_ASBOX
  1642. ## ----------- ##
  1643. ## confdefs.h. ##
  1644. ## ----------- ##
  1645. _ASBOX
  1646. echo
  1647. cat confdefs.h
  1648. echo
  1649. fi
  1650. test "$ac_signal" != 0 &&
  1651. $as_echo "$as_me: caught signal $ac_signal"
  1652. $as_echo "$as_me: exit $exit_status"
  1653. } >&5
  1654. rm -f core *.core core.conftest.* &&
  1655. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  1656. exit $exit_status
  1657. ' 0
  1658. for ac_signal in 1 2 13 15; do
  1659. trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
  1660. done
  1661. ac_signal=0
  1662. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  1663. rm -f -r conftest* confdefs.h
  1664. # Predefined preprocessor variables.
  1665. cat >>confdefs.h <<_ACEOF
  1666. #define PACKAGE_NAME "$PACKAGE_NAME"
  1667. _ACEOF
  1668. cat >>confdefs.h <<_ACEOF
  1669. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  1670. _ACEOF
  1671. cat >>confdefs.h <<_ACEOF
  1672. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  1673. _ACEOF
  1674. cat >>confdefs.h <<_ACEOF
  1675. #define PACKAGE_STRING "$PACKAGE_STRING"
  1676. _ACEOF
  1677. cat >>confdefs.h <<_ACEOF
  1678. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  1679. _ACEOF
  1680. # Let the site file select an alternate cache file if it wants to.
  1681. # Prefer an explicitly selected file to automatically selected ones.
  1682. ac_site_file1=NONE
  1683. ac_site_file2=NONE
  1684. if test -n "$CONFIG_SITE"; then
  1685. ac_site_file1=$CONFIG_SITE
  1686. elif test "x$prefix" != xNONE; then
  1687. ac_site_file1=$prefix/share/config.site
  1688. ac_site_file2=$prefix/etc/config.site
  1689. else
  1690. ac_site_file1=$ac_default_prefix/share/config.site
  1691. ac_site_file2=$ac_default_prefix/etc/config.site
  1692. fi
  1693. for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  1694. do
  1695. test "x$ac_site_file" = xNONE && continue
  1696. if test -r "$ac_site_file"; then
  1697. { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
  1698. $as_echo "$as_me: loading site script $ac_site_file" >&6;}
  1699. sed 's/^/| /' "$ac_site_file" >&5
  1700. . "$ac_site_file"
  1701. fi
  1702. done
  1703. if test -r "$cache_file"; then
  1704. # Some versions of bash will fail to source /dev/null (special
  1705. # files actually), so we avoid doing that.
  1706. if test -f "$cache_file"; then
  1707. { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
  1708. $as_echo "$as_me: loading cache $cache_file" >&6;}
  1709. case $cache_file in
  1710. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  1711. *) . "./$cache_file";;
  1712. esac
  1713. fi
  1714. else
  1715. { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
  1716. $as_echo "$as_me: creating cache $cache_file" >&6;}
  1717. >$cache_file
  1718. fi
  1719. # Check that the precious variables saved in the cache have kept the same
  1720. # value.
  1721. ac_cache_corrupted=false
  1722. for ac_var in $ac_precious_vars; do
  1723. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  1724. eval ac_new_set=\$ac_env_${ac_var}_set
  1725. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  1726. eval ac_new_val=\$ac_env_${ac_var}_value
  1727. case $ac_old_set,$ac_new_set in
  1728. set,)
  1729. { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  1730. $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  1731. ac_cache_corrupted=: ;;
  1732. ,set)
  1733. { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
  1734. $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  1735. ac_cache_corrupted=: ;;
  1736. ,);;
  1737. *)
  1738. if test "x$ac_old_val" != "x$ac_new_val"; then
  1739. # differences in whitespace do not lead to failure.
  1740. ac_old_val_w=`echo x $ac_old_val`
  1741. ac_new_val_w=`echo x $ac_new_val`
  1742. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  1743. { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
  1744. $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  1745. ac_cache_corrupted=:
  1746. else
  1747. { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  1748. $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  1749. eval $ac_var=\$ac_old_val
  1750. fi
  1751. { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
  1752. $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
  1753. { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
  1754. $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
  1755. fi;;
  1756. esac
  1757. # Pass precious variables to config.status.
  1758. if test "$ac_new_set" = set; then
  1759. case $ac_new_val in
  1760. *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  1761. *) ac_arg=$ac_var=$ac_new_val ;;
  1762. esac
  1763. case " $ac_configure_args " in
  1764. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  1765. *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
  1766. esac
  1767. fi
  1768. done
  1769. if $ac_cache_corrupted; then
  1770. { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  1771. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  1772. { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
  1773. $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  1774. { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
  1775. $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
  1776. { (exit 1); exit 1; }; }
  1777. fi
  1778. ac_ext=c
  1779. ac_cpp='$CPP $CPPFLAGS'
  1780. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  1781. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  1782. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  1783. ac_aux_dir=
  1784. for ac_dir in config "$srcdir"/config; do
  1785. if test -f "$ac_dir/install-sh"; then
  1786. ac_aux_dir=$ac_dir
  1787. ac_install_sh="$ac_aux_dir/install-sh -c"
  1788. break
  1789. elif test -f "$ac_dir/install.sh"; then
  1790. ac_aux_dir=$ac_dir
  1791. ac_install_sh="$ac_aux_dir/install.sh -c"
  1792. break
  1793. elif test -f "$ac_dir/shtool"; then
  1794. ac_aux_dir=$ac_dir
  1795. ac_install_sh="$ac_aux_dir/shtool install -c"
  1796. break
  1797. fi
  1798. done
  1799. if test -z "$ac_aux_dir"; then
  1800. { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&5
  1801. $as_echo "$as_me: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&2;}
  1802. { (exit 1); exit 1; }; }
  1803. fi
  1804. # These three variables are undocumented and unsupported,
  1805. # and are intended to be withdrawn in a future Autoconf release.
  1806. # They can cause serious problems if a builder's source tree is in a directory
  1807. # whose full name contains unusual characters.
  1808. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  1809. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  1810. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  1811. am__api_version='1.10'
  1812. # Find a good install program. We prefer a C program (faster),
  1813. # so one script is as good as another. But avoid the broken or
  1814. # incompatible versions:
  1815. # SysV /etc/install, /usr/sbin/install
  1816. # SunOS /usr/etc/install
  1817. # IRIX /sbin/install
  1818. # AIX /bin/install
  1819. # AmigaOS /C/install, which installs bootblocks on floppy discs
  1820. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  1821. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  1822. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  1823. # OS/2's system install, which has a completely different semantic
  1824. # ./install, which can be erroneously created by make from ./install.sh.
  1825. # Reject install programs that cannot install multiple files.
  1826. { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
  1827. $as_echo_n "checking for a BSD-compatible install... " >&6; }
  1828. if test -z "$INSTALL"; then
  1829. if test "${ac_cv_path_install+set}" = set; then
  1830. $as_echo_n "(cached) " >&6
  1831. else
  1832. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1833. for as_dir in $PATH
  1834. do
  1835. IFS=$as_save_IFS
  1836. test -z "$as_dir" && as_dir=.
  1837. # Account for people who put trailing slashes in PATH elements.
  1838. case $as_dir/ in
  1839. ./ | .// | /cC/* | \
  1840. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  1841. ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
  1842. /usr/ucb/* ) ;;
  1843. *)
  1844. # OSF1 and SCO ODT 3.0 have their own names for install.
  1845. # Don't use installbsd from OSF since it installs stuff as root
  1846. # by default.
  1847. for ac_prog in ginstall scoinst install; do
  1848. for ac_exec_ext in '' $ac_executable_extensions; do
  1849. if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
  1850. if test $ac_prog = install &&
  1851. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  1852. # AIX install. It has an incompatible calling convention.
  1853. :
  1854. elif test $ac_prog = install &&
  1855. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  1856. # program-specific install script used by HP pwplus--don't use.
  1857. :
  1858. else
  1859. rm -rf conftest.one conftest.two conftest.dir
  1860. echo one > conftest.one
  1861. echo two > conftest.two
  1862. mkdir conftest.dir
  1863. if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
  1864. test -s conftest.one && test -s conftest.two &&
  1865. test -s conftest.dir/conftest.one &&
  1866. test -s conftest.dir/conftest.two
  1867. then
  1868. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  1869. break 3
  1870. fi
  1871. fi
  1872. fi
  1873. done
  1874. done
  1875. ;;
  1876. esac
  1877. done
  1878. IFS=$as_save_IFS
  1879. rm -rf conftest.one conftest.two conftest.dir
  1880. fi
  1881. if test "${ac_cv_path_install+set}" = set; then
  1882. INSTALL=$ac_cv_path_install
  1883. else
  1884. # As a last resort, use the slow shell script. Don't cache a
  1885. # value for INSTALL within a source directory, because that will
  1886. # break other packages using the cache if that directory is
  1887. # removed, or if the value is a relative name.
  1888. INSTALL=$ac_install_sh
  1889. fi
  1890. fi
  1891. { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
  1892. $as_echo "$INSTALL" >&6; }
  1893. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  1894. # It thinks the first close brace ends the variable substitution.
  1895. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  1896. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  1897. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  1898. { $as_echo "$as_me:$LINENO: checking whether build environment is sane" >&5
  1899. $as_echo_n "checking whether build environment is sane... " >&6; }
  1900. # Just in case
  1901. sleep 1
  1902. echo timestamp > conftest.file
  1903. # Do `set' in a subshell so we don't clobber the current shell's
  1904. # arguments. Must try -L first in case configure is actually a
  1905. # symlink; some systems play weird games with the mod time of symlinks
  1906. # (eg FreeBSD returns the mod time of the symlink's containing
  1907. # directory).
  1908. if (
  1909. set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
  1910. if test "$*" = "X"; then
  1911. # -L didn't work.
  1912. set X `ls -t $srcdir/configure conftest.file`
  1913. fi
  1914. rm -f conftest.file
  1915. if test "$*" != "X $srcdir/configure conftest.file" \
  1916. && test "$*" != "X conftest.file $srcdir/configure"; then
  1917. # If neither matched, then we have a broken ls. This can happen
  1918. # if, for instance, CONFIG_SHELL is bash and it inherits a
  1919. # broken ls alias from the environment. This has actually
  1920. # happened. Such a system could not be considered "sane".
  1921. { { $as_echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
  1922. alias in your environment" >&5
  1923. $as_echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
  1924. alias in your environment" >&2;}
  1925. { (exit 1); exit 1; }; }
  1926. fi
  1927. test "$2" = conftest.file
  1928. )
  1929. then
  1930. # Ok.
  1931. :
  1932. else
  1933. { { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files!
  1934. Check your system clock" >&5
  1935. $as_echo "$as_me: error: newly created file is older than distributed files!
  1936. Check your system clock" >&2;}
  1937. { (exit 1); exit 1; }; }
  1938. fi
  1939. { $as_echo "$as_me:$LINENO: result: yes" >&5
  1940. $as_echo "yes" >&6; }
  1941. test "$program_prefix" != NONE &&
  1942. program_transform_name="s&^&$program_prefix&;$program_transform_name"
  1943. # Use a double $ so make ignores it.
  1944. test "$program_suffix" != NONE &&
  1945. program_transform_name="s&\$&$program_suffix&;$program_transform_name"
  1946. # Double any \ or $.
  1947. # By default was `s,x,x', remove it if useless.
  1948. ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
  1949. program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
  1950. # expand $ac_aux_dir to an absolute path
  1951. am_aux_dir=`cd $ac_aux_dir && pwd`
  1952. test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
  1953. # Use eval to expand $SHELL
  1954. if eval "$MISSING --run true"; then
  1955. am_missing_run="$MISSING --run "
  1956. else
  1957. am_missing_run=
  1958. { $as_echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
  1959. $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
  1960. fi
  1961. { $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
  1962. $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
  1963. if test -z "$MKDIR_P"; then
  1964. if test "${ac_cv_path_mkdir+set}" = set; then
  1965. $as_echo_n "(cached) " >&6
  1966. else
  1967. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1968. for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
  1969. do
  1970. IFS=$as_save_IFS
  1971. test -z "$as_dir" && as_dir=.
  1972. for ac_prog in mkdir gmkdir; do
  1973. for ac_exec_ext in '' $ac_executable_extensions; do
  1974. { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
  1975. case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
  1976. 'mkdir (GNU coreutils) '* | \
  1977. 'mkdir (coreutils) '* | \
  1978. 'mkdir (fileutils) '4.1*)
  1979. ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
  1980. break 3;;
  1981. esac
  1982. done
  1983. done
  1984. done
  1985. IFS=$as_save_IFS
  1986. fi
  1987. if test "${ac_cv_path_mkdir+set}" = set; then
  1988. MKDIR_P="$ac_cv_path_mkdir -p"
  1989. else
  1990. # As a last resort, use the slow shell script. Don't cache a
  1991. # value for MKDIR_P within a source directory, because that will
  1992. # break other packages using the cache if that directory is
  1993. # removed, or if the value is a relative name.
  1994. test -d ./--version && rmdir ./--version
  1995. MKDIR_P="$ac_install_sh -d"
  1996. fi
  1997. fi
  1998. { $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
  1999. $as_echo "$MKDIR_P" >&6; }
  2000. mkdir_p="$MKDIR_P"
  2001. case $mkdir_p in
  2002. [\\/$]* | ?:[\\/]*) ;;
  2003. */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
  2004. esac
  2005. for ac_prog in gawk mawk nawk awk
  2006. do
  2007. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2008. set dummy $ac_prog; ac_word=$2
  2009. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  2010. $as_echo_n "checking for $ac_word... " >&6; }
  2011. if test "${ac_cv_prog_AWK+set}" = set; then
  2012. $as_echo_n "(cached) " >&6
  2013. else
  2014. if test -n "$AWK"; then
  2015. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  2016. else
  2017. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2018. for as_dir in $PATH
  2019. do
  2020. IFS=$as_save_IFS
  2021. test -z "$as_dir" && as_dir=.
  2022. for ac_exec_ext in '' $ac_executable_extensions; do
  2023. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2024. ac_cv_prog_AWK="$ac_prog"
  2025. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2026. break 2
  2027. fi
  2028. done
  2029. done
  2030. IFS=$as_save_IFS
  2031. fi
  2032. fi
  2033. AWK=$ac_cv_prog_AWK
  2034. if test -n "$AWK"; then
  2035. { $as_echo "$as_me:$LINENO: result: $AWK" >&5
  2036. $as_echo "$AWK" >&6; }
  2037. else
  2038. { $as_echo "$as_me:$LINENO: result: no" >&5
  2039. $as_echo "no" >&6; }
  2040. fi
  2041. test -n "$AWK" && break
  2042. done
  2043. { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  2044. $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  2045. set x ${MAKE-make}
  2046. ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  2047. if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
  2048. $as_echo_n "(cached) " >&6
  2049. else
  2050. cat >conftest.make <<\_ACEOF
  2051. SHELL = /bin/sh
  2052. all:
  2053. @echo '@@@%%%=$(MAKE)=@@@%%%'
  2054. _ACEOF
  2055. # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
  2056. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  2057. *@@@%%%=?*=@@@%%%*)
  2058. eval ac_cv_prog_make_${ac_make}_set=yes;;
  2059. *)
  2060. eval ac_cv_prog_make_${ac_make}_set=no;;
  2061. esac
  2062. rm -f conftest.make
  2063. fi
  2064. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  2065. { $as_echo "$as_me:$LINENO: result: yes" >&5
  2066. $as_echo "yes" >&6; }
  2067. SET_MAKE=
  2068. else
  2069. { $as_echo "$as_me:$LINENO: result: no" >&5
  2070. $as_echo "no" >&6; }
  2071. SET_MAKE="MAKE=${MAKE-make}"
  2072. fi
  2073. rm -rf .tst 2>/dev/null
  2074. mkdir .tst 2>/dev/null
  2075. if test -d .tst; then
  2076. am__leading_dot=.
  2077. else
  2078. am__leading_dot=_
  2079. fi
  2080. rmdir .tst 2>/dev/null
  2081. if test "`cd $srcdir && pwd`" != "`pwd`"; then
  2082. # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
  2083. # is not polluted with repeated "-I."
  2084. am__isrc=' -I$(srcdir)'
  2085. # test to see if srcdir already configured
  2086. if test -f $srcdir/config.status; then
  2087. { { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
  2088. $as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
  2089. { (exit 1); exit 1; }; }
  2090. fi
  2091. fi
  2092. # test whether we have cygpath
  2093. if test -z "$CYGPATH_W"; then
  2094. if (cygpath --version) >/dev/null 2>/dev/null; then
  2095. CYGPATH_W='cygpath -w'
  2096. else
  2097. CYGPATH_W=echo
  2098. fi
  2099. fi
  2100. # Define the identity of the package.
  2101. PACKAGE=snf4cgp
  2102. VERSION=0.1.4
  2103. cat >>confdefs.h <<_ACEOF
  2104. #define PACKAGE "$PACKAGE"
  2105. _ACEOF
  2106. cat >>confdefs.h <<_ACEOF
  2107. #define VERSION "$VERSION"
  2108. _ACEOF
  2109. # Some tools Automake needs.
  2110. ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
  2111. AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
  2112. AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
  2113. AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
  2114. MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
  2115. install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
  2116. # Installed binaries are usually stripped using `strip' when the user
  2117. # run `make install-strip'. However `strip' might not be the right
  2118. # tool to use in cross-compilation environments, therefore Automake
  2119. # will honor the `STRIP' environment variable to overrule this program.
  2120. if test "$cross_compiling" != no; then
  2121. if test -n "$ac_tool_prefix"; then
  2122. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  2123. set dummy ${ac_tool_prefix}strip; ac_word=$2
  2124. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  2125. $as_echo_n "checking for $ac_word... " >&6; }
  2126. if test "${ac_cv_prog_STRIP+set}" = set; then
  2127. $as_echo_n "(cached) " >&6
  2128. else
  2129. if test -n "$STRIP"; then
  2130. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  2131. else
  2132. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2133. for as_dir in $PATH
  2134. do
  2135. IFS=$as_save_IFS
  2136. test -z "$as_dir" && as_dir=.
  2137. for ac_exec_ext in '' $ac_executable_extensions; do
  2138. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2139. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  2140. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2141. break 2
  2142. fi
  2143. done
  2144. done
  2145. IFS=$as_save_IFS
  2146. fi
  2147. fi
  2148. STRIP=$ac_cv_prog_STRIP
  2149. if test -n "$STRIP"; then
  2150. { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
  2151. $as_echo "$STRIP" >&6; }
  2152. else
  2153. { $as_echo "$as_me:$LINENO: result: no" >&5
  2154. $as_echo "no" >&6; }
  2155. fi
  2156. fi
  2157. if test -z "$ac_cv_prog_STRIP"; then
  2158. ac_ct_STRIP=$STRIP
  2159. # Extract the first word of "strip", so it can be a program name with args.
  2160. set dummy strip; ac_word=$2
  2161. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  2162. $as_echo_n "checking for $ac_word... " >&6; }
  2163. if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
  2164. $as_echo_n "(cached) " >&6
  2165. else
  2166. if test -n "$ac_ct_STRIP"; then
  2167. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  2168. else
  2169. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2170. for as_dir in $PATH
  2171. do
  2172. IFS=$as_save_IFS
  2173. test -z "$as_dir" && as_dir=.
  2174. for ac_exec_ext in '' $ac_executable_extensions; do
  2175. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2176. ac_cv_prog_ac_ct_STRIP="strip"
  2177. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2178. break 2
  2179. fi
  2180. done
  2181. done
  2182. IFS=$as_save_IFS
  2183. fi
  2184. fi
  2185. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  2186. if test -n "$ac_ct_STRIP"; then
  2187. { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
  2188. $as_echo "$ac_ct_STRIP" >&6; }
  2189. else
  2190. { $as_echo "$as_me:$LINENO: result: no" >&5
  2191. $as_echo "no" >&6; }
  2192. fi
  2193. if test "x$ac_ct_STRIP" = x; then
  2194. STRIP=":"
  2195. else
  2196. case $cross_compiling:$ac_tool_warned in
  2197. yes:)
  2198. { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  2199. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2200. ac_tool_warned=yes ;;
  2201. esac
  2202. STRIP=$ac_ct_STRIP
  2203. fi
  2204. else
  2205. STRIP="$ac_cv_prog_STRIP"
  2206. fi
  2207. fi
  2208. INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
  2209. # We need awk for the "check" target. The system "awk" is bad on
  2210. # some platforms.
  2211. # Always define AMTAR for backward compatibility.
  2212. AMTAR=${AMTAR-"${am_missing_run}tar"}
  2213. am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
  2214. ac_config_headers="$ac_config_headers config.h"
  2215. ac_ext=cpp
  2216. ac_cpp='$CXXCPP $CPPFLAGS'
  2217. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2218. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2219. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  2220. # Check whether --enable-shared was given.
  2221. if test "${enable_shared+set}" = set; then
  2222. enableval=$enable_shared; p=${PACKAGE-default}
  2223. case $enableval in
  2224. yes) enable_shared=yes ;;
  2225. no) enable_shared=no ;;
  2226. *)
  2227. enable_shared=no
  2228. # Look at the argument we got. We use all the common list separators.
  2229. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  2230. for pkg in $enableval; do
  2231. IFS="$lt_save_ifs"
  2232. if test "X$pkg" = "X$p"; then
  2233. enable_shared=yes
  2234. fi
  2235. done
  2236. IFS="$lt_save_ifs"
  2237. ;;
  2238. esac
  2239. else
  2240. enable_shared=no
  2241. fi
  2242. case `pwd` in
  2243. *\ * | *\ *)
  2244. { $as_echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
  2245. $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
  2246. esac
  2247. macro_version='2.2.6'
  2248. macro_revision='1.3012'
  2249. ltmain="$ac_aux_dir/ltmain.sh"
  2250. # Make sure we can run config.sub.
  2251. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  2252. { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
  2253. $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
  2254. { (exit 1); exit 1; }; }
  2255. { $as_echo "$as_me:$LINENO: checking build system type" >&5
  2256. $as_echo_n "checking build system type... " >&6; }
  2257. if test "${ac_cv_build+set}" = set; then
  2258. $as_echo_n "(cached) " >&6
  2259. else
  2260. ac_build_alias=$build_alias
  2261. test "x$ac_build_alias" = x &&
  2262. ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  2263. test "x$ac_build_alias" = x &&
  2264. { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
  2265. $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
  2266. { (exit 1); exit 1; }; }
  2267. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  2268. { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
  2269. $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
  2270. { (exit 1); exit 1; }; }
  2271. fi
  2272. { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
  2273. $as_echo "$ac_cv_build" >&6; }
  2274. case $ac_cv_build in
  2275. *-*-*) ;;
  2276. *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
  2277. $as_echo "$as_me: error: invalid value of canonical build" >&2;}
  2278. { (exit 1); exit 1; }; };;
  2279. esac
  2280. build=$ac_cv_build
  2281. ac_save_IFS=$IFS; IFS='-'
  2282. set x $ac_cv_build
  2283. shift
  2284. build_cpu=$1
  2285. build_vendor=$2
  2286. shift; shift
  2287. # Remember, the first character of IFS is used to create $*,
  2288. # except with old shells:
  2289. build_os=$*
  2290. IFS=$ac_save_IFS
  2291. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  2292. { $as_echo "$as_me:$LINENO: checking host system type" >&5
  2293. $as_echo_n "checking host system type... " >&6; }
  2294. if test "${ac_cv_host+set}" = set; then
  2295. $as_echo_n "(cached) " >&6
  2296. else
  2297. if test "x$host_alias" = x; then
  2298. ac_cv_host=$ac_cv_build
  2299. else
  2300. ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  2301. { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
  2302. $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
  2303. { (exit 1); exit 1; }; }
  2304. fi
  2305. fi
  2306. { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
  2307. $as_echo "$ac_cv_host" >&6; }
  2308. case $ac_cv_host in
  2309. *-*-*) ;;
  2310. *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
  2311. $as_echo "$as_me: error: invalid value of canonical host" >&2;}
  2312. { (exit 1); exit 1; }; };;
  2313. esac
  2314. host=$ac_cv_host
  2315. ac_save_IFS=$IFS; IFS='-'
  2316. set x $ac_cv_host
  2317. shift
  2318. host_cpu=$1
  2319. host_vendor=$2
  2320. shift; shift
  2321. # Remember, the first character of IFS is used to create $*,
  2322. # except with old shells:
  2323. host_os=$*
  2324. IFS=$ac_save_IFS
  2325. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  2326. DEPDIR="${am__leading_dot}deps"
  2327. ac_config_commands="$ac_config_commands depfiles"
  2328. am_make=${MAKE-make}
  2329. cat > confinc << 'END'
  2330. am__doit:
  2331. @echo done
  2332. .PHONY: am__doit
  2333. END
  2334. # If we don't find an include directive, just comment out the code.
  2335. { $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
  2336. $as_echo_n "checking for style of include used by $am_make... " >&6; }
  2337. am__include="#"
  2338. am__quote=
  2339. _am_result=none
  2340. # First try GNU make style include.
  2341. echo "include confinc" > confmf
  2342. # We grep out `Entering directory' and `Leaving directory'
  2343. # messages which can occur if `w' ends up in MAKEFLAGS.
  2344. # In particular we don't look at `^make:' because GNU make might
  2345. # be invoked under some other name (usually "gmake"), in which
  2346. # case it prints its new name instead of `make'.
  2347. if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
  2348. am__include=include
  2349. am__quote=
  2350. _am_result=GNU
  2351. fi
  2352. # Now try BSD make style include.
  2353. if test "$am__include" = "#"; then
  2354. echo '.include "confinc"' > confmf
  2355. if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
  2356. am__include=.include
  2357. am__quote="\""
  2358. _am_result=BSD
  2359. fi
  2360. fi
  2361. { $as_echo "$as_me:$LINENO: result: $_am_result" >&5
  2362. $as_echo "$_am_result" >&6; }
  2363. rm -f confinc confmf
  2364. # Check whether --enable-dependency-tracking was given.
  2365. if test "${enable_dependency_tracking+set}" = set; then
  2366. enableval=$enable_dependency_tracking;
  2367. fi
  2368. if test "x$enable_dependency_tracking" != xno; then
  2369. am_depcomp="$ac_aux_dir/depcomp"
  2370. AMDEPBACKSLASH='\'
  2371. fi
  2372. if test "x$enable_dependency_tracking" != xno; then
  2373. AMDEP_TRUE=
  2374. AMDEP_FALSE='#'
  2375. else
  2376. AMDEP_TRUE='#'
  2377. AMDEP_FALSE=
  2378. fi
  2379. ac_ext=c
  2380. ac_cpp='$CPP $CPPFLAGS'
  2381. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2382. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2383. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2384. if test -n "$ac_tool_prefix"; then
  2385. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  2386. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  2387. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  2388. $as_echo_n "checking for $ac_word... " >&6; }
  2389. if test "${ac_cv_prog_CC+set}" = set; then
  2390. $as_echo_n "(cached) " >&6
  2391. else
  2392. if test -n "$CC"; then
  2393. ac_cv_prog_CC="$CC" # Let the user override the test.
  2394. else
  2395. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2396. for as_dir in $PATH
  2397. do
  2398. IFS=$as_save_IFS
  2399. test -z "$as_dir" && as_dir=.
  2400. for ac_exec_ext in '' $ac_executable_extensions; do
  2401. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2402. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  2403. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2404. break 2
  2405. fi
  2406. done
  2407. done
  2408. IFS=$as_save_IFS
  2409. fi
  2410. fi
  2411. CC=$ac_cv_prog_CC
  2412. if test -n "$CC"; then
  2413. { $as_echo "$as_me:$LINENO: result: $CC" >&5
  2414. $as_echo "$CC" >&6; }
  2415. else
  2416. { $as_echo "$as_me:$LINENO: result: no" >&5
  2417. $as_echo "no" >&6; }
  2418. fi
  2419. fi
  2420. if test -z "$ac_cv_prog_CC"; then
  2421. ac_ct_CC=$CC
  2422. # Extract the first word of "gcc", so it can be a program name with args.
  2423. set dummy gcc; ac_word=$2
  2424. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  2425. $as_echo_n "checking for $ac_word... " >&6; }
  2426. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  2427. $as_echo_n "(cached) " >&6
  2428. else
  2429. if test -n "$ac_ct_CC"; then
  2430. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2431. else
  2432. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2433. for as_dir in $PATH
  2434. do
  2435. IFS=$as_save_IFS
  2436. test -z "$as_dir" && as_dir=.
  2437. for ac_exec_ext in '' $ac_executable_extensions; do
  2438. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2439. ac_cv_prog_ac_ct_CC="gcc"
  2440. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2441. break 2
  2442. fi
  2443. done
  2444. done
  2445. IFS=$as_save_IFS
  2446. fi
  2447. fi
  2448. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2449. if test -n "$ac_ct_CC"; then
  2450. { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  2451. $as_echo "$ac_ct_CC" >&6; }
  2452. else
  2453. { $as_echo "$as_me:$LINENO: result: no" >&5
  2454. $as_echo "no" >&6; }
  2455. fi
  2456. if test "x$ac_ct_CC" = x; then
  2457. CC=""
  2458. else
  2459. case $cross_compiling:$ac_tool_warned in
  2460. yes:)
  2461. { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  2462. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2463. ac_tool_warned=yes ;;
  2464. esac
  2465. CC=$ac_ct_CC
  2466. fi
  2467. else
  2468. CC="$ac_cv_prog_CC"
  2469. fi
  2470. if test -z "$CC"; then
  2471. if test -n "$ac_tool_prefix"; then
  2472. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  2473. set dummy ${ac_tool_prefix}cc; ac_word=$2
  2474. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  2475. $as_echo_n "checking for $ac_word... " >&6; }
  2476. if test "${ac_cv_prog_CC+set}" = set; then
  2477. $as_echo_n "(cached) " >&6
  2478. else
  2479. if test -n "$CC"; then
  2480. ac_cv_prog_CC="$CC" # Let the user override the test.
  2481. else
  2482. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2483. for as_dir in $PATH
  2484. do
  2485. IFS=$as_save_IFS
  2486. test -z "$as_dir" && as_dir=.
  2487. for ac_exec_ext in '' $ac_executable_extensions; do
  2488. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2489. ac_cv_prog_CC="${ac_tool_prefix}cc"
  2490. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2491. break 2
  2492. fi
  2493. done
  2494. done
  2495. IFS=$as_save_IFS
  2496. fi
  2497. fi
  2498. CC=$ac_cv_prog_CC
  2499. if test -n "$CC"; then
  2500. { $as_echo "$as_me:$LINENO: result: $CC" >&5
  2501. $as_echo "$CC" >&6; }
  2502. else
  2503. { $as_echo "$as_me:$LINENO: result: no" >&5
  2504. $as_echo "no" >&6; }
  2505. fi
  2506. fi
  2507. fi
  2508. if test -z "$CC"; then
  2509. # Extract the first word of "cc", so it can be a program name with args.
  2510. set dummy cc; ac_word=$2
  2511. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  2512. $as_echo_n "checking for $ac_word... " >&6; }
  2513. if test "${ac_cv_prog_CC+set}" = set; then
  2514. $as_echo_n "(cached) " >&6
  2515. else
  2516. if test -n "$CC"; then
  2517. ac_cv_prog_CC="$CC" # Let the user override the test.
  2518. else
  2519. ac_prog_rejected=no
  2520. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2521. for as_dir in $PATH
  2522. do
  2523. IFS=$as_save_IFS
  2524. test -z "$as_dir" && as_dir=.
  2525. for ac_exec_ext in '' $ac_executable_extensions; do
  2526. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2527. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  2528. ac_prog_rejected=yes
  2529. continue
  2530. fi
  2531. ac_cv_prog_CC="cc"
  2532. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2533. break 2
  2534. fi
  2535. done
  2536. done
  2537. IFS=$as_save_IFS
  2538. if test $ac_prog_rejected = yes; then
  2539. # We found a bogon in the path, so make sure we never use it.
  2540. set dummy $ac_cv_prog_CC
  2541. shift
  2542. if test $# != 0; then
  2543. # We chose a different compiler from the bogus one.
  2544. # However, it has the same basename, so the bogon will be chosen
  2545. # first if we set CC to just the basename; use the full file name.
  2546. shift
  2547. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  2548. fi
  2549. fi
  2550. fi
  2551. fi
  2552. CC=$ac_cv_prog_CC
  2553. if test -n "$CC"; then
  2554. { $as_echo "$as_me:$LINENO: result: $CC" >&5
  2555. $as_echo "$CC" >&6; }
  2556. else
  2557. { $as_echo "$as_me:$LINENO: result: no" >&5
  2558. $as_echo "no" >&6; }
  2559. fi
  2560. fi
  2561. if test -z "$CC"; then
  2562. if test -n "$ac_tool_prefix"; then
  2563. for ac_prog in cl.exe
  2564. do
  2565. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  2566. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  2567. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  2568. $as_echo_n "checking for $ac_word... " >&6; }
  2569. if test "${ac_cv_prog_CC+set}" = set; then
  2570. $as_echo_n "(cached) " >&6
  2571. else
  2572. if test -n "$CC"; then
  2573. ac_cv_prog_CC="$CC" # Let the user override the test.
  2574. else
  2575. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2576. for as_dir in $PATH
  2577. do
  2578. IFS=$as_save_IFS
  2579. test -z "$as_dir" && as_dir=.
  2580. for ac_exec_ext in '' $ac_executable_extensions; do
  2581. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2582. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  2583. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2584. break 2
  2585. fi
  2586. done
  2587. done
  2588. IFS=$as_save_IFS
  2589. fi
  2590. fi
  2591. CC=$ac_cv_prog_CC
  2592. if test -n "$CC"; then
  2593. { $as_echo "$as_me:$LINENO: result: $CC" >&5
  2594. $as_echo "$CC" >&6; }
  2595. else
  2596. { $as_echo "$as_me:$LINENO: result: no" >&5
  2597. $as_echo "no" >&6; }
  2598. fi
  2599. test -n "$CC" && break
  2600. done
  2601. fi
  2602. if test -z "$CC"; then
  2603. ac_ct_CC=$CC
  2604. for ac_prog in cl.exe
  2605. do
  2606. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2607. set dummy $ac_prog; ac_word=$2
  2608. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  2609. $as_echo_n "checking for $ac_word... " >&6; }
  2610. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  2611. $as_echo_n "(cached) " >&6
  2612. else
  2613. if test -n "$ac_ct_CC"; then
  2614. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2615. else
  2616. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2617. for as_dir in $PATH
  2618. do
  2619. IFS=$as_save_IFS
  2620. test -z "$as_dir" && as_dir=.
  2621. for ac_exec_ext in '' $ac_executable_extensions; do
  2622. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2623. ac_cv_prog_ac_ct_CC="$ac_prog"
  2624. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2625. break 2
  2626. fi
  2627. done
  2628. done
  2629. IFS=$as_save_IFS
  2630. fi
  2631. fi
  2632. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2633. if test -n "$ac_ct_CC"; then
  2634. { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  2635. $as_echo "$ac_ct_CC" >&6; }
  2636. else
  2637. { $as_echo "$as_me:$LINENO: result: no" >&5
  2638. $as_echo "no" >&6; }
  2639. fi
  2640. test -n "$ac_ct_CC" && break
  2641. done
  2642. if test "x$ac_ct_CC" = x; then
  2643. CC=""
  2644. else
  2645. case $cross_compiling:$ac_tool_warned in
  2646. yes:)
  2647. { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  2648. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2649. ac_tool_warned=yes ;;
  2650. esac
  2651. CC=$ac_ct_CC
  2652. fi
  2653. fi
  2654. fi
  2655. test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  2656. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2657. { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
  2658. See \`config.log' for more details." >&5
  2659. $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
  2660. See \`config.log' for more details." >&2;}
  2661. { (exit 1); exit 1; }; }; }
  2662. # Provide some information about the compiler.
  2663. $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
  2664. set X $ac_compile
  2665. ac_compiler=$2
  2666. { (ac_try="$ac_compiler --version >&5"
  2667. case "(($ac_try" in
  2668. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2669. *) ac_try_echo=$ac_try;;
  2670. esac
  2671. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  2672. $as_echo "$ac_try_echo") >&5
  2673. (eval "$ac_compiler --version >&5") 2>&5
  2674. ac_status=$?
  2675. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2676. (exit $ac_status); }
  2677. { (ac_try="$ac_compiler -v >&5"
  2678. case "(($ac_try" in
  2679. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2680. *) ac_try_echo=$ac_try;;
  2681. esac
  2682. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  2683. $as_echo "$ac_try_echo") >&5
  2684. (eval "$ac_compiler -v >&5") 2>&5
  2685. ac_status=$?
  2686. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2687. (exit $ac_status); }
  2688. { (ac_try="$ac_compiler -V >&5"
  2689. case "(($ac_try" in
  2690. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2691. *) ac_try_echo=$ac_try;;
  2692. esac
  2693. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  2694. $as_echo "$ac_try_echo") >&5
  2695. (eval "$ac_compiler -V >&5") 2>&5
  2696. ac_status=$?
  2697. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2698. (exit $ac_status); }
  2699. cat >conftest.$ac_ext <<_ACEOF
  2700. /* confdefs.h. */
  2701. _ACEOF
  2702. cat confdefs.h >>conftest.$ac_ext
  2703. cat >>conftest.$ac_ext <<_ACEOF
  2704. /* end confdefs.h. */
  2705. int
  2706. main ()
  2707. {
  2708. ;
  2709. return 0;
  2710. }
  2711. _ACEOF
  2712. ac_clean_files_save=$ac_clean_files
  2713. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  2714. # Try to create an executable without -o first, disregard a.out.
  2715. # It will help us diagnose broken compilers, and finding out an intuition
  2716. # of exeext.
  2717. { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
  2718. $as_echo_n "checking for C compiler default output file name... " >&6; }
  2719. ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  2720. # The possible output files:
  2721. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  2722. ac_rmfiles=
  2723. for ac_file in $ac_files
  2724. do
  2725. case $ac_file in
  2726. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  2727. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  2728. esac
  2729. done
  2730. rm -f $ac_rmfiles
  2731. if { (ac_try="$ac_link_default"
  2732. case "(($ac_try" in
  2733. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2734. *) ac_try_echo=$ac_try;;
  2735. esac
  2736. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  2737. $as_echo "$ac_try_echo") >&5
  2738. (eval "$ac_link_default") 2>&5
  2739. ac_status=$?
  2740. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2741. (exit $ac_status); }; then
  2742. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  2743. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  2744. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  2745. # so that the user can short-circuit this test for compilers unknown to
  2746. # Autoconf.
  2747. for ac_file in $ac_files ''
  2748. do
  2749. test -f "$ac_file" || continue
  2750. case $ac_file in
  2751. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  2752. ;;
  2753. [ab].out )
  2754. # We found the default executable, but exeext='' is most
  2755. # certainly right.
  2756. break;;
  2757. *.* )
  2758. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  2759. then :; else
  2760. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2761. fi
  2762. # We set ac_cv_exeext here because the later test for it is not
  2763. # safe: cross compilers may not add the suffix if given an `-o'
  2764. # argument, so we may need to know it at that point already.
  2765. # Even if this section looks crufty: it has the advantage of
  2766. # actually working.
  2767. break;;
  2768. * )
  2769. break;;
  2770. esac
  2771. done
  2772. test "$ac_cv_exeext" = no && ac_cv_exeext=
  2773. else
  2774. ac_file=''
  2775. fi
  2776. { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
  2777. $as_echo "$ac_file" >&6; }
  2778. if test -z "$ac_file"; then
  2779. $as_echo "$as_me: failed program was:" >&5
  2780. sed 's/^/| /' conftest.$ac_ext >&5
  2781. { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  2782. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2783. { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
  2784. See \`config.log' for more details." >&5
  2785. $as_echo "$as_me: error: C compiler cannot create executables
  2786. See \`config.log' for more details." >&2;}
  2787. { (exit 77); exit 77; }; }; }
  2788. fi
  2789. ac_exeext=$ac_cv_exeext
  2790. # Check that the compiler produces executables we can run. If not, either
  2791. # the compiler is broken, or we cross compile.
  2792. { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
  2793. $as_echo_n "checking whether the C compiler works... " >&6; }
  2794. # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
  2795. # If not cross compiling, check that we can run a simple program.
  2796. if test "$cross_compiling" != yes; then
  2797. if { ac_try='./$ac_file'
  2798. { (case "(($ac_try" in
  2799. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2800. *) ac_try_echo=$ac_try;;
  2801. esac
  2802. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  2803. $as_echo "$ac_try_echo") >&5
  2804. (eval "$ac_try") 2>&5
  2805. ac_status=$?
  2806. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2807. (exit $ac_status); }; }; then
  2808. cross_compiling=no
  2809. else
  2810. if test "$cross_compiling" = maybe; then
  2811. cross_compiling=yes
  2812. else
  2813. { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  2814. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2815. { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
  2816. If you meant to cross compile, use \`--host'.
  2817. See \`config.log' for more details." >&5
  2818. $as_echo "$as_me: error: cannot run C compiled programs.
  2819. If you meant to cross compile, use \`--host'.
  2820. See \`config.log' for more details." >&2;}
  2821. { (exit 1); exit 1; }; }; }
  2822. fi
  2823. fi
  2824. fi
  2825. { $as_echo "$as_me:$LINENO: result: yes" >&5
  2826. $as_echo "yes" >&6; }
  2827. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  2828. ac_clean_files=$ac_clean_files_save
  2829. # Check that the compiler produces executables we can run. If not, either
  2830. # the compiler is broken, or we cross compile.
  2831. { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
  2832. $as_echo_n "checking whether we are cross compiling... " >&6; }
  2833. { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
  2834. $as_echo "$cross_compiling" >&6; }
  2835. { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
  2836. $as_echo_n "checking for suffix of executables... " >&6; }
  2837. if { (ac_try="$ac_link"
  2838. case "(($ac_try" in
  2839. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2840. *) ac_try_echo=$ac_try;;
  2841. esac
  2842. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  2843. $as_echo "$ac_try_echo") >&5
  2844. (eval "$ac_link") 2>&5
  2845. ac_status=$?
  2846. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2847. (exit $ac_status); }; then
  2848. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  2849. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  2850. # work properly (i.e., refer to `conftest.exe'), while it won't with
  2851. # `rm'.
  2852. for ac_file in conftest.exe conftest conftest.*; do
  2853. test -f "$ac_file" || continue
  2854. case $ac_file in
  2855. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  2856. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2857. break;;
  2858. * ) break;;
  2859. esac
  2860. done
  2861. else
  2862. { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  2863. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2864. { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
  2865. See \`config.log' for more details." >&5
  2866. $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
  2867. See \`config.log' for more details." >&2;}
  2868. { (exit 1); exit 1; }; }; }
  2869. fi
  2870. rm -f conftest$ac_cv_exeext
  2871. { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
  2872. $as_echo "$ac_cv_exeext" >&6; }
  2873. rm -f conftest.$ac_ext
  2874. EXEEXT=$ac_cv_exeext
  2875. ac_exeext=$EXEEXT
  2876. { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
  2877. $as_echo_n "checking for suffix of object files... " >&6; }
  2878. if test "${ac_cv_objext+set}" = set; then
  2879. $as_echo_n "(cached) " >&6
  2880. else
  2881. cat >conftest.$ac_ext <<_ACEOF
  2882. /* confdefs.h. */
  2883. _ACEOF
  2884. cat confdefs.h >>conftest.$ac_ext
  2885. cat >>conftest.$ac_ext <<_ACEOF
  2886. /* end confdefs.h. */
  2887. int
  2888. main ()
  2889. {
  2890. ;
  2891. return 0;
  2892. }
  2893. _ACEOF
  2894. rm -f conftest.o conftest.obj
  2895. if { (ac_try="$ac_compile"
  2896. case "(($ac_try" in
  2897. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2898. *) ac_try_echo=$ac_try;;
  2899. esac
  2900. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  2901. $as_echo "$ac_try_echo") >&5
  2902. (eval "$ac_compile") 2>&5
  2903. ac_status=$?
  2904. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2905. (exit $ac_status); }; then
  2906. for ac_file in conftest.o conftest.obj conftest.*; do
  2907. test -f "$ac_file" || continue;
  2908. case $ac_file in
  2909. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  2910. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  2911. break;;
  2912. esac
  2913. done
  2914. else
  2915. $as_echo "$as_me: failed program was:" >&5
  2916. sed 's/^/| /' conftest.$ac_ext >&5
  2917. { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  2918. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2919. { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
  2920. See \`config.log' for more details." >&5
  2921. $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
  2922. See \`config.log' for more details." >&2;}
  2923. { (exit 1); exit 1; }; }; }
  2924. fi
  2925. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  2926. fi
  2927. { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
  2928. $as_echo "$ac_cv_objext" >&6; }
  2929. OBJEXT=$ac_cv_objext
  2930. ac_objext=$OBJEXT
  2931. { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
  2932. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  2933. if test "${ac_cv_c_compiler_gnu+set}" = set; then
  2934. $as_echo_n "(cached) " >&6
  2935. else
  2936. cat >conftest.$ac_ext <<_ACEOF
  2937. /* confdefs.h. */
  2938. _ACEOF
  2939. cat confdefs.h >>conftest.$ac_ext
  2940. cat >>conftest.$ac_ext <<_ACEOF
  2941. /* end confdefs.h. */
  2942. int
  2943. main ()
  2944. {
  2945. #ifndef __GNUC__
  2946. choke me
  2947. #endif
  2948. ;
  2949. return 0;
  2950. }
  2951. _ACEOF
  2952. rm -f conftest.$ac_objext
  2953. if { (ac_try="$ac_compile"
  2954. case "(($ac_try" in
  2955. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2956. *) ac_try_echo=$ac_try;;
  2957. esac
  2958. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  2959. $as_echo "$ac_try_echo") >&5
  2960. (eval "$ac_compile") 2>conftest.er1
  2961. ac_status=$?
  2962. grep -v '^ *+' conftest.er1 >conftest.err
  2963. rm -f conftest.er1
  2964. cat conftest.err >&5
  2965. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2966. (exit $ac_status); } && {
  2967. test -z "$ac_c_werror_flag" ||
  2968. test ! -s conftest.err
  2969. } && test -s conftest.$ac_objext; then
  2970. ac_compiler_gnu=yes
  2971. else
  2972. $as_echo "$as_me: failed program was:" >&5
  2973. sed 's/^/| /' conftest.$ac_ext >&5
  2974. ac_compiler_gnu=no
  2975. fi
  2976. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2977. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  2978. fi
  2979. { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
  2980. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  2981. if test $ac_compiler_gnu = yes; then
  2982. GCC=yes
  2983. else
  2984. GCC=
  2985. fi
  2986. ac_test_CFLAGS=${CFLAGS+set}
  2987. ac_save_CFLAGS=$CFLAGS
  2988. { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
  2989. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  2990. if test "${ac_cv_prog_cc_g+set}" = set; then
  2991. $as_echo_n "(cached) " >&6
  2992. else
  2993. ac_save_c_werror_flag=$ac_c_werror_flag
  2994. ac_c_werror_flag=yes
  2995. ac_cv_prog_cc_g=no
  2996. CFLAGS="-g"
  2997. cat >conftest.$ac_ext <<_ACEOF
  2998. /* confdefs.h. */
  2999. _ACEOF
  3000. cat confdefs.h >>conftest.$ac_ext
  3001. cat >>conftest.$ac_ext <<_ACEOF
  3002. /* end confdefs.h. */
  3003. int
  3004. main ()
  3005. {
  3006. ;
  3007. return 0;
  3008. }
  3009. _ACEOF
  3010. rm -f conftest.$ac_objext
  3011. if { (ac_try="$ac_compile"
  3012. case "(($ac_try" in
  3013. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3014. *) ac_try_echo=$ac_try;;
  3015. esac
  3016. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  3017. $as_echo "$ac_try_echo") >&5
  3018. (eval "$ac_compile") 2>conftest.er1
  3019. ac_status=$?
  3020. grep -v '^ *+' conftest.er1 >conftest.err
  3021. rm -f conftest.er1
  3022. cat conftest.err >&5
  3023. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3024. (exit $ac_status); } && {
  3025. test -z "$ac_c_werror_flag" ||
  3026. test ! -s conftest.err
  3027. } && test -s conftest.$ac_objext; then
  3028. ac_cv_prog_cc_g=yes
  3029. else
  3030. $as_echo "$as_me: failed program was:" >&5
  3031. sed 's/^/| /' conftest.$ac_ext >&5
  3032. CFLAGS=""
  3033. cat >conftest.$ac_ext <<_ACEOF
  3034. /* confdefs.h. */
  3035. _ACEOF
  3036. cat confdefs.h >>conftest.$ac_ext
  3037. cat >>conftest.$ac_ext <<_ACEOF
  3038. /* end confdefs.h. */
  3039. int
  3040. main ()
  3041. {
  3042. ;
  3043. return 0;
  3044. }
  3045. _ACEOF
  3046. rm -f conftest.$ac_objext
  3047. if { (ac_try="$ac_compile"
  3048. case "(($ac_try" in
  3049. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3050. *) ac_try_echo=$ac_try;;
  3051. esac
  3052. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  3053. $as_echo "$ac_try_echo") >&5
  3054. (eval "$ac_compile") 2>conftest.er1
  3055. ac_status=$?
  3056. grep -v '^ *+' conftest.er1 >conftest.err
  3057. rm -f conftest.er1
  3058. cat conftest.err >&5
  3059. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3060. (exit $ac_status); } && {
  3061. test -z "$ac_c_werror_flag" ||
  3062. test ! -s conftest.err
  3063. } && test -s conftest.$ac_objext; then
  3064. :
  3065. else
  3066. $as_echo "$as_me: failed program was:" >&5
  3067. sed 's/^/| /' conftest.$ac_ext >&5
  3068. ac_c_werror_flag=$ac_save_c_werror_flag
  3069. CFLAGS="-g"
  3070. cat >conftest.$ac_ext <<_ACEOF
  3071. /* confdefs.h. */
  3072. _ACEOF
  3073. cat confdefs.h >>conftest.$ac_ext
  3074. cat >>conftest.$ac_ext <<_ACEOF
  3075. /* end confdefs.h. */
  3076. int
  3077. main ()
  3078. {
  3079. ;
  3080. return 0;
  3081. }
  3082. _ACEOF
  3083. rm -f conftest.$ac_objext
  3084. if { (ac_try="$ac_compile"
  3085. case "(($ac_try" in
  3086. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3087. *) ac_try_echo=$ac_try;;
  3088. esac
  3089. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  3090. $as_echo "$ac_try_echo") >&5
  3091. (eval "$ac_compile") 2>conftest.er1
  3092. ac_status=$?
  3093. grep -v '^ *+' conftest.er1 >conftest.err
  3094. rm -f conftest.er1
  3095. cat conftest.err >&5
  3096. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3097. (exit $ac_status); } && {
  3098. test -z "$ac_c_werror_flag" ||
  3099. test ! -s conftest.err
  3100. } && test -s conftest.$ac_objext; then
  3101. ac_cv_prog_cc_g=yes
  3102. else
  3103. $as_echo "$as_me: failed program was:" >&5
  3104. sed 's/^/| /' conftest.$ac_ext >&5
  3105. fi
  3106. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3107. fi
  3108. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3109. fi
  3110. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3111. ac_c_werror_flag=$ac_save_c_werror_flag
  3112. fi
  3113. { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
  3114. $as_echo "$ac_cv_prog_cc_g" >&6; }
  3115. if test "$ac_test_CFLAGS" = set; then
  3116. CFLAGS=$ac_save_CFLAGS
  3117. elif test $ac_cv_prog_cc_g = yes; then
  3118. if test "$GCC" = yes; then
  3119. CFLAGS="-g -O2"
  3120. else
  3121. CFLAGS="-g"
  3122. fi
  3123. else
  3124. if test "$GCC" = yes; then
  3125. CFLAGS="-O2"
  3126. else
  3127. CFLAGS=
  3128. fi
  3129. fi
  3130. { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
  3131. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  3132. if test "${ac_cv_prog_cc_c89+set}" = set; then
  3133. $as_echo_n "(cached) " >&6
  3134. else
  3135. ac_cv_prog_cc_c89=no
  3136. ac_save_CC=$CC
  3137. cat >conftest.$ac_ext <<_ACEOF
  3138. /* confdefs.h. */
  3139. _ACEOF
  3140. cat confdefs.h >>conftest.$ac_ext
  3141. cat >>conftest.$ac_ext <<_ACEOF
  3142. /* end confdefs.h. */
  3143. #include <stdarg.h>
  3144. #include <stdio.h>
  3145. #include <sys/types.h>
  3146. #include <sys/stat.h>
  3147. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  3148. struct buf { int x; };
  3149. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  3150. static char *e (p, i)
  3151. char **p;
  3152. int i;
  3153. {
  3154. return p[i];
  3155. }
  3156. static char *f (char * (*g) (char **, int), char **p, ...)
  3157. {
  3158. char *s;
  3159. va_list v;
  3160. va_start (v,p);
  3161. s = g (p, va_arg (v,int));
  3162. va_end (v);
  3163. return s;
  3164. }
  3165. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  3166. function prototypes and stuff, but not '\xHH' hex character constants.
  3167. These don't provoke an error unfortunately, instead are silently treated
  3168. as 'x'. The following induces an error, until -std is added to get
  3169. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  3170. array size at least. It's necessary to write '\x00'==0 to get something
  3171. that's true only with -std. */
  3172. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  3173. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  3174. inside strings and character constants. */
  3175. #define FOO(x) 'x'
  3176. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  3177. int test (int i, double x);
  3178. struct s1 {int (*f) (int a);};
  3179. struct s2 {int (*f) (double a);};
  3180. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  3181. int argc;
  3182. char **argv;
  3183. int
  3184. main ()
  3185. {
  3186. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  3187. ;
  3188. return 0;
  3189. }
  3190. _ACEOF
  3191. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  3192. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  3193. do
  3194. CC="$ac_save_CC $ac_arg"
  3195. rm -f conftest.$ac_objext
  3196. if { (ac_try="$ac_compile"
  3197. case "(($ac_try" in
  3198. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3199. *) ac_try_echo=$ac_try;;
  3200. esac
  3201. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  3202. $as_echo "$ac_try_echo") >&5
  3203. (eval "$ac_compile") 2>conftest.er1
  3204. ac_status=$?
  3205. grep -v '^ *+' conftest.er1 >conftest.err
  3206. rm -f conftest.er1
  3207. cat conftest.err >&5
  3208. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3209. (exit $ac_status); } && {
  3210. test -z "$ac_c_werror_flag" ||
  3211. test ! -s conftest.err
  3212. } && test -s conftest.$ac_objext; then
  3213. ac_cv_prog_cc_c89=$ac_arg
  3214. else
  3215. $as_echo "$as_me: failed program was:" >&5
  3216. sed 's/^/| /' conftest.$ac_ext >&5
  3217. fi
  3218. rm -f core conftest.err conftest.$ac_objext
  3219. test "x$ac_cv_prog_cc_c89" != "xno" && break
  3220. done
  3221. rm -f conftest.$ac_ext
  3222. CC=$ac_save_CC
  3223. fi
  3224. # AC_CACHE_VAL
  3225. case "x$ac_cv_prog_cc_c89" in
  3226. x)
  3227. { $as_echo "$as_me:$LINENO: result: none needed" >&5
  3228. $as_echo "none needed" >&6; } ;;
  3229. xno)
  3230. { $as_echo "$as_me:$LINENO: result: unsupported" >&5
  3231. $as_echo "unsupported" >&6; } ;;
  3232. *)
  3233. CC="$CC $ac_cv_prog_cc_c89"
  3234. { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
  3235. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  3236. esac
  3237. ac_ext=cpp
  3238. ac_cpp='$CXXCPP $CPPFLAGS'
  3239. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3240. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3241. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  3242. depcc="$CC" am_compiler_list=
  3243. { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
  3244. $as_echo_n "checking dependency style of $depcc... " >&6; }
  3245. if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
  3246. $as_echo_n "(cached) " >&6
  3247. else
  3248. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  3249. # We make a subdir and do the tests there. Otherwise we can end up
  3250. # making bogus files that we don't know about and never remove. For
  3251. # instance it was reported that on HP-UX the gcc test will end up
  3252. # making a dummy file named `D' -- because `-MD' means `put the output
  3253. # in D'.
  3254. mkdir conftest.dir
  3255. # Copy depcomp to subdir because otherwise we won't find it if we're
  3256. # using a relative directory.
  3257. cp "$am_depcomp" conftest.dir
  3258. cd conftest.dir
  3259. # We will build objects and dependencies in a subdirectory because
  3260. # it helps to detect inapplicable dependency modes. For instance
  3261. # both Tru64's cc and ICC support -MD to output dependencies as a
  3262. # side effect of compilation, but ICC will put the dependencies in
  3263. # the current directory while Tru64 will put them in the object
  3264. # directory.
  3265. mkdir sub
  3266. am_cv_CC_dependencies_compiler_type=none
  3267. if test "$am_compiler_list" = ""; then
  3268. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  3269. fi
  3270. for depmode in $am_compiler_list; do
  3271. # Setup a source with many dependencies, because some compilers
  3272. # like to wrap large dependency lists on column 80 (with \), and
  3273. # we should not choose a depcomp mode which is confused by this.
  3274. #
  3275. # We need to recreate these files for each test, as the compiler may
  3276. # overwrite some of them when testing with obscure command lines.
  3277. # This happens at least with the AIX C compiler.
  3278. : > sub/conftest.c
  3279. for i in 1 2 3 4 5 6; do
  3280. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  3281. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  3282. # Solaris 8's {/usr,}/bin/sh.
  3283. touch sub/conftst$i.h
  3284. done
  3285. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  3286. case $depmode in
  3287. nosideeffect)
  3288. # after this tag, mechanisms are not by side-effect, so they'll
  3289. # only be used when explicitly requested
  3290. if test "x$enable_dependency_tracking" = xyes; then
  3291. continue
  3292. else
  3293. break
  3294. fi
  3295. ;;
  3296. none) break ;;
  3297. esac
  3298. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  3299. # mode. It turns out that the SunPro C++ compiler does not properly
  3300. # handle `-M -o', and we need to detect this.
  3301. if depmode=$depmode \
  3302. source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
  3303. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  3304. $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
  3305. >/dev/null 2>conftest.err &&
  3306. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  3307. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  3308. grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
  3309. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  3310. # icc doesn't choke on unknown options, it will just issue warnings
  3311. # or remarks (even with -Werror). So we grep stderr for any message
  3312. # that says an option was ignored or not supported.
  3313. # When given -MP, icc 7.0 and 7.1 complain thusly:
  3314. # icc: Command line warning: ignoring option '-M'; no argument required
  3315. # The diagnosis changed in icc 8.0:
  3316. # icc: Command line remark: option '-MP' not supported
  3317. if (grep 'ignoring option' conftest.err ||
  3318. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  3319. am_cv_CC_dependencies_compiler_type=$depmode
  3320. break
  3321. fi
  3322. fi
  3323. done
  3324. cd ..
  3325. rm -rf conftest.dir
  3326. else
  3327. am_cv_CC_dependencies_compiler_type=none
  3328. fi
  3329. fi
  3330. { $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
  3331. $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
  3332. CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  3333. if
  3334. test "x$enable_dependency_tracking" != xno \
  3335. && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  3336. am__fastdepCC_TRUE=
  3337. am__fastdepCC_FALSE='#'
  3338. else
  3339. am__fastdepCC_TRUE='#'
  3340. am__fastdepCC_FALSE=
  3341. fi
  3342. { $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
  3343. $as_echo_n "checking for a sed that does not truncate output... " >&6; }
  3344. if test "${ac_cv_path_SED+set}" = set; then
  3345. $as_echo_n "(cached) " >&6
  3346. else
  3347. ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  3348. for ac_i in 1 2 3 4 5 6 7; do
  3349. ac_script="$ac_script$as_nl$ac_script"
  3350. done
  3351. echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
  3352. $as_unset ac_script || ac_script=
  3353. if test -z "$SED"; then
  3354. ac_path_SED_found=false
  3355. # Loop through the user's path and test for each of PROGNAME-LIST
  3356. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3357. for as_dir in $PATH
  3358. do
  3359. IFS=$as_save_IFS
  3360. test -z "$as_dir" && as_dir=.
  3361. for ac_prog in sed gsed; do
  3362. for ac_exec_ext in '' $ac_executable_extensions; do
  3363. ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
  3364. { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
  3365. # Check for GNU ac_path_SED and select it if it is found.
  3366. # Check for GNU $ac_path_SED
  3367. case `"$ac_path_SED" --version 2>&1` in
  3368. *GNU*)
  3369. ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  3370. *)
  3371. ac_count=0
  3372. $as_echo_n 0123456789 >"conftest.in"
  3373. while :
  3374. do
  3375. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3376. mv "conftest.tmp" "conftest.in"
  3377. cp "conftest.in" "conftest.nl"
  3378. $as_echo '' >> "conftest.nl"
  3379. "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3380. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3381. ac_count=`expr $ac_count + 1`
  3382. if test $ac_count -gt ${ac_path_SED_max-0}; then
  3383. # Best one so far, save it but keep looking for a better one
  3384. ac_cv_path_SED="$ac_path_SED"
  3385. ac_path_SED_max=$ac_count
  3386. fi
  3387. # 10*(2^10) chars as input seems more than enough
  3388. test $ac_count -gt 10 && break
  3389. done
  3390. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3391. esac
  3392. $ac_path_SED_found && break 3
  3393. done
  3394. done
  3395. done
  3396. IFS=$as_save_IFS
  3397. if test -z "$ac_cv_path_SED"; then
  3398. { { $as_echo "$as_me:$LINENO: error: no acceptable sed could be found in \$PATH" >&5
  3399. $as_echo "$as_me: error: no acceptable sed could be found in \$PATH" >&2;}
  3400. { (exit 1); exit 1; }; }
  3401. fi
  3402. else
  3403. ac_cv_path_SED=$SED
  3404. fi
  3405. fi
  3406. { $as_echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
  3407. $as_echo "$ac_cv_path_SED" >&6; }
  3408. SED="$ac_cv_path_SED"
  3409. rm -f conftest.sed
  3410. test -z "$SED" && SED=sed
  3411. Xsed="$SED -e 1s/^X//"
  3412. { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
  3413. $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
  3414. if test "${ac_cv_path_GREP+set}" = set; then
  3415. $as_echo_n "(cached) " >&6
  3416. else
  3417. if test -z "$GREP"; then
  3418. ac_path_GREP_found=false
  3419. # Loop through the user's path and test for each of PROGNAME-LIST
  3420. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3421. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3422. do
  3423. IFS=$as_save_IFS
  3424. test -z "$as_dir" && as_dir=.
  3425. for ac_prog in grep ggrep; do
  3426. for ac_exec_ext in '' $ac_executable_extensions; do
  3427. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  3428. { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
  3429. # Check for GNU ac_path_GREP and select it if it is found.
  3430. # Check for GNU $ac_path_GREP
  3431. case `"$ac_path_GREP" --version 2>&1` in
  3432. *GNU*)
  3433. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  3434. *)
  3435. ac_count=0
  3436. $as_echo_n 0123456789 >"conftest.in"
  3437. while :
  3438. do
  3439. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3440. mv "conftest.tmp" "conftest.in"
  3441. cp "conftest.in" "conftest.nl"
  3442. $as_echo 'GREP' >> "conftest.nl"
  3443. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3444. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3445. ac_count=`expr $ac_count + 1`
  3446. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  3447. # Best one so far, save it but keep looking for a better one
  3448. ac_cv_path_GREP="$ac_path_GREP"
  3449. ac_path_GREP_max=$ac_count
  3450. fi
  3451. # 10*(2^10) chars as input seems more than enough
  3452. test $ac_count -gt 10 && break
  3453. done
  3454. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3455. esac
  3456. $ac_path_GREP_found && break 3
  3457. done
  3458. done
  3459. done
  3460. IFS=$as_save_IFS
  3461. if test -z "$ac_cv_path_GREP"; then
  3462. { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
  3463. $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
  3464. { (exit 1); exit 1; }; }
  3465. fi
  3466. else
  3467. ac_cv_path_GREP=$GREP
  3468. fi
  3469. fi
  3470. { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
  3471. $as_echo "$ac_cv_path_GREP" >&6; }
  3472. GREP="$ac_cv_path_GREP"
  3473. { $as_echo "$as_me:$LINENO: checking for egrep" >&5
  3474. $as_echo_n "checking for egrep... " >&6; }
  3475. if test "${ac_cv_path_EGREP+set}" = set; then
  3476. $as_echo_n "(cached) " >&6
  3477. else
  3478. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  3479. then ac_cv_path_EGREP="$GREP -E"
  3480. else
  3481. if test -z "$EGREP"; then
  3482. ac_path_EGREP_found=false
  3483. # Loop through the user's path and test for each of PROGNAME-LIST
  3484. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3485. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3486. do
  3487. IFS=$as_save_IFS
  3488. test -z "$as_dir" && as_dir=.
  3489. for ac_prog in egrep; do
  3490. for ac_exec_ext in '' $ac_executable_extensions; do
  3491. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  3492. { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
  3493. # Check for GNU ac_path_EGREP and select it if it is found.
  3494. # Check for GNU $ac_path_EGREP
  3495. case `"$ac_path_EGREP" --version 2>&1` in
  3496. *GNU*)
  3497. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  3498. *)
  3499. ac_count=0
  3500. $as_echo_n 0123456789 >"conftest.in"
  3501. while :
  3502. do
  3503. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3504. mv "conftest.tmp" "conftest.in"
  3505. cp "conftest.in" "conftest.nl"
  3506. $as_echo 'EGREP' >> "conftest.nl"
  3507. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3508. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3509. ac_count=`expr $ac_count + 1`
  3510. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  3511. # Best one so far, save it but keep looking for a better one
  3512. ac_cv_path_EGREP="$ac_path_EGREP"
  3513. ac_path_EGREP_max=$ac_count
  3514. fi
  3515. # 10*(2^10) chars as input seems more than enough
  3516. test $ac_count -gt 10 && break
  3517. done
  3518. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3519. esac
  3520. $ac_path_EGREP_found && break 3
  3521. done
  3522. done
  3523. done
  3524. IFS=$as_save_IFS
  3525. if test -z "$ac_cv_path_EGREP"; then
  3526. { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
  3527. $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
  3528. { (exit 1); exit 1; }; }
  3529. fi
  3530. else
  3531. ac_cv_path_EGREP=$EGREP
  3532. fi
  3533. fi
  3534. fi
  3535. { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
  3536. $as_echo "$ac_cv_path_EGREP" >&6; }
  3537. EGREP="$ac_cv_path_EGREP"
  3538. { $as_echo "$as_me:$LINENO: checking for fgrep" >&5
  3539. $as_echo_n "checking for fgrep... " >&6; }
  3540. if test "${ac_cv_path_FGREP+set}" = set; then
  3541. $as_echo_n "(cached) " >&6
  3542. else
  3543. if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
  3544. then ac_cv_path_FGREP="$GREP -F"
  3545. else
  3546. if test -z "$FGREP"; then
  3547. ac_path_FGREP_found=false
  3548. # Loop through the user's path and test for each of PROGNAME-LIST
  3549. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3550. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3551. do
  3552. IFS=$as_save_IFS
  3553. test -z "$as_dir" && as_dir=.
  3554. for ac_prog in fgrep; do
  3555. for ac_exec_ext in '' $ac_executable_extensions; do
  3556. ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
  3557. { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
  3558. # Check for GNU ac_path_FGREP and select it if it is found.
  3559. # Check for GNU $ac_path_FGREP
  3560. case `"$ac_path_FGREP" --version 2>&1` in
  3561. *GNU*)
  3562. ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
  3563. *)
  3564. ac_count=0
  3565. $as_echo_n 0123456789 >"conftest.in"
  3566. while :
  3567. do
  3568. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3569. mv "conftest.tmp" "conftest.in"
  3570. cp "conftest.in" "conftest.nl"
  3571. $as_echo 'FGREP' >> "conftest.nl"
  3572. "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3573. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3574. ac_count=`expr $ac_count + 1`
  3575. if test $ac_count -gt ${ac_path_FGREP_max-0}; then
  3576. # Best one so far, save it but keep looking for a better one
  3577. ac_cv_path_FGREP="$ac_path_FGREP"
  3578. ac_path_FGREP_max=$ac_count
  3579. fi
  3580. # 10*(2^10) chars as input seems more than enough
  3581. test $ac_count -gt 10 && break
  3582. done
  3583. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3584. esac
  3585. $ac_path_FGREP_found && break 3
  3586. done
  3587. done
  3588. done
  3589. IFS=$as_save_IFS
  3590. if test -z "$ac_cv_path_FGREP"; then
  3591. { { $as_echo "$as_me:$LINENO: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
  3592. $as_echo "$as_me: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
  3593. { (exit 1); exit 1; }; }
  3594. fi
  3595. else
  3596. ac_cv_path_FGREP=$FGREP
  3597. fi
  3598. fi
  3599. fi
  3600. { $as_echo "$as_me:$LINENO: result: $ac_cv_path_FGREP" >&5
  3601. $as_echo "$ac_cv_path_FGREP" >&6; }
  3602. FGREP="$ac_cv_path_FGREP"
  3603. test -z "$GREP" && GREP=grep
  3604. # Check whether --with-gnu-ld was given.
  3605. if test "${with_gnu_ld+set}" = set; then
  3606. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  3607. else
  3608. with_gnu_ld=no
  3609. fi
  3610. ac_prog=ld
  3611. if test "$GCC" = yes; then
  3612. # Check if gcc -print-prog-name=ld gives a path.
  3613. { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
  3614. $as_echo_n "checking for ld used by $CC... " >&6; }
  3615. case $host in
  3616. *-*-mingw*)
  3617. # gcc leaves a trailing carriage return which upsets mingw
  3618. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  3619. *)
  3620. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  3621. esac
  3622. case $ac_prog in
  3623. # Accept absolute paths.
  3624. [\\/]* | ?:[\\/]*)
  3625. re_direlt='/[^/][^/]*/\.\./'
  3626. # Canonicalize the pathname of ld
  3627. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  3628. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  3629. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  3630. done
  3631. test -z "$LD" && LD="$ac_prog"
  3632. ;;
  3633. "")
  3634. # If it fails, then pretend we aren't using GCC.
  3635. ac_prog=ld
  3636. ;;
  3637. *)
  3638. # If it is relative, then search for the first ld in PATH.
  3639. with_gnu_ld=unknown
  3640. ;;
  3641. esac
  3642. elif test "$with_gnu_ld" = yes; then
  3643. { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
  3644. $as_echo_n "checking for GNU ld... " >&6; }
  3645. else
  3646. { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
  3647. $as_echo_n "checking for non-GNU ld... " >&6; }
  3648. fi
  3649. if test "${lt_cv_path_LD+set}" = set; then
  3650. $as_echo_n "(cached) " >&6
  3651. else
  3652. if test -z "$LD"; then
  3653. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  3654. for ac_dir in $PATH; do
  3655. IFS="$lt_save_ifs"
  3656. test -z "$ac_dir" && ac_dir=.
  3657. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  3658. lt_cv_path_LD="$ac_dir/$ac_prog"
  3659. # Check to see if the program is GNU ld. I'd rather use --version,
  3660. # but apparently some variants of GNU ld only accept -v.
  3661. # Break only if it was the GNU/non-GNU ld that we prefer.
  3662. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  3663. *GNU* | *'with BFD'*)
  3664. test "$with_gnu_ld" != no && break
  3665. ;;
  3666. *)
  3667. test "$with_gnu_ld" != yes && break
  3668. ;;
  3669. esac
  3670. fi
  3671. done
  3672. IFS="$lt_save_ifs"
  3673. else
  3674. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  3675. fi
  3676. fi
  3677. LD="$lt_cv_path_LD"
  3678. if test -n "$LD"; then
  3679. { $as_echo "$as_me:$LINENO: result: $LD" >&5
  3680. $as_echo "$LD" >&6; }
  3681. else
  3682. { $as_echo "$as_me:$LINENO: result: no" >&5
  3683. $as_echo "no" >&6; }
  3684. fi
  3685. test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
  3686. $as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
  3687. { (exit 1); exit 1; }; }
  3688. { $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
  3689. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  3690. if test "${lt_cv_prog_gnu_ld+set}" = set; then
  3691. $as_echo_n "(cached) " >&6
  3692. else
  3693. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  3694. case `$LD -v 2>&1 </dev/null` in
  3695. *GNU* | *'with BFD'*)
  3696. lt_cv_prog_gnu_ld=yes
  3697. ;;
  3698. *)
  3699. lt_cv_prog_gnu_ld=no
  3700. ;;
  3701. esac
  3702. fi
  3703. { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
  3704. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  3705. with_gnu_ld=$lt_cv_prog_gnu_ld
  3706. { $as_echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
  3707. $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
  3708. if test "${lt_cv_path_NM+set}" = set; then
  3709. $as_echo_n "(cached) " >&6
  3710. else
  3711. if test -n "$NM"; then
  3712. # Let the user override the test.
  3713. lt_cv_path_NM="$NM"
  3714. else
  3715. lt_nm_to_check="${ac_tool_prefix}nm"
  3716. if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
  3717. lt_nm_to_check="$lt_nm_to_check nm"
  3718. fi
  3719. for lt_tmp_nm in $lt_nm_to_check; do
  3720. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  3721. for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
  3722. IFS="$lt_save_ifs"
  3723. test -z "$ac_dir" && ac_dir=.
  3724. tmp_nm="$ac_dir/$lt_tmp_nm"
  3725. if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
  3726. # Check to see if the nm accepts a BSD-compat flag.
  3727. # Adding the `sed 1q' prevents false positives on HP-UX, which says:
  3728. # nm: unknown option "B" ignored
  3729. # Tru64's nm complains that /dev/null is an invalid object file
  3730. case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
  3731. */dev/null* | *'Invalid file or object type'*)
  3732. lt_cv_path_NM="$tmp_nm -B"
  3733. break
  3734. ;;
  3735. *)
  3736. case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  3737. */dev/null*)
  3738. lt_cv_path_NM="$tmp_nm -p"
  3739. break
  3740. ;;
  3741. *)
  3742. lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  3743. continue # so that we can try to find one that supports BSD flags
  3744. ;;
  3745. esac
  3746. ;;
  3747. esac
  3748. fi
  3749. done
  3750. IFS="$lt_save_ifs"
  3751. done
  3752. : ${lt_cv_path_NM=no}
  3753. fi
  3754. fi
  3755. { $as_echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
  3756. $as_echo "$lt_cv_path_NM" >&6; }
  3757. if test "$lt_cv_path_NM" != "no"; then
  3758. NM="$lt_cv_path_NM"
  3759. else
  3760. # Didn't find any BSD compatible name lister, look for dumpbin.
  3761. if test -n "$ac_tool_prefix"; then
  3762. for ac_prog in "dumpbin -symbols" "link -dump -symbols"
  3763. do
  3764. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  3765. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  3766. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  3767. $as_echo_n "checking for $ac_word... " >&6; }
  3768. if test "${ac_cv_prog_DUMPBIN+set}" = set; then
  3769. $as_echo_n "(cached) " >&6
  3770. else
  3771. if test -n "$DUMPBIN"; then
  3772. ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
  3773. else
  3774. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3775. for as_dir in $PATH
  3776. do
  3777. IFS=$as_save_IFS
  3778. test -z "$as_dir" && as_dir=.
  3779. for ac_exec_ext in '' $ac_executable_extensions; do
  3780. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3781. ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
  3782. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3783. break 2
  3784. fi
  3785. done
  3786. done
  3787. IFS=$as_save_IFS
  3788. fi
  3789. fi
  3790. DUMPBIN=$ac_cv_prog_DUMPBIN
  3791. if test -n "$DUMPBIN"; then
  3792. { $as_echo "$as_me:$LINENO: result: $DUMPBIN" >&5
  3793. $as_echo "$DUMPBIN" >&6; }
  3794. else
  3795. { $as_echo "$as_me:$LINENO: result: no" >&5
  3796. $as_echo "no" >&6; }
  3797. fi
  3798. test -n "$DUMPBIN" && break
  3799. done
  3800. fi
  3801. if test -z "$DUMPBIN"; then
  3802. ac_ct_DUMPBIN=$DUMPBIN
  3803. for ac_prog in "dumpbin -symbols" "link -dump -symbols"
  3804. do
  3805. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3806. set dummy $ac_prog; ac_word=$2
  3807. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  3808. $as_echo_n "checking for $ac_word... " >&6; }
  3809. if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
  3810. $as_echo_n "(cached) " >&6
  3811. else
  3812. if test -n "$ac_ct_DUMPBIN"; then
  3813. ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
  3814. else
  3815. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3816. for as_dir in $PATH
  3817. do
  3818. IFS=$as_save_IFS
  3819. test -z "$as_dir" && as_dir=.
  3820. for ac_exec_ext in '' $ac_executable_extensions; do
  3821. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3822. ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
  3823. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3824. break 2
  3825. fi
  3826. done
  3827. done
  3828. IFS=$as_save_IFS
  3829. fi
  3830. fi
  3831. ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
  3832. if test -n "$ac_ct_DUMPBIN"; then
  3833. { $as_echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
  3834. $as_echo "$ac_ct_DUMPBIN" >&6; }
  3835. else
  3836. { $as_echo "$as_me:$LINENO: result: no" >&5
  3837. $as_echo "no" >&6; }
  3838. fi
  3839. test -n "$ac_ct_DUMPBIN" && break
  3840. done
  3841. if test "x$ac_ct_DUMPBIN" = x; then
  3842. DUMPBIN=":"
  3843. else
  3844. case $cross_compiling:$ac_tool_warned in
  3845. yes:)
  3846. { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  3847. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3848. ac_tool_warned=yes ;;
  3849. esac
  3850. DUMPBIN=$ac_ct_DUMPBIN
  3851. fi
  3852. fi
  3853. if test "$DUMPBIN" != ":"; then
  3854. NM="$DUMPBIN"
  3855. fi
  3856. fi
  3857. test -z "$NM" && NM=nm
  3858. { $as_echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
  3859. $as_echo_n "checking the name lister ($NM) interface... " >&6; }
  3860. if test "${lt_cv_nm_interface+set}" = set; then
  3861. $as_echo_n "(cached) " >&6
  3862. else
  3863. lt_cv_nm_interface="BSD nm"
  3864. echo "int some_variable = 0;" > conftest.$ac_ext
  3865. (eval echo "\"\$as_me:4375: $ac_compile\"" >&5)
  3866. (eval "$ac_compile" 2>conftest.err)
  3867. cat conftest.err >&5
  3868. (eval echo "\"\$as_me:4378: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
  3869. (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
  3870. cat conftest.err >&5
  3871. (eval echo "\"\$as_me:4381: output\"" >&5)
  3872. cat conftest.out >&5
  3873. if $GREP 'External.*some_variable' conftest.out > /dev/null; then
  3874. lt_cv_nm_interface="MS dumpbin"
  3875. fi
  3876. rm -f conftest*
  3877. fi
  3878. { $as_echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
  3879. $as_echo "$lt_cv_nm_interface" >&6; }
  3880. { $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
  3881. $as_echo_n "checking whether ln -s works... " >&6; }
  3882. LN_S=$as_ln_s
  3883. if test "$LN_S" = "ln -s"; then
  3884. { $as_echo "$as_me:$LINENO: result: yes" >&5
  3885. $as_echo "yes" >&6; }
  3886. else
  3887. { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
  3888. $as_echo "no, using $LN_S" >&6; }
  3889. fi
  3890. # find the maximum length of command line arguments
  3891. { $as_echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
  3892. $as_echo_n "checking the maximum length of command line arguments... " >&6; }
  3893. if test "${lt_cv_sys_max_cmd_len+set}" = set; then
  3894. $as_echo_n "(cached) " >&6
  3895. else
  3896. i=0
  3897. teststring="ABCD"
  3898. case $build_os in
  3899. msdosdjgpp*)
  3900. # On DJGPP, this test can blow up pretty badly due to problems in libc
  3901. # (any single argument exceeding 2000 bytes causes a buffer overrun
  3902. # during glob expansion). Even if it were fixed, the result of this
  3903. # check would be larger than it should be.
  3904. lt_cv_sys_max_cmd_len=12288; # 12K is about right
  3905. ;;
  3906. gnu*)
  3907. # Under GNU Hurd, this test is not required because there is
  3908. # no limit to the length of command line arguments.
  3909. # Libtool will interpret -1 as no limit whatsoever
  3910. lt_cv_sys_max_cmd_len=-1;
  3911. ;;
  3912. cygwin* | mingw* | cegcc*)
  3913. # On Win9x/ME, this test blows up -- it succeeds, but takes
  3914. # about 5 minutes as the teststring grows exponentially.
  3915. # Worse, since 9x/ME are not pre-emptively multitasking,
  3916. # you end up with a "frozen" computer, even though with patience
  3917. # the test eventually succeeds (with a max line length of 256k).
  3918. # Instead, let's just punt: use the minimum linelength reported by
  3919. # all of the supported platforms: 8192 (on NT/2K/XP).
  3920. lt_cv_sys_max_cmd_len=8192;
  3921. ;;
  3922. amigaos*)
  3923. # On AmigaOS with pdksh, this test takes hours, literally.
  3924. # So we just punt and use a minimum line length of 8192.
  3925. lt_cv_sys_max_cmd_len=8192;
  3926. ;;
  3927. netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
  3928. # This has been around since 386BSD, at least. Likely further.
  3929. if test -x /sbin/sysctl; then
  3930. lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  3931. elif test -x /usr/sbin/sysctl; then
  3932. lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  3933. else
  3934. lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  3935. fi
  3936. # And add a safety zone
  3937. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  3938. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  3939. ;;
  3940. interix*)
  3941. # We know the value 262144 and hardcode it with a safety zone (like BSD)
  3942. lt_cv_sys_max_cmd_len=196608
  3943. ;;
  3944. osf*)
  3945. # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  3946. # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  3947. # nice to cause kernel panics so lets avoid the loop below.
  3948. # First set a reasonable default.
  3949. lt_cv_sys_max_cmd_len=16384
  3950. #
  3951. if test -x /sbin/sysconfig; then
  3952. case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  3953. *1*) lt_cv_sys_max_cmd_len=-1 ;;
  3954. esac
  3955. fi
  3956. ;;
  3957. sco3.2v5*)
  3958. lt_cv_sys_max_cmd_len=102400
  3959. ;;
  3960. sysv5* | sco5v6* | sysv4.2uw2*)
  3961. kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  3962. if test -n "$kargmax"; then
  3963. lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
  3964. else
  3965. lt_cv_sys_max_cmd_len=32768
  3966. fi
  3967. ;;
  3968. *)
  3969. lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
  3970. if test -n "$lt_cv_sys_max_cmd_len"; then
  3971. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  3972. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  3973. else
  3974. # Make teststring a little bigger before we do anything with it.
  3975. # a 1K string should be a reasonable start.
  3976. for i in 1 2 3 4 5 6 7 8 ; do
  3977. teststring=$teststring$teststring
  3978. done
  3979. SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  3980. # If test is not a shell built-in, we'll probably end up computing a
  3981. # maximum length that is only half of the actual maximum length, but
  3982. # we can't tell.
  3983. while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
  3984. = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
  3985. test $i != 17 # 1/2 MB should be enough
  3986. do
  3987. i=`expr $i + 1`
  3988. teststring=$teststring$teststring
  3989. done
  3990. # Only check the string length outside the loop.
  3991. lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
  3992. teststring=
  3993. # Add a significant safety factor because C++ compilers can tack on
  3994. # massive amounts of additional arguments before passing them to the
  3995. # linker. It appears as though 1/2 is a usable value.
  3996. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  3997. fi
  3998. ;;
  3999. esac
  4000. fi
  4001. if test -n $lt_cv_sys_max_cmd_len ; then
  4002. { $as_echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
  4003. $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
  4004. else
  4005. { $as_echo "$as_me:$LINENO: result: none" >&5
  4006. $as_echo "none" >&6; }
  4007. fi
  4008. max_cmd_len=$lt_cv_sys_max_cmd_len
  4009. : ${CP="cp -f"}
  4010. : ${MV="mv -f"}
  4011. : ${RM="rm -f"}
  4012. { $as_echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
  4013. $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
  4014. # Try some XSI features
  4015. xsi_shell=no
  4016. ( _lt_dummy="a/b/c"
  4017. test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
  4018. = c,a/b,, \
  4019. && eval 'test $(( 1 + 1 )) -eq 2 \
  4020. && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
  4021. && xsi_shell=yes
  4022. { $as_echo "$as_me:$LINENO: result: $xsi_shell" >&5
  4023. $as_echo "$xsi_shell" >&6; }
  4024. { $as_echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
  4025. $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
  4026. lt_shell_append=no
  4027. ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
  4028. >/dev/null 2>&1 \
  4029. && lt_shell_append=yes
  4030. { $as_echo "$as_me:$LINENO: result: $lt_shell_append" >&5
  4031. $as_echo "$lt_shell_append" >&6; }
  4032. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  4033. lt_unset=unset
  4034. else
  4035. lt_unset=false
  4036. fi
  4037. # test EBCDIC or ASCII
  4038. case `echo X|tr X '\101'` in
  4039. A) # ASCII based system
  4040. # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
  4041. lt_SP2NL='tr \040 \012'
  4042. lt_NL2SP='tr \015\012 \040\040'
  4043. ;;
  4044. *) # EBCDIC based system
  4045. lt_SP2NL='tr \100 \n'
  4046. lt_NL2SP='tr \r\n \100\100'
  4047. ;;
  4048. esac
  4049. { $as_echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
  4050. $as_echo_n "checking for $LD option to reload object files... " >&6; }
  4051. if test "${lt_cv_ld_reload_flag+set}" = set; then
  4052. $as_echo_n "(cached) " >&6
  4053. else
  4054. lt_cv_ld_reload_flag='-r'
  4055. fi
  4056. { $as_echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
  4057. $as_echo "$lt_cv_ld_reload_flag" >&6; }
  4058. reload_flag=$lt_cv_ld_reload_flag
  4059. case $reload_flag in
  4060. "" | " "*) ;;
  4061. *) reload_flag=" $reload_flag" ;;
  4062. esac
  4063. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  4064. case $host_os in
  4065. darwin*)
  4066. if test "$GCC" = yes; then
  4067. reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
  4068. else
  4069. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  4070. fi
  4071. ;;
  4072. esac
  4073. if test -n "$ac_tool_prefix"; then
  4074. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  4075. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  4076. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  4077. $as_echo_n "checking for $ac_word... " >&6; }
  4078. if test "${ac_cv_prog_OBJDUMP+set}" = set; then
  4079. $as_echo_n "(cached) " >&6
  4080. else
  4081. if test -n "$OBJDUMP"; then
  4082. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  4083. else
  4084. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4085. for as_dir in $PATH
  4086. do
  4087. IFS=$as_save_IFS
  4088. test -z "$as_dir" && as_dir=.
  4089. for ac_exec_ext in '' $ac_executable_extensions; do
  4090. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4091. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  4092. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4093. break 2
  4094. fi
  4095. done
  4096. done
  4097. IFS=$as_save_IFS
  4098. fi
  4099. fi
  4100. OBJDUMP=$ac_cv_prog_OBJDUMP
  4101. if test -n "$OBJDUMP"; then
  4102. { $as_echo "$as_me:$LINENO: result: $OBJDUMP" >&5
  4103. $as_echo "$OBJDUMP" >&6; }
  4104. else
  4105. { $as_echo "$as_me:$LINENO: result: no" >&5
  4106. $as_echo "no" >&6; }
  4107. fi
  4108. fi
  4109. if test -z "$ac_cv_prog_OBJDUMP"; then
  4110. ac_ct_OBJDUMP=$OBJDUMP
  4111. # Extract the first word of "objdump", so it can be a program name with args.
  4112. set dummy objdump; ac_word=$2
  4113. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  4114. $as_echo_n "checking for $ac_word... " >&6; }
  4115. if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
  4116. $as_echo_n "(cached) " >&6
  4117. else
  4118. if test -n "$ac_ct_OBJDUMP"; then
  4119. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  4120. else
  4121. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4122. for as_dir in $PATH
  4123. do
  4124. IFS=$as_save_IFS
  4125. test -z "$as_dir" && as_dir=.
  4126. for ac_exec_ext in '' $ac_executable_extensions; do
  4127. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4128. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  4129. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4130. break 2
  4131. fi
  4132. done
  4133. done
  4134. IFS=$as_save_IFS
  4135. fi
  4136. fi
  4137. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  4138. if test -n "$ac_ct_OBJDUMP"; then
  4139. { $as_echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
  4140. $as_echo "$ac_ct_OBJDUMP" >&6; }
  4141. else
  4142. { $as_echo "$as_me:$LINENO: result: no" >&5
  4143. $as_echo "no" >&6; }
  4144. fi
  4145. if test "x$ac_ct_OBJDUMP" = x; then
  4146. OBJDUMP="false"
  4147. else
  4148. case $cross_compiling:$ac_tool_warned in
  4149. yes:)
  4150. { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  4151. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4152. ac_tool_warned=yes ;;
  4153. esac
  4154. OBJDUMP=$ac_ct_OBJDUMP
  4155. fi
  4156. else
  4157. OBJDUMP="$ac_cv_prog_OBJDUMP"
  4158. fi
  4159. test -z "$OBJDUMP" && OBJDUMP=objdump
  4160. { $as_echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
  4161. $as_echo_n "checking how to recognize dependent libraries... " >&6; }
  4162. if test "${lt_cv_deplibs_check_method+set}" = set; then
  4163. $as_echo_n "(cached) " >&6
  4164. else
  4165. lt_cv_file_magic_cmd='$MAGIC_CMD'
  4166. lt_cv_file_magic_test_file=
  4167. lt_cv_deplibs_check_method='unknown'
  4168. # Need to set the preceding variable on all platforms that support
  4169. # interlibrary dependencies.
  4170. # 'none' -- dependencies not supported.
  4171. # `unknown' -- same as none, but documents that we really don't know.
  4172. # 'pass_all' -- all dependencies passed with no checks.
  4173. # 'test_compile' -- check by making test program.
  4174. # 'file_magic [[regex]]' -- check by looking for files in library path
  4175. # which responds to the $file_magic_cmd with a given extended regex.
  4176. # If you have `file' or equivalent on your system and you're not sure
  4177. # whether `pass_all' will *always* work, you probably want this one.
  4178. case $host_os in
  4179. aix[4-9]*)
  4180. lt_cv_deplibs_check_method=pass_all
  4181. ;;
  4182. beos*)
  4183. lt_cv_deplibs_check_method=pass_all
  4184. ;;
  4185. bsdi[45]*)
  4186. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  4187. lt_cv_file_magic_cmd='/usr/bin/file -L'
  4188. lt_cv_file_magic_test_file=/shlib/libc.so
  4189. ;;
  4190. cygwin*)
  4191. # func_win32_libid is a shell function defined in ltmain.sh
  4192. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  4193. lt_cv_file_magic_cmd='func_win32_libid'
  4194. ;;
  4195. mingw* | pw32*)
  4196. # Base MSYS/MinGW do not provide the 'file' command needed by
  4197. # func_win32_libid shell function, so use a weaker test based on 'objdump',
  4198. # unless we find 'file', for example because we are cross-compiling.
  4199. if ( file / ) >/dev/null 2>&1; then
  4200. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  4201. lt_cv_file_magic_cmd='func_win32_libid'
  4202. else
  4203. lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
  4204. lt_cv_file_magic_cmd='$OBJDUMP -f'
  4205. fi
  4206. ;;
  4207. cegcc)
  4208. # use the weaker test based on 'objdump'. See mingw*.
  4209. lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
  4210. lt_cv_file_magic_cmd='$OBJDUMP -f'
  4211. ;;
  4212. darwin* | rhapsody*)
  4213. lt_cv_deplibs_check_method=pass_all
  4214. ;;
  4215. freebsd* | dragonfly*)
  4216. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  4217. case $host_cpu in
  4218. i*86 )
  4219. # Not sure whether the presence of OpenBSD here was a mistake.
  4220. # Let's accept both of them until this is cleared up.
  4221. lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
  4222. lt_cv_file_magic_cmd=/usr/bin/file
  4223. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  4224. ;;
  4225. esac
  4226. else
  4227. lt_cv_deplibs_check_method=pass_all
  4228. fi
  4229. ;;
  4230. gnu*)
  4231. lt_cv_deplibs_check_method=pass_all
  4232. ;;
  4233. hpux10.20* | hpux11*)
  4234. lt_cv_file_magic_cmd=/usr/bin/file
  4235. case $host_cpu in
  4236. ia64*)
  4237. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
  4238. lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  4239. ;;
  4240. hppa*64*)
  4241. 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]'
  4242. lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  4243. ;;
  4244. *)
  4245. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
  4246. lt_cv_file_magic_test_file=/usr/lib/libc.sl
  4247. ;;
  4248. esac
  4249. ;;
  4250. interix[3-9]*)
  4251. # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  4252. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
  4253. ;;
  4254. irix5* | irix6* | nonstopux*)
  4255. case $LD in
  4256. *-32|*"-32 ") libmagic=32-bit;;
  4257. *-n32|*"-n32 ") libmagic=N32;;
  4258. *-64|*"-64 ") libmagic=64-bit;;
  4259. *) libmagic=never-match;;
  4260. esac
  4261. lt_cv_deplibs_check_method=pass_all
  4262. ;;
  4263. # This must be Linux ELF.
  4264. linux* | k*bsd*-gnu)
  4265. lt_cv_deplibs_check_method=pass_all
  4266. ;;
  4267. netbsd* | netbsdelf*-gnu)
  4268. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  4269. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  4270. else
  4271. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
  4272. fi
  4273. ;;
  4274. newos6*)
  4275. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  4276. lt_cv_file_magic_cmd=/usr/bin/file
  4277. lt_cv_file_magic_test_file=/usr/lib/libnls.so
  4278. ;;
  4279. *nto* | *qnx*)
  4280. lt_cv_deplibs_check_method=pass_all
  4281. ;;
  4282. openbsd*)
  4283. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  4284. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
  4285. else
  4286. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  4287. fi
  4288. ;;
  4289. osf3* | osf4* | osf5*)
  4290. lt_cv_deplibs_check_method=pass_all
  4291. ;;
  4292. rdos*)
  4293. lt_cv_deplibs_check_method=pass_all
  4294. ;;
  4295. solaris*)
  4296. lt_cv_deplibs_check_method=pass_all
  4297. ;;
  4298. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  4299. lt_cv_deplibs_check_method=pass_all
  4300. ;;
  4301. sysv4 | sysv4.3*)
  4302. case $host_vendor in
  4303. motorola)
  4304. 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]'
  4305. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  4306. ;;
  4307. ncr)
  4308. lt_cv_deplibs_check_method=pass_all
  4309. ;;
  4310. sequent)
  4311. lt_cv_file_magic_cmd='/bin/file'
  4312. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
  4313. ;;
  4314. sni)
  4315. lt_cv_file_magic_cmd='/bin/file'
  4316. lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
  4317. lt_cv_file_magic_test_file=/lib/libc.so
  4318. ;;
  4319. siemens)
  4320. lt_cv_deplibs_check_method=pass_all
  4321. ;;
  4322. pc)
  4323. lt_cv_deplibs_check_method=pass_all
  4324. ;;
  4325. esac
  4326. ;;
  4327. tpf*)
  4328. lt_cv_deplibs_check_method=pass_all
  4329. ;;
  4330. esac
  4331. fi
  4332. { $as_echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
  4333. $as_echo "$lt_cv_deplibs_check_method" >&6; }
  4334. file_magic_cmd=$lt_cv_file_magic_cmd
  4335. deplibs_check_method=$lt_cv_deplibs_check_method
  4336. test -z "$deplibs_check_method" && deplibs_check_method=unknown
  4337. if test -n "$ac_tool_prefix"; then
  4338. # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
  4339. set dummy ${ac_tool_prefix}ar; ac_word=$2
  4340. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  4341. $as_echo_n "checking for $ac_word... " >&6; }
  4342. if test "${ac_cv_prog_AR+set}" = set; then
  4343. $as_echo_n "(cached) " >&6
  4344. else
  4345. if test -n "$AR"; then
  4346. ac_cv_prog_AR="$AR" # Let the user override the test.
  4347. else
  4348. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4349. for as_dir in $PATH
  4350. do
  4351. IFS=$as_save_IFS
  4352. test -z "$as_dir" && as_dir=.
  4353. for ac_exec_ext in '' $ac_executable_extensions; do
  4354. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4355. ac_cv_prog_AR="${ac_tool_prefix}ar"
  4356. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4357. break 2
  4358. fi
  4359. done
  4360. done
  4361. IFS=$as_save_IFS
  4362. fi
  4363. fi
  4364. AR=$ac_cv_prog_AR
  4365. if test -n "$AR"; then
  4366. { $as_echo "$as_me:$LINENO: result: $AR" >&5
  4367. $as_echo "$AR" >&6; }
  4368. else
  4369. { $as_echo "$as_me:$LINENO: result: no" >&5
  4370. $as_echo "no" >&6; }
  4371. fi
  4372. fi
  4373. if test -z "$ac_cv_prog_AR"; then
  4374. ac_ct_AR=$AR
  4375. # Extract the first word of "ar", so it can be a program name with args.
  4376. set dummy ar; ac_word=$2
  4377. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  4378. $as_echo_n "checking for $ac_word... " >&6; }
  4379. if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
  4380. $as_echo_n "(cached) " >&6
  4381. else
  4382. if test -n "$ac_ct_AR"; then
  4383. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  4384. else
  4385. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4386. for as_dir in $PATH
  4387. do
  4388. IFS=$as_save_IFS
  4389. test -z "$as_dir" && as_dir=.
  4390. for ac_exec_ext in '' $ac_executable_extensions; do
  4391. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4392. ac_cv_prog_ac_ct_AR="ar"
  4393. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4394. break 2
  4395. fi
  4396. done
  4397. done
  4398. IFS=$as_save_IFS
  4399. fi
  4400. fi
  4401. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  4402. if test -n "$ac_ct_AR"; then
  4403. { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
  4404. $as_echo "$ac_ct_AR" >&6; }
  4405. else
  4406. { $as_echo "$as_me:$LINENO: result: no" >&5
  4407. $as_echo "no" >&6; }
  4408. fi
  4409. if test "x$ac_ct_AR" = x; then
  4410. AR="false"
  4411. else
  4412. case $cross_compiling:$ac_tool_warned in
  4413. yes:)
  4414. { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  4415. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4416. ac_tool_warned=yes ;;
  4417. esac
  4418. AR=$ac_ct_AR
  4419. fi
  4420. else
  4421. AR="$ac_cv_prog_AR"
  4422. fi
  4423. test -z "$AR" && AR=ar
  4424. test -z "$AR_FLAGS" && AR_FLAGS=cru
  4425. if test -n "$ac_tool_prefix"; then
  4426. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  4427. set dummy ${ac_tool_prefix}strip; ac_word=$2
  4428. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  4429. $as_echo_n "checking for $ac_word... " >&6; }
  4430. if test "${ac_cv_prog_STRIP+set}" = set; then
  4431. $as_echo_n "(cached) " >&6
  4432. else
  4433. if test -n "$STRIP"; then
  4434. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  4435. else
  4436. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4437. for as_dir in $PATH
  4438. do
  4439. IFS=$as_save_IFS
  4440. test -z "$as_dir" && as_dir=.
  4441. for ac_exec_ext in '' $ac_executable_extensions; do
  4442. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4443. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  4444. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4445. break 2
  4446. fi
  4447. done
  4448. done
  4449. IFS=$as_save_IFS
  4450. fi
  4451. fi
  4452. STRIP=$ac_cv_prog_STRIP
  4453. if test -n "$STRIP"; then
  4454. { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
  4455. $as_echo "$STRIP" >&6; }
  4456. else
  4457. { $as_echo "$as_me:$LINENO: result: no" >&5
  4458. $as_echo "no" >&6; }
  4459. fi
  4460. fi
  4461. if test -z "$ac_cv_prog_STRIP"; then
  4462. ac_ct_STRIP=$STRIP
  4463. # Extract the first word of "strip", so it can be a program name with args.
  4464. set dummy strip; ac_word=$2
  4465. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  4466. $as_echo_n "checking for $ac_word... " >&6; }
  4467. if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
  4468. $as_echo_n "(cached) " >&6
  4469. else
  4470. if test -n "$ac_ct_STRIP"; then
  4471. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  4472. else
  4473. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4474. for as_dir in $PATH
  4475. do
  4476. IFS=$as_save_IFS
  4477. test -z "$as_dir" && as_dir=.
  4478. for ac_exec_ext in '' $ac_executable_extensions; do
  4479. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4480. ac_cv_prog_ac_ct_STRIP="strip"
  4481. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4482. break 2
  4483. fi
  4484. done
  4485. done
  4486. IFS=$as_save_IFS
  4487. fi
  4488. fi
  4489. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  4490. if test -n "$ac_ct_STRIP"; then
  4491. { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
  4492. $as_echo "$ac_ct_STRIP" >&6; }
  4493. else
  4494. { $as_echo "$as_me:$LINENO: result: no" >&5
  4495. $as_echo "no" >&6; }
  4496. fi
  4497. if test "x$ac_ct_STRIP" = x; then
  4498. STRIP=":"
  4499. else
  4500. case $cross_compiling:$ac_tool_warned in
  4501. yes:)
  4502. { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  4503. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4504. ac_tool_warned=yes ;;
  4505. esac
  4506. STRIP=$ac_ct_STRIP
  4507. fi
  4508. else
  4509. STRIP="$ac_cv_prog_STRIP"
  4510. fi
  4511. test -z "$STRIP" && STRIP=:
  4512. if test -n "$ac_tool_prefix"; then
  4513. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  4514. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  4515. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  4516. $as_echo_n "checking for $ac_word... " >&6; }
  4517. if test "${ac_cv_prog_RANLIB+set}" = set; then
  4518. $as_echo_n "(cached) " >&6
  4519. else
  4520. if test -n "$RANLIB"; then
  4521. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  4522. else
  4523. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4524. for as_dir in $PATH
  4525. do
  4526. IFS=$as_save_IFS
  4527. test -z "$as_dir" && as_dir=.
  4528. for ac_exec_ext in '' $ac_executable_extensions; do
  4529. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4530. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  4531. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4532. break 2
  4533. fi
  4534. done
  4535. done
  4536. IFS=$as_save_IFS
  4537. fi
  4538. fi
  4539. RANLIB=$ac_cv_prog_RANLIB
  4540. if test -n "$RANLIB"; then
  4541. { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
  4542. $as_echo "$RANLIB" >&6; }
  4543. else
  4544. { $as_echo "$as_me:$LINENO: result: no" >&5
  4545. $as_echo "no" >&6; }
  4546. fi
  4547. fi
  4548. if test -z "$ac_cv_prog_RANLIB"; then
  4549. ac_ct_RANLIB=$RANLIB
  4550. # Extract the first word of "ranlib", so it can be a program name with args.
  4551. set dummy ranlib; ac_word=$2
  4552. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  4553. $as_echo_n "checking for $ac_word... " >&6; }
  4554. if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
  4555. $as_echo_n "(cached) " >&6
  4556. else
  4557. if test -n "$ac_ct_RANLIB"; then
  4558. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  4559. else
  4560. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4561. for as_dir in $PATH
  4562. do
  4563. IFS=$as_save_IFS
  4564. test -z "$as_dir" && as_dir=.
  4565. for ac_exec_ext in '' $ac_executable_extensions; do
  4566. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4567. ac_cv_prog_ac_ct_RANLIB="ranlib"
  4568. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4569. break 2
  4570. fi
  4571. done
  4572. done
  4573. IFS=$as_save_IFS
  4574. fi
  4575. fi
  4576. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  4577. if test -n "$ac_ct_RANLIB"; then
  4578. { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
  4579. $as_echo "$ac_ct_RANLIB" >&6; }
  4580. else
  4581. { $as_echo "$as_me:$LINENO: result: no" >&5
  4582. $as_echo "no" >&6; }
  4583. fi
  4584. if test "x$ac_ct_RANLIB" = x; then
  4585. RANLIB=":"
  4586. else
  4587. case $cross_compiling:$ac_tool_warned in
  4588. yes:)
  4589. { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  4590. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4591. ac_tool_warned=yes ;;
  4592. esac
  4593. RANLIB=$ac_ct_RANLIB
  4594. fi
  4595. else
  4596. RANLIB="$ac_cv_prog_RANLIB"
  4597. fi
  4598. test -z "$RANLIB" && RANLIB=:
  4599. # Determine commands to create old-style static archives.
  4600. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
  4601. old_postinstall_cmds='chmod 644 $oldlib'
  4602. old_postuninstall_cmds=
  4603. if test -n "$RANLIB"; then
  4604. case $host_os in
  4605. openbsd*)
  4606. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
  4607. ;;
  4608. *)
  4609. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
  4610. ;;
  4611. esac
  4612. old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
  4613. fi
  4614. # If no C compiler was specified, use CC.
  4615. LTCC=${LTCC-"$CC"}
  4616. # If no C compiler flags were specified, use CFLAGS.
  4617. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  4618. # Allow CC to be a program name with arguments.
  4619. compiler=$CC
  4620. # Check for command to grab the raw symbol name followed by C symbol from nm.
  4621. { $as_echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
  4622. $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
  4623. if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
  4624. $as_echo_n "(cached) " >&6
  4625. else
  4626. # These are sane defaults that work on at least a few old systems.
  4627. # [They come from Ultrix. What could be older than Ultrix?!! ;)]
  4628. # Character class describing NM global symbol codes.
  4629. symcode='[BCDEGRST]'
  4630. # Regexp to match symbols that can be accessed directly from C.
  4631. sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
  4632. # Define system-specific variables.
  4633. case $host_os in
  4634. aix*)
  4635. symcode='[BCDT]'
  4636. ;;
  4637. cygwin* | mingw* | pw32* | cegcc*)
  4638. symcode='[ABCDGISTW]'
  4639. ;;
  4640. hpux*)
  4641. if test "$host_cpu" = ia64; then
  4642. symcode='[ABCDEGRST]'
  4643. fi
  4644. ;;
  4645. irix* | nonstopux*)
  4646. symcode='[BCDEGRST]'
  4647. ;;
  4648. osf*)
  4649. symcode='[BCDEGQRST]'
  4650. ;;
  4651. solaris*)
  4652. symcode='[BDRT]'
  4653. ;;
  4654. sco3.2v5*)
  4655. symcode='[DT]'
  4656. ;;
  4657. sysv4.2uw2*)
  4658. symcode='[DT]'
  4659. ;;
  4660. sysv5* | sco5v6* | unixware* | OpenUNIX*)
  4661. symcode='[ABDT]'
  4662. ;;
  4663. sysv4)
  4664. symcode='[DFNSTU]'
  4665. ;;
  4666. esac
  4667. # If we're using GNU nm, then use its standard symbol codes.
  4668. case `$NM -V 2>&1` in
  4669. *GNU* | *'with BFD'*)
  4670. symcode='[ABCDGIRSTW]' ;;
  4671. esac
  4672. # Transform an extracted symbol line into a proper C declaration.
  4673. # Some systems (esp. on ia64) link data and code symbols differently,
  4674. # so use this general approach.
  4675. lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  4676. # Transform an extracted symbol line into symbol name and symbol address
  4677. lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
  4678. 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'"
  4679. # Handle CRLF in mingw tool chain
  4680. opt_cr=
  4681. case $build_os in
  4682. mingw*)
  4683. opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  4684. ;;
  4685. esac
  4686. # Try without a prefix underscore, then with it.
  4687. for ac_symprfx in "" "_"; do
  4688. # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  4689. symxfrm="\\1 $ac_symprfx\\2 \\2"
  4690. # Write the raw and C identifiers.
  4691. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  4692. # Fake it for dumpbin and say T for any non-static function
  4693. # and D for any global variable.
  4694. # Also find C++ and __fastcall symbols from MSVC++,
  4695. # which start with @ or ?.
  4696. lt_cv_sys_global_symbol_pipe="$AWK '"\
  4697. " {last_section=section; section=\$ 3};"\
  4698. " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
  4699. " \$ 0!~/External *\|/{next};"\
  4700. " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
  4701. " {if(hide[section]) next};"\
  4702. " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
  4703. " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
  4704. " s[1]~/^[@?]/{print s[1], s[1]; next};"\
  4705. " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
  4706. " ' prfx=^$ac_symprfx"
  4707. else
  4708. lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  4709. fi
  4710. # Check to see that the pipe works correctly.
  4711. pipe_works=no
  4712. rm -f conftest*
  4713. cat > conftest.$ac_ext <<_LT_EOF
  4714. #ifdef __cplusplus
  4715. extern "C" {
  4716. #endif
  4717. char nm_test_var;
  4718. void nm_test_func(void);
  4719. void nm_test_func(void){}
  4720. #ifdef __cplusplus
  4721. }
  4722. #endif
  4723. int main(){nm_test_var='a';nm_test_func();return(0);}
  4724. _LT_EOF
  4725. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4726. (eval $ac_compile) 2>&5
  4727. ac_status=$?
  4728. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4729. (exit $ac_status); }; then
  4730. # Now try to grab the symbols.
  4731. nlist=conftest.nm
  4732. if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
  4733. (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
  4734. ac_status=$?
  4735. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4736. (exit $ac_status); } && test -s "$nlist"; then
  4737. # Try sorting and uniquifying the output.
  4738. if sort "$nlist" | uniq > "$nlist"T; then
  4739. mv -f "$nlist"T "$nlist"
  4740. else
  4741. rm -f "$nlist"T
  4742. fi
  4743. # Make sure that we snagged all the symbols we need.
  4744. if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
  4745. if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
  4746. cat <<_LT_EOF > conftest.$ac_ext
  4747. #ifdef __cplusplus
  4748. extern "C" {
  4749. #endif
  4750. _LT_EOF
  4751. # Now generate the symbol file.
  4752. eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
  4753. cat <<_LT_EOF >> conftest.$ac_ext
  4754. /* The mapping between symbol names and symbols. */
  4755. const struct {
  4756. const char *name;
  4757. void *address;
  4758. }
  4759. lt__PROGRAM__LTX_preloaded_symbols[] =
  4760. {
  4761. { "@PROGRAM@", (void *) 0 },
  4762. _LT_EOF
  4763. $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
  4764. cat <<\_LT_EOF >> conftest.$ac_ext
  4765. {0, (void *) 0}
  4766. };
  4767. /* This works around a problem in FreeBSD linker */
  4768. #ifdef FREEBSD_WORKAROUND
  4769. static const void *lt_preloaded_setup() {
  4770. return lt__PROGRAM__LTX_preloaded_symbols;
  4771. }
  4772. #endif
  4773. #ifdef __cplusplus
  4774. }
  4775. #endif
  4776. _LT_EOF
  4777. # Now try linking the two files.
  4778. mv conftest.$ac_objext conftstm.$ac_objext
  4779. lt_save_LIBS="$LIBS"
  4780. lt_save_CFLAGS="$CFLAGS"
  4781. LIBS="conftstm.$ac_objext"
  4782. CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
  4783. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4784. (eval $ac_link) 2>&5
  4785. ac_status=$?
  4786. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4787. (exit $ac_status); } && test -s conftest${ac_exeext}; then
  4788. pipe_works=yes
  4789. fi
  4790. LIBS="$lt_save_LIBS"
  4791. CFLAGS="$lt_save_CFLAGS"
  4792. else
  4793. echo "cannot find nm_test_func in $nlist" >&5
  4794. fi
  4795. else
  4796. echo "cannot find nm_test_var in $nlist" >&5
  4797. fi
  4798. else
  4799. echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
  4800. fi
  4801. else
  4802. echo "$progname: failed program was:" >&5
  4803. cat conftest.$ac_ext >&5
  4804. fi
  4805. rm -rf conftest* conftst*
  4806. # Do not use the global_symbol_pipe unless it works.
  4807. if test "$pipe_works" = yes; then
  4808. break
  4809. else
  4810. lt_cv_sys_global_symbol_pipe=
  4811. fi
  4812. done
  4813. fi
  4814. if test -z "$lt_cv_sys_global_symbol_pipe"; then
  4815. lt_cv_sys_global_symbol_to_cdecl=
  4816. fi
  4817. if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  4818. { $as_echo "$as_me:$LINENO: result: failed" >&5
  4819. $as_echo "failed" >&6; }
  4820. else
  4821. { $as_echo "$as_me:$LINENO: result: ok" >&5
  4822. $as_echo "ok" >&6; }
  4823. fi
  4824. # Check whether --enable-libtool-lock was given.
  4825. if test "${enable_libtool_lock+set}" = set; then
  4826. enableval=$enable_libtool_lock;
  4827. fi
  4828. test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  4829. # Some flags need to be propagated to the compiler or linker for good
  4830. # libtool support.
  4831. case $host in
  4832. ia64-*-hpux*)
  4833. # Find out which ABI we are using.
  4834. echo 'int i;' > conftest.$ac_ext
  4835. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4836. (eval $ac_compile) 2>&5
  4837. ac_status=$?
  4838. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4839. (exit $ac_status); }; then
  4840. case `/usr/bin/file conftest.$ac_objext` in
  4841. *ELF-32*)
  4842. HPUX_IA64_MODE="32"
  4843. ;;
  4844. *ELF-64*)
  4845. HPUX_IA64_MODE="64"
  4846. ;;
  4847. esac
  4848. fi
  4849. rm -rf conftest*
  4850. ;;
  4851. *-*-irix6*)
  4852. # Find out which ABI we are using.
  4853. echo '#line 5587 "configure"' > conftest.$ac_ext
  4854. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4855. (eval $ac_compile) 2>&5
  4856. ac_status=$?
  4857. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4858. (exit $ac_status); }; then
  4859. if test "$lt_cv_prog_gnu_ld" = yes; then
  4860. case `/usr/bin/file conftest.$ac_objext` in
  4861. *32-bit*)
  4862. LD="${LD-ld} -melf32bsmip"
  4863. ;;
  4864. *N32*)
  4865. LD="${LD-ld} -melf32bmipn32"
  4866. ;;
  4867. *64-bit*)
  4868. LD="${LD-ld} -melf64bmip"
  4869. ;;
  4870. esac
  4871. else
  4872. case `/usr/bin/file conftest.$ac_objext` in
  4873. *32-bit*)
  4874. LD="${LD-ld} -32"
  4875. ;;
  4876. *N32*)
  4877. LD="${LD-ld} -n32"
  4878. ;;
  4879. *64-bit*)
  4880. LD="${LD-ld} -64"
  4881. ;;
  4882. esac
  4883. fi
  4884. fi
  4885. rm -rf conftest*
  4886. ;;
  4887. x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
  4888. s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
  4889. # Find out which ABI we are using.
  4890. echo 'int i;' > conftest.$ac_ext
  4891. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4892. (eval $ac_compile) 2>&5
  4893. ac_status=$?
  4894. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4895. (exit $ac_status); }; then
  4896. case `/usr/bin/file conftest.o` in
  4897. *32-bit*)
  4898. case $host in
  4899. x86_64-*kfreebsd*-gnu)
  4900. LD="${LD-ld} -m elf_i386_fbsd"
  4901. ;;
  4902. x86_64-*linux*)
  4903. LD="${LD-ld} -m elf_i386"
  4904. ;;
  4905. ppc64-*linux*|powerpc64-*linux*)
  4906. LD="${LD-ld} -m elf32ppclinux"
  4907. ;;
  4908. s390x-*linux*)
  4909. LD="${LD-ld} -m elf_s390"
  4910. ;;
  4911. sparc64-*linux*)
  4912. LD="${LD-ld} -m elf32_sparc"
  4913. ;;
  4914. esac
  4915. ;;
  4916. *64-bit*)
  4917. case $host in
  4918. x86_64-*kfreebsd*-gnu)
  4919. LD="${LD-ld} -m elf_x86_64_fbsd"
  4920. ;;
  4921. x86_64-*linux*)
  4922. LD="${LD-ld} -m elf_x86_64"
  4923. ;;
  4924. ppc*-*linux*|powerpc*-*linux*)
  4925. LD="${LD-ld} -m elf64ppc"
  4926. ;;
  4927. s390*-*linux*|s390*-*tpf*)
  4928. LD="${LD-ld} -m elf64_s390"
  4929. ;;
  4930. sparc*-*linux*)
  4931. LD="${LD-ld} -m elf64_sparc"
  4932. ;;
  4933. esac
  4934. ;;
  4935. esac
  4936. fi
  4937. rm -rf conftest*
  4938. ;;
  4939. *-*-sco3.2v5*)
  4940. # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  4941. SAVE_CFLAGS="$CFLAGS"
  4942. CFLAGS="$CFLAGS -belf"
  4943. { $as_echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
  4944. $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
  4945. if test "${lt_cv_cc_needs_belf+set}" = set; then
  4946. $as_echo_n "(cached) " >&6
  4947. else
  4948. ac_ext=c
  4949. ac_cpp='$CPP $CPPFLAGS'
  4950. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4951. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4952. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4953. cat >conftest.$ac_ext <<_ACEOF
  4954. /* confdefs.h. */
  4955. _ACEOF
  4956. cat confdefs.h >>conftest.$ac_ext
  4957. cat >>conftest.$ac_ext <<_ACEOF
  4958. /* end confdefs.h. */
  4959. int
  4960. main ()
  4961. {
  4962. ;
  4963. return 0;
  4964. }
  4965. _ACEOF
  4966. rm -f conftest.$ac_objext conftest$ac_exeext
  4967. if { (ac_try="$ac_link"
  4968. case "(($ac_try" in
  4969. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4970. *) ac_try_echo=$ac_try;;
  4971. esac
  4972. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  4973. $as_echo "$ac_try_echo") >&5
  4974. (eval "$ac_link") 2>conftest.er1
  4975. ac_status=$?
  4976. grep -v '^ *+' conftest.er1 >conftest.err
  4977. rm -f conftest.er1
  4978. cat conftest.err >&5
  4979. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4980. (exit $ac_status); } && {
  4981. test -z "$ac_c_werror_flag" ||
  4982. test ! -s conftest.err
  4983. } && test -s conftest$ac_exeext && {
  4984. test "$cross_compiling" = yes ||
  4985. $as_test_x conftest$ac_exeext
  4986. }; then
  4987. lt_cv_cc_needs_belf=yes
  4988. else
  4989. $as_echo "$as_me: failed program was:" >&5
  4990. sed 's/^/| /' conftest.$ac_ext >&5
  4991. lt_cv_cc_needs_belf=no
  4992. fi
  4993. rm -rf conftest.dSYM
  4994. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  4995. conftest$ac_exeext conftest.$ac_ext
  4996. ac_ext=c
  4997. ac_cpp='$CPP $CPPFLAGS'
  4998. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4999. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5000. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5001. fi
  5002. { $as_echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
  5003. $as_echo "$lt_cv_cc_needs_belf" >&6; }
  5004. if test x"$lt_cv_cc_needs_belf" != x"yes"; then
  5005. # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  5006. CFLAGS="$SAVE_CFLAGS"
  5007. fi
  5008. ;;
  5009. sparc*-*solaris*)
  5010. # Find out which ABI we are using.
  5011. echo 'int i;' > conftest.$ac_ext
  5012. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5013. (eval $ac_compile) 2>&5
  5014. ac_status=$?
  5015. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5016. (exit $ac_status); }; then
  5017. case `/usr/bin/file conftest.o` in
  5018. *64-bit*)
  5019. case $lt_cv_prog_gnu_ld in
  5020. yes*) LD="${LD-ld} -m elf64_sparc" ;;
  5021. *)
  5022. if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
  5023. LD="${LD-ld} -64"
  5024. fi
  5025. ;;
  5026. esac
  5027. ;;
  5028. esac
  5029. fi
  5030. rm -rf conftest*
  5031. ;;
  5032. esac
  5033. need_locks="$enable_libtool_lock"
  5034. case $host_os in
  5035. rhapsody* | darwin*)
  5036. if test -n "$ac_tool_prefix"; then
  5037. # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
  5038. set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
  5039. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  5040. $as_echo_n "checking for $ac_word... " >&6; }
  5041. if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
  5042. $as_echo_n "(cached) " >&6
  5043. else
  5044. if test -n "$DSYMUTIL"; then
  5045. ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
  5046. else
  5047. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5048. for as_dir in $PATH
  5049. do
  5050. IFS=$as_save_IFS
  5051. test -z "$as_dir" && as_dir=.
  5052. for ac_exec_ext in '' $ac_executable_extensions; do
  5053. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5054. ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
  5055. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5056. break 2
  5057. fi
  5058. done
  5059. done
  5060. IFS=$as_save_IFS
  5061. fi
  5062. fi
  5063. DSYMUTIL=$ac_cv_prog_DSYMUTIL
  5064. if test -n "$DSYMUTIL"; then
  5065. { $as_echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
  5066. $as_echo "$DSYMUTIL" >&6; }
  5067. else
  5068. { $as_echo "$as_me:$LINENO: result: no" >&5
  5069. $as_echo "no" >&6; }
  5070. fi
  5071. fi
  5072. if test -z "$ac_cv_prog_DSYMUTIL"; then
  5073. ac_ct_DSYMUTIL=$DSYMUTIL
  5074. # Extract the first word of "dsymutil", so it can be a program name with args.
  5075. set dummy dsymutil; ac_word=$2
  5076. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  5077. $as_echo_n "checking for $ac_word... " >&6; }
  5078. if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
  5079. $as_echo_n "(cached) " >&6
  5080. else
  5081. if test -n "$ac_ct_DSYMUTIL"; then
  5082. ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
  5083. else
  5084. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5085. for as_dir in $PATH
  5086. do
  5087. IFS=$as_save_IFS
  5088. test -z "$as_dir" && as_dir=.
  5089. for ac_exec_ext in '' $ac_executable_extensions; do
  5090. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5091. ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
  5092. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5093. break 2
  5094. fi
  5095. done
  5096. done
  5097. IFS=$as_save_IFS
  5098. fi
  5099. fi
  5100. ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
  5101. if test -n "$ac_ct_DSYMUTIL"; then
  5102. { $as_echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
  5103. $as_echo "$ac_ct_DSYMUTIL" >&6; }
  5104. else
  5105. { $as_echo "$as_me:$LINENO: result: no" >&5
  5106. $as_echo "no" >&6; }
  5107. fi
  5108. if test "x$ac_ct_DSYMUTIL" = x; then
  5109. DSYMUTIL=":"
  5110. else
  5111. case $cross_compiling:$ac_tool_warned in
  5112. yes:)
  5113. { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  5114. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5115. ac_tool_warned=yes ;;
  5116. esac
  5117. DSYMUTIL=$ac_ct_DSYMUTIL
  5118. fi
  5119. else
  5120. DSYMUTIL="$ac_cv_prog_DSYMUTIL"
  5121. fi
  5122. if test -n "$ac_tool_prefix"; then
  5123. # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
  5124. set dummy ${ac_tool_prefix}nmedit; ac_word=$2
  5125. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  5126. $as_echo_n "checking for $ac_word... " >&6; }
  5127. if test "${ac_cv_prog_NMEDIT+set}" = set; then
  5128. $as_echo_n "(cached) " >&6
  5129. else
  5130. if test -n "$NMEDIT"; then
  5131. ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
  5132. else
  5133. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5134. for as_dir in $PATH
  5135. do
  5136. IFS=$as_save_IFS
  5137. test -z "$as_dir" && as_dir=.
  5138. for ac_exec_ext in '' $ac_executable_extensions; do
  5139. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5140. ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
  5141. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5142. break 2
  5143. fi
  5144. done
  5145. done
  5146. IFS=$as_save_IFS
  5147. fi
  5148. fi
  5149. NMEDIT=$ac_cv_prog_NMEDIT
  5150. if test -n "$NMEDIT"; then
  5151. { $as_echo "$as_me:$LINENO: result: $NMEDIT" >&5
  5152. $as_echo "$NMEDIT" >&6; }
  5153. else
  5154. { $as_echo "$as_me:$LINENO: result: no" >&5
  5155. $as_echo "no" >&6; }
  5156. fi
  5157. fi
  5158. if test -z "$ac_cv_prog_NMEDIT"; then
  5159. ac_ct_NMEDIT=$NMEDIT
  5160. # Extract the first word of "nmedit", so it can be a program name with args.
  5161. set dummy nmedit; ac_word=$2
  5162. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  5163. $as_echo_n "checking for $ac_word... " >&6; }
  5164. if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
  5165. $as_echo_n "(cached) " >&6
  5166. else
  5167. if test -n "$ac_ct_NMEDIT"; then
  5168. ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
  5169. else
  5170. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5171. for as_dir in $PATH
  5172. do
  5173. IFS=$as_save_IFS
  5174. test -z "$as_dir" && as_dir=.
  5175. for ac_exec_ext in '' $ac_executable_extensions; do
  5176. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5177. ac_cv_prog_ac_ct_NMEDIT="nmedit"
  5178. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5179. break 2
  5180. fi
  5181. done
  5182. done
  5183. IFS=$as_save_IFS
  5184. fi
  5185. fi
  5186. ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
  5187. if test -n "$ac_ct_NMEDIT"; then
  5188. { $as_echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
  5189. $as_echo "$ac_ct_NMEDIT" >&6; }
  5190. else
  5191. { $as_echo "$as_me:$LINENO: result: no" >&5
  5192. $as_echo "no" >&6; }
  5193. fi
  5194. if test "x$ac_ct_NMEDIT" = x; then
  5195. NMEDIT=":"
  5196. else
  5197. case $cross_compiling:$ac_tool_warned in
  5198. yes:)
  5199. { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  5200. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5201. ac_tool_warned=yes ;;
  5202. esac
  5203. NMEDIT=$ac_ct_NMEDIT
  5204. fi
  5205. else
  5206. NMEDIT="$ac_cv_prog_NMEDIT"
  5207. fi
  5208. if test -n "$ac_tool_prefix"; then
  5209. # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
  5210. set dummy ${ac_tool_prefix}lipo; ac_word=$2
  5211. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  5212. $as_echo_n "checking for $ac_word... " >&6; }
  5213. if test "${ac_cv_prog_LIPO+set}" = set; then
  5214. $as_echo_n "(cached) " >&6
  5215. else
  5216. if test -n "$LIPO"; then
  5217. ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
  5218. else
  5219. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5220. for as_dir in $PATH
  5221. do
  5222. IFS=$as_save_IFS
  5223. test -z "$as_dir" && as_dir=.
  5224. for ac_exec_ext in '' $ac_executable_extensions; do
  5225. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5226. ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
  5227. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5228. break 2
  5229. fi
  5230. done
  5231. done
  5232. IFS=$as_save_IFS
  5233. fi
  5234. fi
  5235. LIPO=$ac_cv_prog_LIPO
  5236. if test -n "$LIPO"; then
  5237. { $as_echo "$as_me:$LINENO: result: $LIPO" >&5
  5238. $as_echo "$LIPO" >&6; }
  5239. else
  5240. { $as_echo "$as_me:$LINENO: result: no" >&5
  5241. $as_echo "no" >&6; }
  5242. fi
  5243. fi
  5244. if test -z "$ac_cv_prog_LIPO"; then
  5245. ac_ct_LIPO=$LIPO
  5246. # Extract the first word of "lipo", so it can be a program name with args.
  5247. set dummy lipo; ac_word=$2
  5248. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  5249. $as_echo_n "checking for $ac_word... " >&6; }
  5250. if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then
  5251. $as_echo_n "(cached) " >&6
  5252. else
  5253. if test -n "$ac_ct_LIPO"; then
  5254. ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
  5255. else
  5256. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5257. for as_dir in $PATH
  5258. do
  5259. IFS=$as_save_IFS
  5260. test -z "$as_dir" && as_dir=.
  5261. for ac_exec_ext in '' $ac_executable_extensions; do
  5262. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5263. ac_cv_prog_ac_ct_LIPO="lipo"
  5264. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5265. break 2
  5266. fi
  5267. done
  5268. done
  5269. IFS=$as_save_IFS
  5270. fi
  5271. fi
  5272. ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
  5273. if test -n "$ac_ct_LIPO"; then
  5274. { $as_echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5
  5275. $as_echo "$ac_ct_LIPO" >&6; }
  5276. else
  5277. { $as_echo "$as_me:$LINENO: result: no" >&5
  5278. $as_echo "no" >&6; }
  5279. fi
  5280. if test "x$ac_ct_LIPO" = x; then
  5281. LIPO=":"
  5282. else
  5283. case $cross_compiling:$ac_tool_warned in
  5284. yes:)
  5285. { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  5286. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5287. ac_tool_warned=yes ;;
  5288. esac
  5289. LIPO=$ac_ct_LIPO
  5290. fi
  5291. else
  5292. LIPO="$ac_cv_prog_LIPO"
  5293. fi
  5294. if test -n "$ac_tool_prefix"; then
  5295. # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
  5296. set dummy ${ac_tool_prefix}otool; ac_word=$2
  5297. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  5298. $as_echo_n "checking for $ac_word... " >&6; }
  5299. if test "${ac_cv_prog_OTOOL+set}" = set; then
  5300. $as_echo_n "(cached) " >&6
  5301. else
  5302. if test -n "$OTOOL"; then
  5303. ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
  5304. else
  5305. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5306. for as_dir in $PATH
  5307. do
  5308. IFS=$as_save_IFS
  5309. test -z "$as_dir" && as_dir=.
  5310. for ac_exec_ext in '' $ac_executable_extensions; do
  5311. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5312. ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
  5313. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5314. break 2
  5315. fi
  5316. done
  5317. done
  5318. IFS=$as_save_IFS
  5319. fi
  5320. fi
  5321. OTOOL=$ac_cv_prog_OTOOL
  5322. if test -n "$OTOOL"; then
  5323. { $as_echo "$as_me:$LINENO: result: $OTOOL" >&5
  5324. $as_echo "$OTOOL" >&6; }
  5325. else
  5326. { $as_echo "$as_me:$LINENO: result: no" >&5
  5327. $as_echo "no" >&6; }
  5328. fi
  5329. fi
  5330. if test -z "$ac_cv_prog_OTOOL"; then
  5331. ac_ct_OTOOL=$OTOOL
  5332. # Extract the first word of "otool", so it can be a program name with args.
  5333. set dummy otool; ac_word=$2
  5334. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  5335. $as_echo_n "checking for $ac_word... " >&6; }
  5336. if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then
  5337. $as_echo_n "(cached) " >&6
  5338. else
  5339. if test -n "$ac_ct_OTOOL"; then
  5340. ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
  5341. else
  5342. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5343. for as_dir in $PATH
  5344. do
  5345. IFS=$as_save_IFS
  5346. test -z "$as_dir" && as_dir=.
  5347. for ac_exec_ext in '' $ac_executable_extensions; do
  5348. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5349. ac_cv_prog_ac_ct_OTOOL="otool"
  5350. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5351. break 2
  5352. fi
  5353. done
  5354. done
  5355. IFS=$as_save_IFS
  5356. fi
  5357. fi
  5358. ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
  5359. if test -n "$ac_ct_OTOOL"; then
  5360. { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5
  5361. $as_echo "$ac_ct_OTOOL" >&6; }
  5362. else
  5363. { $as_echo "$as_me:$LINENO: result: no" >&5
  5364. $as_echo "no" >&6; }
  5365. fi
  5366. if test "x$ac_ct_OTOOL" = x; then
  5367. OTOOL=":"
  5368. else
  5369. case $cross_compiling:$ac_tool_warned in
  5370. yes:)
  5371. { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  5372. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5373. ac_tool_warned=yes ;;
  5374. esac
  5375. OTOOL=$ac_ct_OTOOL
  5376. fi
  5377. else
  5378. OTOOL="$ac_cv_prog_OTOOL"
  5379. fi
  5380. if test -n "$ac_tool_prefix"; then
  5381. # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
  5382. set dummy ${ac_tool_prefix}otool64; ac_word=$2
  5383. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  5384. $as_echo_n "checking for $ac_word... " >&6; }
  5385. if test "${ac_cv_prog_OTOOL64+set}" = set; then
  5386. $as_echo_n "(cached) " >&6
  5387. else
  5388. if test -n "$OTOOL64"; then
  5389. ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
  5390. else
  5391. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5392. for as_dir in $PATH
  5393. do
  5394. IFS=$as_save_IFS
  5395. test -z "$as_dir" && as_dir=.
  5396. for ac_exec_ext in '' $ac_executable_extensions; do
  5397. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5398. ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
  5399. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5400. break 2
  5401. fi
  5402. done
  5403. done
  5404. IFS=$as_save_IFS
  5405. fi
  5406. fi
  5407. OTOOL64=$ac_cv_prog_OTOOL64
  5408. if test -n "$OTOOL64"; then
  5409. { $as_echo "$as_me:$LINENO: result: $OTOOL64" >&5
  5410. $as_echo "$OTOOL64" >&6; }
  5411. else
  5412. { $as_echo "$as_me:$LINENO: result: no" >&5
  5413. $as_echo "no" >&6; }
  5414. fi
  5415. fi
  5416. if test -z "$ac_cv_prog_OTOOL64"; then
  5417. ac_ct_OTOOL64=$OTOOL64
  5418. # Extract the first word of "otool64", so it can be a program name with args.
  5419. set dummy otool64; ac_word=$2
  5420. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  5421. $as_echo_n "checking for $ac_word... " >&6; }
  5422. if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then
  5423. $as_echo_n "(cached) " >&6
  5424. else
  5425. if test -n "$ac_ct_OTOOL64"; then
  5426. ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
  5427. else
  5428. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5429. for as_dir in $PATH
  5430. do
  5431. IFS=$as_save_IFS
  5432. test -z "$as_dir" && as_dir=.
  5433. for ac_exec_ext in '' $ac_executable_extensions; do
  5434. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5435. ac_cv_prog_ac_ct_OTOOL64="otool64"
  5436. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5437. break 2
  5438. fi
  5439. done
  5440. done
  5441. IFS=$as_save_IFS
  5442. fi
  5443. fi
  5444. ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
  5445. if test -n "$ac_ct_OTOOL64"; then
  5446. { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5
  5447. $as_echo "$ac_ct_OTOOL64" >&6; }
  5448. else
  5449. { $as_echo "$as_me:$LINENO: result: no" >&5
  5450. $as_echo "no" >&6; }
  5451. fi
  5452. if test "x$ac_ct_OTOOL64" = x; then
  5453. OTOOL64=":"
  5454. else
  5455. case $cross_compiling:$ac_tool_warned in
  5456. yes:)
  5457. { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  5458. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5459. ac_tool_warned=yes ;;
  5460. esac
  5461. OTOOL64=$ac_ct_OTOOL64
  5462. fi
  5463. else
  5464. OTOOL64="$ac_cv_prog_OTOOL64"
  5465. fi
  5466. { $as_echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
  5467. $as_echo_n "checking for -single_module linker flag... " >&6; }
  5468. if test "${lt_cv_apple_cc_single_mod+set}" = set; then
  5469. $as_echo_n "(cached) " >&6
  5470. else
  5471. lt_cv_apple_cc_single_mod=no
  5472. if test -z "${LT_MULTI_MODULE}"; then
  5473. # By default we will add the -single_module flag. You can override
  5474. # by either setting the environment variable LT_MULTI_MODULE
  5475. # non-empty at configure time, or by adding -multi_module to the
  5476. # link flags.
  5477. rm -rf libconftest.dylib*
  5478. echo "int foo(void){return 1;}" > conftest.c
  5479. echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  5480. -dynamiclib -Wl,-single_module conftest.c" >&5
  5481. $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  5482. -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
  5483. _lt_result=$?
  5484. if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
  5485. lt_cv_apple_cc_single_mod=yes
  5486. else
  5487. cat conftest.err >&5
  5488. fi
  5489. rm -rf libconftest.dylib*
  5490. rm -f conftest.*
  5491. fi
  5492. fi
  5493. { $as_echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
  5494. $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
  5495. { $as_echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
  5496. $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
  5497. if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
  5498. $as_echo_n "(cached) " >&6
  5499. else
  5500. lt_cv_ld_exported_symbols_list=no
  5501. save_LDFLAGS=$LDFLAGS
  5502. echo "_main" > conftest.sym
  5503. LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
  5504. cat >conftest.$ac_ext <<_ACEOF
  5505. /* confdefs.h. */
  5506. _ACEOF
  5507. cat confdefs.h >>conftest.$ac_ext
  5508. cat >>conftest.$ac_ext <<_ACEOF
  5509. /* end confdefs.h. */
  5510. int
  5511. main ()
  5512. {
  5513. ;
  5514. return 0;
  5515. }
  5516. _ACEOF
  5517. rm -f conftest.$ac_objext conftest$ac_exeext
  5518. if { (ac_try="$ac_link"
  5519. case "(($ac_try" in
  5520. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5521. *) ac_try_echo=$ac_try;;
  5522. esac
  5523. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  5524. $as_echo "$ac_try_echo") >&5
  5525. (eval "$ac_link") 2>conftest.er1
  5526. ac_status=$?
  5527. grep -v '^ *+' conftest.er1 >conftest.err
  5528. rm -f conftest.er1
  5529. cat conftest.err >&5
  5530. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5531. (exit $ac_status); } && {
  5532. test -z "$ac_c_werror_flag" ||
  5533. test ! -s conftest.err
  5534. } && test -s conftest$ac_exeext && {
  5535. test "$cross_compiling" = yes ||
  5536. $as_test_x conftest$ac_exeext
  5537. }; then
  5538. lt_cv_ld_exported_symbols_list=yes
  5539. else
  5540. $as_echo "$as_me: failed program was:" >&5
  5541. sed 's/^/| /' conftest.$ac_ext >&5
  5542. lt_cv_ld_exported_symbols_list=no
  5543. fi
  5544. rm -rf conftest.dSYM
  5545. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  5546. conftest$ac_exeext conftest.$ac_ext
  5547. LDFLAGS="$save_LDFLAGS"
  5548. fi
  5549. { $as_echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
  5550. $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
  5551. case $host_os in
  5552. rhapsody* | darwin1.[012])
  5553. _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
  5554. darwin1.*)
  5555. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  5556. darwin*) # darwin 5.x on
  5557. # if running on 10.5 or later, the deployment target defaults
  5558. # to the OS version, if on x86, and 10.4, the deployment
  5559. # target defaults to 10.4. Don't you love it?
  5560. case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
  5561. 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
  5562. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  5563. 10.[012]*)
  5564. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  5565. 10.*)
  5566. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  5567. esac
  5568. ;;
  5569. esac
  5570. if test "$lt_cv_apple_cc_single_mod" = "yes"; then
  5571. _lt_dar_single_mod='$single_module'
  5572. fi
  5573. if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
  5574. _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
  5575. else
  5576. _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
  5577. fi
  5578. if test "$DSYMUTIL" != ":"; then
  5579. _lt_dsymutil='~$DSYMUTIL $lib || :'
  5580. else
  5581. _lt_dsymutil=
  5582. fi
  5583. ;;
  5584. esac
  5585. ac_ext=c
  5586. ac_cpp='$CPP $CPPFLAGS'
  5587. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5588. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5589. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5590. { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
  5591. $as_echo_n "checking how to run the C preprocessor... " >&6; }
  5592. # On Suns, sometimes $CPP names a directory.
  5593. if test -n "$CPP" && test -d "$CPP"; then
  5594. CPP=
  5595. fi
  5596. if test -z "$CPP"; then
  5597. if test "${ac_cv_prog_CPP+set}" = set; then
  5598. $as_echo_n "(cached) " >&6
  5599. else
  5600. # Double quotes because CPP needs to be expanded
  5601. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  5602. do
  5603. ac_preproc_ok=false
  5604. for ac_c_preproc_warn_flag in '' yes
  5605. do
  5606. # Use a header file that comes with gcc, so configuring glibc
  5607. # with a fresh cross-compiler works.
  5608. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  5609. # <limits.h> exists even on freestanding compilers.
  5610. # On the NeXT, cc -E runs the code through the compiler's parser,
  5611. # not just through cpp. "Syntax error" is here to catch this case.
  5612. cat >conftest.$ac_ext <<_ACEOF
  5613. /* confdefs.h. */
  5614. _ACEOF
  5615. cat confdefs.h >>conftest.$ac_ext
  5616. cat >>conftest.$ac_ext <<_ACEOF
  5617. /* end confdefs.h. */
  5618. #ifdef __STDC__
  5619. # include <limits.h>
  5620. #else
  5621. # include <assert.h>
  5622. #endif
  5623. Syntax error
  5624. _ACEOF
  5625. if { (ac_try="$ac_cpp conftest.$ac_ext"
  5626. case "(($ac_try" in
  5627. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5628. *) ac_try_echo=$ac_try;;
  5629. esac
  5630. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  5631. $as_echo "$ac_try_echo") >&5
  5632. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  5633. ac_status=$?
  5634. grep -v '^ *+' conftest.er1 >conftest.err
  5635. rm -f conftest.er1
  5636. cat conftest.err >&5
  5637. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5638. (exit $ac_status); } >/dev/null && {
  5639. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  5640. test ! -s conftest.err
  5641. }; then
  5642. :
  5643. else
  5644. $as_echo "$as_me: failed program was:" >&5
  5645. sed 's/^/| /' conftest.$ac_ext >&5
  5646. # Broken: fails on valid input.
  5647. continue
  5648. fi
  5649. rm -f conftest.err conftest.$ac_ext
  5650. # OK, works on sane cases. Now check whether nonexistent headers
  5651. # can be detected and how.
  5652. cat >conftest.$ac_ext <<_ACEOF
  5653. /* confdefs.h. */
  5654. _ACEOF
  5655. cat confdefs.h >>conftest.$ac_ext
  5656. cat >>conftest.$ac_ext <<_ACEOF
  5657. /* end confdefs.h. */
  5658. #include <ac_nonexistent.h>
  5659. _ACEOF
  5660. if { (ac_try="$ac_cpp conftest.$ac_ext"
  5661. case "(($ac_try" in
  5662. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5663. *) ac_try_echo=$ac_try;;
  5664. esac
  5665. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  5666. $as_echo "$ac_try_echo") >&5
  5667. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  5668. ac_status=$?
  5669. grep -v '^ *+' conftest.er1 >conftest.err
  5670. rm -f conftest.er1
  5671. cat conftest.err >&5
  5672. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5673. (exit $ac_status); } >/dev/null && {
  5674. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  5675. test ! -s conftest.err
  5676. }; then
  5677. # Broken: success on invalid input.
  5678. continue
  5679. else
  5680. $as_echo "$as_me: failed program was:" >&5
  5681. sed 's/^/| /' conftest.$ac_ext >&5
  5682. # Passes both tests.
  5683. ac_preproc_ok=:
  5684. break
  5685. fi
  5686. rm -f conftest.err conftest.$ac_ext
  5687. done
  5688. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  5689. rm -f conftest.err conftest.$ac_ext
  5690. if $ac_preproc_ok; then
  5691. break
  5692. fi
  5693. done
  5694. ac_cv_prog_CPP=$CPP
  5695. fi
  5696. CPP=$ac_cv_prog_CPP
  5697. else
  5698. ac_cv_prog_CPP=$CPP
  5699. fi
  5700. { $as_echo "$as_me:$LINENO: result: $CPP" >&5
  5701. $as_echo "$CPP" >&6; }
  5702. ac_preproc_ok=false
  5703. for ac_c_preproc_warn_flag in '' yes
  5704. do
  5705. # Use a header file that comes with gcc, so configuring glibc
  5706. # with a fresh cross-compiler works.
  5707. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  5708. # <limits.h> exists even on freestanding compilers.
  5709. # On the NeXT, cc -E runs the code through the compiler's parser,
  5710. # not just through cpp. "Syntax error" is here to catch this case.
  5711. cat >conftest.$ac_ext <<_ACEOF
  5712. /* confdefs.h. */
  5713. _ACEOF
  5714. cat confdefs.h >>conftest.$ac_ext
  5715. cat >>conftest.$ac_ext <<_ACEOF
  5716. /* end confdefs.h. */
  5717. #ifdef __STDC__
  5718. # include <limits.h>
  5719. #else
  5720. # include <assert.h>
  5721. #endif
  5722. Syntax error
  5723. _ACEOF
  5724. if { (ac_try="$ac_cpp conftest.$ac_ext"
  5725. case "(($ac_try" in
  5726. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5727. *) ac_try_echo=$ac_try;;
  5728. esac
  5729. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  5730. $as_echo "$ac_try_echo") >&5
  5731. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  5732. ac_status=$?
  5733. grep -v '^ *+' conftest.er1 >conftest.err
  5734. rm -f conftest.er1
  5735. cat conftest.err >&5
  5736. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5737. (exit $ac_status); } >/dev/null && {
  5738. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  5739. test ! -s conftest.err
  5740. }; then
  5741. :
  5742. else
  5743. $as_echo "$as_me: failed program was:" >&5
  5744. sed 's/^/| /' conftest.$ac_ext >&5
  5745. # Broken: fails on valid input.
  5746. continue
  5747. fi
  5748. rm -f conftest.err conftest.$ac_ext
  5749. # OK, works on sane cases. Now check whether nonexistent headers
  5750. # can be detected and how.
  5751. cat >conftest.$ac_ext <<_ACEOF
  5752. /* confdefs.h. */
  5753. _ACEOF
  5754. cat confdefs.h >>conftest.$ac_ext
  5755. cat >>conftest.$ac_ext <<_ACEOF
  5756. /* end confdefs.h. */
  5757. #include <ac_nonexistent.h>
  5758. _ACEOF
  5759. if { (ac_try="$ac_cpp conftest.$ac_ext"
  5760. case "(($ac_try" in
  5761. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5762. *) ac_try_echo=$ac_try;;
  5763. esac
  5764. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  5765. $as_echo "$ac_try_echo") >&5
  5766. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  5767. ac_status=$?
  5768. grep -v '^ *+' conftest.er1 >conftest.err
  5769. rm -f conftest.er1
  5770. cat conftest.err >&5
  5771. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5772. (exit $ac_status); } >/dev/null && {
  5773. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  5774. test ! -s conftest.err
  5775. }; then
  5776. # Broken: success on invalid input.
  5777. continue
  5778. else
  5779. $as_echo "$as_me: failed program was:" >&5
  5780. sed 's/^/| /' conftest.$ac_ext >&5
  5781. # Passes both tests.
  5782. ac_preproc_ok=:
  5783. break
  5784. fi
  5785. rm -f conftest.err conftest.$ac_ext
  5786. done
  5787. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  5788. rm -f conftest.err conftest.$ac_ext
  5789. if $ac_preproc_ok; then
  5790. :
  5791. else
  5792. { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  5793. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  5794. { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
  5795. See \`config.log' for more details." >&5
  5796. $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
  5797. See \`config.log' for more details." >&2;}
  5798. { (exit 1); exit 1; }; }; }
  5799. fi
  5800. ac_ext=c
  5801. ac_cpp='$CPP $CPPFLAGS'
  5802. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5803. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5804. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5805. { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
  5806. $as_echo_n "checking for ANSI C header files... " >&6; }
  5807. if test "${ac_cv_header_stdc+set}" = set; then
  5808. $as_echo_n "(cached) " >&6
  5809. else
  5810. cat >conftest.$ac_ext <<_ACEOF
  5811. /* confdefs.h. */
  5812. _ACEOF
  5813. cat confdefs.h >>conftest.$ac_ext
  5814. cat >>conftest.$ac_ext <<_ACEOF
  5815. /* end confdefs.h. */
  5816. #include <stdlib.h>
  5817. #include <stdarg.h>
  5818. #include <string.h>
  5819. #include <float.h>
  5820. int
  5821. main ()
  5822. {
  5823. ;
  5824. return 0;
  5825. }
  5826. _ACEOF
  5827. rm -f conftest.$ac_objext
  5828. if { (ac_try="$ac_compile"
  5829. case "(($ac_try" in
  5830. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5831. *) ac_try_echo=$ac_try;;
  5832. esac
  5833. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  5834. $as_echo "$ac_try_echo") >&5
  5835. (eval "$ac_compile") 2>conftest.er1
  5836. ac_status=$?
  5837. grep -v '^ *+' conftest.er1 >conftest.err
  5838. rm -f conftest.er1
  5839. cat conftest.err >&5
  5840. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5841. (exit $ac_status); } && {
  5842. test -z "$ac_c_werror_flag" ||
  5843. test ! -s conftest.err
  5844. } && test -s conftest.$ac_objext; then
  5845. ac_cv_header_stdc=yes
  5846. else
  5847. $as_echo "$as_me: failed program was:" >&5
  5848. sed 's/^/| /' conftest.$ac_ext >&5
  5849. ac_cv_header_stdc=no
  5850. fi
  5851. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5852. if test $ac_cv_header_stdc = yes; then
  5853. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  5854. cat >conftest.$ac_ext <<_ACEOF
  5855. /* confdefs.h. */
  5856. _ACEOF
  5857. cat confdefs.h >>conftest.$ac_ext
  5858. cat >>conftest.$ac_ext <<_ACEOF
  5859. /* end confdefs.h. */
  5860. #include <string.h>
  5861. _ACEOF
  5862. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  5863. $EGREP "memchr" >/dev/null 2>&1; then
  5864. :
  5865. else
  5866. ac_cv_header_stdc=no
  5867. fi
  5868. rm -f conftest*
  5869. fi
  5870. if test $ac_cv_header_stdc = yes; then
  5871. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  5872. cat >conftest.$ac_ext <<_ACEOF
  5873. /* confdefs.h. */
  5874. _ACEOF
  5875. cat confdefs.h >>conftest.$ac_ext
  5876. cat >>conftest.$ac_ext <<_ACEOF
  5877. /* end confdefs.h. */
  5878. #include <stdlib.h>
  5879. _ACEOF
  5880. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  5881. $EGREP "free" >/dev/null 2>&1; then
  5882. :
  5883. else
  5884. ac_cv_header_stdc=no
  5885. fi
  5886. rm -f conftest*
  5887. fi
  5888. if test $ac_cv_header_stdc = yes; then
  5889. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  5890. if test "$cross_compiling" = yes; then
  5891. :
  5892. else
  5893. cat >conftest.$ac_ext <<_ACEOF
  5894. /* confdefs.h. */
  5895. _ACEOF
  5896. cat confdefs.h >>conftest.$ac_ext
  5897. cat >>conftest.$ac_ext <<_ACEOF
  5898. /* end confdefs.h. */
  5899. #include <ctype.h>
  5900. #include <stdlib.h>
  5901. #if ((' ' & 0x0FF) == 0x020)
  5902. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  5903. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  5904. #else
  5905. # define ISLOWER(c) \
  5906. (('a' <= (c) && (c) <= 'i') \
  5907. || ('j' <= (c) && (c) <= 'r') \
  5908. || ('s' <= (c) && (c) <= 'z'))
  5909. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  5910. #endif
  5911. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  5912. int
  5913. main ()
  5914. {
  5915. int i;
  5916. for (i = 0; i < 256; i++)
  5917. if (XOR (islower (i), ISLOWER (i))
  5918. || toupper (i) != TOUPPER (i))
  5919. return 2;
  5920. return 0;
  5921. }
  5922. _ACEOF
  5923. rm -f conftest$ac_exeext
  5924. if { (ac_try="$ac_link"
  5925. case "(($ac_try" in
  5926. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5927. *) ac_try_echo=$ac_try;;
  5928. esac
  5929. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  5930. $as_echo "$ac_try_echo") >&5
  5931. (eval "$ac_link") 2>&5
  5932. ac_status=$?
  5933. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5934. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  5935. { (case "(($ac_try" in
  5936. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5937. *) ac_try_echo=$ac_try;;
  5938. esac
  5939. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  5940. $as_echo "$ac_try_echo") >&5
  5941. (eval "$ac_try") 2>&5
  5942. ac_status=$?
  5943. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5944. (exit $ac_status); }; }; then
  5945. :
  5946. else
  5947. $as_echo "$as_me: program exited with status $ac_status" >&5
  5948. $as_echo "$as_me: failed program was:" >&5
  5949. sed 's/^/| /' conftest.$ac_ext >&5
  5950. ( exit $ac_status )
  5951. ac_cv_header_stdc=no
  5952. fi
  5953. rm -rf conftest.dSYM
  5954. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  5955. fi
  5956. fi
  5957. fi
  5958. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
  5959. $as_echo "$ac_cv_header_stdc" >&6; }
  5960. if test $ac_cv_header_stdc = yes; then
  5961. cat >>confdefs.h <<\_ACEOF
  5962. #define STDC_HEADERS 1
  5963. _ACEOF
  5964. fi
  5965. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  5966. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  5967. inttypes.h stdint.h unistd.h
  5968. do
  5969. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  5970. { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  5971. $as_echo_n "checking for $ac_header... " >&6; }
  5972. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  5973. $as_echo_n "(cached) " >&6
  5974. else
  5975. cat >conftest.$ac_ext <<_ACEOF
  5976. /* confdefs.h. */
  5977. _ACEOF
  5978. cat confdefs.h >>conftest.$ac_ext
  5979. cat >>conftest.$ac_ext <<_ACEOF
  5980. /* end confdefs.h. */
  5981. $ac_includes_default
  5982. #include <$ac_header>
  5983. _ACEOF
  5984. rm -f conftest.$ac_objext
  5985. if { (ac_try="$ac_compile"
  5986. case "(($ac_try" in
  5987. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5988. *) ac_try_echo=$ac_try;;
  5989. esac
  5990. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  5991. $as_echo "$ac_try_echo") >&5
  5992. (eval "$ac_compile") 2>conftest.er1
  5993. ac_status=$?
  5994. grep -v '^ *+' conftest.er1 >conftest.err
  5995. rm -f conftest.er1
  5996. cat conftest.err >&5
  5997. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5998. (exit $ac_status); } && {
  5999. test -z "$ac_c_werror_flag" ||
  6000. test ! -s conftest.err
  6001. } && test -s conftest.$ac_objext; then
  6002. eval "$as_ac_Header=yes"
  6003. else
  6004. $as_echo "$as_me: failed program was:" >&5
  6005. sed 's/^/| /' conftest.$ac_ext >&5
  6006. eval "$as_ac_Header=no"
  6007. fi
  6008. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6009. fi
  6010. ac_res=`eval 'as_val=${'$as_ac_Header'}
  6011. $as_echo "$as_val"'`
  6012. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  6013. $as_echo "$ac_res" >&6; }
  6014. as_val=`eval 'as_val=${'$as_ac_Header'}
  6015. $as_echo "$as_val"'`
  6016. if test "x$as_val" = x""yes; then
  6017. cat >>confdefs.h <<_ACEOF
  6018. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  6019. _ACEOF
  6020. fi
  6021. done
  6022. for ac_header in dlfcn.h
  6023. do
  6024. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  6025. { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  6026. $as_echo_n "checking for $ac_header... " >&6; }
  6027. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  6028. $as_echo_n "(cached) " >&6
  6029. else
  6030. cat >conftest.$ac_ext <<_ACEOF
  6031. /* confdefs.h. */
  6032. _ACEOF
  6033. cat confdefs.h >>conftest.$ac_ext
  6034. cat >>conftest.$ac_ext <<_ACEOF
  6035. /* end confdefs.h. */
  6036. $ac_includes_default
  6037. #include <$ac_header>
  6038. _ACEOF
  6039. rm -f conftest.$ac_objext
  6040. if { (ac_try="$ac_compile"
  6041. case "(($ac_try" in
  6042. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6043. *) ac_try_echo=$ac_try;;
  6044. esac
  6045. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  6046. $as_echo "$ac_try_echo") >&5
  6047. (eval "$ac_compile") 2>conftest.er1
  6048. ac_status=$?
  6049. grep -v '^ *+' conftest.er1 >conftest.err
  6050. rm -f conftest.er1
  6051. cat conftest.err >&5
  6052. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6053. (exit $ac_status); } && {
  6054. test -z "$ac_c_werror_flag" ||
  6055. test ! -s conftest.err
  6056. } && test -s conftest.$ac_objext; then
  6057. eval "$as_ac_Header=yes"
  6058. else
  6059. $as_echo "$as_me: failed program was:" >&5
  6060. sed 's/^/| /' conftest.$ac_ext >&5
  6061. eval "$as_ac_Header=no"
  6062. fi
  6063. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6064. fi
  6065. ac_res=`eval 'as_val=${'$as_ac_Header'}
  6066. $as_echo "$as_val"'`
  6067. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  6068. $as_echo "$ac_res" >&6; }
  6069. as_val=`eval 'as_val=${'$as_ac_Header'}
  6070. $as_echo "$as_val"'`
  6071. if test "x$as_val" = x""yes; then
  6072. cat >>confdefs.h <<_ACEOF
  6073. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  6074. _ACEOF
  6075. fi
  6076. done
  6077. # Set options
  6078. enable_dlopen=no
  6079. enable_win32_dll=no
  6080. # Check whether --enable-static was given.
  6081. if test "${enable_static+set}" = set; then
  6082. enableval=$enable_static; p=${PACKAGE-default}
  6083. case $enableval in
  6084. yes) enable_static=yes ;;
  6085. no) enable_static=no ;;
  6086. *)
  6087. enable_static=no
  6088. # Look at the argument we got. We use all the common list separators.
  6089. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  6090. for pkg in $enableval; do
  6091. IFS="$lt_save_ifs"
  6092. if test "X$pkg" = "X$p"; then
  6093. enable_static=yes
  6094. fi
  6095. done
  6096. IFS="$lt_save_ifs"
  6097. ;;
  6098. esac
  6099. else
  6100. enable_static=yes
  6101. fi
  6102. # Check whether --with-pic was given.
  6103. if test "${with_pic+set}" = set; then
  6104. withval=$with_pic; pic_mode="$withval"
  6105. else
  6106. pic_mode=default
  6107. fi
  6108. test -z "$pic_mode" && pic_mode=default
  6109. # Check whether --enable-fast-install was given.
  6110. if test "${enable_fast_install+set}" = set; then
  6111. enableval=$enable_fast_install; p=${PACKAGE-default}
  6112. case $enableval in
  6113. yes) enable_fast_install=yes ;;
  6114. no) enable_fast_install=no ;;
  6115. *)
  6116. enable_fast_install=no
  6117. # Look at the argument we got. We use all the common list separators.
  6118. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  6119. for pkg in $enableval; do
  6120. IFS="$lt_save_ifs"
  6121. if test "X$pkg" = "X$p"; then
  6122. enable_fast_install=yes
  6123. fi
  6124. done
  6125. IFS="$lt_save_ifs"
  6126. ;;
  6127. esac
  6128. else
  6129. enable_fast_install=yes
  6130. fi
  6131. # This can be used to rebuild libtool when needed
  6132. LIBTOOL_DEPS="$ltmain"
  6133. # Always use our own libtool.
  6134. LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  6135. test -z "$LN_S" && LN_S="ln -s"
  6136. if test -n "${ZSH_VERSION+set}" ; then
  6137. setopt NO_GLOB_SUBST
  6138. fi
  6139. { $as_echo "$as_me:$LINENO: checking for objdir" >&5
  6140. $as_echo_n "checking for objdir... " >&6; }
  6141. if test "${lt_cv_objdir+set}" = set; then
  6142. $as_echo_n "(cached) " >&6
  6143. else
  6144. rm -f .libs 2>/dev/null
  6145. mkdir .libs 2>/dev/null
  6146. if test -d .libs; then
  6147. lt_cv_objdir=.libs
  6148. else
  6149. # MS-DOS does not allow filenames that begin with a dot.
  6150. lt_cv_objdir=_libs
  6151. fi
  6152. rmdir .libs 2>/dev/null
  6153. fi
  6154. { $as_echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
  6155. $as_echo "$lt_cv_objdir" >&6; }
  6156. objdir=$lt_cv_objdir
  6157. cat >>confdefs.h <<_ACEOF
  6158. #define LT_OBJDIR "$lt_cv_objdir/"
  6159. _ACEOF
  6160. case $host_os in
  6161. aix3*)
  6162. # AIX sometimes has problems with the GCC collect2 program. For some
  6163. # reason, if we set the COLLECT_NAMES environment variable, the problems
  6164. # vanish in a puff of smoke.
  6165. if test "X${COLLECT_NAMES+set}" != Xset; then
  6166. COLLECT_NAMES=
  6167. export COLLECT_NAMES
  6168. fi
  6169. ;;
  6170. esac
  6171. # Sed substitution that helps us do robust quoting. It backslashifies
  6172. # metacharacters that are still active within double-quoted strings.
  6173. sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
  6174. # Same as above, but do not quote variable references.
  6175. double_quote_subst='s/\(["`\\]\)/\\\1/g'
  6176. # Sed substitution to delay expansion of an escaped shell variable in a
  6177. # double_quote_subst'ed string.
  6178. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  6179. # Sed substitution to delay expansion of an escaped single quote.
  6180. delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
  6181. # Sed substitution to avoid accidental globbing in evaled expressions
  6182. no_glob_subst='s/\*/\\\*/g'
  6183. # Global variables:
  6184. ofile=libtool
  6185. can_build_shared=yes
  6186. # All known linkers require a `.a' archive for static linking (except MSVC,
  6187. # which needs '.lib').
  6188. libext=a
  6189. with_gnu_ld="$lt_cv_prog_gnu_ld"
  6190. old_CC="$CC"
  6191. old_CFLAGS="$CFLAGS"
  6192. # Set sane defaults for various variables
  6193. test -z "$CC" && CC=cc
  6194. test -z "$LTCC" && LTCC=$CC
  6195. test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  6196. test -z "$LD" && LD=ld
  6197. test -z "$ac_objext" && ac_objext=o
  6198. for cc_temp in $compiler""; do
  6199. case $cc_temp in
  6200. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  6201. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  6202. \-*) ;;
  6203. *) break;;
  6204. esac
  6205. done
  6206. cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  6207. # Only perform the check for file, if the check method requires it
  6208. test -z "$MAGIC_CMD" && MAGIC_CMD=file
  6209. case $deplibs_check_method in
  6210. file_magic*)
  6211. if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  6212. { $as_echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
  6213. $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
  6214. if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
  6215. $as_echo_n "(cached) " >&6
  6216. else
  6217. case $MAGIC_CMD in
  6218. [\\/*] | ?:[\\/]*)
  6219. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  6220. ;;
  6221. *)
  6222. lt_save_MAGIC_CMD="$MAGIC_CMD"
  6223. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  6224. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  6225. for ac_dir in $ac_dummy; do
  6226. IFS="$lt_save_ifs"
  6227. test -z "$ac_dir" && ac_dir=.
  6228. if test -f $ac_dir/${ac_tool_prefix}file; then
  6229. lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
  6230. if test -n "$file_magic_test_file"; then
  6231. case $deplibs_check_method in
  6232. "file_magic "*)
  6233. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  6234. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6235. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  6236. $EGREP "$file_magic_regex" > /dev/null; then
  6237. :
  6238. else
  6239. cat <<_LT_EOF 1>&2
  6240. *** Warning: the command libtool uses to detect shared libraries,
  6241. *** $file_magic_cmd, produces output that libtool cannot recognize.
  6242. *** The result is that libtool may fail to recognize shared libraries
  6243. *** as such. This will affect the creation of libtool libraries that
  6244. *** depend on shared libraries, but programs linked with such libtool
  6245. *** libraries will work regardless of this problem. Nevertheless, you
  6246. *** may want to report the problem to your system manager and/or to
  6247. *** bug-libtool@gnu.org
  6248. _LT_EOF
  6249. fi ;;
  6250. esac
  6251. fi
  6252. break
  6253. fi
  6254. done
  6255. IFS="$lt_save_ifs"
  6256. MAGIC_CMD="$lt_save_MAGIC_CMD"
  6257. ;;
  6258. esac
  6259. fi
  6260. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6261. if test -n "$MAGIC_CMD"; then
  6262. { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
  6263. $as_echo "$MAGIC_CMD" >&6; }
  6264. else
  6265. { $as_echo "$as_me:$LINENO: result: no" >&5
  6266. $as_echo "no" >&6; }
  6267. fi
  6268. if test -z "$lt_cv_path_MAGIC_CMD"; then
  6269. if test -n "$ac_tool_prefix"; then
  6270. { $as_echo "$as_me:$LINENO: checking for file" >&5
  6271. $as_echo_n "checking for file... " >&6; }
  6272. if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
  6273. $as_echo_n "(cached) " >&6
  6274. else
  6275. case $MAGIC_CMD in
  6276. [\\/*] | ?:[\\/]*)
  6277. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  6278. ;;
  6279. *)
  6280. lt_save_MAGIC_CMD="$MAGIC_CMD"
  6281. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  6282. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  6283. for ac_dir in $ac_dummy; do
  6284. IFS="$lt_save_ifs"
  6285. test -z "$ac_dir" && ac_dir=.
  6286. if test -f $ac_dir/file; then
  6287. lt_cv_path_MAGIC_CMD="$ac_dir/file"
  6288. if test -n "$file_magic_test_file"; then
  6289. case $deplibs_check_method in
  6290. "file_magic "*)
  6291. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  6292. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6293. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  6294. $EGREP "$file_magic_regex" > /dev/null; then
  6295. :
  6296. else
  6297. cat <<_LT_EOF 1>&2
  6298. *** Warning: the command libtool uses to detect shared libraries,
  6299. *** $file_magic_cmd, produces output that libtool cannot recognize.
  6300. *** The result is that libtool may fail to recognize shared libraries
  6301. *** as such. This will affect the creation of libtool libraries that
  6302. *** depend on shared libraries, but programs linked with such libtool
  6303. *** libraries will work regardless of this problem. Nevertheless, you
  6304. *** may want to report the problem to your system manager and/or to
  6305. *** bug-libtool@gnu.org
  6306. _LT_EOF
  6307. fi ;;
  6308. esac
  6309. fi
  6310. break
  6311. fi
  6312. done
  6313. IFS="$lt_save_ifs"
  6314. MAGIC_CMD="$lt_save_MAGIC_CMD"
  6315. ;;
  6316. esac
  6317. fi
  6318. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6319. if test -n "$MAGIC_CMD"; then
  6320. { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
  6321. $as_echo "$MAGIC_CMD" >&6; }
  6322. else
  6323. { $as_echo "$as_me:$LINENO: result: no" >&5
  6324. $as_echo "no" >&6; }
  6325. fi
  6326. else
  6327. MAGIC_CMD=:
  6328. fi
  6329. fi
  6330. fi
  6331. ;;
  6332. esac
  6333. # Use C for the default configuration in the libtool script
  6334. lt_save_CC="$CC"
  6335. ac_ext=c
  6336. ac_cpp='$CPP $CPPFLAGS'
  6337. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6338. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6339. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6340. # Source file extension for C test sources.
  6341. ac_ext=c
  6342. # Object file extension for compiled C test sources.
  6343. objext=o
  6344. objext=$objext
  6345. # Code to be used in simple compile tests
  6346. lt_simple_compile_test_code="int some_variable = 0;"
  6347. # Code to be used in simple link tests
  6348. lt_simple_link_test_code='int main(){return(0);}'
  6349. # If no C compiler was specified, use CC.
  6350. LTCC=${LTCC-"$CC"}
  6351. # If no C compiler flags were specified, use CFLAGS.
  6352. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  6353. # Allow CC to be a program name with arguments.
  6354. compiler=$CC
  6355. # Save the default compiler, since it gets overwritten when the other
  6356. # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
  6357. compiler_DEFAULT=$CC
  6358. # save warnings/boilerplate of simple test code
  6359. ac_outfile=conftest.$ac_objext
  6360. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  6361. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  6362. _lt_compiler_boilerplate=`cat conftest.err`
  6363. $RM conftest*
  6364. ac_outfile=conftest.$ac_objext
  6365. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  6366. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  6367. _lt_linker_boilerplate=`cat conftest.err`
  6368. $RM -r conftest*
  6369. if test -n "$compiler"; then
  6370. lt_prog_compiler_no_builtin_flag=
  6371. if test "$GCC" = yes; then
  6372. lt_prog_compiler_no_builtin_flag=' -fno-builtin'
  6373. { $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  6374. $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
  6375. if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
  6376. $as_echo_n "(cached) " >&6
  6377. else
  6378. lt_cv_prog_compiler_rtti_exceptions=no
  6379. ac_outfile=conftest.$ac_objext
  6380. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  6381. lt_compiler_flag="-fno-rtti -fno-exceptions"
  6382. # Insert the option either (1) after the last *FLAGS variable, or
  6383. # (2) before a word containing "conftest.", or (3) at the end.
  6384. # Note that $ac_compile itself does not contain backslashes and begins
  6385. # with a dollar sign (not a hyphen), so the echo should work correctly.
  6386. # The option is referenced via a variable to avoid confusing sed.
  6387. lt_compile=`echo "$ac_compile" | $SED \
  6388. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  6389. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  6390. -e 's:$: $lt_compiler_flag:'`
  6391. (eval echo "\"\$as_me:7410: $lt_compile\"" >&5)
  6392. (eval "$lt_compile" 2>conftest.err)
  6393. ac_status=$?
  6394. cat conftest.err >&5
  6395. echo "$as_me:7414: \$? = $ac_status" >&5
  6396. if (exit $ac_status) && test -s "$ac_outfile"; then
  6397. # The compiler can only warn and ignore the option if not recognized
  6398. # So say no if there are warnings other than the usual output.
  6399. $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  6400. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  6401. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  6402. lt_cv_prog_compiler_rtti_exceptions=yes
  6403. fi
  6404. fi
  6405. $RM conftest*
  6406. fi
  6407. { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  6408. $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
  6409. if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
  6410. lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
  6411. else
  6412. :
  6413. fi
  6414. fi
  6415. lt_prog_compiler_wl=
  6416. lt_prog_compiler_pic=
  6417. lt_prog_compiler_static=
  6418. { $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
  6419. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  6420. if test "$GCC" = yes; then
  6421. lt_prog_compiler_wl='-Wl,'
  6422. lt_prog_compiler_static='-static'
  6423. case $host_os in
  6424. aix*)
  6425. # All AIX code is PIC.
  6426. if test "$host_cpu" = ia64; then
  6427. # AIX 5 now supports IA64 processor
  6428. lt_prog_compiler_static='-Bstatic'
  6429. fi
  6430. ;;
  6431. amigaos*)
  6432. case $host_cpu in
  6433. powerpc)
  6434. # see comment about AmigaOS4 .so support
  6435. lt_prog_compiler_pic='-fPIC'
  6436. ;;
  6437. m68k)
  6438. # FIXME: we need at least 68020 code to build shared libraries, but
  6439. # adding the `-m68020' flag to GCC prevents building anything better,
  6440. # like `-m68040'.
  6441. lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
  6442. ;;
  6443. esac
  6444. ;;
  6445. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  6446. # PIC is the default for these OSes.
  6447. ;;
  6448. mingw* | cygwin* | pw32* | os2* | cegcc*)
  6449. # This hack is so that the source file can tell whether it is being
  6450. # built for inclusion in a dll (and should export symbols for example).
  6451. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  6452. # (--disable-auto-import) libraries
  6453. lt_prog_compiler_pic='-DDLL_EXPORT'
  6454. ;;
  6455. darwin* | rhapsody*)
  6456. # PIC is the default on this platform
  6457. # Common symbols not allowed in MH_DYLIB files
  6458. lt_prog_compiler_pic='-fno-common'
  6459. ;;
  6460. hpux*)
  6461. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  6462. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  6463. # sets the default TLS model and affects inlining.
  6464. case $host_cpu in
  6465. hppa*64*)
  6466. # +Z the default
  6467. ;;
  6468. *)
  6469. lt_prog_compiler_pic='-fPIC'
  6470. ;;
  6471. esac
  6472. ;;
  6473. interix[3-9]*)
  6474. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  6475. # Instead, we relocate shared libraries at runtime.
  6476. ;;
  6477. msdosdjgpp*)
  6478. # Just because we use GCC doesn't mean we suddenly get shared libraries
  6479. # on systems that don't support them.
  6480. lt_prog_compiler_can_build_shared=no
  6481. enable_shared=no
  6482. ;;
  6483. *nto* | *qnx*)
  6484. # QNX uses GNU C++, but need to define -shared option too, otherwise
  6485. # it will coredump.
  6486. lt_prog_compiler_pic='-fPIC -shared'
  6487. ;;
  6488. sysv4*MP*)
  6489. if test -d /usr/nec; then
  6490. lt_prog_compiler_pic=-Kconform_pic
  6491. fi
  6492. ;;
  6493. *)
  6494. lt_prog_compiler_pic='-fPIC'
  6495. ;;
  6496. esac
  6497. else
  6498. # PORTME Check for flag to pass linker flags through the system compiler.
  6499. case $host_os in
  6500. aix*)
  6501. lt_prog_compiler_wl='-Wl,'
  6502. if test "$host_cpu" = ia64; then
  6503. # AIX 5 now supports IA64 processor
  6504. lt_prog_compiler_static='-Bstatic'
  6505. else
  6506. lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
  6507. fi
  6508. ;;
  6509. mingw* | cygwin* | pw32* | os2* | cegcc*)
  6510. # This hack is so that the source file can tell whether it is being
  6511. # built for inclusion in a dll (and should export symbols for example).
  6512. lt_prog_compiler_pic='-DDLL_EXPORT'
  6513. ;;
  6514. hpux9* | hpux10* | hpux11*)
  6515. lt_prog_compiler_wl='-Wl,'
  6516. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  6517. # not for PA HP-UX.
  6518. case $host_cpu in
  6519. hppa*64*|ia64*)
  6520. # +Z the default
  6521. ;;
  6522. *)
  6523. lt_prog_compiler_pic='+Z'
  6524. ;;
  6525. esac
  6526. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  6527. lt_prog_compiler_static='${wl}-a ${wl}archive'
  6528. ;;
  6529. irix5* | irix6* | nonstopux*)
  6530. lt_prog_compiler_wl='-Wl,'
  6531. # PIC (with -KPIC) is the default.
  6532. lt_prog_compiler_static='-non_shared'
  6533. ;;
  6534. linux* | k*bsd*-gnu)
  6535. case $cc_basename in
  6536. # old Intel for x86_64 which still supported -KPIC.
  6537. ecc*)
  6538. lt_prog_compiler_wl='-Wl,'
  6539. lt_prog_compiler_pic='-KPIC'
  6540. lt_prog_compiler_static='-static'
  6541. ;;
  6542. # icc used to be incompatible with GCC.
  6543. # ICC 10 doesn't accept -KPIC any more.
  6544. icc* | ifort*)
  6545. lt_prog_compiler_wl='-Wl,'
  6546. lt_prog_compiler_pic='-fPIC'
  6547. lt_prog_compiler_static='-static'
  6548. ;;
  6549. # Lahey Fortran 8.1.
  6550. lf95*)
  6551. lt_prog_compiler_wl='-Wl,'
  6552. lt_prog_compiler_pic='--shared'
  6553. lt_prog_compiler_static='--static'
  6554. ;;
  6555. pgcc* | pgf77* | pgf90* | pgf95*)
  6556. # Portland Group compilers (*not* the Pentium gcc compiler,
  6557. # which looks to be a dead project)
  6558. lt_prog_compiler_wl='-Wl,'
  6559. lt_prog_compiler_pic='-fpic'
  6560. lt_prog_compiler_static='-Bstatic'
  6561. ;;
  6562. ccc*)
  6563. lt_prog_compiler_wl='-Wl,'
  6564. # All Alpha code is PIC.
  6565. lt_prog_compiler_static='-non_shared'
  6566. ;;
  6567. xl*)
  6568. # IBM XL C 8.0/Fortran 10.1 on PPC
  6569. lt_prog_compiler_wl='-Wl,'
  6570. lt_prog_compiler_pic='-qpic'
  6571. lt_prog_compiler_static='-qstaticlink'
  6572. ;;
  6573. *)
  6574. case `$CC -V 2>&1 | sed 5q` in
  6575. *Sun\ C*)
  6576. # Sun C 5.9
  6577. lt_prog_compiler_pic='-KPIC'
  6578. lt_prog_compiler_static='-Bstatic'
  6579. lt_prog_compiler_wl='-Wl,'
  6580. ;;
  6581. *Sun\ F*)
  6582. # Sun Fortran 8.3 passes all unrecognized flags to the linker
  6583. lt_prog_compiler_pic='-KPIC'
  6584. lt_prog_compiler_static='-Bstatic'
  6585. lt_prog_compiler_wl=''
  6586. ;;
  6587. esac
  6588. ;;
  6589. esac
  6590. ;;
  6591. newsos6)
  6592. lt_prog_compiler_pic='-KPIC'
  6593. lt_prog_compiler_static='-Bstatic'
  6594. ;;
  6595. *nto* | *qnx*)
  6596. # QNX uses GNU C++, but need to define -shared option too, otherwise
  6597. # it will coredump.
  6598. lt_prog_compiler_pic='-fPIC -shared'
  6599. ;;
  6600. osf3* | osf4* | osf5*)
  6601. lt_prog_compiler_wl='-Wl,'
  6602. # All OSF/1 code is PIC.
  6603. lt_prog_compiler_static='-non_shared'
  6604. ;;
  6605. rdos*)
  6606. lt_prog_compiler_static='-non_shared'
  6607. ;;
  6608. solaris*)
  6609. lt_prog_compiler_pic='-KPIC'
  6610. lt_prog_compiler_static='-Bstatic'
  6611. case $cc_basename in
  6612. f77* | f90* | f95*)
  6613. lt_prog_compiler_wl='-Qoption ld ';;
  6614. *)
  6615. lt_prog_compiler_wl='-Wl,';;
  6616. esac
  6617. ;;
  6618. sunos4*)
  6619. lt_prog_compiler_wl='-Qoption ld '
  6620. lt_prog_compiler_pic='-PIC'
  6621. lt_prog_compiler_static='-Bstatic'
  6622. ;;
  6623. sysv4 | sysv4.2uw2* | sysv4.3*)
  6624. lt_prog_compiler_wl='-Wl,'
  6625. lt_prog_compiler_pic='-KPIC'
  6626. lt_prog_compiler_static='-Bstatic'
  6627. ;;
  6628. sysv4*MP*)
  6629. if test -d /usr/nec ;then
  6630. lt_prog_compiler_pic='-Kconform_pic'
  6631. lt_prog_compiler_static='-Bstatic'
  6632. fi
  6633. ;;
  6634. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  6635. lt_prog_compiler_wl='-Wl,'
  6636. lt_prog_compiler_pic='-KPIC'
  6637. lt_prog_compiler_static='-Bstatic'
  6638. ;;
  6639. unicos*)
  6640. lt_prog_compiler_wl='-Wl,'
  6641. lt_prog_compiler_can_build_shared=no
  6642. ;;
  6643. uts4*)
  6644. lt_prog_compiler_pic='-pic'
  6645. lt_prog_compiler_static='-Bstatic'
  6646. ;;
  6647. *)
  6648. lt_prog_compiler_can_build_shared=no
  6649. ;;
  6650. esac
  6651. fi
  6652. case $host_os in
  6653. # For platforms which do not support PIC, -DPIC is meaningless:
  6654. *djgpp*)
  6655. lt_prog_compiler_pic=
  6656. ;;
  6657. *)
  6658. lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
  6659. ;;
  6660. esac
  6661. { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
  6662. $as_echo "$lt_prog_compiler_pic" >&6; }
  6663. #
  6664. # Check to make sure the PIC flag actually works.
  6665. #
  6666. if test -n "$lt_prog_compiler_pic"; then
  6667. { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
  6668. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
  6669. if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
  6670. $as_echo_n "(cached) " >&6
  6671. else
  6672. lt_cv_prog_compiler_pic_works=no
  6673. ac_outfile=conftest.$ac_objext
  6674. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  6675. lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
  6676. # Insert the option either (1) after the last *FLAGS variable, or
  6677. # (2) before a word containing "conftest.", or (3) at the end.
  6678. # Note that $ac_compile itself does not contain backslashes and begins
  6679. # with a dollar sign (not a hyphen), so the echo should work correctly.
  6680. # The option is referenced via a variable to avoid confusing sed.
  6681. lt_compile=`echo "$ac_compile" | $SED \
  6682. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  6683. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  6684. -e 's:$: $lt_compiler_flag:'`
  6685. (eval echo "\"\$as_me:7749: $lt_compile\"" >&5)
  6686. (eval "$lt_compile" 2>conftest.err)
  6687. ac_status=$?
  6688. cat conftest.err >&5
  6689. echo "$as_me:7753: \$? = $ac_status" >&5
  6690. if (exit $ac_status) && test -s "$ac_outfile"; then
  6691. # The compiler can only warn and ignore the option if not recognized
  6692. # So say no if there are warnings other than the usual output.
  6693. $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  6694. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  6695. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  6696. lt_cv_prog_compiler_pic_works=yes
  6697. fi
  6698. fi
  6699. $RM conftest*
  6700. fi
  6701. { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
  6702. $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
  6703. if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
  6704. case $lt_prog_compiler_pic in
  6705. "" | " "*) ;;
  6706. *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
  6707. esac
  6708. else
  6709. lt_prog_compiler_pic=
  6710. lt_prog_compiler_can_build_shared=no
  6711. fi
  6712. fi
  6713. #
  6714. # Check to make sure the static flag actually works.
  6715. #
  6716. wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
  6717. { $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  6718. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  6719. if test "${lt_cv_prog_compiler_static_works+set}" = set; then
  6720. $as_echo_n "(cached) " >&6
  6721. else
  6722. lt_cv_prog_compiler_static_works=no
  6723. save_LDFLAGS="$LDFLAGS"
  6724. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  6725. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  6726. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  6727. # The linker can only warn and ignore the option if not recognized
  6728. # So say no if there are warnings
  6729. if test -s conftest.err; then
  6730. # Append any errors to the config.log.
  6731. cat conftest.err 1>&5
  6732. $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
  6733. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  6734. if diff conftest.exp conftest.er2 >/dev/null; then
  6735. lt_cv_prog_compiler_static_works=yes
  6736. fi
  6737. else
  6738. lt_cv_prog_compiler_static_works=yes
  6739. fi
  6740. fi
  6741. $RM -r conftest*
  6742. LDFLAGS="$save_LDFLAGS"
  6743. fi
  6744. { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
  6745. $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
  6746. if test x"$lt_cv_prog_compiler_static_works" = xyes; then
  6747. :
  6748. else
  6749. lt_prog_compiler_static=
  6750. fi
  6751. { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
  6752. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  6753. if test "${lt_cv_prog_compiler_c_o+set}" = set; then
  6754. $as_echo_n "(cached) " >&6
  6755. else
  6756. lt_cv_prog_compiler_c_o=no
  6757. $RM -r conftest 2>/dev/null
  6758. mkdir conftest
  6759. cd conftest
  6760. mkdir out
  6761. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  6762. lt_compiler_flag="-o out/conftest2.$ac_objext"
  6763. # Insert the option either (1) after the last *FLAGS variable, or
  6764. # (2) before a word containing "conftest.", or (3) at the end.
  6765. # Note that $ac_compile itself does not contain backslashes and begins
  6766. # with a dollar sign (not a hyphen), so the echo should work correctly.
  6767. lt_compile=`echo "$ac_compile" | $SED \
  6768. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  6769. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  6770. -e 's:$: $lt_compiler_flag:'`
  6771. (eval echo "\"\$as_me:7854: $lt_compile\"" >&5)
  6772. (eval "$lt_compile" 2>out/conftest.err)
  6773. ac_status=$?
  6774. cat out/conftest.err >&5
  6775. echo "$as_me:7858: \$? = $ac_status" >&5
  6776. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  6777. then
  6778. # The compiler can only warn and ignore the option if not recognized
  6779. # So say no if there are warnings
  6780. $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  6781. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  6782. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  6783. lt_cv_prog_compiler_c_o=yes
  6784. fi
  6785. fi
  6786. chmod u+w . 2>&5
  6787. $RM conftest*
  6788. # SGI C++ compiler will create directory out/ii_files/ for
  6789. # template instantiation
  6790. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  6791. $RM out/* && rmdir out
  6792. cd ..
  6793. $RM -r conftest
  6794. $RM conftest*
  6795. fi
  6796. { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
  6797. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  6798. { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
  6799. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  6800. if test "${lt_cv_prog_compiler_c_o+set}" = set; then
  6801. $as_echo_n "(cached) " >&6
  6802. else
  6803. lt_cv_prog_compiler_c_o=no
  6804. $RM -r conftest 2>/dev/null
  6805. mkdir conftest
  6806. cd conftest
  6807. mkdir out
  6808. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  6809. lt_compiler_flag="-o out/conftest2.$ac_objext"
  6810. # Insert the option either (1) after the last *FLAGS variable, or
  6811. # (2) before a word containing "conftest.", or (3) at the end.
  6812. # Note that $ac_compile itself does not contain backslashes and begins
  6813. # with a dollar sign (not a hyphen), so the echo should work correctly.
  6814. lt_compile=`echo "$ac_compile" | $SED \
  6815. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  6816. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  6817. -e 's:$: $lt_compiler_flag:'`
  6818. (eval echo "\"\$as_me:7909: $lt_compile\"" >&5)
  6819. (eval "$lt_compile" 2>out/conftest.err)
  6820. ac_status=$?
  6821. cat out/conftest.err >&5
  6822. echo "$as_me:7913: \$? = $ac_status" >&5
  6823. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  6824. then
  6825. # The compiler can only warn and ignore the option if not recognized
  6826. # So say no if there are warnings
  6827. $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  6828. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  6829. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  6830. lt_cv_prog_compiler_c_o=yes
  6831. fi
  6832. fi
  6833. chmod u+w . 2>&5
  6834. $RM conftest*
  6835. # SGI C++ compiler will create directory out/ii_files/ for
  6836. # template instantiation
  6837. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  6838. $RM out/* && rmdir out
  6839. cd ..
  6840. $RM -r conftest
  6841. $RM conftest*
  6842. fi
  6843. { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
  6844. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  6845. hard_links="nottested"
  6846. if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
  6847. # do not overwrite the value of need_locks provided by the user
  6848. { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
  6849. $as_echo_n "checking if we can lock with hard links... " >&6; }
  6850. hard_links=yes
  6851. $RM conftest*
  6852. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  6853. touch conftest.a
  6854. ln conftest.a conftest.b 2>&5 || hard_links=no
  6855. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  6856. { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
  6857. $as_echo "$hard_links" >&6; }
  6858. if test "$hard_links" = no; then
  6859. { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  6860. $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  6861. need_locks=warn
  6862. fi
  6863. else
  6864. need_locks=no
  6865. fi
  6866. { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  6867. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  6868. runpath_var=
  6869. allow_undefined_flag=
  6870. always_export_symbols=no
  6871. archive_cmds=
  6872. archive_expsym_cmds=
  6873. compiler_needs_object=no
  6874. enable_shared_with_static_runtimes=no
  6875. export_dynamic_flag_spec=
  6876. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  6877. hardcode_automatic=no
  6878. hardcode_direct=no
  6879. hardcode_direct_absolute=no
  6880. hardcode_libdir_flag_spec=
  6881. hardcode_libdir_flag_spec_ld=
  6882. hardcode_libdir_separator=
  6883. hardcode_minus_L=no
  6884. hardcode_shlibpath_var=unsupported
  6885. inherit_rpath=no
  6886. link_all_deplibs=unknown
  6887. module_cmds=
  6888. module_expsym_cmds=
  6889. old_archive_from_new_cmds=
  6890. old_archive_from_expsyms_cmds=
  6891. thread_safe_flag_spec=
  6892. whole_archive_flag_spec=
  6893. # include_expsyms should be a list of space-separated symbols to be *always*
  6894. # included in the symbol list
  6895. include_expsyms=
  6896. # exclude_expsyms can be an extended regexp of symbols to exclude
  6897. # it will be wrapped by ` (' and `)$', so one must not match beginning or
  6898. # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  6899. # as well as any symbol that contains `d'.
  6900. exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  6901. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  6902. # platforms (ab)use it in PIC code, but their linkers get confused if
  6903. # the symbol is explicitly referenced. Since portable code cannot
  6904. # rely on this symbol name, it's probably fine to never include it in
  6905. # preloaded symbol tables.
  6906. # Exclude shared library initialization/finalization symbols.
  6907. extract_expsyms_cmds=
  6908. case $host_os in
  6909. cygwin* | mingw* | pw32* | cegcc*)
  6910. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  6911. # When not using gcc, we currently assume that we are using
  6912. # Microsoft Visual C++.
  6913. if test "$GCC" != yes; then
  6914. with_gnu_ld=no
  6915. fi
  6916. ;;
  6917. interix*)
  6918. # we just hope/assume this is gcc and not c89 (= MSVC++)
  6919. with_gnu_ld=yes
  6920. ;;
  6921. openbsd*)
  6922. with_gnu_ld=no
  6923. ;;
  6924. esac
  6925. ld_shlibs=yes
  6926. if test "$with_gnu_ld" = yes; then
  6927. # If archive_cmds runs LD, not CC, wlarc should be empty
  6928. wlarc='${wl}'
  6929. # Set some defaults for GNU ld with shared library support. These
  6930. # are reset later if shared libraries are not supported. Putting them
  6931. # here allows them to be overridden if necessary.
  6932. runpath_var=LD_RUN_PATH
  6933. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  6934. export_dynamic_flag_spec='${wl}--export-dynamic'
  6935. # ancient GNU ld didn't support --whole-archive et. al.
  6936. if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
  6937. whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  6938. else
  6939. whole_archive_flag_spec=
  6940. fi
  6941. supports_anon_versioning=no
  6942. case `$LD -v 2>&1` in
  6943. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  6944. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  6945. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  6946. *\ 2.11.*) ;; # other 2.11 versions
  6947. *) supports_anon_versioning=yes ;;
  6948. esac
  6949. # See if GNU ld supports shared libraries.
  6950. case $host_os in
  6951. aix[3-9]*)
  6952. # On AIX/PPC, the GNU linker is very broken
  6953. if test "$host_cpu" != ia64; then
  6954. ld_shlibs=no
  6955. cat <<_LT_EOF 1>&2
  6956. *** Warning: the GNU linker, at least up to release 2.9.1, is reported
  6957. *** to be unable to reliably create shared libraries on AIX.
  6958. *** Therefore, libtool is disabling shared libraries support. If you
  6959. *** really care for shared libraries, you may want to modify your PATH
  6960. *** so that a non-GNU linker is found, and then restart.
  6961. _LT_EOF
  6962. fi
  6963. ;;
  6964. amigaos*)
  6965. case $host_cpu in
  6966. powerpc)
  6967. # see comment about AmigaOS4 .so support
  6968. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  6969. archive_expsym_cmds=''
  6970. ;;
  6971. m68k)
  6972. 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)'
  6973. hardcode_libdir_flag_spec='-L$libdir'
  6974. hardcode_minus_L=yes
  6975. ;;
  6976. esac
  6977. ;;
  6978. beos*)
  6979. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  6980. allow_undefined_flag=unsupported
  6981. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  6982. # support --undefined. This deserves some investigation. FIXME
  6983. archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  6984. else
  6985. ld_shlibs=no
  6986. fi
  6987. ;;
  6988. cygwin* | mingw* | pw32* | cegcc*)
  6989. # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
  6990. # as there is no search path for DLLs.
  6991. hardcode_libdir_flag_spec='-L$libdir'
  6992. allow_undefined_flag=unsupported
  6993. always_export_symbols=no
  6994. enable_shared_with_static_runtimes=yes
  6995. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
  6996. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  6997. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  6998. # If the export-symbols file already is a .def file (1st line
  6999. # is EXPORTS), use it as is; otherwise, prepend...
  7000. archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  7001. cp $export_symbols $output_objdir/$soname.def;
  7002. else
  7003. echo EXPORTS > $output_objdir/$soname.def;
  7004. cat $export_symbols >> $output_objdir/$soname.def;
  7005. fi~
  7006. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  7007. else
  7008. ld_shlibs=no
  7009. fi
  7010. ;;
  7011. interix[3-9]*)
  7012. hardcode_direct=no
  7013. hardcode_shlibpath_var=no
  7014. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  7015. export_dynamic_flag_spec='${wl}-E'
  7016. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  7017. # Instead, shared libraries are loaded at an image base (0x10000000 by
  7018. # default) and relocated if they conflict, which is a slow very memory
  7019. # consuming and fragmenting process. To avoid this, we pick a random,
  7020. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  7021. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  7022. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  7023. 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'
  7024. ;;
  7025. gnu* | linux* | tpf* | k*bsd*-gnu)
  7026. tmp_diet=no
  7027. if test "$host_os" = linux-dietlibc; then
  7028. case $cc_basename in
  7029. diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
  7030. esac
  7031. fi
  7032. if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
  7033. && test "$tmp_diet" = no
  7034. then
  7035. tmp_addflag=
  7036. tmp_sharedflag='-shared'
  7037. case $cc_basename,$host_cpu in
  7038. pgcc*) # Portland Group C compiler
  7039. 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'
  7040. tmp_addflag=' $pic_flag'
  7041. ;;
  7042. pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
  7043. 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'
  7044. tmp_addflag=' $pic_flag -Mnomain' ;;
  7045. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  7046. tmp_addflag=' -i_dynamic' ;;
  7047. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  7048. tmp_addflag=' -i_dynamic -nofor_main' ;;
  7049. ifc* | ifort*) # Intel Fortran compiler
  7050. tmp_addflag=' -nofor_main' ;;
  7051. lf95*) # Lahey Fortran 8.1
  7052. whole_archive_flag_spec=
  7053. tmp_sharedflag='--shared' ;;
  7054. xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
  7055. tmp_sharedflag='-qmkshrobj'
  7056. tmp_addflag= ;;
  7057. esac
  7058. case `$CC -V 2>&1 | sed 5q` in
  7059. *Sun\ C*) # Sun C 5.9
  7060. 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'
  7061. compiler_needs_object=yes
  7062. tmp_sharedflag='-G' ;;
  7063. *Sun\ F*) # Sun Fortran 8.3
  7064. tmp_sharedflag='-G' ;;
  7065. esac
  7066. archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7067. if test "x$supports_anon_versioning" = xyes; then
  7068. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  7069. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  7070. echo "local: *; };" >> $output_objdir/$libname.ver~
  7071. $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  7072. fi
  7073. case $cc_basename in
  7074. xlf*)
  7075. # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
  7076. whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
  7077. hardcode_libdir_flag_spec=
  7078. hardcode_libdir_flag_spec_ld='-rpath $libdir'
  7079. archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
  7080. if test "x$supports_anon_versioning" = xyes; then
  7081. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  7082. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  7083. echo "local: *; };" >> $output_objdir/$libname.ver~
  7084. $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
  7085. fi
  7086. ;;
  7087. esac
  7088. else
  7089. ld_shlibs=no
  7090. fi
  7091. ;;
  7092. netbsd* | netbsdelf*-gnu)
  7093. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  7094. archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  7095. wlarc=
  7096. else
  7097. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7098. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7099. fi
  7100. ;;
  7101. solaris*)
  7102. if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
  7103. ld_shlibs=no
  7104. cat <<_LT_EOF 1>&2
  7105. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  7106. *** create shared libraries on Solaris systems. Therefore, libtool
  7107. *** is disabling shared libraries support. We urge you to upgrade GNU
  7108. *** binutils to release 2.9.1 or newer. Another option is to modify
  7109. *** your PATH or compiler configuration so that the native linker is
  7110. *** used, and then restart.
  7111. _LT_EOF
  7112. elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7113. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7114. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7115. else
  7116. ld_shlibs=no
  7117. fi
  7118. ;;
  7119. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  7120. case `$LD -v 2>&1` in
  7121. *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  7122. ld_shlibs=no
  7123. cat <<_LT_EOF 1>&2
  7124. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  7125. *** reliably create shared libraries on SCO systems. Therefore, libtool
  7126. *** is disabling shared libraries support. We urge you to upgrade GNU
  7127. *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  7128. *** your PATH or compiler configuration so that the native linker is
  7129. *** used, and then restart.
  7130. _LT_EOF
  7131. ;;
  7132. *)
  7133. # For security reasons, it is highly recommended that you always
  7134. # use absolute paths for naming shared libraries, and exclude the
  7135. # DT_RUNPATH tag from executables and libraries. But doing so
  7136. # requires that you compile everything twice, which is a pain.
  7137. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7138. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7139. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7140. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7141. else
  7142. ld_shlibs=no
  7143. fi
  7144. ;;
  7145. esac
  7146. ;;
  7147. sunos4*)
  7148. archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  7149. wlarc=
  7150. hardcode_direct=yes
  7151. hardcode_shlibpath_var=no
  7152. ;;
  7153. *)
  7154. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7155. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7156. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7157. else
  7158. ld_shlibs=no
  7159. fi
  7160. ;;
  7161. esac
  7162. if test "$ld_shlibs" = no; then
  7163. runpath_var=
  7164. hardcode_libdir_flag_spec=
  7165. export_dynamic_flag_spec=
  7166. whole_archive_flag_spec=
  7167. fi
  7168. else
  7169. # PORTME fill in a description of your system's linker (not GNU ld)
  7170. case $host_os in
  7171. aix3*)
  7172. allow_undefined_flag=unsupported
  7173. always_export_symbols=yes
  7174. 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'
  7175. # Note: this linker hardcodes the directories in LIBPATH if there
  7176. # are no directories specified by -L.
  7177. hardcode_minus_L=yes
  7178. if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  7179. # Neither direct hardcoding nor static linking is supported with a
  7180. # broken collect2.
  7181. hardcode_direct=unsupported
  7182. fi
  7183. ;;
  7184. aix[4-9]*)
  7185. if test "$host_cpu" = ia64; then
  7186. # On IA64, the linker does run time linking by default, so we don't
  7187. # have to do anything special.
  7188. aix_use_runtimelinking=no
  7189. exp_sym_flag='-Bexport'
  7190. no_entry_flag=""
  7191. else
  7192. # If we're using GNU nm, then we don't want the "-C" option.
  7193. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  7194. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  7195. 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'
  7196. else
  7197. 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'
  7198. fi
  7199. aix_use_runtimelinking=no
  7200. # Test if we are trying to use run time linking or normal
  7201. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  7202. # need to do runtime linking.
  7203. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  7204. for ld_flag in $LDFLAGS; do
  7205. if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  7206. aix_use_runtimelinking=yes
  7207. break
  7208. fi
  7209. done
  7210. ;;
  7211. esac
  7212. exp_sym_flag='-bexport'
  7213. no_entry_flag='-bnoentry'
  7214. fi
  7215. # When large executables or shared objects are built, AIX ld can
  7216. # have problems creating the table of contents. If linking a library
  7217. # or program results in "error TOC overflow" add -mminimal-toc to
  7218. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  7219. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  7220. archive_cmds=''
  7221. hardcode_direct=yes
  7222. hardcode_direct_absolute=yes
  7223. hardcode_libdir_separator=':'
  7224. link_all_deplibs=yes
  7225. file_list_spec='${wl}-f,'
  7226. if test "$GCC" = yes; then
  7227. case $host_os in aix4.[012]|aix4.[012].*)
  7228. # We only want to do this on AIX 4.2 and lower, the check
  7229. # below for broken collect2 doesn't work under 4.3+
  7230. collect2name=`${CC} -print-prog-name=collect2`
  7231. if test -f "$collect2name" &&
  7232. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  7233. then
  7234. # We have reworked collect2
  7235. :
  7236. else
  7237. # We have old collect2
  7238. hardcode_direct=unsupported
  7239. # It fails to find uninstalled libraries when the uninstalled
  7240. # path is not listed in the libpath. Setting hardcode_minus_L
  7241. # to unsupported forces relinking
  7242. hardcode_minus_L=yes
  7243. hardcode_libdir_flag_spec='-L$libdir'
  7244. hardcode_libdir_separator=
  7245. fi
  7246. ;;
  7247. esac
  7248. shared_flag='-shared'
  7249. if test "$aix_use_runtimelinking" = yes; then
  7250. shared_flag="$shared_flag "'${wl}-G'
  7251. fi
  7252. link_all_deplibs=no
  7253. else
  7254. # not using gcc
  7255. if test "$host_cpu" = ia64; then
  7256. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  7257. # chokes on -Wl,-G. The following line is correct:
  7258. shared_flag='-G'
  7259. else
  7260. if test "$aix_use_runtimelinking" = yes; then
  7261. shared_flag='${wl}-G'
  7262. else
  7263. shared_flag='${wl}-bM:SRE'
  7264. fi
  7265. fi
  7266. fi
  7267. export_dynamic_flag_spec='${wl}-bexpall'
  7268. # It seems that -bexpall does not export symbols beginning with
  7269. # underscore (_), so it is better to generate a list of symbols to export.
  7270. always_export_symbols=yes
  7271. if test "$aix_use_runtimelinking" = yes; then
  7272. # Warning - without using the other runtime loading flags (-brtl),
  7273. # -berok will link without error, but may produce a broken library.
  7274. allow_undefined_flag='-berok'
  7275. # Determine the default libpath from the value encoded in an
  7276. # empty executable.
  7277. cat >conftest.$ac_ext <<_ACEOF
  7278. /* confdefs.h. */
  7279. _ACEOF
  7280. cat confdefs.h >>conftest.$ac_ext
  7281. cat >>conftest.$ac_ext <<_ACEOF
  7282. /* end confdefs.h. */
  7283. int
  7284. main ()
  7285. {
  7286. ;
  7287. return 0;
  7288. }
  7289. _ACEOF
  7290. rm -f conftest.$ac_objext conftest$ac_exeext
  7291. if { (ac_try="$ac_link"
  7292. case "(($ac_try" in
  7293. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7294. *) ac_try_echo=$ac_try;;
  7295. esac
  7296. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  7297. $as_echo "$ac_try_echo") >&5
  7298. (eval "$ac_link") 2>conftest.er1
  7299. ac_status=$?
  7300. grep -v '^ *+' conftest.er1 >conftest.err
  7301. rm -f conftest.er1
  7302. cat conftest.err >&5
  7303. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7304. (exit $ac_status); } && {
  7305. test -z "$ac_c_werror_flag" ||
  7306. test ! -s conftest.err
  7307. } && test -s conftest$ac_exeext && {
  7308. test "$cross_compiling" = yes ||
  7309. $as_test_x conftest$ac_exeext
  7310. }; then
  7311. lt_aix_libpath_sed='
  7312. /Import File Strings/,/^$/ {
  7313. /^0/ {
  7314. s/^0 *\(.*\)$/\1/
  7315. p
  7316. }
  7317. }'
  7318. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  7319. # Check for a 64-bit object if we didn't find anything.
  7320. if test -z "$aix_libpath"; then
  7321. aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  7322. fi
  7323. else
  7324. $as_echo "$as_me: failed program was:" >&5
  7325. sed 's/^/| /' conftest.$ac_ext >&5
  7326. fi
  7327. rm -rf conftest.dSYM
  7328. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  7329. conftest$ac_exeext conftest.$ac_ext
  7330. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  7331. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  7332. 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"
  7333. else
  7334. if test "$host_cpu" = ia64; then
  7335. hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
  7336. allow_undefined_flag="-z nodefs"
  7337. 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"
  7338. else
  7339. # Determine the default libpath from the value encoded in an
  7340. # empty executable.
  7341. cat >conftest.$ac_ext <<_ACEOF
  7342. /* confdefs.h. */
  7343. _ACEOF
  7344. cat confdefs.h >>conftest.$ac_ext
  7345. cat >>conftest.$ac_ext <<_ACEOF
  7346. /* end confdefs.h. */
  7347. int
  7348. main ()
  7349. {
  7350. ;
  7351. return 0;
  7352. }
  7353. _ACEOF
  7354. rm -f conftest.$ac_objext conftest$ac_exeext
  7355. if { (ac_try="$ac_link"
  7356. case "(($ac_try" in
  7357. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7358. *) ac_try_echo=$ac_try;;
  7359. esac
  7360. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  7361. $as_echo "$ac_try_echo") >&5
  7362. (eval "$ac_link") 2>conftest.er1
  7363. ac_status=$?
  7364. grep -v '^ *+' conftest.er1 >conftest.err
  7365. rm -f conftest.er1
  7366. cat conftest.err >&5
  7367. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7368. (exit $ac_status); } && {
  7369. test -z "$ac_c_werror_flag" ||
  7370. test ! -s conftest.err
  7371. } && test -s conftest$ac_exeext && {
  7372. test "$cross_compiling" = yes ||
  7373. $as_test_x conftest$ac_exeext
  7374. }; then
  7375. lt_aix_libpath_sed='
  7376. /Import File Strings/,/^$/ {
  7377. /^0/ {
  7378. s/^0 *\(.*\)$/\1/
  7379. p
  7380. }
  7381. }'
  7382. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  7383. # Check for a 64-bit object if we didn't find anything.
  7384. if test -z "$aix_libpath"; then
  7385. aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  7386. fi
  7387. else
  7388. $as_echo "$as_me: failed program was:" >&5
  7389. sed 's/^/| /' conftest.$ac_ext >&5
  7390. fi
  7391. rm -rf conftest.dSYM
  7392. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  7393. conftest$ac_exeext conftest.$ac_ext
  7394. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  7395. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  7396. # Warning - without using the other run time loading flags,
  7397. # -berok will link without error, but may produce a broken library.
  7398. no_undefined_flag=' ${wl}-bernotok'
  7399. allow_undefined_flag=' ${wl}-berok'
  7400. # Exported symbols can be pulled into shared objects from archives
  7401. whole_archive_flag_spec='$convenience'
  7402. archive_cmds_need_lc=yes
  7403. # This is similar to how AIX traditionally builds its shared libraries.
  7404. 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'
  7405. fi
  7406. fi
  7407. ;;
  7408. amigaos*)
  7409. case $host_cpu in
  7410. powerpc)
  7411. # see comment about AmigaOS4 .so support
  7412. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7413. archive_expsym_cmds=''
  7414. ;;
  7415. m68k)
  7416. 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)'
  7417. hardcode_libdir_flag_spec='-L$libdir'
  7418. hardcode_minus_L=yes
  7419. ;;
  7420. esac
  7421. ;;
  7422. bsdi[45]*)
  7423. export_dynamic_flag_spec=-rdynamic
  7424. ;;
  7425. cygwin* | mingw* | pw32* | cegcc*)
  7426. # When not using gcc, we currently assume that we are using
  7427. # Microsoft Visual C++.
  7428. # hardcode_libdir_flag_spec is actually meaningless, as there is
  7429. # no search path for DLLs.
  7430. hardcode_libdir_flag_spec=' '
  7431. allow_undefined_flag=unsupported
  7432. # Tell ltmain to make .lib files, not .a files.
  7433. libext=lib
  7434. # Tell ltmain to make .dll files, not .so files.
  7435. shrext_cmds=".dll"
  7436. # FIXME: Setting linknames here is a bad hack.
  7437. archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
  7438. # The linker will automatically build a .lib file if we build a DLL.
  7439. old_archive_from_new_cmds='true'
  7440. # FIXME: Should let the user specify the lib program.
  7441. old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
  7442. fix_srcfile_path='`cygpath -w "$srcfile"`'
  7443. enable_shared_with_static_runtimes=yes
  7444. ;;
  7445. darwin* | rhapsody*)
  7446. archive_cmds_need_lc=no
  7447. hardcode_direct=no
  7448. hardcode_automatic=yes
  7449. hardcode_shlibpath_var=unsupported
  7450. whole_archive_flag_spec=''
  7451. link_all_deplibs=yes
  7452. allow_undefined_flag="$_lt_dar_allow_undefined"
  7453. case $cc_basename in
  7454. ifort*) _lt_dar_can_shared=yes ;;
  7455. *) _lt_dar_can_shared=$GCC ;;
  7456. esac
  7457. if test "$_lt_dar_can_shared" = "yes"; then
  7458. output_verbose_link_cmd=echo
  7459. archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
  7460. module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  7461. 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}"
  7462. 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}"
  7463. else
  7464. ld_shlibs=no
  7465. fi
  7466. ;;
  7467. dgux*)
  7468. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  7469. hardcode_libdir_flag_spec='-L$libdir'
  7470. hardcode_shlibpath_var=no
  7471. ;;
  7472. freebsd1*)
  7473. ld_shlibs=no
  7474. ;;
  7475. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  7476. # support. Future versions do this automatically, but an explicit c++rt0.o
  7477. # does not break anything, and helps significantly (at the cost of a little
  7478. # extra space).
  7479. freebsd2.2*)
  7480. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  7481. hardcode_libdir_flag_spec='-R$libdir'
  7482. hardcode_direct=yes
  7483. hardcode_shlibpath_var=no
  7484. ;;
  7485. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  7486. freebsd2*)
  7487. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  7488. hardcode_direct=yes
  7489. hardcode_minus_L=yes
  7490. hardcode_shlibpath_var=no
  7491. ;;
  7492. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  7493. freebsd* | dragonfly*)
  7494. archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
  7495. hardcode_libdir_flag_spec='-R$libdir'
  7496. hardcode_direct=yes
  7497. hardcode_shlibpath_var=no
  7498. ;;
  7499. hpux9*)
  7500. if test "$GCC" = yes; then
  7501. 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'
  7502. else
  7503. 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'
  7504. fi
  7505. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  7506. hardcode_libdir_separator=:
  7507. hardcode_direct=yes
  7508. # hardcode_minus_L: Not really in the search PATH,
  7509. # but as the default location of the library.
  7510. hardcode_minus_L=yes
  7511. export_dynamic_flag_spec='${wl}-E'
  7512. ;;
  7513. hpux10*)
  7514. if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  7515. archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  7516. else
  7517. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  7518. fi
  7519. if test "$with_gnu_ld" = no; then
  7520. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  7521. hardcode_libdir_flag_spec_ld='+b $libdir'
  7522. hardcode_libdir_separator=:
  7523. hardcode_direct=yes
  7524. hardcode_direct_absolute=yes
  7525. export_dynamic_flag_spec='${wl}-E'
  7526. # hardcode_minus_L: Not really in the search PATH,
  7527. # but as the default location of the library.
  7528. hardcode_minus_L=yes
  7529. fi
  7530. ;;
  7531. hpux11*)
  7532. if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  7533. case $host_cpu in
  7534. hppa*64*)
  7535. archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  7536. ;;
  7537. ia64*)
  7538. archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  7539. ;;
  7540. *)
  7541. archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  7542. ;;
  7543. esac
  7544. else
  7545. case $host_cpu in
  7546. hppa*64*)
  7547. archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  7548. ;;
  7549. ia64*)
  7550. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  7551. ;;
  7552. *)
  7553. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  7554. ;;
  7555. esac
  7556. fi
  7557. if test "$with_gnu_ld" = no; then
  7558. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  7559. hardcode_libdir_separator=:
  7560. case $host_cpu in
  7561. hppa*64*|ia64*)
  7562. hardcode_direct=no
  7563. hardcode_shlibpath_var=no
  7564. ;;
  7565. *)
  7566. hardcode_direct=yes
  7567. hardcode_direct_absolute=yes
  7568. export_dynamic_flag_spec='${wl}-E'
  7569. # hardcode_minus_L: Not really in the search PATH,
  7570. # but as the default location of the library.
  7571. hardcode_minus_L=yes
  7572. ;;
  7573. esac
  7574. fi
  7575. ;;
  7576. irix5* | irix6* | nonstopux*)
  7577. if test "$GCC" = yes; then
  7578. 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'
  7579. # Try to use the -exported_symbol ld option, if it does not
  7580. # work, assume that -exports_file does not work either and
  7581. # implicitly export all symbols.
  7582. save_LDFLAGS="$LDFLAGS"
  7583. LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
  7584. cat >conftest.$ac_ext <<_ACEOF
  7585. int foo(void) {}
  7586. _ACEOF
  7587. rm -f conftest.$ac_objext conftest$ac_exeext
  7588. if { (ac_try="$ac_link"
  7589. case "(($ac_try" in
  7590. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7591. *) ac_try_echo=$ac_try;;
  7592. esac
  7593. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  7594. $as_echo "$ac_try_echo") >&5
  7595. (eval "$ac_link") 2>conftest.er1
  7596. ac_status=$?
  7597. grep -v '^ *+' conftest.er1 >conftest.err
  7598. rm -f conftest.er1
  7599. cat conftest.err >&5
  7600. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7601. (exit $ac_status); } && {
  7602. test -z "$ac_c_werror_flag" ||
  7603. test ! -s conftest.err
  7604. } && test -s conftest$ac_exeext && {
  7605. test "$cross_compiling" = yes ||
  7606. $as_test_x conftest$ac_exeext
  7607. }; then
  7608. 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'
  7609. else
  7610. $as_echo "$as_me: failed program was:" >&5
  7611. sed 's/^/| /' conftest.$ac_ext >&5
  7612. fi
  7613. rm -rf conftest.dSYM
  7614. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  7615. conftest$ac_exeext conftest.$ac_ext
  7616. LDFLAGS="$save_LDFLAGS"
  7617. else
  7618. 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'
  7619. 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'
  7620. fi
  7621. archive_cmds_need_lc='no'
  7622. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7623. hardcode_libdir_separator=:
  7624. inherit_rpath=yes
  7625. link_all_deplibs=yes
  7626. ;;
  7627. netbsd* | netbsdelf*-gnu)
  7628. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  7629. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  7630. else
  7631. archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  7632. fi
  7633. hardcode_libdir_flag_spec='-R$libdir'
  7634. hardcode_direct=yes
  7635. hardcode_shlibpath_var=no
  7636. ;;
  7637. newsos6)
  7638. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  7639. hardcode_direct=yes
  7640. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7641. hardcode_libdir_separator=:
  7642. hardcode_shlibpath_var=no
  7643. ;;
  7644. *nto* | *qnx*)
  7645. ;;
  7646. openbsd*)
  7647. if test -f /usr/libexec/ld.so; then
  7648. hardcode_direct=yes
  7649. hardcode_shlibpath_var=no
  7650. hardcode_direct_absolute=yes
  7651. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  7652. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  7653. archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  7654. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  7655. export_dynamic_flag_spec='${wl}-E'
  7656. else
  7657. case $host_os in
  7658. openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  7659. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  7660. hardcode_libdir_flag_spec='-R$libdir'
  7661. ;;
  7662. *)
  7663. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  7664. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  7665. ;;
  7666. esac
  7667. fi
  7668. else
  7669. ld_shlibs=no
  7670. fi
  7671. ;;
  7672. os2*)
  7673. hardcode_libdir_flag_spec='-L$libdir'
  7674. hardcode_minus_L=yes
  7675. allow_undefined_flag=unsupported
  7676. 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'
  7677. old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  7678. ;;
  7679. osf3*)
  7680. if test "$GCC" = yes; then
  7681. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  7682. 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'
  7683. else
  7684. allow_undefined_flag=' -expect_unresolved \*'
  7685. 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'
  7686. fi
  7687. archive_cmds_need_lc='no'
  7688. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7689. hardcode_libdir_separator=:
  7690. ;;
  7691. osf4* | osf5*) # as osf3* with the addition of -msym flag
  7692. if test "$GCC" = yes; then
  7693. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  7694. 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'
  7695. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7696. else
  7697. allow_undefined_flag=' -expect_unresolved \*'
  7698. 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'
  7699. 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~
  7700. $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'
  7701. # Both c and cxx compiler support -rpath directly
  7702. hardcode_libdir_flag_spec='-rpath $libdir'
  7703. fi
  7704. archive_cmds_need_lc='no'
  7705. hardcode_libdir_separator=:
  7706. ;;
  7707. solaris*)
  7708. no_undefined_flag=' -z defs'
  7709. if test "$GCC" = yes; then
  7710. wlarc='${wl}'
  7711. archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  7712. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  7713. $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  7714. else
  7715. case `$CC -V 2>&1` in
  7716. *"Compilers 5.0"*)
  7717. wlarc=''
  7718. archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  7719. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  7720. $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
  7721. ;;
  7722. *)
  7723. wlarc='${wl}'
  7724. archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
  7725. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  7726. $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  7727. ;;
  7728. esac
  7729. fi
  7730. hardcode_libdir_flag_spec='-R$libdir'
  7731. hardcode_shlibpath_var=no
  7732. case $host_os in
  7733. solaris2.[0-5] | solaris2.[0-5].*) ;;
  7734. *)
  7735. # The compiler driver will combine and reorder linker options,
  7736. # but understands `-z linker_flag'. GCC discards it without `$wl',
  7737. # but is careful enough not to reorder.
  7738. # Supported since Solaris 2.6 (maybe 2.5.1?)
  7739. if test "$GCC" = yes; then
  7740. whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  7741. else
  7742. whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
  7743. fi
  7744. ;;
  7745. esac
  7746. link_all_deplibs=yes
  7747. ;;
  7748. sunos4*)
  7749. if test "x$host_vendor" = xsequent; then
  7750. # Use $CC to link under sequent, because it throws in some extra .o
  7751. # files that make .init and .fini sections work.
  7752. archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  7753. else
  7754. archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  7755. fi
  7756. hardcode_libdir_flag_spec='-L$libdir'
  7757. hardcode_direct=yes
  7758. hardcode_minus_L=yes
  7759. hardcode_shlibpath_var=no
  7760. ;;
  7761. sysv4)
  7762. case $host_vendor in
  7763. sni)
  7764. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  7765. hardcode_direct=yes # is this really true???
  7766. ;;
  7767. siemens)
  7768. ## LD is ld it makes a PLAMLIB
  7769. ## CC just makes a GrossModule.
  7770. archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  7771. reload_cmds='$CC -r -o $output$reload_objs'
  7772. hardcode_direct=no
  7773. ;;
  7774. motorola)
  7775. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  7776. hardcode_direct=no #Motorola manual says yes, but my tests say they lie
  7777. ;;
  7778. esac
  7779. runpath_var='LD_RUN_PATH'
  7780. hardcode_shlibpath_var=no
  7781. ;;
  7782. sysv4.3*)
  7783. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  7784. hardcode_shlibpath_var=no
  7785. export_dynamic_flag_spec='-Bexport'
  7786. ;;
  7787. sysv4*MP*)
  7788. if test -d /usr/nec; then
  7789. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  7790. hardcode_shlibpath_var=no
  7791. runpath_var=LD_RUN_PATH
  7792. hardcode_runpath_var=yes
  7793. ld_shlibs=yes
  7794. fi
  7795. ;;
  7796. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  7797. no_undefined_flag='${wl}-z,text'
  7798. archive_cmds_need_lc=no
  7799. hardcode_shlibpath_var=no
  7800. runpath_var='LD_RUN_PATH'
  7801. if test "$GCC" = yes; then
  7802. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  7803. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  7804. else
  7805. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  7806. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  7807. fi
  7808. ;;
  7809. sysv5* | sco3.2v5* | sco5v6*)
  7810. # Note: We can NOT use -z defs as we might desire, because we do not
  7811. # link with -lc, and that would cause any symbols used from libc to
  7812. # always be unresolved, which means just about no library would
  7813. # ever link correctly. If we're not using GNU ld we use -z text
  7814. # though, which does catch some bad symbols but isn't as heavy-handed
  7815. # as -z defs.
  7816. no_undefined_flag='${wl}-z,text'
  7817. allow_undefined_flag='${wl}-z,nodefs'
  7818. archive_cmds_need_lc=no
  7819. hardcode_shlibpath_var=no
  7820. hardcode_libdir_flag_spec='${wl}-R,$libdir'
  7821. hardcode_libdir_separator=':'
  7822. link_all_deplibs=yes
  7823. export_dynamic_flag_spec='${wl}-Bexport'
  7824. runpath_var='LD_RUN_PATH'
  7825. if test "$GCC" = yes; then
  7826. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  7827. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  7828. else
  7829. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  7830. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  7831. fi
  7832. ;;
  7833. uts4*)
  7834. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  7835. hardcode_libdir_flag_spec='-L$libdir'
  7836. hardcode_shlibpath_var=no
  7837. ;;
  7838. *)
  7839. ld_shlibs=no
  7840. ;;
  7841. esac
  7842. if test x$host_vendor = xsni; then
  7843. case $host in
  7844. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  7845. export_dynamic_flag_spec='${wl}-Blargedynsym'
  7846. ;;
  7847. esac
  7848. fi
  7849. fi
  7850. { $as_echo "$as_me:$LINENO: result: $ld_shlibs" >&5
  7851. $as_echo "$ld_shlibs" >&6; }
  7852. test "$ld_shlibs" = no && can_build_shared=no
  7853. with_gnu_ld=$with_gnu_ld
  7854. #
  7855. # Do we need to explicitly link libc?
  7856. #
  7857. case "x$archive_cmds_need_lc" in
  7858. x|xyes)
  7859. # Assume -lc should be added
  7860. archive_cmds_need_lc=yes
  7861. if test "$enable_shared" = yes && test "$GCC" = yes; then
  7862. case $archive_cmds in
  7863. *'~'*)
  7864. # FIXME: we may have to deal with multi-command sequences.
  7865. ;;
  7866. '$CC '*)
  7867. # Test whether the compiler implicitly links with -lc since on some
  7868. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  7869. # to ld, don't add -lc before -lgcc.
  7870. { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
  7871. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  7872. $RM conftest*
  7873. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7874. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  7875. (eval $ac_compile) 2>&5
  7876. ac_status=$?
  7877. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7878. (exit $ac_status); } 2>conftest.err; then
  7879. soname=conftest
  7880. lib=conftest
  7881. libobjs=conftest.$ac_objext
  7882. deplibs=
  7883. wl=$lt_prog_compiler_wl
  7884. pic_flag=$lt_prog_compiler_pic
  7885. compiler_flags=-v
  7886. linker_flags=-v
  7887. verstring=
  7888. output_objdir=.
  7889. libname=conftest
  7890. lt_save_allow_undefined_flag=$allow_undefined_flag
  7891. allow_undefined_flag=
  7892. if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
  7893. (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  7894. ac_status=$?
  7895. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7896. (exit $ac_status); }
  7897. then
  7898. archive_cmds_need_lc=no
  7899. else
  7900. archive_cmds_need_lc=yes
  7901. fi
  7902. allow_undefined_flag=$lt_save_allow_undefined_flag
  7903. else
  7904. cat conftest.err 1>&5
  7905. fi
  7906. $RM conftest*
  7907. { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
  7908. $as_echo "$archive_cmds_need_lc" >&6; }
  7909. ;;
  7910. esac
  7911. fi
  7912. ;;
  7913. esac
  7914. { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
  7915. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  7916. if test "$GCC" = yes; then
  7917. case $host_os in
  7918. darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
  7919. *) lt_awk_arg="/^libraries:/" ;;
  7920. esac
  7921. lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  7922. if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
  7923. # if the path contains ";" then we assume it to be the separator
  7924. # otherwise default to the standard path separator (i.e. ":") - it is
  7925. # assumed that no part of a normal pathname contains ";" but that should
  7926. # okay in the real world where ";" in dirpaths is itself problematic.
  7927. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
  7928. else
  7929. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  7930. fi
  7931. # Ok, now we have the path, separated by spaces, we can step through it
  7932. # and add multilib dir if necessary.
  7933. lt_tmp_lt_search_path_spec=
  7934. lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
  7935. for lt_sys_path in $lt_search_path_spec; do
  7936. if test -d "$lt_sys_path/$lt_multi_os_dir"; then
  7937. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
  7938. else
  7939. test -d "$lt_sys_path" && \
  7940. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
  7941. fi
  7942. done
  7943. lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
  7944. BEGIN {RS=" "; FS="/|\n";} {
  7945. lt_foo="";
  7946. lt_count=0;
  7947. for (lt_i = NF; lt_i > 0; lt_i--) {
  7948. if ($lt_i != "" && $lt_i != ".") {
  7949. if ($lt_i == "..") {
  7950. lt_count++;
  7951. } else {
  7952. if (lt_count == 0) {
  7953. lt_foo="/" $lt_i lt_foo;
  7954. } else {
  7955. lt_count--;
  7956. }
  7957. }
  7958. }
  7959. }
  7960. if (lt_foo != "") { lt_freq[lt_foo]++; }
  7961. if (lt_freq[lt_foo] == 1) { print lt_foo; }
  7962. }'`
  7963. sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
  7964. else
  7965. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  7966. fi
  7967. library_names_spec=
  7968. libname_spec='lib$name'
  7969. soname_spec=
  7970. shrext_cmds=".so"
  7971. postinstall_cmds=
  7972. postuninstall_cmds=
  7973. finish_cmds=
  7974. finish_eval=
  7975. shlibpath_var=
  7976. shlibpath_overrides_runpath=unknown
  7977. version_type=none
  7978. dynamic_linker="$host_os ld.so"
  7979. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  7980. need_lib_prefix=unknown
  7981. hardcode_into_libs=no
  7982. # when you set need_version to no, make sure it does not cause -set_version
  7983. # flags to be left without arguments
  7984. need_version=unknown
  7985. case $host_os in
  7986. aix3*)
  7987. version_type=linux
  7988. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  7989. shlibpath_var=LIBPATH
  7990. # AIX 3 has no versioning support, so we append a major version to the name.
  7991. soname_spec='${libname}${release}${shared_ext}$major'
  7992. ;;
  7993. aix[4-9]*)
  7994. version_type=linux
  7995. need_lib_prefix=no
  7996. need_version=no
  7997. hardcode_into_libs=yes
  7998. if test "$host_cpu" = ia64; then
  7999. # AIX 5 supports IA64
  8000. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  8001. shlibpath_var=LD_LIBRARY_PATH
  8002. else
  8003. # With GCC up to 2.95.x, collect2 would create an import file
  8004. # for dependence libraries. The import file would start with
  8005. # the line `#! .'. This would cause the generated library to
  8006. # depend on `.', always an invalid library. This was fixed in
  8007. # development snapshots of GCC prior to 3.0.
  8008. case $host_os in
  8009. aix4 | aix4.[01] | aix4.[01].*)
  8010. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  8011. echo ' yes '
  8012. echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  8013. :
  8014. else
  8015. can_build_shared=no
  8016. fi
  8017. ;;
  8018. esac
  8019. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  8020. # soname into executable. Probably we can add versioning support to
  8021. # collect2, so additional links can be useful in future.
  8022. if test "$aix_use_runtimelinking" = yes; then
  8023. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  8024. # instead of lib<name>.a to let people know that these are not
  8025. # typical AIX shared libraries.
  8026. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8027. else
  8028. # We preserve .a as extension for shared libraries through AIX4.2
  8029. # and later when we are not doing run time linking.
  8030. library_names_spec='${libname}${release}.a $libname.a'
  8031. soname_spec='${libname}${release}${shared_ext}$major'
  8032. fi
  8033. shlibpath_var=LIBPATH
  8034. fi
  8035. ;;
  8036. amigaos*)
  8037. case $host_cpu in
  8038. powerpc)
  8039. # Since July 2007 AmigaOS4 officially supports .so libraries.
  8040. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  8041. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8042. ;;
  8043. m68k)
  8044. library_names_spec='$libname.ixlibrary $libname.a'
  8045. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  8046. 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'
  8047. ;;
  8048. esac
  8049. ;;
  8050. beos*)
  8051. library_names_spec='${libname}${shared_ext}'
  8052. dynamic_linker="$host_os ld.so"
  8053. shlibpath_var=LIBRARY_PATH
  8054. ;;
  8055. bsdi[45]*)
  8056. version_type=linux
  8057. need_version=no
  8058. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8059. soname_spec='${libname}${release}${shared_ext}$major'
  8060. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  8061. shlibpath_var=LD_LIBRARY_PATH
  8062. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  8063. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  8064. # the default ld.so.conf also contains /usr/contrib/lib and
  8065. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  8066. # libtool to hard-code these into programs
  8067. ;;
  8068. cygwin* | mingw* | pw32* | cegcc*)
  8069. version_type=windows
  8070. shrext_cmds=".dll"
  8071. need_version=no
  8072. need_lib_prefix=no
  8073. case $GCC,$host_os in
  8074. yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
  8075. library_names_spec='$libname.dll.a'
  8076. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  8077. postinstall_cmds='base_file=`basename \${file}`~
  8078. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  8079. dldir=$destdir/`dirname \$dlpath`~
  8080. test -d \$dldir || mkdir -p \$dldir~
  8081. $install_prog $dir/$dlname \$dldir/$dlname~
  8082. chmod a+x \$dldir/$dlname~
  8083. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  8084. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  8085. fi'
  8086. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  8087. dlpath=$dir/\$dldll~
  8088. $RM \$dlpath'
  8089. shlibpath_overrides_runpath=yes
  8090. case $host_os in
  8091. cygwin*)
  8092. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  8093. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  8094. sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
  8095. ;;
  8096. mingw* | cegcc*)
  8097. # MinGW DLLs use traditional 'lib' prefix
  8098. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  8099. sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  8100. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  8101. # It is most probably a Windows format PATH printed by
  8102. # mingw gcc, but we are running on Cygwin. Gcc prints its search
  8103. # path with ; separators, and with drive letters. We can handle the
  8104. # drive letters (cygwin fileutils understands them), so leave them,
  8105. # especially as we might pass files found there to a mingw objdump,
  8106. # which wouldn't understand a cygwinified path. Ahh.
  8107. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  8108. else
  8109. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  8110. fi
  8111. ;;
  8112. pw32*)
  8113. # pw32 DLLs use 'pw' prefix rather than 'lib'
  8114. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  8115. ;;
  8116. esac
  8117. ;;
  8118. *)
  8119. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  8120. ;;
  8121. esac
  8122. dynamic_linker='Win32 ld.exe'
  8123. # FIXME: first we should search . and the directory the executable is in
  8124. shlibpath_var=PATH
  8125. ;;
  8126. darwin* | rhapsody*)
  8127. dynamic_linker="$host_os dyld"
  8128. version_type=darwin
  8129. need_lib_prefix=no
  8130. need_version=no
  8131. library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  8132. soname_spec='${libname}${release}${major}$shared_ext'
  8133. shlibpath_overrides_runpath=yes
  8134. shlibpath_var=DYLD_LIBRARY_PATH
  8135. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  8136. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
  8137. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  8138. ;;
  8139. dgux*)
  8140. version_type=linux
  8141. need_lib_prefix=no
  8142. need_version=no
  8143. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  8144. soname_spec='${libname}${release}${shared_ext}$major'
  8145. shlibpath_var=LD_LIBRARY_PATH
  8146. ;;
  8147. freebsd1*)
  8148. dynamic_linker=no
  8149. ;;
  8150. freebsd* | dragonfly*)
  8151. # DragonFly does not have aout. When/if they implement a new
  8152. # versioning mechanism, adjust this.
  8153. if test -x /usr/bin/objformat; then
  8154. objformat=`/usr/bin/objformat`
  8155. else
  8156. case $host_os in
  8157. freebsd[123]*) objformat=aout ;;
  8158. *) objformat=elf ;;
  8159. esac
  8160. fi
  8161. version_type=freebsd-$objformat
  8162. case $version_type in
  8163. freebsd-elf*)
  8164. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  8165. need_version=no
  8166. need_lib_prefix=no
  8167. ;;
  8168. freebsd-*)
  8169. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  8170. need_version=yes
  8171. ;;
  8172. esac
  8173. shlibpath_var=LD_LIBRARY_PATH
  8174. case $host_os in
  8175. freebsd2*)
  8176. shlibpath_overrides_runpath=yes
  8177. ;;
  8178. freebsd3.[01]* | freebsdelf3.[01]*)
  8179. shlibpath_overrides_runpath=yes
  8180. hardcode_into_libs=yes
  8181. ;;
  8182. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  8183. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  8184. shlibpath_overrides_runpath=no
  8185. hardcode_into_libs=yes
  8186. ;;
  8187. *) # from 4.6 on, and DragonFly
  8188. shlibpath_overrides_runpath=yes
  8189. hardcode_into_libs=yes
  8190. ;;
  8191. esac
  8192. ;;
  8193. 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. hardcode_into_libs=yes
  8201. ;;
  8202. hpux9* | hpux10* | hpux11*)
  8203. # Give a soname corresponding to the major version so that dld.sl refuses to
  8204. # link against other versions.
  8205. version_type=sunos
  8206. need_lib_prefix=no
  8207. need_version=no
  8208. case $host_cpu in
  8209. ia64*)
  8210. shrext_cmds='.so'
  8211. hardcode_into_libs=yes
  8212. dynamic_linker="$host_os dld.so"
  8213. shlibpath_var=LD_LIBRARY_PATH
  8214. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  8215. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8216. soname_spec='${libname}${release}${shared_ext}$major'
  8217. if test "X$HPUX_IA64_MODE" = X32; then
  8218. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  8219. else
  8220. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  8221. fi
  8222. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  8223. ;;
  8224. hppa*64*)
  8225. shrext_cmds='.sl'
  8226. hardcode_into_libs=yes
  8227. dynamic_linker="$host_os dld.sl"
  8228. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  8229. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  8230. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8231. soname_spec='${libname}${release}${shared_ext}$major'
  8232. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  8233. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  8234. ;;
  8235. *)
  8236. shrext_cmds='.sl'
  8237. dynamic_linker="$host_os dld.sl"
  8238. shlibpath_var=SHLIB_PATH
  8239. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  8240. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8241. soname_spec='${libname}${release}${shared_ext}$major'
  8242. ;;
  8243. esac
  8244. # HP-UX runs *really* slowly unless shared libraries are mode 555.
  8245. postinstall_cmds='chmod 555 $lib'
  8246. ;;
  8247. interix[3-9]*)
  8248. version_type=linux
  8249. need_lib_prefix=no
  8250. need_version=no
  8251. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  8252. soname_spec='${libname}${release}${shared_ext}$major'
  8253. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  8254. shlibpath_var=LD_LIBRARY_PATH
  8255. shlibpath_overrides_runpath=no
  8256. hardcode_into_libs=yes
  8257. ;;
  8258. irix5* | irix6* | nonstopux*)
  8259. case $host_os in
  8260. nonstopux*) version_type=nonstopux ;;
  8261. *)
  8262. if test "$lt_cv_prog_gnu_ld" = yes; then
  8263. version_type=linux
  8264. else
  8265. version_type=irix
  8266. fi ;;
  8267. esac
  8268. need_lib_prefix=no
  8269. need_version=no
  8270. soname_spec='${libname}${release}${shared_ext}$major'
  8271. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  8272. case $host_os in
  8273. irix5* | nonstopux*)
  8274. libsuff= shlibsuff=
  8275. ;;
  8276. *)
  8277. case $LD in # libtool.m4 will add one of these switches to LD
  8278. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  8279. libsuff= shlibsuff= libmagic=32-bit;;
  8280. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  8281. libsuff=32 shlibsuff=N32 libmagic=N32;;
  8282. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  8283. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  8284. *) libsuff= shlibsuff= libmagic=never-match;;
  8285. esac
  8286. ;;
  8287. esac
  8288. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  8289. shlibpath_overrides_runpath=no
  8290. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  8291. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  8292. hardcode_into_libs=yes
  8293. ;;
  8294. # No shared lib support for Linux oldld, aout, or coff.
  8295. linux*oldld* | linux*aout* | linux*coff*)
  8296. dynamic_linker=no
  8297. ;;
  8298. # This must be Linux ELF.
  8299. linux* | k*bsd*-gnu)
  8300. version_type=linux
  8301. need_lib_prefix=no
  8302. need_version=no
  8303. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8304. soname_spec='${libname}${release}${shared_ext}$major'
  8305. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  8306. shlibpath_var=LD_LIBRARY_PATH
  8307. shlibpath_overrides_runpath=no
  8308. # Some binutils ld are patched to set DT_RUNPATH
  8309. save_LDFLAGS=$LDFLAGS
  8310. save_libdir=$libdir
  8311. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
  8312. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
  8313. cat >conftest.$ac_ext <<_ACEOF
  8314. /* confdefs.h. */
  8315. _ACEOF
  8316. cat confdefs.h >>conftest.$ac_ext
  8317. cat >>conftest.$ac_ext <<_ACEOF
  8318. /* end confdefs.h. */
  8319. int
  8320. main ()
  8321. {
  8322. ;
  8323. return 0;
  8324. }
  8325. _ACEOF
  8326. rm -f conftest.$ac_objext conftest$ac_exeext
  8327. if { (ac_try="$ac_link"
  8328. case "(($ac_try" in
  8329. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8330. *) ac_try_echo=$ac_try;;
  8331. esac
  8332. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  8333. $as_echo "$ac_try_echo") >&5
  8334. (eval "$ac_link") 2>conftest.er1
  8335. ac_status=$?
  8336. grep -v '^ *+' conftest.er1 >conftest.err
  8337. rm -f conftest.er1
  8338. cat conftest.err >&5
  8339. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8340. (exit $ac_status); } && {
  8341. test -z "$ac_c_werror_flag" ||
  8342. test ! -s conftest.err
  8343. } && test -s conftest$ac_exeext && {
  8344. test "$cross_compiling" = yes ||
  8345. $as_test_x conftest$ac_exeext
  8346. }; then
  8347. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
  8348. shlibpath_overrides_runpath=yes
  8349. fi
  8350. else
  8351. $as_echo "$as_me: failed program was:" >&5
  8352. sed 's/^/| /' conftest.$ac_ext >&5
  8353. fi
  8354. rm -rf conftest.dSYM
  8355. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  8356. conftest$ac_exeext conftest.$ac_ext
  8357. LDFLAGS=$save_LDFLAGS
  8358. libdir=$save_libdir
  8359. # This implies no fast_install, which is unacceptable.
  8360. # Some rework will be needed to allow for fast_install
  8361. # before this can be enabled.
  8362. hardcode_into_libs=yes
  8363. # Append ld.so.conf contents to the search path
  8364. if test -f /etc/ld.so.conf; then
  8365. 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' ' '`
  8366. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  8367. fi
  8368. # We used to test for /lib/ld.so.1 and disable shared libraries on
  8369. # powerpc, because MkLinux only supported shared libraries with the
  8370. # GNU dynamic linker. Since this was broken with cross compilers,
  8371. # most powerpc-linux boxes support dynamic linking these days and
  8372. # people can always --disable-shared, the test was removed, and we
  8373. # assume the GNU/Linux dynamic linker is in use.
  8374. dynamic_linker='GNU/Linux ld.so'
  8375. ;;
  8376. netbsdelf*-gnu)
  8377. version_type=linux
  8378. need_lib_prefix=no
  8379. need_version=no
  8380. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  8381. soname_spec='${libname}${release}${shared_ext}$major'
  8382. shlibpath_var=LD_LIBRARY_PATH
  8383. shlibpath_overrides_runpath=no
  8384. hardcode_into_libs=yes
  8385. dynamic_linker='NetBSD ld.elf_so'
  8386. ;;
  8387. netbsd*)
  8388. version_type=sunos
  8389. need_lib_prefix=no
  8390. need_version=no
  8391. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  8392. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  8393. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  8394. dynamic_linker='NetBSD (a.out) ld.so'
  8395. else
  8396. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  8397. soname_spec='${libname}${release}${shared_ext}$major'
  8398. dynamic_linker='NetBSD ld.elf_so'
  8399. fi
  8400. shlibpath_var=LD_LIBRARY_PATH
  8401. shlibpath_overrides_runpath=yes
  8402. hardcode_into_libs=yes
  8403. ;;
  8404. newsos6)
  8405. version_type=linux
  8406. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8407. shlibpath_var=LD_LIBRARY_PATH
  8408. shlibpath_overrides_runpath=yes
  8409. ;;
  8410. *nto* | *qnx*)
  8411. version_type=qnx
  8412. need_lib_prefix=no
  8413. need_version=no
  8414. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8415. soname_spec='${libname}${release}${shared_ext}$major'
  8416. shlibpath_var=LD_LIBRARY_PATH
  8417. shlibpath_overrides_runpath=no
  8418. hardcode_into_libs=yes
  8419. dynamic_linker='ldqnx.so'
  8420. ;;
  8421. openbsd*)
  8422. version_type=sunos
  8423. sys_lib_dlsearch_path_spec="/usr/lib"
  8424. need_lib_prefix=no
  8425. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  8426. case $host_os in
  8427. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  8428. *) need_version=no ;;
  8429. esac
  8430. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  8431. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  8432. shlibpath_var=LD_LIBRARY_PATH
  8433. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  8434. case $host_os in
  8435. openbsd2.[89] | openbsd2.[89].*)
  8436. shlibpath_overrides_runpath=no
  8437. ;;
  8438. *)
  8439. shlibpath_overrides_runpath=yes
  8440. ;;
  8441. esac
  8442. else
  8443. shlibpath_overrides_runpath=yes
  8444. fi
  8445. ;;
  8446. os2*)
  8447. libname_spec='$name'
  8448. shrext_cmds=".dll"
  8449. need_lib_prefix=no
  8450. library_names_spec='$libname${shared_ext} $libname.a'
  8451. dynamic_linker='OS/2 ld.exe'
  8452. shlibpath_var=LIBPATH
  8453. ;;
  8454. osf3* | osf4* | osf5*)
  8455. version_type=osf
  8456. need_lib_prefix=no
  8457. need_version=no
  8458. soname_spec='${libname}${release}${shared_ext}$major'
  8459. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8460. shlibpath_var=LD_LIBRARY_PATH
  8461. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  8462. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  8463. ;;
  8464. rdos*)
  8465. dynamic_linker=no
  8466. ;;
  8467. solaris*)
  8468. version_type=linux
  8469. need_lib_prefix=no
  8470. need_version=no
  8471. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8472. soname_spec='${libname}${release}${shared_ext}$major'
  8473. shlibpath_var=LD_LIBRARY_PATH
  8474. shlibpath_overrides_runpath=yes
  8475. hardcode_into_libs=yes
  8476. # ldd complains unless libraries are executable
  8477. postinstall_cmds='chmod +x $lib'
  8478. ;;
  8479. sunos4*)
  8480. version_type=sunos
  8481. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  8482. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  8483. shlibpath_var=LD_LIBRARY_PATH
  8484. shlibpath_overrides_runpath=yes
  8485. if test "$with_gnu_ld" = yes; then
  8486. need_lib_prefix=no
  8487. fi
  8488. need_version=yes
  8489. ;;
  8490. sysv4 | sysv4.3*)
  8491. version_type=linux
  8492. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8493. soname_spec='${libname}${release}${shared_ext}$major'
  8494. shlibpath_var=LD_LIBRARY_PATH
  8495. case $host_vendor in
  8496. sni)
  8497. shlibpath_overrides_runpath=no
  8498. need_lib_prefix=no
  8499. runpath_var=LD_RUN_PATH
  8500. ;;
  8501. siemens)
  8502. need_lib_prefix=no
  8503. ;;
  8504. motorola)
  8505. need_lib_prefix=no
  8506. need_version=no
  8507. shlibpath_overrides_runpath=no
  8508. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  8509. ;;
  8510. esac
  8511. ;;
  8512. sysv4*MP*)
  8513. if test -d /usr/nec ;then
  8514. version_type=linux
  8515. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  8516. soname_spec='$libname${shared_ext}.$major'
  8517. shlibpath_var=LD_LIBRARY_PATH
  8518. fi
  8519. ;;
  8520. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  8521. version_type=freebsd-elf
  8522. need_lib_prefix=no
  8523. need_version=no
  8524. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  8525. soname_spec='${libname}${release}${shared_ext}$major'
  8526. shlibpath_var=LD_LIBRARY_PATH
  8527. shlibpath_overrides_runpath=yes
  8528. hardcode_into_libs=yes
  8529. if test "$with_gnu_ld" = yes; then
  8530. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  8531. else
  8532. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  8533. case $host_os in
  8534. sco3.2v5*)
  8535. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  8536. ;;
  8537. esac
  8538. fi
  8539. sys_lib_dlsearch_path_spec='/usr/lib'
  8540. ;;
  8541. tpf*)
  8542. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  8543. version_type=linux
  8544. need_lib_prefix=no
  8545. need_version=no
  8546. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8547. shlibpath_var=LD_LIBRARY_PATH
  8548. shlibpath_overrides_runpath=no
  8549. hardcode_into_libs=yes
  8550. ;;
  8551. uts4*)
  8552. version_type=linux
  8553. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8554. soname_spec='${libname}${release}${shared_ext}$major'
  8555. shlibpath_var=LD_LIBRARY_PATH
  8556. ;;
  8557. *)
  8558. dynamic_linker=no
  8559. ;;
  8560. esac
  8561. { $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
  8562. $as_echo "$dynamic_linker" >&6; }
  8563. test "$dynamic_linker" = no && can_build_shared=no
  8564. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  8565. if test "$GCC" = yes; then
  8566. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  8567. fi
  8568. if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  8569. sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  8570. fi
  8571. if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  8572. sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  8573. fi
  8574. { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
  8575. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  8576. hardcode_action=
  8577. if test -n "$hardcode_libdir_flag_spec" ||
  8578. test -n "$runpath_var" ||
  8579. test "X$hardcode_automatic" = "Xyes" ; then
  8580. # We can hardcode non-existent directories.
  8581. if test "$hardcode_direct" != no &&
  8582. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  8583. # have to relink, otherwise we might link with an installed library
  8584. # when we should be linking with a yet-to-be-installed one
  8585. ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
  8586. test "$hardcode_minus_L" != no; then
  8587. # Linking always hardcodes the temporary library directory.
  8588. hardcode_action=relink
  8589. else
  8590. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  8591. hardcode_action=immediate
  8592. fi
  8593. else
  8594. # We cannot hardcode anything, or else we can only hardcode existing
  8595. # directories.
  8596. hardcode_action=unsupported
  8597. fi
  8598. { $as_echo "$as_me:$LINENO: result: $hardcode_action" >&5
  8599. $as_echo "$hardcode_action" >&6; }
  8600. if test "$hardcode_action" = relink ||
  8601. test "$inherit_rpath" = yes; then
  8602. # Fast installation is not supported
  8603. enable_fast_install=no
  8604. elif test "$shlibpath_overrides_runpath" = yes ||
  8605. test "$enable_shared" = no; then
  8606. # Fast installation is not necessary
  8607. enable_fast_install=needless
  8608. fi
  8609. if test "x$enable_dlopen" != xyes; then
  8610. enable_dlopen=unknown
  8611. enable_dlopen_self=unknown
  8612. enable_dlopen_self_static=unknown
  8613. else
  8614. lt_cv_dlopen=no
  8615. lt_cv_dlopen_libs=
  8616. case $host_os in
  8617. beos*)
  8618. lt_cv_dlopen="load_add_on"
  8619. lt_cv_dlopen_libs=
  8620. lt_cv_dlopen_self=yes
  8621. ;;
  8622. mingw* | pw32* | cegcc*)
  8623. lt_cv_dlopen="LoadLibrary"
  8624. lt_cv_dlopen_libs=
  8625. ;;
  8626. cygwin*)
  8627. lt_cv_dlopen="dlopen"
  8628. lt_cv_dlopen_libs=
  8629. ;;
  8630. darwin*)
  8631. # if libdl is installed we need to link against it
  8632. { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
  8633. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  8634. if test "${ac_cv_lib_dl_dlopen+set}" = set; then
  8635. $as_echo_n "(cached) " >&6
  8636. else
  8637. ac_check_lib_save_LIBS=$LIBS
  8638. LIBS="-ldl $LIBS"
  8639. cat >conftest.$ac_ext <<_ACEOF
  8640. /* confdefs.h. */
  8641. _ACEOF
  8642. cat confdefs.h >>conftest.$ac_ext
  8643. cat >>conftest.$ac_ext <<_ACEOF
  8644. /* end confdefs.h. */
  8645. /* Override any GCC internal prototype to avoid an error.
  8646. Use char because int might match the return type of a GCC
  8647. builtin and then its argument prototype would still apply. */
  8648. #ifdef __cplusplus
  8649. extern "C"
  8650. #endif
  8651. char dlopen ();
  8652. int
  8653. main ()
  8654. {
  8655. return dlopen ();
  8656. ;
  8657. return 0;
  8658. }
  8659. _ACEOF
  8660. rm -f conftest.$ac_objext conftest$ac_exeext
  8661. if { (ac_try="$ac_link"
  8662. case "(($ac_try" in
  8663. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8664. *) ac_try_echo=$ac_try;;
  8665. esac
  8666. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  8667. $as_echo "$ac_try_echo") >&5
  8668. (eval "$ac_link") 2>conftest.er1
  8669. ac_status=$?
  8670. grep -v '^ *+' conftest.er1 >conftest.err
  8671. rm -f conftest.er1
  8672. cat conftest.err >&5
  8673. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8674. (exit $ac_status); } && {
  8675. test -z "$ac_c_werror_flag" ||
  8676. test ! -s conftest.err
  8677. } && test -s conftest$ac_exeext && {
  8678. test "$cross_compiling" = yes ||
  8679. $as_test_x conftest$ac_exeext
  8680. }; then
  8681. ac_cv_lib_dl_dlopen=yes
  8682. else
  8683. $as_echo "$as_me: failed program was:" >&5
  8684. sed 's/^/| /' conftest.$ac_ext >&5
  8685. ac_cv_lib_dl_dlopen=no
  8686. fi
  8687. rm -rf conftest.dSYM
  8688. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  8689. conftest$ac_exeext conftest.$ac_ext
  8690. LIBS=$ac_check_lib_save_LIBS
  8691. fi
  8692. { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
  8693. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  8694. if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
  8695. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  8696. else
  8697. lt_cv_dlopen="dyld"
  8698. lt_cv_dlopen_libs=
  8699. lt_cv_dlopen_self=yes
  8700. fi
  8701. ;;
  8702. *)
  8703. { $as_echo "$as_me:$LINENO: checking for shl_load" >&5
  8704. $as_echo_n "checking for shl_load... " >&6; }
  8705. if test "${ac_cv_func_shl_load+set}" = set; then
  8706. $as_echo_n "(cached) " >&6
  8707. else
  8708. cat >conftest.$ac_ext <<_ACEOF
  8709. /* confdefs.h. */
  8710. _ACEOF
  8711. cat confdefs.h >>conftest.$ac_ext
  8712. cat >>conftest.$ac_ext <<_ACEOF
  8713. /* end confdefs.h. */
  8714. /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
  8715. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  8716. #define shl_load innocuous_shl_load
  8717. /* System header to define __stub macros and hopefully few prototypes,
  8718. which can conflict with char shl_load (); below.
  8719. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  8720. <limits.h> exists even on freestanding compilers. */
  8721. #ifdef __STDC__
  8722. # include <limits.h>
  8723. #else
  8724. # include <assert.h>
  8725. #endif
  8726. #undef shl_load
  8727. /* Override any GCC internal prototype to avoid an error.
  8728. Use char because int might match the return type of a GCC
  8729. builtin and then its argument prototype would still apply. */
  8730. #ifdef __cplusplus
  8731. extern "C"
  8732. #endif
  8733. char shl_load ();
  8734. /* The GNU C library defines this for functions which it implements
  8735. to always fail with ENOSYS. Some functions are actually named
  8736. something starting with __ and the normal name is an alias. */
  8737. #if defined __stub_shl_load || defined __stub___shl_load
  8738. choke me
  8739. #endif
  8740. int
  8741. main ()
  8742. {
  8743. return shl_load ();
  8744. ;
  8745. return 0;
  8746. }
  8747. _ACEOF
  8748. rm -f conftest.$ac_objext conftest$ac_exeext
  8749. if { (ac_try="$ac_link"
  8750. case "(($ac_try" in
  8751. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8752. *) ac_try_echo=$ac_try;;
  8753. esac
  8754. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  8755. $as_echo "$ac_try_echo") >&5
  8756. (eval "$ac_link") 2>conftest.er1
  8757. ac_status=$?
  8758. grep -v '^ *+' conftest.er1 >conftest.err
  8759. rm -f conftest.er1
  8760. cat conftest.err >&5
  8761. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8762. (exit $ac_status); } && {
  8763. test -z "$ac_c_werror_flag" ||
  8764. test ! -s conftest.err
  8765. } && test -s conftest$ac_exeext && {
  8766. test "$cross_compiling" = yes ||
  8767. $as_test_x conftest$ac_exeext
  8768. }; then
  8769. ac_cv_func_shl_load=yes
  8770. else
  8771. $as_echo "$as_me: failed program was:" >&5
  8772. sed 's/^/| /' conftest.$ac_ext >&5
  8773. ac_cv_func_shl_load=no
  8774. fi
  8775. rm -rf conftest.dSYM
  8776. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  8777. conftest$ac_exeext conftest.$ac_ext
  8778. fi
  8779. { $as_echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
  8780. $as_echo "$ac_cv_func_shl_load" >&6; }
  8781. if test "x$ac_cv_func_shl_load" = x""yes; then
  8782. lt_cv_dlopen="shl_load"
  8783. else
  8784. { $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
  8785. $as_echo_n "checking for shl_load in -ldld... " >&6; }
  8786. if test "${ac_cv_lib_dld_shl_load+set}" = set; then
  8787. $as_echo_n "(cached) " >&6
  8788. else
  8789. ac_check_lib_save_LIBS=$LIBS
  8790. LIBS="-ldld $LIBS"
  8791. cat >conftest.$ac_ext <<_ACEOF
  8792. /* confdefs.h. */
  8793. _ACEOF
  8794. cat confdefs.h >>conftest.$ac_ext
  8795. cat >>conftest.$ac_ext <<_ACEOF
  8796. /* end confdefs.h. */
  8797. /* Override any GCC internal prototype to avoid an error.
  8798. Use char because int might match the return type of a GCC
  8799. builtin and then its argument prototype would still apply. */
  8800. #ifdef __cplusplus
  8801. extern "C"
  8802. #endif
  8803. char shl_load ();
  8804. int
  8805. main ()
  8806. {
  8807. return shl_load ();
  8808. ;
  8809. return 0;
  8810. }
  8811. _ACEOF
  8812. rm -f conftest.$ac_objext conftest$ac_exeext
  8813. if { (ac_try="$ac_link"
  8814. case "(($ac_try" in
  8815. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8816. *) ac_try_echo=$ac_try;;
  8817. esac
  8818. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  8819. $as_echo "$ac_try_echo") >&5
  8820. (eval "$ac_link") 2>conftest.er1
  8821. ac_status=$?
  8822. grep -v '^ *+' conftest.er1 >conftest.err
  8823. rm -f conftest.er1
  8824. cat conftest.err >&5
  8825. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8826. (exit $ac_status); } && {
  8827. test -z "$ac_c_werror_flag" ||
  8828. test ! -s conftest.err
  8829. } && test -s conftest$ac_exeext && {
  8830. test "$cross_compiling" = yes ||
  8831. $as_test_x conftest$ac_exeext
  8832. }; then
  8833. ac_cv_lib_dld_shl_load=yes
  8834. else
  8835. $as_echo "$as_me: failed program was:" >&5
  8836. sed 's/^/| /' conftest.$ac_ext >&5
  8837. ac_cv_lib_dld_shl_load=no
  8838. fi
  8839. rm -rf conftest.dSYM
  8840. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  8841. conftest$ac_exeext conftest.$ac_ext
  8842. LIBS=$ac_check_lib_save_LIBS
  8843. fi
  8844. { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
  8845. $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
  8846. if test "x$ac_cv_lib_dld_shl_load" = x""yes; then
  8847. lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
  8848. else
  8849. { $as_echo "$as_me:$LINENO: checking for dlopen" >&5
  8850. $as_echo_n "checking for dlopen... " >&6; }
  8851. if test "${ac_cv_func_dlopen+set}" = set; then
  8852. $as_echo_n "(cached) " >&6
  8853. else
  8854. cat >conftest.$ac_ext <<_ACEOF
  8855. /* confdefs.h. */
  8856. _ACEOF
  8857. cat confdefs.h >>conftest.$ac_ext
  8858. cat >>conftest.$ac_ext <<_ACEOF
  8859. /* end confdefs.h. */
  8860. /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
  8861. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  8862. #define dlopen innocuous_dlopen
  8863. /* System header to define __stub macros and hopefully few prototypes,
  8864. which can conflict with char dlopen (); below.
  8865. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  8866. <limits.h> exists even on freestanding compilers. */
  8867. #ifdef __STDC__
  8868. # include <limits.h>
  8869. #else
  8870. # include <assert.h>
  8871. #endif
  8872. #undef dlopen
  8873. /* Override any GCC internal prototype to avoid an error.
  8874. Use char because int might match the return type of a GCC
  8875. builtin and then its argument prototype would still apply. */
  8876. #ifdef __cplusplus
  8877. extern "C"
  8878. #endif
  8879. char dlopen ();
  8880. /* The GNU C library defines this for functions which it implements
  8881. to always fail with ENOSYS. Some functions are actually named
  8882. something starting with __ and the normal name is an alias. */
  8883. #if defined __stub_dlopen || defined __stub___dlopen
  8884. choke me
  8885. #endif
  8886. int
  8887. main ()
  8888. {
  8889. return dlopen ();
  8890. ;
  8891. return 0;
  8892. }
  8893. _ACEOF
  8894. rm -f conftest.$ac_objext conftest$ac_exeext
  8895. if { (ac_try="$ac_link"
  8896. case "(($ac_try" in
  8897. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8898. *) ac_try_echo=$ac_try;;
  8899. esac
  8900. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  8901. $as_echo "$ac_try_echo") >&5
  8902. (eval "$ac_link") 2>conftest.er1
  8903. ac_status=$?
  8904. grep -v '^ *+' conftest.er1 >conftest.err
  8905. rm -f conftest.er1
  8906. cat conftest.err >&5
  8907. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8908. (exit $ac_status); } && {
  8909. test -z "$ac_c_werror_flag" ||
  8910. test ! -s conftest.err
  8911. } && test -s conftest$ac_exeext && {
  8912. test "$cross_compiling" = yes ||
  8913. $as_test_x conftest$ac_exeext
  8914. }; then
  8915. ac_cv_func_dlopen=yes
  8916. else
  8917. $as_echo "$as_me: failed program was:" >&5
  8918. sed 's/^/| /' conftest.$ac_ext >&5
  8919. ac_cv_func_dlopen=no
  8920. fi
  8921. rm -rf conftest.dSYM
  8922. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  8923. conftest$ac_exeext conftest.$ac_ext
  8924. fi
  8925. { $as_echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
  8926. $as_echo "$ac_cv_func_dlopen" >&6; }
  8927. if test "x$ac_cv_func_dlopen" = x""yes; then
  8928. lt_cv_dlopen="dlopen"
  8929. else
  8930. { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
  8931. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  8932. if test "${ac_cv_lib_dl_dlopen+set}" = set; then
  8933. $as_echo_n "(cached) " >&6
  8934. else
  8935. ac_check_lib_save_LIBS=$LIBS
  8936. LIBS="-ldl $LIBS"
  8937. cat >conftest.$ac_ext <<_ACEOF
  8938. /* confdefs.h. */
  8939. _ACEOF
  8940. cat confdefs.h >>conftest.$ac_ext
  8941. cat >>conftest.$ac_ext <<_ACEOF
  8942. /* end confdefs.h. */
  8943. /* Override any GCC internal prototype to avoid an error.
  8944. Use char because int might match the return type of a GCC
  8945. builtin and then its argument prototype would still apply. */
  8946. #ifdef __cplusplus
  8947. extern "C"
  8948. #endif
  8949. char dlopen ();
  8950. int
  8951. main ()
  8952. {
  8953. return dlopen ();
  8954. ;
  8955. return 0;
  8956. }
  8957. _ACEOF
  8958. rm -f conftest.$ac_objext conftest$ac_exeext
  8959. if { (ac_try="$ac_link"
  8960. case "(($ac_try" in
  8961. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8962. *) ac_try_echo=$ac_try;;
  8963. esac
  8964. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  8965. $as_echo "$ac_try_echo") >&5
  8966. (eval "$ac_link") 2>conftest.er1
  8967. ac_status=$?
  8968. grep -v '^ *+' conftest.er1 >conftest.err
  8969. rm -f conftest.er1
  8970. cat conftest.err >&5
  8971. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8972. (exit $ac_status); } && {
  8973. test -z "$ac_c_werror_flag" ||
  8974. test ! -s conftest.err
  8975. } && test -s conftest$ac_exeext && {
  8976. test "$cross_compiling" = yes ||
  8977. $as_test_x conftest$ac_exeext
  8978. }; then
  8979. ac_cv_lib_dl_dlopen=yes
  8980. else
  8981. $as_echo "$as_me: failed program was:" >&5
  8982. sed 's/^/| /' conftest.$ac_ext >&5
  8983. ac_cv_lib_dl_dlopen=no
  8984. fi
  8985. rm -rf conftest.dSYM
  8986. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  8987. conftest$ac_exeext conftest.$ac_ext
  8988. LIBS=$ac_check_lib_save_LIBS
  8989. fi
  8990. { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
  8991. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  8992. if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
  8993. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  8994. else
  8995. { $as_echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
  8996. $as_echo_n "checking for dlopen in -lsvld... " >&6; }
  8997. if test "${ac_cv_lib_svld_dlopen+set}" = set; then
  8998. $as_echo_n "(cached) " >&6
  8999. else
  9000. ac_check_lib_save_LIBS=$LIBS
  9001. LIBS="-lsvld $LIBS"
  9002. cat >conftest.$ac_ext <<_ACEOF
  9003. /* confdefs.h. */
  9004. _ACEOF
  9005. cat confdefs.h >>conftest.$ac_ext
  9006. cat >>conftest.$ac_ext <<_ACEOF
  9007. /* end confdefs.h. */
  9008. /* Override any GCC internal prototype to avoid an error.
  9009. Use char because int might match the return type of a GCC
  9010. builtin and then its argument prototype would still apply. */
  9011. #ifdef __cplusplus
  9012. extern "C"
  9013. #endif
  9014. char dlopen ();
  9015. int
  9016. main ()
  9017. {
  9018. return dlopen ();
  9019. ;
  9020. return 0;
  9021. }
  9022. _ACEOF
  9023. rm -f conftest.$ac_objext conftest$ac_exeext
  9024. if { (ac_try="$ac_link"
  9025. case "(($ac_try" in
  9026. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9027. *) ac_try_echo=$ac_try;;
  9028. esac
  9029. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  9030. $as_echo "$ac_try_echo") >&5
  9031. (eval "$ac_link") 2>conftest.er1
  9032. ac_status=$?
  9033. grep -v '^ *+' conftest.er1 >conftest.err
  9034. rm -f conftest.er1
  9035. cat conftest.err >&5
  9036. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9037. (exit $ac_status); } && {
  9038. test -z "$ac_c_werror_flag" ||
  9039. test ! -s conftest.err
  9040. } && test -s conftest$ac_exeext && {
  9041. test "$cross_compiling" = yes ||
  9042. $as_test_x conftest$ac_exeext
  9043. }; then
  9044. ac_cv_lib_svld_dlopen=yes
  9045. else
  9046. $as_echo "$as_me: failed program was:" >&5
  9047. sed 's/^/| /' conftest.$ac_ext >&5
  9048. ac_cv_lib_svld_dlopen=no
  9049. fi
  9050. rm -rf conftest.dSYM
  9051. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  9052. conftest$ac_exeext conftest.$ac_ext
  9053. LIBS=$ac_check_lib_save_LIBS
  9054. fi
  9055. { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
  9056. $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
  9057. if test "x$ac_cv_lib_svld_dlopen" = x""yes; then
  9058. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
  9059. else
  9060. { $as_echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
  9061. $as_echo_n "checking for dld_link in -ldld... " >&6; }
  9062. if test "${ac_cv_lib_dld_dld_link+set}" = set; then
  9063. $as_echo_n "(cached) " >&6
  9064. else
  9065. ac_check_lib_save_LIBS=$LIBS
  9066. LIBS="-ldld $LIBS"
  9067. cat >conftest.$ac_ext <<_ACEOF
  9068. /* confdefs.h. */
  9069. _ACEOF
  9070. cat confdefs.h >>conftest.$ac_ext
  9071. cat >>conftest.$ac_ext <<_ACEOF
  9072. /* end confdefs.h. */
  9073. /* Override any GCC internal prototype to avoid an error.
  9074. Use char because int might match the return type of a GCC
  9075. builtin and then its argument prototype would still apply. */
  9076. #ifdef __cplusplus
  9077. extern "C"
  9078. #endif
  9079. char dld_link ();
  9080. int
  9081. main ()
  9082. {
  9083. return dld_link ();
  9084. ;
  9085. return 0;
  9086. }
  9087. _ACEOF
  9088. rm -f conftest.$ac_objext conftest$ac_exeext
  9089. if { (ac_try="$ac_link"
  9090. case "(($ac_try" in
  9091. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9092. *) ac_try_echo=$ac_try;;
  9093. esac
  9094. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  9095. $as_echo "$ac_try_echo") >&5
  9096. (eval "$ac_link") 2>conftest.er1
  9097. ac_status=$?
  9098. grep -v '^ *+' conftest.er1 >conftest.err
  9099. rm -f conftest.er1
  9100. cat conftest.err >&5
  9101. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9102. (exit $ac_status); } && {
  9103. test -z "$ac_c_werror_flag" ||
  9104. test ! -s conftest.err
  9105. } && test -s conftest$ac_exeext && {
  9106. test "$cross_compiling" = yes ||
  9107. $as_test_x conftest$ac_exeext
  9108. }; then
  9109. ac_cv_lib_dld_dld_link=yes
  9110. else
  9111. $as_echo "$as_me: failed program was:" >&5
  9112. sed 's/^/| /' conftest.$ac_ext >&5
  9113. ac_cv_lib_dld_dld_link=no
  9114. fi
  9115. rm -rf conftest.dSYM
  9116. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  9117. conftest$ac_exeext conftest.$ac_ext
  9118. LIBS=$ac_check_lib_save_LIBS
  9119. fi
  9120. { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
  9121. $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
  9122. if test "x$ac_cv_lib_dld_dld_link" = x""yes; then
  9123. lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
  9124. fi
  9125. fi
  9126. fi
  9127. fi
  9128. fi
  9129. fi
  9130. ;;
  9131. esac
  9132. if test "x$lt_cv_dlopen" != xno; then
  9133. enable_dlopen=yes
  9134. else
  9135. enable_dlopen=no
  9136. fi
  9137. case $lt_cv_dlopen in
  9138. dlopen)
  9139. save_CPPFLAGS="$CPPFLAGS"
  9140. test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  9141. save_LDFLAGS="$LDFLAGS"
  9142. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  9143. save_LIBS="$LIBS"
  9144. LIBS="$lt_cv_dlopen_libs $LIBS"
  9145. { $as_echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
  9146. $as_echo_n "checking whether a program can dlopen itself... " >&6; }
  9147. if test "${lt_cv_dlopen_self+set}" = set; then
  9148. $as_echo_n "(cached) " >&6
  9149. else
  9150. if test "$cross_compiling" = yes; then :
  9151. lt_cv_dlopen_self=cross
  9152. else
  9153. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  9154. lt_status=$lt_dlunknown
  9155. cat > conftest.$ac_ext <<_LT_EOF
  9156. #line 10722 "configure"
  9157. #include "confdefs.h"
  9158. #if HAVE_DLFCN_H
  9159. #include <dlfcn.h>
  9160. #endif
  9161. #include <stdio.h>
  9162. #ifdef RTLD_GLOBAL
  9163. # define LT_DLGLOBAL RTLD_GLOBAL
  9164. #else
  9165. # ifdef DL_GLOBAL
  9166. # define LT_DLGLOBAL DL_GLOBAL
  9167. # else
  9168. # define LT_DLGLOBAL 0
  9169. # endif
  9170. #endif
  9171. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  9172. find out it does not work in some platform. */
  9173. #ifndef LT_DLLAZY_OR_NOW
  9174. # ifdef RTLD_LAZY
  9175. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  9176. # else
  9177. # ifdef DL_LAZY
  9178. # define LT_DLLAZY_OR_NOW DL_LAZY
  9179. # else
  9180. # ifdef RTLD_NOW
  9181. # define LT_DLLAZY_OR_NOW RTLD_NOW
  9182. # else
  9183. # ifdef DL_NOW
  9184. # define LT_DLLAZY_OR_NOW DL_NOW
  9185. # else
  9186. # define LT_DLLAZY_OR_NOW 0
  9187. # endif
  9188. # endif
  9189. # endif
  9190. # endif
  9191. #endif
  9192. void fnord() { int i=42;}
  9193. int main ()
  9194. {
  9195. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  9196. int status = $lt_dlunknown;
  9197. if (self)
  9198. {
  9199. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  9200. else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  9201. /* dlclose (self); */
  9202. }
  9203. else
  9204. puts (dlerror ());
  9205. return status;
  9206. }
  9207. _LT_EOF
  9208. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  9209. (eval $ac_link) 2>&5
  9210. ac_status=$?
  9211. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9212. (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
  9213. (./conftest; exit; ) >&5 2>/dev/null
  9214. lt_status=$?
  9215. case x$lt_status in
  9216. x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  9217. x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  9218. x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
  9219. esac
  9220. else :
  9221. # compilation failed
  9222. lt_cv_dlopen_self=no
  9223. fi
  9224. fi
  9225. rm -fr conftest*
  9226. fi
  9227. { $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
  9228. $as_echo "$lt_cv_dlopen_self" >&6; }
  9229. if test "x$lt_cv_dlopen_self" = xyes; then
  9230. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  9231. { $as_echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
  9232. $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
  9233. if test "${lt_cv_dlopen_self_static+set}" = set; then
  9234. $as_echo_n "(cached) " >&6
  9235. else
  9236. if test "$cross_compiling" = yes; then :
  9237. lt_cv_dlopen_self_static=cross
  9238. else
  9239. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  9240. lt_status=$lt_dlunknown
  9241. cat > conftest.$ac_ext <<_LT_EOF
  9242. #line 10818 "configure"
  9243. #include "confdefs.h"
  9244. #if HAVE_DLFCN_H
  9245. #include <dlfcn.h>
  9246. #endif
  9247. #include <stdio.h>
  9248. #ifdef RTLD_GLOBAL
  9249. # define LT_DLGLOBAL RTLD_GLOBAL
  9250. #else
  9251. # ifdef DL_GLOBAL
  9252. # define LT_DLGLOBAL DL_GLOBAL
  9253. # else
  9254. # define LT_DLGLOBAL 0
  9255. # endif
  9256. #endif
  9257. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  9258. find out it does not work in some platform. */
  9259. #ifndef LT_DLLAZY_OR_NOW
  9260. # ifdef RTLD_LAZY
  9261. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  9262. # else
  9263. # ifdef DL_LAZY
  9264. # define LT_DLLAZY_OR_NOW DL_LAZY
  9265. # else
  9266. # ifdef RTLD_NOW
  9267. # define LT_DLLAZY_OR_NOW RTLD_NOW
  9268. # else
  9269. # ifdef DL_NOW
  9270. # define LT_DLLAZY_OR_NOW DL_NOW
  9271. # else
  9272. # define LT_DLLAZY_OR_NOW 0
  9273. # endif
  9274. # endif
  9275. # endif
  9276. # endif
  9277. #endif
  9278. void fnord() { int i=42;}
  9279. int main ()
  9280. {
  9281. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  9282. int status = $lt_dlunknown;
  9283. if (self)
  9284. {
  9285. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  9286. else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  9287. /* dlclose (self); */
  9288. }
  9289. else
  9290. puts (dlerror ());
  9291. return status;
  9292. }
  9293. _LT_EOF
  9294. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  9295. (eval $ac_link) 2>&5
  9296. ac_status=$?
  9297. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9298. (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
  9299. (./conftest; exit; ) >&5 2>/dev/null
  9300. lt_status=$?
  9301. case x$lt_status in
  9302. x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  9303. x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  9304. x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
  9305. esac
  9306. else :
  9307. # compilation failed
  9308. lt_cv_dlopen_self_static=no
  9309. fi
  9310. fi
  9311. rm -fr conftest*
  9312. fi
  9313. { $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
  9314. $as_echo "$lt_cv_dlopen_self_static" >&6; }
  9315. fi
  9316. CPPFLAGS="$save_CPPFLAGS"
  9317. LDFLAGS="$save_LDFLAGS"
  9318. LIBS="$save_LIBS"
  9319. ;;
  9320. esac
  9321. case $lt_cv_dlopen_self in
  9322. yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  9323. *) enable_dlopen_self=unknown ;;
  9324. esac
  9325. case $lt_cv_dlopen_self_static in
  9326. yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  9327. *) enable_dlopen_self_static=unknown ;;
  9328. esac
  9329. fi
  9330. striplib=
  9331. old_striplib=
  9332. { $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
  9333. $as_echo_n "checking whether stripping libraries is possible... " >&6; }
  9334. if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
  9335. test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  9336. test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  9337. { $as_echo "$as_me:$LINENO: result: yes" >&5
  9338. $as_echo "yes" >&6; }
  9339. else
  9340. # FIXME - insert some real tests, host_os isn't really good enough
  9341. case $host_os in
  9342. darwin*)
  9343. if test -n "$STRIP" ; then
  9344. striplib="$STRIP -x"
  9345. old_striplib="$STRIP -S"
  9346. { $as_echo "$as_me:$LINENO: result: yes" >&5
  9347. $as_echo "yes" >&6; }
  9348. else
  9349. { $as_echo "$as_me:$LINENO: result: no" >&5
  9350. $as_echo "no" >&6; }
  9351. fi
  9352. ;;
  9353. *)
  9354. { $as_echo "$as_me:$LINENO: result: no" >&5
  9355. $as_echo "no" >&6; }
  9356. ;;
  9357. esac
  9358. fi
  9359. # Report which library types will actually be built
  9360. { $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
  9361. $as_echo_n "checking if libtool supports shared libraries... " >&6; }
  9362. { $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
  9363. $as_echo "$can_build_shared" >&6; }
  9364. { $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
  9365. $as_echo_n "checking whether to build shared libraries... " >&6; }
  9366. test "$can_build_shared" = "no" && enable_shared=no
  9367. # On AIX, shared libraries and static libraries use the same namespace, and
  9368. # are all built from PIC.
  9369. case $host_os in
  9370. aix3*)
  9371. test "$enable_shared" = yes && enable_static=no
  9372. if test -n "$RANLIB"; then
  9373. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  9374. postinstall_cmds='$RANLIB $lib'
  9375. fi
  9376. ;;
  9377. aix[4-9]*)
  9378. if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  9379. test "$enable_shared" = yes && enable_static=no
  9380. fi
  9381. ;;
  9382. esac
  9383. { $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
  9384. $as_echo "$enable_shared" >&6; }
  9385. { $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
  9386. $as_echo_n "checking whether to build static libraries... " >&6; }
  9387. # Make sure either enable_shared or enable_static is yes.
  9388. test "$enable_shared" = yes || enable_static=yes
  9389. { $as_echo "$as_me:$LINENO: result: $enable_static" >&5
  9390. $as_echo "$enable_static" >&6; }
  9391. fi
  9392. ac_ext=cpp
  9393. ac_cpp='$CXXCPP $CPPFLAGS'
  9394. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  9395. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  9396. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  9397. CC="$lt_save_CC"
  9398. ac_config_commands="$ac_config_commands libtool"
  9399. # Only expand once:
  9400. ac_ext=cpp
  9401. ac_cpp='$CXXCPP $CPPFLAGS'
  9402. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  9403. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  9404. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  9405. if test -z "$CXX"; then
  9406. if test -n "$CCC"; then
  9407. CXX=$CCC
  9408. else
  9409. if test -n "$ac_tool_prefix"; then
  9410. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  9411. do
  9412. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  9413. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  9414. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  9415. $as_echo_n "checking for $ac_word... " >&6; }
  9416. if test "${ac_cv_prog_CXX+set}" = set; then
  9417. $as_echo_n "(cached) " >&6
  9418. else
  9419. if test -n "$CXX"; then
  9420. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  9421. else
  9422. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9423. for as_dir in $PATH
  9424. do
  9425. IFS=$as_save_IFS
  9426. test -z "$as_dir" && as_dir=.
  9427. for ac_exec_ext in '' $ac_executable_extensions; do
  9428. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  9429. ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  9430. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  9431. break 2
  9432. fi
  9433. done
  9434. done
  9435. IFS=$as_save_IFS
  9436. fi
  9437. fi
  9438. CXX=$ac_cv_prog_CXX
  9439. if test -n "$CXX"; then
  9440. { $as_echo "$as_me:$LINENO: result: $CXX" >&5
  9441. $as_echo "$CXX" >&6; }
  9442. else
  9443. { $as_echo "$as_me:$LINENO: result: no" >&5
  9444. $as_echo "no" >&6; }
  9445. fi
  9446. test -n "$CXX" && break
  9447. done
  9448. fi
  9449. if test -z "$CXX"; then
  9450. ac_ct_CXX=$CXX
  9451. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  9452. do
  9453. # Extract the first word of "$ac_prog", so it can be a program name with args.
  9454. set dummy $ac_prog; ac_word=$2
  9455. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  9456. $as_echo_n "checking for $ac_word... " >&6; }
  9457. if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
  9458. $as_echo_n "(cached) " >&6
  9459. else
  9460. if test -n "$ac_ct_CXX"; then
  9461. ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  9462. else
  9463. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9464. for as_dir in $PATH
  9465. do
  9466. IFS=$as_save_IFS
  9467. test -z "$as_dir" && as_dir=.
  9468. for ac_exec_ext in '' $ac_executable_extensions; do
  9469. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  9470. ac_cv_prog_ac_ct_CXX="$ac_prog"
  9471. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  9472. break 2
  9473. fi
  9474. done
  9475. done
  9476. IFS=$as_save_IFS
  9477. fi
  9478. fi
  9479. ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  9480. if test -n "$ac_ct_CXX"; then
  9481. { $as_echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
  9482. $as_echo "$ac_ct_CXX" >&6; }
  9483. else
  9484. { $as_echo "$as_me:$LINENO: result: no" >&5
  9485. $as_echo "no" >&6; }
  9486. fi
  9487. test -n "$ac_ct_CXX" && break
  9488. done
  9489. if test "x$ac_ct_CXX" = x; then
  9490. CXX="g++"
  9491. else
  9492. case $cross_compiling:$ac_tool_warned in
  9493. yes:)
  9494. { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  9495. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  9496. ac_tool_warned=yes ;;
  9497. esac
  9498. CXX=$ac_ct_CXX
  9499. fi
  9500. fi
  9501. fi
  9502. fi
  9503. # Provide some information about the compiler.
  9504. $as_echo "$as_me:$LINENO: checking for C++ compiler version" >&5
  9505. set X $ac_compile
  9506. ac_compiler=$2
  9507. { (ac_try="$ac_compiler --version >&5"
  9508. case "(($ac_try" in
  9509. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9510. *) ac_try_echo=$ac_try;;
  9511. esac
  9512. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  9513. $as_echo "$ac_try_echo") >&5
  9514. (eval "$ac_compiler --version >&5") 2>&5
  9515. ac_status=$?
  9516. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9517. (exit $ac_status); }
  9518. { (ac_try="$ac_compiler -v >&5"
  9519. case "(($ac_try" in
  9520. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9521. *) ac_try_echo=$ac_try;;
  9522. esac
  9523. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  9524. $as_echo "$ac_try_echo") >&5
  9525. (eval "$ac_compiler -v >&5") 2>&5
  9526. ac_status=$?
  9527. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9528. (exit $ac_status); }
  9529. { (ac_try="$ac_compiler -V >&5"
  9530. case "(($ac_try" in
  9531. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9532. *) ac_try_echo=$ac_try;;
  9533. esac
  9534. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  9535. $as_echo "$ac_try_echo") >&5
  9536. (eval "$ac_compiler -V >&5") 2>&5
  9537. ac_status=$?
  9538. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9539. (exit $ac_status); }
  9540. { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
  9541. $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
  9542. if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
  9543. $as_echo_n "(cached) " >&6
  9544. else
  9545. cat >conftest.$ac_ext <<_ACEOF
  9546. /* confdefs.h. */
  9547. _ACEOF
  9548. cat confdefs.h >>conftest.$ac_ext
  9549. cat >>conftest.$ac_ext <<_ACEOF
  9550. /* end confdefs.h. */
  9551. int
  9552. main ()
  9553. {
  9554. #ifndef __GNUC__
  9555. choke me
  9556. #endif
  9557. ;
  9558. return 0;
  9559. }
  9560. _ACEOF
  9561. rm -f conftest.$ac_objext
  9562. if { (ac_try="$ac_compile"
  9563. case "(($ac_try" in
  9564. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9565. *) ac_try_echo=$ac_try;;
  9566. esac
  9567. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  9568. $as_echo "$ac_try_echo") >&5
  9569. (eval "$ac_compile") 2>conftest.er1
  9570. ac_status=$?
  9571. grep -v '^ *+' conftest.er1 >conftest.err
  9572. rm -f conftest.er1
  9573. cat conftest.err >&5
  9574. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9575. (exit $ac_status); } && {
  9576. test -z "$ac_cxx_werror_flag" ||
  9577. test ! -s conftest.err
  9578. } && test -s conftest.$ac_objext; then
  9579. ac_compiler_gnu=yes
  9580. else
  9581. $as_echo "$as_me: failed program was:" >&5
  9582. sed 's/^/| /' conftest.$ac_ext >&5
  9583. ac_compiler_gnu=no
  9584. fi
  9585. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9586. ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  9587. fi
  9588. { $as_echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
  9589. $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
  9590. if test $ac_compiler_gnu = yes; then
  9591. GXX=yes
  9592. else
  9593. GXX=
  9594. fi
  9595. ac_test_CXXFLAGS=${CXXFLAGS+set}
  9596. ac_save_CXXFLAGS=$CXXFLAGS
  9597. { $as_echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
  9598. $as_echo_n "checking whether $CXX accepts -g... " >&6; }
  9599. if test "${ac_cv_prog_cxx_g+set}" = set; then
  9600. $as_echo_n "(cached) " >&6
  9601. else
  9602. ac_save_cxx_werror_flag=$ac_cxx_werror_flag
  9603. ac_cxx_werror_flag=yes
  9604. ac_cv_prog_cxx_g=no
  9605. CXXFLAGS="-g"
  9606. cat >conftest.$ac_ext <<_ACEOF
  9607. /* confdefs.h. */
  9608. _ACEOF
  9609. cat confdefs.h >>conftest.$ac_ext
  9610. cat >>conftest.$ac_ext <<_ACEOF
  9611. /* end confdefs.h. */
  9612. int
  9613. main ()
  9614. {
  9615. ;
  9616. return 0;
  9617. }
  9618. _ACEOF
  9619. rm -f conftest.$ac_objext
  9620. if { (ac_try="$ac_compile"
  9621. case "(($ac_try" in
  9622. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9623. *) ac_try_echo=$ac_try;;
  9624. esac
  9625. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  9626. $as_echo "$ac_try_echo") >&5
  9627. (eval "$ac_compile") 2>conftest.er1
  9628. ac_status=$?
  9629. grep -v '^ *+' conftest.er1 >conftest.err
  9630. rm -f conftest.er1
  9631. cat conftest.err >&5
  9632. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9633. (exit $ac_status); } && {
  9634. test -z "$ac_cxx_werror_flag" ||
  9635. test ! -s conftest.err
  9636. } && test -s conftest.$ac_objext; then
  9637. ac_cv_prog_cxx_g=yes
  9638. else
  9639. $as_echo "$as_me: failed program was:" >&5
  9640. sed 's/^/| /' conftest.$ac_ext >&5
  9641. CXXFLAGS=""
  9642. cat >conftest.$ac_ext <<_ACEOF
  9643. /* confdefs.h. */
  9644. _ACEOF
  9645. cat confdefs.h >>conftest.$ac_ext
  9646. cat >>conftest.$ac_ext <<_ACEOF
  9647. /* end confdefs.h. */
  9648. int
  9649. main ()
  9650. {
  9651. ;
  9652. return 0;
  9653. }
  9654. _ACEOF
  9655. rm -f conftest.$ac_objext
  9656. if { (ac_try="$ac_compile"
  9657. case "(($ac_try" in
  9658. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9659. *) ac_try_echo=$ac_try;;
  9660. esac
  9661. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  9662. $as_echo "$ac_try_echo") >&5
  9663. (eval "$ac_compile") 2>conftest.er1
  9664. ac_status=$?
  9665. grep -v '^ *+' conftest.er1 >conftest.err
  9666. rm -f conftest.er1
  9667. cat conftest.err >&5
  9668. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9669. (exit $ac_status); } && {
  9670. test -z "$ac_cxx_werror_flag" ||
  9671. test ! -s conftest.err
  9672. } && test -s conftest.$ac_objext; then
  9673. :
  9674. else
  9675. $as_echo "$as_me: failed program was:" >&5
  9676. sed 's/^/| /' conftest.$ac_ext >&5
  9677. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  9678. CXXFLAGS="-g"
  9679. cat >conftest.$ac_ext <<_ACEOF
  9680. /* confdefs.h. */
  9681. _ACEOF
  9682. cat confdefs.h >>conftest.$ac_ext
  9683. cat >>conftest.$ac_ext <<_ACEOF
  9684. /* end confdefs.h. */
  9685. int
  9686. main ()
  9687. {
  9688. ;
  9689. return 0;
  9690. }
  9691. _ACEOF
  9692. rm -f conftest.$ac_objext
  9693. if { (ac_try="$ac_compile"
  9694. case "(($ac_try" in
  9695. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9696. *) ac_try_echo=$ac_try;;
  9697. esac
  9698. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  9699. $as_echo "$ac_try_echo") >&5
  9700. (eval "$ac_compile") 2>conftest.er1
  9701. ac_status=$?
  9702. grep -v '^ *+' conftest.er1 >conftest.err
  9703. rm -f conftest.er1
  9704. cat conftest.err >&5
  9705. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9706. (exit $ac_status); } && {
  9707. test -z "$ac_cxx_werror_flag" ||
  9708. test ! -s conftest.err
  9709. } && test -s conftest.$ac_objext; then
  9710. ac_cv_prog_cxx_g=yes
  9711. else
  9712. $as_echo "$as_me: failed program was:" >&5
  9713. sed 's/^/| /' conftest.$ac_ext >&5
  9714. fi
  9715. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9716. fi
  9717. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9718. fi
  9719. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9720. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  9721. fi
  9722. { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
  9723. $as_echo "$ac_cv_prog_cxx_g" >&6; }
  9724. if test "$ac_test_CXXFLAGS" = set; then
  9725. CXXFLAGS=$ac_save_CXXFLAGS
  9726. elif test $ac_cv_prog_cxx_g = yes; then
  9727. if test "$GXX" = yes; then
  9728. CXXFLAGS="-g -O2"
  9729. else
  9730. CXXFLAGS="-g"
  9731. fi
  9732. else
  9733. if test "$GXX" = yes; then
  9734. CXXFLAGS="-O2"
  9735. else
  9736. CXXFLAGS=
  9737. fi
  9738. fi
  9739. ac_ext=cpp
  9740. ac_cpp='$CXXCPP $CPPFLAGS'
  9741. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  9742. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  9743. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  9744. depcc="$CXX" am_compiler_list=
  9745. { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
  9746. $as_echo_n "checking dependency style of $depcc... " >&6; }
  9747. if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
  9748. $as_echo_n "(cached) " >&6
  9749. else
  9750. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  9751. # We make a subdir and do the tests there. Otherwise we can end up
  9752. # making bogus files that we don't know about and never remove. For
  9753. # instance it was reported that on HP-UX the gcc test will end up
  9754. # making a dummy file named `D' -- because `-MD' means `put the output
  9755. # in D'.
  9756. mkdir conftest.dir
  9757. # Copy depcomp to subdir because otherwise we won't find it if we're
  9758. # using a relative directory.
  9759. cp "$am_depcomp" conftest.dir
  9760. cd conftest.dir
  9761. # We will build objects and dependencies in a subdirectory because
  9762. # it helps to detect inapplicable dependency modes. For instance
  9763. # both Tru64's cc and ICC support -MD to output dependencies as a
  9764. # side effect of compilation, but ICC will put the dependencies in
  9765. # the current directory while Tru64 will put them in the object
  9766. # directory.
  9767. mkdir sub
  9768. am_cv_CXX_dependencies_compiler_type=none
  9769. if test "$am_compiler_list" = ""; then
  9770. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  9771. fi
  9772. for depmode in $am_compiler_list; do
  9773. # Setup a source with many dependencies, because some compilers
  9774. # like to wrap large dependency lists on column 80 (with \), and
  9775. # we should not choose a depcomp mode which is confused by this.
  9776. #
  9777. # We need to recreate these files for each test, as the compiler may
  9778. # overwrite some of them when testing with obscure command lines.
  9779. # This happens at least with the AIX C compiler.
  9780. : > sub/conftest.c
  9781. for i in 1 2 3 4 5 6; do
  9782. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  9783. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  9784. # Solaris 8's {/usr,}/bin/sh.
  9785. touch sub/conftst$i.h
  9786. done
  9787. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  9788. case $depmode in
  9789. nosideeffect)
  9790. # after this tag, mechanisms are not by side-effect, so they'll
  9791. # only be used when explicitly requested
  9792. if test "x$enable_dependency_tracking" = xyes; then
  9793. continue
  9794. else
  9795. break
  9796. fi
  9797. ;;
  9798. none) break ;;
  9799. esac
  9800. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  9801. # mode. It turns out that the SunPro C++ compiler does not properly
  9802. # handle `-M -o', and we need to detect this.
  9803. if depmode=$depmode \
  9804. source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
  9805. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  9806. $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
  9807. >/dev/null 2>conftest.err &&
  9808. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  9809. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  9810. grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
  9811. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  9812. # icc doesn't choke on unknown options, it will just issue warnings
  9813. # or remarks (even with -Werror). So we grep stderr for any message
  9814. # that says an option was ignored or not supported.
  9815. # When given -MP, icc 7.0 and 7.1 complain thusly:
  9816. # icc: Command line warning: ignoring option '-M'; no argument required
  9817. # The diagnosis changed in icc 8.0:
  9818. # icc: Command line remark: option '-MP' not supported
  9819. if (grep 'ignoring option' conftest.err ||
  9820. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  9821. am_cv_CXX_dependencies_compiler_type=$depmode
  9822. break
  9823. fi
  9824. fi
  9825. done
  9826. cd ..
  9827. rm -rf conftest.dir
  9828. else
  9829. am_cv_CXX_dependencies_compiler_type=none
  9830. fi
  9831. fi
  9832. { $as_echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
  9833. $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
  9834. CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
  9835. if
  9836. test "x$enable_dependency_tracking" != xno \
  9837. && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
  9838. am__fastdepCXX_TRUE=
  9839. am__fastdepCXX_FALSE='#'
  9840. else
  9841. am__fastdepCXX_TRUE='#'
  9842. am__fastdepCXX_FALSE=
  9843. fi
  9844. ac_ext=cpp
  9845. ac_cpp='$CXXCPP $CPPFLAGS'
  9846. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  9847. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  9848. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  9849. if test -z "$CXX"; then
  9850. if test -n "$CCC"; then
  9851. CXX=$CCC
  9852. else
  9853. if test -n "$ac_tool_prefix"; then
  9854. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  9855. do
  9856. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  9857. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  9858. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  9859. $as_echo_n "checking for $ac_word... " >&6; }
  9860. if test "${ac_cv_prog_CXX+set}" = set; then
  9861. $as_echo_n "(cached) " >&6
  9862. else
  9863. if test -n "$CXX"; then
  9864. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  9865. else
  9866. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9867. for as_dir in $PATH
  9868. do
  9869. IFS=$as_save_IFS
  9870. test -z "$as_dir" && as_dir=.
  9871. for ac_exec_ext in '' $ac_executable_extensions; do
  9872. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  9873. ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  9874. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  9875. break 2
  9876. fi
  9877. done
  9878. done
  9879. IFS=$as_save_IFS
  9880. fi
  9881. fi
  9882. CXX=$ac_cv_prog_CXX
  9883. if test -n "$CXX"; then
  9884. { $as_echo "$as_me:$LINENO: result: $CXX" >&5
  9885. $as_echo "$CXX" >&6; }
  9886. else
  9887. { $as_echo "$as_me:$LINENO: result: no" >&5
  9888. $as_echo "no" >&6; }
  9889. fi
  9890. test -n "$CXX" && break
  9891. done
  9892. fi
  9893. if test -z "$CXX"; then
  9894. ac_ct_CXX=$CXX
  9895. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  9896. do
  9897. # Extract the first word of "$ac_prog", so it can be a program name with args.
  9898. set dummy $ac_prog; ac_word=$2
  9899. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  9900. $as_echo_n "checking for $ac_word... " >&6; }
  9901. if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
  9902. $as_echo_n "(cached) " >&6
  9903. else
  9904. if test -n "$ac_ct_CXX"; then
  9905. ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  9906. else
  9907. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9908. for as_dir in $PATH
  9909. do
  9910. IFS=$as_save_IFS
  9911. test -z "$as_dir" && as_dir=.
  9912. for ac_exec_ext in '' $ac_executable_extensions; do
  9913. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  9914. ac_cv_prog_ac_ct_CXX="$ac_prog"
  9915. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  9916. break 2
  9917. fi
  9918. done
  9919. done
  9920. IFS=$as_save_IFS
  9921. fi
  9922. fi
  9923. ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  9924. if test -n "$ac_ct_CXX"; then
  9925. { $as_echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
  9926. $as_echo "$ac_ct_CXX" >&6; }
  9927. else
  9928. { $as_echo "$as_me:$LINENO: result: no" >&5
  9929. $as_echo "no" >&6; }
  9930. fi
  9931. test -n "$ac_ct_CXX" && break
  9932. done
  9933. if test "x$ac_ct_CXX" = x; then
  9934. CXX="g++"
  9935. else
  9936. case $cross_compiling:$ac_tool_warned in
  9937. yes:)
  9938. { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  9939. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  9940. ac_tool_warned=yes ;;
  9941. esac
  9942. CXX=$ac_ct_CXX
  9943. fi
  9944. fi
  9945. fi
  9946. fi
  9947. # Provide some information about the compiler.
  9948. $as_echo "$as_me:$LINENO: checking for C++ compiler version" >&5
  9949. set X $ac_compile
  9950. ac_compiler=$2
  9951. { (ac_try="$ac_compiler --version >&5"
  9952. case "(($ac_try" in
  9953. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9954. *) ac_try_echo=$ac_try;;
  9955. esac
  9956. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  9957. $as_echo "$ac_try_echo") >&5
  9958. (eval "$ac_compiler --version >&5") 2>&5
  9959. ac_status=$?
  9960. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9961. (exit $ac_status); }
  9962. { (ac_try="$ac_compiler -v >&5"
  9963. case "(($ac_try" in
  9964. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9965. *) ac_try_echo=$ac_try;;
  9966. esac
  9967. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  9968. $as_echo "$ac_try_echo") >&5
  9969. (eval "$ac_compiler -v >&5") 2>&5
  9970. ac_status=$?
  9971. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9972. (exit $ac_status); }
  9973. { (ac_try="$ac_compiler -V >&5"
  9974. case "(($ac_try" in
  9975. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9976. *) ac_try_echo=$ac_try;;
  9977. esac
  9978. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  9979. $as_echo "$ac_try_echo") >&5
  9980. (eval "$ac_compiler -V >&5") 2>&5
  9981. ac_status=$?
  9982. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9983. (exit $ac_status); }
  9984. { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
  9985. $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
  9986. if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
  9987. $as_echo_n "(cached) " >&6
  9988. else
  9989. cat >conftest.$ac_ext <<_ACEOF
  9990. /* confdefs.h. */
  9991. _ACEOF
  9992. cat confdefs.h >>conftest.$ac_ext
  9993. cat >>conftest.$ac_ext <<_ACEOF
  9994. /* end confdefs.h. */
  9995. int
  9996. main ()
  9997. {
  9998. #ifndef __GNUC__
  9999. choke me
  10000. #endif
  10001. ;
  10002. return 0;
  10003. }
  10004. _ACEOF
  10005. rm -f conftest.$ac_objext
  10006. if { (ac_try="$ac_compile"
  10007. case "(($ac_try" in
  10008. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10009. *) ac_try_echo=$ac_try;;
  10010. esac
  10011. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  10012. $as_echo "$ac_try_echo") >&5
  10013. (eval "$ac_compile") 2>conftest.er1
  10014. ac_status=$?
  10015. grep -v '^ *+' conftest.er1 >conftest.err
  10016. rm -f conftest.er1
  10017. cat conftest.err >&5
  10018. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10019. (exit $ac_status); } && {
  10020. test -z "$ac_cxx_werror_flag" ||
  10021. test ! -s conftest.err
  10022. } && test -s conftest.$ac_objext; then
  10023. ac_compiler_gnu=yes
  10024. else
  10025. $as_echo "$as_me: failed program was:" >&5
  10026. sed 's/^/| /' conftest.$ac_ext >&5
  10027. ac_compiler_gnu=no
  10028. fi
  10029. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10030. ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  10031. fi
  10032. { $as_echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
  10033. $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
  10034. if test $ac_compiler_gnu = yes; then
  10035. GXX=yes
  10036. else
  10037. GXX=
  10038. fi
  10039. ac_test_CXXFLAGS=${CXXFLAGS+set}
  10040. ac_save_CXXFLAGS=$CXXFLAGS
  10041. { $as_echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
  10042. $as_echo_n "checking whether $CXX accepts -g... " >&6; }
  10043. if test "${ac_cv_prog_cxx_g+set}" = set; then
  10044. $as_echo_n "(cached) " >&6
  10045. else
  10046. ac_save_cxx_werror_flag=$ac_cxx_werror_flag
  10047. ac_cxx_werror_flag=yes
  10048. ac_cv_prog_cxx_g=no
  10049. CXXFLAGS="-g"
  10050. cat >conftest.$ac_ext <<_ACEOF
  10051. /* confdefs.h. */
  10052. _ACEOF
  10053. cat confdefs.h >>conftest.$ac_ext
  10054. cat >>conftest.$ac_ext <<_ACEOF
  10055. /* end confdefs.h. */
  10056. int
  10057. main ()
  10058. {
  10059. ;
  10060. return 0;
  10061. }
  10062. _ACEOF
  10063. rm -f conftest.$ac_objext
  10064. if { (ac_try="$ac_compile"
  10065. case "(($ac_try" in
  10066. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10067. *) ac_try_echo=$ac_try;;
  10068. esac
  10069. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  10070. $as_echo "$ac_try_echo") >&5
  10071. (eval "$ac_compile") 2>conftest.er1
  10072. ac_status=$?
  10073. grep -v '^ *+' conftest.er1 >conftest.err
  10074. rm -f conftest.er1
  10075. cat conftest.err >&5
  10076. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10077. (exit $ac_status); } && {
  10078. test -z "$ac_cxx_werror_flag" ||
  10079. test ! -s conftest.err
  10080. } && test -s conftest.$ac_objext; then
  10081. ac_cv_prog_cxx_g=yes
  10082. else
  10083. $as_echo "$as_me: failed program was:" >&5
  10084. sed 's/^/| /' conftest.$ac_ext >&5
  10085. CXXFLAGS=""
  10086. cat >conftest.$ac_ext <<_ACEOF
  10087. /* confdefs.h. */
  10088. _ACEOF
  10089. cat confdefs.h >>conftest.$ac_ext
  10090. cat >>conftest.$ac_ext <<_ACEOF
  10091. /* end confdefs.h. */
  10092. int
  10093. main ()
  10094. {
  10095. ;
  10096. return 0;
  10097. }
  10098. _ACEOF
  10099. rm -f conftest.$ac_objext
  10100. if { (ac_try="$ac_compile"
  10101. case "(($ac_try" in
  10102. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10103. *) ac_try_echo=$ac_try;;
  10104. esac
  10105. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  10106. $as_echo "$ac_try_echo") >&5
  10107. (eval "$ac_compile") 2>conftest.er1
  10108. ac_status=$?
  10109. grep -v '^ *+' conftest.er1 >conftest.err
  10110. rm -f conftest.er1
  10111. cat conftest.err >&5
  10112. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10113. (exit $ac_status); } && {
  10114. test -z "$ac_cxx_werror_flag" ||
  10115. test ! -s conftest.err
  10116. } && test -s conftest.$ac_objext; then
  10117. :
  10118. else
  10119. $as_echo "$as_me: failed program was:" >&5
  10120. sed 's/^/| /' conftest.$ac_ext >&5
  10121. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  10122. CXXFLAGS="-g"
  10123. cat >conftest.$ac_ext <<_ACEOF
  10124. /* confdefs.h. */
  10125. _ACEOF
  10126. cat confdefs.h >>conftest.$ac_ext
  10127. cat >>conftest.$ac_ext <<_ACEOF
  10128. /* end confdefs.h. */
  10129. int
  10130. main ()
  10131. {
  10132. ;
  10133. return 0;
  10134. }
  10135. _ACEOF
  10136. rm -f conftest.$ac_objext
  10137. if { (ac_try="$ac_compile"
  10138. case "(($ac_try" in
  10139. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10140. *) ac_try_echo=$ac_try;;
  10141. esac
  10142. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  10143. $as_echo "$ac_try_echo") >&5
  10144. (eval "$ac_compile") 2>conftest.er1
  10145. ac_status=$?
  10146. grep -v '^ *+' conftest.er1 >conftest.err
  10147. rm -f conftest.er1
  10148. cat conftest.err >&5
  10149. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10150. (exit $ac_status); } && {
  10151. test -z "$ac_cxx_werror_flag" ||
  10152. test ! -s conftest.err
  10153. } && test -s conftest.$ac_objext; then
  10154. ac_cv_prog_cxx_g=yes
  10155. else
  10156. $as_echo "$as_me: failed program was:" >&5
  10157. sed 's/^/| /' conftest.$ac_ext >&5
  10158. fi
  10159. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10160. fi
  10161. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10162. fi
  10163. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10164. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  10165. fi
  10166. { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
  10167. $as_echo "$ac_cv_prog_cxx_g" >&6; }
  10168. if test "$ac_test_CXXFLAGS" = set; then
  10169. CXXFLAGS=$ac_save_CXXFLAGS
  10170. elif test $ac_cv_prog_cxx_g = yes; then
  10171. if test "$GXX" = yes; then
  10172. CXXFLAGS="-g -O2"
  10173. else
  10174. CXXFLAGS="-g"
  10175. fi
  10176. else
  10177. if test "$GXX" = yes; then
  10178. CXXFLAGS="-O2"
  10179. else
  10180. CXXFLAGS=
  10181. fi
  10182. fi
  10183. ac_ext=cpp
  10184. ac_cpp='$CXXCPP $CPPFLAGS'
  10185. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10186. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10187. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  10188. depcc="$CXX" am_compiler_list=
  10189. { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
  10190. $as_echo_n "checking dependency style of $depcc... " >&6; }
  10191. if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
  10192. $as_echo_n "(cached) " >&6
  10193. else
  10194. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  10195. # We make a subdir and do the tests there. Otherwise we can end up
  10196. # making bogus files that we don't know about and never remove. For
  10197. # instance it was reported that on HP-UX the gcc test will end up
  10198. # making a dummy file named `D' -- because `-MD' means `put the output
  10199. # in D'.
  10200. mkdir conftest.dir
  10201. # Copy depcomp to subdir because otherwise we won't find it if we're
  10202. # using a relative directory.
  10203. cp "$am_depcomp" conftest.dir
  10204. cd conftest.dir
  10205. # We will build objects and dependencies in a subdirectory because
  10206. # it helps to detect inapplicable dependency modes. For instance
  10207. # both Tru64's cc and ICC support -MD to output dependencies as a
  10208. # side effect of compilation, but ICC will put the dependencies in
  10209. # the current directory while Tru64 will put them in the object
  10210. # directory.
  10211. mkdir sub
  10212. am_cv_CXX_dependencies_compiler_type=none
  10213. if test "$am_compiler_list" = ""; then
  10214. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  10215. fi
  10216. for depmode in $am_compiler_list; do
  10217. # Setup a source with many dependencies, because some compilers
  10218. # like to wrap large dependency lists on column 80 (with \), and
  10219. # we should not choose a depcomp mode which is confused by this.
  10220. #
  10221. # We need to recreate these files for each test, as the compiler may
  10222. # overwrite some of them when testing with obscure command lines.
  10223. # This happens at least with the AIX C compiler.
  10224. : > sub/conftest.c
  10225. for i in 1 2 3 4 5 6; do
  10226. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  10227. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  10228. # Solaris 8's {/usr,}/bin/sh.
  10229. touch sub/conftst$i.h
  10230. done
  10231. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  10232. case $depmode in
  10233. nosideeffect)
  10234. # after this tag, mechanisms are not by side-effect, so they'll
  10235. # only be used when explicitly requested
  10236. if test "x$enable_dependency_tracking" = xyes; then
  10237. continue
  10238. else
  10239. break
  10240. fi
  10241. ;;
  10242. none) break ;;
  10243. esac
  10244. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  10245. # mode. It turns out that the SunPro C++ compiler does not properly
  10246. # handle `-M -o', and we need to detect this.
  10247. if depmode=$depmode \
  10248. source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
  10249. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  10250. $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
  10251. >/dev/null 2>conftest.err &&
  10252. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  10253. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  10254. grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
  10255. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  10256. # icc doesn't choke on unknown options, it will just issue warnings
  10257. # or remarks (even with -Werror). So we grep stderr for any message
  10258. # that says an option was ignored or not supported.
  10259. # When given -MP, icc 7.0 and 7.1 complain thusly:
  10260. # icc: Command line warning: ignoring option '-M'; no argument required
  10261. # The diagnosis changed in icc 8.0:
  10262. # icc: Command line remark: option '-MP' not supported
  10263. if (grep 'ignoring option' conftest.err ||
  10264. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  10265. am_cv_CXX_dependencies_compiler_type=$depmode
  10266. break
  10267. fi
  10268. fi
  10269. done
  10270. cd ..
  10271. rm -rf conftest.dir
  10272. else
  10273. am_cv_CXX_dependencies_compiler_type=none
  10274. fi
  10275. fi
  10276. { $as_echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
  10277. $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
  10278. CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
  10279. if
  10280. test "x$enable_dependency_tracking" != xno \
  10281. && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
  10282. am__fastdepCXX_TRUE=
  10283. am__fastdepCXX_FALSE='#'
  10284. else
  10285. am__fastdepCXX_TRUE='#'
  10286. am__fastdepCXX_FALSE=
  10287. fi
  10288. if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
  10289. ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
  10290. (test "X$CXX" != "Xg++"))) ; then
  10291. ac_ext=cpp
  10292. ac_cpp='$CXXCPP $CPPFLAGS'
  10293. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10294. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10295. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  10296. { $as_echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
  10297. $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
  10298. if test -z "$CXXCPP"; then
  10299. if test "${ac_cv_prog_CXXCPP+set}" = set; then
  10300. $as_echo_n "(cached) " >&6
  10301. else
  10302. # Double quotes because CXXCPP needs to be expanded
  10303. for CXXCPP in "$CXX -E" "/lib/cpp"
  10304. do
  10305. ac_preproc_ok=false
  10306. for ac_cxx_preproc_warn_flag in '' yes
  10307. do
  10308. # Use a header file that comes with gcc, so configuring glibc
  10309. # with a fresh cross-compiler works.
  10310. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  10311. # <limits.h> exists even on freestanding compilers.
  10312. # On the NeXT, cc -E runs the code through the compiler's parser,
  10313. # not just through cpp. "Syntax error" is here to catch this case.
  10314. cat >conftest.$ac_ext <<_ACEOF
  10315. /* confdefs.h. */
  10316. _ACEOF
  10317. cat confdefs.h >>conftest.$ac_ext
  10318. cat >>conftest.$ac_ext <<_ACEOF
  10319. /* end confdefs.h. */
  10320. #ifdef __STDC__
  10321. # include <limits.h>
  10322. #else
  10323. # include <assert.h>
  10324. #endif
  10325. Syntax error
  10326. _ACEOF
  10327. if { (ac_try="$ac_cpp conftest.$ac_ext"
  10328. case "(($ac_try" in
  10329. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10330. *) ac_try_echo=$ac_try;;
  10331. esac
  10332. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  10333. $as_echo "$ac_try_echo") >&5
  10334. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  10335. ac_status=$?
  10336. grep -v '^ *+' conftest.er1 >conftest.err
  10337. rm -f conftest.er1
  10338. cat conftest.err >&5
  10339. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10340. (exit $ac_status); } >/dev/null && {
  10341. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  10342. test ! -s conftest.err
  10343. }; then
  10344. :
  10345. else
  10346. $as_echo "$as_me: failed program was:" >&5
  10347. sed 's/^/| /' conftest.$ac_ext >&5
  10348. # Broken: fails on valid input.
  10349. continue
  10350. fi
  10351. rm -f conftest.err conftest.$ac_ext
  10352. # OK, works on sane cases. Now check whether nonexistent headers
  10353. # can be detected and how.
  10354. cat >conftest.$ac_ext <<_ACEOF
  10355. /* confdefs.h. */
  10356. _ACEOF
  10357. cat confdefs.h >>conftest.$ac_ext
  10358. cat >>conftest.$ac_ext <<_ACEOF
  10359. /* end confdefs.h. */
  10360. #include <ac_nonexistent.h>
  10361. _ACEOF
  10362. if { (ac_try="$ac_cpp conftest.$ac_ext"
  10363. case "(($ac_try" in
  10364. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10365. *) ac_try_echo=$ac_try;;
  10366. esac
  10367. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  10368. $as_echo "$ac_try_echo") >&5
  10369. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  10370. ac_status=$?
  10371. grep -v '^ *+' conftest.er1 >conftest.err
  10372. rm -f conftest.er1
  10373. cat conftest.err >&5
  10374. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10375. (exit $ac_status); } >/dev/null && {
  10376. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  10377. test ! -s conftest.err
  10378. }; then
  10379. # Broken: success on invalid input.
  10380. continue
  10381. else
  10382. $as_echo "$as_me: failed program was:" >&5
  10383. sed 's/^/| /' conftest.$ac_ext >&5
  10384. # Passes both tests.
  10385. ac_preproc_ok=:
  10386. break
  10387. fi
  10388. rm -f conftest.err conftest.$ac_ext
  10389. done
  10390. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  10391. rm -f conftest.err conftest.$ac_ext
  10392. if $ac_preproc_ok; then
  10393. break
  10394. fi
  10395. done
  10396. ac_cv_prog_CXXCPP=$CXXCPP
  10397. fi
  10398. CXXCPP=$ac_cv_prog_CXXCPP
  10399. else
  10400. ac_cv_prog_CXXCPP=$CXXCPP
  10401. fi
  10402. { $as_echo "$as_me:$LINENO: result: $CXXCPP" >&5
  10403. $as_echo "$CXXCPP" >&6; }
  10404. ac_preproc_ok=false
  10405. for ac_cxx_preproc_warn_flag in '' yes
  10406. do
  10407. # Use a header file that comes with gcc, so configuring glibc
  10408. # with a fresh cross-compiler works.
  10409. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  10410. # <limits.h> exists even on freestanding compilers.
  10411. # On the NeXT, cc -E runs the code through the compiler's parser,
  10412. # not just through cpp. "Syntax error" is here to catch this case.
  10413. cat >conftest.$ac_ext <<_ACEOF
  10414. /* confdefs.h. */
  10415. _ACEOF
  10416. cat confdefs.h >>conftest.$ac_ext
  10417. cat >>conftest.$ac_ext <<_ACEOF
  10418. /* end confdefs.h. */
  10419. #ifdef __STDC__
  10420. # include <limits.h>
  10421. #else
  10422. # include <assert.h>
  10423. #endif
  10424. Syntax error
  10425. _ACEOF
  10426. if { (ac_try="$ac_cpp conftest.$ac_ext"
  10427. case "(($ac_try" in
  10428. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10429. *) ac_try_echo=$ac_try;;
  10430. esac
  10431. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  10432. $as_echo "$ac_try_echo") >&5
  10433. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  10434. ac_status=$?
  10435. grep -v '^ *+' conftest.er1 >conftest.err
  10436. rm -f conftest.er1
  10437. cat conftest.err >&5
  10438. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10439. (exit $ac_status); } >/dev/null && {
  10440. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  10441. test ! -s conftest.err
  10442. }; then
  10443. :
  10444. else
  10445. $as_echo "$as_me: failed program was:" >&5
  10446. sed 's/^/| /' conftest.$ac_ext >&5
  10447. # Broken: fails on valid input.
  10448. continue
  10449. fi
  10450. rm -f conftest.err conftest.$ac_ext
  10451. # OK, works on sane cases. Now check whether nonexistent headers
  10452. # can be detected and how.
  10453. cat >conftest.$ac_ext <<_ACEOF
  10454. /* confdefs.h. */
  10455. _ACEOF
  10456. cat confdefs.h >>conftest.$ac_ext
  10457. cat >>conftest.$ac_ext <<_ACEOF
  10458. /* end confdefs.h. */
  10459. #include <ac_nonexistent.h>
  10460. _ACEOF
  10461. if { (ac_try="$ac_cpp conftest.$ac_ext"
  10462. case "(($ac_try" in
  10463. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10464. *) ac_try_echo=$ac_try;;
  10465. esac
  10466. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  10467. $as_echo "$ac_try_echo") >&5
  10468. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  10469. ac_status=$?
  10470. grep -v '^ *+' conftest.er1 >conftest.err
  10471. rm -f conftest.er1
  10472. cat conftest.err >&5
  10473. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10474. (exit $ac_status); } >/dev/null && {
  10475. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  10476. test ! -s conftest.err
  10477. }; then
  10478. # Broken: success on invalid input.
  10479. continue
  10480. else
  10481. $as_echo "$as_me: failed program was:" >&5
  10482. sed 's/^/| /' conftest.$ac_ext >&5
  10483. # Passes both tests.
  10484. ac_preproc_ok=:
  10485. break
  10486. fi
  10487. rm -f conftest.err conftest.$ac_ext
  10488. done
  10489. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  10490. rm -f conftest.err conftest.$ac_ext
  10491. if $ac_preproc_ok; then
  10492. :
  10493. else
  10494. { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  10495. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  10496. _lt_caught_CXX_error=yes; }
  10497. fi
  10498. ac_ext=cpp
  10499. ac_cpp='$CXXCPP $CPPFLAGS'
  10500. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10501. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10502. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  10503. else
  10504. _lt_caught_CXX_error=yes
  10505. fi
  10506. ac_ext=cpp
  10507. ac_cpp='$CXXCPP $CPPFLAGS'
  10508. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10509. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10510. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  10511. archive_cmds_need_lc_CXX=no
  10512. allow_undefined_flag_CXX=
  10513. always_export_symbols_CXX=no
  10514. archive_expsym_cmds_CXX=
  10515. compiler_needs_object_CXX=no
  10516. export_dynamic_flag_spec_CXX=
  10517. hardcode_direct_CXX=no
  10518. hardcode_direct_absolute_CXX=no
  10519. hardcode_libdir_flag_spec_CXX=
  10520. hardcode_libdir_flag_spec_ld_CXX=
  10521. hardcode_libdir_separator_CXX=
  10522. hardcode_minus_L_CXX=no
  10523. hardcode_shlibpath_var_CXX=unsupported
  10524. hardcode_automatic_CXX=no
  10525. inherit_rpath_CXX=no
  10526. module_cmds_CXX=
  10527. module_expsym_cmds_CXX=
  10528. link_all_deplibs_CXX=unknown
  10529. old_archive_cmds_CXX=$old_archive_cmds
  10530. no_undefined_flag_CXX=
  10531. whole_archive_flag_spec_CXX=
  10532. enable_shared_with_static_runtimes_CXX=no
  10533. # Source file extension for C++ test sources.
  10534. ac_ext=cpp
  10535. # Object file extension for compiled C++ test sources.
  10536. objext=o
  10537. objext_CXX=$objext
  10538. # No sense in running all these tests if we already determined that
  10539. # the CXX compiler isn't working. Some variables (like enable_shared)
  10540. # are currently assumed to apply to all compilers on this platform,
  10541. # and will be corrupted by setting them based on a non-working compiler.
  10542. if test "$_lt_caught_CXX_error" != yes; then
  10543. # Code to be used in simple compile tests
  10544. lt_simple_compile_test_code="int some_variable = 0;"
  10545. # Code to be used in simple link tests
  10546. lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
  10547. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  10548. # If no C compiler was specified, use CC.
  10549. LTCC=${LTCC-"$CC"}
  10550. # If no C compiler flags were specified, use CFLAGS.
  10551. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  10552. # Allow CC to be a program name with arguments.
  10553. compiler=$CC
  10554. # save warnings/boilerplate of simple test code
  10555. ac_outfile=conftest.$ac_objext
  10556. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  10557. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  10558. _lt_compiler_boilerplate=`cat conftest.err`
  10559. $RM conftest*
  10560. ac_outfile=conftest.$ac_objext
  10561. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  10562. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  10563. _lt_linker_boilerplate=`cat conftest.err`
  10564. $RM -r conftest*
  10565. # Allow CC to be a program name with arguments.
  10566. lt_save_CC=$CC
  10567. lt_save_LD=$LD
  10568. lt_save_GCC=$GCC
  10569. GCC=$GXX
  10570. lt_save_with_gnu_ld=$with_gnu_ld
  10571. lt_save_path_LD=$lt_cv_path_LD
  10572. if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
  10573. lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
  10574. else
  10575. $as_unset lt_cv_prog_gnu_ld
  10576. fi
  10577. if test -n "${lt_cv_path_LDCXX+set}"; then
  10578. lt_cv_path_LD=$lt_cv_path_LDCXX
  10579. else
  10580. $as_unset lt_cv_path_LD
  10581. fi
  10582. test -z "${LDCXX+set}" || LD=$LDCXX
  10583. CC=${CXX-"c++"}
  10584. compiler=$CC
  10585. compiler_CXX=$CC
  10586. for cc_temp in $compiler""; do
  10587. case $cc_temp in
  10588. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  10589. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  10590. \-*) ;;
  10591. *) break;;
  10592. esac
  10593. done
  10594. cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  10595. if test -n "$compiler"; then
  10596. # We don't want -fno-exception when compiling C++ code, so set the
  10597. # no_builtin_flag separately
  10598. if test "$GXX" = yes; then
  10599. lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
  10600. else
  10601. lt_prog_compiler_no_builtin_flag_CXX=
  10602. fi
  10603. if test "$GXX" = yes; then
  10604. # Set up default GNU C++ configuration
  10605. # Check whether --with-gnu-ld was given.
  10606. if test "${with_gnu_ld+set}" = set; then
  10607. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  10608. else
  10609. with_gnu_ld=no
  10610. fi
  10611. ac_prog=ld
  10612. if test "$GCC" = yes; then
  10613. # Check if gcc -print-prog-name=ld gives a path.
  10614. { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
  10615. $as_echo_n "checking for ld used by $CC... " >&6; }
  10616. case $host in
  10617. *-*-mingw*)
  10618. # gcc leaves a trailing carriage return which upsets mingw
  10619. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  10620. *)
  10621. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  10622. esac
  10623. case $ac_prog in
  10624. # Accept absolute paths.
  10625. [\\/]* | ?:[\\/]*)
  10626. re_direlt='/[^/][^/]*/\.\./'
  10627. # Canonicalize the pathname of ld
  10628. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  10629. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  10630. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  10631. done
  10632. test -z "$LD" && LD="$ac_prog"
  10633. ;;
  10634. "")
  10635. # If it fails, then pretend we aren't using GCC.
  10636. ac_prog=ld
  10637. ;;
  10638. *)
  10639. # If it is relative, then search for the first ld in PATH.
  10640. with_gnu_ld=unknown
  10641. ;;
  10642. esac
  10643. elif test "$with_gnu_ld" = yes; then
  10644. { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
  10645. $as_echo_n "checking for GNU ld... " >&6; }
  10646. else
  10647. { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
  10648. $as_echo_n "checking for non-GNU ld... " >&6; }
  10649. fi
  10650. if test "${lt_cv_path_LD+set}" = set; then
  10651. $as_echo_n "(cached) " >&6
  10652. else
  10653. if test -z "$LD"; then
  10654. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  10655. for ac_dir in $PATH; do
  10656. IFS="$lt_save_ifs"
  10657. test -z "$ac_dir" && ac_dir=.
  10658. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  10659. lt_cv_path_LD="$ac_dir/$ac_prog"
  10660. # Check to see if the program is GNU ld. I'd rather use --version,
  10661. # but apparently some variants of GNU ld only accept -v.
  10662. # Break only if it was the GNU/non-GNU ld that we prefer.
  10663. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  10664. *GNU* | *'with BFD'*)
  10665. test "$with_gnu_ld" != no && break
  10666. ;;
  10667. *)
  10668. test "$with_gnu_ld" != yes && break
  10669. ;;
  10670. esac
  10671. fi
  10672. done
  10673. IFS="$lt_save_ifs"
  10674. else
  10675. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  10676. fi
  10677. fi
  10678. LD="$lt_cv_path_LD"
  10679. if test -n "$LD"; then
  10680. { $as_echo "$as_me:$LINENO: result: $LD" >&5
  10681. $as_echo "$LD" >&6; }
  10682. else
  10683. { $as_echo "$as_me:$LINENO: result: no" >&5
  10684. $as_echo "no" >&6; }
  10685. fi
  10686. test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
  10687. $as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
  10688. { (exit 1); exit 1; }; }
  10689. { $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
  10690. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  10691. if test "${lt_cv_prog_gnu_ld+set}" = set; then
  10692. $as_echo_n "(cached) " >&6
  10693. else
  10694. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  10695. case `$LD -v 2>&1 </dev/null` in
  10696. *GNU* | *'with BFD'*)
  10697. lt_cv_prog_gnu_ld=yes
  10698. ;;
  10699. *)
  10700. lt_cv_prog_gnu_ld=no
  10701. ;;
  10702. esac
  10703. fi
  10704. { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
  10705. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  10706. with_gnu_ld=$lt_cv_prog_gnu_ld
  10707. # Check if GNU C++ uses GNU ld as the underlying linker, since the
  10708. # archiving commands below assume that GNU ld is being used.
  10709. if test "$with_gnu_ld" = yes; then
  10710. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  10711. 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'
  10712. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  10713. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  10714. # If archive_cmds runs LD, not CC, wlarc should be empty
  10715. # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
  10716. # investigate it a little bit more. (MM)
  10717. wlarc='${wl}'
  10718. # ancient GNU ld didn't support --whole-archive et. al.
  10719. if eval "`$CC -print-prog-name=ld` --help 2>&1" |
  10720. $GREP 'no-whole-archive' > /dev/null; then
  10721. whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  10722. else
  10723. whole_archive_flag_spec_CXX=
  10724. fi
  10725. else
  10726. with_gnu_ld=no
  10727. wlarc=
  10728. # A generic and very simple default shared library creation
  10729. # command for GNU C++ for the case where it uses the native
  10730. # linker, instead of GNU ld. If possible, this setting should
  10731. # overridden to take advantage of the native linker features on
  10732. # the platform it is being used on.
  10733. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  10734. fi
  10735. # Commands to make compiler produce verbose output that lists
  10736. # what "hidden" libraries, object files and flags are used when
  10737. # linking a shared library.
  10738. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
  10739. else
  10740. GXX=no
  10741. with_gnu_ld=no
  10742. wlarc=
  10743. fi
  10744. # PORTME: fill in a description of your system's C++ link characteristics
  10745. { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  10746. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  10747. ld_shlibs_CXX=yes
  10748. case $host_os in
  10749. aix3*)
  10750. # FIXME: insert proper C++ library support
  10751. ld_shlibs_CXX=no
  10752. ;;
  10753. aix[4-9]*)
  10754. if test "$host_cpu" = ia64; then
  10755. # On IA64, the linker does run time linking by default, so we don't
  10756. # have to do anything special.
  10757. aix_use_runtimelinking=no
  10758. exp_sym_flag='-Bexport'
  10759. no_entry_flag=""
  10760. else
  10761. aix_use_runtimelinking=no
  10762. # Test if we are trying to use run time linking or normal
  10763. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  10764. # need to do runtime linking.
  10765. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  10766. for ld_flag in $LDFLAGS; do
  10767. case $ld_flag in
  10768. *-brtl*)
  10769. aix_use_runtimelinking=yes
  10770. break
  10771. ;;
  10772. esac
  10773. done
  10774. ;;
  10775. esac
  10776. exp_sym_flag='-bexport'
  10777. no_entry_flag='-bnoentry'
  10778. fi
  10779. # When large executables or shared objects are built, AIX ld can
  10780. # have problems creating the table of contents. If linking a library
  10781. # or program results in "error TOC overflow" add -mminimal-toc to
  10782. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  10783. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  10784. archive_cmds_CXX=''
  10785. hardcode_direct_CXX=yes
  10786. hardcode_direct_absolute_CXX=yes
  10787. hardcode_libdir_separator_CXX=':'
  10788. link_all_deplibs_CXX=yes
  10789. file_list_spec_CXX='${wl}-f,'
  10790. if test "$GXX" = yes; then
  10791. case $host_os in aix4.[012]|aix4.[012].*)
  10792. # We only want to do this on AIX 4.2 and lower, the check
  10793. # below for broken collect2 doesn't work under 4.3+
  10794. collect2name=`${CC} -print-prog-name=collect2`
  10795. if test -f "$collect2name" &&
  10796. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  10797. then
  10798. # We have reworked collect2
  10799. :
  10800. else
  10801. # We have old collect2
  10802. hardcode_direct_CXX=unsupported
  10803. # It fails to find uninstalled libraries when the uninstalled
  10804. # path is not listed in the libpath. Setting hardcode_minus_L
  10805. # to unsupported forces relinking
  10806. hardcode_minus_L_CXX=yes
  10807. hardcode_libdir_flag_spec_CXX='-L$libdir'
  10808. hardcode_libdir_separator_CXX=
  10809. fi
  10810. esac
  10811. shared_flag='-shared'
  10812. if test "$aix_use_runtimelinking" = yes; then
  10813. shared_flag="$shared_flag "'${wl}-G'
  10814. fi
  10815. else
  10816. # not using gcc
  10817. if test "$host_cpu" = ia64; then
  10818. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  10819. # chokes on -Wl,-G. The following line is correct:
  10820. shared_flag='-G'
  10821. else
  10822. if test "$aix_use_runtimelinking" = yes; then
  10823. shared_flag='${wl}-G'
  10824. else
  10825. shared_flag='${wl}-bM:SRE'
  10826. fi
  10827. fi
  10828. fi
  10829. export_dynamic_flag_spec_CXX='${wl}-bexpall'
  10830. # It seems that -bexpall does not export symbols beginning with
  10831. # underscore (_), so it is better to generate a list of symbols to
  10832. # export.
  10833. always_export_symbols_CXX=yes
  10834. if test "$aix_use_runtimelinking" = yes; then
  10835. # Warning - without using the other runtime loading flags (-brtl),
  10836. # -berok will link without error, but may produce a broken library.
  10837. allow_undefined_flag_CXX='-berok'
  10838. # Determine the default libpath from the value encoded in an empty
  10839. # executable.
  10840. cat >conftest.$ac_ext <<_ACEOF
  10841. /* confdefs.h. */
  10842. _ACEOF
  10843. cat confdefs.h >>conftest.$ac_ext
  10844. cat >>conftest.$ac_ext <<_ACEOF
  10845. /* end confdefs.h. */
  10846. int
  10847. main ()
  10848. {
  10849. ;
  10850. return 0;
  10851. }
  10852. _ACEOF
  10853. rm -f conftest.$ac_objext conftest$ac_exeext
  10854. if { (ac_try="$ac_link"
  10855. case "(($ac_try" in
  10856. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10857. *) ac_try_echo=$ac_try;;
  10858. esac
  10859. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  10860. $as_echo "$ac_try_echo") >&5
  10861. (eval "$ac_link") 2>conftest.er1
  10862. ac_status=$?
  10863. grep -v '^ *+' conftest.er1 >conftest.err
  10864. rm -f conftest.er1
  10865. cat conftest.err >&5
  10866. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10867. (exit $ac_status); } && {
  10868. test -z "$ac_cxx_werror_flag" ||
  10869. test ! -s conftest.err
  10870. } && test -s conftest$ac_exeext && {
  10871. test "$cross_compiling" = yes ||
  10872. $as_test_x conftest$ac_exeext
  10873. }; then
  10874. lt_aix_libpath_sed='
  10875. /Import File Strings/,/^$/ {
  10876. /^0/ {
  10877. s/^0 *\(.*\)$/\1/
  10878. p
  10879. }
  10880. }'
  10881. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  10882. # Check for a 64-bit object if we didn't find anything.
  10883. if test -z "$aix_libpath"; then
  10884. aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  10885. fi
  10886. else
  10887. $as_echo "$as_me: failed program was:" >&5
  10888. sed 's/^/| /' conftest.$ac_ext >&5
  10889. fi
  10890. rm -rf conftest.dSYM
  10891. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  10892. conftest$ac_exeext conftest.$ac_ext
  10893. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  10894. hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
  10895. 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"
  10896. else
  10897. if test "$host_cpu" = ia64; then
  10898. hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
  10899. allow_undefined_flag_CXX="-z nodefs"
  10900. 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"
  10901. else
  10902. # Determine the default libpath from the value encoded in an
  10903. # empty executable.
  10904. cat >conftest.$ac_ext <<_ACEOF
  10905. /* confdefs.h. */
  10906. _ACEOF
  10907. cat confdefs.h >>conftest.$ac_ext
  10908. cat >>conftest.$ac_ext <<_ACEOF
  10909. /* end confdefs.h. */
  10910. int
  10911. main ()
  10912. {
  10913. ;
  10914. return 0;
  10915. }
  10916. _ACEOF
  10917. rm -f conftest.$ac_objext conftest$ac_exeext
  10918. if { (ac_try="$ac_link"
  10919. case "(($ac_try" in
  10920. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10921. *) ac_try_echo=$ac_try;;
  10922. esac
  10923. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  10924. $as_echo "$ac_try_echo") >&5
  10925. (eval "$ac_link") 2>conftest.er1
  10926. ac_status=$?
  10927. grep -v '^ *+' conftest.er1 >conftest.err
  10928. rm -f conftest.er1
  10929. cat conftest.err >&5
  10930. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10931. (exit $ac_status); } && {
  10932. test -z "$ac_cxx_werror_flag" ||
  10933. test ! -s conftest.err
  10934. } && test -s conftest$ac_exeext && {
  10935. test "$cross_compiling" = yes ||
  10936. $as_test_x conftest$ac_exeext
  10937. }; then
  10938. lt_aix_libpath_sed='
  10939. /Import File Strings/,/^$/ {
  10940. /^0/ {
  10941. s/^0 *\(.*\)$/\1/
  10942. p
  10943. }
  10944. }'
  10945. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  10946. # Check for a 64-bit object if we didn't find anything.
  10947. if test -z "$aix_libpath"; then
  10948. aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  10949. fi
  10950. else
  10951. $as_echo "$as_me: failed program was:" >&5
  10952. sed 's/^/| /' conftest.$ac_ext >&5
  10953. fi
  10954. rm -rf conftest.dSYM
  10955. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  10956. conftest$ac_exeext conftest.$ac_ext
  10957. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  10958. hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
  10959. # Warning - without using the other run time loading flags,
  10960. # -berok will link without error, but may produce a broken library.
  10961. no_undefined_flag_CXX=' ${wl}-bernotok'
  10962. allow_undefined_flag_CXX=' ${wl}-berok'
  10963. # Exported symbols can be pulled into shared objects from archives
  10964. whole_archive_flag_spec_CXX='$convenience'
  10965. archive_cmds_need_lc_CXX=yes
  10966. # This is similar to how AIX traditionally builds its shared
  10967. # libraries.
  10968. 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'
  10969. fi
  10970. fi
  10971. ;;
  10972. beos*)
  10973. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  10974. allow_undefined_flag_CXX=unsupported
  10975. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  10976. # support --undefined. This deserves some investigation. FIXME
  10977. archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  10978. else
  10979. ld_shlibs_CXX=no
  10980. fi
  10981. ;;
  10982. chorus*)
  10983. case $cc_basename in
  10984. *)
  10985. # FIXME: insert proper C++ library support
  10986. ld_shlibs_CXX=no
  10987. ;;
  10988. esac
  10989. ;;
  10990. cygwin* | mingw* | pw32* | cegcc*)
  10991. # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
  10992. # as there is no search path for DLLs.
  10993. hardcode_libdir_flag_spec_CXX='-L$libdir'
  10994. allow_undefined_flag_CXX=unsupported
  10995. always_export_symbols_CXX=no
  10996. enable_shared_with_static_runtimes_CXX=yes
  10997. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  10998. 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'
  10999. # If the export-symbols file already is a .def file (1st line
  11000. # is EXPORTS), use it as is; otherwise, prepend...
  11001. archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  11002. cp $export_symbols $output_objdir/$soname.def;
  11003. else
  11004. echo EXPORTS > $output_objdir/$soname.def;
  11005. cat $export_symbols >> $output_objdir/$soname.def;
  11006. fi~
  11007. $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'
  11008. else
  11009. ld_shlibs_CXX=no
  11010. fi
  11011. ;;
  11012. darwin* | rhapsody*)
  11013. archive_cmds_need_lc_CXX=no
  11014. hardcode_direct_CXX=no
  11015. hardcode_automatic_CXX=yes
  11016. hardcode_shlibpath_var_CXX=unsupported
  11017. whole_archive_flag_spec_CXX=''
  11018. link_all_deplibs_CXX=yes
  11019. allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
  11020. case $cc_basename in
  11021. ifort*) _lt_dar_can_shared=yes ;;
  11022. *) _lt_dar_can_shared=$GCC ;;
  11023. esac
  11024. if test "$_lt_dar_can_shared" = "yes"; then
  11025. output_verbose_link_cmd=echo
  11026. 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}"
  11027. module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  11028. 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}"
  11029. 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}"
  11030. if test "$lt_cv_apple_cc_single_mod" != "yes"; then
  11031. 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}"
  11032. 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}"
  11033. fi
  11034. else
  11035. ld_shlibs_CXX=no
  11036. fi
  11037. ;;
  11038. dgux*)
  11039. case $cc_basename in
  11040. ec++*)
  11041. # FIXME: insert proper C++ library support
  11042. ld_shlibs_CXX=no
  11043. ;;
  11044. ghcx*)
  11045. # Green Hills C++ Compiler
  11046. # FIXME: insert proper C++ library support
  11047. ld_shlibs_CXX=no
  11048. ;;
  11049. *)
  11050. # FIXME: insert proper C++ library support
  11051. ld_shlibs_CXX=no
  11052. ;;
  11053. esac
  11054. ;;
  11055. freebsd[12]*)
  11056. # C++ shared libraries reported to be fairly broken before
  11057. # switch to ELF
  11058. ld_shlibs_CXX=no
  11059. ;;
  11060. freebsd-elf*)
  11061. archive_cmds_need_lc_CXX=no
  11062. ;;
  11063. freebsd* | dragonfly*)
  11064. # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
  11065. # conventions
  11066. ld_shlibs_CXX=yes
  11067. ;;
  11068. gnu*)
  11069. ;;
  11070. hpux9*)
  11071. hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
  11072. hardcode_libdir_separator_CXX=:
  11073. export_dynamic_flag_spec_CXX='${wl}-E'
  11074. hardcode_direct_CXX=yes
  11075. hardcode_minus_L_CXX=yes # Not in the search PATH,
  11076. # but as the default
  11077. # location of the library.
  11078. case $cc_basename in
  11079. CC*)
  11080. # FIXME: insert proper C++ library support
  11081. ld_shlibs_CXX=no
  11082. ;;
  11083. aCC*)
  11084. 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'
  11085. # Commands to make compiler produce verbose output that lists
  11086. # what "hidden" libraries, object files and flags are used when
  11087. # linking a shared library.
  11088. #
  11089. # There doesn't appear to be a way to prevent this compiler from
  11090. # explicitly linking system object files so we need to strip them
  11091. # from the output so that they don't get included in the library
  11092. # dependencies.
  11093. 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'
  11094. ;;
  11095. *)
  11096. if test "$GXX" = yes; then
  11097. 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'
  11098. else
  11099. # FIXME: insert proper C++ library support
  11100. ld_shlibs_CXX=no
  11101. fi
  11102. ;;
  11103. esac
  11104. ;;
  11105. hpux10*|hpux11*)
  11106. if test $with_gnu_ld = no; then
  11107. hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
  11108. hardcode_libdir_separator_CXX=:
  11109. case $host_cpu in
  11110. hppa*64*|ia64*)
  11111. ;;
  11112. *)
  11113. export_dynamic_flag_spec_CXX='${wl}-E'
  11114. ;;
  11115. esac
  11116. fi
  11117. case $host_cpu in
  11118. hppa*64*|ia64*)
  11119. hardcode_direct_CXX=no
  11120. hardcode_shlibpath_var_CXX=no
  11121. ;;
  11122. *)
  11123. hardcode_direct_CXX=yes
  11124. hardcode_direct_absolute_CXX=yes
  11125. hardcode_minus_L_CXX=yes # Not in the search PATH,
  11126. # but as the default
  11127. # location of the library.
  11128. ;;
  11129. esac
  11130. case $cc_basename in
  11131. CC*)
  11132. # FIXME: insert proper C++ library support
  11133. ld_shlibs_CXX=no
  11134. ;;
  11135. aCC*)
  11136. case $host_cpu in
  11137. hppa*64*)
  11138. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11139. ;;
  11140. ia64*)
  11141. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11142. ;;
  11143. *)
  11144. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11145. ;;
  11146. esac
  11147. # Commands to make compiler produce verbose output that lists
  11148. # what "hidden" libraries, object files and flags are used when
  11149. # linking a shared library.
  11150. #
  11151. # There doesn't appear to be a way to prevent this compiler from
  11152. # explicitly linking system object files so we need to strip them
  11153. # from the output so that they don't get included in the library
  11154. # dependencies.
  11155. 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'
  11156. ;;
  11157. *)
  11158. if test "$GXX" = yes; then
  11159. if test $with_gnu_ld = no; then
  11160. case $host_cpu in
  11161. hppa*64*)
  11162. archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11163. ;;
  11164. ia64*)
  11165. archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11166. ;;
  11167. *)
  11168. 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'
  11169. ;;
  11170. esac
  11171. fi
  11172. else
  11173. # FIXME: insert proper C++ library support
  11174. ld_shlibs_CXX=no
  11175. fi
  11176. ;;
  11177. esac
  11178. ;;
  11179. interix[3-9]*)
  11180. hardcode_direct_CXX=no
  11181. hardcode_shlibpath_var_CXX=no
  11182. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11183. export_dynamic_flag_spec_CXX='${wl}-E'
  11184. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  11185. # Instead, shared libraries are loaded at an image base (0x10000000 by
  11186. # default) and relocated if they conflict, which is a slow very memory
  11187. # consuming and fragmenting process. To avoid this, we pick a random,
  11188. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  11189. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  11190. 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'
  11191. 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'
  11192. ;;
  11193. irix5* | irix6*)
  11194. case $cc_basename in
  11195. CC*)
  11196. # SGI C++
  11197. 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'
  11198. # Archives containing C++ object files must be created using
  11199. # "CC -ar", where "CC" is the IRIX C++ compiler. This is
  11200. # necessary to make sure instantiated templates are included
  11201. # in the archive.
  11202. old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
  11203. ;;
  11204. *)
  11205. if test "$GXX" = yes; then
  11206. if test "$with_gnu_ld" = no; then
  11207. 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'
  11208. else
  11209. 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'
  11210. fi
  11211. fi
  11212. link_all_deplibs_CXX=yes
  11213. ;;
  11214. esac
  11215. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11216. hardcode_libdir_separator_CXX=:
  11217. inherit_rpath_CXX=yes
  11218. ;;
  11219. linux* | k*bsd*-gnu)
  11220. case $cc_basename in
  11221. KCC*)
  11222. # Kuck and Associates, Inc. (KAI) C++ Compiler
  11223. # KCC will only create a shared library if the output file
  11224. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  11225. # to its proper name (with version) after linking.
  11226. 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'
  11227. 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'
  11228. # Commands to make compiler produce verbose output that lists
  11229. # what "hidden" libraries, object files and flags are used when
  11230. # linking a shared library.
  11231. #
  11232. # There doesn't appear to be a way to prevent this compiler from
  11233. # explicitly linking system object files so we need to strip them
  11234. # from the output so that they don't get included in the library
  11235. # dependencies.
  11236. 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'
  11237. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11238. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11239. # Archives containing C++ object files must be created using
  11240. # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  11241. old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
  11242. ;;
  11243. icpc* | ecpc* )
  11244. # Intel C++
  11245. with_gnu_ld=yes
  11246. # version 8.0 and above of icpc choke on multiply defined symbols
  11247. # if we add $predep_objects and $postdep_objects, however 7.1 and
  11248. # earlier do not add the objects themselves.
  11249. case `$CC -V 2>&1` in
  11250. *"Version 7."*)
  11251. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11252. 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'
  11253. ;;
  11254. *) # Version 8.0 or newer
  11255. tmp_idyn=
  11256. case $host_cpu in
  11257. ia64*) tmp_idyn=' -i_dynamic';;
  11258. esac
  11259. archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11260. 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'
  11261. ;;
  11262. esac
  11263. archive_cmds_need_lc_CXX=no
  11264. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11265. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11266. whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  11267. ;;
  11268. pgCC* | pgcpp*)
  11269. # Portland Group C++ compiler
  11270. case `$CC -V` in
  11271. *pgCC\ [1-5]* | *pgcpp\ [1-5]*)
  11272. prelink_cmds_CXX='tpldir=Template.dir~
  11273. rm -rf $tpldir~
  11274. $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
  11275. compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
  11276. old_archive_cmds_CXX='tpldir=Template.dir~
  11277. rm -rf $tpldir~
  11278. $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
  11279. $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
  11280. $RANLIB $oldlib'
  11281. archive_cmds_CXX='tpldir=Template.dir~
  11282. rm -rf $tpldir~
  11283. $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  11284. $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  11285. archive_expsym_cmds_CXX='tpldir=Template.dir~
  11286. rm -rf $tpldir~
  11287. $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  11288. $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'
  11289. ;;
  11290. *) # Version 6 will use weak symbols
  11291. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  11292. 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'
  11293. ;;
  11294. esac
  11295. hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
  11296. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11297. 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'
  11298. ;;
  11299. cxx*)
  11300. # Compaq C++
  11301. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11302. 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'
  11303. runpath_var=LD_RUN_PATH
  11304. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  11305. hardcode_libdir_separator_CXX=:
  11306. # Commands to make compiler produce verbose output that lists
  11307. # what "hidden" libraries, object files and flags are used when
  11308. # linking a shared library.
  11309. #
  11310. # There doesn't appear to be a way to prevent this compiler from
  11311. # explicitly linking system object files so we need to strip them
  11312. # from the output so that they don't get included in the library
  11313. # dependencies.
  11314. 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'
  11315. ;;
  11316. xl*)
  11317. # IBM XL 8.0 on PPC, with GNU ld
  11318. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11319. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11320. archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11321. if test "x$supports_anon_versioning" = xyes; then
  11322. archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
  11323. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  11324. echo "local: *; };" >> $output_objdir/$libname.ver~
  11325. $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  11326. fi
  11327. ;;
  11328. *)
  11329. case `$CC -V 2>&1 | sed 5q` in
  11330. *Sun\ C*)
  11331. # Sun C++ 5.9
  11332. no_undefined_flag_CXX=' -zdefs'
  11333. archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11334. 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'
  11335. hardcode_libdir_flag_spec_CXX='-R$libdir'
  11336. 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'
  11337. compiler_needs_object_CXX=yes
  11338. # Not sure whether something based on
  11339. # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
  11340. # would be better.
  11341. output_verbose_link_cmd='echo'
  11342. # Archives containing C++ object files must be created using
  11343. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  11344. # necessary to make sure instantiated templates are included
  11345. # in the archive.
  11346. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  11347. ;;
  11348. esac
  11349. ;;
  11350. esac
  11351. ;;
  11352. lynxos*)
  11353. # FIXME: insert proper C++ library support
  11354. ld_shlibs_CXX=no
  11355. ;;
  11356. m88k*)
  11357. # FIXME: insert proper C++ library support
  11358. ld_shlibs_CXX=no
  11359. ;;
  11360. mvs*)
  11361. case $cc_basename in
  11362. cxx*)
  11363. # FIXME: insert proper C++ library support
  11364. ld_shlibs_CXX=no
  11365. ;;
  11366. *)
  11367. # FIXME: insert proper C++ library support
  11368. ld_shlibs_CXX=no
  11369. ;;
  11370. esac
  11371. ;;
  11372. netbsd*)
  11373. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  11374. archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
  11375. wlarc=
  11376. hardcode_libdir_flag_spec_CXX='-R$libdir'
  11377. hardcode_direct_CXX=yes
  11378. hardcode_shlibpath_var_CXX=no
  11379. fi
  11380. # Workaround some broken pre-1.5 toolchains
  11381. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
  11382. ;;
  11383. *nto* | *qnx*)
  11384. ld_shlibs_CXX=yes
  11385. ;;
  11386. openbsd2*)
  11387. # C++ shared libraries are fairly broken
  11388. ld_shlibs_CXX=no
  11389. ;;
  11390. openbsd*)
  11391. if test -f /usr/libexec/ld.so; then
  11392. hardcode_direct_CXX=yes
  11393. hardcode_shlibpath_var_CXX=no
  11394. hardcode_direct_absolute_CXX=yes
  11395. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  11396. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11397. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  11398. archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
  11399. export_dynamic_flag_spec_CXX='${wl}-E'
  11400. whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  11401. fi
  11402. output_verbose_link_cmd=echo
  11403. else
  11404. ld_shlibs_CXX=no
  11405. fi
  11406. ;;
  11407. osf3* | osf4* | osf5*)
  11408. case $cc_basename in
  11409. KCC*)
  11410. # Kuck and Associates, Inc. (KAI) C++ Compiler
  11411. # KCC will only create a shared library if the output file
  11412. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  11413. # to its proper name (with version) after linking.
  11414. 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'
  11415. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11416. hardcode_libdir_separator_CXX=:
  11417. # Archives containing C++ object files must be created using
  11418. # the KAI C++ compiler.
  11419. case $host in
  11420. osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
  11421. *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
  11422. esac
  11423. ;;
  11424. RCC*)
  11425. # Rational C++ 2.4.1
  11426. # FIXME: insert proper C++ library support
  11427. ld_shlibs_CXX=no
  11428. ;;
  11429. cxx*)
  11430. case $host in
  11431. osf3*)
  11432. allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  11433. 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'
  11434. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11435. ;;
  11436. *)
  11437. allow_undefined_flag_CXX=' -expect_unresolved \*'
  11438. 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'
  11439. archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
  11440. echo "-hidden">> $lib.exp~
  11441. $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~
  11442. $RM $lib.exp'
  11443. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  11444. ;;
  11445. esac
  11446. hardcode_libdir_separator_CXX=:
  11447. # Commands to make compiler produce verbose output that lists
  11448. # what "hidden" libraries, object files and flags are used when
  11449. # linking a shared library.
  11450. #
  11451. # There doesn't appear to be a way to prevent this compiler from
  11452. # explicitly linking system object files so we need to strip them
  11453. # from the output so that they don't get included in the library
  11454. # dependencies.
  11455. 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'
  11456. ;;
  11457. *)
  11458. if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  11459. allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  11460. case $host in
  11461. osf3*)
  11462. 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'
  11463. ;;
  11464. *)
  11465. 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'
  11466. ;;
  11467. esac
  11468. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11469. hardcode_libdir_separator_CXX=:
  11470. # Commands to make compiler produce verbose output that lists
  11471. # what "hidden" libraries, object files and flags are used when
  11472. # linking a shared library.
  11473. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
  11474. else
  11475. # FIXME: insert proper C++ library support
  11476. ld_shlibs_CXX=no
  11477. fi
  11478. ;;
  11479. esac
  11480. ;;
  11481. psos*)
  11482. # FIXME: insert proper C++ library support
  11483. ld_shlibs_CXX=no
  11484. ;;
  11485. sunos4*)
  11486. case $cc_basename in
  11487. CC*)
  11488. # Sun C++ 4.x
  11489. # FIXME: insert proper C++ library support
  11490. ld_shlibs_CXX=no
  11491. ;;
  11492. lcc*)
  11493. # Lucid
  11494. # FIXME: insert proper C++ library support
  11495. ld_shlibs_CXX=no
  11496. ;;
  11497. *)
  11498. # FIXME: insert proper C++ library support
  11499. ld_shlibs_CXX=no
  11500. ;;
  11501. esac
  11502. ;;
  11503. solaris*)
  11504. case $cc_basename in
  11505. CC*)
  11506. # Sun C++ 4.2, 5.x and Centerline C++
  11507. archive_cmds_need_lc_CXX=yes
  11508. no_undefined_flag_CXX=' -zdefs'
  11509. archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11510. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  11511. $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'
  11512. hardcode_libdir_flag_spec_CXX='-R$libdir'
  11513. hardcode_shlibpath_var_CXX=no
  11514. case $host_os in
  11515. solaris2.[0-5] | solaris2.[0-5].*) ;;
  11516. *)
  11517. # The compiler driver will combine and reorder linker options,
  11518. # but understands `-z linker_flag'.
  11519. # Supported since Solaris 2.6 (maybe 2.5.1?)
  11520. whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
  11521. ;;
  11522. esac
  11523. link_all_deplibs_CXX=yes
  11524. output_verbose_link_cmd='echo'
  11525. # Archives containing C++ object files must be created using
  11526. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  11527. # necessary to make sure instantiated templates are included
  11528. # in the archive.
  11529. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  11530. ;;
  11531. gcx*)
  11532. # Green Hills C++ Compiler
  11533. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  11534. # The C++ compiler must be used to create the archive.
  11535. old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
  11536. ;;
  11537. *)
  11538. # GNU C++ compiler with Solaris linker
  11539. if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  11540. no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
  11541. if $CC --version | $GREP -v '^2\.7' > /dev/null; then
  11542. archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  11543. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  11544. $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  11545. # Commands to make compiler produce verbose output that lists
  11546. # what "hidden" libraries, object files and flags are used when
  11547. # linking a shared library.
  11548. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
  11549. else
  11550. # g++ 2.7 appears to require `-G' NOT `-shared' on this
  11551. # platform.
  11552. archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  11553. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  11554. $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  11555. # Commands to make compiler produce verbose output that lists
  11556. # what "hidden" libraries, object files and flags are used when
  11557. # linking a shared library.
  11558. output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
  11559. fi
  11560. hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
  11561. case $host_os in
  11562. solaris2.[0-5] | solaris2.[0-5].*) ;;
  11563. *)
  11564. whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  11565. ;;
  11566. esac
  11567. fi
  11568. ;;
  11569. esac
  11570. ;;
  11571. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  11572. no_undefined_flag_CXX='${wl}-z,text'
  11573. archive_cmds_need_lc_CXX=no
  11574. hardcode_shlibpath_var_CXX=no
  11575. runpath_var='LD_RUN_PATH'
  11576. case $cc_basename in
  11577. CC*)
  11578. archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11579. archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11580. ;;
  11581. *)
  11582. archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11583. archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11584. ;;
  11585. esac
  11586. ;;
  11587. sysv5* | sco3.2v5* | sco5v6*)
  11588. # Note: We can NOT use -z defs as we might desire, because we do not
  11589. # link with -lc, and that would cause any symbols used from libc to
  11590. # always be unresolved, which means just about no library would
  11591. # ever link correctly. If we're not using GNU ld we use -z text
  11592. # though, which does catch some bad symbols but isn't as heavy-handed
  11593. # as -z defs.
  11594. no_undefined_flag_CXX='${wl}-z,text'
  11595. allow_undefined_flag_CXX='${wl}-z,nodefs'
  11596. archive_cmds_need_lc_CXX=no
  11597. hardcode_shlibpath_var_CXX=no
  11598. hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
  11599. hardcode_libdir_separator_CXX=':'
  11600. link_all_deplibs_CXX=yes
  11601. export_dynamic_flag_spec_CXX='${wl}-Bexport'
  11602. runpath_var='LD_RUN_PATH'
  11603. case $cc_basename in
  11604. CC*)
  11605. archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11606. archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11607. ;;
  11608. *)
  11609. archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11610. archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11611. ;;
  11612. esac
  11613. ;;
  11614. tandem*)
  11615. case $cc_basename in
  11616. NCC*)
  11617. # NonStop-UX NCC 3.20
  11618. # FIXME: insert proper C++ library support
  11619. ld_shlibs_CXX=no
  11620. ;;
  11621. *)
  11622. # FIXME: insert proper C++ library support
  11623. ld_shlibs_CXX=no
  11624. ;;
  11625. esac
  11626. ;;
  11627. vxworks*)
  11628. # FIXME: insert proper C++ library support
  11629. ld_shlibs_CXX=no
  11630. ;;
  11631. *)
  11632. # FIXME: insert proper C++ library support
  11633. ld_shlibs_CXX=no
  11634. ;;
  11635. esac
  11636. { $as_echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
  11637. $as_echo "$ld_shlibs_CXX" >&6; }
  11638. test "$ld_shlibs_CXX" = no && can_build_shared=no
  11639. GCC_CXX="$GXX"
  11640. LD_CXX="$LD"
  11641. ## CAVEAT EMPTOR:
  11642. ## There is no encapsulation within the following macros, do not change
  11643. ## the running order or otherwise move them around unless you know exactly
  11644. ## what you are doing...
  11645. # Dependencies to place before and after the object being linked:
  11646. predep_objects_CXX=
  11647. postdep_objects_CXX=
  11648. predeps_CXX=
  11649. postdeps_CXX=
  11650. compiler_lib_search_path_CXX=
  11651. cat > conftest.$ac_ext <<_LT_EOF
  11652. class Foo
  11653. {
  11654. public:
  11655. Foo (void) { a = 0; }
  11656. private:
  11657. int a;
  11658. };
  11659. _LT_EOF
  11660. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  11661. (eval $ac_compile) 2>&5
  11662. ac_status=$?
  11663. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11664. (exit $ac_status); }; then
  11665. # Parse the compiler output and extract the necessary
  11666. # objects, libraries and library flags.
  11667. # Sentinel used to keep track of whether or not we are before
  11668. # the conftest object file.
  11669. pre_test_object_deps_done=no
  11670. for p in `eval "$output_verbose_link_cmd"`; do
  11671. case $p in
  11672. -L* | -R* | -l*)
  11673. # Some compilers place space between "-{L,R}" and the path.
  11674. # Remove the space.
  11675. if test $p = "-L" ||
  11676. test $p = "-R"; then
  11677. prev=$p
  11678. continue
  11679. else
  11680. prev=
  11681. fi
  11682. if test "$pre_test_object_deps_done" = no; then
  11683. case $p in
  11684. -L* | -R*)
  11685. # Internal compiler library paths should come after those
  11686. # provided the user. The postdeps already come after the
  11687. # user supplied libs so there is no need to process them.
  11688. if test -z "$compiler_lib_search_path_CXX"; then
  11689. compiler_lib_search_path_CXX="${prev}${p}"
  11690. else
  11691. compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
  11692. fi
  11693. ;;
  11694. # The "-l" case would never come before the object being
  11695. # linked, so don't bother handling this case.
  11696. esac
  11697. else
  11698. if test -z "$postdeps_CXX"; then
  11699. postdeps_CXX="${prev}${p}"
  11700. else
  11701. postdeps_CXX="${postdeps_CXX} ${prev}${p}"
  11702. fi
  11703. fi
  11704. ;;
  11705. *.$objext)
  11706. # This assumes that the test object file only shows up
  11707. # once in the compiler output.
  11708. if test "$p" = "conftest.$objext"; then
  11709. pre_test_object_deps_done=yes
  11710. continue
  11711. fi
  11712. if test "$pre_test_object_deps_done" = no; then
  11713. if test -z "$predep_objects_CXX"; then
  11714. predep_objects_CXX="$p"
  11715. else
  11716. predep_objects_CXX="$predep_objects_CXX $p"
  11717. fi
  11718. else
  11719. if test -z "$postdep_objects_CXX"; then
  11720. postdep_objects_CXX="$p"
  11721. else
  11722. postdep_objects_CXX="$postdep_objects_CXX $p"
  11723. fi
  11724. fi
  11725. ;;
  11726. *) ;; # Ignore the rest.
  11727. esac
  11728. done
  11729. # Clean up.
  11730. rm -f a.out a.exe
  11731. else
  11732. echo "libtool.m4: error: problem compiling CXX test program"
  11733. fi
  11734. $RM -f confest.$objext
  11735. # PORTME: override above test on systems where it is broken
  11736. case $host_os in
  11737. interix[3-9]*)
  11738. # Interix 3.5 installs completely hosed .la files for C++, so rather than
  11739. # hack all around it, let's just trust "g++" to DTRT.
  11740. predep_objects_CXX=
  11741. postdep_objects_CXX=
  11742. postdeps_CXX=
  11743. ;;
  11744. linux*)
  11745. case `$CC -V 2>&1 | sed 5q` in
  11746. *Sun\ C*)
  11747. # Sun C++ 5.9
  11748. # The more standards-conforming stlport4 library is
  11749. # incompatible with the Cstd library. Avoid specifying
  11750. # it if it's in CXXFLAGS. Ignore libCrun as
  11751. # -library=stlport4 depends on it.
  11752. case " $CXX $CXXFLAGS " in
  11753. *" -library=stlport4 "*)
  11754. solaris_use_stlport4=yes
  11755. ;;
  11756. esac
  11757. if test "$solaris_use_stlport4" != yes; then
  11758. postdeps_CXX='-library=Cstd -library=Crun'
  11759. fi
  11760. ;;
  11761. esac
  11762. ;;
  11763. solaris*)
  11764. case $cc_basename in
  11765. CC*)
  11766. # The more standards-conforming stlport4 library is
  11767. # incompatible with the Cstd library. Avoid specifying
  11768. # it if it's in CXXFLAGS. Ignore libCrun as
  11769. # -library=stlport4 depends on it.
  11770. case " $CXX $CXXFLAGS " in
  11771. *" -library=stlport4 "*)
  11772. solaris_use_stlport4=yes
  11773. ;;
  11774. esac
  11775. # Adding this requires a known-good setup of shared libraries for
  11776. # Sun compiler versions before 5.6, else PIC objects from an old
  11777. # archive will be linked into the output, leading to subtle bugs.
  11778. if test "$solaris_use_stlport4" != yes; then
  11779. postdeps_CXX='-library=Cstd -library=Crun'
  11780. fi
  11781. ;;
  11782. esac
  11783. ;;
  11784. esac
  11785. case " $postdeps_CXX " in
  11786. *" -lc "*) archive_cmds_need_lc_CXX=no ;;
  11787. esac
  11788. compiler_lib_search_dirs_CXX=
  11789. if test -n "${compiler_lib_search_path_CXX}"; then
  11790. compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
  11791. fi
  11792. lt_prog_compiler_wl_CXX=
  11793. lt_prog_compiler_pic_CXX=
  11794. lt_prog_compiler_static_CXX=
  11795. { $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
  11796. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  11797. # C++ specific cases for pic, static, wl, etc.
  11798. if test "$GXX" = yes; then
  11799. lt_prog_compiler_wl_CXX='-Wl,'
  11800. lt_prog_compiler_static_CXX='-static'
  11801. case $host_os in
  11802. aix*)
  11803. # All AIX code is PIC.
  11804. if test "$host_cpu" = ia64; then
  11805. # AIX 5 now supports IA64 processor
  11806. lt_prog_compiler_static_CXX='-Bstatic'
  11807. fi
  11808. ;;
  11809. amigaos*)
  11810. case $host_cpu in
  11811. powerpc)
  11812. # see comment about AmigaOS4 .so support
  11813. lt_prog_compiler_pic_CXX='-fPIC'
  11814. ;;
  11815. m68k)
  11816. # FIXME: we need at least 68020 code to build shared libraries, but
  11817. # adding the `-m68020' flag to GCC prevents building anything better,
  11818. # like `-m68040'.
  11819. lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
  11820. ;;
  11821. esac
  11822. ;;
  11823. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  11824. # PIC is the default for these OSes.
  11825. ;;
  11826. mingw* | cygwin* | os2* | pw32* | cegcc*)
  11827. # This hack is so that the source file can tell whether it is being
  11828. # built for inclusion in a dll (and should export symbols for example).
  11829. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  11830. # (--disable-auto-import) libraries
  11831. lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
  11832. ;;
  11833. darwin* | rhapsody*)
  11834. # PIC is the default on this platform
  11835. # Common symbols not allowed in MH_DYLIB files
  11836. lt_prog_compiler_pic_CXX='-fno-common'
  11837. ;;
  11838. *djgpp*)
  11839. # DJGPP does not support shared libraries at all
  11840. lt_prog_compiler_pic_CXX=
  11841. ;;
  11842. interix[3-9]*)
  11843. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  11844. # Instead, we relocate shared libraries at runtime.
  11845. ;;
  11846. sysv4*MP*)
  11847. if test -d /usr/nec; then
  11848. lt_prog_compiler_pic_CXX=-Kconform_pic
  11849. fi
  11850. ;;
  11851. hpux*)
  11852. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  11853. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  11854. # sets the default TLS model and affects inlining.
  11855. case $host_cpu in
  11856. hppa*64*)
  11857. ;;
  11858. *)
  11859. lt_prog_compiler_pic_CXX='-fPIC'
  11860. ;;
  11861. esac
  11862. ;;
  11863. *qnx* | *nto*)
  11864. # QNX uses GNU C++, but need to define -shared option too, otherwise
  11865. # it will coredump.
  11866. lt_prog_compiler_pic_CXX='-fPIC -shared'
  11867. ;;
  11868. *)
  11869. lt_prog_compiler_pic_CXX='-fPIC'
  11870. ;;
  11871. esac
  11872. else
  11873. case $host_os in
  11874. aix[4-9]*)
  11875. # All AIX code is PIC.
  11876. if test "$host_cpu" = ia64; then
  11877. # AIX 5 now supports IA64 processor
  11878. lt_prog_compiler_static_CXX='-Bstatic'
  11879. else
  11880. lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
  11881. fi
  11882. ;;
  11883. chorus*)
  11884. case $cc_basename in
  11885. cxch68*)
  11886. # Green Hills C++ Compiler
  11887. # _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"
  11888. ;;
  11889. esac
  11890. ;;
  11891. dgux*)
  11892. case $cc_basename in
  11893. ec++*)
  11894. lt_prog_compiler_pic_CXX='-KPIC'
  11895. ;;
  11896. ghcx*)
  11897. # Green Hills C++ Compiler
  11898. lt_prog_compiler_pic_CXX='-pic'
  11899. ;;
  11900. *)
  11901. ;;
  11902. esac
  11903. ;;
  11904. freebsd* | dragonfly*)
  11905. # FreeBSD uses GNU C++
  11906. ;;
  11907. hpux9* | hpux10* | hpux11*)
  11908. case $cc_basename in
  11909. CC*)
  11910. lt_prog_compiler_wl_CXX='-Wl,'
  11911. lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
  11912. if test "$host_cpu" != ia64; then
  11913. lt_prog_compiler_pic_CXX='+Z'
  11914. fi
  11915. ;;
  11916. aCC*)
  11917. lt_prog_compiler_wl_CXX='-Wl,'
  11918. lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
  11919. case $host_cpu in
  11920. hppa*64*|ia64*)
  11921. # +Z the default
  11922. ;;
  11923. *)
  11924. lt_prog_compiler_pic_CXX='+Z'
  11925. ;;
  11926. esac
  11927. ;;
  11928. *)
  11929. ;;
  11930. esac
  11931. ;;
  11932. interix*)
  11933. # This is c89, which is MS Visual C++ (no shared libs)
  11934. # Anyone wants to do a port?
  11935. ;;
  11936. irix5* | irix6* | nonstopux*)
  11937. case $cc_basename in
  11938. CC*)
  11939. lt_prog_compiler_wl_CXX='-Wl,'
  11940. lt_prog_compiler_static_CXX='-non_shared'
  11941. # CC pic flag -KPIC is the default.
  11942. ;;
  11943. *)
  11944. ;;
  11945. esac
  11946. ;;
  11947. linux* | k*bsd*-gnu)
  11948. case $cc_basename in
  11949. KCC*)
  11950. # KAI C++ Compiler
  11951. lt_prog_compiler_wl_CXX='--backend -Wl,'
  11952. lt_prog_compiler_pic_CXX='-fPIC'
  11953. ;;
  11954. ecpc* )
  11955. # old Intel C++ for x86_64 which still supported -KPIC.
  11956. lt_prog_compiler_wl_CXX='-Wl,'
  11957. lt_prog_compiler_pic_CXX='-KPIC'
  11958. lt_prog_compiler_static_CXX='-static'
  11959. ;;
  11960. icpc* )
  11961. # Intel C++, used to be incompatible with GCC.
  11962. # ICC 10 doesn't accept -KPIC any more.
  11963. lt_prog_compiler_wl_CXX='-Wl,'
  11964. lt_prog_compiler_pic_CXX='-fPIC'
  11965. lt_prog_compiler_static_CXX='-static'
  11966. ;;
  11967. pgCC* | pgcpp*)
  11968. # Portland Group C++ compiler
  11969. lt_prog_compiler_wl_CXX='-Wl,'
  11970. lt_prog_compiler_pic_CXX='-fpic'
  11971. lt_prog_compiler_static_CXX='-Bstatic'
  11972. ;;
  11973. cxx*)
  11974. # Compaq C++
  11975. # Make sure the PIC flag is empty. It appears that all Alpha
  11976. # Linux and Compaq Tru64 Unix objects are PIC.
  11977. lt_prog_compiler_pic_CXX=
  11978. lt_prog_compiler_static_CXX='-non_shared'
  11979. ;;
  11980. xlc* | xlC*)
  11981. # IBM XL 8.0 on PPC
  11982. lt_prog_compiler_wl_CXX='-Wl,'
  11983. lt_prog_compiler_pic_CXX='-qpic'
  11984. lt_prog_compiler_static_CXX='-qstaticlink'
  11985. ;;
  11986. *)
  11987. case `$CC -V 2>&1 | sed 5q` in
  11988. *Sun\ C*)
  11989. # Sun C++ 5.9
  11990. lt_prog_compiler_pic_CXX='-KPIC'
  11991. lt_prog_compiler_static_CXX='-Bstatic'
  11992. lt_prog_compiler_wl_CXX='-Qoption ld '
  11993. ;;
  11994. esac
  11995. ;;
  11996. esac
  11997. ;;
  11998. lynxos*)
  11999. ;;
  12000. m88k*)
  12001. ;;
  12002. mvs*)
  12003. case $cc_basename in
  12004. cxx*)
  12005. lt_prog_compiler_pic_CXX='-W c,exportall'
  12006. ;;
  12007. *)
  12008. ;;
  12009. esac
  12010. ;;
  12011. netbsd* | netbsdelf*-gnu)
  12012. ;;
  12013. *qnx* | *nto*)
  12014. # QNX uses GNU C++, but need to define -shared option too, otherwise
  12015. # it will coredump.
  12016. lt_prog_compiler_pic_CXX='-fPIC -shared'
  12017. ;;
  12018. osf3* | osf4* | osf5*)
  12019. case $cc_basename in
  12020. KCC*)
  12021. lt_prog_compiler_wl_CXX='--backend -Wl,'
  12022. ;;
  12023. RCC*)
  12024. # Rational C++ 2.4.1
  12025. lt_prog_compiler_pic_CXX='-pic'
  12026. ;;
  12027. cxx*)
  12028. # Digital/Compaq C++
  12029. lt_prog_compiler_wl_CXX='-Wl,'
  12030. # Make sure the PIC flag is empty. It appears that all Alpha
  12031. # Linux and Compaq Tru64 Unix objects are PIC.
  12032. lt_prog_compiler_pic_CXX=
  12033. lt_prog_compiler_static_CXX='-non_shared'
  12034. ;;
  12035. *)
  12036. ;;
  12037. esac
  12038. ;;
  12039. psos*)
  12040. ;;
  12041. solaris*)
  12042. case $cc_basename in
  12043. CC*)
  12044. # Sun C++ 4.2, 5.x and Centerline C++
  12045. lt_prog_compiler_pic_CXX='-KPIC'
  12046. lt_prog_compiler_static_CXX='-Bstatic'
  12047. lt_prog_compiler_wl_CXX='-Qoption ld '
  12048. ;;
  12049. gcx*)
  12050. # Green Hills C++ Compiler
  12051. lt_prog_compiler_pic_CXX='-PIC'
  12052. ;;
  12053. *)
  12054. ;;
  12055. esac
  12056. ;;
  12057. sunos4*)
  12058. case $cc_basename in
  12059. CC*)
  12060. # Sun C++ 4.x
  12061. lt_prog_compiler_pic_CXX='-pic'
  12062. lt_prog_compiler_static_CXX='-Bstatic'
  12063. ;;
  12064. lcc*)
  12065. # Lucid
  12066. lt_prog_compiler_pic_CXX='-pic'
  12067. ;;
  12068. *)
  12069. ;;
  12070. esac
  12071. ;;
  12072. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  12073. case $cc_basename in
  12074. CC*)
  12075. lt_prog_compiler_wl_CXX='-Wl,'
  12076. lt_prog_compiler_pic_CXX='-KPIC'
  12077. lt_prog_compiler_static_CXX='-Bstatic'
  12078. ;;
  12079. esac
  12080. ;;
  12081. tandem*)
  12082. case $cc_basename in
  12083. NCC*)
  12084. # NonStop-UX NCC 3.20
  12085. lt_prog_compiler_pic_CXX='-KPIC'
  12086. ;;
  12087. *)
  12088. ;;
  12089. esac
  12090. ;;
  12091. vxworks*)
  12092. ;;
  12093. *)
  12094. lt_prog_compiler_can_build_shared_CXX=no
  12095. ;;
  12096. esac
  12097. fi
  12098. case $host_os in
  12099. # For platforms which do not support PIC, -DPIC is meaningless:
  12100. *djgpp*)
  12101. lt_prog_compiler_pic_CXX=
  12102. ;;
  12103. *)
  12104. lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
  12105. ;;
  12106. esac
  12107. { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
  12108. $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
  12109. #
  12110. # Check to make sure the PIC flag actually works.
  12111. #
  12112. if test -n "$lt_prog_compiler_pic_CXX"; then
  12113. { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
  12114. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
  12115. if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then
  12116. $as_echo_n "(cached) " >&6
  12117. else
  12118. lt_cv_prog_compiler_pic_works_CXX=no
  12119. ac_outfile=conftest.$ac_objext
  12120. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12121. lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
  12122. # Insert the option either (1) after the last *FLAGS variable, or
  12123. # (2) before a word containing "conftest.", or (3) at the end.
  12124. # Note that $ac_compile itself does not contain backslashes and begins
  12125. # with a dollar sign (not a hyphen), so the echo should work correctly.
  12126. # The option is referenced via a variable to avoid confusing sed.
  12127. lt_compile=`echo "$ac_compile" | $SED \
  12128. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  12129. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  12130. -e 's:$: $lt_compiler_flag:'`
  12131. (eval echo "\"\$as_me:14056: $lt_compile\"" >&5)
  12132. (eval "$lt_compile" 2>conftest.err)
  12133. ac_status=$?
  12134. cat conftest.err >&5
  12135. echo "$as_me:14060: \$? = $ac_status" >&5
  12136. if (exit $ac_status) && test -s "$ac_outfile"; then
  12137. # The compiler can only warn and ignore the option if not recognized
  12138. # So say no if there are warnings other than the usual output.
  12139. $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  12140. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  12141. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  12142. lt_cv_prog_compiler_pic_works_CXX=yes
  12143. fi
  12144. fi
  12145. $RM conftest*
  12146. fi
  12147. { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
  12148. $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
  12149. if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
  12150. case $lt_prog_compiler_pic_CXX in
  12151. "" | " "*) ;;
  12152. *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
  12153. esac
  12154. else
  12155. lt_prog_compiler_pic_CXX=
  12156. lt_prog_compiler_can_build_shared_CXX=no
  12157. fi
  12158. fi
  12159. #
  12160. # Check to make sure the static flag actually works.
  12161. #
  12162. wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
  12163. { $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  12164. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  12165. if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then
  12166. $as_echo_n "(cached) " >&6
  12167. else
  12168. lt_cv_prog_compiler_static_works_CXX=no
  12169. save_LDFLAGS="$LDFLAGS"
  12170. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  12171. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  12172. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  12173. # The linker can only warn and ignore the option if not recognized
  12174. # So say no if there are warnings
  12175. if test -s conftest.err; then
  12176. # Append any errors to the config.log.
  12177. cat conftest.err 1>&5
  12178. $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
  12179. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  12180. if diff conftest.exp conftest.er2 >/dev/null; then
  12181. lt_cv_prog_compiler_static_works_CXX=yes
  12182. fi
  12183. else
  12184. lt_cv_prog_compiler_static_works_CXX=yes
  12185. fi
  12186. fi
  12187. $RM -r conftest*
  12188. LDFLAGS="$save_LDFLAGS"
  12189. fi
  12190. { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_CXX" >&5
  12191. $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
  12192. if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
  12193. :
  12194. else
  12195. lt_prog_compiler_static_CXX=
  12196. fi
  12197. { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
  12198. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  12199. if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
  12200. $as_echo_n "(cached) " >&6
  12201. else
  12202. lt_cv_prog_compiler_c_o_CXX=no
  12203. $RM -r conftest 2>/dev/null
  12204. mkdir conftest
  12205. cd conftest
  12206. mkdir out
  12207. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12208. lt_compiler_flag="-o out/conftest2.$ac_objext"
  12209. # Insert the option either (1) after the last *FLAGS variable, or
  12210. # (2) before a word containing "conftest.", or (3) at the end.
  12211. # Note that $ac_compile itself does not contain backslashes and begins
  12212. # with a dollar sign (not a hyphen), so the echo should work correctly.
  12213. lt_compile=`echo "$ac_compile" | $SED \
  12214. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  12215. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  12216. -e 's:$: $lt_compiler_flag:'`
  12217. (eval echo "\"\$as_me:14155: $lt_compile\"" >&5)
  12218. (eval "$lt_compile" 2>out/conftest.err)
  12219. ac_status=$?
  12220. cat out/conftest.err >&5
  12221. echo "$as_me:14159: \$? = $ac_status" >&5
  12222. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  12223. then
  12224. # The compiler can only warn and ignore the option if not recognized
  12225. # So say no if there are warnings
  12226. $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  12227. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  12228. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  12229. lt_cv_prog_compiler_c_o_CXX=yes
  12230. fi
  12231. fi
  12232. chmod u+w . 2>&5
  12233. $RM conftest*
  12234. # SGI C++ compiler will create directory out/ii_files/ for
  12235. # template instantiation
  12236. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  12237. $RM out/* && rmdir out
  12238. cd ..
  12239. $RM -r conftest
  12240. $RM conftest*
  12241. fi
  12242. { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  12243. $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
  12244. { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
  12245. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  12246. if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
  12247. $as_echo_n "(cached) " >&6
  12248. else
  12249. lt_cv_prog_compiler_c_o_CXX=no
  12250. $RM -r conftest 2>/dev/null
  12251. mkdir conftest
  12252. cd conftest
  12253. mkdir out
  12254. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12255. lt_compiler_flag="-o out/conftest2.$ac_objext"
  12256. # Insert the option either (1) after the last *FLAGS variable, or
  12257. # (2) before a word containing "conftest.", or (3) at the end.
  12258. # Note that $ac_compile itself does not contain backslashes and begins
  12259. # with a dollar sign (not a hyphen), so the echo should work correctly.
  12260. lt_compile=`echo "$ac_compile" | $SED \
  12261. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  12262. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  12263. -e 's:$: $lt_compiler_flag:'`
  12264. (eval echo "\"\$as_me:14207: $lt_compile\"" >&5)
  12265. (eval "$lt_compile" 2>out/conftest.err)
  12266. ac_status=$?
  12267. cat out/conftest.err >&5
  12268. echo "$as_me:14211: \$? = $ac_status" >&5
  12269. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  12270. then
  12271. # The compiler can only warn and ignore the option if not recognized
  12272. # So say no if there are warnings
  12273. $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  12274. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  12275. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  12276. lt_cv_prog_compiler_c_o_CXX=yes
  12277. fi
  12278. fi
  12279. chmod u+w . 2>&5
  12280. $RM conftest*
  12281. # SGI C++ compiler will create directory out/ii_files/ for
  12282. # template instantiation
  12283. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  12284. $RM out/* && rmdir out
  12285. cd ..
  12286. $RM -r conftest
  12287. $RM conftest*
  12288. fi
  12289. { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  12290. $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
  12291. hard_links="nottested"
  12292. if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
  12293. # do not overwrite the value of need_locks provided by the user
  12294. { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
  12295. $as_echo_n "checking if we can lock with hard links... " >&6; }
  12296. hard_links=yes
  12297. $RM conftest*
  12298. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  12299. touch conftest.a
  12300. ln conftest.a conftest.b 2>&5 || hard_links=no
  12301. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  12302. { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
  12303. $as_echo "$hard_links" >&6; }
  12304. if test "$hard_links" = no; then
  12305. { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  12306. $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  12307. need_locks=warn
  12308. fi
  12309. else
  12310. need_locks=no
  12311. fi
  12312. { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  12313. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  12314. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  12315. case $host_os in
  12316. aix[4-9]*)
  12317. # If we're using GNU nm, then we don't want the "-C" option.
  12318. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  12319. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  12320. 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'
  12321. else
  12322. 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'
  12323. fi
  12324. ;;
  12325. pw32*)
  12326. export_symbols_cmds_CXX="$ltdll_cmds"
  12327. ;;
  12328. cygwin* | mingw* | cegcc*)
  12329. 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'
  12330. ;;
  12331. linux* | k*bsd*-gnu)
  12332. link_all_deplibs_CXX=no
  12333. ;;
  12334. *)
  12335. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  12336. ;;
  12337. esac
  12338. exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  12339. { $as_echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
  12340. $as_echo "$ld_shlibs_CXX" >&6; }
  12341. test "$ld_shlibs_CXX" = no && can_build_shared=no
  12342. with_gnu_ld_CXX=$with_gnu_ld
  12343. #
  12344. # Do we need to explicitly link libc?
  12345. #
  12346. case "x$archive_cmds_need_lc_CXX" in
  12347. x|xyes)
  12348. # Assume -lc should be added
  12349. archive_cmds_need_lc_CXX=yes
  12350. if test "$enable_shared" = yes && test "$GCC" = yes; then
  12351. case $archive_cmds_CXX in
  12352. *'~'*)
  12353. # FIXME: we may have to deal with multi-command sequences.
  12354. ;;
  12355. '$CC '*)
  12356. # Test whether the compiler implicitly links with -lc since on some
  12357. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  12358. # to ld, don't add -lc before -lgcc.
  12359. { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
  12360. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  12361. $RM conftest*
  12362. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12363. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  12364. (eval $ac_compile) 2>&5
  12365. ac_status=$?
  12366. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12367. (exit $ac_status); } 2>conftest.err; then
  12368. soname=conftest
  12369. lib=conftest
  12370. libobjs=conftest.$ac_objext
  12371. deplibs=
  12372. wl=$lt_prog_compiler_wl_CXX
  12373. pic_flag=$lt_prog_compiler_pic_CXX
  12374. compiler_flags=-v
  12375. linker_flags=-v
  12376. verstring=
  12377. output_objdir=.
  12378. libname=conftest
  12379. lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
  12380. allow_undefined_flag_CXX=
  12381. if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
  12382. (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  12383. ac_status=$?
  12384. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12385. (exit $ac_status); }
  12386. then
  12387. archive_cmds_need_lc_CXX=no
  12388. else
  12389. archive_cmds_need_lc_CXX=yes
  12390. fi
  12391. allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
  12392. else
  12393. cat conftest.err 1>&5
  12394. fi
  12395. $RM conftest*
  12396. { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
  12397. $as_echo "$archive_cmds_need_lc_CXX" >&6; }
  12398. ;;
  12399. esac
  12400. fi
  12401. ;;
  12402. esac
  12403. { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
  12404. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  12405. library_names_spec=
  12406. libname_spec='lib$name'
  12407. soname_spec=
  12408. shrext_cmds=".so"
  12409. postinstall_cmds=
  12410. postuninstall_cmds=
  12411. finish_cmds=
  12412. finish_eval=
  12413. shlibpath_var=
  12414. shlibpath_overrides_runpath=unknown
  12415. version_type=none
  12416. dynamic_linker="$host_os ld.so"
  12417. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  12418. need_lib_prefix=unknown
  12419. hardcode_into_libs=no
  12420. # when you set need_version to no, make sure it does not cause -set_version
  12421. # flags to be left without arguments
  12422. need_version=unknown
  12423. case $host_os in
  12424. aix3*)
  12425. version_type=linux
  12426. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  12427. shlibpath_var=LIBPATH
  12428. # AIX 3 has no versioning support, so we append a major version to the name.
  12429. soname_spec='${libname}${release}${shared_ext}$major'
  12430. ;;
  12431. aix[4-9]*)
  12432. version_type=linux
  12433. need_lib_prefix=no
  12434. need_version=no
  12435. hardcode_into_libs=yes
  12436. if test "$host_cpu" = ia64; then
  12437. # AIX 5 supports IA64
  12438. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  12439. shlibpath_var=LD_LIBRARY_PATH
  12440. else
  12441. # With GCC up to 2.95.x, collect2 would create an import file
  12442. # for dependence libraries. The import file would start with
  12443. # the line `#! .'. This would cause the generated library to
  12444. # depend on `.', always an invalid library. This was fixed in
  12445. # development snapshots of GCC prior to 3.0.
  12446. case $host_os in
  12447. aix4 | aix4.[01] | aix4.[01].*)
  12448. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  12449. echo ' yes '
  12450. echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  12451. :
  12452. else
  12453. can_build_shared=no
  12454. fi
  12455. ;;
  12456. esac
  12457. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  12458. # soname into executable. Probably we can add versioning support to
  12459. # collect2, so additional links can be useful in future.
  12460. if test "$aix_use_runtimelinking" = yes; then
  12461. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  12462. # instead of lib<name>.a to let people know that these are not
  12463. # typical AIX shared libraries.
  12464. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12465. else
  12466. # We preserve .a as extension for shared libraries through AIX4.2
  12467. # and later when we are not doing run time linking.
  12468. library_names_spec='${libname}${release}.a $libname.a'
  12469. soname_spec='${libname}${release}${shared_ext}$major'
  12470. fi
  12471. shlibpath_var=LIBPATH
  12472. fi
  12473. ;;
  12474. amigaos*)
  12475. case $host_cpu in
  12476. powerpc)
  12477. # Since July 2007 AmigaOS4 officially supports .so libraries.
  12478. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  12479. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12480. ;;
  12481. m68k)
  12482. library_names_spec='$libname.ixlibrary $libname.a'
  12483. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  12484. 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'
  12485. ;;
  12486. esac
  12487. ;;
  12488. beos*)
  12489. library_names_spec='${libname}${shared_ext}'
  12490. dynamic_linker="$host_os ld.so"
  12491. shlibpath_var=LIBRARY_PATH
  12492. ;;
  12493. bsdi[45]*)
  12494. version_type=linux
  12495. need_version=no
  12496. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12497. soname_spec='${libname}${release}${shared_ext}$major'
  12498. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  12499. shlibpath_var=LD_LIBRARY_PATH
  12500. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  12501. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  12502. # the default ld.so.conf also contains /usr/contrib/lib and
  12503. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  12504. # libtool to hard-code these into programs
  12505. ;;
  12506. cygwin* | mingw* | pw32* | cegcc*)
  12507. version_type=windows
  12508. shrext_cmds=".dll"
  12509. need_version=no
  12510. need_lib_prefix=no
  12511. case $GCC,$host_os in
  12512. yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
  12513. library_names_spec='$libname.dll.a'
  12514. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  12515. postinstall_cmds='base_file=`basename \${file}`~
  12516. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  12517. dldir=$destdir/`dirname \$dlpath`~
  12518. test -d \$dldir || mkdir -p \$dldir~
  12519. $install_prog $dir/$dlname \$dldir/$dlname~
  12520. chmod a+x \$dldir/$dlname~
  12521. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  12522. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  12523. fi'
  12524. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  12525. dlpath=$dir/\$dldll~
  12526. $RM \$dlpath'
  12527. shlibpath_overrides_runpath=yes
  12528. case $host_os in
  12529. cygwin*)
  12530. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  12531. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  12532. sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
  12533. ;;
  12534. mingw* | cegcc*)
  12535. # MinGW DLLs use traditional 'lib' prefix
  12536. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  12537. sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  12538. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  12539. # It is most probably a Windows format PATH printed by
  12540. # mingw gcc, but we are running on Cygwin. Gcc prints its search
  12541. # path with ; separators, and with drive letters. We can handle the
  12542. # drive letters (cygwin fileutils understands them), so leave them,
  12543. # especially as we might pass files found there to a mingw objdump,
  12544. # which wouldn't understand a cygwinified path. Ahh.
  12545. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  12546. else
  12547. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  12548. fi
  12549. ;;
  12550. pw32*)
  12551. # pw32 DLLs use 'pw' prefix rather than 'lib'
  12552. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  12553. ;;
  12554. esac
  12555. ;;
  12556. *)
  12557. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  12558. ;;
  12559. esac
  12560. dynamic_linker='Win32 ld.exe'
  12561. # FIXME: first we should search . and the directory the executable is in
  12562. shlibpath_var=PATH
  12563. ;;
  12564. darwin* | rhapsody*)
  12565. dynamic_linker="$host_os dyld"
  12566. version_type=darwin
  12567. need_lib_prefix=no
  12568. need_version=no
  12569. library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  12570. soname_spec='${libname}${release}${major}$shared_ext'
  12571. shlibpath_overrides_runpath=yes
  12572. shlibpath_var=DYLD_LIBRARY_PATH
  12573. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  12574. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  12575. ;;
  12576. dgux*)
  12577. version_type=linux
  12578. need_lib_prefix=no
  12579. need_version=no
  12580. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  12581. soname_spec='${libname}${release}${shared_ext}$major'
  12582. shlibpath_var=LD_LIBRARY_PATH
  12583. ;;
  12584. freebsd1*)
  12585. dynamic_linker=no
  12586. ;;
  12587. freebsd* | dragonfly*)
  12588. # DragonFly does not have aout. When/if they implement a new
  12589. # versioning mechanism, adjust this.
  12590. if test -x /usr/bin/objformat; then
  12591. objformat=`/usr/bin/objformat`
  12592. else
  12593. case $host_os in
  12594. freebsd[123]*) objformat=aout ;;
  12595. *) objformat=elf ;;
  12596. esac
  12597. fi
  12598. version_type=freebsd-$objformat
  12599. case $version_type in
  12600. freebsd-elf*)
  12601. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  12602. need_version=no
  12603. need_lib_prefix=no
  12604. ;;
  12605. freebsd-*)
  12606. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  12607. need_version=yes
  12608. ;;
  12609. esac
  12610. shlibpath_var=LD_LIBRARY_PATH
  12611. case $host_os in
  12612. freebsd2*)
  12613. shlibpath_overrides_runpath=yes
  12614. ;;
  12615. freebsd3.[01]* | freebsdelf3.[01]*)
  12616. shlibpath_overrides_runpath=yes
  12617. hardcode_into_libs=yes
  12618. ;;
  12619. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  12620. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  12621. shlibpath_overrides_runpath=no
  12622. hardcode_into_libs=yes
  12623. ;;
  12624. *) # from 4.6 on, and DragonFly
  12625. shlibpath_overrides_runpath=yes
  12626. hardcode_into_libs=yes
  12627. ;;
  12628. esac
  12629. ;;
  12630. gnu*)
  12631. version_type=linux
  12632. need_lib_prefix=no
  12633. need_version=no
  12634. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  12635. soname_spec='${libname}${release}${shared_ext}$major'
  12636. shlibpath_var=LD_LIBRARY_PATH
  12637. hardcode_into_libs=yes
  12638. ;;
  12639. hpux9* | hpux10* | hpux11*)
  12640. # Give a soname corresponding to the major version so that dld.sl refuses to
  12641. # link against other versions.
  12642. version_type=sunos
  12643. need_lib_prefix=no
  12644. need_version=no
  12645. case $host_cpu in
  12646. ia64*)
  12647. shrext_cmds='.so'
  12648. hardcode_into_libs=yes
  12649. dynamic_linker="$host_os dld.so"
  12650. shlibpath_var=LD_LIBRARY_PATH
  12651. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  12652. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12653. soname_spec='${libname}${release}${shared_ext}$major'
  12654. if test "X$HPUX_IA64_MODE" = X32; then
  12655. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  12656. else
  12657. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  12658. fi
  12659. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  12660. ;;
  12661. hppa*64*)
  12662. shrext_cmds='.sl'
  12663. hardcode_into_libs=yes
  12664. dynamic_linker="$host_os dld.sl"
  12665. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  12666. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  12667. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12668. soname_spec='${libname}${release}${shared_ext}$major'
  12669. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  12670. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  12671. ;;
  12672. *)
  12673. shrext_cmds='.sl'
  12674. dynamic_linker="$host_os dld.sl"
  12675. shlibpath_var=SHLIB_PATH
  12676. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  12677. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12678. soname_spec='${libname}${release}${shared_ext}$major'
  12679. ;;
  12680. esac
  12681. # HP-UX runs *really* slowly unless shared libraries are mode 555.
  12682. postinstall_cmds='chmod 555 $lib'
  12683. ;;
  12684. interix[3-9]*)
  12685. version_type=linux
  12686. need_lib_prefix=no
  12687. need_version=no
  12688. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  12689. soname_spec='${libname}${release}${shared_ext}$major'
  12690. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  12691. shlibpath_var=LD_LIBRARY_PATH
  12692. shlibpath_overrides_runpath=no
  12693. hardcode_into_libs=yes
  12694. ;;
  12695. irix5* | irix6* | nonstopux*)
  12696. case $host_os in
  12697. nonstopux*) version_type=nonstopux ;;
  12698. *)
  12699. if test "$lt_cv_prog_gnu_ld" = yes; then
  12700. version_type=linux
  12701. else
  12702. version_type=irix
  12703. fi ;;
  12704. esac
  12705. need_lib_prefix=no
  12706. need_version=no
  12707. soname_spec='${libname}${release}${shared_ext}$major'
  12708. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  12709. case $host_os in
  12710. irix5* | nonstopux*)
  12711. libsuff= shlibsuff=
  12712. ;;
  12713. *)
  12714. case $LD in # libtool.m4 will add one of these switches to LD
  12715. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  12716. libsuff= shlibsuff= libmagic=32-bit;;
  12717. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  12718. libsuff=32 shlibsuff=N32 libmagic=N32;;
  12719. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  12720. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  12721. *) libsuff= shlibsuff= libmagic=never-match;;
  12722. esac
  12723. ;;
  12724. esac
  12725. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  12726. shlibpath_overrides_runpath=no
  12727. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  12728. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  12729. hardcode_into_libs=yes
  12730. ;;
  12731. # No shared lib support for Linux oldld, aout, or coff.
  12732. linux*oldld* | linux*aout* | linux*coff*)
  12733. dynamic_linker=no
  12734. ;;
  12735. # This must be Linux ELF.
  12736. linux* | k*bsd*-gnu)
  12737. version_type=linux
  12738. need_lib_prefix=no
  12739. need_version=no
  12740. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12741. soname_spec='${libname}${release}${shared_ext}$major'
  12742. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  12743. shlibpath_var=LD_LIBRARY_PATH
  12744. shlibpath_overrides_runpath=no
  12745. # Some binutils ld are patched to set DT_RUNPATH
  12746. save_LDFLAGS=$LDFLAGS
  12747. save_libdir=$libdir
  12748. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
  12749. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
  12750. cat >conftest.$ac_ext <<_ACEOF
  12751. /* confdefs.h. */
  12752. _ACEOF
  12753. cat confdefs.h >>conftest.$ac_ext
  12754. cat >>conftest.$ac_ext <<_ACEOF
  12755. /* end confdefs.h. */
  12756. int
  12757. main ()
  12758. {
  12759. ;
  12760. return 0;
  12761. }
  12762. _ACEOF
  12763. rm -f conftest.$ac_objext conftest$ac_exeext
  12764. if { (ac_try="$ac_link"
  12765. case "(($ac_try" in
  12766. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12767. *) ac_try_echo=$ac_try;;
  12768. esac
  12769. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  12770. $as_echo "$ac_try_echo") >&5
  12771. (eval "$ac_link") 2>conftest.er1
  12772. ac_status=$?
  12773. grep -v '^ *+' conftest.er1 >conftest.err
  12774. rm -f conftest.er1
  12775. cat conftest.err >&5
  12776. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12777. (exit $ac_status); } && {
  12778. test -z "$ac_cxx_werror_flag" ||
  12779. test ! -s conftest.err
  12780. } && test -s conftest$ac_exeext && {
  12781. test "$cross_compiling" = yes ||
  12782. $as_test_x conftest$ac_exeext
  12783. }; then
  12784. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
  12785. shlibpath_overrides_runpath=yes
  12786. fi
  12787. else
  12788. $as_echo "$as_me: failed program was:" >&5
  12789. sed 's/^/| /' conftest.$ac_ext >&5
  12790. fi
  12791. rm -rf conftest.dSYM
  12792. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  12793. conftest$ac_exeext conftest.$ac_ext
  12794. LDFLAGS=$save_LDFLAGS
  12795. libdir=$save_libdir
  12796. # This implies no fast_install, which is unacceptable.
  12797. # Some rework will be needed to allow for fast_install
  12798. # before this can be enabled.
  12799. hardcode_into_libs=yes
  12800. # Append ld.so.conf contents to the search path
  12801. if test -f /etc/ld.so.conf; then
  12802. 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' ' '`
  12803. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  12804. fi
  12805. # We used to test for /lib/ld.so.1 and disable shared libraries on
  12806. # powerpc, because MkLinux only supported shared libraries with the
  12807. # GNU dynamic linker. Since this was broken with cross compilers,
  12808. # most powerpc-linux boxes support dynamic linking these days and
  12809. # people can always --disable-shared, the test was removed, and we
  12810. # assume the GNU/Linux dynamic linker is in use.
  12811. dynamic_linker='GNU/Linux ld.so'
  12812. ;;
  12813. netbsdelf*-gnu)
  12814. version_type=linux
  12815. need_lib_prefix=no
  12816. need_version=no
  12817. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  12818. soname_spec='${libname}${release}${shared_ext}$major'
  12819. shlibpath_var=LD_LIBRARY_PATH
  12820. shlibpath_overrides_runpath=no
  12821. hardcode_into_libs=yes
  12822. dynamic_linker='NetBSD ld.elf_so'
  12823. ;;
  12824. netbsd*)
  12825. version_type=sunos
  12826. need_lib_prefix=no
  12827. need_version=no
  12828. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  12829. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  12830. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  12831. dynamic_linker='NetBSD (a.out) ld.so'
  12832. else
  12833. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  12834. soname_spec='${libname}${release}${shared_ext}$major'
  12835. dynamic_linker='NetBSD ld.elf_so'
  12836. fi
  12837. shlibpath_var=LD_LIBRARY_PATH
  12838. shlibpath_overrides_runpath=yes
  12839. hardcode_into_libs=yes
  12840. ;;
  12841. newsos6)
  12842. version_type=linux
  12843. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12844. shlibpath_var=LD_LIBRARY_PATH
  12845. shlibpath_overrides_runpath=yes
  12846. ;;
  12847. *nto* | *qnx*)
  12848. version_type=qnx
  12849. need_lib_prefix=no
  12850. need_version=no
  12851. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12852. soname_spec='${libname}${release}${shared_ext}$major'
  12853. shlibpath_var=LD_LIBRARY_PATH
  12854. shlibpath_overrides_runpath=no
  12855. hardcode_into_libs=yes
  12856. dynamic_linker='ldqnx.so'
  12857. ;;
  12858. openbsd*)
  12859. version_type=sunos
  12860. sys_lib_dlsearch_path_spec="/usr/lib"
  12861. need_lib_prefix=no
  12862. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  12863. case $host_os in
  12864. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  12865. *) need_version=no ;;
  12866. esac
  12867. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  12868. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  12869. shlibpath_var=LD_LIBRARY_PATH
  12870. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  12871. case $host_os in
  12872. openbsd2.[89] | openbsd2.[89].*)
  12873. shlibpath_overrides_runpath=no
  12874. ;;
  12875. *)
  12876. shlibpath_overrides_runpath=yes
  12877. ;;
  12878. esac
  12879. else
  12880. shlibpath_overrides_runpath=yes
  12881. fi
  12882. ;;
  12883. os2*)
  12884. libname_spec='$name'
  12885. shrext_cmds=".dll"
  12886. need_lib_prefix=no
  12887. library_names_spec='$libname${shared_ext} $libname.a'
  12888. dynamic_linker='OS/2 ld.exe'
  12889. shlibpath_var=LIBPATH
  12890. ;;
  12891. osf3* | osf4* | osf5*)
  12892. version_type=osf
  12893. need_lib_prefix=no
  12894. need_version=no
  12895. soname_spec='${libname}${release}${shared_ext}$major'
  12896. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12897. shlibpath_var=LD_LIBRARY_PATH
  12898. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  12899. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  12900. ;;
  12901. rdos*)
  12902. dynamic_linker=no
  12903. ;;
  12904. solaris*)
  12905. version_type=linux
  12906. need_lib_prefix=no
  12907. need_version=no
  12908. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12909. soname_spec='${libname}${release}${shared_ext}$major'
  12910. shlibpath_var=LD_LIBRARY_PATH
  12911. shlibpath_overrides_runpath=yes
  12912. hardcode_into_libs=yes
  12913. # ldd complains unless libraries are executable
  12914. postinstall_cmds='chmod +x $lib'
  12915. ;;
  12916. sunos4*)
  12917. version_type=sunos
  12918. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  12919. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  12920. shlibpath_var=LD_LIBRARY_PATH
  12921. shlibpath_overrides_runpath=yes
  12922. if test "$with_gnu_ld" = yes; then
  12923. need_lib_prefix=no
  12924. fi
  12925. need_version=yes
  12926. ;;
  12927. sysv4 | sysv4.3*)
  12928. version_type=linux
  12929. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12930. soname_spec='${libname}${release}${shared_ext}$major'
  12931. shlibpath_var=LD_LIBRARY_PATH
  12932. case $host_vendor in
  12933. sni)
  12934. shlibpath_overrides_runpath=no
  12935. need_lib_prefix=no
  12936. runpath_var=LD_RUN_PATH
  12937. ;;
  12938. siemens)
  12939. need_lib_prefix=no
  12940. ;;
  12941. motorola)
  12942. need_lib_prefix=no
  12943. need_version=no
  12944. shlibpath_overrides_runpath=no
  12945. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  12946. ;;
  12947. esac
  12948. ;;
  12949. sysv4*MP*)
  12950. if test -d /usr/nec ;then
  12951. version_type=linux
  12952. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  12953. soname_spec='$libname${shared_ext}.$major'
  12954. shlibpath_var=LD_LIBRARY_PATH
  12955. fi
  12956. ;;
  12957. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  12958. version_type=freebsd-elf
  12959. need_lib_prefix=no
  12960. need_version=no
  12961. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  12962. soname_spec='${libname}${release}${shared_ext}$major'
  12963. shlibpath_var=LD_LIBRARY_PATH
  12964. shlibpath_overrides_runpath=yes
  12965. hardcode_into_libs=yes
  12966. if test "$with_gnu_ld" = yes; then
  12967. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  12968. else
  12969. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  12970. case $host_os in
  12971. sco3.2v5*)
  12972. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  12973. ;;
  12974. esac
  12975. fi
  12976. sys_lib_dlsearch_path_spec='/usr/lib'
  12977. ;;
  12978. tpf*)
  12979. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  12980. version_type=linux
  12981. need_lib_prefix=no
  12982. need_version=no
  12983. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12984. shlibpath_var=LD_LIBRARY_PATH
  12985. shlibpath_overrides_runpath=no
  12986. hardcode_into_libs=yes
  12987. ;;
  12988. uts4*)
  12989. version_type=linux
  12990. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12991. soname_spec='${libname}${release}${shared_ext}$major'
  12992. shlibpath_var=LD_LIBRARY_PATH
  12993. ;;
  12994. *)
  12995. dynamic_linker=no
  12996. ;;
  12997. esac
  12998. { $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
  12999. $as_echo "$dynamic_linker" >&6; }
  13000. test "$dynamic_linker" = no && can_build_shared=no
  13001. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  13002. if test "$GCC" = yes; then
  13003. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  13004. fi
  13005. if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  13006. sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  13007. fi
  13008. if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  13009. sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  13010. fi
  13011. { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
  13012. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  13013. hardcode_action_CXX=
  13014. if test -n "$hardcode_libdir_flag_spec_CXX" ||
  13015. test -n "$runpath_var_CXX" ||
  13016. test "X$hardcode_automatic_CXX" = "Xyes" ; then
  13017. # We can hardcode non-existent directories.
  13018. if test "$hardcode_direct_CXX" != no &&
  13019. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  13020. # have to relink, otherwise we might link with an installed library
  13021. # when we should be linking with a yet-to-be-installed one
  13022. ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
  13023. test "$hardcode_minus_L_CXX" != no; then
  13024. # Linking always hardcodes the temporary library directory.
  13025. hardcode_action_CXX=relink
  13026. else
  13027. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  13028. hardcode_action_CXX=immediate
  13029. fi
  13030. else
  13031. # We cannot hardcode anything, or else we can only hardcode existing
  13032. # directories.
  13033. hardcode_action_CXX=unsupported
  13034. fi
  13035. { $as_echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
  13036. $as_echo "$hardcode_action_CXX" >&6; }
  13037. if test "$hardcode_action_CXX" = relink ||
  13038. test "$inherit_rpath_CXX" = yes; then
  13039. # Fast installation is not supported
  13040. enable_fast_install=no
  13041. elif test "$shlibpath_overrides_runpath" = yes ||
  13042. test "$enable_shared" = no; then
  13043. # Fast installation is not necessary
  13044. enable_fast_install=needless
  13045. fi
  13046. fi # test -n "$compiler"
  13047. CC=$lt_save_CC
  13048. LDCXX=$LD
  13049. LD=$lt_save_LD
  13050. GCC=$lt_save_GCC
  13051. with_gnu_ld=$lt_save_with_gnu_ld
  13052. lt_cv_path_LDCXX=$lt_cv_path_LD
  13053. lt_cv_path_LD=$lt_save_path_LD
  13054. lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
  13055. lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
  13056. fi # test "$_lt_caught_CXX_error" != yes
  13057. ac_ext=cpp
  13058. ac_cpp='$CXXCPP $CPPFLAGS'
  13059. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  13060. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  13061. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  13062. ac_ext=c
  13063. ac_cpp='$CPP $CPPFLAGS'
  13064. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  13065. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  13066. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  13067. if test -n "$ac_tool_prefix"; then
  13068. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  13069. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  13070. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  13071. $as_echo_n "checking for $ac_word... " >&6; }
  13072. if test "${ac_cv_prog_CC+set}" = set; then
  13073. $as_echo_n "(cached) " >&6
  13074. else
  13075. if test -n "$CC"; then
  13076. ac_cv_prog_CC="$CC" # Let the user override the test.
  13077. else
  13078. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13079. for as_dir in $PATH
  13080. do
  13081. IFS=$as_save_IFS
  13082. test -z "$as_dir" && as_dir=.
  13083. for ac_exec_ext in '' $ac_executable_extensions; do
  13084. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  13085. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  13086. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  13087. break 2
  13088. fi
  13089. done
  13090. done
  13091. IFS=$as_save_IFS
  13092. fi
  13093. fi
  13094. CC=$ac_cv_prog_CC
  13095. if test -n "$CC"; then
  13096. { $as_echo "$as_me:$LINENO: result: $CC" >&5
  13097. $as_echo "$CC" >&6; }
  13098. else
  13099. { $as_echo "$as_me:$LINENO: result: no" >&5
  13100. $as_echo "no" >&6; }
  13101. fi
  13102. fi
  13103. if test -z "$ac_cv_prog_CC"; then
  13104. ac_ct_CC=$CC
  13105. # Extract the first word of "gcc", so it can be a program name with args.
  13106. set dummy gcc; ac_word=$2
  13107. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  13108. $as_echo_n "checking for $ac_word... " >&6; }
  13109. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  13110. $as_echo_n "(cached) " >&6
  13111. else
  13112. if test -n "$ac_ct_CC"; then
  13113. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  13114. else
  13115. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13116. for as_dir in $PATH
  13117. do
  13118. IFS=$as_save_IFS
  13119. test -z "$as_dir" && as_dir=.
  13120. for ac_exec_ext in '' $ac_executable_extensions; do
  13121. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  13122. ac_cv_prog_ac_ct_CC="gcc"
  13123. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  13124. break 2
  13125. fi
  13126. done
  13127. done
  13128. IFS=$as_save_IFS
  13129. fi
  13130. fi
  13131. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  13132. if test -n "$ac_ct_CC"; then
  13133. { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  13134. $as_echo "$ac_ct_CC" >&6; }
  13135. else
  13136. { $as_echo "$as_me:$LINENO: result: no" >&5
  13137. $as_echo "no" >&6; }
  13138. fi
  13139. if test "x$ac_ct_CC" = x; then
  13140. CC=""
  13141. else
  13142. case $cross_compiling:$ac_tool_warned in
  13143. yes:)
  13144. { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  13145. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  13146. ac_tool_warned=yes ;;
  13147. esac
  13148. CC=$ac_ct_CC
  13149. fi
  13150. else
  13151. CC="$ac_cv_prog_CC"
  13152. fi
  13153. if test -z "$CC"; then
  13154. if test -n "$ac_tool_prefix"; then
  13155. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  13156. set dummy ${ac_tool_prefix}cc; ac_word=$2
  13157. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  13158. $as_echo_n "checking for $ac_word... " >&6; }
  13159. if test "${ac_cv_prog_CC+set}" = set; then
  13160. $as_echo_n "(cached) " >&6
  13161. else
  13162. if test -n "$CC"; then
  13163. ac_cv_prog_CC="$CC" # Let the user override the test.
  13164. else
  13165. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13166. for as_dir in $PATH
  13167. do
  13168. IFS=$as_save_IFS
  13169. test -z "$as_dir" && as_dir=.
  13170. for ac_exec_ext in '' $ac_executable_extensions; do
  13171. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  13172. ac_cv_prog_CC="${ac_tool_prefix}cc"
  13173. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  13174. break 2
  13175. fi
  13176. done
  13177. done
  13178. IFS=$as_save_IFS
  13179. fi
  13180. fi
  13181. CC=$ac_cv_prog_CC
  13182. if test -n "$CC"; then
  13183. { $as_echo "$as_me:$LINENO: result: $CC" >&5
  13184. $as_echo "$CC" >&6; }
  13185. else
  13186. { $as_echo "$as_me:$LINENO: result: no" >&5
  13187. $as_echo "no" >&6; }
  13188. fi
  13189. fi
  13190. fi
  13191. if test -z "$CC"; then
  13192. # Extract the first word of "cc", so it can be a program name with args.
  13193. set dummy cc; ac_word=$2
  13194. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  13195. $as_echo_n "checking for $ac_word... " >&6; }
  13196. if test "${ac_cv_prog_CC+set}" = set; then
  13197. $as_echo_n "(cached) " >&6
  13198. else
  13199. if test -n "$CC"; then
  13200. ac_cv_prog_CC="$CC" # Let the user override the test.
  13201. else
  13202. ac_prog_rejected=no
  13203. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13204. for as_dir in $PATH
  13205. do
  13206. IFS=$as_save_IFS
  13207. test -z "$as_dir" && as_dir=.
  13208. for ac_exec_ext in '' $ac_executable_extensions; do
  13209. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  13210. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  13211. ac_prog_rejected=yes
  13212. continue
  13213. fi
  13214. ac_cv_prog_CC="cc"
  13215. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  13216. break 2
  13217. fi
  13218. done
  13219. done
  13220. IFS=$as_save_IFS
  13221. if test $ac_prog_rejected = yes; then
  13222. # We found a bogon in the path, so make sure we never use it.
  13223. set dummy $ac_cv_prog_CC
  13224. shift
  13225. if test $# != 0; then
  13226. # We chose a different compiler from the bogus one.
  13227. # However, it has the same basename, so the bogon will be chosen
  13228. # first if we set CC to just the basename; use the full file name.
  13229. shift
  13230. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  13231. fi
  13232. fi
  13233. fi
  13234. fi
  13235. CC=$ac_cv_prog_CC
  13236. if test -n "$CC"; then
  13237. { $as_echo "$as_me:$LINENO: result: $CC" >&5
  13238. $as_echo "$CC" >&6; }
  13239. else
  13240. { $as_echo "$as_me:$LINENO: result: no" >&5
  13241. $as_echo "no" >&6; }
  13242. fi
  13243. fi
  13244. if test -z "$CC"; then
  13245. if test -n "$ac_tool_prefix"; then
  13246. for ac_prog in cl.exe
  13247. do
  13248. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  13249. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  13250. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  13251. $as_echo_n "checking for $ac_word... " >&6; }
  13252. if test "${ac_cv_prog_CC+set}" = set; then
  13253. $as_echo_n "(cached) " >&6
  13254. else
  13255. if test -n "$CC"; then
  13256. ac_cv_prog_CC="$CC" # Let the user override the test.
  13257. else
  13258. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13259. for as_dir in $PATH
  13260. do
  13261. IFS=$as_save_IFS
  13262. test -z "$as_dir" && as_dir=.
  13263. for ac_exec_ext in '' $ac_executable_extensions; do
  13264. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  13265. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  13266. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  13267. break 2
  13268. fi
  13269. done
  13270. done
  13271. IFS=$as_save_IFS
  13272. fi
  13273. fi
  13274. CC=$ac_cv_prog_CC
  13275. if test -n "$CC"; then
  13276. { $as_echo "$as_me:$LINENO: result: $CC" >&5
  13277. $as_echo "$CC" >&6; }
  13278. else
  13279. { $as_echo "$as_me:$LINENO: result: no" >&5
  13280. $as_echo "no" >&6; }
  13281. fi
  13282. test -n "$CC" && break
  13283. done
  13284. fi
  13285. if test -z "$CC"; then
  13286. ac_ct_CC=$CC
  13287. for ac_prog in cl.exe
  13288. do
  13289. # Extract the first word of "$ac_prog", so it can be a program name with args.
  13290. set dummy $ac_prog; ac_word=$2
  13291. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  13292. $as_echo_n "checking for $ac_word... " >&6; }
  13293. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  13294. $as_echo_n "(cached) " >&6
  13295. else
  13296. if test -n "$ac_ct_CC"; then
  13297. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  13298. else
  13299. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13300. for as_dir in $PATH
  13301. do
  13302. IFS=$as_save_IFS
  13303. test -z "$as_dir" && as_dir=.
  13304. for ac_exec_ext in '' $ac_executable_extensions; do
  13305. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  13306. ac_cv_prog_ac_ct_CC="$ac_prog"
  13307. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  13308. break 2
  13309. fi
  13310. done
  13311. done
  13312. IFS=$as_save_IFS
  13313. fi
  13314. fi
  13315. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  13316. if test -n "$ac_ct_CC"; then
  13317. { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  13318. $as_echo "$ac_ct_CC" >&6; }
  13319. else
  13320. { $as_echo "$as_me:$LINENO: result: no" >&5
  13321. $as_echo "no" >&6; }
  13322. fi
  13323. test -n "$ac_ct_CC" && break
  13324. done
  13325. if test "x$ac_ct_CC" = x; then
  13326. CC=""
  13327. else
  13328. case $cross_compiling:$ac_tool_warned in
  13329. yes:)
  13330. { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  13331. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  13332. ac_tool_warned=yes ;;
  13333. esac
  13334. CC=$ac_ct_CC
  13335. fi
  13336. fi
  13337. fi
  13338. test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  13339. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  13340. { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
  13341. See \`config.log' for more details." >&5
  13342. $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
  13343. See \`config.log' for more details." >&2;}
  13344. { (exit 1); exit 1; }; }; }
  13345. # Provide some information about the compiler.
  13346. $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
  13347. set X $ac_compile
  13348. ac_compiler=$2
  13349. { (ac_try="$ac_compiler --version >&5"
  13350. case "(($ac_try" in
  13351. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13352. *) ac_try_echo=$ac_try;;
  13353. esac
  13354. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  13355. $as_echo "$ac_try_echo") >&5
  13356. (eval "$ac_compiler --version >&5") 2>&5
  13357. ac_status=$?
  13358. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13359. (exit $ac_status); }
  13360. { (ac_try="$ac_compiler -v >&5"
  13361. case "(($ac_try" in
  13362. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13363. *) ac_try_echo=$ac_try;;
  13364. esac
  13365. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  13366. $as_echo "$ac_try_echo") >&5
  13367. (eval "$ac_compiler -v >&5") 2>&5
  13368. ac_status=$?
  13369. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13370. (exit $ac_status); }
  13371. { (ac_try="$ac_compiler -V >&5"
  13372. case "(($ac_try" in
  13373. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13374. *) ac_try_echo=$ac_try;;
  13375. esac
  13376. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  13377. $as_echo "$ac_try_echo") >&5
  13378. (eval "$ac_compiler -V >&5") 2>&5
  13379. ac_status=$?
  13380. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13381. (exit $ac_status); }
  13382. { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
  13383. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  13384. if test "${ac_cv_c_compiler_gnu+set}" = set; then
  13385. $as_echo_n "(cached) " >&6
  13386. else
  13387. cat >conftest.$ac_ext <<_ACEOF
  13388. /* confdefs.h. */
  13389. _ACEOF
  13390. cat confdefs.h >>conftest.$ac_ext
  13391. cat >>conftest.$ac_ext <<_ACEOF
  13392. /* end confdefs.h. */
  13393. int
  13394. main ()
  13395. {
  13396. #ifndef __GNUC__
  13397. choke me
  13398. #endif
  13399. ;
  13400. return 0;
  13401. }
  13402. _ACEOF
  13403. rm -f conftest.$ac_objext
  13404. if { (ac_try="$ac_compile"
  13405. case "(($ac_try" in
  13406. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13407. *) ac_try_echo=$ac_try;;
  13408. esac
  13409. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  13410. $as_echo "$ac_try_echo") >&5
  13411. (eval "$ac_compile") 2>conftest.er1
  13412. ac_status=$?
  13413. grep -v '^ *+' conftest.er1 >conftest.err
  13414. rm -f conftest.er1
  13415. cat conftest.err >&5
  13416. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13417. (exit $ac_status); } && {
  13418. test -z "$ac_c_werror_flag" ||
  13419. test ! -s conftest.err
  13420. } && test -s conftest.$ac_objext; then
  13421. ac_compiler_gnu=yes
  13422. else
  13423. $as_echo "$as_me: failed program was:" >&5
  13424. sed 's/^/| /' conftest.$ac_ext >&5
  13425. ac_compiler_gnu=no
  13426. fi
  13427. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13428. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  13429. fi
  13430. { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
  13431. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  13432. if test $ac_compiler_gnu = yes; then
  13433. GCC=yes
  13434. else
  13435. GCC=
  13436. fi
  13437. ac_test_CFLAGS=${CFLAGS+set}
  13438. ac_save_CFLAGS=$CFLAGS
  13439. { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
  13440. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  13441. if test "${ac_cv_prog_cc_g+set}" = set; then
  13442. $as_echo_n "(cached) " >&6
  13443. else
  13444. ac_save_c_werror_flag=$ac_c_werror_flag
  13445. ac_c_werror_flag=yes
  13446. ac_cv_prog_cc_g=no
  13447. CFLAGS="-g"
  13448. cat >conftest.$ac_ext <<_ACEOF
  13449. /* confdefs.h. */
  13450. _ACEOF
  13451. cat confdefs.h >>conftest.$ac_ext
  13452. cat >>conftest.$ac_ext <<_ACEOF
  13453. /* end confdefs.h. */
  13454. int
  13455. main ()
  13456. {
  13457. ;
  13458. return 0;
  13459. }
  13460. _ACEOF
  13461. rm -f conftest.$ac_objext
  13462. if { (ac_try="$ac_compile"
  13463. case "(($ac_try" in
  13464. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13465. *) ac_try_echo=$ac_try;;
  13466. esac
  13467. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  13468. $as_echo "$ac_try_echo") >&5
  13469. (eval "$ac_compile") 2>conftest.er1
  13470. ac_status=$?
  13471. grep -v '^ *+' conftest.er1 >conftest.err
  13472. rm -f conftest.er1
  13473. cat conftest.err >&5
  13474. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13475. (exit $ac_status); } && {
  13476. test -z "$ac_c_werror_flag" ||
  13477. test ! -s conftest.err
  13478. } && test -s conftest.$ac_objext; then
  13479. ac_cv_prog_cc_g=yes
  13480. else
  13481. $as_echo "$as_me: failed program was:" >&5
  13482. sed 's/^/| /' conftest.$ac_ext >&5
  13483. CFLAGS=""
  13484. cat >conftest.$ac_ext <<_ACEOF
  13485. /* confdefs.h. */
  13486. _ACEOF
  13487. cat confdefs.h >>conftest.$ac_ext
  13488. cat >>conftest.$ac_ext <<_ACEOF
  13489. /* end confdefs.h. */
  13490. int
  13491. main ()
  13492. {
  13493. ;
  13494. return 0;
  13495. }
  13496. _ACEOF
  13497. rm -f conftest.$ac_objext
  13498. if { (ac_try="$ac_compile"
  13499. case "(($ac_try" in
  13500. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13501. *) ac_try_echo=$ac_try;;
  13502. esac
  13503. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  13504. $as_echo "$ac_try_echo") >&5
  13505. (eval "$ac_compile") 2>conftest.er1
  13506. ac_status=$?
  13507. grep -v '^ *+' conftest.er1 >conftest.err
  13508. rm -f conftest.er1
  13509. cat conftest.err >&5
  13510. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13511. (exit $ac_status); } && {
  13512. test -z "$ac_c_werror_flag" ||
  13513. test ! -s conftest.err
  13514. } && test -s conftest.$ac_objext; then
  13515. :
  13516. else
  13517. $as_echo "$as_me: failed program was:" >&5
  13518. sed 's/^/| /' conftest.$ac_ext >&5
  13519. ac_c_werror_flag=$ac_save_c_werror_flag
  13520. CFLAGS="-g"
  13521. cat >conftest.$ac_ext <<_ACEOF
  13522. /* confdefs.h. */
  13523. _ACEOF
  13524. cat confdefs.h >>conftest.$ac_ext
  13525. cat >>conftest.$ac_ext <<_ACEOF
  13526. /* end confdefs.h. */
  13527. int
  13528. main ()
  13529. {
  13530. ;
  13531. return 0;
  13532. }
  13533. _ACEOF
  13534. rm -f conftest.$ac_objext
  13535. if { (ac_try="$ac_compile"
  13536. case "(($ac_try" in
  13537. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13538. *) ac_try_echo=$ac_try;;
  13539. esac
  13540. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  13541. $as_echo "$ac_try_echo") >&5
  13542. (eval "$ac_compile") 2>conftest.er1
  13543. ac_status=$?
  13544. grep -v '^ *+' conftest.er1 >conftest.err
  13545. rm -f conftest.er1
  13546. cat conftest.err >&5
  13547. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13548. (exit $ac_status); } && {
  13549. test -z "$ac_c_werror_flag" ||
  13550. test ! -s conftest.err
  13551. } && test -s conftest.$ac_objext; then
  13552. ac_cv_prog_cc_g=yes
  13553. else
  13554. $as_echo "$as_me: failed program was:" >&5
  13555. sed 's/^/| /' conftest.$ac_ext >&5
  13556. fi
  13557. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13558. fi
  13559. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13560. fi
  13561. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13562. ac_c_werror_flag=$ac_save_c_werror_flag
  13563. fi
  13564. { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
  13565. $as_echo "$ac_cv_prog_cc_g" >&6; }
  13566. if test "$ac_test_CFLAGS" = set; then
  13567. CFLAGS=$ac_save_CFLAGS
  13568. elif test $ac_cv_prog_cc_g = yes; then
  13569. if test "$GCC" = yes; then
  13570. CFLAGS="-g -O2"
  13571. else
  13572. CFLAGS="-g"
  13573. fi
  13574. else
  13575. if test "$GCC" = yes; then
  13576. CFLAGS="-O2"
  13577. else
  13578. CFLAGS=
  13579. fi
  13580. fi
  13581. { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
  13582. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  13583. if test "${ac_cv_prog_cc_c89+set}" = set; then
  13584. $as_echo_n "(cached) " >&6
  13585. else
  13586. ac_cv_prog_cc_c89=no
  13587. ac_save_CC=$CC
  13588. cat >conftest.$ac_ext <<_ACEOF
  13589. /* confdefs.h. */
  13590. _ACEOF
  13591. cat confdefs.h >>conftest.$ac_ext
  13592. cat >>conftest.$ac_ext <<_ACEOF
  13593. /* end confdefs.h. */
  13594. #include <stdarg.h>
  13595. #include <stdio.h>
  13596. #include <sys/types.h>
  13597. #include <sys/stat.h>
  13598. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  13599. struct buf { int x; };
  13600. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  13601. static char *e (p, i)
  13602. char **p;
  13603. int i;
  13604. {
  13605. return p[i];
  13606. }
  13607. static char *f (char * (*g) (char **, int), char **p, ...)
  13608. {
  13609. char *s;
  13610. va_list v;
  13611. va_start (v,p);
  13612. s = g (p, va_arg (v,int));
  13613. va_end (v);
  13614. return s;
  13615. }
  13616. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  13617. function prototypes and stuff, but not '\xHH' hex character constants.
  13618. These don't provoke an error unfortunately, instead are silently treated
  13619. as 'x'. The following induces an error, until -std is added to get
  13620. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  13621. array size at least. It's necessary to write '\x00'==0 to get something
  13622. that's true only with -std. */
  13623. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  13624. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  13625. inside strings and character constants. */
  13626. #define FOO(x) 'x'
  13627. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  13628. int test (int i, double x);
  13629. struct s1 {int (*f) (int a);};
  13630. struct s2 {int (*f) (double a);};
  13631. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  13632. int argc;
  13633. char **argv;
  13634. int
  13635. main ()
  13636. {
  13637. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  13638. ;
  13639. return 0;
  13640. }
  13641. _ACEOF
  13642. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  13643. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  13644. do
  13645. CC="$ac_save_CC $ac_arg"
  13646. rm -f conftest.$ac_objext
  13647. if { (ac_try="$ac_compile"
  13648. case "(($ac_try" in
  13649. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13650. *) ac_try_echo=$ac_try;;
  13651. esac
  13652. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  13653. $as_echo "$ac_try_echo") >&5
  13654. (eval "$ac_compile") 2>conftest.er1
  13655. ac_status=$?
  13656. grep -v '^ *+' conftest.er1 >conftest.err
  13657. rm -f conftest.er1
  13658. cat conftest.err >&5
  13659. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13660. (exit $ac_status); } && {
  13661. test -z "$ac_c_werror_flag" ||
  13662. test ! -s conftest.err
  13663. } && test -s conftest.$ac_objext; then
  13664. ac_cv_prog_cc_c89=$ac_arg
  13665. else
  13666. $as_echo "$as_me: failed program was:" >&5
  13667. sed 's/^/| /' conftest.$ac_ext >&5
  13668. fi
  13669. rm -f core conftest.err conftest.$ac_objext
  13670. test "x$ac_cv_prog_cc_c89" != "xno" && break
  13671. done
  13672. rm -f conftest.$ac_ext
  13673. CC=$ac_save_CC
  13674. fi
  13675. # AC_CACHE_VAL
  13676. case "x$ac_cv_prog_cc_c89" in
  13677. x)
  13678. { $as_echo "$as_me:$LINENO: result: none needed" >&5
  13679. $as_echo "none needed" >&6; } ;;
  13680. xno)
  13681. { $as_echo "$as_me:$LINENO: result: unsupported" >&5
  13682. $as_echo "unsupported" >&6; } ;;
  13683. *)
  13684. CC="$CC $ac_cv_prog_cc_c89"
  13685. { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
  13686. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  13687. esac
  13688. ac_ext=cpp
  13689. ac_cpp='$CXXCPP $CPPFLAGS'
  13690. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  13691. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  13692. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  13693. depcc="$CC" am_compiler_list=
  13694. { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
  13695. $as_echo_n "checking dependency style of $depcc... " >&6; }
  13696. if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
  13697. $as_echo_n "(cached) " >&6
  13698. else
  13699. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  13700. # We make a subdir and do the tests there. Otherwise we can end up
  13701. # making bogus files that we don't know about and never remove. For
  13702. # instance it was reported that on HP-UX the gcc test will end up
  13703. # making a dummy file named `D' -- because `-MD' means `put the output
  13704. # in D'.
  13705. mkdir conftest.dir
  13706. # Copy depcomp to subdir because otherwise we won't find it if we're
  13707. # using a relative directory.
  13708. cp "$am_depcomp" conftest.dir
  13709. cd conftest.dir
  13710. # We will build objects and dependencies in a subdirectory because
  13711. # it helps to detect inapplicable dependency modes. For instance
  13712. # both Tru64's cc and ICC support -MD to output dependencies as a
  13713. # side effect of compilation, but ICC will put the dependencies in
  13714. # the current directory while Tru64 will put them in the object
  13715. # directory.
  13716. mkdir sub
  13717. am_cv_CC_dependencies_compiler_type=none
  13718. if test "$am_compiler_list" = ""; then
  13719. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  13720. fi
  13721. for depmode in $am_compiler_list; do
  13722. # Setup a source with many dependencies, because some compilers
  13723. # like to wrap large dependency lists on column 80 (with \), and
  13724. # we should not choose a depcomp mode which is confused by this.
  13725. #
  13726. # We need to recreate these files for each test, as the compiler may
  13727. # overwrite some of them when testing with obscure command lines.
  13728. # This happens at least with the AIX C compiler.
  13729. : > sub/conftest.c
  13730. for i in 1 2 3 4 5 6; do
  13731. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  13732. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  13733. # Solaris 8's {/usr,}/bin/sh.
  13734. touch sub/conftst$i.h
  13735. done
  13736. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  13737. case $depmode in
  13738. nosideeffect)
  13739. # after this tag, mechanisms are not by side-effect, so they'll
  13740. # only be used when explicitly requested
  13741. if test "x$enable_dependency_tracking" = xyes; then
  13742. continue
  13743. else
  13744. break
  13745. fi
  13746. ;;
  13747. none) break ;;
  13748. esac
  13749. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  13750. # mode. It turns out that the SunPro C++ compiler does not properly
  13751. # handle `-M -o', and we need to detect this.
  13752. if depmode=$depmode \
  13753. source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
  13754. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  13755. $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
  13756. >/dev/null 2>conftest.err &&
  13757. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  13758. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  13759. grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
  13760. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  13761. # icc doesn't choke on unknown options, it will just issue warnings
  13762. # or remarks (even with -Werror). So we grep stderr for any message
  13763. # that says an option was ignored or not supported.
  13764. # When given -MP, icc 7.0 and 7.1 complain thusly:
  13765. # icc: Command line warning: ignoring option '-M'; no argument required
  13766. # The diagnosis changed in icc 8.0:
  13767. # icc: Command line remark: option '-MP' not supported
  13768. if (grep 'ignoring option' conftest.err ||
  13769. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  13770. am_cv_CC_dependencies_compiler_type=$depmode
  13771. break
  13772. fi
  13773. fi
  13774. done
  13775. cd ..
  13776. rm -rf conftest.dir
  13777. else
  13778. am_cv_CC_dependencies_compiler_type=none
  13779. fi
  13780. fi
  13781. { $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
  13782. $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
  13783. CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  13784. if
  13785. test "x$enable_dependency_tracking" != xno \
  13786. && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  13787. am__fastdepCC_TRUE=
  13788. am__fastdepCC_FALSE='#'
  13789. else
  13790. am__fastdepCC_TRUE='#'
  13791. am__fastdepCC_FALSE=
  13792. fi
  13793. # Find a good install program. We prefer a C program (faster),
  13794. # so one script is as good as another. But avoid the broken or
  13795. # incompatible versions:
  13796. # SysV /etc/install, /usr/sbin/install
  13797. # SunOS /usr/etc/install
  13798. # IRIX /sbin/install
  13799. # AIX /bin/install
  13800. # AmigaOS /C/install, which installs bootblocks on floppy discs
  13801. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  13802. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  13803. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  13804. # OS/2's system install, which has a completely different semantic
  13805. # ./install, which can be erroneously created by make from ./install.sh.
  13806. # Reject install programs that cannot install multiple files.
  13807. { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
  13808. $as_echo_n "checking for a BSD-compatible install... " >&6; }
  13809. if test -z "$INSTALL"; then
  13810. if test "${ac_cv_path_install+set}" = set; then
  13811. $as_echo_n "(cached) " >&6
  13812. else
  13813. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13814. for as_dir in $PATH
  13815. do
  13816. IFS=$as_save_IFS
  13817. test -z "$as_dir" && as_dir=.
  13818. # Account for people who put trailing slashes in PATH elements.
  13819. case $as_dir/ in
  13820. ./ | .// | /cC/* | \
  13821. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  13822. ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
  13823. /usr/ucb/* ) ;;
  13824. *)
  13825. # OSF1 and SCO ODT 3.0 have their own names for install.
  13826. # Don't use installbsd from OSF since it installs stuff as root
  13827. # by default.
  13828. for ac_prog in ginstall scoinst install; do
  13829. for ac_exec_ext in '' $ac_executable_extensions; do
  13830. if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
  13831. if test $ac_prog = install &&
  13832. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  13833. # AIX install. It has an incompatible calling convention.
  13834. :
  13835. elif test $ac_prog = install &&
  13836. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  13837. # program-specific install script used by HP pwplus--don't use.
  13838. :
  13839. else
  13840. rm -rf conftest.one conftest.two conftest.dir
  13841. echo one > conftest.one
  13842. echo two > conftest.two
  13843. mkdir conftest.dir
  13844. if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
  13845. test -s conftest.one && test -s conftest.two &&
  13846. test -s conftest.dir/conftest.one &&
  13847. test -s conftest.dir/conftest.two
  13848. then
  13849. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  13850. break 3
  13851. fi
  13852. fi
  13853. fi
  13854. done
  13855. done
  13856. ;;
  13857. esac
  13858. done
  13859. IFS=$as_save_IFS
  13860. rm -rf conftest.one conftest.two conftest.dir
  13861. fi
  13862. if test "${ac_cv_path_install+set}" = set; then
  13863. INSTALL=$ac_cv_path_install
  13864. else
  13865. # As a last resort, use the slow shell script. Don't cache a
  13866. # value for INSTALL within a source directory, because that will
  13867. # break other packages using the cache if that directory is
  13868. # removed, or if the value is a relative name.
  13869. INSTALL=$ac_install_sh
  13870. fi
  13871. fi
  13872. { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
  13873. $as_echo "$INSTALL" >&6; }
  13874. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  13875. # It thinks the first close brace ends the variable substitution.
  13876. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  13877. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  13878. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  13879. { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  13880. $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  13881. set x ${MAKE-make}
  13882. ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  13883. if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
  13884. $as_echo_n "(cached) " >&6
  13885. else
  13886. cat >conftest.make <<\_ACEOF
  13887. SHELL = /bin/sh
  13888. all:
  13889. @echo '@@@%%%=$(MAKE)=@@@%%%'
  13890. _ACEOF
  13891. # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
  13892. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  13893. *@@@%%%=?*=@@@%%%*)
  13894. eval ac_cv_prog_make_${ac_make}_set=yes;;
  13895. *)
  13896. eval ac_cv_prog_make_${ac_make}_set=no;;
  13897. esac
  13898. rm -f conftest.make
  13899. fi
  13900. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  13901. { $as_echo "$as_me:$LINENO: result: yes" >&5
  13902. $as_echo "yes" >&6; }
  13903. SET_MAKE=
  13904. else
  13905. { $as_echo "$as_me:$LINENO: result: no" >&5
  13906. $as_echo "no" >&6; }
  13907. SET_MAKE="MAKE=${MAKE-make}"
  13908. fi
  13909. # Extract the first word of "curl", so it can be a program name with args.
  13910. set dummy curl; ac_word=$2
  13911. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  13912. $as_echo_n "checking for $ac_word... " >&6; }
  13913. if test "${ac_cv_prog_haveCURL+set}" = set; then
  13914. $as_echo_n "(cached) " >&6
  13915. else
  13916. if test -n "$haveCURL"; then
  13917. ac_cv_prog_haveCURL="$haveCURL" # Let the user override the test.
  13918. else
  13919. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13920. for as_dir in $PATH
  13921. do
  13922. IFS=$as_save_IFS
  13923. test -z "$as_dir" && as_dir=.
  13924. for ac_exec_ext in '' $ac_executable_extensions; do
  13925. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  13926. ac_cv_prog_haveCURL="true"
  13927. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  13928. break 2
  13929. fi
  13930. done
  13931. done
  13932. IFS=$as_save_IFS
  13933. test -z "$ac_cv_prog_haveCURL" && ac_cv_prog_haveCURL="false"
  13934. fi
  13935. fi
  13936. haveCURL=$ac_cv_prog_haveCURL
  13937. if test -n "$haveCURL"; then
  13938. { $as_echo "$as_me:$LINENO: result: $haveCURL" >&5
  13939. $as_echo "$haveCURL" >&6; }
  13940. else
  13941. { $as_echo "$as_me:$LINENO: result: no" >&5
  13942. $as_echo "no" >&6; }
  13943. fi
  13944. if [ $haveCURL == "false" ]
  13945. then
  13946. { { $as_echo "$as_me:$LINENO: error: The CURL program was not found" >&5
  13947. $as_echo "$as_me: error: The CURL program was not found" >&2;}
  13948. { (exit 1); exit 1; }; };
  13949. fi
  13950. # Check whether --enable-for-package was given.
  13951. if test "${enable_for_package+set}" = set; then
  13952. enableval=$enable_for_package; FOR_PACKAGE="${enableval}"
  13953. fi
  13954. if test x$FOR_PACKAGE = xyes; then
  13955. ForPackage_TRUE=
  13956. ForPackage_FALSE='#'
  13957. else
  13958. ForPackage_TRUE='#'
  13959. ForPackage_FALSE=
  13960. fi
  13961. { $as_echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
  13962. $as_echo_n "checking for pthread_create in -lpthread... " >&6; }
  13963. if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
  13964. $as_echo_n "(cached) " >&6
  13965. else
  13966. ac_check_lib_save_LIBS=$LIBS
  13967. LIBS="-lpthread $LIBS"
  13968. cat >conftest.$ac_ext <<_ACEOF
  13969. /* confdefs.h. */
  13970. _ACEOF
  13971. cat confdefs.h >>conftest.$ac_ext
  13972. cat >>conftest.$ac_ext <<_ACEOF
  13973. /* end confdefs.h. */
  13974. /* Override any GCC internal prototype to avoid an error.
  13975. Use char because int might match the return type of a GCC
  13976. builtin and then its argument prototype would still apply. */
  13977. #ifdef __cplusplus
  13978. extern "C"
  13979. #endif
  13980. char pthread_create ();
  13981. int
  13982. main ()
  13983. {
  13984. return pthread_create ();
  13985. ;
  13986. return 0;
  13987. }
  13988. _ACEOF
  13989. rm -f conftest.$ac_objext conftest$ac_exeext
  13990. if { (ac_try="$ac_link"
  13991. case "(($ac_try" in
  13992. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13993. *) ac_try_echo=$ac_try;;
  13994. esac
  13995. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  13996. $as_echo "$ac_try_echo") >&5
  13997. (eval "$ac_link") 2>conftest.er1
  13998. ac_status=$?
  13999. grep -v '^ *+' conftest.er1 >conftest.err
  14000. rm -f conftest.er1
  14001. cat conftest.err >&5
  14002. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14003. (exit $ac_status); } && {
  14004. test -z "$ac_cxx_werror_flag" ||
  14005. test ! -s conftest.err
  14006. } && test -s conftest$ac_exeext && {
  14007. test "$cross_compiling" = yes ||
  14008. $as_test_x conftest$ac_exeext
  14009. }; then
  14010. ac_cv_lib_pthread_pthread_create=yes
  14011. else
  14012. $as_echo "$as_me: failed program was:" >&5
  14013. sed 's/^/| /' conftest.$ac_ext >&5
  14014. ac_cv_lib_pthread_pthread_create=no
  14015. fi
  14016. rm -rf conftest.dSYM
  14017. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  14018. conftest$ac_exeext conftest.$ac_ext
  14019. LIBS=$ac_check_lib_save_LIBS
  14020. fi
  14021. { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
  14022. $as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
  14023. if test "x$ac_cv_lib_pthread_pthread_create" = x""yes; then
  14024. cat >>confdefs.h <<_ACEOF
  14025. #define HAVE_LIBPTHREAD 1
  14026. _ACEOF
  14027. LIBS="-lpthread $LIBS"
  14028. else
  14029. { { $as_echo "$as_me:$LINENO: error: libpthread is required to build snf4cgp" >&5
  14030. $as_echo "$as_me: error: libpthread is required to build snf4cgp" >&2;}
  14031. { (exit 1); exit 1; }; }
  14032. fi
  14033. OTHER_CXXFLAGS='-O3'
  14034. SNF_CXXFLAGS='$(OTHER_CXXFLAGS) -pthread'
  14035. SNF_LIBS=''
  14036. ac_config_files="$ac_config_files Makefile CodeDweller/Makefile SNFMulti/Makefile SNF4CGP/Makefile SNF2Check/Makefile SNFClient/Makefile Scripts/Makefile Doc/Makefile config_files/Makefile"
  14037. cat >confcache <<\_ACEOF
  14038. # This file is a shell script that caches the results of configure
  14039. # tests run on this system so they can be shared between configure
  14040. # scripts and configure runs, see configure's option --config-cache.
  14041. # It is not useful on other systems. If it contains results you don't
  14042. # want to keep, you may remove or edit it.
  14043. #
  14044. # config.status only pays attention to the cache file if you give it
  14045. # the --recheck option to rerun configure.
  14046. #
  14047. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  14048. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  14049. # following values.
  14050. _ACEOF
  14051. # The following way of writing the cache mishandles newlines in values,
  14052. # but we know of no workaround that is simple, portable, and efficient.
  14053. # So, we kill variables containing newlines.
  14054. # Ultrix sh set writes to stderr and can't be redirected directly,
  14055. # and sets the high bit in the cache file unless we assign to the vars.
  14056. (
  14057. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  14058. eval ac_val=\$$ac_var
  14059. case $ac_val in #(
  14060. *${as_nl}*)
  14061. case $ac_var in #(
  14062. *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
  14063. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  14064. esac
  14065. case $ac_var in #(
  14066. _ | IFS | as_nl) ;; #(
  14067. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  14068. *) $as_unset $ac_var ;;
  14069. esac ;;
  14070. esac
  14071. done
  14072. (set) 2>&1 |
  14073. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  14074. *${as_nl}ac_space=\ *)
  14075. # `set' does not quote correctly, so add quotes (double-quote
  14076. # substitution turns \\\\ into \\, and sed turns \\ into \).
  14077. sed -n \
  14078. "s/'/'\\\\''/g;
  14079. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  14080. ;; #(
  14081. *)
  14082. # `set' quotes correctly as required by POSIX, so do not add quotes.
  14083. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  14084. ;;
  14085. esac |
  14086. sort
  14087. ) |
  14088. sed '
  14089. /^ac_cv_env_/b end
  14090. t clear
  14091. :clear
  14092. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  14093. t end
  14094. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  14095. :end' >>confcache
  14096. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  14097. if test -w "$cache_file"; then
  14098. test "x$cache_file" != "x/dev/null" &&
  14099. { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
  14100. $as_echo "$as_me: updating cache $cache_file" >&6;}
  14101. cat confcache >$cache_file
  14102. else
  14103. { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
  14104. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  14105. fi
  14106. fi
  14107. rm -f confcache
  14108. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  14109. # Let make expand exec_prefix.
  14110. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  14111. DEFS=-DHAVE_CONFIG_H
  14112. ac_libobjs=
  14113. ac_ltlibobjs=
  14114. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  14115. # 1. Remove the extension, and $U if already installed.
  14116. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  14117. ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  14118. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  14119. # will be set to the directory where LIBOBJS objects are built.
  14120. ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  14121. ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
  14122. done
  14123. LIBOBJS=$ac_libobjs
  14124. LTLIBOBJS=$ac_ltlibobjs
  14125. if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
  14126. { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
  14127. Usually this means the macro was only invoked conditionally." >&5
  14128. $as_echo "$as_me: error: conditional \"AMDEP\" was never defined.
  14129. Usually this means the macro was only invoked conditionally." >&2;}
  14130. { (exit 1); exit 1; }; }
  14131. fi
  14132. if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  14133. { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
  14134. Usually this means the macro was only invoked conditionally." >&5
  14135. $as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
  14136. Usually this means the macro was only invoked conditionally." >&2;}
  14137. { (exit 1); exit 1; }; }
  14138. fi
  14139. if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
  14140. { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
  14141. Usually this means the macro was only invoked conditionally." >&5
  14142. $as_echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
  14143. Usually this means the macro was only invoked conditionally." >&2;}
  14144. { (exit 1); exit 1; }; }
  14145. fi
  14146. if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
  14147. { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
  14148. Usually this means the macro was only invoked conditionally." >&5
  14149. $as_echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
  14150. Usually this means the macro was only invoked conditionally." >&2;}
  14151. { (exit 1); exit 1; }; }
  14152. fi
  14153. if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  14154. { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
  14155. Usually this means the macro was only invoked conditionally." >&5
  14156. $as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
  14157. Usually this means the macro was only invoked conditionally." >&2;}
  14158. { (exit 1); exit 1; }; }
  14159. fi
  14160. if test -z "${ForPackage_TRUE}" && test -z "${ForPackage_FALSE}"; then
  14161. { { $as_echo "$as_me:$LINENO: error: conditional \"ForPackage\" was never defined.
  14162. Usually this means the macro was only invoked conditionally." >&5
  14163. $as_echo "$as_me: error: conditional \"ForPackage\" was never defined.
  14164. Usually this means the macro was only invoked conditionally." >&2;}
  14165. { (exit 1); exit 1; }; }
  14166. fi
  14167. : ${CONFIG_STATUS=./config.status}
  14168. ac_write_fail=0
  14169. ac_clean_files_save=$ac_clean_files
  14170. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  14171. { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
  14172. $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  14173. cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  14174. #! $SHELL
  14175. # Generated by $as_me.
  14176. # Run this file to recreate the current configuration.
  14177. # Compiler output produced by configure, useful for debugging
  14178. # configure, is in config.log if it exists.
  14179. debug=false
  14180. ac_cs_recheck=false
  14181. ac_cs_silent=false
  14182. SHELL=\${CONFIG_SHELL-$SHELL}
  14183. _ACEOF
  14184. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14185. ## --------------------- ##
  14186. ## M4sh Initialization. ##
  14187. ## --------------------- ##
  14188. # Be more Bourne compatible
  14189. DUALCASE=1; export DUALCASE # for MKS sh
  14190. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  14191. emulate sh
  14192. NULLCMD=:
  14193. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  14194. # is contrary to our usage. Disable this feature.
  14195. alias -g '${1+"$@"}'='"$@"'
  14196. setopt NO_GLOB_SUBST
  14197. else
  14198. case `(set -o) 2>/dev/null` in
  14199. *posix*) set -o posix ;;
  14200. esac
  14201. fi
  14202. # PATH needs CR
  14203. # Avoid depending upon Character Ranges.
  14204. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  14205. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  14206. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  14207. as_cr_digits='0123456789'
  14208. as_cr_alnum=$as_cr_Letters$as_cr_digits
  14209. as_nl='
  14210. '
  14211. export as_nl
  14212. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  14213. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  14214. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  14215. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  14216. if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  14217. as_echo='printf %s\n'
  14218. as_echo_n='printf %s'
  14219. else
  14220. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  14221. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  14222. as_echo_n='/usr/ucb/echo -n'
  14223. else
  14224. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  14225. as_echo_n_body='eval
  14226. arg=$1;
  14227. case $arg in
  14228. *"$as_nl"*)
  14229. expr "X$arg" : "X\\(.*\\)$as_nl";
  14230. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  14231. esac;
  14232. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  14233. '
  14234. export as_echo_n_body
  14235. as_echo_n='sh -c $as_echo_n_body as_echo'
  14236. fi
  14237. export as_echo_body
  14238. as_echo='sh -c $as_echo_body as_echo'
  14239. fi
  14240. # The user is always right.
  14241. if test "${PATH_SEPARATOR+set}" != set; then
  14242. PATH_SEPARATOR=:
  14243. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  14244. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  14245. PATH_SEPARATOR=';'
  14246. }
  14247. fi
  14248. # Support unset when possible.
  14249. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  14250. as_unset=unset
  14251. else
  14252. as_unset=false
  14253. fi
  14254. # IFS
  14255. # We need space, tab and new line, in precisely that order. Quoting is
  14256. # there to prevent editors from complaining about space-tab.
  14257. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  14258. # splitting by setting IFS to empty value.)
  14259. IFS=" "" $as_nl"
  14260. # Find who we are. Look in the path if we contain no directory separator.
  14261. case $0 in
  14262. *[\\/]* ) as_myself=$0 ;;
  14263. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  14264. for as_dir in $PATH
  14265. do
  14266. IFS=$as_save_IFS
  14267. test -z "$as_dir" && as_dir=.
  14268. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  14269. done
  14270. IFS=$as_save_IFS
  14271. ;;
  14272. esac
  14273. # We did not find ourselves, most probably we were run as `sh COMMAND'
  14274. # in which case we are not to be found in the path.
  14275. if test "x$as_myself" = x; then
  14276. as_myself=$0
  14277. fi
  14278. if test ! -f "$as_myself"; then
  14279. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  14280. { (exit 1); exit 1; }
  14281. fi
  14282. # Work around bugs in pre-3.0 UWIN ksh.
  14283. for as_var in ENV MAIL MAILPATH
  14284. do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  14285. done
  14286. PS1='$ '
  14287. PS2='> '
  14288. PS4='+ '
  14289. # NLS nuisances.
  14290. LC_ALL=C
  14291. export LC_ALL
  14292. LANGUAGE=C
  14293. export LANGUAGE
  14294. # Required to use basename.
  14295. if expr a : '\(a\)' >/dev/null 2>&1 &&
  14296. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  14297. as_expr=expr
  14298. else
  14299. as_expr=false
  14300. fi
  14301. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  14302. as_basename=basename
  14303. else
  14304. as_basename=false
  14305. fi
  14306. # Name of the executable.
  14307. as_me=`$as_basename -- "$0" ||
  14308. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  14309. X"$0" : 'X\(//\)$' \| \
  14310. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  14311. $as_echo X/"$0" |
  14312. sed '/^.*\/\([^/][^/]*\)\/*$/{
  14313. s//\1/
  14314. q
  14315. }
  14316. /^X\/\(\/\/\)$/{
  14317. s//\1/
  14318. q
  14319. }
  14320. /^X\/\(\/\).*/{
  14321. s//\1/
  14322. q
  14323. }
  14324. s/.*/./; q'`
  14325. # CDPATH.
  14326. $as_unset CDPATH
  14327. as_lineno_1=$LINENO
  14328. as_lineno_2=$LINENO
  14329. test "x$as_lineno_1" != "x$as_lineno_2" &&
  14330. test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
  14331. # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
  14332. # uniformly replaced by the line number. The first 'sed' inserts a
  14333. # line-number line after each line using $LINENO; the second 'sed'
  14334. # does the real work. The second script uses 'N' to pair each
  14335. # line-number line with the line containing $LINENO, and appends
  14336. # trailing '-' during substitution so that $LINENO is not a special
  14337. # case at line end.
  14338. # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
  14339. # scripts with optimization help from Paolo Bonzini. Blame Lee
  14340. # E. McMahon (1931-1989) for sed's syntax. :-)
  14341. sed -n '
  14342. p
  14343. /[$]LINENO/=
  14344. ' <$as_myself |
  14345. sed '
  14346. s/[$]LINENO.*/&-/
  14347. t lineno
  14348. b
  14349. :lineno
  14350. N
  14351. :loop
  14352. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  14353. t loop
  14354. s/-\n.*//
  14355. ' >$as_me.lineno &&
  14356. chmod +x "$as_me.lineno" ||
  14357. { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
  14358. { (exit 1); exit 1; }; }
  14359. # Don't try to exec as it changes $[0], causing all sort of problems
  14360. # (the dirname of $[0] is not the place where we might find the
  14361. # original and so on. Autoconf is especially sensitive to this).
  14362. . "./$as_me.lineno"
  14363. # Exit status is that of the last command.
  14364. exit
  14365. }
  14366. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  14367. as_dirname=dirname
  14368. else
  14369. as_dirname=false
  14370. fi
  14371. ECHO_C= ECHO_N= ECHO_T=
  14372. case `echo -n x` in
  14373. -n*)
  14374. case `echo 'x\c'` in
  14375. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  14376. *) ECHO_C='\c';;
  14377. esac;;
  14378. *)
  14379. ECHO_N='-n';;
  14380. esac
  14381. if expr a : '\(a\)' >/dev/null 2>&1 &&
  14382. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  14383. as_expr=expr
  14384. else
  14385. as_expr=false
  14386. fi
  14387. rm -f conf$$ conf$$.exe conf$$.file
  14388. if test -d conf$$.dir; then
  14389. rm -f conf$$.dir/conf$$.file
  14390. else
  14391. rm -f conf$$.dir
  14392. mkdir conf$$.dir 2>/dev/null
  14393. fi
  14394. if (echo >conf$$.file) 2>/dev/null; then
  14395. if ln -s conf$$.file conf$$ 2>/dev/null; then
  14396. as_ln_s='ln -s'
  14397. # ... but there are two gotchas:
  14398. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  14399. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  14400. # In both cases, we have to default to `cp -p'.
  14401. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  14402. as_ln_s='cp -p'
  14403. elif ln conf$$.file conf$$ 2>/dev/null; then
  14404. as_ln_s=ln
  14405. else
  14406. as_ln_s='cp -p'
  14407. fi
  14408. else
  14409. as_ln_s='cp -p'
  14410. fi
  14411. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  14412. rmdir conf$$.dir 2>/dev/null
  14413. if mkdir -p . 2>/dev/null; then
  14414. as_mkdir_p=:
  14415. else
  14416. test -d ./-p && rmdir ./-p
  14417. as_mkdir_p=false
  14418. fi
  14419. if test -x / >/dev/null 2>&1; then
  14420. as_test_x='test -x'
  14421. else
  14422. if ls -dL / >/dev/null 2>&1; then
  14423. as_ls_L_option=L
  14424. else
  14425. as_ls_L_option=
  14426. fi
  14427. as_test_x='
  14428. eval sh -c '\''
  14429. if test -d "$1"; then
  14430. test -d "$1/.";
  14431. else
  14432. case $1 in
  14433. -*)set "./$1";;
  14434. esac;
  14435. case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
  14436. ???[sx]*):;;*)false;;esac;fi
  14437. '\'' sh
  14438. '
  14439. fi
  14440. as_executable_p=$as_test_x
  14441. # Sed expression to map a string onto a valid CPP name.
  14442. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  14443. # Sed expression to map a string onto a valid variable name.
  14444. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  14445. exec 6>&1
  14446. # Save the log message, to keep $[0] and so on meaningful, and to
  14447. # report actual input values of CONFIG_FILES etc. instead of their
  14448. # values after options handling.
  14449. ac_log="
  14450. This file was extended by snf4cgp $as_me 0.1.4, which was
  14451. generated by GNU Autoconf 2.63. Invocation command line was
  14452. CONFIG_FILES = $CONFIG_FILES
  14453. CONFIG_HEADERS = $CONFIG_HEADERS
  14454. CONFIG_LINKS = $CONFIG_LINKS
  14455. CONFIG_COMMANDS = $CONFIG_COMMANDS
  14456. $ $0 $@
  14457. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  14458. "
  14459. _ACEOF
  14460. case $ac_config_files in *"
  14461. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  14462. esac
  14463. case $ac_config_headers in *"
  14464. "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
  14465. esac
  14466. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  14467. # Files that config.status was made for.
  14468. config_files="$ac_config_files"
  14469. config_headers="$ac_config_headers"
  14470. config_commands="$ac_config_commands"
  14471. _ACEOF
  14472. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14473. ac_cs_usage="\
  14474. \`$as_me' instantiates files from templates according to the
  14475. current configuration.
  14476. Usage: $0 [OPTION]... [FILE]...
  14477. -h, --help print this help, then exit
  14478. -V, --version print version number and configuration settings, then exit
  14479. -q, --quiet, --silent
  14480. do not print progress messages
  14481. -d, --debug don't remove temporary files
  14482. --recheck update $as_me by reconfiguring in the same conditions
  14483. --file=FILE[:TEMPLATE]
  14484. instantiate the configuration file FILE
  14485. --header=FILE[:TEMPLATE]
  14486. instantiate the configuration header FILE
  14487. Configuration files:
  14488. $config_files
  14489. Configuration headers:
  14490. $config_headers
  14491. Configuration commands:
  14492. $config_commands
  14493. Report bugs to <bug-autoconf@gnu.org>."
  14494. _ACEOF
  14495. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  14496. ac_cs_version="\\
  14497. snf4cgp config.status 0.1.4
  14498. configured by $0, generated by GNU Autoconf 2.63,
  14499. with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
  14500. Copyright (C) 2008 Free Software Foundation, Inc.
  14501. This config.status script is free software; the Free Software Foundation
  14502. gives unlimited permission to copy, distribute and modify it."
  14503. ac_pwd='$ac_pwd'
  14504. srcdir='$srcdir'
  14505. INSTALL='$INSTALL'
  14506. MKDIR_P='$MKDIR_P'
  14507. AWK='$AWK'
  14508. test -n "\$AWK" || AWK=awk
  14509. _ACEOF
  14510. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14511. # The default lists apply if the user does not specify any file.
  14512. ac_need_defaults=:
  14513. while test $# != 0
  14514. do
  14515. case $1 in
  14516. --*=*)
  14517. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  14518. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  14519. ac_shift=:
  14520. ;;
  14521. *)
  14522. ac_option=$1
  14523. ac_optarg=$2
  14524. ac_shift=shift
  14525. ;;
  14526. esac
  14527. case $ac_option in
  14528. # Handling of the options.
  14529. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  14530. ac_cs_recheck=: ;;
  14531. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  14532. $as_echo "$ac_cs_version"; exit ;;
  14533. --debug | --debu | --deb | --de | --d | -d )
  14534. debug=: ;;
  14535. --file | --fil | --fi | --f )
  14536. $ac_shift
  14537. case $ac_optarg in
  14538. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  14539. esac
  14540. CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
  14541. ac_need_defaults=false;;
  14542. --header | --heade | --head | --hea )
  14543. $ac_shift
  14544. case $ac_optarg in
  14545. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  14546. esac
  14547. CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
  14548. ac_need_defaults=false;;
  14549. --he | --h)
  14550. # Conflict between --help and --header
  14551. { $as_echo "$as_me: error: ambiguous option: $1
  14552. Try \`$0 --help' for more information." >&2
  14553. { (exit 1); exit 1; }; };;
  14554. --help | --hel | -h )
  14555. $as_echo "$ac_cs_usage"; exit ;;
  14556. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  14557. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  14558. ac_cs_silent=: ;;
  14559. # This is an error.
  14560. -*) { $as_echo "$as_me: error: unrecognized option: $1
  14561. Try \`$0 --help' for more information." >&2
  14562. { (exit 1); exit 1; }; } ;;
  14563. *) ac_config_targets="$ac_config_targets $1"
  14564. ac_need_defaults=false ;;
  14565. esac
  14566. shift
  14567. done
  14568. ac_configure_extra_args=
  14569. if $ac_cs_silent; then
  14570. exec 6>/dev/null
  14571. ac_configure_extra_args="$ac_configure_extra_args --silent"
  14572. fi
  14573. _ACEOF
  14574. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  14575. if \$ac_cs_recheck; then
  14576. set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  14577. shift
  14578. \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  14579. CONFIG_SHELL='$SHELL'
  14580. export CONFIG_SHELL
  14581. exec "\$@"
  14582. fi
  14583. _ACEOF
  14584. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14585. exec 5>>config.log
  14586. {
  14587. echo
  14588. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  14589. ## Running $as_me. ##
  14590. _ASBOX
  14591. $as_echo "$ac_log"
  14592. } >&5
  14593. _ACEOF
  14594. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  14595. #
  14596. # INIT-COMMANDS
  14597. #
  14598. AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
  14599. # The HP-UX ksh and POSIX shell print the target directory to stdout
  14600. # if CDPATH is set.
  14601. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  14602. sed_quote_subst='$sed_quote_subst'
  14603. double_quote_subst='$double_quote_subst'
  14604. delay_variable_subst='$delay_variable_subst'
  14605. enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
  14606. macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
  14607. macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
  14608. enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
  14609. pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
  14610. enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
  14611. host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
  14612. host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
  14613. host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
  14614. build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
  14615. build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
  14616. build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
  14617. SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
  14618. Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
  14619. GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
  14620. EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
  14621. FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
  14622. LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
  14623. NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
  14624. LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
  14625. max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
  14626. ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
  14627. exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
  14628. lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
  14629. lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
  14630. lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
  14631. reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
  14632. reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  14633. OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
  14634. deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
  14635. file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
  14636. AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
  14637. AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
  14638. STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
  14639. RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
  14640. old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  14641. old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  14642. old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  14643. CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
  14644. CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
  14645. compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
  14646. GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
  14647. lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
  14648. lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
  14649. 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"`'
  14650. 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"`'
  14651. objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
  14652. SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
  14653. ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
  14654. MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
  14655. lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
  14656. lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
  14657. lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
  14658. lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
  14659. lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
  14660. need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
  14661. DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
  14662. NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
  14663. LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
  14664. OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
  14665. OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
  14666. libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
  14667. shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  14668. extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  14669. archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
  14670. enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
  14671. export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
  14672. whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
  14673. compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
  14674. old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  14675. old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  14676. archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  14677. archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  14678. module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  14679. module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  14680. with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
  14681. allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
  14682. no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
  14683. hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
  14684. hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
  14685. hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
  14686. hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
  14687. hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
  14688. hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
  14689. hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
  14690. hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
  14691. inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
  14692. link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
  14693. fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
  14694. always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
  14695. export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  14696. exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
  14697. include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
  14698. prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  14699. file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
  14700. variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
  14701. need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
  14702. need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
  14703. version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
  14704. runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
  14705. shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
  14706. shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
  14707. libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
  14708. library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
  14709. soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
  14710. postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  14711. postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  14712. finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  14713. finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
  14714. hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
  14715. sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
  14716. sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
  14717. hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
  14718. enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
  14719. enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
  14720. enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
  14721. old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
  14722. striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
  14723. compiler_lib_search_dirs='`$ECHO "X$compiler_lib_search_dirs" | $Xsed -e "$delay_single_quote_subst"`'
  14724. predep_objects='`$ECHO "X$predep_objects" | $Xsed -e "$delay_single_quote_subst"`'
  14725. postdep_objects='`$ECHO "X$postdep_objects" | $Xsed -e "$delay_single_quote_subst"`'
  14726. predeps='`$ECHO "X$predeps" | $Xsed -e "$delay_single_quote_subst"`'
  14727. postdeps='`$ECHO "X$postdeps" | $Xsed -e "$delay_single_quote_subst"`'
  14728. compiler_lib_search_path='`$ECHO "X$compiler_lib_search_path" | $Xsed -e "$delay_single_quote_subst"`'
  14729. LD_CXX='`$ECHO "X$LD_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  14730. old_archive_cmds_CXX='`$ECHO "X$old_archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  14731. compiler_CXX='`$ECHO "X$compiler_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  14732. GCC_CXX='`$ECHO "X$GCC_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  14733. lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "X$lt_prog_compiler_no_builtin_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  14734. lt_prog_compiler_wl_CXX='`$ECHO "X$lt_prog_compiler_wl_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  14735. lt_prog_compiler_pic_CXX='`$ECHO "X$lt_prog_compiler_pic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  14736. lt_prog_compiler_static_CXX='`$ECHO "X$lt_prog_compiler_static_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  14737. lt_cv_prog_compiler_c_o_CXX='`$ECHO "X$lt_cv_prog_compiler_c_o_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  14738. archive_cmds_need_lc_CXX='`$ECHO "X$archive_cmds_need_lc_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  14739. enable_shared_with_static_runtimes_CXX='`$ECHO "X$enable_shared_with_static_runtimes_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  14740. export_dynamic_flag_spec_CXX='`$ECHO "X$export_dynamic_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  14741. whole_archive_flag_spec_CXX='`$ECHO "X$whole_archive_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  14742. compiler_needs_object_CXX='`$ECHO "X$compiler_needs_object_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  14743. old_archive_from_new_cmds_CXX='`$ECHO "X$old_archive_from_new_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  14744. old_archive_from_expsyms_cmds_CXX='`$ECHO "X$old_archive_from_expsyms_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  14745. archive_cmds_CXX='`$ECHO "X$archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  14746. archive_expsym_cmds_CXX='`$ECHO "X$archive_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  14747. module_cmds_CXX='`$ECHO "X$module_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  14748. module_expsym_cmds_CXX='`$ECHO "X$module_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  14749. with_gnu_ld_CXX='`$ECHO "X$with_gnu_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  14750. allow_undefined_flag_CXX='`$ECHO "X$allow_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  14751. no_undefined_flag_CXX='`$ECHO "X$no_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  14752. hardcode_libdir_flag_spec_CXX='`$ECHO "X$hardcode_libdir_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  14753. hardcode_libdir_flag_spec_ld_CXX='`$ECHO "X$hardcode_libdir_flag_spec_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  14754. hardcode_libdir_separator_CXX='`$ECHO "X$hardcode_libdir_separator_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  14755. hardcode_direct_CXX='`$ECHO "X$hardcode_direct_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  14756. hardcode_direct_absolute_CXX='`$ECHO "X$hardcode_direct_absolute_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  14757. hardcode_minus_L_CXX='`$ECHO "X$hardcode_minus_L_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  14758. hardcode_shlibpath_var_CXX='`$ECHO "X$hardcode_shlibpath_var_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  14759. hardcode_automatic_CXX='`$ECHO "X$hardcode_automatic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  14760. inherit_rpath_CXX='`$ECHO "X$inherit_rpath_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  14761. link_all_deplibs_CXX='`$ECHO "X$link_all_deplibs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  14762. fix_srcfile_path_CXX='`$ECHO "X$fix_srcfile_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  14763. always_export_symbols_CXX='`$ECHO "X$always_export_symbols_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  14764. export_symbols_cmds_CXX='`$ECHO "X$export_symbols_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  14765. exclude_expsyms_CXX='`$ECHO "X$exclude_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  14766. include_expsyms_CXX='`$ECHO "X$include_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  14767. prelink_cmds_CXX='`$ECHO "X$prelink_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  14768. file_list_spec_CXX='`$ECHO "X$file_list_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  14769. hardcode_action_CXX='`$ECHO "X$hardcode_action_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  14770. compiler_lib_search_dirs_CXX='`$ECHO "X$compiler_lib_search_dirs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  14771. predep_objects_CXX='`$ECHO "X$predep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  14772. postdep_objects_CXX='`$ECHO "X$postdep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  14773. predeps_CXX='`$ECHO "X$predeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  14774. postdeps_CXX='`$ECHO "X$postdeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  14775. compiler_lib_search_path_CXX='`$ECHO "X$compiler_lib_search_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  14776. LTCC='$LTCC'
  14777. LTCFLAGS='$LTCFLAGS'
  14778. compiler='$compiler_DEFAULT'
  14779. # Quote evaled strings.
  14780. for var in SED \
  14781. GREP \
  14782. EGREP \
  14783. FGREP \
  14784. LD \
  14785. NM \
  14786. LN_S \
  14787. lt_SP2NL \
  14788. lt_NL2SP \
  14789. reload_flag \
  14790. OBJDUMP \
  14791. deplibs_check_method \
  14792. file_magic_cmd \
  14793. AR \
  14794. AR_FLAGS \
  14795. STRIP \
  14796. RANLIB \
  14797. CC \
  14798. CFLAGS \
  14799. compiler \
  14800. lt_cv_sys_global_symbol_pipe \
  14801. lt_cv_sys_global_symbol_to_cdecl \
  14802. lt_cv_sys_global_symbol_to_c_name_address \
  14803. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
  14804. SHELL \
  14805. ECHO \
  14806. lt_prog_compiler_no_builtin_flag \
  14807. lt_prog_compiler_wl \
  14808. lt_prog_compiler_pic \
  14809. lt_prog_compiler_static \
  14810. lt_cv_prog_compiler_c_o \
  14811. need_locks \
  14812. DSYMUTIL \
  14813. NMEDIT \
  14814. LIPO \
  14815. OTOOL \
  14816. OTOOL64 \
  14817. shrext_cmds \
  14818. export_dynamic_flag_spec \
  14819. whole_archive_flag_spec \
  14820. compiler_needs_object \
  14821. with_gnu_ld \
  14822. allow_undefined_flag \
  14823. no_undefined_flag \
  14824. hardcode_libdir_flag_spec \
  14825. hardcode_libdir_flag_spec_ld \
  14826. hardcode_libdir_separator \
  14827. fix_srcfile_path \
  14828. exclude_expsyms \
  14829. include_expsyms \
  14830. file_list_spec \
  14831. variables_saved_for_relink \
  14832. libname_spec \
  14833. library_names_spec \
  14834. soname_spec \
  14835. finish_eval \
  14836. old_striplib \
  14837. striplib \
  14838. compiler_lib_search_dirs \
  14839. predep_objects \
  14840. postdep_objects \
  14841. predeps \
  14842. postdeps \
  14843. compiler_lib_search_path \
  14844. LD_CXX \
  14845. compiler_CXX \
  14846. lt_prog_compiler_no_builtin_flag_CXX \
  14847. lt_prog_compiler_wl_CXX \
  14848. lt_prog_compiler_pic_CXX \
  14849. lt_prog_compiler_static_CXX \
  14850. lt_cv_prog_compiler_c_o_CXX \
  14851. export_dynamic_flag_spec_CXX \
  14852. whole_archive_flag_spec_CXX \
  14853. compiler_needs_object_CXX \
  14854. with_gnu_ld_CXX \
  14855. allow_undefined_flag_CXX \
  14856. no_undefined_flag_CXX \
  14857. hardcode_libdir_flag_spec_CXX \
  14858. hardcode_libdir_flag_spec_ld_CXX \
  14859. hardcode_libdir_separator_CXX \
  14860. fix_srcfile_path_CXX \
  14861. exclude_expsyms_CXX \
  14862. include_expsyms_CXX \
  14863. file_list_spec_CXX \
  14864. compiler_lib_search_dirs_CXX \
  14865. predep_objects_CXX \
  14866. postdep_objects_CXX \
  14867. predeps_CXX \
  14868. postdeps_CXX \
  14869. compiler_lib_search_path_CXX; do
  14870. case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
  14871. *[\\\\\\\`\\"\\\$]*)
  14872. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
  14873. ;;
  14874. *)
  14875. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  14876. ;;
  14877. esac
  14878. done
  14879. # Double-quote double-evaled strings.
  14880. for var in reload_cmds \
  14881. old_postinstall_cmds \
  14882. old_postuninstall_cmds \
  14883. old_archive_cmds \
  14884. extract_expsyms_cmds \
  14885. old_archive_from_new_cmds \
  14886. old_archive_from_expsyms_cmds \
  14887. archive_cmds \
  14888. archive_expsym_cmds \
  14889. module_cmds \
  14890. module_expsym_cmds \
  14891. export_symbols_cmds \
  14892. prelink_cmds \
  14893. postinstall_cmds \
  14894. postuninstall_cmds \
  14895. finish_cmds \
  14896. sys_lib_search_path_spec \
  14897. sys_lib_dlsearch_path_spec \
  14898. old_archive_cmds_CXX \
  14899. old_archive_from_new_cmds_CXX \
  14900. old_archive_from_expsyms_cmds_CXX \
  14901. archive_cmds_CXX \
  14902. archive_expsym_cmds_CXX \
  14903. module_cmds_CXX \
  14904. module_expsym_cmds_CXX \
  14905. export_symbols_cmds_CXX \
  14906. prelink_cmds_CXX; do
  14907. case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
  14908. *[\\\\\\\`\\"\\\$]*)
  14909. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
  14910. ;;
  14911. *)
  14912. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  14913. ;;
  14914. esac
  14915. done
  14916. # Fix-up fallback echo if it was mangled by the above quoting rules.
  14917. case \$lt_ECHO in
  14918. *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
  14919. ;;
  14920. esac
  14921. ac_aux_dir='$ac_aux_dir'
  14922. xsi_shell='$xsi_shell'
  14923. lt_shell_append='$lt_shell_append'
  14924. # See if we are running on zsh, and set the options which allow our
  14925. # commands through without removal of \ escapes INIT.
  14926. if test -n "\${ZSH_VERSION+set}" ; then
  14927. setopt NO_GLOB_SUBST
  14928. fi
  14929. PACKAGE='$PACKAGE'
  14930. VERSION='$VERSION'
  14931. TIMESTAMP='$TIMESTAMP'
  14932. RM='$RM'
  14933. ofile='$ofile'
  14934. _ACEOF
  14935. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14936. # Handling of arguments.
  14937. for ac_config_target in $ac_config_targets
  14938. do
  14939. case $ac_config_target in
  14940. "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
  14941. "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
  14942. "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
  14943. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  14944. "CodeDweller/Makefile") CONFIG_FILES="$CONFIG_FILES CodeDweller/Makefile" ;;
  14945. "SNFMulti/Makefile") CONFIG_FILES="$CONFIG_FILES SNFMulti/Makefile" ;;
  14946. "SNF4CGP/Makefile") CONFIG_FILES="$CONFIG_FILES SNF4CGP/Makefile" ;;
  14947. "SNF2Check/Makefile") CONFIG_FILES="$CONFIG_FILES SNF2Check/Makefile" ;;
  14948. "SNFClient/Makefile") CONFIG_FILES="$CONFIG_FILES SNFClient/Makefile" ;;
  14949. "Scripts/Makefile") CONFIG_FILES="$CONFIG_FILES Scripts/Makefile" ;;
  14950. "Doc/Makefile") CONFIG_FILES="$CONFIG_FILES Doc/Makefile" ;;
  14951. "config_files/Makefile") CONFIG_FILES="$CONFIG_FILES config_files/Makefile" ;;
  14952. *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
  14953. $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
  14954. { (exit 1); exit 1; }; };;
  14955. esac
  14956. done
  14957. # If the user did not use the arguments to specify the items to instantiate,
  14958. # then the envvar interface is used. Set only those that are not.
  14959. # We use the long form for the default assignment because of an extremely
  14960. # bizarre bug on SunOS 4.1.3.
  14961. if $ac_need_defaults; then
  14962. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  14963. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  14964. test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  14965. fi
  14966. # Have a temporary directory for convenience. Make it in the build tree
  14967. # simply because there is no reason against having it here, and in addition,
  14968. # creating and moving files from /tmp can sometimes cause problems.
  14969. # Hook for its removal unless debugging.
  14970. # Note that there is a small window in which the directory will not be cleaned:
  14971. # after its creation but before its name has been assigned to `$tmp'.
  14972. $debug ||
  14973. {
  14974. tmp=
  14975. trap 'exit_status=$?
  14976. { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
  14977. ' 0
  14978. trap '{ (exit 1); exit 1; }' 1 2 13 15
  14979. }
  14980. # Create a (secure) tmp directory for tmp files.
  14981. {
  14982. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  14983. test -n "$tmp" && test -d "$tmp"
  14984. } ||
  14985. {
  14986. tmp=./conf$$-$RANDOM
  14987. (umask 077 && mkdir "$tmp")
  14988. } ||
  14989. {
  14990. $as_echo "$as_me: cannot create a temporary directory in ." >&2
  14991. { (exit 1); exit 1; }
  14992. }
  14993. # Set up the scripts for CONFIG_FILES section.
  14994. # No need to generate them if there are no CONFIG_FILES.
  14995. # This happens for instance with `./config.status config.h'.
  14996. if test -n "$CONFIG_FILES"; then
  14997. ac_cr=' '
  14998. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  14999. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  15000. ac_cs_awk_cr='\\r'
  15001. else
  15002. ac_cs_awk_cr=$ac_cr
  15003. fi
  15004. echo 'BEGIN {' >"$tmp/subs1.awk" &&
  15005. _ACEOF
  15006. {
  15007. echo "cat >conf$$subs.awk <<_ACEOF" &&
  15008. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  15009. echo "_ACEOF"
  15010. } >conf$$subs.sh ||
  15011. { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
  15012. $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
  15013. { (exit 1); exit 1; }; }
  15014. ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
  15015. ac_delim='%!_!# '
  15016. for ac_last_try in false false false false false :; do
  15017. . ./conf$$subs.sh ||
  15018. { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
  15019. $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
  15020. { (exit 1); exit 1; }; }
  15021. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  15022. if test $ac_delim_n = $ac_delim_num; then
  15023. break
  15024. elif $ac_last_try; then
  15025. { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
  15026. $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
  15027. { (exit 1); exit 1; }; }
  15028. else
  15029. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  15030. fi
  15031. done
  15032. rm -f conf$$subs.sh
  15033. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  15034. cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
  15035. _ACEOF
  15036. sed -n '
  15037. h
  15038. s/^/S["/; s/!.*/"]=/
  15039. p
  15040. g
  15041. s/^[^!]*!//
  15042. :repl
  15043. t repl
  15044. s/'"$ac_delim"'$//
  15045. t delim
  15046. :nl
  15047. h
  15048. s/\(.\{148\}\).*/\1/
  15049. t more1
  15050. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  15051. p
  15052. n
  15053. b repl
  15054. :more1
  15055. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  15056. p
  15057. g
  15058. s/.\{148\}//
  15059. t nl
  15060. :delim
  15061. h
  15062. s/\(.\{148\}\).*/\1/
  15063. t more2
  15064. s/["\\]/\\&/g; s/^/"/; s/$/"/
  15065. p
  15066. b
  15067. :more2
  15068. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  15069. p
  15070. g
  15071. s/.\{148\}//
  15072. t delim
  15073. ' <conf$$subs.awk | sed '
  15074. /^[^""]/{
  15075. N
  15076. s/\n//
  15077. }
  15078. ' >>$CONFIG_STATUS || ac_write_fail=1
  15079. rm -f conf$$subs.awk
  15080. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  15081. _ACAWK
  15082. cat >>"\$tmp/subs1.awk" <<_ACAWK &&
  15083. for (key in S) S_is_set[key] = 1
  15084. FS = ""
  15085. }
  15086. {
  15087. line = $ 0
  15088. nfields = split(line, field, "@")
  15089. substed = 0
  15090. len = length(field[1])
  15091. for (i = 2; i < nfields; i++) {
  15092. key = field[i]
  15093. keylen = length(key)
  15094. if (S_is_set[key]) {
  15095. value = S[key]
  15096. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  15097. len += length(value) + length(field[++i])
  15098. substed = 1
  15099. } else
  15100. len += 1 + keylen
  15101. }
  15102. print line
  15103. }
  15104. _ACAWK
  15105. _ACEOF
  15106. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  15107. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  15108. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  15109. else
  15110. cat
  15111. fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
  15112. || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
  15113. $as_echo "$as_me: error: could not setup config files machinery" >&2;}
  15114. { (exit 1); exit 1; }; }
  15115. _ACEOF
  15116. # VPATH may cause trouble with some makes, so we remove $(srcdir),
  15117. # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
  15118. # trailing colons and then remove the whole line if VPATH becomes empty
  15119. # (actually we leave an empty line to preserve line numbers).
  15120. if test "x$srcdir" = x.; then
  15121. ac_vpsub='/^[ ]*VPATH[ ]*=/{
  15122. s/:*\$(srcdir):*/:/
  15123. s/:*\${srcdir}:*/:/
  15124. s/:*@srcdir@:*/:/
  15125. s/^\([^=]*=[ ]*\):*/\1/
  15126. s/:*$//
  15127. s/^[^=]*=[ ]*$//
  15128. }'
  15129. fi
  15130. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  15131. fi # test -n "$CONFIG_FILES"
  15132. # Set up the scripts for CONFIG_HEADERS section.
  15133. # No need to generate them if there are no CONFIG_HEADERS.
  15134. # This happens for instance with `./config.status Makefile'.
  15135. if test -n "$CONFIG_HEADERS"; then
  15136. cat >"$tmp/defines.awk" <<\_ACAWK ||
  15137. BEGIN {
  15138. _ACEOF
  15139. # Transform confdefs.h into an awk script `defines.awk', embedded as
  15140. # here-document in config.status, that substitutes the proper values into
  15141. # config.h.in to produce config.h.
  15142. # Create a delimiter string that does not exist in confdefs.h, to ease
  15143. # handling of long lines.
  15144. ac_delim='%!_!# '
  15145. for ac_last_try in false false :; do
  15146. ac_t=`sed -n "/$ac_delim/p" confdefs.h`
  15147. if test -z "$ac_t"; then
  15148. break
  15149. elif $ac_last_try; then
  15150. { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
  15151. $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
  15152. { (exit 1); exit 1; }; }
  15153. else
  15154. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  15155. fi
  15156. done
  15157. # For the awk script, D is an array of macro values keyed by name,
  15158. # likewise P contains macro parameters if any. Preserve backslash
  15159. # newline sequences.
  15160. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  15161. sed -n '
  15162. s/.\{148\}/&'"$ac_delim"'/g
  15163. t rset
  15164. :rset
  15165. s/^[ ]*#[ ]*define[ ][ ]*/ /
  15166. t def
  15167. d
  15168. :def
  15169. s/\\$//
  15170. t bsnl
  15171. s/["\\]/\\&/g
  15172. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  15173. D["\1"]=" \3"/p
  15174. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
  15175. d
  15176. :bsnl
  15177. s/["\\]/\\&/g
  15178. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  15179. D["\1"]=" \3\\\\\\n"\\/p
  15180. t cont
  15181. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
  15182. t cont
  15183. d
  15184. :cont
  15185. n
  15186. s/.\{148\}/&'"$ac_delim"'/g
  15187. t clear
  15188. :clear
  15189. s/\\$//
  15190. t bsnlc
  15191. s/["\\]/\\&/g; s/^/"/; s/$/"/p
  15192. d
  15193. :bsnlc
  15194. s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
  15195. b cont
  15196. ' <confdefs.h | sed '
  15197. s/'"$ac_delim"'/"\\\
  15198. "/g' >>$CONFIG_STATUS || ac_write_fail=1
  15199. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  15200. for (key in D) D_is_set[key] = 1
  15201. FS = ""
  15202. }
  15203. /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  15204. line = \$ 0
  15205. split(line, arg, " ")
  15206. if (arg[1] == "#") {
  15207. defundef = arg[2]
  15208. mac1 = arg[3]
  15209. } else {
  15210. defundef = substr(arg[1], 2)
  15211. mac1 = arg[2]
  15212. }
  15213. split(mac1, mac2, "(") #)
  15214. macro = mac2[1]
  15215. prefix = substr(line, 1, index(line, defundef) - 1)
  15216. if (D_is_set[macro]) {
  15217. # Preserve the white space surrounding the "#".
  15218. print prefix "define", macro P[macro] D[macro]
  15219. next
  15220. } else {
  15221. # Replace #undef with comments. This is necessary, for example,
  15222. # in the case of _POSIX_SOURCE, which is predefined and required
  15223. # on some systems where configure will not decide to define it.
  15224. if (defundef == "undef") {
  15225. print "/*", prefix defundef, macro, "*/"
  15226. next
  15227. }
  15228. }
  15229. }
  15230. { print }
  15231. _ACAWK
  15232. _ACEOF
  15233. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  15234. { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
  15235. $as_echo "$as_me: error: could not setup config headers machinery" >&2;}
  15236. { (exit 1); exit 1; }; }
  15237. fi # test -n "$CONFIG_HEADERS"
  15238. eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
  15239. shift
  15240. for ac_tag
  15241. do
  15242. case $ac_tag in
  15243. :[FHLC]) ac_mode=$ac_tag; continue;;
  15244. esac
  15245. case $ac_mode$ac_tag in
  15246. :[FHL]*:*);;
  15247. :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
  15248. $as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
  15249. { (exit 1); exit 1; }; };;
  15250. :[FH]-) ac_tag=-:-;;
  15251. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  15252. esac
  15253. ac_save_IFS=$IFS
  15254. IFS=:
  15255. set x $ac_tag
  15256. IFS=$ac_save_IFS
  15257. shift
  15258. ac_file=$1
  15259. shift
  15260. case $ac_mode in
  15261. :L) ac_source=$1;;
  15262. :[FH])
  15263. ac_file_inputs=
  15264. for ac_f
  15265. do
  15266. case $ac_f in
  15267. -) ac_f="$tmp/stdin";;
  15268. *) # Look for the file first in the build tree, then in the source tree
  15269. # (if the path is not absolute). The absolute path cannot be DOS-style,
  15270. # because $ac_f cannot contain `:'.
  15271. test -f "$ac_f" ||
  15272. case $ac_f in
  15273. [\\/$]*) false;;
  15274. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  15275. esac ||
  15276. { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
  15277. $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
  15278. { (exit 1); exit 1; }; };;
  15279. esac
  15280. case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  15281. ac_file_inputs="$ac_file_inputs '$ac_f'"
  15282. done
  15283. # Let's still pretend it is `configure' which instantiates (i.e., don't
  15284. # use $as_me), people would be surprised to read:
  15285. # /* config.h. Generated by config.status. */
  15286. configure_input='Generated from '`
  15287. $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  15288. `' by configure.'
  15289. if test x"$ac_file" != x-; then
  15290. configure_input="$ac_file. $configure_input"
  15291. { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
  15292. $as_echo "$as_me: creating $ac_file" >&6;}
  15293. fi
  15294. # Neutralize special characters interpreted by sed in replacement strings.
  15295. case $configure_input in #(
  15296. *\&* | *\|* | *\\* )
  15297. ac_sed_conf_input=`$as_echo "$configure_input" |
  15298. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  15299. *) ac_sed_conf_input=$configure_input;;
  15300. esac
  15301. case $ac_tag in
  15302. *:-:* | *:-) cat >"$tmp/stdin" \
  15303. || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
  15304. $as_echo "$as_me: error: could not create $ac_file" >&2;}
  15305. { (exit 1); exit 1; }; } ;;
  15306. esac
  15307. ;;
  15308. esac
  15309. ac_dir=`$as_dirname -- "$ac_file" ||
  15310. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  15311. X"$ac_file" : 'X\(//\)[^/]' \| \
  15312. X"$ac_file" : 'X\(//\)$' \| \
  15313. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  15314. $as_echo X"$ac_file" |
  15315. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  15316. s//\1/
  15317. q
  15318. }
  15319. /^X\(\/\/\)[^/].*/{
  15320. s//\1/
  15321. q
  15322. }
  15323. /^X\(\/\/\)$/{
  15324. s//\1/
  15325. q
  15326. }
  15327. /^X\(\/\).*/{
  15328. s//\1/
  15329. q
  15330. }
  15331. s/.*/./; q'`
  15332. { as_dir="$ac_dir"
  15333. case $as_dir in #(
  15334. -*) as_dir=./$as_dir;;
  15335. esac
  15336. test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
  15337. as_dirs=
  15338. while :; do
  15339. case $as_dir in #(
  15340. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  15341. *) as_qdir=$as_dir;;
  15342. esac
  15343. as_dirs="'$as_qdir' $as_dirs"
  15344. as_dir=`$as_dirname -- "$as_dir" ||
  15345. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  15346. X"$as_dir" : 'X\(//\)[^/]' \| \
  15347. X"$as_dir" : 'X\(//\)$' \| \
  15348. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  15349. $as_echo X"$as_dir" |
  15350. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  15351. s//\1/
  15352. q
  15353. }
  15354. /^X\(\/\/\)[^/].*/{
  15355. s//\1/
  15356. q
  15357. }
  15358. /^X\(\/\/\)$/{
  15359. s//\1/
  15360. q
  15361. }
  15362. /^X\(\/\).*/{
  15363. s//\1/
  15364. q
  15365. }
  15366. s/.*/./; q'`
  15367. test -d "$as_dir" && break
  15368. done
  15369. test -z "$as_dirs" || eval "mkdir $as_dirs"
  15370. } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
  15371. $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
  15372. { (exit 1); exit 1; }; }; }
  15373. ac_builddir=.
  15374. case "$ac_dir" in
  15375. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  15376. *)
  15377. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  15378. # A ".." for each directory in $ac_dir_suffix.
  15379. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  15380. case $ac_top_builddir_sub in
  15381. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  15382. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  15383. esac ;;
  15384. esac
  15385. ac_abs_top_builddir=$ac_pwd
  15386. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  15387. # for backward compatibility:
  15388. ac_top_builddir=$ac_top_build_prefix
  15389. case $srcdir in
  15390. .) # We are building in place.
  15391. ac_srcdir=.
  15392. ac_top_srcdir=$ac_top_builddir_sub
  15393. ac_abs_top_srcdir=$ac_pwd ;;
  15394. [\\/]* | ?:[\\/]* ) # Absolute name.
  15395. ac_srcdir=$srcdir$ac_dir_suffix;
  15396. ac_top_srcdir=$srcdir
  15397. ac_abs_top_srcdir=$srcdir ;;
  15398. *) # Relative name.
  15399. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  15400. ac_top_srcdir=$ac_top_build_prefix$srcdir
  15401. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  15402. esac
  15403. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  15404. case $ac_mode in
  15405. :F)
  15406. #
  15407. # CONFIG_FILE
  15408. #
  15409. case $INSTALL in
  15410. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  15411. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  15412. esac
  15413. ac_MKDIR_P=$MKDIR_P
  15414. case $MKDIR_P in
  15415. [\\/$]* | ?:[\\/]* ) ;;
  15416. */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
  15417. esac
  15418. _ACEOF
  15419. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  15420. # If the template does not know about datarootdir, expand it.
  15421. # FIXME: This hack should be removed a few years after 2.60.
  15422. ac_datarootdir_hack=; ac_datarootdir_seen=
  15423. ac_sed_dataroot='
  15424. /datarootdir/ {
  15425. p
  15426. q
  15427. }
  15428. /@datadir@/p
  15429. /@docdir@/p
  15430. /@infodir@/p
  15431. /@localedir@/p
  15432. /@mandir@/p
  15433. '
  15434. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  15435. *datarootdir*) ac_datarootdir_seen=yes;;
  15436. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  15437. { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  15438. $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  15439. _ACEOF
  15440. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  15441. ac_datarootdir_hack='
  15442. s&@datadir@&$datadir&g
  15443. s&@docdir@&$docdir&g
  15444. s&@infodir@&$infodir&g
  15445. s&@localedir@&$localedir&g
  15446. s&@mandir@&$mandir&g
  15447. s&\\\${datarootdir}&$datarootdir&g' ;;
  15448. esac
  15449. _ACEOF
  15450. # Neutralize VPATH when `$srcdir' = `.'.
  15451. # Shell code in configure.ac might set extrasub.
  15452. # FIXME: do we really want to maintain this feature?
  15453. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  15454. ac_sed_extra="$ac_vpsub
  15455. $extrasub
  15456. _ACEOF
  15457. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  15458. :t
  15459. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  15460. s|@configure_input@|$ac_sed_conf_input|;t t
  15461. s&@top_builddir@&$ac_top_builddir_sub&;t t
  15462. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  15463. s&@srcdir@&$ac_srcdir&;t t
  15464. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  15465. s&@top_srcdir@&$ac_top_srcdir&;t t
  15466. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  15467. s&@builddir@&$ac_builddir&;t t
  15468. s&@abs_builddir@&$ac_abs_builddir&;t t
  15469. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  15470. s&@INSTALL@&$ac_INSTALL&;t t
  15471. s&@MKDIR_P@&$ac_MKDIR_P&;t t
  15472. $ac_datarootdir_hack
  15473. "
  15474. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
  15475. || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
  15476. $as_echo "$as_me: error: could not create $ac_file" >&2;}
  15477. { (exit 1); exit 1; }; }
  15478. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  15479. { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
  15480. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
  15481. { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  15482. which seems to be undefined. Please make sure it is defined." >&5
  15483. $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  15484. which seems to be undefined. Please make sure it is defined." >&2;}
  15485. rm -f "$tmp/stdin"
  15486. case $ac_file in
  15487. -) cat "$tmp/out" && rm -f "$tmp/out";;
  15488. *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
  15489. esac \
  15490. || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
  15491. $as_echo "$as_me: error: could not create $ac_file" >&2;}
  15492. { (exit 1); exit 1; }; }
  15493. ;;
  15494. :H)
  15495. #
  15496. # CONFIG_HEADER
  15497. #
  15498. if test x"$ac_file" != x-; then
  15499. {
  15500. $as_echo "/* $configure_input */" \
  15501. && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
  15502. } >"$tmp/config.h" \
  15503. || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
  15504. $as_echo "$as_me: error: could not create $ac_file" >&2;}
  15505. { (exit 1); exit 1; }; }
  15506. if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
  15507. { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
  15508. $as_echo "$as_me: $ac_file is unchanged" >&6;}
  15509. else
  15510. rm -f "$ac_file"
  15511. mv "$tmp/config.h" "$ac_file" \
  15512. || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
  15513. $as_echo "$as_me: error: could not create $ac_file" >&2;}
  15514. { (exit 1); exit 1; }; }
  15515. fi
  15516. else
  15517. $as_echo "/* $configure_input */" \
  15518. && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
  15519. || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
  15520. $as_echo "$as_me: error: could not create -" >&2;}
  15521. { (exit 1); exit 1; }; }
  15522. fi
  15523. # Compute "$ac_file"'s index in $config_headers.
  15524. _am_arg="$ac_file"
  15525. _am_stamp_count=1
  15526. for _am_header in $config_headers :; do
  15527. case $_am_header in
  15528. $_am_arg | $_am_arg:* )
  15529. break ;;
  15530. * )
  15531. _am_stamp_count=`expr $_am_stamp_count + 1` ;;
  15532. esac
  15533. done
  15534. echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
  15535. $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  15536. X"$_am_arg" : 'X\(//\)[^/]' \| \
  15537. X"$_am_arg" : 'X\(//\)$' \| \
  15538. X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
  15539. $as_echo X"$_am_arg" |
  15540. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  15541. s//\1/
  15542. q
  15543. }
  15544. /^X\(\/\/\)[^/].*/{
  15545. s//\1/
  15546. q
  15547. }
  15548. /^X\(\/\/\)$/{
  15549. s//\1/
  15550. q
  15551. }
  15552. /^X\(\/\).*/{
  15553. s//\1/
  15554. q
  15555. }
  15556. s/.*/./; q'`/stamp-h$_am_stamp_count
  15557. ;;
  15558. :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
  15559. $as_echo "$as_me: executing $ac_file commands" >&6;}
  15560. ;;
  15561. esac
  15562. case $ac_file$ac_mode in
  15563. "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
  15564. # Autoconf 2.62 quotes --file arguments for eval, but not when files
  15565. # are listed without --file. Let's play safe and only enable the eval
  15566. # if we detect the quoting.
  15567. case $CONFIG_FILES in
  15568. *\'*) eval set x "$CONFIG_FILES" ;;
  15569. *) set x $CONFIG_FILES ;;
  15570. esac
  15571. shift
  15572. for mf
  15573. do
  15574. # Strip MF so we end up with the name of the file.
  15575. mf=`echo "$mf" | sed -e 's/:.*$//'`
  15576. # Check whether this is an Automake generated Makefile or not.
  15577. # We used to match only the files named `Makefile.in', but
  15578. # some people rename them; so instead we look at the file content.
  15579. # Grep'ing the first line is not enough: some people post-process
  15580. # each Makefile.in and add a new line on top of each file to say so.
  15581. # Grep'ing the whole file is not good either: AIX grep has a line
  15582. # limit of 2048, but all sed's we know have understand at least 4000.
  15583. if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
  15584. dirpart=`$as_dirname -- "$mf" ||
  15585. $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  15586. X"$mf" : 'X\(//\)[^/]' \| \
  15587. X"$mf" : 'X\(//\)$' \| \
  15588. X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
  15589. $as_echo X"$mf" |
  15590. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  15591. s//\1/
  15592. q
  15593. }
  15594. /^X\(\/\/\)[^/].*/{
  15595. s//\1/
  15596. q
  15597. }
  15598. /^X\(\/\/\)$/{
  15599. s//\1/
  15600. q
  15601. }
  15602. /^X\(\/\).*/{
  15603. s//\1/
  15604. q
  15605. }
  15606. s/.*/./; q'`
  15607. else
  15608. continue
  15609. fi
  15610. # Extract the definition of DEPDIR, am__include, and am__quote
  15611. # from the Makefile without running `make'.
  15612. DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
  15613. test -z "$DEPDIR" && continue
  15614. am__include=`sed -n 's/^am__include = //p' < "$mf"`
  15615. test -z "am__include" && continue
  15616. am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
  15617. # When using ansi2knr, U may be empty or an underscore; expand it
  15618. U=`sed -n 's/^U = //p' < "$mf"`
  15619. # Find all dependency output files, they are included files with
  15620. # $(DEPDIR) in their names. We invoke sed twice because it is the
  15621. # simplest approach to changing $(DEPDIR) to its actual value in the
  15622. # expansion.
  15623. for file in `sed -n "
  15624. s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
  15625. sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
  15626. # Make sure the directory exists.
  15627. test -f "$dirpart/$file" && continue
  15628. fdir=`$as_dirname -- "$file" ||
  15629. $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  15630. X"$file" : 'X\(//\)[^/]' \| \
  15631. X"$file" : 'X\(//\)$' \| \
  15632. X"$file" : 'X\(/\)' \| . 2>/dev/null ||
  15633. $as_echo X"$file" |
  15634. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  15635. s//\1/
  15636. q
  15637. }
  15638. /^X\(\/\/\)[^/].*/{
  15639. s//\1/
  15640. q
  15641. }
  15642. /^X\(\/\/\)$/{
  15643. s//\1/
  15644. q
  15645. }
  15646. /^X\(\/\).*/{
  15647. s//\1/
  15648. q
  15649. }
  15650. s/.*/./; q'`
  15651. { as_dir=$dirpart/$fdir
  15652. case $as_dir in #(
  15653. -*) as_dir=./$as_dir;;
  15654. esac
  15655. test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
  15656. as_dirs=
  15657. while :; do
  15658. case $as_dir in #(
  15659. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  15660. *) as_qdir=$as_dir;;
  15661. esac
  15662. as_dirs="'$as_qdir' $as_dirs"
  15663. as_dir=`$as_dirname -- "$as_dir" ||
  15664. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  15665. X"$as_dir" : 'X\(//\)[^/]' \| \
  15666. X"$as_dir" : 'X\(//\)$' \| \
  15667. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  15668. $as_echo X"$as_dir" |
  15669. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  15670. s//\1/
  15671. q
  15672. }
  15673. /^X\(\/\/\)[^/].*/{
  15674. s//\1/
  15675. q
  15676. }
  15677. /^X\(\/\/\)$/{
  15678. s//\1/
  15679. q
  15680. }
  15681. /^X\(\/\).*/{
  15682. s//\1/
  15683. q
  15684. }
  15685. s/.*/./; q'`
  15686. test -d "$as_dir" && break
  15687. done
  15688. test -z "$as_dirs" || eval "mkdir $as_dirs"
  15689. } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
  15690. $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
  15691. { (exit 1); exit 1; }; }; }
  15692. # echo "creating $dirpart/$file"
  15693. echo '# dummy' > "$dirpart/$file"
  15694. done
  15695. done
  15696. }
  15697. ;;
  15698. "libtool":C)
  15699. # See if we are running on zsh, and set the options which allow our
  15700. # commands through without removal of \ escapes.
  15701. if test -n "${ZSH_VERSION+set}" ; then
  15702. setopt NO_GLOB_SUBST
  15703. fi
  15704. cfgfile="${ofile}T"
  15705. trap "$RM \"$cfgfile\"; exit 1" 1 2 15
  15706. $RM "$cfgfile"
  15707. cat <<_LT_EOF >> "$cfgfile"
  15708. #! $SHELL
  15709. # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
  15710. # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
  15711. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  15712. # NOTE: Changes made to this file will be lost: look at ltmain.sh.
  15713. #
  15714. # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
  15715. # 2006, 2007, 2008 Free Software Foundation, Inc.
  15716. # Written by Gordon Matzigkeit, 1996
  15717. #
  15718. # This file is part of GNU Libtool.
  15719. #
  15720. # GNU Libtool is free software; you can redistribute it and/or
  15721. # modify it under the terms of the GNU General Public License as
  15722. # published by the Free Software Foundation; either version 2 of
  15723. # the License, or (at your option) any later version.
  15724. #
  15725. # As a special exception to the GNU General Public License,
  15726. # if you distribute this file as part of a program or library that
  15727. # is built using GNU Libtool, you may include this file under the
  15728. # same distribution terms that you use for the rest of that program.
  15729. #
  15730. # GNU Libtool is distributed in the hope that it will be useful,
  15731. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  15732. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  15733. # GNU General Public License for more details.
  15734. #
  15735. # You should have received a copy of the GNU General Public License
  15736. # along with GNU Libtool; see the file COPYING. If not, a copy
  15737. # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
  15738. # obtained by writing to the Free Software Foundation, Inc.,
  15739. # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  15740. # The names of the tagged configurations supported by this script.
  15741. available_tags="CXX "
  15742. # ### BEGIN LIBTOOL CONFIG
  15743. # Whether or not to build shared libraries.
  15744. build_libtool_libs=$enable_shared
  15745. # Which release of libtool.m4 was used?
  15746. macro_version=$macro_version
  15747. macro_revision=$macro_revision
  15748. # Whether or not to build static libraries.
  15749. build_old_libs=$enable_static
  15750. # What type of objects to build.
  15751. pic_mode=$pic_mode
  15752. # Whether or not to optimize for fast installation.
  15753. fast_install=$enable_fast_install
  15754. # The host system.
  15755. host_alias=$host_alias
  15756. host=$host
  15757. host_os=$host_os
  15758. # The build system.
  15759. build_alias=$build_alias
  15760. build=$build
  15761. build_os=$build_os
  15762. # A sed program that does not truncate output.
  15763. SED=$lt_SED
  15764. # Sed that helps us avoid accidentally triggering echo(1) options like -n.
  15765. Xsed="\$SED -e 1s/^X//"
  15766. # A grep program that handles long lines.
  15767. GREP=$lt_GREP
  15768. # An ERE matcher.
  15769. EGREP=$lt_EGREP
  15770. # A literal string matcher.
  15771. FGREP=$lt_FGREP
  15772. # A BSD- or MS-compatible name lister.
  15773. NM=$lt_NM
  15774. # Whether we need soft or hard links.
  15775. LN_S=$lt_LN_S
  15776. # What is the maximum length of a command?
  15777. max_cmd_len=$max_cmd_len
  15778. # Object file suffix (normally "o").
  15779. objext=$ac_objext
  15780. # Executable file suffix (normally "").
  15781. exeext=$exeext
  15782. # whether the shell understands "unset".
  15783. lt_unset=$lt_unset
  15784. # turn spaces into newlines.
  15785. SP2NL=$lt_lt_SP2NL
  15786. # turn newlines into spaces.
  15787. NL2SP=$lt_lt_NL2SP
  15788. # How to create reloadable object files.
  15789. reload_flag=$lt_reload_flag
  15790. reload_cmds=$lt_reload_cmds
  15791. # An object symbol dumper.
  15792. OBJDUMP=$lt_OBJDUMP
  15793. # Method to check whether dependent libraries are shared objects.
  15794. deplibs_check_method=$lt_deplibs_check_method
  15795. # Command to use when deplibs_check_method == "file_magic".
  15796. file_magic_cmd=$lt_file_magic_cmd
  15797. # The archiver.
  15798. AR=$lt_AR
  15799. AR_FLAGS=$lt_AR_FLAGS
  15800. # A symbol stripping program.
  15801. STRIP=$lt_STRIP
  15802. # Commands used to install an old-style archive.
  15803. RANLIB=$lt_RANLIB
  15804. old_postinstall_cmds=$lt_old_postinstall_cmds
  15805. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  15806. # A C compiler.
  15807. LTCC=$lt_CC
  15808. # LTCC compiler flags.
  15809. LTCFLAGS=$lt_CFLAGS
  15810. # Take the output of nm and produce a listing of raw symbols and C names.
  15811. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  15812. # Transform the output of nm in a proper C declaration.
  15813. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  15814. # Transform the output of nm in a C name address pair.
  15815. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  15816. # Transform the output of nm in a C name address pair when lib prefix is needed.
  15817. global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
  15818. # The name of the directory that contains temporary libtool files.
  15819. objdir=$objdir
  15820. # Shell to use when invoking shell scripts.
  15821. SHELL=$lt_SHELL
  15822. # An echo program that does not interpret backslashes.
  15823. ECHO=$lt_ECHO
  15824. # Used to examine libraries when file_magic_cmd begins with "file".
  15825. MAGIC_CMD=$MAGIC_CMD
  15826. # Must we lock files when doing compilation?
  15827. need_locks=$lt_need_locks
  15828. # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
  15829. DSYMUTIL=$lt_DSYMUTIL
  15830. # Tool to change global to local symbols on Mac OS X.
  15831. NMEDIT=$lt_NMEDIT
  15832. # Tool to manipulate fat objects and archives on Mac OS X.
  15833. LIPO=$lt_LIPO
  15834. # ldd/readelf like tool for Mach-O binaries on Mac OS X.
  15835. OTOOL=$lt_OTOOL
  15836. # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
  15837. OTOOL64=$lt_OTOOL64
  15838. # Old archive suffix (normally "a").
  15839. libext=$libext
  15840. # Shared library suffix (normally ".so").
  15841. shrext_cmds=$lt_shrext_cmds
  15842. # The commands to extract the exported symbol list from a shared archive.
  15843. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  15844. # Variables whose values should be saved in libtool wrapper scripts and
  15845. # restored at link time.
  15846. variables_saved_for_relink=$lt_variables_saved_for_relink
  15847. # Do we need the "lib" prefix for modules?
  15848. need_lib_prefix=$need_lib_prefix
  15849. # Do we need a version for libraries?
  15850. need_version=$need_version
  15851. # Library versioning type.
  15852. version_type=$version_type
  15853. # Shared library runtime path variable.
  15854. runpath_var=$runpath_var
  15855. # Shared library path variable.
  15856. shlibpath_var=$shlibpath_var
  15857. # Is shlibpath searched before the hard-coded library search path?
  15858. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  15859. # Format of library name prefix.
  15860. libname_spec=$lt_libname_spec
  15861. # List of archive names. First name is the real one, the rest are links.
  15862. # The last name is the one that the linker finds with -lNAME
  15863. library_names_spec=$lt_library_names_spec
  15864. # The coded name of the library, if different from the real name.
  15865. soname_spec=$lt_soname_spec
  15866. # Command to use after installation of a shared archive.
  15867. postinstall_cmds=$lt_postinstall_cmds
  15868. # Command to use after uninstallation of a shared archive.
  15869. postuninstall_cmds=$lt_postuninstall_cmds
  15870. # Commands used to finish a libtool library installation in a directory.
  15871. finish_cmds=$lt_finish_cmds
  15872. # As "finish_cmds", except a single script fragment to be evaled but
  15873. # not shown.
  15874. finish_eval=$lt_finish_eval
  15875. # Whether we should hardcode library paths into libraries.
  15876. hardcode_into_libs=$hardcode_into_libs
  15877. # Compile-time system search path for libraries.
  15878. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  15879. # Run-time system search path for libraries.
  15880. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  15881. # Whether dlopen is supported.
  15882. dlopen_support=$enable_dlopen
  15883. # Whether dlopen of programs is supported.
  15884. dlopen_self=$enable_dlopen_self
  15885. # Whether dlopen of statically linked programs is supported.
  15886. dlopen_self_static=$enable_dlopen_self_static
  15887. # Commands to strip libraries.
  15888. old_striplib=$lt_old_striplib
  15889. striplib=$lt_striplib
  15890. # The linker used to build libraries.
  15891. LD=$lt_LD
  15892. # Commands used to build an old-style archive.
  15893. old_archive_cmds=$lt_old_archive_cmds
  15894. # A language specific compiler.
  15895. CC=$lt_compiler
  15896. # Is the compiler the GNU compiler?
  15897. with_gcc=$GCC
  15898. # Compiler flag to turn off builtin functions.
  15899. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
  15900. # How to pass a linker flag through the compiler.
  15901. wl=$lt_lt_prog_compiler_wl
  15902. # Additional compiler flags for building library objects.
  15903. pic_flag=$lt_lt_prog_compiler_pic
  15904. # Compiler flag to prevent dynamic linking.
  15905. link_static_flag=$lt_lt_prog_compiler_static
  15906. # Does compiler simultaneously support -c and -o options?
  15907. compiler_c_o=$lt_lt_cv_prog_compiler_c_o
  15908. # Whether or not to add -lc for building shared libraries.
  15909. build_libtool_need_lc=$archive_cmds_need_lc
  15910. # Whether or not to disallow shared libs when runtime libs are static.
  15911. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
  15912. # Compiler flag to allow reflexive dlopens.
  15913. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
  15914. # Compiler flag to generate shared objects directly from archives.
  15915. whole_archive_flag_spec=$lt_whole_archive_flag_spec
  15916. # Whether the compiler copes with passing no objects directly.
  15917. compiler_needs_object=$lt_compiler_needs_object
  15918. # Create an old-style archive from a shared archive.
  15919. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
  15920. # Create a temporary old-style archive to link instead of a shared archive.
  15921. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
  15922. # Commands used to build a shared archive.
  15923. archive_cmds=$lt_archive_cmds
  15924. archive_expsym_cmds=$lt_archive_expsym_cmds
  15925. # Commands used to build a loadable module if different from building
  15926. # a shared archive.
  15927. module_cmds=$lt_module_cmds
  15928. module_expsym_cmds=$lt_module_expsym_cmds
  15929. # Whether we are building with GNU ld or not.
  15930. with_gnu_ld=$lt_with_gnu_ld
  15931. # Flag that allows shared libraries with undefined symbols to be built.
  15932. allow_undefined_flag=$lt_allow_undefined_flag
  15933. # Flag that enforces no undefined symbols.
  15934. no_undefined_flag=$lt_no_undefined_flag
  15935. # Flag to hardcode \$libdir into a binary during linking.
  15936. # This must work even if \$libdir does not exist
  15937. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
  15938. # If ld is used when linking, flag to hardcode \$libdir into a binary
  15939. # during linking. This must work even if \$libdir does not exist.
  15940. hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
  15941. # Whether we need a single "-rpath" flag with a separated argument.
  15942. hardcode_libdir_separator=$lt_hardcode_libdir_separator
  15943. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  15944. # DIR into the resulting binary.
  15945. hardcode_direct=$hardcode_direct
  15946. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  15947. # DIR into the resulting binary and the resulting library dependency is
  15948. # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
  15949. # library is relocated.
  15950. hardcode_direct_absolute=$hardcode_direct_absolute
  15951. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  15952. # into the resulting binary.
  15953. hardcode_minus_L=$hardcode_minus_L
  15954. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  15955. # into the resulting binary.
  15956. hardcode_shlibpath_var=$hardcode_shlibpath_var
  15957. # Set to "yes" if building a shared library automatically hardcodes DIR
  15958. # into the library and all subsequent libraries and executables linked
  15959. # against it.
  15960. hardcode_automatic=$hardcode_automatic
  15961. # Set to yes if linker adds runtime paths of dependent libraries
  15962. # to runtime path list.
  15963. inherit_rpath=$inherit_rpath
  15964. # Whether libtool must link a program against all its dependency libraries.
  15965. link_all_deplibs=$link_all_deplibs
  15966. # Fix the shell variable \$srcfile for the compiler.
  15967. fix_srcfile_path=$lt_fix_srcfile_path
  15968. # Set to "yes" if exported symbols are required.
  15969. always_export_symbols=$always_export_symbols
  15970. # The commands to list exported symbols.
  15971. export_symbols_cmds=$lt_export_symbols_cmds
  15972. # Symbols that should not be listed in the preloaded symbols.
  15973. exclude_expsyms=$lt_exclude_expsyms
  15974. # Symbols that must always be exported.
  15975. include_expsyms=$lt_include_expsyms
  15976. # Commands necessary for linking programs (against libraries) with templates.
  15977. prelink_cmds=$lt_prelink_cmds
  15978. # Specify filename containing input files.
  15979. file_list_spec=$lt_file_list_spec
  15980. # How to hardcode a shared library path into an executable.
  15981. hardcode_action=$hardcode_action
  15982. # The directories searched by this compiler when creating a shared library.
  15983. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
  15984. # Dependencies to place before and after the objects being linked to
  15985. # create a shared library.
  15986. predep_objects=$lt_predep_objects
  15987. postdep_objects=$lt_postdep_objects
  15988. predeps=$lt_predeps
  15989. postdeps=$lt_postdeps
  15990. # The library search path used internally by the compiler when linking
  15991. # a shared library.
  15992. compiler_lib_search_path=$lt_compiler_lib_search_path
  15993. # ### END LIBTOOL CONFIG
  15994. _LT_EOF
  15995. case $host_os in
  15996. aix3*)
  15997. cat <<\_LT_EOF >> "$cfgfile"
  15998. # AIX sometimes has problems with the GCC collect2 program. For some
  15999. # reason, if we set the COLLECT_NAMES environment variable, the problems
  16000. # vanish in a puff of smoke.
  16001. if test "X${COLLECT_NAMES+set}" != Xset; then
  16002. COLLECT_NAMES=
  16003. export COLLECT_NAMES
  16004. fi
  16005. _LT_EOF
  16006. ;;
  16007. esac
  16008. ltmain="$ac_aux_dir/ltmain.sh"
  16009. # We use sed instead of cat because bash on DJGPP gets confused if
  16010. # if finds mixed CR/LF and LF-only lines. Since sed operates in
  16011. # text mode, it properly converts lines to CR/LF. This bash problem
  16012. # is reportedly fixed, but why not run on old versions too?
  16013. sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
  16014. || (rm -f "$cfgfile"; exit 1)
  16015. case $xsi_shell in
  16016. yes)
  16017. cat << \_LT_EOF >> "$cfgfile"
  16018. # func_dirname file append nondir_replacement
  16019. # Compute the dirname of FILE. If nonempty, add APPEND to the result,
  16020. # otherwise set result to NONDIR_REPLACEMENT.
  16021. func_dirname ()
  16022. {
  16023. case ${1} in
  16024. */*) func_dirname_result="${1%/*}${2}" ;;
  16025. * ) func_dirname_result="${3}" ;;
  16026. esac
  16027. }
  16028. # func_basename file
  16029. func_basename ()
  16030. {
  16031. func_basename_result="${1##*/}"
  16032. }
  16033. # func_dirname_and_basename file append nondir_replacement
  16034. # perform func_basename and func_dirname in a single function
  16035. # call:
  16036. # dirname: Compute the dirname of FILE. If nonempty,
  16037. # add APPEND to the result, otherwise set result
  16038. # to NONDIR_REPLACEMENT.
  16039. # value returned in "$func_dirname_result"
  16040. # basename: Compute filename of FILE.
  16041. # value retuned in "$func_basename_result"
  16042. # Implementation must be kept synchronized with func_dirname
  16043. # and func_basename. For efficiency, we do not delegate to
  16044. # those functions but instead duplicate the functionality here.
  16045. func_dirname_and_basename ()
  16046. {
  16047. case ${1} in
  16048. */*) func_dirname_result="${1%/*}${2}" ;;
  16049. * ) func_dirname_result="${3}" ;;
  16050. esac
  16051. func_basename_result="${1##*/}"
  16052. }
  16053. # func_stripname prefix suffix name
  16054. # strip PREFIX and SUFFIX off of NAME.
  16055. # PREFIX and SUFFIX must not contain globbing or regex special
  16056. # characters, hashes, percent signs, but SUFFIX may contain a leading
  16057. # dot (in which case that matches only a dot).
  16058. func_stripname ()
  16059. {
  16060. # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
  16061. # positional parameters, so assign one to ordinary parameter first.
  16062. func_stripname_result=${3}
  16063. func_stripname_result=${func_stripname_result#"${1}"}
  16064. func_stripname_result=${func_stripname_result%"${2}"}
  16065. }
  16066. # func_opt_split
  16067. func_opt_split ()
  16068. {
  16069. func_opt_split_opt=${1%%=*}
  16070. func_opt_split_arg=${1#*=}
  16071. }
  16072. # func_lo2o object
  16073. func_lo2o ()
  16074. {
  16075. case ${1} in
  16076. *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
  16077. *) func_lo2o_result=${1} ;;
  16078. esac
  16079. }
  16080. # func_xform libobj-or-source
  16081. func_xform ()
  16082. {
  16083. func_xform_result=${1%.*}.lo
  16084. }
  16085. # func_arith arithmetic-term...
  16086. func_arith ()
  16087. {
  16088. func_arith_result=$(( $* ))
  16089. }
  16090. # func_len string
  16091. # STRING may not start with a hyphen.
  16092. func_len ()
  16093. {
  16094. func_len_result=${#1}
  16095. }
  16096. _LT_EOF
  16097. ;;
  16098. *) # Bourne compatible functions.
  16099. cat << \_LT_EOF >> "$cfgfile"
  16100. # func_dirname file append nondir_replacement
  16101. # Compute the dirname of FILE. If nonempty, add APPEND to the result,
  16102. # otherwise set result to NONDIR_REPLACEMENT.
  16103. func_dirname ()
  16104. {
  16105. # Extract subdirectory from the argument.
  16106. func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
  16107. if test "X$func_dirname_result" = "X${1}"; then
  16108. func_dirname_result="${3}"
  16109. else
  16110. func_dirname_result="$func_dirname_result${2}"
  16111. fi
  16112. }
  16113. # func_basename file
  16114. func_basename ()
  16115. {
  16116. func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
  16117. }
  16118. # func_stripname prefix suffix name
  16119. # strip PREFIX and SUFFIX off of NAME.
  16120. # PREFIX and SUFFIX must not contain globbing or regex special
  16121. # characters, hashes, percent signs, but SUFFIX may contain a leading
  16122. # dot (in which case that matches only a dot).
  16123. # func_strip_suffix prefix name
  16124. func_stripname ()
  16125. {
  16126. case ${2} in
  16127. .*) func_stripname_result=`$ECHO "X${3}" \
  16128. | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
  16129. *) func_stripname_result=`$ECHO "X${3}" \
  16130. | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
  16131. esac
  16132. }
  16133. # sed scripts:
  16134. my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
  16135. my_sed_long_arg='1s/^-[^=]*=//'
  16136. # func_opt_split
  16137. func_opt_split ()
  16138. {
  16139. func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
  16140. func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
  16141. }
  16142. # func_lo2o object
  16143. func_lo2o ()
  16144. {
  16145. func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
  16146. }
  16147. # func_xform libobj-or-source
  16148. func_xform ()
  16149. {
  16150. func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
  16151. }
  16152. # func_arith arithmetic-term...
  16153. func_arith ()
  16154. {
  16155. func_arith_result=`expr "$@"`
  16156. }
  16157. # func_len string
  16158. # STRING may not start with a hyphen.
  16159. func_len ()
  16160. {
  16161. func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
  16162. }
  16163. _LT_EOF
  16164. esac
  16165. case $lt_shell_append in
  16166. yes)
  16167. cat << \_LT_EOF >> "$cfgfile"
  16168. # func_append var value
  16169. # Append VALUE to the end of shell variable VAR.
  16170. func_append ()
  16171. {
  16172. eval "$1+=\$2"
  16173. }
  16174. _LT_EOF
  16175. ;;
  16176. *)
  16177. cat << \_LT_EOF >> "$cfgfile"
  16178. # func_append var value
  16179. # Append VALUE to the end of shell variable VAR.
  16180. func_append ()
  16181. {
  16182. eval "$1=\$$1\$2"
  16183. }
  16184. _LT_EOF
  16185. ;;
  16186. esac
  16187. sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
  16188. || (rm -f "$cfgfile"; exit 1)
  16189. mv -f "$cfgfile" "$ofile" ||
  16190. (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  16191. chmod +x "$ofile"
  16192. cat <<_LT_EOF >> "$ofile"
  16193. # ### BEGIN LIBTOOL TAG CONFIG: CXX
  16194. # The linker used to build libraries.
  16195. LD=$lt_LD_CXX
  16196. # Commands used to build an old-style archive.
  16197. old_archive_cmds=$lt_old_archive_cmds_CXX
  16198. # A language specific compiler.
  16199. CC=$lt_compiler_CXX
  16200. # Is the compiler the GNU compiler?
  16201. with_gcc=$GCC_CXX
  16202. # Compiler flag to turn off builtin functions.
  16203. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
  16204. # How to pass a linker flag through the compiler.
  16205. wl=$lt_lt_prog_compiler_wl_CXX
  16206. # Additional compiler flags for building library objects.
  16207. pic_flag=$lt_lt_prog_compiler_pic_CXX
  16208. # Compiler flag to prevent dynamic linking.
  16209. link_static_flag=$lt_lt_prog_compiler_static_CXX
  16210. # Does compiler simultaneously support -c and -o options?
  16211. compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
  16212. # Whether or not to add -lc for building shared libraries.
  16213. build_libtool_need_lc=$archive_cmds_need_lc_CXX
  16214. # Whether or not to disallow shared libs when runtime libs are static.
  16215. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
  16216. # Compiler flag to allow reflexive dlopens.
  16217. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
  16218. # Compiler flag to generate shared objects directly from archives.
  16219. whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
  16220. # Whether the compiler copes with passing no objects directly.
  16221. compiler_needs_object=$lt_compiler_needs_object_CXX
  16222. # Create an old-style archive from a shared archive.
  16223. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
  16224. # Create a temporary old-style archive to link instead of a shared archive.
  16225. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
  16226. # Commands used to build a shared archive.
  16227. archive_cmds=$lt_archive_cmds_CXX
  16228. archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
  16229. # Commands used to build a loadable module if different from building
  16230. # a shared archive.
  16231. module_cmds=$lt_module_cmds_CXX
  16232. module_expsym_cmds=$lt_module_expsym_cmds_CXX
  16233. # Whether we are building with GNU ld or not.
  16234. with_gnu_ld=$lt_with_gnu_ld_CXX
  16235. # Flag that allows shared libraries with undefined symbols to be built.
  16236. allow_undefined_flag=$lt_allow_undefined_flag_CXX
  16237. # Flag that enforces no undefined symbols.
  16238. no_undefined_flag=$lt_no_undefined_flag_CXX
  16239. # Flag to hardcode \$libdir into a binary during linking.
  16240. # This must work even if \$libdir does not exist
  16241. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
  16242. # If ld is used when linking, flag to hardcode \$libdir into a binary
  16243. # during linking. This must work even if \$libdir does not exist.
  16244. hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
  16245. # Whether we need a single "-rpath" flag with a separated argument.
  16246. hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
  16247. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  16248. # DIR into the resulting binary.
  16249. hardcode_direct=$hardcode_direct_CXX
  16250. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  16251. # DIR into the resulting binary and the resulting library dependency is
  16252. # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
  16253. # library is relocated.
  16254. hardcode_direct_absolute=$hardcode_direct_absolute_CXX
  16255. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  16256. # into the resulting binary.
  16257. hardcode_minus_L=$hardcode_minus_L_CXX
  16258. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  16259. # into the resulting binary.
  16260. hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
  16261. # Set to "yes" if building a shared library automatically hardcodes DIR
  16262. # into the library and all subsequent libraries and executables linked
  16263. # against it.
  16264. hardcode_automatic=$hardcode_automatic_CXX
  16265. # Set to yes if linker adds runtime paths of dependent libraries
  16266. # to runtime path list.
  16267. inherit_rpath=$inherit_rpath_CXX
  16268. # Whether libtool must link a program against all its dependency libraries.
  16269. link_all_deplibs=$link_all_deplibs_CXX
  16270. # Fix the shell variable \$srcfile for the compiler.
  16271. fix_srcfile_path=$lt_fix_srcfile_path_CXX
  16272. # Set to "yes" if exported symbols are required.
  16273. always_export_symbols=$always_export_symbols_CXX
  16274. # The commands to list exported symbols.
  16275. export_symbols_cmds=$lt_export_symbols_cmds_CXX
  16276. # Symbols that should not be listed in the preloaded symbols.
  16277. exclude_expsyms=$lt_exclude_expsyms_CXX
  16278. # Symbols that must always be exported.
  16279. include_expsyms=$lt_include_expsyms_CXX
  16280. # Commands necessary for linking programs (against libraries) with templates.
  16281. prelink_cmds=$lt_prelink_cmds_CXX
  16282. # Specify filename containing input files.
  16283. file_list_spec=$lt_file_list_spec_CXX
  16284. # How to hardcode a shared library path into an executable.
  16285. hardcode_action=$hardcode_action_CXX
  16286. # The directories searched by this compiler when creating a shared library.
  16287. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
  16288. # Dependencies to place before and after the objects being linked to
  16289. # create a shared library.
  16290. predep_objects=$lt_predep_objects_CXX
  16291. postdep_objects=$lt_postdep_objects_CXX
  16292. predeps=$lt_predeps_CXX
  16293. postdeps=$lt_postdeps_CXX
  16294. # The library search path used internally by the compiler when linking
  16295. # a shared library.
  16296. compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
  16297. # ### END LIBTOOL TAG CONFIG: CXX
  16298. _LT_EOF
  16299. ;;
  16300. esac
  16301. done # for ac_tag
  16302. { (exit 0); exit 0; }
  16303. _ACEOF
  16304. chmod +x $CONFIG_STATUS
  16305. ac_clean_files=$ac_clean_files_save
  16306. test $ac_write_fail = 0 ||
  16307. { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
  16308. $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
  16309. { (exit 1); exit 1; }; }
  16310. # configure is writing to config.log, and then calls config.status.
  16311. # config.status does its own redirection, appending to config.log.
  16312. # Unfortunately, on DOS this fails, as config.log is still kept open
  16313. # by configure, so config.status won't be able to write to it; its
  16314. # output is simply discarded. So we exec the FD to /dev/null,
  16315. # effectively closing config.log, so it can be properly (re)opened and
  16316. # appended to by config.status. When coming back to configure, we
  16317. # need to make the FD available again.
  16318. if test "$no_create" != yes; then
  16319. ac_cs_success=:
  16320. ac_config_status_args=
  16321. test "$silent" = yes &&
  16322. ac_config_status_args="$ac_config_status_args --quiet"
  16323. exec 5>/dev/null
  16324. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  16325. exec 5>>config.log
  16326. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  16327. # would make configure fail if this is the last instruction.
  16328. $ac_cs_success || { (exit 1); exit 1; }
  16329. fi
  16330. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  16331. { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  16332. $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  16333. fi
  16334. echo "
  16335. Type "make" to build the system using the default (optimized) parameters.
  16336. Type "make OTHER_CXXFLAGS=flags" to build the system with compiler
  16337. flags 'flags'.
  16338. For example:
  16339. Type "make OTHER_CXXFLAGS=-g" to build the system for debugging.
  16340. Type "make OTHER_CXXFLAGS=-Wall" to enable all warnings.
  16341. Type "make OTHER_CXXFLAGS=-Wall -O3" to enable warnings and O3
  16342. optimizations.
  16343. Default value: $OTHER_CXXFLAGS
  16344. Done
  16345. "