output.1 422 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342123431234412345123461234712348123491235012351123521235312354123551235612357123581235912360123611236212363123641236512366123671236812369123701237112372123731237412375123761237712378123791238012381123821238312384123851238612387123881238912390123911239212393123941239512396123971239812399124001240112402124031240412405124061240712408124091241012411124121241312414124151241612417124181241912420124211242212423124241242512426124271242812429124301243112432124331243412435124361243712438124391244012441124421244312444124451244612447124481244912450124511245212453124541245512456124571245812459124601246112462124631246412465124661246712468124691247012471124721247312474124751247612477124781247912480124811248212483124841248512486124871248812489124901249112492124931249412495124961249712498124991250012501125021250312504125051250612507125081250912510125111251212513125141251512516125171251812519125201252112522125231252412525125261252712528125291253012531125321253312534125351253612537125381253912540125411254212543125441254512546125471254812549125501255112552125531255412555125561255712558125591256012561125621256312564125651256612567125681256912570125711257212573125741257512576125771257812579125801258112582125831258412585125861258712588125891259012591125921259312594125951259612597125981259912600126011260212603126041260512606126071260812609126101261112612126131261412615126161261712618126191262012621126221262312624126251262612627126281262912630126311263212633126341263512636126371263812639126401264112642126431264412645126461264712648126491265012651126521265312654126551265612657126581265912660126611266212663126641266512666126671266812669126701267112672126731267412675126761267712678126791268012681126821268312684126851268612687126881268912690126911269212693126941269512696126971269812699127001270112702127031270412705127061270712708127091271012711127121271312714127151271612717127181271912720127211272212723127241272512726127271272812729127301273112732127331273412735127361273712738127391274012741127421274312744127451274612747127481274912750127511275212753127541275512756127571275812759127601276112762127631276412765127661276712768127691277012771127721277312774127751277612777127781277912780127811278212783127841278512786127871278812789127901279112792127931279412795127961279712798127991280012801128021280312804128051280612807128081280912810128111281212813128141281512816128171281812819128201282112822128231282412825128261282712828128291283012831128321283312834128351283612837128381283912840128411284212843128441284512846128471284812849128501285112852128531285412855128561285712858128591286012861128621286312864128651286612867128681286912870128711287212873128741287512876128771287812879128801288112882128831288412885128861288712888128891289012891128921289312894128951289612897128981289912900129011290212903129041290512906129071290812909129101291112912129131291412915129161291712918129191292012921129221292312924129251292612927129281292912930129311293212933129341293512936129371293812939129401294112942129431294412945129461294712948129491295012951129521295312954129551295612957129581295912960129611296212963129641296512966129671296812969129701297112972129731297412975129761297712978129791298012981129821298312984129851298612987129881298912990129911299212993129941299512996129971299812999130001300113002130031300413005130061300713008130091301013011130121301313014130151301613017130181301913020130211302213023130241302513026130271302813029130301303113032130331303413035130361303713038130391304013041130421304313044130451304613047130481304913050130511305213053130541305513056130571305813059130601306113062130631306413065130661306713068130691307013071130721307313074130751307613077130781307913080130811308213083130841308513086130871308813089130901309113092130931309413095130961309713098130991310013101131021310313104131051310613107131081310913110131111311213113131141311513116131171311813119131201312113122131231312413125131261312713128131291313013131131321313313134131351313613137131381313913140131411314213143131441314513146131471314813149131501315113152131531315413155131561315713158131591316013161131621316313164131651316613167131681316913170131711317213173131741317513176131771317813179131801318113182131831318413185131861318713188131891319013191131921319313194131951319613197131981319913200132011320213203132041320513206132071320813209132101321113212132131321413215132161321713218132191322013221132221322313224132251322613227132281322913230132311323213233132341323513236132371323813239132401324113242132431324413245132461324713248132491325013251132521325313254132551325613257132581325913260132611326213263132641326513266132671326813269132701327113272132731327413275132761327713278132791328013281132821328313284132851328613287132881328913290132911329213293132941329513296132971329813299133001330113302133031330413305133061330713308133091331013311133121331313314133151331613317133181331913320133211332213323133241332513326133271332813329133301333113332133331333413335133361333713338133391334013341133421334313344133451334613347133481334913350133511335213353133541335513356133571335813359133601336113362133631336413365133661336713368133691337013371133721337313374133751337613377133781337913380133811338213383133841338513386133871338813389133901339113392133931339413395133961339713398133991340013401134021340313404134051340613407134081340913410134111341213413134141341513416134171341813419134201342113422134231342413425134261342713428134291343013431134321343313434134351343613437134381343913440134411344213443134441344513446134471344813449134501345113452134531345413455134561345713458134591346013461134621346313464134651346613467134681346913470134711347213473134741347513476134771347813479134801348113482134831348413485134861348713488134891349013491134921349313494134951349613497134981349913500135011350213503135041350513506135071350813509135101351113512135131351413515135161351713518135191352013521135221352313524135251352613527135281352913530135311353213533135341353513536135371353813539135401354113542135431354413545135461354713548135491355013551135521355313554135551355613557135581355913560135611356213563135641356513566135671356813569135701357113572135731357413575135761357713578135791358013581135821358313584135851358613587135881358913590135911359213593135941359513596135971359813599136001360113602136031360413605136061360713608136091361013611136121361313614136151361613617136181361913620136211362213623136241362513626136271362813629136301363113632136331363413635136361363713638136391364013641136421364313644136451364613647136481364913650136511365213653136541365513656136571365813659136601366113662136631366413665136661366713668136691367013671136721367313674136751367613677136781367913680136811368213683136841368513686136871368813689136901369113692136931369413695136961369713698136991370013701137021370313704137051370613707137081370913710137111371213713137141371513716137171371813719137201372113722137231372413725137261372713728137291373013731137321373313734137351373613737137381373913740137411374213743137441374513746137471374813749137501375113752137531375413755137561375713758137591376013761137621376313764137651376613767137681376913770137711377213773137741377513776137771377813779137801378113782137831378413785137861378713788137891379013791137921379313794137951379613797137981379913800138011380213803138041380513806138071380813809138101381113812138131381413815138161381713818138191382013821138221382313824138251382613827138281382913830138311383213833138341383513836138371383813839138401384113842138431384413845138461384713848138491385013851138521385313854138551385613857138581385913860138611386213863138641386513866138671386813869138701387113872138731387413875138761387713878138791388013881138821388313884138851388613887138881388913890138911389213893138941389513896138971389813899139001390113902139031390413905139061390713908139091391013911139121391313914139151391613917139181391913920139211392213923139241392513926139271392813929139301393113932139331393413935139361393713938139391394013941139421394313944139451394613947139481394913950139511395213953139541395513956139571395813959139601396113962139631396413965139661396713968139691397013971139721397313974139751397613977139781397913980139811398213983139841398513986139871398813989139901399113992139931399413995139961399713998139991400014001140021400314004140051400614007140081400914010140111401214013140141401514016140171401814019140201402114022140231402414025140261402714028140291403014031140321403314034140351403614037140381403914040140411404214043140441404514046140471404814049140501405114052140531405414055140561405714058140591406014061140621406314064140651406614067140681406914070140711407214073140741407514076140771407814079140801408114082140831408414085140861408714088140891409014091140921409314094140951409614097140981409914100141011410214103141041410514106141071410814109141101411114112141131411414115141161411714118141191412014121141221412314124141251412614127141281412914130141311413214133141341413514136141371413814139141401414114142141431414414145141461414714148141491415014151141521415314154141551415614157141581415914160141611416214163141641416514166141671416814169141701417114172141731417414175141761417714178141791418014181141821418314184141851418614187141881418914190141911419214193141941419514196141971419814199142001420114202142031420414205142061420714208142091421014211142121421314214142151421614217142181421914220142211422214223142241422514226142271422814229142301423114232142331423414235142361423714238142391424014241142421424314244142451424614247142481424914250142511425214253142541425514256142571425814259142601426114262142631426414265142661426714268142691427014271142721427314274142751427614277142781427914280142811428214283142841428514286142871428814289142901429114292142931429414295142961429714298142991430014301143021430314304143051430614307143081430914310143111431214313143141431514316143171431814319143201432114322143231432414325143261432714328143291433014331143321433314334143351433614337143381433914340143411434214343143441434514346143471434814349143501435114352143531435414355143561435714358143591436014361143621436314364143651436614367143681436914370143711437214373143741437514376143771437814379143801438114382143831438414385143861438714388143891439014391143921439314394143951439614397143981439914400144011440214403
  1. @%:@! /bin/sh
  2. @%:@ Guess values for system-dependent variables and create Makefiles.
  3. @%:@ Generated by GNU Autoconf 2.68 for OPCUAServer 1.0.
  4. @%:@
  5. @%:@
  6. @%:@ Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
  7. @%:@ 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
  8. @%:@ Foundation, Inc.
  9. @%:@
  10. @%:@
  11. @%:@ This configure script is free software; the Free Software Foundation
  12. @%:@ gives unlimited permission to copy, distribute and modify it.
  13. ## -------------------- ##
  14. ## M4sh Initialization. ##
  15. ## -------------------- ##
  16. # Be more Bourne compatible
  17. DUALCASE=1; export DUALCASE # for MKS sh
  18. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  19. emulate sh
  20. NULLCMD=:
  21. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  22. # is contrary to our usage. Disable this feature.
  23. alias -g '${1+"$@"}'='"$@"'
  24. setopt NO_GLOB_SUBST
  25. else
  26. case `(set -o) 2>/dev/null` in @%:@(
  27. *posix*) :
  28. set -o posix ;; @%:@(
  29. *) :
  30. ;;
  31. esac
  32. fi
  33. as_nl='
  34. '
  35. export as_nl
  36. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  37. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  38. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  39. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  40. # Prefer a ksh shell builtin over an external printf program on Solaris,
  41. # but without wasting forks for bash or zsh.
  42. if test -z "$BASH_VERSION$ZSH_VERSION" \
  43. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  44. as_echo='print -r --'
  45. as_echo_n='print -rn --'
  46. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  47. as_echo='printf %s\n'
  48. as_echo_n='printf %s'
  49. else
  50. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  51. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  52. as_echo_n='/usr/ucb/echo -n'
  53. else
  54. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  55. as_echo_n_body='eval
  56. arg=$1;
  57. case $arg in @%:@(
  58. *"$as_nl"*)
  59. expr "X$arg" : "X\\(.*\\)$as_nl";
  60. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  61. esac;
  62. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  63. '
  64. export as_echo_n_body
  65. as_echo_n='sh -c $as_echo_n_body as_echo'
  66. fi
  67. export as_echo_body
  68. as_echo='sh -c $as_echo_body as_echo'
  69. fi
  70. # The user is always right.
  71. if test "${PATH_SEPARATOR+set}" != set; then
  72. PATH_SEPARATOR=:
  73. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  74. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  75. PATH_SEPARATOR=';'
  76. }
  77. fi
  78. # IFS
  79. # We need space, tab and new line, in precisely that order. Quoting is
  80. # there to prevent editors from complaining about space-tab.
  81. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  82. # splitting by setting IFS to empty value.)
  83. IFS=" "" $as_nl"
  84. # Find who we are. Look in the path if we contain no directory separator.
  85. as_myself=
  86. case $0 in @%:@((
  87. *[\\/]* ) as_myself=$0 ;;
  88. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  89. for as_dir in $PATH
  90. do
  91. IFS=$as_save_IFS
  92. test -z "$as_dir" && as_dir=.
  93. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  94. done
  95. IFS=$as_save_IFS
  96. ;;
  97. esac
  98. # We did not find ourselves, most probably we were run as `sh COMMAND'
  99. # in which case we are not to be found in the path.
  100. if test "x$as_myself" = x; then
  101. as_myself=$0
  102. fi
  103. if test ! -f "$as_myself"; then
  104. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  105. exit 1
  106. fi
  107. # Unset variables that we do not need and which cause bugs (e.g. in
  108. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  109. # suppresses any "Segmentation fault" message there. '((' could
  110. # trigger a bug in pdksh 5.2.14.
  111. for as_var in BASH_ENV ENV MAIL MAILPATH
  112. do eval test x\${$as_var+set} = xset \
  113. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  114. done
  115. PS1='$ '
  116. PS2='> '
  117. PS4='+ '
  118. # NLS nuisances.
  119. LC_ALL=C
  120. export LC_ALL
  121. LANGUAGE=C
  122. export LANGUAGE
  123. # CDPATH.
  124. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  125. if test "x$CONFIG_SHELL" = x; then
  126. as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
  127. emulate sh
  128. NULLCMD=:
  129. # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
  130. # is contrary to our usage. Disable this feature.
  131. alias -g '\${1+\"\$@\"}'='\"\$@\"'
  132. setopt NO_GLOB_SUBST
  133. else
  134. case \`(set -o) 2>/dev/null\` in @%:@(
  135. *posix*) :
  136. set -o posix ;; @%:@(
  137. *) :
  138. ;;
  139. esac
  140. fi
  141. "
  142. as_required="as_fn_return () { (exit \$1); }
  143. as_fn_success () { as_fn_return 0; }
  144. as_fn_failure () { as_fn_return 1; }
  145. as_fn_ret_success () { return 0; }
  146. as_fn_ret_failure () { return 1; }
  147. exitcode=0
  148. as_fn_success || { exitcode=1; echo as_fn_success failed.; }
  149. as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
  150. as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
  151. as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
  152. if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
  153. else
  154. exitcode=1; echo positional parameters were not saved.
  155. fi
  156. test x\$exitcode = x0 || exit 1"
  157. as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
  158. as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
  159. eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
  160. test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
  161. test \$(( 1 + 1 )) = 2 || exit 1
  162. test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
  163. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  164. ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
  165. ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
  166. PATH=/empty FPATH=/empty; export PATH FPATH
  167. test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
  168. || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
  169. if (eval "$as_required") 2>/dev/null; then :
  170. as_have_required=yes
  171. else
  172. as_have_required=no
  173. fi
  174. if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
  175. else
  176. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  177. as_found=false
  178. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  179. do
  180. IFS=$as_save_IFS
  181. test -z "$as_dir" && as_dir=.
  182. as_found=:
  183. case $as_dir in @%:@(
  184. /*)
  185. for as_base in sh bash ksh sh5; do
  186. # Try only shells that exist, to save several forks.
  187. as_shell=$as_dir/$as_base
  188. if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
  189. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
  190. CONFIG_SHELL=$as_shell as_have_required=yes
  191. if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
  192. break 2
  193. fi
  194. fi
  195. done;;
  196. esac
  197. as_found=false
  198. done
  199. $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
  200. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
  201. CONFIG_SHELL=$SHELL as_have_required=yes
  202. fi; }
  203. IFS=$as_save_IFS
  204. if test "x$CONFIG_SHELL" != x; then :
  205. # We cannot yet assume a decent shell, so we have to provide a
  206. # neutralization value for shells without unset; and this also
  207. # works around shells that cannot unset nonexistent variables.
  208. # Preserve -v and -x to the replacement shell.
  209. BASH_ENV=/dev/null
  210. ENV=/dev/null
  211. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  212. export CONFIG_SHELL
  213. case $- in @%:@ ((((
  214. *v*x* | *x*v* ) as_opts=-vx ;;
  215. *v* ) as_opts=-v ;;
  216. *x* ) as_opts=-x ;;
  217. * ) as_opts= ;;
  218. esac
  219. exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
  220. fi
  221. if test x$as_have_required = xno; then :
  222. $as_echo "$0: This script requires a shell more modern than all"
  223. $as_echo "$0: the shells that I found on your system."
  224. if test x${ZSH_VERSION+set} = xset ; then
  225. $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
  226. $as_echo "$0: be upgraded to zsh 4.3.4 or later."
  227. else
  228. $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
  229. $0: including any error possibly output before this
  230. $0: message. Then install a modern shell, or manually run
  231. $0: the script under such a shell if you do have one."
  232. fi
  233. exit 1
  234. fi
  235. fi
  236. fi
  237. SHELL=${CONFIG_SHELL-/bin/sh}
  238. export SHELL
  239. # Unset more variables known to interfere with behavior of common tools.
  240. CLICOLOR_FORCE= GREP_OPTIONS=
  241. unset CLICOLOR_FORCE GREP_OPTIONS
  242. ## --------------------- ##
  243. ## M4sh Shell Functions. ##
  244. ## --------------------- ##
  245. @%:@ as_fn_unset VAR
  246. @%:@ ---------------
  247. @%:@ Portably unset VAR.
  248. as_fn_unset ()
  249. {
  250. { eval $1=; unset $1;}
  251. }
  252. as_unset=as_fn_unset
  253. @%:@ as_fn_set_status STATUS
  254. @%:@ -----------------------
  255. @%:@ Set @S|@? to STATUS, without forking.
  256. as_fn_set_status ()
  257. {
  258. return $1
  259. } @%:@ as_fn_set_status
  260. @%:@ as_fn_exit STATUS
  261. @%:@ -----------------
  262. @%:@ Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  263. as_fn_exit ()
  264. {
  265. set +e
  266. as_fn_set_status $1
  267. exit $1
  268. } @%:@ as_fn_exit
  269. @%:@ as_fn_mkdir_p
  270. @%:@ -------------
  271. @%:@ Create "@S|@as_dir" as a directory, including parents if necessary.
  272. as_fn_mkdir_p ()
  273. {
  274. case $as_dir in #(
  275. -*) as_dir=./$as_dir;;
  276. esac
  277. test -d "$as_dir" || eval $as_mkdir_p || {
  278. as_dirs=
  279. while :; do
  280. case $as_dir in #(
  281. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  282. *) as_qdir=$as_dir;;
  283. esac
  284. as_dirs="'$as_qdir' $as_dirs"
  285. as_dir=`$as_dirname -- "$as_dir" ||
  286. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  287. X"$as_dir" : 'X\(//\)[^/]' \| \
  288. X"$as_dir" : 'X\(//\)$' \| \
  289. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  290. $as_echo X"$as_dir" |
  291. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  292. s//\1/
  293. q
  294. }
  295. /^X\(\/\/\)[^/].*/{
  296. s//\1/
  297. q
  298. }
  299. /^X\(\/\/\)$/{
  300. s//\1/
  301. q
  302. }
  303. /^X\(\/\).*/{
  304. s//\1/
  305. q
  306. }
  307. s/.*/./; q'`
  308. test -d "$as_dir" && break
  309. done
  310. test -z "$as_dirs" || eval "mkdir $as_dirs"
  311. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  312. } @%:@ as_fn_mkdir_p
  313. @%:@ as_fn_append VAR VALUE
  314. @%:@ ----------------------
  315. @%:@ Append the text in VALUE to the end of the definition contained in VAR. Take
  316. @%:@ advantage of any shell optimizations that allow amortized linear growth over
  317. @%:@ repeated appends, instead of the typical quadratic growth present in naive
  318. @%:@ implementations.
  319. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  320. eval 'as_fn_append ()
  321. {
  322. eval $1+=\$2
  323. }'
  324. else
  325. as_fn_append ()
  326. {
  327. eval $1=\$$1\$2
  328. }
  329. fi # as_fn_append
  330. @%:@ as_fn_arith ARG...
  331. @%:@ ------------------
  332. @%:@ Perform arithmetic evaluation on the ARGs, and store the result in the
  333. @%:@ global @S|@as_val. Take advantage of shells that can avoid forks. The arguments
  334. @%:@ must be portable across @S|@(()) and expr.
  335. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  336. eval 'as_fn_arith ()
  337. {
  338. as_val=$(( $* ))
  339. }'
  340. else
  341. as_fn_arith ()
  342. {
  343. as_val=`expr "$@" || test $? -eq 1`
  344. }
  345. fi # as_fn_arith
  346. @%:@ as_fn_error STATUS ERROR [LINENO LOG_FD]
  347. @%:@ ----------------------------------------
  348. @%:@ Output "`basename @S|@0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  349. @%:@ provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  350. @%:@ script with STATUS, using 1 if that was 0.
  351. as_fn_error ()
  352. {
  353. as_status=$1; test $as_status -eq 0 && as_status=1
  354. if test "$4"; then
  355. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  356. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  357. fi
  358. $as_echo "$as_me: error: $2" >&2
  359. as_fn_exit $as_status
  360. } @%:@ as_fn_error
  361. if expr a : '\(a\)' >/dev/null 2>&1 &&
  362. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  363. as_expr=expr
  364. else
  365. as_expr=false
  366. fi
  367. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  368. as_basename=basename
  369. else
  370. as_basename=false
  371. fi
  372. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  373. as_dirname=dirname
  374. else
  375. as_dirname=false
  376. fi
  377. as_me=`$as_basename -- "$0" ||
  378. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  379. X"$0" : 'X\(//\)$' \| \
  380. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  381. $as_echo X/"$0" |
  382. sed '/^.*\/\([^/][^/]*\)\/*$/{
  383. s//\1/
  384. q
  385. }
  386. /^X\/\(\/\/\)$/{
  387. s//\1/
  388. q
  389. }
  390. /^X\/\(\/\).*/{
  391. s//\1/
  392. q
  393. }
  394. s/.*/./; q'`
  395. # Avoid depending upon Character Ranges.
  396. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  397. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  398. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  399. as_cr_digits='0123456789'
  400. as_cr_alnum=$as_cr_Letters$as_cr_digits
  401. as_lineno_1=$LINENO as_lineno_1a=$LINENO
  402. as_lineno_2=$LINENO as_lineno_2a=$LINENO
  403. eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
  404. test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
  405. # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
  406. sed -n '
  407. p
  408. /[$]LINENO/=
  409. ' <$as_myself |
  410. sed '
  411. s/[$]LINENO.*/&-/
  412. t lineno
  413. b
  414. :lineno
  415. N
  416. :loop
  417. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  418. t loop
  419. s/-\n.*//
  420. ' >$as_me.lineno &&
  421. chmod +x "$as_me.lineno" ||
  422. { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
  423. # Don't try to exec as it changes $[0], causing all sort of problems
  424. # (the dirname of $[0] is not the place where we might find the
  425. # original and so on. Autoconf is especially sensitive to this).
  426. . "./$as_me.lineno"
  427. # Exit status is that of the last command.
  428. exit
  429. }
  430. ECHO_C= ECHO_N= ECHO_T=
  431. case `echo -n x` in @%:@(((((
  432. -n*)
  433. case `echo 'xy\c'` in
  434. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  435. xy) ECHO_C='\c';;
  436. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  437. ECHO_T=' ';;
  438. esac;;
  439. *)
  440. ECHO_N='-n';;
  441. esac
  442. rm -f conf$$ conf$$.exe conf$$.file
  443. if test -d conf$$.dir; then
  444. rm -f conf$$.dir/conf$$.file
  445. else
  446. rm -f conf$$.dir
  447. mkdir conf$$.dir 2>/dev/null
  448. fi
  449. if (echo >conf$$.file) 2>/dev/null; then
  450. if ln -s conf$$.file conf$$ 2>/dev/null; then
  451. as_ln_s='ln -s'
  452. # ... but there are two gotchas:
  453. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  454. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  455. # In both cases, we have to default to `cp -p'.
  456. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  457. as_ln_s='cp -p'
  458. elif ln conf$$.file conf$$ 2>/dev/null; then
  459. as_ln_s=ln
  460. else
  461. as_ln_s='cp -p'
  462. fi
  463. else
  464. as_ln_s='cp -p'
  465. fi
  466. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  467. rmdir conf$$.dir 2>/dev/null
  468. if mkdir -p . 2>/dev/null; then
  469. as_mkdir_p='mkdir -p "$as_dir"'
  470. else
  471. test -d ./-p && rmdir ./-p
  472. as_mkdir_p=false
  473. fi
  474. if test -x / >/dev/null 2>&1; then
  475. as_test_x='test -x'
  476. else
  477. if ls -dL / >/dev/null 2>&1; then
  478. as_ls_L_option=L
  479. else
  480. as_ls_L_option=
  481. fi
  482. as_test_x='
  483. eval sh -c '\''
  484. if test -d "$1"; then
  485. test -d "$1/.";
  486. else
  487. case $1 in @%:@(
  488. -*)set "./$1";;
  489. esac;
  490. case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in @%:@((
  491. ???[sx]*):;;*)false;;esac;fi
  492. '\'' sh
  493. '
  494. fi
  495. as_executable_p=$as_test_x
  496. # Sed expression to map a string onto a valid CPP name.
  497. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  498. # Sed expression to map a string onto a valid variable name.
  499. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  500. SHELL=${CONFIG_SHELL-/bin/sh}
  501. test -n "$DJDIR" || exec 7<&0 </dev/null
  502. exec 6>&1
  503. # Name of the host.
  504. # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
  505. # so uname gets run too.
  506. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  507. #
  508. # Initializations.
  509. #
  510. ac_default_prefix=/usr/local
  511. ac_clean_files=
  512. ac_config_libobj_dir=.
  513. LIB@&t@OBJS=
  514. cross_compiling=no
  515. subdirs=
  516. MFLAGS=
  517. MAKEFLAGS=
  518. # Identity of this package.
  519. PACKAGE_NAME='OPCUAServer'
  520. PACKAGE_TARNAME='opcuaserver'
  521. PACKAGE_VERSION='1.0'
  522. PACKAGE_STRING='OPCUAServer 1.0'
  523. PACKAGE_BUGREPORT=''
  524. PACKAGE_URL=''
  525. # Factoring default headers for most tests.
  526. ac_includes_default="\
  527. #include <stdio.h>
  528. #ifdef HAVE_SYS_TYPES_H
  529. # include <sys/types.h>
  530. #endif
  531. #ifdef HAVE_SYS_STAT_H
  532. # include <sys/stat.h>
  533. #endif
  534. #ifdef STDC_HEADERS
  535. # include <stdlib.h>
  536. # include <stddef.h>
  537. #else
  538. # ifdef HAVE_STDLIB_H
  539. # include <stdlib.h>
  540. # endif
  541. #endif
  542. #ifdef HAVE_STRING_H
  543. # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
  544. # include <memory.h>
  545. # endif
  546. # include <string.h>
  547. #endif
  548. #ifdef HAVE_STRINGS_H
  549. # include <strings.h>
  550. #endif
  551. #ifdef HAVE_INTTYPES_H
  552. # include <inttypes.h>
  553. #endif
  554. #ifdef HAVE_STDINT_H
  555. # include <stdint.h>
  556. #endif
  557. #ifdef HAVE_UNISTD_H
  558. # include <unistd.h>
  559. #endif"
  560. ac_subst_vars='am__EXEEXT_FALSE
  561. am__EXEEXT_TRUE
  562. LTLIBOBJS
  563. LIB@&t@OBJS
  564. OTOOL64
  565. OTOOL
  566. LIPO
  567. NMEDIT
  568. DSYMUTIL
  569. MANIFEST_TOOL
  570. RANLIB
  571. ac_ct_AR
  572. AR
  573. DLLTOOL
  574. OBJDUMP
  575. LN_S
  576. NM
  577. ac_ct_DUMPBIN
  578. DUMPBIN
  579. LD
  580. FGREP
  581. SED
  582. LIBTOOL
  583. HAVE_CHECK_FALSE
  584. HAVE_CHECK_TRUE
  585. CHECK_LIBS
  586. CHECK_CFLAGS
  587. EGREP
  588. GREP
  589. CPP
  590. am__fastdepCC_FALSE
  591. am__fastdepCC_TRUE
  592. CCDEPMODE
  593. am__nodep
  594. AMDEPBACKSLASH
  595. AMDEP_FALSE
  596. AMDEP_TRUE
  597. am__quote
  598. am__include
  599. DEPDIR
  600. OBJEXT
  601. EXEEXT
  602. ac_ct_CC
  603. CPPFLAGS
  604. LDFLAGS
  605. CFLAGS
  606. CC
  607. am__untar
  608. am__tar
  609. AMTAR
  610. am__leading_dot
  611. SET_MAKE
  612. AWK
  613. mkdir_p
  614. MKDIR_P
  615. INSTALL_STRIP_PROGRAM
  616. STRIP
  617. install_sh
  618. MAKEINFO
  619. AUTOHEADER
  620. AUTOMAKE
  621. AUTOCONF
  622. ACLOCAL
  623. VERSION
  624. PACKAGE
  625. CYGPATH_W
  626. am__isrc
  627. INSTALL_DATA
  628. INSTALL_SCRIPT
  629. INSTALL_PROGRAM
  630. target_os
  631. target_vendor
  632. target_cpu
  633. target
  634. host_os
  635. host_vendor
  636. host_cpu
  637. host
  638. build_os
  639. build_vendor
  640. build_cpu
  641. build
  642. target_alias
  643. host_alias
  644. build_alias
  645. LIBS
  646. ECHO_T
  647. ECHO_N
  648. ECHO_C
  649. DEFS
  650. mandir
  651. localedir
  652. libdir
  653. psdir
  654. pdfdir
  655. dvidir
  656. htmldir
  657. infodir
  658. docdir
  659. oldincludedir
  660. includedir
  661. localstatedir
  662. sharedstatedir
  663. sysconfdir
  664. datadir
  665. datarootdir
  666. libexecdir
  667. sbindir
  668. bindir
  669. program_transform_name
  670. prefix
  671. exec_prefix
  672. PACKAGE_URL
  673. PACKAGE_BUGREPORT
  674. PACKAGE_STRING
  675. PACKAGE_VERSION
  676. PACKAGE_TARNAME
  677. PACKAGE_NAME
  678. PATH_SEPARATOR
  679. SHELL'
  680. ac_subst_files=''
  681. ac_user_opts='
  682. enable_option_checking
  683. with_check
  684. enable_dependency_tracking
  685. enable_shared
  686. enable_static
  687. with_pic
  688. enable_fast_install
  689. with_gnu_ld
  690. with_sysroot
  691. enable_libtool_lock
  692. '
  693. ac_precious_vars='build_alias
  694. host_alias
  695. target_alias
  696. CC
  697. CFLAGS
  698. LDFLAGS
  699. LIBS
  700. CPPFLAGS
  701. CPP'
  702. # Initialize some variables set by options.
  703. ac_init_help=
  704. ac_init_version=false
  705. ac_unrecognized_opts=
  706. ac_unrecognized_sep=
  707. # The variables have the same names as the options, with
  708. # dashes changed to underlines.
  709. cache_file=/dev/null
  710. exec_prefix=NONE
  711. no_create=
  712. no_recursion=
  713. prefix=NONE
  714. program_prefix=NONE
  715. program_suffix=NONE
  716. program_transform_name=s,x,x,
  717. silent=
  718. site=
  719. srcdir=
  720. verbose=
  721. x_includes=NONE
  722. x_libraries=NONE
  723. # Installation directory options.
  724. # These are left unexpanded so users can "make install exec_prefix=/foo"
  725. # and all the variables that are supposed to be based on exec_prefix
  726. # by default will actually change.
  727. # Use braces instead of parens because sh, perl, etc. also accept them.
  728. # (The list follows the same order as the GNU Coding Standards.)
  729. bindir='${exec_prefix}/bin'
  730. sbindir='${exec_prefix}/sbin'
  731. libexecdir='${exec_prefix}/libexec'
  732. datarootdir='${prefix}/share'
  733. datadir='${datarootdir}'
  734. sysconfdir='${prefix}/etc'
  735. sharedstatedir='${prefix}/com'
  736. localstatedir='${prefix}/var'
  737. includedir='${prefix}/include'
  738. oldincludedir='/usr/include'
  739. docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
  740. infodir='${datarootdir}/info'
  741. htmldir='${docdir}'
  742. dvidir='${docdir}'
  743. pdfdir='${docdir}'
  744. psdir='${docdir}'
  745. libdir='${exec_prefix}/lib'
  746. localedir='${datarootdir}/locale'
  747. mandir='${datarootdir}/man'
  748. ac_prev=
  749. ac_dashdash=
  750. for ac_option
  751. do
  752. # If the previous option needs an argument, assign it.
  753. if test -n "$ac_prev"; then
  754. eval $ac_prev=\$ac_option
  755. ac_prev=
  756. continue
  757. fi
  758. case $ac_option in
  759. *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  760. *=) ac_optarg= ;;
  761. *) ac_optarg=yes ;;
  762. esac
  763. # Accept the important Cygnus configure options, so we can diagnose typos.
  764. case $ac_dashdash$ac_option in
  765. --)
  766. ac_dashdash=yes ;;
  767. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  768. ac_prev=bindir ;;
  769. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  770. bindir=$ac_optarg ;;
  771. -build | --build | --buil | --bui | --bu)
  772. ac_prev=build_alias ;;
  773. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  774. build_alias=$ac_optarg ;;
  775. -cache-file | --cache-file | --cache-fil | --cache-fi \
  776. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  777. ac_prev=cache_file ;;
  778. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  779. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  780. cache_file=$ac_optarg ;;
  781. --config-cache | -C)
  782. cache_file=config.cache ;;
  783. -datadir | --datadir | --datadi | --datad)
  784. ac_prev=datadir ;;
  785. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  786. datadir=$ac_optarg ;;
  787. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  788. | --dataroo | --dataro | --datar)
  789. ac_prev=datarootdir ;;
  790. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  791. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  792. datarootdir=$ac_optarg ;;
  793. -disable-* | --disable-*)
  794. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  795. # Reject names that are not valid shell variable names.
  796. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  797. as_fn_error $? "invalid feature name: $ac_useropt"
  798. ac_useropt_orig=$ac_useropt
  799. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  800. case $ac_user_opts in
  801. *"
  802. "enable_$ac_useropt"
  803. "*) ;;
  804. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  805. ac_unrecognized_sep=', ';;
  806. esac
  807. eval enable_$ac_useropt=no ;;
  808. -docdir | --docdir | --docdi | --doc | --do)
  809. ac_prev=docdir ;;
  810. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  811. docdir=$ac_optarg ;;
  812. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  813. ac_prev=dvidir ;;
  814. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  815. dvidir=$ac_optarg ;;
  816. -enable-* | --enable-*)
  817. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  818. # Reject names that are not valid shell variable names.
  819. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  820. as_fn_error $? "invalid feature name: $ac_useropt"
  821. ac_useropt_orig=$ac_useropt
  822. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  823. case $ac_user_opts in
  824. *"
  825. "enable_$ac_useropt"
  826. "*) ;;
  827. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  828. ac_unrecognized_sep=', ';;
  829. esac
  830. eval enable_$ac_useropt=\$ac_optarg ;;
  831. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  832. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  833. | --exec | --exe | --ex)
  834. ac_prev=exec_prefix ;;
  835. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  836. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  837. | --exec=* | --exe=* | --ex=*)
  838. exec_prefix=$ac_optarg ;;
  839. -gas | --gas | --ga | --g)
  840. # Obsolete; use --with-gas.
  841. with_gas=yes ;;
  842. -help | --help | --hel | --he | -h)
  843. ac_init_help=long ;;
  844. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  845. ac_init_help=recursive ;;
  846. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  847. ac_init_help=short ;;
  848. -host | --host | --hos | --ho)
  849. ac_prev=host_alias ;;
  850. -host=* | --host=* | --hos=* | --ho=*)
  851. host_alias=$ac_optarg ;;
  852. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  853. ac_prev=htmldir ;;
  854. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  855. | --ht=*)
  856. htmldir=$ac_optarg ;;
  857. -includedir | --includedir | --includedi | --included | --include \
  858. | --includ | --inclu | --incl | --inc)
  859. ac_prev=includedir ;;
  860. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  861. | --includ=* | --inclu=* | --incl=* | --inc=*)
  862. includedir=$ac_optarg ;;
  863. -infodir | --infodir | --infodi | --infod | --info | --inf)
  864. ac_prev=infodir ;;
  865. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  866. infodir=$ac_optarg ;;
  867. -libdir | --libdir | --libdi | --libd)
  868. ac_prev=libdir ;;
  869. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  870. libdir=$ac_optarg ;;
  871. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  872. | --libexe | --libex | --libe)
  873. ac_prev=libexecdir ;;
  874. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  875. | --libexe=* | --libex=* | --libe=*)
  876. libexecdir=$ac_optarg ;;
  877. -localedir | --localedir | --localedi | --localed | --locale)
  878. ac_prev=localedir ;;
  879. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  880. localedir=$ac_optarg ;;
  881. -localstatedir | --localstatedir | --localstatedi | --localstated \
  882. | --localstate | --localstat | --localsta | --localst | --locals)
  883. ac_prev=localstatedir ;;
  884. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  885. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  886. localstatedir=$ac_optarg ;;
  887. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  888. ac_prev=mandir ;;
  889. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  890. mandir=$ac_optarg ;;
  891. -nfp | --nfp | --nf)
  892. # Obsolete; use --without-fp.
  893. with_fp=no ;;
  894. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  895. | --no-cr | --no-c | -n)
  896. no_create=yes ;;
  897. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  898. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  899. no_recursion=yes ;;
  900. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  901. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  902. | --oldin | --oldi | --old | --ol | --o)
  903. ac_prev=oldincludedir ;;
  904. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  905. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  906. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  907. oldincludedir=$ac_optarg ;;
  908. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  909. ac_prev=prefix ;;
  910. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  911. prefix=$ac_optarg ;;
  912. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  913. | --program-pre | --program-pr | --program-p)
  914. ac_prev=program_prefix ;;
  915. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  916. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  917. program_prefix=$ac_optarg ;;
  918. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  919. | --program-suf | --program-su | --program-s)
  920. ac_prev=program_suffix ;;
  921. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  922. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  923. program_suffix=$ac_optarg ;;
  924. -program-transform-name | --program-transform-name \
  925. | --program-transform-nam | --program-transform-na \
  926. | --program-transform-n | --program-transform- \
  927. | --program-transform | --program-transfor \
  928. | --program-transfo | --program-transf \
  929. | --program-trans | --program-tran \
  930. | --progr-tra | --program-tr | --program-t)
  931. ac_prev=program_transform_name ;;
  932. -program-transform-name=* | --program-transform-name=* \
  933. | --program-transform-nam=* | --program-transform-na=* \
  934. | --program-transform-n=* | --program-transform-=* \
  935. | --program-transform=* | --program-transfor=* \
  936. | --program-transfo=* | --program-transf=* \
  937. | --program-trans=* | --program-tran=* \
  938. | --progr-tra=* | --program-tr=* | --program-t=*)
  939. program_transform_name=$ac_optarg ;;
  940. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  941. ac_prev=pdfdir ;;
  942. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  943. pdfdir=$ac_optarg ;;
  944. -psdir | --psdir | --psdi | --psd | --ps)
  945. ac_prev=psdir ;;
  946. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  947. psdir=$ac_optarg ;;
  948. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  949. | -silent | --silent | --silen | --sile | --sil)
  950. silent=yes ;;
  951. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  952. ac_prev=sbindir ;;
  953. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  954. | --sbi=* | --sb=*)
  955. sbindir=$ac_optarg ;;
  956. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  957. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  958. | --sharedst | --shareds | --shared | --share | --shar \
  959. | --sha | --sh)
  960. ac_prev=sharedstatedir ;;
  961. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  962. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  963. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  964. | --sha=* | --sh=*)
  965. sharedstatedir=$ac_optarg ;;
  966. -site | --site | --sit)
  967. ac_prev=site ;;
  968. -site=* | --site=* | --sit=*)
  969. site=$ac_optarg ;;
  970. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  971. ac_prev=srcdir ;;
  972. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  973. srcdir=$ac_optarg ;;
  974. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  975. | --syscon | --sysco | --sysc | --sys | --sy)
  976. ac_prev=sysconfdir ;;
  977. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  978. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  979. sysconfdir=$ac_optarg ;;
  980. -target | --target | --targe | --targ | --tar | --ta | --t)
  981. ac_prev=target_alias ;;
  982. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  983. target_alias=$ac_optarg ;;
  984. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  985. verbose=yes ;;
  986. -version | --version | --versio | --versi | --vers | -V)
  987. ac_init_version=: ;;
  988. -with-* | --with-*)
  989. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  990. # Reject names that are not valid shell variable names.
  991. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  992. as_fn_error $? "invalid package name: $ac_useropt"
  993. ac_useropt_orig=$ac_useropt
  994. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  995. case $ac_user_opts in
  996. *"
  997. "with_$ac_useropt"
  998. "*) ;;
  999. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  1000. ac_unrecognized_sep=', ';;
  1001. esac
  1002. eval with_$ac_useropt=\$ac_optarg ;;
  1003. -without-* | --without-*)
  1004. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1005. # Reject names that are not valid shell variable names.
  1006. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1007. as_fn_error $? "invalid package name: $ac_useropt"
  1008. ac_useropt_orig=$ac_useropt
  1009. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1010. case $ac_user_opts in
  1011. *"
  1012. "with_$ac_useropt"
  1013. "*) ;;
  1014. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  1015. ac_unrecognized_sep=', ';;
  1016. esac
  1017. eval with_$ac_useropt=no ;;
  1018. --x)
  1019. # Obsolete; use --with-x.
  1020. with_x=yes ;;
  1021. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1022. | --x-incl | --x-inc | --x-in | --x-i)
  1023. ac_prev=x_includes ;;
  1024. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1025. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1026. x_includes=$ac_optarg ;;
  1027. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1028. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1029. ac_prev=x_libraries ;;
  1030. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1031. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1032. x_libraries=$ac_optarg ;;
  1033. -*) as_fn_error $? "unrecognized option: \`$ac_option'
  1034. Try \`$0 --help' for more information"
  1035. ;;
  1036. *=*)
  1037. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1038. # Reject names that are not valid shell variable names.
  1039. case $ac_envvar in #(
  1040. '' | [0-9]* | *[!_$as_cr_alnum]* )
  1041. as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
  1042. esac
  1043. eval $ac_envvar=\$ac_optarg
  1044. export $ac_envvar ;;
  1045. *)
  1046. # FIXME: should be removed in autoconf 3.0.
  1047. $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1048. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1049. $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1050. : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
  1051. ;;
  1052. esac
  1053. done
  1054. if test -n "$ac_prev"; then
  1055. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1056. as_fn_error $? "missing argument to $ac_option"
  1057. fi
  1058. if test -n "$ac_unrecognized_opts"; then
  1059. case $enable_option_checking in
  1060. no) ;;
  1061. fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
  1062. *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1063. esac
  1064. fi
  1065. # Check all directory arguments for consistency.
  1066. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1067. datadir sysconfdir sharedstatedir localstatedir includedir \
  1068. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1069. libdir localedir mandir
  1070. do
  1071. eval ac_val=\$$ac_var
  1072. # Remove trailing slashes.
  1073. case $ac_val in
  1074. */ )
  1075. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1076. eval $ac_var=\$ac_val;;
  1077. esac
  1078. # Be sure to have absolute directory names.
  1079. case $ac_val in
  1080. [\\/$]* | ?:[\\/]* ) continue;;
  1081. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1082. esac
  1083. as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
  1084. done
  1085. # There might be people who depend on the old broken behavior: `$host'
  1086. # used to hold the argument of --host etc.
  1087. # FIXME: To remove some day.
  1088. build=$build_alias
  1089. host=$host_alias
  1090. target=$target_alias
  1091. # FIXME: To remove some day.
  1092. if test "x$host_alias" != x; then
  1093. if test "x$build_alias" = x; then
  1094. cross_compiling=maybe
  1095. $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
  1096. If a cross compiler is detected then cross compile mode will be used" >&2
  1097. elif test "x$build_alias" != "x$host_alias"; then
  1098. cross_compiling=yes
  1099. fi
  1100. fi
  1101. ac_tool_prefix=
  1102. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1103. test "$silent" = yes && exec 6>/dev/null
  1104. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1105. ac_ls_di=`ls -di .` &&
  1106. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1107. as_fn_error $? "working directory cannot be determined"
  1108. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1109. as_fn_error $? "pwd does not report name of working directory"
  1110. # Find the source files, if location was not specified.
  1111. if test -z "$srcdir"; then
  1112. ac_srcdir_defaulted=yes
  1113. # Try the directory containing this script, then the parent directory.
  1114. ac_confdir=`$as_dirname -- "$as_myself" ||
  1115. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1116. X"$as_myself" : 'X\(//\)[^/]' \| \
  1117. X"$as_myself" : 'X\(//\)$' \| \
  1118. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1119. $as_echo X"$as_myself" |
  1120. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1121. s//\1/
  1122. q
  1123. }
  1124. /^X\(\/\/\)[^/].*/{
  1125. s//\1/
  1126. q
  1127. }
  1128. /^X\(\/\/\)$/{
  1129. s//\1/
  1130. q
  1131. }
  1132. /^X\(\/\).*/{
  1133. s//\1/
  1134. q
  1135. }
  1136. s/.*/./; q'`
  1137. srcdir=$ac_confdir
  1138. if test ! -r "$srcdir/$ac_unique_file"; then
  1139. srcdir=..
  1140. fi
  1141. else
  1142. ac_srcdir_defaulted=no
  1143. fi
  1144. if test ! -r "$srcdir/$ac_unique_file"; then
  1145. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1146. as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
  1147. fi
  1148. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1149. ac_abs_confdir=`(
  1150. cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
  1151. pwd)`
  1152. # When building in place, set srcdir=.
  1153. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1154. srcdir=.
  1155. fi
  1156. # Remove unnecessary trailing slashes from srcdir.
  1157. # Double slashes in file names in object file debugging info
  1158. # mess up M-x gdb in Emacs.
  1159. case $srcdir in
  1160. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1161. esac
  1162. for ac_var in $ac_precious_vars; do
  1163. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1164. eval ac_env_${ac_var}_value=\$${ac_var}
  1165. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1166. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1167. done
  1168. #
  1169. # Report the --help message.
  1170. #
  1171. if test "$ac_init_help" = "long"; then
  1172. # Omit some internal or obsolete options to make the list less imposing.
  1173. # This message is too long to be a string in the A/UX 3.1 sh.
  1174. cat <<_ACEOF
  1175. \`configure' configures OPCUAServer 1.0 to adapt to many kinds of systems.
  1176. Usage: $0 [OPTION]... [VAR=VALUE]...
  1177. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1178. VAR=VALUE. See below for descriptions of some of the useful variables.
  1179. Defaults for the options are specified in brackets.
  1180. Configuration:
  1181. -h, --help display this help and exit
  1182. --help=short display options specific to this package
  1183. --help=recursive display the short help of all the included packages
  1184. -V, --version display version information and exit
  1185. -q, --quiet, --silent do not print \`checking ...' messages
  1186. --cache-file=FILE cache test results in FILE [disabled]
  1187. -C, --config-cache alias for \`--cache-file=config.cache'
  1188. -n, --no-create do not create output files
  1189. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1190. Installation directories:
  1191. --prefix=PREFIX install architecture-independent files in PREFIX
  1192. @<:@@S|@ac_default_prefix@:>@
  1193. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1194. @<:@PREFIX@:>@
  1195. By default, \`make install' will install all the files in
  1196. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1197. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1198. for instance \`--prefix=\$HOME'.
  1199. For better control, use the options below.
  1200. Fine tuning of the installation directories:
  1201. --bindir=DIR user executables [EPREFIX/bin]
  1202. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1203. --libexecdir=DIR program executables [EPREFIX/libexec]
  1204. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1205. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1206. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1207. --libdir=DIR object code libraries [EPREFIX/lib]
  1208. --includedir=DIR C header files [PREFIX/include]
  1209. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1210. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1211. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1212. --infodir=DIR info documentation [DATAROOTDIR/info]
  1213. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1214. --mandir=DIR man documentation [DATAROOTDIR/man]
  1215. --docdir=DIR documentation root @<:@DATAROOTDIR/doc/opcuaserver@:>@
  1216. --htmldir=DIR html documentation [DOCDIR]
  1217. --dvidir=DIR dvi documentation [DOCDIR]
  1218. --pdfdir=DIR pdf documentation [DOCDIR]
  1219. --psdir=DIR ps documentation [DOCDIR]
  1220. _ACEOF
  1221. cat <<\_ACEOF
  1222. Program names:
  1223. --program-prefix=PREFIX prepend PREFIX to installed program names
  1224. --program-suffix=SUFFIX append SUFFIX to installed program names
  1225. --program-transform-name=PROGRAM run sed PROGRAM on installed program names
  1226. System types:
  1227. --build=BUILD configure for building on BUILD [guessed]
  1228. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1229. --target=TARGET configure for building compilers for TARGET [HOST]
  1230. _ACEOF
  1231. fi
  1232. if test -n "$ac_init_help"; then
  1233. case $ac_init_help in
  1234. short | recursive ) echo "Configuration of OPCUAServer 1.0:";;
  1235. esac
  1236. cat <<\_ACEOF
  1237. Optional Features:
  1238. --disable-option-checking ignore unrecognized --enable/--with options
  1239. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1240. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1241. --disable-dependency-tracking speeds up one-time build
  1242. --enable-dependency-tracking do not reject slow dependency extractors
  1243. --enable-shared@<:@=PKGS@:>@ build shared libraries @<:@default=yes@:>@
  1244. --enable-static@<:@=PKGS@:>@ build static libraries @<:@default=yes@:>@
  1245. --enable-fast-install@<:@=PKGS@:>@
  1246. optimize for fast installation @<:@default=yes@:>@
  1247. --disable-libtool-lock avoid locking (might break parallel builds)
  1248. Optional Packages:
  1249. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1250. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1251. --with-check=PATH prefix where check is installed default=auto
  1252. --with-pic@<:@=PKGS@:>@ try to use only PIC/non-PIC objects @<:@default=use
  1253. both@:>@
  1254. --with-gnu-ld assume the C compiler uses GNU ld @<:@default=no@:>@
  1255. --with-sysroot=DIR Search for dependent libraries within DIR
  1256. (or the compiler's sysroot if not specified).
  1257. Some influential environment variables:
  1258. CC C compiler command
  1259. CFLAGS C compiler flags
  1260. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1261. nonstandard directory <lib dir>
  1262. LIBS libraries to pass to the linker, e.g. -l<library>
  1263. CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
  1264. you have headers in a nonstandard directory <include dir>
  1265. CPP C preprocessor
  1266. Use these variables to override the choices made by `configure' or to help
  1267. it to find libraries and programs with nonstandard names/locations.
  1268. Report bugs to the package provider.
  1269. _ACEOF
  1270. ac_status=$?
  1271. fi
  1272. if test "$ac_init_help" = "recursive"; then
  1273. # If there are subdirs, report their specific --help.
  1274. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1275. test -d "$ac_dir" ||
  1276. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1277. continue
  1278. ac_builddir=.
  1279. case "$ac_dir" in
  1280. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1281. *)
  1282. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  1283. # A ".." for each directory in $ac_dir_suffix.
  1284. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1285. case $ac_top_builddir_sub in
  1286. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1287. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1288. esac ;;
  1289. esac
  1290. ac_abs_top_builddir=$ac_pwd
  1291. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1292. # for backward compatibility:
  1293. ac_top_builddir=$ac_top_build_prefix
  1294. case $srcdir in
  1295. .) # We are building in place.
  1296. ac_srcdir=.
  1297. ac_top_srcdir=$ac_top_builddir_sub
  1298. ac_abs_top_srcdir=$ac_pwd ;;
  1299. [\\/]* | ?:[\\/]* ) # Absolute name.
  1300. ac_srcdir=$srcdir$ac_dir_suffix;
  1301. ac_top_srcdir=$srcdir
  1302. ac_abs_top_srcdir=$srcdir ;;
  1303. *) # Relative name.
  1304. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1305. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1306. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1307. esac
  1308. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1309. cd "$ac_dir" || { ac_status=$?; continue; }
  1310. # Check for guested configure.
  1311. if test -f "$ac_srcdir/configure.gnu"; then
  1312. echo &&
  1313. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1314. elif test -f "$ac_srcdir/configure"; then
  1315. echo &&
  1316. $SHELL "$ac_srcdir/configure" --help=recursive
  1317. else
  1318. $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1319. fi || ac_status=$?
  1320. cd "$ac_pwd" || { ac_status=$?; break; }
  1321. done
  1322. fi
  1323. test -n "$ac_init_help" && exit $ac_status
  1324. if $ac_init_version; then
  1325. cat <<\_ACEOF
  1326. OPCUAServer configure 1.0
  1327. generated by GNU Autoconf 2.68
  1328. Copyright (C) 2010 Free Software Foundation, Inc.
  1329. This configure script is free software; the Free Software Foundation
  1330. gives unlimited permission to copy, distribute and modify it.
  1331. _ACEOF
  1332. exit
  1333. fi
  1334. ## ------------------------ ##
  1335. ## Autoconf initialization. ##
  1336. ## ------------------------ ##
  1337. @%:@ ac_fn_c_try_compile LINENO
  1338. @%:@ --------------------------
  1339. @%:@ Try to compile conftest.@S|@ac_ext, and return whether this succeeded.
  1340. ac_fn_c_try_compile ()
  1341. {
  1342. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1343. rm -f conftest.$ac_objext
  1344. if { { ac_try="$ac_compile"
  1345. case "(($ac_try" in
  1346. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1347. *) ac_try_echo=$ac_try;;
  1348. esac
  1349. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1350. $as_echo "$ac_try_echo"; } >&5
  1351. (eval "$ac_compile") 2>conftest.err
  1352. ac_status=$?
  1353. if test -s conftest.err; then
  1354. grep -v '^ *+' conftest.err >conftest.er1
  1355. cat conftest.er1 >&5
  1356. mv -f conftest.er1 conftest.err
  1357. fi
  1358. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1359. test $ac_status = 0; } && {
  1360. test -z "$ac_c_werror_flag" ||
  1361. test ! -s conftest.err
  1362. } && test -s conftest.$ac_objext; then :
  1363. ac_retval=0
  1364. else
  1365. $as_echo "$as_me: failed program was:" >&5
  1366. sed 's/^/| /' conftest.$ac_ext >&5
  1367. ac_retval=1
  1368. fi
  1369. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1370. as_fn_set_status $ac_retval
  1371. } @%:@ ac_fn_c_try_compile
  1372. @%:@ ac_fn_c_try_cpp LINENO
  1373. @%:@ ----------------------
  1374. @%:@ Try to preprocess conftest.@S|@ac_ext, and return whether this succeeded.
  1375. ac_fn_c_try_cpp ()
  1376. {
  1377. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1378. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1379. case "(($ac_try" in
  1380. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1381. *) ac_try_echo=$ac_try;;
  1382. esac
  1383. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1384. $as_echo "$ac_try_echo"; } >&5
  1385. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1386. ac_status=$?
  1387. if test -s conftest.err; then
  1388. grep -v '^ *+' conftest.err >conftest.er1
  1389. cat conftest.er1 >&5
  1390. mv -f conftest.er1 conftest.err
  1391. fi
  1392. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1393. test $ac_status = 0; } > conftest.i && {
  1394. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  1395. test ! -s conftest.err
  1396. }; then :
  1397. ac_retval=0
  1398. else
  1399. $as_echo "$as_me: failed program was:" >&5
  1400. sed 's/^/| /' conftest.$ac_ext >&5
  1401. ac_retval=1
  1402. fi
  1403. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1404. as_fn_set_status $ac_retval
  1405. } @%:@ ac_fn_c_try_cpp
  1406. @%:@ ac_fn_c_try_run LINENO
  1407. @%:@ ----------------------
  1408. @%:@ Try to link conftest.@S|@ac_ext, and return whether this succeeded. Assumes
  1409. @%:@ that executables *can* be run.
  1410. ac_fn_c_try_run ()
  1411. {
  1412. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1413. if { { ac_try="$ac_link"
  1414. case "(($ac_try" in
  1415. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1416. *) ac_try_echo=$ac_try;;
  1417. esac
  1418. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1419. $as_echo "$ac_try_echo"; } >&5
  1420. (eval "$ac_link") 2>&5
  1421. ac_status=$?
  1422. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1423. test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  1424. { { case "(($ac_try" in
  1425. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1426. *) ac_try_echo=$ac_try;;
  1427. esac
  1428. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1429. $as_echo "$ac_try_echo"; } >&5
  1430. (eval "$ac_try") 2>&5
  1431. ac_status=$?
  1432. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1433. test $ac_status = 0; }; }; then :
  1434. ac_retval=0
  1435. else
  1436. $as_echo "$as_me: program exited with status $ac_status" >&5
  1437. $as_echo "$as_me: failed program was:" >&5
  1438. sed 's/^/| /' conftest.$ac_ext >&5
  1439. ac_retval=$ac_status
  1440. fi
  1441. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1442. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1443. as_fn_set_status $ac_retval
  1444. } @%:@ ac_fn_c_try_run
  1445. @%:@ ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
  1446. @%:@ -------------------------------------------------------
  1447. @%:@ Tests whether HEADER exists and can be compiled using the include files in
  1448. @%:@ INCLUDES, setting the cache variable VAR accordingly.
  1449. ac_fn_c_check_header_compile ()
  1450. {
  1451. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1452. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1453. $as_echo_n "checking for $2... " >&6; }
  1454. if eval \${$3+:} false; then :
  1455. $as_echo_n "(cached) " >&6
  1456. else
  1457. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1458. /* end confdefs.h. */
  1459. $4
  1460. @%:@include <$2>
  1461. _ACEOF
  1462. if ac_fn_c_try_compile "$LINENO"; then :
  1463. eval "$3=yes"
  1464. else
  1465. eval "$3=no"
  1466. fi
  1467. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1468. fi
  1469. eval ac_res=\$$3
  1470. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1471. $as_echo "$ac_res" >&6; }
  1472. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1473. } @%:@ ac_fn_c_check_header_compile
  1474. @%:@ ac_fn_c_try_link LINENO
  1475. @%:@ -----------------------
  1476. @%:@ Try to link conftest.@S|@ac_ext, and return whether this succeeded.
  1477. ac_fn_c_try_link ()
  1478. {
  1479. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1480. rm -f conftest.$ac_objext conftest$ac_exeext
  1481. if { { ac_try="$ac_link"
  1482. case "(($ac_try" in
  1483. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1484. *) ac_try_echo=$ac_try;;
  1485. esac
  1486. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1487. $as_echo "$ac_try_echo"; } >&5
  1488. (eval "$ac_link") 2>conftest.err
  1489. ac_status=$?
  1490. if test -s conftest.err; then
  1491. grep -v '^ *+' conftest.err >conftest.er1
  1492. cat conftest.er1 >&5
  1493. mv -f conftest.er1 conftest.err
  1494. fi
  1495. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1496. test $ac_status = 0; } && {
  1497. test -z "$ac_c_werror_flag" ||
  1498. test ! -s conftest.err
  1499. } && test -s conftest$ac_exeext && {
  1500. test "$cross_compiling" = yes ||
  1501. $as_test_x conftest$ac_exeext
  1502. }; then :
  1503. ac_retval=0
  1504. else
  1505. $as_echo "$as_me: failed program was:" >&5
  1506. sed 's/^/| /' conftest.$ac_ext >&5
  1507. ac_retval=1
  1508. fi
  1509. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1510. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1511. # interfere with the next link command; also delete a directory that is
  1512. # left behind by Apple's compiler. We do this before executing the actions.
  1513. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1514. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1515. as_fn_set_status $ac_retval
  1516. } @%:@ ac_fn_c_try_link
  1517. @%:@ ac_fn_c_check_func LINENO FUNC VAR
  1518. @%:@ ----------------------------------
  1519. @%:@ Tests whether FUNC exists, setting the cache variable VAR accordingly
  1520. ac_fn_c_check_func ()
  1521. {
  1522. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1523. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1524. $as_echo_n "checking for $2... " >&6; }
  1525. if eval \${$3+:} false; then :
  1526. $as_echo_n "(cached) " >&6
  1527. else
  1528. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1529. /* end confdefs.h. */
  1530. /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
  1531. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  1532. #define $2 innocuous_$2
  1533. /* System header to define __stub macros and hopefully few prototypes,
  1534. which can conflict with char $2 (); below.
  1535. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  1536. <limits.h> exists even on freestanding compilers. */
  1537. #ifdef __STDC__
  1538. # include <limits.h>
  1539. #else
  1540. # include <assert.h>
  1541. #endif
  1542. #undef $2
  1543. /* Override any GCC internal prototype to avoid an error.
  1544. Use char because int might match the return type of a GCC
  1545. builtin and then its argument prototype would still apply. */
  1546. #ifdef __cplusplus
  1547. extern "C"
  1548. #endif
  1549. char $2 ();
  1550. /* The GNU C library defines this for functions which it implements
  1551. to always fail with ENOSYS. Some functions are actually named
  1552. something starting with __ and the normal name is an alias. */
  1553. #if defined __stub_$2 || defined __stub___$2
  1554. choke me
  1555. #endif
  1556. int
  1557. main ()
  1558. {
  1559. return $2 ();
  1560. ;
  1561. return 0;
  1562. }
  1563. _ACEOF
  1564. if ac_fn_c_try_link "$LINENO"; then :
  1565. eval "$3=yes"
  1566. else
  1567. eval "$3=no"
  1568. fi
  1569. rm -f core conftest.err conftest.$ac_objext \
  1570. conftest$ac_exeext conftest.$ac_ext
  1571. fi
  1572. eval ac_res=\$$3
  1573. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1574. $as_echo "$ac_res" >&6; }
  1575. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1576. } @%:@ ac_fn_c_check_func
  1577. cat >config.log <<_ACEOF
  1578. This file contains any messages produced by compilers while
  1579. running configure, to aid debugging if configure makes a mistake.
  1580. It was created by OPCUAServer $as_me 1.0, which was
  1581. generated by GNU Autoconf 2.68. Invocation command line was
  1582. $ $0 $@
  1583. _ACEOF
  1584. exec 5>>config.log
  1585. {
  1586. cat <<_ASUNAME
  1587. ## --------- ##
  1588. ## Platform. ##
  1589. ## --------- ##
  1590. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  1591. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  1592. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  1593. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  1594. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  1595. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  1596. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  1597. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  1598. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  1599. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  1600. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  1601. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  1602. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  1603. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  1604. _ASUNAME
  1605. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1606. for as_dir in $PATH
  1607. do
  1608. IFS=$as_save_IFS
  1609. test -z "$as_dir" && as_dir=.
  1610. $as_echo "PATH: $as_dir"
  1611. done
  1612. IFS=$as_save_IFS
  1613. } >&5
  1614. cat >&5 <<_ACEOF
  1615. ## ----------- ##
  1616. ## Core tests. ##
  1617. ## ----------- ##
  1618. _ACEOF
  1619. # Keep a trace of the command line.
  1620. # Strip out --no-create and --no-recursion so they do not pile up.
  1621. # Strip out --silent because we don't want to record it for future runs.
  1622. # Also quote any args containing shell meta-characters.
  1623. # Make two passes to allow for proper duplicate-argument suppression.
  1624. ac_configure_args=
  1625. ac_configure_args0=
  1626. ac_configure_args1=
  1627. ac_must_keep_next=false
  1628. for ac_pass in 1 2
  1629. do
  1630. for ac_arg
  1631. do
  1632. case $ac_arg in
  1633. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  1634. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1635. | -silent | --silent | --silen | --sile | --sil)
  1636. continue ;;
  1637. *\'*)
  1638. ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  1639. esac
  1640. case $ac_pass in
  1641. 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  1642. 2)
  1643. as_fn_append ac_configure_args1 " '$ac_arg'"
  1644. if test $ac_must_keep_next = true; then
  1645. ac_must_keep_next=false # Got value, back to normal.
  1646. else
  1647. case $ac_arg in
  1648. *=* | --config-cache | -C | -disable-* | --disable-* \
  1649. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  1650. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  1651. | -with-* | --with-* | -without-* | --without-* | --x)
  1652. case "$ac_configure_args0 " in
  1653. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  1654. esac
  1655. ;;
  1656. -* ) ac_must_keep_next=true ;;
  1657. esac
  1658. fi
  1659. as_fn_append ac_configure_args " '$ac_arg'"
  1660. ;;
  1661. esac
  1662. done
  1663. done
  1664. { ac_configure_args0=; unset ac_configure_args0;}
  1665. { ac_configure_args1=; unset ac_configure_args1;}
  1666. # When interrupted or exit'd, cleanup temporary files, and complete
  1667. # config.log. We remove comments because anyway the quotes in there
  1668. # would cause problems or look ugly.
  1669. # WARNING: Use '\'' to represent an apostrophe within the trap.
  1670. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  1671. trap 'exit_status=$?
  1672. # Save into config.log some information that might help in debugging.
  1673. {
  1674. echo
  1675. $as_echo "## ---------------- ##
  1676. ## Cache variables. ##
  1677. ## ---------------- ##"
  1678. echo
  1679. # The following way of writing the cache mishandles newlines in values,
  1680. (
  1681. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  1682. eval ac_val=\$$ac_var
  1683. case $ac_val in #(
  1684. *${as_nl}*)
  1685. case $ac_var in #(
  1686. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  1687. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  1688. esac
  1689. case $ac_var in #(
  1690. _ | IFS | as_nl) ;; #(
  1691. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  1692. *) { eval $ac_var=; unset $ac_var;} ;;
  1693. esac ;;
  1694. esac
  1695. done
  1696. (set) 2>&1 |
  1697. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  1698. *${as_nl}ac_space=\ *)
  1699. sed -n \
  1700. "s/'\''/'\''\\\\'\'''\''/g;
  1701. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  1702. ;; #(
  1703. *)
  1704. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  1705. ;;
  1706. esac |
  1707. sort
  1708. )
  1709. echo
  1710. $as_echo "## ----------------- ##
  1711. ## Output variables. ##
  1712. ## ----------------- ##"
  1713. echo
  1714. for ac_var in $ac_subst_vars
  1715. do
  1716. eval ac_val=\$$ac_var
  1717. case $ac_val in
  1718. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1719. esac
  1720. $as_echo "$ac_var='\''$ac_val'\''"
  1721. done | sort
  1722. echo
  1723. if test -n "$ac_subst_files"; then
  1724. $as_echo "## ------------------- ##
  1725. ## File substitutions. ##
  1726. ## ------------------- ##"
  1727. echo
  1728. for ac_var in $ac_subst_files
  1729. do
  1730. eval ac_val=\$$ac_var
  1731. case $ac_val in
  1732. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1733. esac
  1734. $as_echo "$ac_var='\''$ac_val'\''"
  1735. done | sort
  1736. echo
  1737. fi
  1738. if test -s confdefs.h; then
  1739. $as_echo "## ----------- ##
  1740. ## confdefs.h. ##
  1741. ## ----------- ##"
  1742. echo
  1743. cat confdefs.h
  1744. echo
  1745. fi
  1746. test "$ac_signal" != 0 &&
  1747. $as_echo "$as_me: caught signal $ac_signal"
  1748. $as_echo "$as_me: exit $exit_status"
  1749. } >&5
  1750. rm -f core *.core core.conftest.* &&
  1751. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  1752. exit $exit_status
  1753. ' 0
  1754. for ac_signal in 1 2 13 15; do
  1755. trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  1756. done
  1757. ac_signal=0
  1758. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  1759. rm -f -r conftest* confdefs.h
  1760. $as_echo "/* confdefs.h */" > confdefs.h
  1761. # Predefined preprocessor variables.
  1762. cat >>confdefs.h <<_ACEOF
  1763. @%:@define PACKAGE_NAME "$PACKAGE_NAME"
  1764. _ACEOF
  1765. cat >>confdefs.h <<_ACEOF
  1766. @%:@define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  1767. _ACEOF
  1768. cat >>confdefs.h <<_ACEOF
  1769. @%:@define PACKAGE_VERSION "$PACKAGE_VERSION"
  1770. _ACEOF
  1771. cat >>confdefs.h <<_ACEOF
  1772. @%:@define PACKAGE_STRING "$PACKAGE_STRING"
  1773. _ACEOF
  1774. cat >>confdefs.h <<_ACEOF
  1775. @%:@define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  1776. _ACEOF
  1777. cat >>confdefs.h <<_ACEOF
  1778. @%:@define PACKAGE_URL "$PACKAGE_URL"
  1779. _ACEOF
  1780. # Let the site file select an alternate cache file if it wants to.
  1781. # Prefer an explicitly selected file to automatically selected ones.
  1782. ac_site_file1=NONE
  1783. ac_site_file2=NONE
  1784. if test -n "$CONFIG_SITE"; then
  1785. # We do not want a PATH search for config.site.
  1786. case $CONFIG_SITE in @%:@((
  1787. -*) ac_site_file1=./$CONFIG_SITE;;
  1788. */*) ac_site_file1=$CONFIG_SITE;;
  1789. *) ac_site_file1=./$CONFIG_SITE;;
  1790. esac
  1791. elif test "x$prefix" != xNONE; then
  1792. ac_site_file1=$prefix/share/config.site
  1793. ac_site_file2=$prefix/etc/config.site
  1794. else
  1795. ac_site_file1=$ac_default_prefix/share/config.site
  1796. ac_site_file2=$ac_default_prefix/etc/config.site
  1797. fi
  1798. for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  1799. do
  1800. test "x$ac_site_file" = xNONE && continue
  1801. if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
  1802. { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  1803. $as_echo "$as_me: loading site script $ac_site_file" >&6;}
  1804. sed 's/^/| /' "$ac_site_file" >&5
  1805. . "$ac_site_file" \
  1806. || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  1807. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  1808. as_fn_error $? "failed to load site script $ac_site_file
  1809. See \`config.log' for more details" "$LINENO" 5; }
  1810. fi
  1811. done
  1812. if test -r "$cache_file"; then
  1813. # Some versions of bash will fail to source /dev/null (special files
  1814. # actually), so we avoid doing that. DJGPP emulates it as a regular file.
  1815. if test /dev/null != "$cache_file" && test -f "$cache_file"; then
  1816. { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  1817. $as_echo "$as_me: loading cache $cache_file" >&6;}
  1818. case $cache_file in
  1819. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  1820. *) . "./$cache_file";;
  1821. esac
  1822. fi
  1823. else
  1824. { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  1825. $as_echo "$as_me: creating cache $cache_file" >&6;}
  1826. >$cache_file
  1827. fi
  1828. # Check that the precious variables saved in the cache have kept the same
  1829. # value.
  1830. ac_cache_corrupted=false
  1831. for ac_var in $ac_precious_vars; do
  1832. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  1833. eval ac_new_set=\$ac_env_${ac_var}_set
  1834. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  1835. eval ac_new_val=\$ac_env_${ac_var}_value
  1836. case $ac_old_set,$ac_new_set in
  1837. set,)
  1838. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  1839. $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  1840. ac_cache_corrupted=: ;;
  1841. ,set)
  1842. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  1843. $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  1844. ac_cache_corrupted=: ;;
  1845. ,);;
  1846. *)
  1847. if test "x$ac_old_val" != "x$ac_new_val"; then
  1848. # differences in whitespace do not lead to failure.
  1849. ac_old_val_w=`echo x $ac_old_val`
  1850. ac_new_val_w=`echo x $ac_new_val`
  1851. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  1852. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  1853. $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  1854. ac_cache_corrupted=:
  1855. else
  1856. { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  1857. $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  1858. eval $ac_var=\$ac_old_val
  1859. fi
  1860. { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
  1861. $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
  1862. { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
  1863. $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
  1864. fi;;
  1865. esac
  1866. # Pass precious variables to config.status.
  1867. if test "$ac_new_set" = set; then
  1868. case $ac_new_val in
  1869. *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  1870. *) ac_arg=$ac_var=$ac_new_val ;;
  1871. esac
  1872. case " $ac_configure_args " in
  1873. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  1874. *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  1875. esac
  1876. fi
  1877. done
  1878. if $ac_cache_corrupted; then
  1879. { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  1880. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  1881. { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  1882. $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  1883. as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
  1884. fi
  1885. ## -------------------- ##
  1886. ## Main body of script. ##
  1887. ## -------------------- ##
  1888. ac_ext=c
  1889. ac_cpp='$CPP $CPPFLAGS'
  1890. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  1891. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  1892. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  1893. ac_aux_dir=
  1894. for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
  1895. if test -f "$ac_dir/install-sh"; then
  1896. ac_aux_dir=$ac_dir
  1897. ac_install_sh="$ac_aux_dir/install-sh -c"
  1898. break
  1899. elif test -f "$ac_dir/install.sh"; then
  1900. ac_aux_dir=$ac_dir
  1901. ac_install_sh="$ac_aux_dir/install.sh -c"
  1902. break
  1903. elif test -f "$ac_dir/shtool"; then
  1904. ac_aux_dir=$ac_dir
  1905. ac_install_sh="$ac_aux_dir/shtool install -c"
  1906. break
  1907. fi
  1908. done
  1909. if test -z "$ac_aux_dir"; then
  1910. as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
  1911. fi
  1912. # These three variables are undocumented and unsupported,
  1913. # and are intended to be withdrawn in a future Autoconf release.
  1914. # They can cause serious problems if a builder's source tree is in a directory
  1915. # whose full name contains unusual characters.
  1916. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  1917. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  1918. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  1919. # Make sure we can run config.sub.
  1920. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  1921. as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
  1922. { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
  1923. $as_echo_n "checking build system type... " >&6; }
  1924. if ${ac_cv_build+:} false; then :
  1925. $as_echo_n "(cached) " >&6
  1926. else
  1927. ac_build_alias=$build_alias
  1928. test "x$ac_build_alias" = x &&
  1929. ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  1930. test "x$ac_build_alias" = x &&
  1931. as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
  1932. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  1933. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
  1934. fi
  1935. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
  1936. $as_echo "$ac_cv_build" >&6; }
  1937. case $ac_cv_build in
  1938. *-*-*) ;;
  1939. *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
  1940. esac
  1941. build=$ac_cv_build
  1942. ac_save_IFS=$IFS; IFS='-'
  1943. set x $ac_cv_build
  1944. shift
  1945. build_cpu=$1
  1946. build_vendor=$2
  1947. shift; shift
  1948. # Remember, the first character of IFS is used to create $*,
  1949. # except with old shells:
  1950. build_os=$*
  1951. IFS=$ac_save_IFS
  1952. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  1953. { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
  1954. $as_echo_n "checking host system type... " >&6; }
  1955. if ${ac_cv_host+:} false; then :
  1956. $as_echo_n "(cached) " >&6
  1957. else
  1958. if test "x$host_alias" = x; then
  1959. ac_cv_host=$ac_cv_build
  1960. else
  1961. ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  1962. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
  1963. fi
  1964. fi
  1965. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
  1966. $as_echo "$ac_cv_host" >&6; }
  1967. case $ac_cv_host in
  1968. *-*-*) ;;
  1969. *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
  1970. esac
  1971. host=$ac_cv_host
  1972. ac_save_IFS=$IFS; IFS='-'
  1973. set x $ac_cv_host
  1974. shift
  1975. host_cpu=$1
  1976. host_vendor=$2
  1977. shift; shift
  1978. # Remember, the first character of IFS is used to create $*,
  1979. # except with old shells:
  1980. host_os=$*
  1981. IFS=$ac_save_IFS
  1982. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  1983. { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
  1984. $as_echo_n "checking target system type... " >&6; }
  1985. if ${ac_cv_target+:} false; then :
  1986. $as_echo_n "(cached) " >&6
  1987. else
  1988. if test "x$target_alias" = x; then
  1989. ac_cv_target=$ac_cv_host
  1990. else
  1991. ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
  1992. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
  1993. fi
  1994. fi
  1995. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
  1996. $as_echo "$ac_cv_target" >&6; }
  1997. case $ac_cv_target in
  1998. *-*-*) ;;
  1999. *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
  2000. esac
  2001. target=$ac_cv_target
  2002. ac_save_IFS=$IFS; IFS='-'
  2003. set x $ac_cv_target
  2004. shift
  2005. target_cpu=$1
  2006. target_vendor=$2
  2007. shift; shift
  2008. # Remember, the first character of IFS is used to create $*,
  2009. # except with old shells:
  2010. target_os=$*
  2011. IFS=$ac_save_IFS
  2012. case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
  2013. # The aliases save the names the user supplied, while $host etc.
  2014. # will get canonicalized.
  2015. test -n "$target_alias" &&
  2016. test "$program_prefix$program_suffix$program_transform_name" = \
  2017. NONENONEs,x,x, &&
  2018. program_prefix=${target_alias}-
  2019. am__api_version='1.11'
  2020. # Find a good install program. We prefer a C program (faster),
  2021. # so one script is as good as another. But avoid the broken or
  2022. # incompatible versions:
  2023. # SysV /etc/install, /usr/sbin/install
  2024. # SunOS /usr/etc/install
  2025. # IRIX /sbin/install
  2026. # AIX /bin/install
  2027. # AmigaOS /C/install, which installs bootblocks on floppy discs
  2028. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  2029. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  2030. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  2031. # OS/2's system install, which has a completely different semantic
  2032. # ./install, which can be erroneously created by make from ./install.sh.
  2033. # Reject install programs that cannot install multiple files.
  2034. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
  2035. $as_echo_n "checking for a BSD-compatible install... " >&6; }
  2036. if test -z "$INSTALL"; then
  2037. if ${ac_cv_path_install+:} false; then :
  2038. $as_echo_n "(cached) " >&6
  2039. else
  2040. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2041. for as_dir in $PATH
  2042. do
  2043. IFS=$as_save_IFS
  2044. test -z "$as_dir" && as_dir=.
  2045. # Account for people who put trailing slashes in PATH elements.
  2046. case $as_dir/ in @%:@((
  2047. ./ | .// | /[cC]/* | \
  2048. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  2049. ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
  2050. /usr/ucb/* ) ;;
  2051. *)
  2052. # OSF1 and SCO ODT 3.0 have their own names for install.
  2053. # Don't use installbsd from OSF since it installs stuff as root
  2054. # by default.
  2055. for ac_prog in ginstall scoinst install; do
  2056. for ac_exec_ext in '' $ac_executable_extensions; do
  2057. if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
  2058. if test $ac_prog = install &&
  2059. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2060. # AIX install. It has an incompatible calling convention.
  2061. :
  2062. elif test $ac_prog = install &&
  2063. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2064. # program-specific install script used by HP pwplus--don't use.
  2065. :
  2066. else
  2067. rm -rf conftest.one conftest.two conftest.dir
  2068. echo one > conftest.one
  2069. echo two > conftest.two
  2070. mkdir conftest.dir
  2071. if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
  2072. test -s conftest.one && test -s conftest.two &&
  2073. test -s conftest.dir/conftest.one &&
  2074. test -s conftest.dir/conftest.two
  2075. then
  2076. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  2077. break 3
  2078. fi
  2079. fi
  2080. fi
  2081. done
  2082. done
  2083. ;;
  2084. esac
  2085. done
  2086. IFS=$as_save_IFS
  2087. rm -rf conftest.one conftest.two conftest.dir
  2088. fi
  2089. if test "${ac_cv_path_install+set}" = set; then
  2090. INSTALL=$ac_cv_path_install
  2091. else
  2092. # As a last resort, use the slow shell script. Don't cache a
  2093. # value for INSTALL within a source directory, because that will
  2094. # break other packages using the cache if that directory is
  2095. # removed, or if the value is a relative name.
  2096. INSTALL=$ac_install_sh
  2097. fi
  2098. fi
  2099. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
  2100. $as_echo "$INSTALL" >&6; }
  2101. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  2102. # It thinks the first close brace ends the variable substitution.
  2103. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  2104. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  2105. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  2106. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
  2107. $as_echo_n "checking whether build environment is sane... " >&6; }
  2108. # Just in case
  2109. sleep 1
  2110. echo timestamp > conftest.file
  2111. # Reject unsafe characters in $srcdir or the absolute working directory
  2112. # name. Accept space and tab only in the latter.
  2113. am_lf='
  2114. '
  2115. case `pwd` in
  2116. *[\\\"\#\$\&\'\`$am_lf]*)
  2117. as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
  2118. esac
  2119. case $srcdir in
  2120. *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
  2121. as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
  2122. esac
  2123. # Do `set' in a subshell so we don't clobber the current shell's
  2124. # arguments. Must try -L first in case configure is actually a
  2125. # symlink; some systems play weird games with the mod time of symlinks
  2126. # (eg FreeBSD returns the mod time of the symlink's containing
  2127. # directory).
  2128. if (
  2129. set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
  2130. if test "$*" = "X"; then
  2131. # -L didn't work.
  2132. set X `ls -t "$srcdir/configure" conftest.file`
  2133. fi
  2134. rm -f conftest.file
  2135. if test "$*" != "X $srcdir/configure conftest.file" \
  2136. && test "$*" != "X conftest.file $srcdir/configure"; then
  2137. # If neither matched, then we have a broken ls. This can happen
  2138. # if, for instance, CONFIG_SHELL is bash and it inherits a
  2139. # broken ls alias from the environment. This has actually
  2140. # happened. Such a system could not be considered "sane".
  2141. as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
  2142. alias in your environment" "$LINENO" 5
  2143. fi
  2144. test "$2" = conftest.file
  2145. )
  2146. then
  2147. # Ok.
  2148. :
  2149. else
  2150. as_fn_error $? "newly created file is older than distributed files!
  2151. Check your system clock" "$LINENO" 5
  2152. fi
  2153. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2154. $as_echo "yes" >&6; }
  2155. test "$program_prefix" != NONE &&
  2156. program_transform_name="s&^&$program_prefix&;$program_transform_name"
  2157. # Use a double $ so make ignores it.
  2158. test "$program_suffix" != NONE &&
  2159. program_transform_name="s&\$&$program_suffix&;$program_transform_name"
  2160. # Double any \ or $.
  2161. # By default was `s,x,x', remove it if useless.
  2162. ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
  2163. program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
  2164. # expand $ac_aux_dir to an absolute path
  2165. am_aux_dir=`cd $ac_aux_dir && pwd`
  2166. if test x"${MISSING+set}" != xset; then
  2167. case $am_aux_dir in
  2168. *\ * | *\ *)
  2169. MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
  2170. *)
  2171. MISSING="\${SHELL} $am_aux_dir/missing" ;;
  2172. esac
  2173. fi
  2174. # Use eval to expand $SHELL
  2175. if eval "$MISSING --run true"; then
  2176. am_missing_run="$MISSING --run "
  2177. else
  2178. am_missing_run=
  2179. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
  2180. $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
  2181. fi
  2182. if test x"${install_sh}" != xset; then
  2183. case $am_aux_dir in
  2184. *\ * | *\ *)
  2185. install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
  2186. *)
  2187. install_sh="\${SHELL} $am_aux_dir/install-sh"
  2188. esac
  2189. fi
  2190. # Installed binaries are usually stripped using `strip' when the user
  2191. # run `make install-strip'. However `strip' might not be the right
  2192. # tool to use in cross-compilation environments, therefore Automake
  2193. # will honor the `STRIP' environment variable to overrule this program.
  2194. if test "$cross_compiling" != no; then
  2195. if test -n "$ac_tool_prefix"; then
  2196. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  2197. set dummy ${ac_tool_prefix}strip; ac_word=$2
  2198. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2199. $as_echo_n "checking for $ac_word... " >&6; }
  2200. if ${ac_cv_prog_STRIP+:} false; then :
  2201. $as_echo_n "(cached) " >&6
  2202. else
  2203. if test -n "$STRIP"; then
  2204. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  2205. else
  2206. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2207. for as_dir in $PATH
  2208. do
  2209. IFS=$as_save_IFS
  2210. test -z "$as_dir" && as_dir=.
  2211. for ac_exec_ext in '' $ac_executable_extensions; do
  2212. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2213. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  2214. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2215. break 2
  2216. fi
  2217. done
  2218. done
  2219. IFS=$as_save_IFS
  2220. fi
  2221. fi
  2222. STRIP=$ac_cv_prog_STRIP
  2223. if test -n "$STRIP"; then
  2224. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  2225. $as_echo "$STRIP" >&6; }
  2226. else
  2227. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2228. $as_echo "no" >&6; }
  2229. fi
  2230. fi
  2231. if test -z "$ac_cv_prog_STRIP"; then
  2232. ac_ct_STRIP=$STRIP
  2233. # Extract the first word of "strip", so it can be a program name with args.
  2234. set dummy strip; ac_word=$2
  2235. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2236. $as_echo_n "checking for $ac_word... " >&6; }
  2237. if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
  2238. $as_echo_n "(cached) " >&6
  2239. else
  2240. if test -n "$ac_ct_STRIP"; then
  2241. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  2242. else
  2243. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2244. for as_dir in $PATH
  2245. do
  2246. IFS=$as_save_IFS
  2247. test -z "$as_dir" && as_dir=.
  2248. for ac_exec_ext in '' $ac_executable_extensions; do
  2249. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2250. ac_cv_prog_ac_ct_STRIP="strip"
  2251. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2252. break 2
  2253. fi
  2254. done
  2255. done
  2256. IFS=$as_save_IFS
  2257. fi
  2258. fi
  2259. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  2260. if test -n "$ac_ct_STRIP"; then
  2261. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  2262. $as_echo "$ac_ct_STRIP" >&6; }
  2263. else
  2264. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2265. $as_echo "no" >&6; }
  2266. fi
  2267. if test "x$ac_ct_STRIP" = x; then
  2268. STRIP=":"
  2269. else
  2270. case $cross_compiling:$ac_tool_warned in
  2271. yes:)
  2272. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2273. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2274. ac_tool_warned=yes ;;
  2275. esac
  2276. STRIP=$ac_ct_STRIP
  2277. fi
  2278. else
  2279. STRIP="$ac_cv_prog_STRIP"
  2280. fi
  2281. fi
  2282. INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
  2283. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
  2284. $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
  2285. if test -z "$MKDIR_P"; then
  2286. if ${ac_cv_path_mkdir+:} false; then :
  2287. $as_echo_n "(cached) " >&6
  2288. else
  2289. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2290. for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
  2291. do
  2292. IFS=$as_save_IFS
  2293. test -z "$as_dir" && as_dir=.
  2294. for ac_prog in mkdir gmkdir; do
  2295. for ac_exec_ext in '' $ac_executable_extensions; do
  2296. { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
  2297. case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
  2298. 'mkdir (GNU coreutils) '* | \
  2299. 'mkdir (coreutils) '* | \
  2300. 'mkdir (fileutils) '4.1*)
  2301. ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
  2302. break 3;;
  2303. esac
  2304. done
  2305. done
  2306. done
  2307. IFS=$as_save_IFS
  2308. fi
  2309. test -d ./--version && rmdir ./--version
  2310. if test "${ac_cv_path_mkdir+set}" = set; then
  2311. MKDIR_P="$ac_cv_path_mkdir -p"
  2312. else
  2313. # As a last resort, use the slow shell script. Don't cache a
  2314. # value for MKDIR_P within a source directory, because that will
  2315. # break other packages using the cache if that directory is
  2316. # removed, or if the value is a relative name.
  2317. MKDIR_P="$ac_install_sh -d"
  2318. fi
  2319. fi
  2320. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
  2321. $as_echo "$MKDIR_P" >&6; }
  2322. mkdir_p="$MKDIR_P"
  2323. case $mkdir_p in
  2324. [\\/$]* | ?:[\\/]*) ;;
  2325. */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
  2326. esac
  2327. for ac_prog in gawk mawk nawk awk
  2328. do
  2329. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2330. set dummy $ac_prog; ac_word=$2
  2331. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2332. $as_echo_n "checking for $ac_word... " >&6; }
  2333. if ${ac_cv_prog_AWK+:} false; then :
  2334. $as_echo_n "(cached) " >&6
  2335. else
  2336. if test -n "$AWK"; then
  2337. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  2338. else
  2339. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2340. for as_dir in $PATH
  2341. do
  2342. IFS=$as_save_IFS
  2343. test -z "$as_dir" && as_dir=.
  2344. for ac_exec_ext in '' $ac_executable_extensions; do
  2345. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2346. ac_cv_prog_AWK="$ac_prog"
  2347. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2348. break 2
  2349. fi
  2350. done
  2351. done
  2352. IFS=$as_save_IFS
  2353. fi
  2354. fi
  2355. AWK=$ac_cv_prog_AWK
  2356. if test -n "$AWK"; then
  2357. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  2358. $as_echo "$AWK" >&6; }
  2359. else
  2360. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2361. $as_echo "no" >&6; }
  2362. fi
  2363. test -n "$AWK" && break
  2364. done
  2365. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  2366. $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  2367. set x ${MAKE-make}
  2368. ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  2369. if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
  2370. $as_echo_n "(cached) " >&6
  2371. else
  2372. cat >conftest.make <<\_ACEOF
  2373. SHELL = /bin/sh
  2374. all:
  2375. @echo '@@@%%%=$(MAKE)=@@@%%%'
  2376. _ACEOF
  2377. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  2378. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  2379. *@@@%%%=?*=@@@%%%*)
  2380. eval ac_cv_prog_make_${ac_make}_set=yes;;
  2381. *)
  2382. eval ac_cv_prog_make_${ac_make}_set=no;;
  2383. esac
  2384. rm -f conftest.make
  2385. fi
  2386. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  2387. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2388. $as_echo "yes" >&6; }
  2389. SET_MAKE=
  2390. else
  2391. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2392. $as_echo "no" >&6; }
  2393. SET_MAKE="MAKE=${MAKE-make}"
  2394. fi
  2395. rm -rf .tst 2>/dev/null
  2396. mkdir .tst 2>/dev/null
  2397. if test -d .tst; then
  2398. am__leading_dot=.
  2399. else
  2400. am__leading_dot=_
  2401. fi
  2402. rmdir .tst 2>/dev/null
  2403. if test "`cd $srcdir && pwd`" != "`pwd`"; then
  2404. # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
  2405. # is not polluted with repeated "-I."
  2406. am__isrc=' -I$(srcdir)'
  2407. # test to see if srcdir already configured
  2408. if test -f $srcdir/config.status; then
  2409. as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
  2410. fi
  2411. fi
  2412. # test whether we have cygpath
  2413. if test -z "$CYGPATH_W"; then
  2414. if (cygpath --version) >/dev/null 2>/dev/null; then
  2415. CYGPATH_W='cygpath -w'
  2416. else
  2417. CYGPATH_W=echo
  2418. fi
  2419. fi
  2420. # Define the identity of the package.
  2421. PACKAGE='opcuaserver'
  2422. VERSION='1.0'
  2423. cat >>confdefs.h <<_ACEOF
  2424. @%:@define PACKAGE "$PACKAGE"
  2425. _ACEOF
  2426. cat >>confdefs.h <<_ACEOF
  2427. @%:@define VERSION "$VERSION"
  2428. _ACEOF
  2429. # Some tools Automake needs.
  2430. ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
  2431. AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
  2432. AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
  2433. AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
  2434. MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
  2435. # We need awk for the "check" target. The system "awk" is bad on
  2436. # some platforms.
  2437. # Always define AMTAR for backward compatibility. Yes, it's still used
  2438. # in the wild :-( We should find a proper way to deprecate it ...
  2439. AMTAR='$${TAR-tar}'
  2440. am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
  2441. DEPDIR="${am__leading_dot}deps"
  2442. ac_config_commands="$ac_config_commands depfiles"
  2443. am_make=${MAKE-make}
  2444. cat > confinc << 'END'
  2445. am__doit:
  2446. @echo this is the am__doit target
  2447. .PHONY: am__doit
  2448. END
  2449. # If we don't find an include directive, just comment out the code.
  2450. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
  2451. $as_echo_n "checking for style of include used by $am_make... " >&6; }
  2452. am__include="#"
  2453. am__quote=
  2454. _am_result=none
  2455. # First try GNU make style include.
  2456. echo "include confinc" > confmf
  2457. # Ignore all kinds of additional output from `make'.
  2458. case `$am_make -s -f confmf 2> /dev/null` in #(
  2459. *the\ am__doit\ target*)
  2460. am__include=include
  2461. am__quote=
  2462. _am_result=GNU
  2463. ;;
  2464. esac
  2465. # Now try BSD make style include.
  2466. if test "$am__include" = "#"; then
  2467. echo '.include "confinc"' > confmf
  2468. case `$am_make -s -f confmf 2> /dev/null` in #(
  2469. *the\ am__doit\ target*)
  2470. am__include=.include
  2471. am__quote="\""
  2472. _am_result=BSD
  2473. ;;
  2474. esac
  2475. fi
  2476. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
  2477. $as_echo "$_am_result" >&6; }
  2478. rm -f confinc confmf
  2479. @%:@ Check whether --enable-dependency-tracking was given.
  2480. if test "${enable_dependency_tracking+set}" = set; then :
  2481. enableval=$enable_dependency_tracking;
  2482. fi
  2483. if test "x$enable_dependency_tracking" != xno; then
  2484. am_depcomp="$ac_aux_dir/depcomp"
  2485. AMDEPBACKSLASH='\'
  2486. am__nodep='_no'
  2487. fi
  2488. if test "x$enable_dependency_tracking" != xno; then
  2489. AMDEP_TRUE=
  2490. AMDEP_FALSE='#'
  2491. else
  2492. AMDEP_TRUE='#'
  2493. AMDEP_FALSE=
  2494. fi
  2495. ac_ext=c
  2496. ac_cpp='$CPP $CPPFLAGS'
  2497. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2498. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2499. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2500. if test -n "$ac_tool_prefix"; then
  2501. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  2502. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  2503. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2504. $as_echo_n "checking for $ac_word... " >&6; }
  2505. if ${ac_cv_prog_CC+:} false; then :
  2506. $as_echo_n "(cached) " >&6
  2507. else
  2508. if test -n "$CC"; then
  2509. ac_cv_prog_CC="$CC" # Let the user override the test.
  2510. else
  2511. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2512. for as_dir in $PATH
  2513. do
  2514. IFS=$as_save_IFS
  2515. test -z "$as_dir" && as_dir=.
  2516. for ac_exec_ext in '' $ac_executable_extensions; do
  2517. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2518. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  2519. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2520. break 2
  2521. fi
  2522. done
  2523. done
  2524. IFS=$as_save_IFS
  2525. fi
  2526. fi
  2527. CC=$ac_cv_prog_CC
  2528. if test -n "$CC"; then
  2529. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2530. $as_echo "$CC" >&6; }
  2531. else
  2532. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2533. $as_echo "no" >&6; }
  2534. fi
  2535. fi
  2536. if test -z "$ac_cv_prog_CC"; then
  2537. ac_ct_CC=$CC
  2538. # Extract the first word of "gcc", so it can be a program name with args.
  2539. set dummy gcc; ac_word=$2
  2540. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2541. $as_echo_n "checking for $ac_word... " >&6; }
  2542. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  2543. $as_echo_n "(cached) " >&6
  2544. else
  2545. if test -n "$ac_ct_CC"; then
  2546. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2547. else
  2548. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2549. for as_dir in $PATH
  2550. do
  2551. IFS=$as_save_IFS
  2552. test -z "$as_dir" && as_dir=.
  2553. for ac_exec_ext in '' $ac_executable_extensions; do
  2554. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2555. ac_cv_prog_ac_ct_CC="gcc"
  2556. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2557. break 2
  2558. fi
  2559. done
  2560. done
  2561. IFS=$as_save_IFS
  2562. fi
  2563. fi
  2564. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2565. if test -n "$ac_ct_CC"; then
  2566. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  2567. $as_echo "$ac_ct_CC" >&6; }
  2568. else
  2569. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2570. $as_echo "no" >&6; }
  2571. fi
  2572. if test "x$ac_ct_CC" = x; then
  2573. CC=""
  2574. else
  2575. case $cross_compiling:$ac_tool_warned in
  2576. yes:)
  2577. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2578. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2579. ac_tool_warned=yes ;;
  2580. esac
  2581. CC=$ac_ct_CC
  2582. fi
  2583. else
  2584. CC="$ac_cv_prog_CC"
  2585. fi
  2586. if test -z "$CC"; then
  2587. if test -n "$ac_tool_prefix"; then
  2588. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  2589. set dummy ${ac_tool_prefix}cc; ac_word=$2
  2590. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2591. $as_echo_n "checking for $ac_word... " >&6; }
  2592. if ${ac_cv_prog_CC+:} false; then :
  2593. $as_echo_n "(cached) " >&6
  2594. else
  2595. if test -n "$CC"; then
  2596. ac_cv_prog_CC="$CC" # Let the user override the test.
  2597. else
  2598. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2599. for as_dir in $PATH
  2600. do
  2601. IFS=$as_save_IFS
  2602. test -z "$as_dir" && as_dir=.
  2603. for ac_exec_ext in '' $ac_executable_extensions; do
  2604. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2605. ac_cv_prog_CC="${ac_tool_prefix}cc"
  2606. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2607. break 2
  2608. fi
  2609. done
  2610. done
  2611. IFS=$as_save_IFS
  2612. fi
  2613. fi
  2614. CC=$ac_cv_prog_CC
  2615. if test -n "$CC"; then
  2616. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2617. $as_echo "$CC" >&6; }
  2618. else
  2619. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2620. $as_echo "no" >&6; }
  2621. fi
  2622. fi
  2623. fi
  2624. if test -z "$CC"; then
  2625. # Extract the first word of "cc", so it can be a program name with args.
  2626. set dummy cc; ac_word=$2
  2627. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2628. $as_echo_n "checking for $ac_word... " >&6; }
  2629. if ${ac_cv_prog_CC+:} false; then :
  2630. $as_echo_n "(cached) " >&6
  2631. else
  2632. if test -n "$CC"; then
  2633. ac_cv_prog_CC="$CC" # Let the user override the test.
  2634. else
  2635. ac_prog_rejected=no
  2636. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2637. for as_dir in $PATH
  2638. do
  2639. IFS=$as_save_IFS
  2640. test -z "$as_dir" && as_dir=.
  2641. for ac_exec_ext in '' $ac_executable_extensions; do
  2642. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2643. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  2644. ac_prog_rejected=yes
  2645. continue
  2646. fi
  2647. ac_cv_prog_CC="cc"
  2648. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2649. break 2
  2650. fi
  2651. done
  2652. done
  2653. IFS=$as_save_IFS
  2654. if test $ac_prog_rejected = yes; then
  2655. # We found a bogon in the path, so make sure we never use it.
  2656. set dummy $ac_cv_prog_CC
  2657. shift
  2658. if test $@%:@ != 0; then
  2659. # We chose a different compiler from the bogus one.
  2660. # However, it has the same basename, so the bogon will be chosen
  2661. # first if we set CC to just the basename; use the full file name.
  2662. shift
  2663. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  2664. fi
  2665. fi
  2666. fi
  2667. fi
  2668. CC=$ac_cv_prog_CC
  2669. if test -n "$CC"; then
  2670. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2671. $as_echo "$CC" >&6; }
  2672. else
  2673. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2674. $as_echo "no" >&6; }
  2675. fi
  2676. fi
  2677. if test -z "$CC"; then
  2678. if test -n "$ac_tool_prefix"; then
  2679. for ac_prog in cl.exe
  2680. do
  2681. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  2682. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  2683. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2684. $as_echo_n "checking for $ac_word... " >&6; }
  2685. if ${ac_cv_prog_CC+:} false; then :
  2686. $as_echo_n "(cached) " >&6
  2687. else
  2688. if test -n "$CC"; then
  2689. ac_cv_prog_CC="$CC" # Let the user override the test.
  2690. else
  2691. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2692. for as_dir in $PATH
  2693. do
  2694. IFS=$as_save_IFS
  2695. test -z "$as_dir" && as_dir=.
  2696. for ac_exec_ext in '' $ac_executable_extensions; do
  2697. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2698. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  2699. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2700. break 2
  2701. fi
  2702. done
  2703. done
  2704. IFS=$as_save_IFS
  2705. fi
  2706. fi
  2707. CC=$ac_cv_prog_CC
  2708. if test -n "$CC"; then
  2709. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2710. $as_echo "$CC" >&6; }
  2711. else
  2712. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2713. $as_echo "no" >&6; }
  2714. fi
  2715. test -n "$CC" && break
  2716. done
  2717. fi
  2718. if test -z "$CC"; then
  2719. ac_ct_CC=$CC
  2720. for ac_prog in cl.exe
  2721. do
  2722. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2723. set dummy $ac_prog; ac_word=$2
  2724. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2725. $as_echo_n "checking for $ac_word... " >&6; }
  2726. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  2727. $as_echo_n "(cached) " >&6
  2728. else
  2729. if test -n "$ac_ct_CC"; then
  2730. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2731. else
  2732. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2733. for as_dir in $PATH
  2734. do
  2735. IFS=$as_save_IFS
  2736. test -z "$as_dir" && as_dir=.
  2737. for ac_exec_ext in '' $ac_executable_extensions; do
  2738. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2739. ac_cv_prog_ac_ct_CC="$ac_prog"
  2740. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2741. break 2
  2742. fi
  2743. done
  2744. done
  2745. IFS=$as_save_IFS
  2746. fi
  2747. fi
  2748. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2749. if test -n "$ac_ct_CC"; then
  2750. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  2751. $as_echo "$ac_ct_CC" >&6; }
  2752. else
  2753. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2754. $as_echo "no" >&6; }
  2755. fi
  2756. test -n "$ac_ct_CC" && break
  2757. done
  2758. if test "x$ac_ct_CC" = x; then
  2759. CC=""
  2760. else
  2761. case $cross_compiling:$ac_tool_warned in
  2762. yes:)
  2763. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2764. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2765. ac_tool_warned=yes ;;
  2766. esac
  2767. CC=$ac_ct_CC
  2768. fi
  2769. fi
  2770. fi
  2771. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2772. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2773. as_fn_error $? "no acceptable C compiler found in \$PATH
  2774. See \`config.log' for more details" "$LINENO" 5; }
  2775. # Provide some information about the compiler.
  2776. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  2777. set X $ac_compile
  2778. ac_compiler=$2
  2779. for ac_option in --version -v -V -qversion; do
  2780. { { ac_try="$ac_compiler $ac_option >&5"
  2781. case "(($ac_try" in
  2782. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2783. *) ac_try_echo=$ac_try;;
  2784. esac
  2785. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2786. $as_echo "$ac_try_echo"; } >&5
  2787. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  2788. ac_status=$?
  2789. if test -s conftest.err; then
  2790. sed '10a\
  2791. ... rest of stderr output deleted ...
  2792. 10q' conftest.err >conftest.er1
  2793. cat conftest.er1 >&5
  2794. fi
  2795. rm -f conftest.er1 conftest.err
  2796. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2797. test $ac_status = 0; }
  2798. done
  2799. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2800. /* end confdefs.h. */
  2801. int
  2802. main ()
  2803. {
  2804. ;
  2805. return 0;
  2806. }
  2807. _ACEOF
  2808. ac_clean_files_save=$ac_clean_files
  2809. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  2810. # Try to create an executable without -o first, disregard a.out.
  2811. # It will help us diagnose broken compilers, and finding out an intuition
  2812. # of exeext.
  2813. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
  2814. $as_echo_n "checking whether the C compiler works... " >&6; }
  2815. ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  2816. # The possible output files:
  2817. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  2818. ac_rmfiles=
  2819. for ac_file in $ac_files
  2820. do
  2821. case $ac_file in
  2822. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  2823. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  2824. esac
  2825. done
  2826. rm -f $ac_rmfiles
  2827. if { { ac_try="$ac_link_default"
  2828. case "(($ac_try" in
  2829. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2830. *) ac_try_echo=$ac_try;;
  2831. esac
  2832. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2833. $as_echo "$ac_try_echo"; } >&5
  2834. (eval "$ac_link_default") 2>&5
  2835. ac_status=$?
  2836. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2837. test $ac_status = 0; }; then :
  2838. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  2839. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  2840. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  2841. # so that the user can short-circuit this test for compilers unknown to
  2842. # Autoconf.
  2843. for ac_file in $ac_files ''
  2844. do
  2845. test -f "$ac_file" || continue
  2846. case $ac_file in
  2847. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  2848. ;;
  2849. [ab].out )
  2850. # We found the default executable, but exeext='' is most
  2851. # certainly right.
  2852. break;;
  2853. *.* )
  2854. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  2855. then :; else
  2856. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2857. fi
  2858. # We set ac_cv_exeext here because the later test for it is not
  2859. # safe: cross compilers may not add the suffix if given an `-o'
  2860. # argument, so we may need to know it at that point already.
  2861. # Even if this section looks crufty: it has the advantage of
  2862. # actually working.
  2863. break;;
  2864. * )
  2865. break;;
  2866. esac
  2867. done
  2868. test "$ac_cv_exeext" = no && ac_cv_exeext=
  2869. else
  2870. ac_file=''
  2871. fi
  2872. if test -z "$ac_file"; then :
  2873. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2874. $as_echo "no" >&6; }
  2875. $as_echo "$as_me: failed program was:" >&5
  2876. sed 's/^/| /' conftest.$ac_ext >&5
  2877. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2878. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2879. as_fn_error 77 "C compiler cannot create executables
  2880. See \`config.log' for more details" "$LINENO" 5; }
  2881. else
  2882. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2883. $as_echo "yes" >&6; }
  2884. fi
  2885. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
  2886. $as_echo_n "checking for C compiler default output file name... " >&6; }
  2887. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  2888. $as_echo "$ac_file" >&6; }
  2889. ac_exeext=$ac_cv_exeext
  2890. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  2891. ac_clean_files=$ac_clean_files_save
  2892. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  2893. $as_echo_n "checking for suffix of executables... " >&6; }
  2894. if { { ac_try="$ac_link"
  2895. case "(($ac_try" in
  2896. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2897. *) ac_try_echo=$ac_try;;
  2898. esac
  2899. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2900. $as_echo "$ac_try_echo"; } >&5
  2901. (eval "$ac_link") 2>&5
  2902. ac_status=$?
  2903. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2904. test $ac_status = 0; }; then :
  2905. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  2906. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  2907. # work properly (i.e., refer to `conftest.exe'), while it won't with
  2908. # `rm'.
  2909. for ac_file in conftest.exe conftest conftest.*; do
  2910. test -f "$ac_file" || continue
  2911. case $ac_file in
  2912. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  2913. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2914. break;;
  2915. * ) break;;
  2916. esac
  2917. done
  2918. else
  2919. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2920. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2921. as_fn_error $? "cannot compute suffix of executables: cannot compile and link
  2922. See \`config.log' for more details" "$LINENO" 5; }
  2923. fi
  2924. rm -f conftest conftest$ac_cv_exeext
  2925. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  2926. $as_echo "$ac_cv_exeext" >&6; }
  2927. rm -f conftest.$ac_ext
  2928. EXEEXT=$ac_cv_exeext
  2929. ac_exeext=$EXEEXT
  2930. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2931. /* end confdefs.h. */
  2932. @%:@include <stdio.h>
  2933. int
  2934. main ()
  2935. {
  2936. FILE *f = fopen ("conftest.out", "w");
  2937. return ferror (f) || fclose (f) != 0;
  2938. ;
  2939. return 0;
  2940. }
  2941. _ACEOF
  2942. ac_clean_files="$ac_clean_files conftest.out"
  2943. # Check that the compiler produces executables we can run. If not, either
  2944. # the compiler is broken, or we cross compile.
  2945. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  2946. $as_echo_n "checking whether we are cross compiling... " >&6; }
  2947. if test "$cross_compiling" != yes; then
  2948. { { ac_try="$ac_link"
  2949. case "(($ac_try" in
  2950. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2951. *) ac_try_echo=$ac_try;;
  2952. esac
  2953. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2954. $as_echo "$ac_try_echo"; } >&5
  2955. (eval "$ac_link") 2>&5
  2956. ac_status=$?
  2957. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2958. test $ac_status = 0; }
  2959. if { ac_try='./conftest$ac_cv_exeext'
  2960. { { case "(($ac_try" in
  2961. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2962. *) ac_try_echo=$ac_try;;
  2963. esac
  2964. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2965. $as_echo "$ac_try_echo"; } >&5
  2966. (eval "$ac_try") 2>&5
  2967. ac_status=$?
  2968. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2969. test $ac_status = 0; }; }; then
  2970. cross_compiling=no
  2971. else
  2972. if test "$cross_compiling" = maybe; then
  2973. cross_compiling=yes
  2974. else
  2975. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2976. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2977. as_fn_error $? "cannot run C compiled programs.
  2978. If you meant to cross compile, use \`--host'.
  2979. See \`config.log' for more details" "$LINENO" 5; }
  2980. fi
  2981. fi
  2982. fi
  2983. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  2984. $as_echo "$cross_compiling" >&6; }
  2985. rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
  2986. ac_clean_files=$ac_clean_files_save
  2987. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  2988. $as_echo_n "checking for suffix of object files... " >&6; }
  2989. if ${ac_cv_objext+:} false; then :
  2990. $as_echo_n "(cached) " >&6
  2991. else
  2992. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2993. /* end confdefs.h. */
  2994. int
  2995. main ()
  2996. {
  2997. ;
  2998. return 0;
  2999. }
  3000. _ACEOF
  3001. rm -f conftest.o conftest.obj
  3002. if { { ac_try="$ac_compile"
  3003. case "(($ac_try" in
  3004. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3005. *) ac_try_echo=$ac_try;;
  3006. esac
  3007. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3008. $as_echo "$ac_try_echo"; } >&5
  3009. (eval "$ac_compile") 2>&5
  3010. ac_status=$?
  3011. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3012. test $ac_status = 0; }; then :
  3013. for ac_file in conftest.o conftest.obj conftest.*; do
  3014. test -f "$ac_file" || continue;
  3015. case $ac_file in
  3016. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  3017. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  3018. break;;
  3019. esac
  3020. done
  3021. else
  3022. $as_echo "$as_me: failed program was:" >&5
  3023. sed 's/^/| /' conftest.$ac_ext >&5
  3024. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3025. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3026. as_fn_error $? "cannot compute suffix of object files: cannot compile
  3027. See \`config.log' for more details" "$LINENO" 5; }
  3028. fi
  3029. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  3030. fi
  3031. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  3032. $as_echo "$ac_cv_objext" >&6; }
  3033. OBJEXT=$ac_cv_objext
  3034. ac_objext=$OBJEXT
  3035. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  3036. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  3037. if ${ac_cv_c_compiler_gnu+:} false; then :
  3038. $as_echo_n "(cached) " >&6
  3039. else
  3040. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3041. /* end confdefs.h. */
  3042. int
  3043. main ()
  3044. {
  3045. #ifndef __GNUC__
  3046. choke me
  3047. #endif
  3048. ;
  3049. return 0;
  3050. }
  3051. _ACEOF
  3052. if ac_fn_c_try_compile "$LINENO"; then :
  3053. ac_compiler_gnu=yes
  3054. else
  3055. ac_compiler_gnu=no
  3056. fi
  3057. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3058. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  3059. fi
  3060. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  3061. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  3062. if test $ac_compiler_gnu = yes; then
  3063. GCC=yes
  3064. else
  3065. GCC=
  3066. fi
  3067. ac_test_CFLAGS=${CFLAGS+set}
  3068. ac_save_CFLAGS=$CFLAGS
  3069. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  3070. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  3071. if ${ac_cv_prog_cc_g+:} false; then :
  3072. $as_echo_n "(cached) " >&6
  3073. else
  3074. ac_save_c_werror_flag=$ac_c_werror_flag
  3075. ac_c_werror_flag=yes
  3076. ac_cv_prog_cc_g=no
  3077. CFLAGS="-g"
  3078. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3079. /* end confdefs.h. */
  3080. int
  3081. main ()
  3082. {
  3083. ;
  3084. return 0;
  3085. }
  3086. _ACEOF
  3087. if ac_fn_c_try_compile "$LINENO"; then :
  3088. ac_cv_prog_cc_g=yes
  3089. else
  3090. CFLAGS=""
  3091. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3092. /* end confdefs.h. */
  3093. int
  3094. main ()
  3095. {
  3096. ;
  3097. return 0;
  3098. }
  3099. _ACEOF
  3100. if ac_fn_c_try_compile "$LINENO"; then :
  3101. else
  3102. ac_c_werror_flag=$ac_save_c_werror_flag
  3103. CFLAGS="-g"
  3104. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3105. /* end confdefs.h. */
  3106. int
  3107. main ()
  3108. {
  3109. ;
  3110. return 0;
  3111. }
  3112. _ACEOF
  3113. if ac_fn_c_try_compile "$LINENO"; then :
  3114. ac_cv_prog_cc_g=yes
  3115. fi
  3116. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3117. fi
  3118. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3119. fi
  3120. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3121. ac_c_werror_flag=$ac_save_c_werror_flag
  3122. fi
  3123. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  3124. $as_echo "$ac_cv_prog_cc_g" >&6; }
  3125. if test "$ac_test_CFLAGS" = set; then
  3126. CFLAGS=$ac_save_CFLAGS
  3127. elif test $ac_cv_prog_cc_g = yes; then
  3128. if test "$GCC" = yes; then
  3129. CFLAGS="-g -O2"
  3130. else
  3131. CFLAGS="-g"
  3132. fi
  3133. else
  3134. if test "$GCC" = yes; then
  3135. CFLAGS="-O2"
  3136. else
  3137. CFLAGS=
  3138. fi
  3139. fi
  3140. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  3141. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  3142. if ${ac_cv_prog_cc_c89+:} false; then :
  3143. $as_echo_n "(cached) " >&6
  3144. else
  3145. ac_cv_prog_cc_c89=no
  3146. ac_save_CC=$CC
  3147. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3148. /* end confdefs.h. */
  3149. #include <stdarg.h>
  3150. #include <stdio.h>
  3151. #include <sys/types.h>
  3152. #include <sys/stat.h>
  3153. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  3154. struct buf { int x; };
  3155. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  3156. static char *e (p, i)
  3157. char **p;
  3158. int i;
  3159. {
  3160. return p[i];
  3161. }
  3162. static char *f (char * (*g) (char **, int), char **p, ...)
  3163. {
  3164. char *s;
  3165. va_list v;
  3166. va_start (v,p);
  3167. s = g (p, va_arg (v,int));
  3168. va_end (v);
  3169. return s;
  3170. }
  3171. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  3172. function prototypes and stuff, but not '\xHH' hex character constants.
  3173. These don't provoke an error unfortunately, instead are silently treated
  3174. as 'x'. The following induces an error, until -std is added to get
  3175. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  3176. array size at least. It's necessary to write '\x00'==0 to get something
  3177. that's true only with -std. */
  3178. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  3179. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  3180. inside strings and character constants. */
  3181. #define FOO(x) 'x'
  3182. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  3183. int test (int i, double x);
  3184. struct s1 {int (*f) (int a);};
  3185. struct s2 {int (*f) (double a);};
  3186. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  3187. int argc;
  3188. char **argv;
  3189. int
  3190. main ()
  3191. {
  3192. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  3193. ;
  3194. return 0;
  3195. }
  3196. _ACEOF
  3197. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  3198. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  3199. do
  3200. CC="$ac_save_CC $ac_arg"
  3201. if ac_fn_c_try_compile "$LINENO"; then :
  3202. ac_cv_prog_cc_c89=$ac_arg
  3203. fi
  3204. rm -f core conftest.err conftest.$ac_objext
  3205. test "x$ac_cv_prog_cc_c89" != "xno" && break
  3206. done
  3207. rm -f conftest.$ac_ext
  3208. CC=$ac_save_CC
  3209. fi
  3210. # AC_CACHE_VAL
  3211. case "x$ac_cv_prog_cc_c89" in
  3212. x)
  3213. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  3214. $as_echo "none needed" >&6; } ;;
  3215. xno)
  3216. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  3217. $as_echo "unsupported" >&6; } ;;
  3218. *)
  3219. CC="$CC $ac_cv_prog_cc_c89"
  3220. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  3221. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  3222. esac
  3223. if test "x$ac_cv_prog_cc_c89" != xno; then :
  3224. fi
  3225. ac_ext=c
  3226. ac_cpp='$CPP $CPPFLAGS'
  3227. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3228. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3229. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3230. depcc="$CC" am_compiler_list=
  3231. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  3232. $as_echo_n "checking dependency style of $depcc... " >&6; }
  3233. if ${am_cv_CC_dependencies_compiler_type+:} false; then :
  3234. $as_echo_n "(cached) " >&6
  3235. else
  3236. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  3237. # We make a subdir and do the tests there. Otherwise we can end up
  3238. # making bogus files that we don't know about and never remove. For
  3239. # instance it was reported that on HP-UX the gcc test will end up
  3240. # making a dummy file named `D' -- because `-MD' means `put the output
  3241. # in D'.
  3242. rm -rf conftest.dir
  3243. mkdir conftest.dir
  3244. # Copy depcomp to subdir because otherwise we won't find it if we're
  3245. # using a relative directory.
  3246. cp "$am_depcomp" conftest.dir
  3247. cd conftest.dir
  3248. # We will build objects and dependencies in a subdirectory because
  3249. # it helps to detect inapplicable dependency modes. For instance
  3250. # both Tru64's cc and ICC support -MD to output dependencies as a
  3251. # side effect of compilation, but ICC will put the dependencies in
  3252. # the current directory while Tru64 will put them in the object
  3253. # directory.
  3254. mkdir sub
  3255. am_cv_CC_dependencies_compiler_type=none
  3256. if test "$am_compiler_list" = ""; then
  3257. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  3258. fi
  3259. am__universal=false
  3260. case " $depcc " in #(
  3261. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  3262. esac
  3263. for depmode in $am_compiler_list; do
  3264. # Setup a source with many dependencies, because some compilers
  3265. # like to wrap large dependency lists on column 80 (with \), and
  3266. # we should not choose a depcomp mode which is confused by this.
  3267. #
  3268. # We need to recreate these files for each test, as the compiler may
  3269. # overwrite some of them when testing with obscure command lines.
  3270. # This happens at least with the AIX C compiler.
  3271. : > sub/conftest.c
  3272. for i in 1 2 3 4 5 6; do
  3273. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  3274. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  3275. # Solaris 8's {/usr,}/bin/sh.
  3276. touch sub/conftst$i.h
  3277. done
  3278. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  3279. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  3280. # mode. It turns out that the SunPro C++ compiler does not properly
  3281. # handle `-M -o', and we need to detect this. Also, some Intel
  3282. # versions had trouble with output in subdirs
  3283. am__obj=sub/conftest.${OBJEXT-o}
  3284. am__minus_obj="-o $am__obj"
  3285. case $depmode in
  3286. gcc)
  3287. # This depmode causes a compiler race in universal mode.
  3288. test "$am__universal" = false || continue
  3289. ;;
  3290. nosideeffect)
  3291. # after this tag, mechanisms are not by side-effect, so they'll
  3292. # only be used when explicitly requested
  3293. if test "x$enable_dependency_tracking" = xyes; then
  3294. continue
  3295. else
  3296. break
  3297. fi
  3298. ;;
  3299. msvc7 | msvc7msys | msvisualcpp | msvcmsys)
  3300. # This compiler won't grok `-c -o', but also, the minuso test has
  3301. # not run yet. These depmodes are late enough in the game, and
  3302. # so weak that their functioning should not be impacted.
  3303. am__obj=conftest.${OBJEXT-o}
  3304. am__minus_obj=
  3305. ;;
  3306. none) break ;;
  3307. esac
  3308. if depmode=$depmode \
  3309. source=sub/conftest.c object=$am__obj \
  3310. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  3311. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  3312. >/dev/null 2>conftest.err &&
  3313. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  3314. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  3315. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  3316. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  3317. # icc doesn't choke on unknown options, it will just issue warnings
  3318. # or remarks (even with -Werror). So we grep stderr for any message
  3319. # that says an option was ignored or not supported.
  3320. # When given -MP, icc 7.0 and 7.1 complain thusly:
  3321. # icc: Command line warning: ignoring option '-M'; no argument required
  3322. # The diagnosis changed in icc 8.0:
  3323. # icc: Command line remark: option '-MP' not supported
  3324. if (grep 'ignoring option' conftest.err ||
  3325. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  3326. am_cv_CC_dependencies_compiler_type=$depmode
  3327. break
  3328. fi
  3329. fi
  3330. done
  3331. cd ..
  3332. rm -rf conftest.dir
  3333. else
  3334. am_cv_CC_dependencies_compiler_type=none
  3335. fi
  3336. fi
  3337. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
  3338. $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
  3339. CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  3340. if
  3341. test "x$enable_dependency_tracking" != xno \
  3342. && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  3343. am__fastdepCC_TRUE=
  3344. am__fastdepCC_FALSE='#'
  3345. else
  3346. am__fastdepCC_TRUE='#'
  3347. am__fastdepCC_FALSE=
  3348. fi
  3349. ac_ext=c
  3350. ac_cpp='$CPP $CPPFLAGS'
  3351. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3352. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3353. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3354. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
  3355. $as_echo_n "checking how to run the C preprocessor... " >&6; }
  3356. # On Suns, sometimes $CPP names a directory.
  3357. if test -n "$CPP" && test -d "$CPP"; then
  3358. CPP=
  3359. fi
  3360. if test -z "$CPP"; then
  3361. if ${ac_cv_prog_CPP+:} false; then :
  3362. $as_echo_n "(cached) " >&6
  3363. else
  3364. # Double quotes because CPP needs to be expanded
  3365. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  3366. do
  3367. ac_preproc_ok=false
  3368. for ac_c_preproc_warn_flag in '' yes
  3369. do
  3370. # Use a header file that comes with gcc, so configuring glibc
  3371. # with a fresh cross-compiler works.
  3372. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  3373. # <limits.h> exists even on freestanding compilers.
  3374. # On the NeXT, cc -E runs the code through the compiler's parser,
  3375. # not just through cpp. "Syntax error" is here to catch this case.
  3376. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3377. /* end confdefs.h. */
  3378. @%:@ifdef __STDC__
  3379. @%:@ include <limits.h>
  3380. @%:@else
  3381. @%:@ include <assert.h>
  3382. @%:@endif
  3383. Syntax error
  3384. _ACEOF
  3385. if ac_fn_c_try_cpp "$LINENO"; then :
  3386. else
  3387. # Broken: fails on valid input.
  3388. continue
  3389. fi
  3390. rm -f conftest.err conftest.i conftest.$ac_ext
  3391. # OK, works on sane cases. Now check whether nonexistent headers
  3392. # can be detected and how.
  3393. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3394. /* end confdefs.h. */
  3395. @%:@include <ac_nonexistent.h>
  3396. _ACEOF
  3397. if ac_fn_c_try_cpp "$LINENO"; then :
  3398. # Broken: success on invalid input.
  3399. continue
  3400. else
  3401. # Passes both tests.
  3402. ac_preproc_ok=:
  3403. break
  3404. fi
  3405. rm -f conftest.err conftest.i conftest.$ac_ext
  3406. done
  3407. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  3408. rm -f conftest.i conftest.err conftest.$ac_ext
  3409. if $ac_preproc_ok; then :
  3410. break
  3411. fi
  3412. done
  3413. ac_cv_prog_CPP=$CPP
  3414. fi
  3415. CPP=$ac_cv_prog_CPP
  3416. else
  3417. ac_cv_prog_CPP=$CPP
  3418. fi
  3419. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
  3420. $as_echo "$CPP" >&6; }
  3421. ac_preproc_ok=false
  3422. for ac_c_preproc_warn_flag in '' yes
  3423. do
  3424. # Use a header file that comes with gcc, so configuring glibc
  3425. # with a fresh cross-compiler works.
  3426. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  3427. # <limits.h> exists even on freestanding compilers.
  3428. # On the NeXT, cc -E runs the code through the compiler's parser,
  3429. # not just through cpp. "Syntax error" is here to catch this case.
  3430. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3431. /* end confdefs.h. */
  3432. @%:@ifdef __STDC__
  3433. @%:@ include <limits.h>
  3434. @%:@else
  3435. @%:@ include <assert.h>
  3436. @%:@endif
  3437. Syntax error
  3438. _ACEOF
  3439. if ac_fn_c_try_cpp "$LINENO"; then :
  3440. else
  3441. # Broken: fails on valid input.
  3442. continue
  3443. fi
  3444. rm -f conftest.err conftest.i conftest.$ac_ext
  3445. # OK, works on sane cases. Now check whether nonexistent headers
  3446. # can be detected and how.
  3447. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3448. /* end confdefs.h. */
  3449. @%:@include <ac_nonexistent.h>
  3450. _ACEOF
  3451. if ac_fn_c_try_cpp "$LINENO"; then :
  3452. # Broken: success on invalid input.
  3453. continue
  3454. else
  3455. # Passes both tests.
  3456. ac_preproc_ok=:
  3457. break
  3458. fi
  3459. rm -f conftest.err conftest.i conftest.$ac_ext
  3460. done
  3461. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  3462. rm -f conftest.i conftest.err conftest.$ac_ext
  3463. if $ac_preproc_ok; then :
  3464. else
  3465. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3466. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3467. as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
  3468. See \`config.log' for more details" "$LINENO" 5; }
  3469. fi
  3470. ac_ext=c
  3471. ac_cpp='$CPP $CPPFLAGS'
  3472. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3473. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3474. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3475. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
  3476. $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
  3477. if ${ac_cv_path_GREP+:} false; then :
  3478. $as_echo_n "(cached) " >&6
  3479. else
  3480. if test -z "$GREP"; then
  3481. ac_path_GREP_found=false
  3482. # Loop through the user's path and test for each of PROGNAME-LIST
  3483. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3484. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3485. do
  3486. IFS=$as_save_IFS
  3487. test -z "$as_dir" && as_dir=.
  3488. for ac_prog in grep ggrep; do
  3489. for ac_exec_ext in '' $ac_executable_extensions; do
  3490. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  3491. { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
  3492. # Check for GNU ac_path_GREP and select it if it is found.
  3493. # Check for GNU $ac_path_GREP
  3494. case `"$ac_path_GREP" --version 2>&1` in
  3495. *GNU*)
  3496. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  3497. *)
  3498. ac_count=0
  3499. $as_echo_n 0123456789 >"conftest.in"
  3500. while :
  3501. do
  3502. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3503. mv "conftest.tmp" "conftest.in"
  3504. cp "conftest.in" "conftest.nl"
  3505. $as_echo 'GREP' >> "conftest.nl"
  3506. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3507. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3508. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3509. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  3510. # Best one so far, save it but keep looking for a better one
  3511. ac_cv_path_GREP="$ac_path_GREP"
  3512. ac_path_GREP_max=$ac_count
  3513. fi
  3514. # 10*(2^10) chars as input seems more than enough
  3515. test $ac_count -gt 10 && break
  3516. done
  3517. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3518. esac
  3519. $ac_path_GREP_found && break 3
  3520. done
  3521. done
  3522. done
  3523. IFS=$as_save_IFS
  3524. if test -z "$ac_cv_path_GREP"; then
  3525. as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  3526. fi
  3527. else
  3528. ac_cv_path_GREP=$GREP
  3529. fi
  3530. fi
  3531. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
  3532. $as_echo "$ac_cv_path_GREP" >&6; }
  3533. GREP="$ac_cv_path_GREP"
  3534. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  3535. $as_echo_n "checking for egrep... " >&6; }
  3536. if ${ac_cv_path_EGREP+:} false; then :
  3537. $as_echo_n "(cached) " >&6
  3538. else
  3539. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  3540. then ac_cv_path_EGREP="$GREP -E"
  3541. else
  3542. if test -z "$EGREP"; then
  3543. ac_path_EGREP_found=false
  3544. # Loop through the user's path and test for each of PROGNAME-LIST
  3545. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3546. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3547. do
  3548. IFS=$as_save_IFS
  3549. test -z "$as_dir" && as_dir=.
  3550. for ac_prog in egrep; do
  3551. for ac_exec_ext in '' $ac_executable_extensions; do
  3552. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  3553. { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
  3554. # Check for GNU ac_path_EGREP and select it if it is found.
  3555. # Check for GNU $ac_path_EGREP
  3556. case `"$ac_path_EGREP" --version 2>&1` in
  3557. *GNU*)
  3558. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  3559. *)
  3560. ac_count=0
  3561. $as_echo_n 0123456789 >"conftest.in"
  3562. while :
  3563. do
  3564. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3565. mv "conftest.tmp" "conftest.in"
  3566. cp "conftest.in" "conftest.nl"
  3567. $as_echo 'EGREP' >> "conftest.nl"
  3568. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3569. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3570. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3571. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  3572. # Best one so far, save it but keep looking for a better one
  3573. ac_cv_path_EGREP="$ac_path_EGREP"
  3574. ac_path_EGREP_max=$ac_count
  3575. fi
  3576. # 10*(2^10) chars as input seems more than enough
  3577. test $ac_count -gt 10 && break
  3578. done
  3579. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3580. esac
  3581. $ac_path_EGREP_found && break 3
  3582. done
  3583. done
  3584. done
  3585. IFS=$as_save_IFS
  3586. if test -z "$ac_cv_path_EGREP"; then
  3587. as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  3588. fi
  3589. else
  3590. ac_cv_path_EGREP=$EGREP
  3591. fi
  3592. fi
  3593. fi
  3594. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  3595. $as_echo "$ac_cv_path_EGREP" >&6; }
  3596. EGREP="$ac_cv_path_EGREP"
  3597. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  3598. $as_echo_n "checking for ANSI C header files... " >&6; }
  3599. if ${ac_cv_header_stdc+:} false; then :
  3600. $as_echo_n "(cached) " >&6
  3601. else
  3602. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3603. /* end confdefs.h. */
  3604. #include <stdlib.h>
  3605. #include <stdarg.h>
  3606. #include <string.h>
  3607. #include <float.h>
  3608. int
  3609. main ()
  3610. {
  3611. ;
  3612. return 0;
  3613. }
  3614. _ACEOF
  3615. if ac_fn_c_try_compile "$LINENO"; then :
  3616. ac_cv_header_stdc=yes
  3617. else
  3618. ac_cv_header_stdc=no
  3619. fi
  3620. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3621. if test $ac_cv_header_stdc = yes; then
  3622. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  3623. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3624. /* end confdefs.h. */
  3625. #include <string.h>
  3626. _ACEOF
  3627. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  3628. $EGREP "memchr" >/dev/null 2>&1; then :
  3629. else
  3630. ac_cv_header_stdc=no
  3631. fi
  3632. rm -f conftest*
  3633. fi
  3634. if test $ac_cv_header_stdc = yes; then
  3635. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  3636. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3637. /* end confdefs.h. */
  3638. #include <stdlib.h>
  3639. _ACEOF
  3640. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  3641. $EGREP "free" >/dev/null 2>&1; then :
  3642. else
  3643. ac_cv_header_stdc=no
  3644. fi
  3645. rm -f conftest*
  3646. fi
  3647. if test $ac_cv_header_stdc = yes; then
  3648. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  3649. if test "$cross_compiling" = yes; then :
  3650. :
  3651. else
  3652. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3653. /* end confdefs.h. */
  3654. #include <ctype.h>
  3655. #include <stdlib.h>
  3656. #if ((' ' & 0x0FF) == 0x020)
  3657. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  3658. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  3659. #else
  3660. # define ISLOWER(c) \
  3661. (('a' <= (c) && (c) <= 'i') \
  3662. || ('j' <= (c) && (c) <= 'r') \
  3663. || ('s' <= (c) && (c) <= 'z'))
  3664. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  3665. #endif
  3666. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  3667. int
  3668. main ()
  3669. {
  3670. int i;
  3671. for (i = 0; i < 256; i++)
  3672. if (XOR (islower (i), ISLOWER (i))
  3673. || toupper (i) != TOUPPER (i))
  3674. return 2;
  3675. return 0;
  3676. }
  3677. _ACEOF
  3678. if ac_fn_c_try_run "$LINENO"; then :
  3679. else
  3680. ac_cv_header_stdc=no
  3681. fi
  3682. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  3683. conftest.$ac_objext conftest.beam conftest.$ac_ext
  3684. fi
  3685. fi
  3686. fi
  3687. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  3688. $as_echo "$ac_cv_header_stdc" >&6; }
  3689. if test $ac_cv_header_stdc = yes; then
  3690. $as_echo "@%:@define STDC_HEADERS 1" >>confdefs.h
  3691. fi
  3692. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  3693. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  3694. inttypes.h stdint.h unistd.h
  3695. do :
  3696. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  3697. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  3698. "
  3699. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  3700. cat >>confdefs.h <<_ACEOF
  3701. @%:@define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  3702. _ACEOF
  3703. fi
  3704. done
  3705. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: A@&t@M_PATH_CHECK() is deprecated" >&5
  3706. $as_echo "$as_me: WARNING: A@&t@M_PATH_CHECK() is deprecated" >&2;}
  3707. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: use P@&t@KG_CHECK_MODULES([CHECK], [check >= 0.9.4]) instead" >&5
  3708. $as_echo "$as_me: WARNING: use P@&t@KG_CHECK_MODULES([CHECK], [check >= 0.9.4]) instead" >&2;}
  3709. @%:@ Check whether --with-check was given.
  3710. if test "${with_check+set}" = set; then :
  3711. withval=$with_check;
  3712. fi
  3713. min_check_version=0.8.2
  3714. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for check - version >= $min_check_version" >&5
  3715. $as_echo_n "checking for check - version >= $min_check_version... " >&6; }
  3716. if test x$with_check = xno; then
  3717. { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
  3718. $as_echo "disabled" >&6; }
  3719. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Check not found; cannot run unit tests!" >&5
  3720. $as_echo "$as_me: WARNING: Check not found; cannot run unit tests!" >&2;}
  3721. have_check="no"
  3722. else
  3723. if test "x$with_check" != x; then
  3724. CHECK_CFLAGS="-I$with_check/include"
  3725. CHECK_LIBS="-L$with_check/lib -lcheck"
  3726. else
  3727. CHECK_CFLAGS=""
  3728. CHECK_LIBS="-lcheck"
  3729. fi
  3730. ac_save_CFLAGS="$CFLAGS"
  3731. ac_save_LIBS="$LIBS"
  3732. CFLAGS="$CFLAGS $CHECK_CFLAGS"
  3733. LIBS="$CHECK_LIBS $LIBS"
  3734. rm -f conf.check-test
  3735. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3736. /* end confdefs.h. */
  3737. $ac_includes_default
  3738. #include <check.h>
  3739. int main ()
  3740. {
  3741. int major, minor, micro;
  3742. char *tmp_version;
  3743. system ("touch conf.check-test");
  3744. /* HP/UX 9 (%@#!) writes to sscanf strings */
  3745. tmp_version = strdup("$min_check_version");
  3746. if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
  3747. printf("%s, bad version string\n", "$min_check_version");
  3748. return 1;
  3749. }
  3750. if ((CHECK_MAJOR_VERSION != check_major_version) ||
  3751. (CHECK_MINOR_VERSION != check_minor_version) ||
  3752. (CHECK_MICRO_VERSION != check_micro_version))
  3753. {
  3754. printf("\n*** The check header file (version %d.%d.%d) does not match\n",
  3755. CHECK_MAJOR_VERSION, CHECK_MINOR_VERSION, CHECK_MICRO_VERSION);
  3756. printf("*** the check library (version %d.%d.%d).\n",
  3757. check_major_version, check_minor_version, check_micro_version);
  3758. return 1;
  3759. }
  3760. if ((check_major_version > major) ||
  3761. ((check_major_version == major) && (check_minor_version > minor)) ||
  3762. ((check_major_version == major) && (check_minor_version == minor) && (check_micro_version >= micro)))
  3763. {
  3764. return 0;
  3765. }
  3766. else
  3767. {
  3768. printf("\n*** An old version of check (%d.%d.%d) was found.\n",
  3769. check_major_version, check_minor_version, check_micro_version);
  3770. printf("*** You need a version of check being at least %d.%d.%d.\n", major, minor, micro);
  3771. printf("***\n");
  3772. printf("*** If you have already installed a sufficiently new version, this error\n");
  3773. printf("*** probably means that the wrong copy of the check library and header\n");
  3774. printf("*** file is being found. Rerun configure with the --with-check=PATH option\n");
  3775. printf("*** to specify the prefix where the correct version was installed.\n");
  3776. }
  3777. return 1;
  3778. }
  3779. _ACEOF
  3780. if ac_fn_c_try_compile "$LINENO"; then :
  3781. else
  3782. no_check=yes
  3783. fi
  3784. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3785. CFLAGS="$ac_save_CFLAGS"
  3786. LIBS="$ac_save_LIBS"
  3787. if test "x$no_check" = x ; then
  3788. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3789. $as_echo "yes" >&6; }
  3790. have_check="yes"
  3791. else
  3792. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3793. $as_echo "no" >&6; }
  3794. if test -f conf.check-test ; then
  3795. :
  3796. else
  3797. echo "*** Could not run check test program, checking why..."
  3798. CFLAGS="$CFLAGS $CHECK_CFLAGS"
  3799. LIBS="$CHECK_LIBS $LIBS"
  3800. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3801. /* end confdefs.h. */
  3802. #include <stdio.h>
  3803. #include <stdlib.h>
  3804. #include <check.h>
  3805. int
  3806. main ()
  3807. {
  3808. ;
  3809. return 0;
  3810. }
  3811. _ACEOF
  3812. if ac_fn_c_try_link "$LINENO"; then :
  3813. echo "*** The test program compiled, but did not run. This usually means"
  3814. echo "*** that the run-time linker is not finding check. You'll need to set your"
  3815. echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
  3816. echo "*** to the installed location Also, make sure you have run ldconfig if that"
  3817. echo "*** is required on your system"
  3818. echo "***"
  3819. echo "*** If you have an old version installed, it is best to remove it, although"
  3820. echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
  3821. else
  3822. echo "*** The test program failed to compile or link. See the file config.log for"
  3823. echo "*** the exact error that occured."
  3824. fi
  3825. rm -f core conftest.err conftest.$ac_objext \
  3826. conftest$ac_exeext conftest.$ac_ext
  3827. CFLAGS="$ac_save_CFLAGS"
  3828. LIBS="$ac_save_LIBS"
  3829. fi
  3830. CHECK_CFLAGS=""
  3831. CHECK_LIBS=""
  3832. rm -f conf.check-test
  3833. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Check not found; cannot run unit tests!" >&5
  3834. $as_echo "$as_me: WARNING: Check not found; cannot run unit tests!" >&2;}
  3835. have_check="no"
  3836. fi
  3837. rm -f conf.check-test
  3838. fi
  3839. if test x"$have_check" = "xyes"; then
  3840. HAVE_CHECK_TRUE=
  3841. HAVE_CHECK_FALSE='#'
  3842. else
  3843. HAVE_CHECK_TRUE='#'
  3844. HAVE_CHECK_FALSE=
  3845. fi
  3846. ac_ext=c
  3847. ac_cpp='$CPP $CPPFLAGS'
  3848. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3849. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3850. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3851. if test -n "$ac_tool_prefix"; then
  3852. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  3853. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  3854. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3855. $as_echo_n "checking for $ac_word... " >&6; }
  3856. if ${ac_cv_prog_CC+:} false; then :
  3857. $as_echo_n "(cached) " >&6
  3858. else
  3859. if test -n "$CC"; then
  3860. ac_cv_prog_CC="$CC" # Let the user override the test.
  3861. else
  3862. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3863. for as_dir in $PATH
  3864. do
  3865. IFS=$as_save_IFS
  3866. test -z "$as_dir" && as_dir=.
  3867. for ac_exec_ext in '' $ac_executable_extensions; do
  3868. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3869. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  3870. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3871. break 2
  3872. fi
  3873. done
  3874. done
  3875. IFS=$as_save_IFS
  3876. fi
  3877. fi
  3878. CC=$ac_cv_prog_CC
  3879. if test -n "$CC"; then
  3880. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3881. $as_echo "$CC" >&6; }
  3882. else
  3883. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3884. $as_echo "no" >&6; }
  3885. fi
  3886. fi
  3887. if test -z "$ac_cv_prog_CC"; then
  3888. ac_ct_CC=$CC
  3889. # Extract the first word of "gcc", so it can be a program name with args.
  3890. set dummy gcc; ac_word=$2
  3891. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3892. $as_echo_n "checking for $ac_word... " >&6; }
  3893. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  3894. $as_echo_n "(cached) " >&6
  3895. else
  3896. if test -n "$ac_ct_CC"; then
  3897. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3898. else
  3899. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3900. for as_dir in $PATH
  3901. do
  3902. IFS=$as_save_IFS
  3903. test -z "$as_dir" && as_dir=.
  3904. for ac_exec_ext in '' $ac_executable_extensions; do
  3905. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3906. ac_cv_prog_ac_ct_CC="gcc"
  3907. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3908. break 2
  3909. fi
  3910. done
  3911. done
  3912. IFS=$as_save_IFS
  3913. fi
  3914. fi
  3915. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3916. if test -n "$ac_ct_CC"; then
  3917. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  3918. $as_echo "$ac_ct_CC" >&6; }
  3919. else
  3920. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3921. $as_echo "no" >&6; }
  3922. fi
  3923. if test "x$ac_ct_CC" = x; then
  3924. CC=""
  3925. else
  3926. case $cross_compiling:$ac_tool_warned in
  3927. yes:)
  3928. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3929. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3930. ac_tool_warned=yes ;;
  3931. esac
  3932. CC=$ac_ct_CC
  3933. fi
  3934. else
  3935. CC="$ac_cv_prog_CC"
  3936. fi
  3937. if test -z "$CC"; then
  3938. if test -n "$ac_tool_prefix"; then
  3939. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  3940. set dummy ${ac_tool_prefix}cc; ac_word=$2
  3941. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3942. $as_echo_n "checking for $ac_word... " >&6; }
  3943. if ${ac_cv_prog_CC+:} false; then :
  3944. $as_echo_n "(cached) " >&6
  3945. else
  3946. if test -n "$CC"; then
  3947. ac_cv_prog_CC="$CC" # Let the user override the test.
  3948. else
  3949. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3950. for as_dir in $PATH
  3951. do
  3952. IFS=$as_save_IFS
  3953. test -z "$as_dir" && as_dir=.
  3954. for ac_exec_ext in '' $ac_executable_extensions; do
  3955. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3956. ac_cv_prog_CC="${ac_tool_prefix}cc"
  3957. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3958. break 2
  3959. fi
  3960. done
  3961. done
  3962. IFS=$as_save_IFS
  3963. fi
  3964. fi
  3965. CC=$ac_cv_prog_CC
  3966. if test -n "$CC"; then
  3967. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3968. $as_echo "$CC" >&6; }
  3969. else
  3970. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3971. $as_echo "no" >&6; }
  3972. fi
  3973. fi
  3974. fi
  3975. if test -z "$CC"; then
  3976. # Extract the first word of "cc", so it can be a program name with args.
  3977. set dummy cc; ac_word=$2
  3978. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3979. $as_echo_n "checking for $ac_word... " >&6; }
  3980. if ${ac_cv_prog_CC+:} false; then :
  3981. $as_echo_n "(cached) " >&6
  3982. else
  3983. if test -n "$CC"; then
  3984. ac_cv_prog_CC="$CC" # Let the user override the test.
  3985. else
  3986. ac_prog_rejected=no
  3987. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3988. for as_dir in $PATH
  3989. do
  3990. IFS=$as_save_IFS
  3991. test -z "$as_dir" && as_dir=.
  3992. for ac_exec_ext in '' $ac_executable_extensions; do
  3993. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3994. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  3995. ac_prog_rejected=yes
  3996. continue
  3997. fi
  3998. ac_cv_prog_CC="cc"
  3999. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4000. break 2
  4001. fi
  4002. done
  4003. done
  4004. IFS=$as_save_IFS
  4005. if test $ac_prog_rejected = yes; then
  4006. # We found a bogon in the path, so make sure we never use it.
  4007. set dummy $ac_cv_prog_CC
  4008. shift
  4009. if test $@%:@ != 0; then
  4010. # We chose a different compiler from the bogus one.
  4011. # However, it has the same basename, so the bogon will be chosen
  4012. # first if we set CC to just the basename; use the full file name.
  4013. shift
  4014. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  4015. fi
  4016. fi
  4017. fi
  4018. fi
  4019. CC=$ac_cv_prog_CC
  4020. if test -n "$CC"; then
  4021. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  4022. $as_echo "$CC" >&6; }
  4023. else
  4024. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4025. $as_echo "no" >&6; }
  4026. fi
  4027. fi
  4028. if test -z "$CC"; then
  4029. if test -n "$ac_tool_prefix"; then
  4030. for ac_prog in cl.exe
  4031. do
  4032. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  4033. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  4034. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4035. $as_echo_n "checking for $ac_word... " >&6; }
  4036. if ${ac_cv_prog_CC+:} false; then :
  4037. $as_echo_n "(cached) " >&6
  4038. else
  4039. if test -n "$CC"; then
  4040. ac_cv_prog_CC="$CC" # Let the user override the test.
  4041. else
  4042. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4043. for as_dir in $PATH
  4044. do
  4045. IFS=$as_save_IFS
  4046. test -z "$as_dir" && as_dir=.
  4047. for ac_exec_ext in '' $ac_executable_extensions; do
  4048. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4049. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  4050. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4051. break 2
  4052. fi
  4053. done
  4054. done
  4055. IFS=$as_save_IFS
  4056. fi
  4057. fi
  4058. CC=$ac_cv_prog_CC
  4059. if test -n "$CC"; then
  4060. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  4061. $as_echo "$CC" >&6; }
  4062. else
  4063. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4064. $as_echo "no" >&6; }
  4065. fi
  4066. test -n "$CC" && break
  4067. done
  4068. fi
  4069. if test -z "$CC"; then
  4070. ac_ct_CC=$CC
  4071. for ac_prog in cl.exe
  4072. do
  4073. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4074. set dummy $ac_prog; ac_word=$2
  4075. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4076. $as_echo_n "checking for $ac_word... " >&6; }
  4077. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  4078. $as_echo_n "(cached) " >&6
  4079. else
  4080. if test -n "$ac_ct_CC"; then
  4081. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  4082. else
  4083. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4084. for as_dir in $PATH
  4085. do
  4086. IFS=$as_save_IFS
  4087. test -z "$as_dir" && as_dir=.
  4088. for ac_exec_ext in '' $ac_executable_extensions; do
  4089. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4090. ac_cv_prog_ac_ct_CC="$ac_prog"
  4091. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4092. break 2
  4093. fi
  4094. done
  4095. done
  4096. IFS=$as_save_IFS
  4097. fi
  4098. fi
  4099. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  4100. if test -n "$ac_ct_CC"; then
  4101. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  4102. $as_echo "$ac_ct_CC" >&6; }
  4103. else
  4104. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4105. $as_echo "no" >&6; }
  4106. fi
  4107. test -n "$ac_ct_CC" && break
  4108. done
  4109. if test "x$ac_ct_CC" = x; then
  4110. CC=""
  4111. else
  4112. case $cross_compiling:$ac_tool_warned in
  4113. yes:)
  4114. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4115. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4116. ac_tool_warned=yes ;;
  4117. esac
  4118. CC=$ac_ct_CC
  4119. fi
  4120. fi
  4121. fi
  4122. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  4123. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  4124. as_fn_error $? "no acceptable C compiler found in \$PATH
  4125. See \`config.log' for more details" "$LINENO" 5; }
  4126. # Provide some information about the compiler.
  4127. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  4128. set X $ac_compile
  4129. ac_compiler=$2
  4130. for ac_option in --version -v -V -qversion; do
  4131. { { ac_try="$ac_compiler $ac_option >&5"
  4132. case "(($ac_try" in
  4133. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4134. *) ac_try_echo=$ac_try;;
  4135. esac
  4136. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  4137. $as_echo "$ac_try_echo"; } >&5
  4138. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  4139. ac_status=$?
  4140. if test -s conftest.err; then
  4141. sed '10a\
  4142. ... rest of stderr output deleted ...
  4143. 10q' conftest.err >conftest.er1
  4144. cat conftest.er1 >&5
  4145. fi
  4146. rm -f conftest.er1 conftest.err
  4147. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4148. test $ac_status = 0; }
  4149. done
  4150. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  4151. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  4152. if ${ac_cv_c_compiler_gnu+:} false; then :
  4153. $as_echo_n "(cached) " >&6
  4154. else
  4155. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4156. /* end confdefs.h. */
  4157. int
  4158. main ()
  4159. {
  4160. #ifndef __GNUC__
  4161. choke me
  4162. #endif
  4163. ;
  4164. return 0;
  4165. }
  4166. _ACEOF
  4167. if ac_fn_c_try_compile "$LINENO"; then :
  4168. ac_compiler_gnu=yes
  4169. else
  4170. ac_compiler_gnu=no
  4171. fi
  4172. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4173. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  4174. fi
  4175. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  4176. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  4177. if test $ac_compiler_gnu = yes; then
  4178. GCC=yes
  4179. else
  4180. GCC=
  4181. fi
  4182. ac_test_CFLAGS=${CFLAGS+set}
  4183. ac_save_CFLAGS=$CFLAGS
  4184. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  4185. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  4186. if ${ac_cv_prog_cc_g+:} false; then :
  4187. $as_echo_n "(cached) " >&6
  4188. else
  4189. ac_save_c_werror_flag=$ac_c_werror_flag
  4190. ac_c_werror_flag=yes
  4191. ac_cv_prog_cc_g=no
  4192. CFLAGS="-g"
  4193. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4194. /* end confdefs.h. */
  4195. int
  4196. main ()
  4197. {
  4198. ;
  4199. return 0;
  4200. }
  4201. _ACEOF
  4202. if ac_fn_c_try_compile "$LINENO"; then :
  4203. ac_cv_prog_cc_g=yes
  4204. else
  4205. CFLAGS=""
  4206. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4207. /* end confdefs.h. */
  4208. int
  4209. main ()
  4210. {
  4211. ;
  4212. return 0;
  4213. }
  4214. _ACEOF
  4215. if ac_fn_c_try_compile "$LINENO"; then :
  4216. else
  4217. ac_c_werror_flag=$ac_save_c_werror_flag
  4218. CFLAGS="-g"
  4219. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4220. /* end confdefs.h. */
  4221. int
  4222. main ()
  4223. {
  4224. ;
  4225. return 0;
  4226. }
  4227. _ACEOF
  4228. if ac_fn_c_try_compile "$LINENO"; then :
  4229. ac_cv_prog_cc_g=yes
  4230. fi
  4231. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4232. fi
  4233. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4234. fi
  4235. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4236. ac_c_werror_flag=$ac_save_c_werror_flag
  4237. fi
  4238. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  4239. $as_echo "$ac_cv_prog_cc_g" >&6; }
  4240. if test "$ac_test_CFLAGS" = set; then
  4241. CFLAGS=$ac_save_CFLAGS
  4242. elif test $ac_cv_prog_cc_g = yes; then
  4243. if test "$GCC" = yes; then
  4244. CFLAGS="-g -O2"
  4245. else
  4246. CFLAGS="-g"
  4247. fi
  4248. else
  4249. if test "$GCC" = yes; then
  4250. CFLAGS="-O2"
  4251. else
  4252. CFLAGS=
  4253. fi
  4254. fi
  4255. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  4256. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  4257. if ${ac_cv_prog_cc_c89+:} false; then :
  4258. $as_echo_n "(cached) " >&6
  4259. else
  4260. ac_cv_prog_cc_c89=no
  4261. ac_save_CC=$CC
  4262. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4263. /* end confdefs.h. */
  4264. #include <stdarg.h>
  4265. #include <stdio.h>
  4266. #include <sys/types.h>
  4267. #include <sys/stat.h>
  4268. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  4269. struct buf { int x; };
  4270. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  4271. static char *e (p, i)
  4272. char **p;
  4273. int i;
  4274. {
  4275. return p[i];
  4276. }
  4277. static char *f (char * (*g) (char **, int), char **p, ...)
  4278. {
  4279. char *s;
  4280. va_list v;
  4281. va_start (v,p);
  4282. s = g (p, va_arg (v,int));
  4283. va_end (v);
  4284. return s;
  4285. }
  4286. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  4287. function prototypes and stuff, but not '\xHH' hex character constants.
  4288. These don't provoke an error unfortunately, instead are silently treated
  4289. as 'x'. The following induces an error, until -std is added to get
  4290. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  4291. array size at least. It's necessary to write '\x00'==0 to get something
  4292. that's true only with -std. */
  4293. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  4294. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  4295. inside strings and character constants. */
  4296. #define FOO(x) 'x'
  4297. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  4298. int test (int i, double x);
  4299. struct s1 {int (*f) (int a);};
  4300. struct s2 {int (*f) (double a);};
  4301. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  4302. int argc;
  4303. char **argv;
  4304. int
  4305. main ()
  4306. {
  4307. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  4308. ;
  4309. return 0;
  4310. }
  4311. _ACEOF
  4312. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  4313. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  4314. do
  4315. CC="$ac_save_CC $ac_arg"
  4316. if ac_fn_c_try_compile "$LINENO"; then :
  4317. ac_cv_prog_cc_c89=$ac_arg
  4318. fi
  4319. rm -f core conftest.err conftest.$ac_objext
  4320. test "x$ac_cv_prog_cc_c89" != "xno" && break
  4321. done
  4322. rm -f conftest.$ac_ext
  4323. CC=$ac_save_CC
  4324. fi
  4325. # AC_CACHE_VAL
  4326. case "x$ac_cv_prog_cc_c89" in
  4327. x)
  4328. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  4329. $as_echo "none needed" >&6; } ;;
  4330. xno)
  4331. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  4332. $as_echo "unsupported" >&6; } ;;
  4333. *)
  4334. CC="$CC $ac_cv_prog_cc_c89"
  4335. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  4336. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  4337. esac
  4338. if test "x$ac_cv_prog_cc_c89" != xno; then :
  4339. fi
  4340. ac_ext=c
  4341. ac_cpp='$CPP $CPPFLAGS'
  4342. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4343. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4344. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4345. depcc="$CC" am_compiler_list=
  4346. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  4347. $as_echo_n "checking dependency style of $depcc... " >&6; }
  4348. if ${am_cv_CC_dependencies_compiler_type+:} false; then :
  4349. $as_echo_n "(cached) " >&6
  4350. else
  4351. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  4352. # We make a subdir and do the tests there. Otherwise we can end up
  4353. # making bogus files that we don't know about and never remove. For
  4354. # instance it was reported that on HP-UX the gcc test will end up
  4355. # making a dummy file named `D' -- because `-MD' means `put the output
  4356. # in D'.
  4357. rm -rf conftest.dir
  4358. mkdir conftest.dir
  4359. # Copy depcomp to subdir because otherwise we won't find it if we're
  4360. # using a relative directory.
  4361. cp "$am_depcomp" conftest.dir
  4362. cd conftest.dir
  4363. # We will build objects and dependencies in a subdirectory because
  4364. # it helps to detect inapplicable dependency modes. For instance
  4365. # both Tru64's cc and ICC support -MD to output dependencies as a
  4366. # side effect of compilation, but ICC will put the dependencies in
  4367. # the current directory while Tru64 will put them in the object
  4368. # directory.
  4369. mkdir sub
  4370. am_cv_CC_dependencies_compiler_type=none
  4371. if test "$am_compiler_list" = ""; then
  4372. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  4373. fi
  4374. am__universal=false
  4375. case " $depcc " in #(
  4376. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  4377. esac
  4378. for depmode in $am_compiler_list; do
  4379. # Setup a source with many dependencies, because some compilers
  4380. # like to wrap large dependency lists on column 80 (with \), and
  4381. # we should not choose a depcomp mode which is confused by this.
  4382. #
  4383. # We need to recreate these files for each test, as the compiler may
  4384. # overwrite some of them when testing with obscure command lines.
  4385. # This happens at least with the AIX C compiler.
  4386. : > sub/conftest.c
  4387. for i in 1 2 3 4 5 6; do
  4388. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  4389. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  4390. # Solaris 8's {/usr,}/bin/sh.
  4391. touch sub/conftst$i.h
  4392. done
  4393. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  4394. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  4395. # mode. It turns out that the SunPro C++ compiler does not properly
  4396. # handle `-M -o', and we need to detect this. Also, some Intel
  4397. # versions had trouble with output in subdirs
  4398. am__obj=sub/conftest.${OBJEXT-o}
  4399. am__minus_obj="-o $am__obj"
  4400. case $depmode in
  4401. gcc)
  4402. # This depmode causes a compiler race in universal mode.
  4403. test "$am__universal" = false || continue
  4404. ;;
  4405. nosideeffect)
  4406. # after this tag, mechanisms are not by side-effect, so they'll
  4407. # only be used when explicitly requested
  4408. if test "x$enable_dependency_tracking" = xyes; then
  4409. continue
  4410. else
  4411. break
  4412. fi
  4413. ;;
  4414. msvc7 | msvc7msys | msvisualcpp | msvcmsys)
  4415. # This compiler won't grok `-c -o', but also, the minuso test has
  4416. # not run yet. These depmodes are late enough in the game, and
  4417. # so weak that their functioning should not be impacted.
  4418. am__obj=conftest.${OBJEXT-o}
  4419. am__minus_obj=
  4420. ;;
  4421. none) break ;;
  4422. esac
  4423. if depmode=$depmode \
  4424. source=sub/conftest.c object=$am__obj \
  4425. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  4426. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  4427. >/dev/null 2>conftest.err &&
  4428. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  4429. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  4430. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  4431. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  4432. # icc doesn't choke on unknown options, it will just issue warnings
  4433. # or remarks (even with -Werror). So we grep stderr for any message
  4434. # that says an option was ignored or not supported.
  4435. # When given -MP, icc 7.0 and 7.1 complain thusly:
  4436. # icc: Command line warning: ignoring option '-M'; no argument required
  4437. # The diagnosis changed in icc 8.0:
  4438. # icc: Command line remark: option '-MP' not supported
  4439. if (grep 'ignoring option' conftest.err ||
  4440. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  4441. am_cv_CC_dependencies_compiler_type=$depmode
  4442. break
  4443. fi
  4444. fi
  4445. done
  4446. cd ..
  4447. rm -rf conftest.dir
  4448. else
  4449. am_cv_CC_dependencies_compiler_type=none
  4450. fi
  4451. fi
  4452. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
  4453. $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
  4454. CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  4455. if
  4456. test "x$enable_dependency_tracking" != xno \
  4457. && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  4458. am__fastdepCC_TRUE=
  4459. am__fastdepCC_FALSE='#'
  4460. else
  4461. am__fastdepCC_TRUE='#'
  4462. am__fastdepCC_FALSE=
  4463. fi
  4464. if test "x$CC" != xcc; then
  4465. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
  4466. $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
  4467. else
  4468. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
  4469. $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
  4470. fi
  4471. set dummy $CC; ac_cc=`$as_echo "$2" |
  4472. sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
  4473. if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
  4474. $as_echo_n "(cached) " >&6
  4475. else
  4476. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4477. /* end confdefs.h. */
  4478. int
  4479. main ()
  4480. {
  4481. ;
  4482. return 0;
  4483. }
  4484. _ACEOF
  4485. # Make sure it works both with $CC and with simple cc.
  4486. # We do the test twice because some compilers refuse to overwrite an
  4487. # existing .o file with -o, though they will create one.
  4488. ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
  4489. rm -f conftest2.*
  4490. if { { case "(($ac_try" in
  4491. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4492. *) ac_try_echo=$ac_try;;
  4493. esac
  4494. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  4495. $as_echo "$ac_try_echo"; } >&5
  4496. (eval "$ac_try") 2>&5
  4497. ac_status=$?
  4498. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4499. test $ac_status = 0; } &&
  4500. test -f conftest2.$ac_objext && { { case "(($ac_try" in
  4501. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4502. *) ac_try_echo=$ac_try;;
  4503. esac
  4504. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  4505. $as_echo "$ac_try_echo"; } >&5
  4506. (eval "$ac_try") 2>&5
  4507. ac_status=$?
  4508. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4509. test $ac_status = 0; };
  4510. then
  4511. eval ac_cv_prog_cc_${ac_cc}_c_o=yes
  4512. if test "x$CC" != xcc; then
  4513. # Test first that cc exists at all.
  4514. if { ac_try='cc -c conftest.$ac_ext >&5'
  4515. { { case "(($ac_try" in
  4516. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4517. *) ac_try_echo=$ac_try;;
  4518. esac
  4519. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  4520. $as_echo "$ac_try_echo"; } >&5
  4521. (eval "$ac_try") 2>&5
  4522. ac_status=$?
  4523. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4524. test $ac_status = 0; }; }; then
  4525. ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
  4526. rm -f conftest2.*
  4527. if { { case "(($ac_try" in
  4528. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4529. *) ac_try_echo=$ac_try;;
  4530. esac
  4531. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  4532. $as_echo "$ac_try_echo"; } >&5
  4533. (eval "$ac_try") 2>&5
  4534. ac_status=$?
  4535. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4536. test $ac_status = 0; } &&
  4537. test -f conftest2.$ac_objext && { { case "(($ac_try" in
  4538. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4539. *) ac_try_echo=$ac_try;;
  4540. esac
  4541. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  4542. $as_echo "$ac_try_echo"; } >&5
  4543. (eval "$ac_try") 2>&5
  4544. ac_status=$?
  4545. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4546. test $ac_status = 0; };
  4547. then
  4548. # cc works too.
  4549. :
  4550. else
  4551. # cc exists but doesn't like -o.
  4552. eval ac_cv_prog_cc_${ac_cc}_c_o=no
  4553. fi
  4554. fi
  4555. fi
  4556. else
  4557. eval ac_cv_prog_cc_${ac_cc}_c_o=no
  4558. fi
  4559. rm -f core conftest*
  4560. fi
  4561. if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
  4562. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4563. $as_echo "yes" >&6; }
  4564. else
  4565. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4566. $as_echo "no" >&6; }
  4567. $as_echo "@%:@define NO_MINUS_C_MINUS_O 1" >>confdefs.h
  4568. fi
  4569. case `pwd` in
  4570. *\ * | *\ *)
  4571. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
  4572. $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
  4573. esac
  4574. macro_version='2.4.2'
  4575. macro_revision='1.3337'
  4576. ltmain="$ac_aux_dir/ltmain.sh"
  4577. # Backslashify metacharacters that are still active within
  4578. # double-quoted strings.
  4579. sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
  4580. # Same as above, but do not quote variable references.
  4581. double_quote_subst='s/\(["`\\]\)/\\\1/g'
  4582. # Sed substitution to delay expansion of an escaped shell variable in a
  4583. # double_quote_subst'ed string.
  4584. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  4585. # Sed substitution to delay expansion of an escaped single quote.
  4586. delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
  4587. # Sed substitution to avoid accidental globbing in evaled expressions
  4588. no_glob_subst='s/\*/\\\*/g'
  4589. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  4590. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
  4591. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
  4592. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
  4593. $as_echo_n "checking how to print strings... " >&6; }
  4594. # Test print first, because it will be a builtin if present.
  4595. if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
  4596. test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
  4597. ECHO='print -r --'
  4598. elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
  4599. ECHO='printf %s\n'
  4600. else
  4601. # Use this function as a fallback that always works.
  4602. func_fallback_echo ()
  4603. {
  4604. eval 'cat <<_LTECHO_EOF
  4605. $1
  4606. _LTECHO_EOF'
  4607. }
  4608. ECHO='func_fallback_echo'
  4609. fi
  4610. # func_echo_all arg...
  4611. # Invoke $ECHO with all args, space-separated.
  4612. func_echo_all ()
  4613. {
  4614. $ECHO ""
  4615. }
  4616. case "$ECHO" in
  4617. printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
  4618. $as_echo "printf" >&6; } ;;
  4619. print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
  4620. $as_echo "print -r" >&6; } ;;
  4621. *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
  4622. $as_echo "cat" >&6; } ;;
  4623. esac
  4624. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
  4625. $as_echo_n "checking for a sed that does not truncate output... " >&6; }
  4626. if ${ac_cv_path_SED+:} false; then :
  4627. $as_echo_n "(cached) " >&6
  4628. else
  4629. ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  4630. for ac_i in 1 2 3 4 5 6 7; do
  4631. ac_script="$ac_script$as_nl$ac_script"
  4632. done
  4633. echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
  4634. { ac_script=; unset ac_script;}
  4635. if test -z "$SED"; then
  4636. ac_path_SED_found=false
  4637. # Loop through the user's path and test for each of PROGNAME-LIST
  4638. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4639. for as_dir in $PATH
  4640. do
  4641. IFS=$as_save_IFS
  4642. test -z "$as_dir" && as_dir=.
  4643. for ac_prog in sed gsed; do
  4644. for ac_exec_ext in '' $ac_executable_extensions; do
  4645. ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
  4646. { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
  4647. # Check for GNU ac_path_SED and select it if it is found.
  4648. # Check for GNU $ac_path_SED
  4649. case `"$ac_path_SED" --version 2>&1` in
  4650. *GNU*)
  4651. ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  4652. *)
  4653. ac_count=0
  4654. $as_echo_n 0123456789 >"conftest.in"
  4655. while :
  4656. do
  4657. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4658. mv "conftest.tmp" "conftest.in"
  4659. cp "conftest.in" "conftest.nl"
  4660. $as_echo '' >> "conftest.nl"
  4661. "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4662. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4663. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4664. if test $ac_count -gt ${ac_path_SED_max-0}; then
  4665. # Best one so far, save it but keep looking for a better one
  4666. ac_cv_path_SED="$ac_path_SED"
  4667. ac_path_SED_max=$ac_count
  4668. fi
  4669. # 10*(2^10) chars as input seems more than enough
  4670. test $ac_count -gt 10 && break
  4671. done
  4672. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4673. esac
  4674. $ac_path_SED_found && break 3
  4675. done
  4676. done
  4677. done
  4678. IFS=$as_save_IFS
  4679. if test -z "$ac_cv_path_SED"; then
  4680. as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
  4681. fi
  4682. else
  4683. ac_cv_path_SED=$SED
  4684. fi
  4685. fi
  4686. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
  4687. $as_echo "$ac_cv_path_SED" >&6; }
  4688. SED="$ac_cv_path_SED"
  4689. rm -f conftest.sed
  4690. test -z "$SED" && SED=sed
  4691. Xsed="$SED -e 1s/^X//"
  4692. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
  4693. $as_echo_n "checking for fgrep... " >&6; }
  4694. if ${ac_cv_path_FGREP+:} false; then :
  4695. $as_echo_n "(cached) " >&6
  4696. else
  4697. if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
  4698. then ac_cv_path_FGREP="$GREP -F"
  4699. else
  4700. if test -z "$FGREP"; then
  4701. ac_path_FGREP_found=false
  4702. # Loop through the user's path and test for each of PROGNAME-LIST
  4703. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4704. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4705. do
  4706. IFS=$as_save_IFS
  4707. test -z "$as_dir" && as_dir=.
  4708. for ac_prog in fgrep; do
  4709. for ac_exec_ext in '' $ac_executable_extensions; do
  4710. ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
  4711. { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
  4712. # Check for GNU ac_path_FGREP and select it if it is found.
  4713. # Check for GNU $ac_path_FGREP
  4714. case `"$ac_path_FGREP" --version 2>&1` in
  4715. *GNU*)
  4716. ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
  4717. *)
  4718. ac_count=0
  4719. $as_echo_n 0123456789 >"conftest.in"
  4720. while :
  4721. do
  4722. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4723. mv "conftest.tmp" "conftest.in"
  4724. cp "conftest.in" "conftest.nl"
  4725. $as_echo 'FGREP' >> "conftest.nl"
  4726. "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4727. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4728. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4729. if test $ac_count -gt ${ac_path_FGREP_max-0}; then
  4730. # Best one so far, save it but keep looking for a better one
  4731. ac_cv_path_FGREP="$ac_path_FGREP"
  4732. ac_path_FGREP_max=$ac_count
  4733. fi
  4734. # 10*(2^10) chars as input seems more than enough
  4735. test $ac_count -gt 10 && break
  4736. done
  4737. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4738. esac
  4739. $ac_path_FGREP_found && break 3
  4740. done
  4741. done
  4742. done
  4743. IFS=$as_save_IFS
  4744. if test -z "$ac_cv_path_FGREP"; then
  4745. as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4746. fi
  4747. else
  4748. ac_cv_path_FGREP=$FGREP
  4749. fi
  4750. fi
  4751. fi
  4752. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
  4753. $as_echo "$ac_cv_path_FGREP" >&6; }
  4754. FGREP="$ac_cv_path_FGREP"
  4755. test -z "$GREP" && GREP=grep
  4756. @%:@ Check whether --with-gnu-ld was given.
  4757. if test "${with_gnu_ld+set}" = set; then :
  4758. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  4759. else
  4760. with_gnu_ld=no
  4761. fi
  4762. ac_prog=ld
  4763. if test "$GCC" = yes; then
  4764. # Check if gcc -print-prog-name=ld gives a path.
  4765. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  4766. $as_echo_n "checking for ld used by $CC... " >&6; }
  4767. case $host in
  4768. *-*-mingw*)
  4769. # gcc leaves a trailing carriage return which upsets mingw
  4770. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  4771. *)
  4772. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  4773. esac
  4774. case $ac_prog in
  4775. # Accept absolute paths.
  4776. [\\/]* | ?:[\\/]*)
  4777. re_direlt='/[^/][^/]*/\.\./'
  4778. # Canonicalize the pathname of ld
  4779. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  4780. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  4781. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  4782. done
  4783. test -z "$LD" && LD="$ac_prog"
  4784. ;;
  4785. "")
  4786. # If it fails, then pretend we aren't using GCC.
  4787. ac_prog=ld
  4788. ;;
  4789. *)
  4790. # If it is relative, then search for the first ld in PATH.
  4791. with_gnu_ld=unknown
  4792. ;;
  4793. esac
  4794. elif test "$with_gnu_ld" = yes; then
  4795. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  4796. $as_echo_n "checking for GNU ld... " >&6; }
  4797. else
  4798. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  4799. $as_echo_n "checking for non-GNU ld... " >&6; }
  4800. fi
  4801. if ${lt_cv_path_LD+:} false; then :
  4802. $as_echo_n "(cached) " >&6
  4803. else
  4804. if test -z "$LD"; then
  4805. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  4806. for ac_dir in $PATH; do
  4807. IFS="$lt_save_ifs"
  4808. test -z "$ac_dir" && ac_dir=.
  4809. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  4810. lt_cv_path_LD="$ac_dir/$ac_prog"
  4811. # Check to see if the program is GNU ld. I'd rather use --version,
  4812. # but apparently some variants of GNU ld only accept -v.
  4813. # Break only if it was the GNU/non-GNU ld that we prefer.
  4814. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  4815. *GNU* | *'with BFD'*)
  4816. test "$with_gnu_ld" != no && break
  4817. ;;
  4818. *)
  4819. test "$with_gnu_ld" != yes && break
  4820. ;;
  4821. esac
  4822. fi
  4823. done
  4824. IFS="$lt_save_ifs"
  4825. else
  4826. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  4827. fi
  4828. fi
  4829. LD="$lt_cv_path_LD"
  4830. if test -n "$LD"; then
  4831. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  4832. $as_echo "$LD" >&6; }
  4833. else
  4834. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4835. $as_echo "no" >&6; }
  4836. fi
  4837. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  4838. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  4839. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  4840. if ${lt_cv_prog_gnu_ld+:} false; then :
  4841. $as_echo_n "(cached) " >&6
  4842. else
  4843. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  4844. case `$LD -v 2>&1 </dev/null` in
  4845. *GNU* | *'with BFD'*)
  4846. lt_cv_prog_gnu_ld=yes
  4847. ;;
  4848. *)
  4849. lt_cv_prog_gnu_ld=no
  4850. ;;
  4851. esac
  4852. fi
  4853. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  4854. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  4855. with_gnu_ld=$lt_cv_prog_gnu_ld
  4856. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
  4857. $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
  4858. if ${lt_cv_path_NM+:} false; then :
  4859. $as_echo_n "(cached) " >&6
  4860. else
  4861. if test -n "$NM"; then
  4862. # Let the user override the test.
  4863. lt_cv_path_NM="$NM"
  4864. else
  4865. lt_nm_to_check="${ac_tool_prefix}nm"
  4866. if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
  4867. lt_nm_to_check="$lt_nm_to_check nm"
  4868. fi
  4869. for lt_tmp_nm in $lt_nm_to_check; do
  4870. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  4871. for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
  4872. IFS="$lt_save_ifs"
  4873. test -z "$ac_dir" && ac_dir=.
  4874. tmp_nm="$ac_dir/$lt_tmp_nm"
  4875. if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
  4876. # Check to see if the nm accepts a BSD-compat flag.
  4877. # Adding the `sed 1q' prevents false positives on HP-UX, which says:
  4878. # nm: unknown option "B" ignored
  4879. # Tru64's nm complains that /dev/null is an invalid object file
  4880. case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
  4881. */dev/null* | *'Invalid file or object type'*)
  4882. lt_cv_path_NM="$tmp_nm -B"
  4883. break
  4884. ;;
  4885. *)
  4886. case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  4887. */dev/null*)
  4888. lt_cv_path_NM="$tmp_nm -p"
  4889. break
  4890. ;;
  4891. *)
  4892. lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  4893. continue # so that we can try to find one that supports BSD flags
  4894. ;;
  4895. esac
  4896. ;;
  4897. esac
  4898. fi
  4899. done
  4900. IFS="$lt_save_ifs"
  4901. done
  4902. : ${lt_cv_path_NM=no}
  4903. fi
  4904. fi
  4905. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
  4906. $as_echo "$lt_cv_path_NM" >&6; }
  4907. if test "$lt_cv_path_NM" != "no"; then
  4908. NM="$lt_cv_path_NM"
  4909. else
  4910. # Didn't find any BSD compatible name lister, look for dumpbin.
  4911. if test -n "$DUMPBIN"; then :
  4912. # Let the user override the test.
  4913. else
  4914. if test -n "$ac_tool_prefix"; then
  4915. for ac_prog in dumpbin "link -dump"
  4916. do
  4917. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  4918. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  4919. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4920. $as_echo_n "checking for $ac_word... " >&6; }
  4921. if ${ac_cv_prog_DUMPBIN+:} false; then :
  4922. $as_echo_n "(cached) " >&6
  4923. else
  4924. if test -n "$DUMPBIN"; then
  4925. ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
  4926. else
  4927. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4928. for as_dir in $PATH
  4929. do
  4930. IFS=$as_save_IFS
  4931. test -z "$as_dir" && as_dir=.
  4932. for ac_exec_ext in '' $ac_executable_extensions; do
  4933. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4934. ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
  4935. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4936. break 2
  4937. fi
  4938. done
  4939. done
  4940. IFS=$as_save_IFS
  4941. fi
  4942. fi
  4943. DUMPBIN=$ac_cv_prog_DUMPBIN
  4944. if test -n "$DUMPBIN"; then
  4945. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
  4946. $as_echo "$DUMPBIN" >&6; }
  4947. else
  4948. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4949. $as_echo "no" >&6; }
  4950. fi
  4951. test -n "$DUMPBIN" && break
  4952. done
  4953. fi
  4954. if test -z "$DUMPBIN"; then
  4955. ac_ct_DUMPBIN=$DUMPBIN
  4956. for ac_prog in dumpbin "link -dump"
  4957. do
  4958. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4959. set dummy $ac_prog; ac_word=$2
  4960. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4961. $as_echo_n "checking for $ac_word... " >&6; }
  4962. if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
  4963. $as_echo_n "(cached) " >&6
  4964. else
  4965. if test -n "$ac_ct_DUMPBIN"; then
  4966. ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
  4967. else
  4968. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4969. for as_dir in $PATH
  4970. do
  4971. IFS=$as_save_IFS
  4972. test -z "$as_dir" && as_dir=.
  4973. for ac_exec_ext in '' $ac_executable_extensions; do
  4974. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4975. ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
  4976. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4977. break 2
  4978. fi
  4979. done
  4980. done
  4981. IFS=$as_save_IFS
  4982. fi
  4983. fi
  4984. ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
  4985. if test -n "$ac_ct_DUMPBIN"; then
  4986. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
  4987. $as_echo "$ac_ct_DUMPBIN" >&6; }
  4988. else
  4989. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4990. $as_echo "no" >&6; }
  4991. fi
  4992. test -n "$ac_ct_DUMPBIN" && break
  4993. done
  4994. if test "x$ac_ct_DUMPBIN" = x; then
  4995. DUMPBIN=":"
  4996. else
  4997. case $cross_compiling:$ac_tool_warned in
  4998. yes:)
  4999. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5000. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5001. ac_tool_warned=yes ;;
  5002. esac
  5003. DUMPBIN=$ac_ct_DUMPBIN
  5004. fi
  5005. fi
  5006. case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
  5007. *COFF*)
  5008. DUMPBIN="$DUMPBIN -symbols"
  5009. ;;
  5010. *)
  5011. DUMPBIN=:
  5012. ;;
  5013. esac
  5014. fi
  5015. if test "$DUMPBIN" != ":"; then
  5016. NM="$DUMPBIN"
  5017. fi
  5018. fi
  5019. test -z "$NM" && NM=nm
  5020. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
  5021. $as_echo_n "checking the name lister ($NM) interface... " >&6; }
  5022. if ${lt_cv_nm_interface+:} false; then :
  5023. $as_echo_n "(cached) " >&6
  5024. else
  5025. lt_cv_nm_interface="BSD nm"
  5026. echo "int some_variable = 0;" > conftest.$ac_ext
  5027. (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
  5028. (eval "$ac_compile" 2>conftest.err)
  5029. cat conftest.err >&5
  5030. (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
  5031. (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
  5032. cat conftest.err >&5
  5033. (eval echo "\"\$as_me:$LINENO: output\"" >&5)
  5034. cat conftest.out >&5
  5035. if $GREP 'External.*some_variable' conftest.out > /dev/null; then
  5036. lt_cv_nm_interface="MS dumpbin"
  5037. fi
  5038. rm -f conftest*
  5039. fi
  5040. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
  5041. $as_echo "$lt_cv_nm_interface" >&6; }
  5042. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
  5043. $as_echo_n "checking whether ln -s works... " >&6; }
  5044. LN_S=$as_ln_s
  5045. if test "$LN_S" = "ln -s"; then
  5046. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  5047. $as_echo "yes" >&6; }
  5048. else
  5049. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
  5050. $as_echo "no, using $LN_S" >&6; }
  5051. fi
  5052. # find the maximum length of command line arguments
  5053. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
  5054. $as_echo_n "checking the maximum length of command line arguments... " >&6; }
  5055. if ${lt_cv_sys_max_cmd_len+:} false; then :
  5056. $as_echo_n "(cached) " >&6
  5057. else
  5058. i=0
  5059. teststring="ABCD"
  5060. case $build_os in
  5061. msdosdjgpp*)
  5062. # On DJGPP, this test can blow up pretty badly due to problems in libc
  5063. # (any single argument exceeding 2000 bytes causes a buffer overrun
  5064. # during glob expansion). Even if it were fixed, the result of this
  5065. # check would be larger than it should be.
  5066. lt_cv_sys_max_cmd_len=12288; # 12K is about right
  5067. ;;
  5068. gnu*)
  5069. # Under GNU Hurd, this test is not required because there is
  5070. # no limit to the length of command line arguments.
  5071. # Libtool will interpret -1 as no limit whatsoever
  5072. lt_cv_sys_max_cmd_len=-1;
  5073. ;;
  5074. cygwin* | mingw* | cegcc*)
  5075. # On Win9x/ME, this test blows up -- it succeeds, but takes
  5076. # about 5 minutes as the teststring grows exponentially.
  5077. # Worse, since 9x/ME are not pre-emptively multitasking,
  5078. # you end up with a "frozen" computer, even though with patience
  5079. # the test eventually succeeds (with a max line length of 256k).
  5080. # Instead, let's just punt: use the minimum linelength reported by
  5081. # all of the supported platforms: 8192 (on NT/2K/XP).
  5082. lt_cv_sys_max_cmd_len=8192;
  5083. ;;
  5084. mint*)
  5085. # On MiNT this can take a long time and run out of memory.
  5086. lt_cv_sys_max_cmd_len=8192;
  5087. ;;
  5088. amigaos*)
  5089. # On AmigaOS with pdksh, this test takes hours, literally.
  5090. # So we just punt and use a minimum line length of 8192.
  5091. lt_cv_sys_max_cmd_len=8192;
  5092. ;;
  5093. netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
  5094. # This has been around since 386BSD, at least. Likely further.
  5095. if test -x /sbin/sysctl; then
  5096. lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  5097. elif test -x /usr/sbin/sysctl; then
  5098. lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  5099. else
  5100. lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  5101. fi
  5102. # And add a safety zone
  5103. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  5104. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  5105. ;;
  5106. interix*)
  5107. # We know the value 262144 and hardcode it with a safety zone (like BSD)
  5108. lt_cv_sys_max_cmd_len=196608
  5109. ;;
  5110. os2*)
  5111. # The test takes a long time on OS/2.
  5112. lt_cv_sys_max_cmd_len=8192
  5113. ;;
  5114. osf*)
  5115. # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  5116. # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  5117. # nice to cause kernel panics so lets avoid the loop below.
  5118. # First set a reasonable default.
  5119. lt_cv_sys_max_cmd_len=16384
  5120. #
  5121. if test -x /sbin/sysconfig; then
  5122. case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  5123. *1*) lt_cv_sys_max_cmd_len=-1 ;;
  5124. esac
  5125. fi
  5126. ;;
  5127. sco3.2v5*)
  5128. lt_cv_sys_max_cmd_len=102400
  5129. ;;
  5130. sysv5* | sco5v6* | sysv4.2uw2*)
  5131. kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  5132. if test -n "$kargmax"; then
  5133. lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
  5134. else
  5135. lt_cv_sys_max_cmd_len=32768
  5136. fi
  5137. ;;
  5138. *)
  5139. lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
  5140. if test -n "$lt_cv_sys_max_cmd_len"; then
  5141. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  5142. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  5143. else
  5144. # Make teststring a little bigger before we do anything with it.
  5145. # a 1K string should be a reasonable start.
  5146. for i in 1 2 3 4 5 6 7 8 ; do
  5147. teststring=$teststring$teststring
  5148. done
  5149. SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  5150. # If test is not a shell built-in, we'll probably end up computing a
  5151. # maximum length that is only half of the actual maximum length, but
  5152. # we can't tell.
  5153. while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
  5154. = "X$teststring$teststring"; } >/dev/null 2>&1 &&
  5155. test $i != 17 # 1/2 MB should be enough
  5156. do
  5157. i=`expr $i + 1`
  5158. teststring=$teststring$teststring
  5159. done
  5160. # Only check the string length outside the loop.
  5161. lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
  5162. teststring=
  5163. # Add a significant safety factor because C++ compilers can tack on
  5164. # massive amounts of additional arguments before passing them to the
  5165. # linker. It appears as though 1/2 is a usable value.
  5166. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  5167. fi
  5168. ;;
  5169. esac
  5170. fi
  5171. if test -n $lt_cv_sys_max_cmd_len ; then
  5172. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
  5173. $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
  5174. else
  5175. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
  5176. $as_echo "none" >&6; }
  5177. fi
  5178. max_cmd_len=$lt_cv_sys_max_cmd_len
  5179. : ${CP="cp -f"}
  5180. : ${MV="mv -f"}
  5181. : ${RM="rm -f"}
  5182. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
  5183. $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
  5184. # Try some XSI features
  5185. xsi_shell=no
  5186. ( _lt_dummy="a/b/c"
  5187. test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
  5188. = c,a/b,b/c, \
  5189. && eval 'test $(( 1 + 1 )) -eq 2 \
  5190. && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
  5191. && xsi_shell=yes
  5192. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
  5193. $as_echo "$xsi_shell" >&6; }
  5194. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
  5195. $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
  5196. lt_shell_append=no
  5197. ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
  5198. >/dev/null 2>&1 \
  5199. && lt_shell_append=yes
  5200. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
  5201. $as_echo "$lt_shell_append" >&6; }
  5202. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  5203. lt_unset=unset
  5204. else
  5205. lt_unset=false
  5206. fi
  5207. # test EBCDIC or ASCII
  5208. case `echo X|tr X '\101'` in
  5209. A) # ASCII based system
  5210. # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
  5211. lt_SP2NL='tr \040 \012'
  5212. lt_NL2SP='tr \015\012 \040\040'
  5213. ;;
  5214. *) # EBCDIC based system
  5215. lt_SP2NL='tr \100 \n'
  5216. lt_NL2SP='tr \r\n \100\100'
  5217. ;;
  5218. esac
  5219. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
  5220. $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
  5221. if ${lt_cv_to_host_file_cmd+:} false; then :
  5222. $as_echo_n "(cached) " >&6
  5223. else
  5224. case $host in
  5225. *-*-mingw* )
  5226. case $build in
  5227. *-*-mingw* ) # actually msys
  5228. lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
  5229. ;;
  5230. *-*-cygwin* )
  5231. lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
  5232. ;;
  5233. * ) # otherwise, assume *nix
  5234. lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
  5235. ;;
  5236. esac
  5237. ;;
  5238. *-*-cygwin* )
  5239. case $build in
  5240. *-*-mingw* ) # actually msys
  5241. lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
  5242. ;;
  5243. *-*-cygwin* )
  5244. lt_cv_to_host_file_cmd=func_convert_file_noop
  5245. ;;
  5246. * ) # otherwise, assume *nix
  5247. lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
  5248. ;;
  5249. esac
  5250. ;;
  5251. * ) # unhandled hosts (and "normal" native builds)
  5252. lt_cv_to_host_file_cmd=func_convert_file_noop
  5253. ;;
  5254. esac
  5255. fi
  5256. to_host_file_cmd=$lt_cv_to_host_file_cmd
  5257. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
  5258. $as_echo "$lt_cv_to_host_file_cmd" >&6; }
  5259. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
  5260. $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
  5261. if ${lt_cv_to_tool_file_cmd+:} false; then :
  5262. $as_echo_n "(cached) " >&6
  5263. else
  5264. #assume ordinary cross tools, or native build.
  5265. lt_cv_to_tool_file_cmd=func_convert_file_noop
  5266. case $host in
  5267. *-*-mingw* )
  5268. case $build in
  5269. *-*-mingw* ) # actually msys
  5270. lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
  5271. ;;
  5272. esac
  5273. ;;
  5274. esac
  5275. fi
  5276. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  5277. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
  5278. $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
  5279. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
  5280. $as_echo_n "checking for $LD option to reload object files... " >&6; }
  5281. if ${lt_cv_ld_reload_flag+:} false; then :
  5282. $as_echo_n "(cached) " >&6
  5283. else
  5284. lt_cv_ld_reload_flag='-r'
  5285. fi
  5286. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
  5287. $as_echo "$lt_cv_ld_reload_flag" >&6; }
  5288. reload_flag=$lt_cv_ld_reload_flag
  5289. case $reload_flag in
  5290. "" | " "*) ;;
  5291. *) reload_flag=" $reload_flag" ;;
  5292. esac
  5293. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  5294. case $host_os in
  5295. cygwin* | mingw* | pw32* | cegcc*)
  5296. if test "$GCC" != yes; then
  5297. reload_cmds=false
  5298. fi
  5299. ;;
  5300. darwin*)
  5301. if test "$GCC" = yes; then
  5302. reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
  5303. else
  5304. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  5305. fi
  5306. ;;
  5307. esac
  5308. if test -n "$ac_tool_prefix"; then
  5309. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  5310. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  5311. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5312. $as_echo_n "checking for $ac_word... " >&6; }
  5313. if ${ac_cv_prog_OBJDUMP+:} false; then :
  5314. $as_echo_n "(cached) " >&6
  5315. else
  5316. if test -n "$OBJDUMP"; then
  5317. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  5318. else
  5319. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5320. for as_dir in $PATH
  5321. do
  5322. IFS=$as_save_IFS
  5323. test -z "$as_dir" && as_dir=.
  5324. for ac_exec_ext in '' $ac_executable_extensions; do
  5325. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5326. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  5327. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5328. break 2
  5329. fi
  5330. done
  5331. done
  5332. IFS=$as_save_IFS
  5333. fi
  5334. fi
  5335. OBJDUMP=$ac_cv_prog_OBJDUMP
  5336. if test -n "$OBJDUMP"; then
  5337. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  5338. $as_echo "$OBJDUMP" >&6; }
  5339. else
  5340. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5341. $as_echo "no" >&6; }
  5342. fi
  5343. fi
  5344. if test -z "$ac_cv_prog_OBJDUMP"; then
  5345. ac_ct_OBJDUMP=$OBJDUMP
  5346. # Extract the first word of "objdump", so it can be a program name with args.
  5347. set dummy objdump; ac_word=$2
  5348. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5349. $as_echo_n "checking for $ac_word... " >&6; }
  5350. if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
  5351. $as_echo_n "(cached) " >&6
  5352. else
  5353. if test -n "$ac_ct_OBJDUMP"; then
  5354. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  5355. else
  5356. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5357. for as_dir in $PATH
  5358. do
  5359. IFS=$as_save_IFS
  5360. test -z "$as_dir" && as_dir=.
  5361. for ac_exec_ext in '' $ac_executable_extensions; do
  5362. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5363. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  5364. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5365. break 2
  5366. fi
  5367. done
  5368. done
  5369. IFS=$as_save_IFS
  5370. fi
  5371. fi
  5372. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  5373. if test -n "$ac_ct_OBJDUMP"; then
  5374. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  5375. $as_echo "$ac_ct_OBJDUMP" >&6; }
  5376. else
  5377. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5378. $as_echo "no" >&6; }
  5379. fi
  5380. if test "x$ac_ct_OBJDUMP" = x; then
  5381. OBJDUMP="false"
  5382. else
  5383. case $cross_compiling:$ac_tool_warned in
  5384. yes:)
  5385. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5386. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5387. ac_tool_warned=yes ;;
  5388. esac
  5389. OBJDUMP=$ac_ct_OBJDUMP
  5390. fi
  5391. else
  5392. OBJDUMP="$ac_cv_prog_OBJDUMP"
  5393. fi
  5394. test -z "$OBJDUMP" && OBJDUMP=objdump
  5395. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
  5396. $as_echo_n "checking how to recognize dependent libraries... " >&6; }
  5397. if ${lt_cv_deplibs_check_method+:} false; then :
  5398. $as_echo_n "(cached) " >&6
  5399. else
  5400. lt_cv_file_magic_cmd='$MAGIC_CMD'
  5401. lt_cv_file_magic_test_file=
  5402. lt_cv_deplibs_check_method='unknown'
  5403. # Need to set the preceding variable on all platforms that support
  5404. # interlibrary dependencies.
  5405. # 'none' -- dependencies not supported.
  5406. # `unknown' -- same as none, but documents that we really don't know.
  5407. # 'pass_all' -- all dependencies passed with no checks.
  5408. # 'test_compile' -- check by making test program.
  5409. # 'file_magic [[regex]]' -- check by looking for files in library path
  5410. # which responds to the $file_magic_cmd with a given extended regex.
  5411. # If you have `file' or equivalent on your system and you're not sure
  5412. # whether `pass_all' will *always* work, you probably want this one.
  5413. case $host_os in
  5414. aix[4-9]*)
  5415. lt_cv_deplibs_check_method=pass_all
  5416. ;;
  5417. beos*)
  5418. lt_cv_deplibs_check_method=pass_all
  5419. ;;
  5420. bsdi[45]*)
  5421. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  5422. lt_cv_file_magic_cmd='/usr/bin/file -L'
  5423. lt_cv_file_magic_test_file=/shlib/libc.so
  5424. ;;
  5425. cygwin*)
  5426. # func_win32_libid is a shell function defined in ltmain.sh
  5427. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  5428. lt_cv_file_magic_cmd='func_win32_libid'
  5429. ;;
  5430. mingw* | pw32*)
  5431. # Base MSYS/MinGW do not provide the 'file' command needed by
  5432. # func_win32_libid shell function, so use a weaker test based on 'objdump',
  5433. # unless we find 'file', for example because we are cross-compiling.
  5434. # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
  5435. if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
  5436. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  5437. lt_cv_file_magic_cmd='func_win32_libid'
  5438. else
  5439. # Keep this pattern in sync with the one in func_win32_libid.
  5440. lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
  5441. lt_cv_file_magic_cmd='$OBJDUMP -f'
  5442. fi
  5443. ;;
  5444. cegcc*)
  5445. # use the weaker test based on 'objdump'. See mingw*.
  5446. lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
  5447. lt_cv_file_magic_cmd='$OBJDUMP -f'
  5448. ;;
  5449. darwin* | rhapsody*)
  5450. lt_cv_deplibs_check_method=pass_all
  5451. ;;
  5452. freebsd* | dragonfly*)
  5453. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  5454. case $host_cpu in
  5455. i*86 )
  5456. # Not sure whether the presence of OpenBSD here was a mistake.
  5457. # Let's accept both of them until this is cleared up.
  5458. lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
  5459. lt_cv_file_magic_cmd=/usr/bin/file
  5460. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  5461. ;;
  5462. esac
  5463. else
  5464. lt_cv_deplibs_check_method=pass_all
  5465. fi
  5466. ;;
  5467. gnu*)
  5468. lt_cv_deplibs_check_method=pass_all
  5469. ;;
  5470. haiku*)
  5471. lt_cv_deplibs_check_method=pass_all
  5472. ;;
  5473. hpux10.20* | hpux11*)
  5474. lt_cv_file_magic_cmd=/usr/bin/file
  5475. case $host_cpu in
  5476. ia64*)
  5477. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
  5478. lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  5479. ;;
  5480. hppa*64*)
  5481. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'
  5482. lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  5483. ;;
  5484. *)
  5485. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
  5486. lt_cv_file_magic_test_file=/usr/lib/libc.sl
  5487. ;;
  5488. esac
  5489. ;;
  5490. interix[3-9]*)
  5491. # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  5492. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
  5493. ;;
  5494. irix5* | irix6* | nonstopux*)
  5495. case $LD in
  5496. *-32|*"-32 ") libmagic=32-bit;;
  5497. *-n32|*"-n32 ") libmagic=N32;;
  5498. *-64|*"-64 ") libmagic=64-bit;;
  5499. *) libmagic=never-match;;
  5500. esac
  5501. lt_cv_deplibs_check_method=pass_all
  5502. ;;
  5503. # This must be glibc/ELF.
  5504. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  5505. lt_cv_deplibs_check_method=pass_all
  5506. ;;
  5507. netbsd* | netbsdelf*-gnu)
  5508. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  5509. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  5510. else
  5511. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
  5512. fi
  5513. ;;
  5514. newos6*)
  5515. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  5516. lt_cv_file_magic_cmd=/usr/bin/file
  5517. lt_cv_file_magic_test_file=/usr/lib/libnls.so
  5518. ;;
  5519. *nto* | *qnx*)
  5520. lt_cv_deplibs_check_method=pass_all
  5521. ;;
  5522. openbsd*)
  5523. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  5524. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
  5525. else
  5526. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  5527. fi
  5528. ;;
  5529. osf3* | osf4* | osf5*)
  5530. lt_cv_deplibs_check_method=pass_all
  5531. ;;
  5532. rdos*)
  5533. lt_cv_deplibs_check_method=pass_all
  5534. ;;
  5535. solaris*)
  5536. lt_cv_deplibs_check_method=pass_all
  5537. ;;
  5538. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  5539. lt_cv_deplibs_check_method=pass_all
  5540. ;;
  5541. sysv4 | sysv4.3*)
  5542. case $host_vendor in
  5543. motorola)
  5544. 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]'
  5545. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  5546. ;;
  5547. ncr)
  5548. lt_cv_deplibs_check_method=pass_all
  5549. ;;
  5550. sequent)
  5551. lt_cv_file_magic_cmd='/bin/file'
  5552. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
  5553. ;;
  5554. sni)
  5555. lt_cv_file_magic_cmd='/bin/file'
  5556. lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
  5557. lt_cv_file_magic_test_file=/lib/libc.so
  5558. ;;
  5559. siemens)
  5560. lt_cv_deplibs_check_method=pass_all
  5561. ;;
  5562. pc)
  5563. lt_cv_deplibs_check_method=pass_all
  5564. ;;
  5565. esac
  5566. ;;
  5567. tpf*)
  5568. lt_cv_deplibs_check_method=pass_all
  5569. ;;
  5570. esac
  5571. fi
  5572. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
  5573. $as_echo "$lt_cv_deplibs_check_method" >&6; }
  5574. file_magic_glob=
  5575. want_nocaseglob=no
  5576. if test "$build" = "$host"; then
  5577. case $host_os in
  5578. mingw* | pw32*)
  5579. if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
  5580. want_nocaseglob=yes
  5581. else
  5582. file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
  5583. fi
  5584. ;;
  5585. esac
  5586. fi
  5587. file_magic_cmd=$lt_cv_file_magic_cmd
  5588. deplibs_check_method=$lt_cv_deplibs_check_method
  5589. test -z "$deplibs_check_method" && deplibs_check_method=unknown
  5590. if test -n "$ac_tool_prefix"; then
  5591. # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
  5592. set dummy ${ac_tool_prefix}dlltool; ac_word=$2
  5593. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5594. $as_echo_n "checking for $ac_word... " >&6; }
  5595. if ${ac_cv_prog_DLLTOOL+:} false; then :
  5596. $as_echo_n "(cached) " >&6
  5597. else
  5598. if test -n "$DLLTOOL"; then
  5599. ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
  5600. else
  5601. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5602. for as_dir in $PATH
  5603. do
  5604. IFS=$as_save_IFS
  5605. test -z "$as_dir" && as_dir=.
  5606. for ac_exec_ext in '' $ac_executable_extensions; do
  5607. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5608. ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
  5609. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5610. break 2
  5611. fi
  5612. done
  5613. done
  5614. IFS=$as_save_IFS
  5615. fi
  5616. fi
  5617. DLLTOOL=$ac_cv_prog_DLLTOOL
  5618. if test -n "$DLLTOOL"; then
  5619. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
  5620. $as_echo "$DLLTOOL" >&6; }
  5621. else
  5622. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5623. $as_echo "no" >&6; }
  5624. fi
  5625. fi
  5626. if test -z "$ac_cv_prog_DLLTOOL"; then
  5627. ac_ct_DLLTOOL=$DLLTOOL
  5628. # Extract the first word of "dlltool", so it can be a program name with args.
  5629. set dummy dlltool; ac_word=$2
  5630. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5631. $as_echo_n "checking for $ac_word... " >&6; }
  5632. if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
  5633. $as_echo_n "(cached) " >&6
  5634. else
  5635. if test -n "$ac_ct_DLLTOOL"; then
  5636. ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
  5637. else
  5638. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5639. for as_dir in $PATH
  5640. do
  5641. IFS=$as_save_IFS
  5642. test -z "$as_dir" && as_dir=.
  5643. for ac_exec_ext in '' $ac_executable_extensions; do
  5644. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5645. ac_cv_prog_ac_ct_DLLTOOL="dlltool"
  5646. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5647. break 2
  5648. fi
  5649. done
  5650. done
  5651. IFS=$as_save_IFS
  5652. fi
  5653. fi
  5654. ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
  5655. if test -n "$ac_ct_DLLTOOL"; then
  5656. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
  5657. $as_echo "$ac_ct_DLLTOOL" >&6; }
  5658. else
  5659. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5660. $as_echo "no" >&6; }
  5661. fi
  5662. if test "x$ac_ct_DLLTOOL" = x; then
  5663. DLLTOOL="false"
  5664. else
  5665. case $cross_compiling:$ac_tool_warned in
  5666. yes:)
  5667. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5668. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5669. ac_tool_warned=yes ;;
  5670. esac
  5671. DLLTOOL=$ac_ct_DLLTOOL
  5672. fi
  5673. else
  5674. DLLTOOL="$ac_cv_prog_DLLTOOL"
  5675. fi
  5676. test -z "$DLLTOOL" && DLLTOOL=dlltool
  5677. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
  5678. $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
  5679. if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
  5680. $as_echo_n "(cached) " >&6
  5681. else
  5682. lt_cv_sharedlib_from_linklib_cmd='unknown'
  5683. case $host_os in
  5684. cygwin* | mingw* | pw32* | cegcc*)
  5685. # two different shell functions defined in ltmain.sh
  5686. # decide which to use based on capabilities of $DLLTOOL
  5687. case `$DLLTOOL --help 2>&1` in
  5688. *--identify-strict*)
  5689. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
  5690. ;;
  5691. *)
  5692. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
  5693. ;;
  5694. esac
  5695. ;;
  5696. *)
  5697. # fallback: assume linklib IS sharedlib
  5698. lt_cv_sharedlib_from_linklib_cmd="$ECHO"
  5699. ;;
  5700. esac
  5701. fi
  5702. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
  5703. $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
  5704. sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
  5705. test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
  5706. if test -n "$ac_tool_prefix"; then
  5707. for ac_prog in ar
  5708. do
  5709. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  5710. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  5711. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5712. $as_echo_n "checking for $ac_word... " >&6; }
  5713. if ${ac_cv_prog_AR+:} false; then :
  5714. $as_echo_n "(cached) " >&6
  5715. else
  5716. if test -n "$AR"; then
  5717. ac_cv_prog_AR="$AR" # Let the user override the test.
  5718. else
  5719. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5720. for as_dir in $PATH
  5721. do
  5722. IFS=$as_save_IFS
  5723. test -z "$as_dir" && as_dir=.
  5724. for ac_exec_ext in '' $ac_executable_extensions; do
  5725. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5726. ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
  5727. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5728. break 2
  5729. fi
  5730. done
  5731. done
  5732. IFS=$as_save_IFS
  5733. fi
  5734. fi
  5735. AR=$ac_cv_prog_AR
  5736. if test -n "$AR"; then
  5737. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  5738. $as_echo "$AR" >&6; }
  5739. else
  5740. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5741. $as_echo "no" >&6; }
  5742. fi
  5743. test -n "$AR" && break
  5744. done
  5745. fi
  5746. if test -z "$AR"; then
  5747. ac_ct_AR=$AR
  5748. for ac_prog in ar
  5749. do
  5750. # Extract the first word of "$ac_prog", so it can be a program name with args.
  5751. set dummy $ac_prog; ac_word=$2
  5752. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5753. $as_echo_n "checking for $ac_word... " >&6; }
  5754. if ${ac_cv_prog_ac_ct_AR+:} false; then :
  5755. $as_echo_n "(cached) " >&6
  5756. else
  5757. if test -n "$ac_ct_AR"; then
  5758. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  5759. else
  5760. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5761. for as_dir in $PATH
  5762. do
  5763. IFS=$as_save_IFS
  5764. test -z "$as_dir" && as_dir=.
  5765. for ac_exec_ext in '' $ac_executable_extensions; do
  5766. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5767. ac_cv_prog_ac_ct_AR="$ac_prog"
  5768. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5769. break 2
  5770. fi
  5771. done
  5772. done
  5773. IFS=$as_save_IFS
  5774. fi
  5775. fi
  5776. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  5777. if test -n "$ac_ct_AR"; then
  5778. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
  5779. $as_echo "$ac_ct_AR" >&6; }
  5780. else
  5781. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5782. $as_echo "no" >&6; }
  5783. fi
  5784. test -n "$ac_ct_AR" && break
  5785. done
  5786. if test "x$ac_ct_AR" = x; then
  5787. AR="false"
  5788. else
  5789. case $cross_compiling:$ac_tool_warned in
  5790. yes:)
  5791. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5792. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5793. ac_tool_warned=yes ;;
  5794. esac
  5795. AR=$ac_ct_AR
  5796. fi
  5797. fi
  5798. : ${AR=ar}
  5799. : ${AR_FLAGS=cru}
  5800. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
  5801. $as_echo_n "checking for archiver @FILE support... " >&6; }
  5802. if ${lt_cv_ar_at_file+:} false; then :
  5803. $as_echo_n "(cached) " >&6
  5804. else
  5805. lt_cv_ar_at_file=no
  5806. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5807. /* end confdefs.h. */
  5808. int
  5809. main ()
  5810. {
  5811. ;
  5812. return 0;
  5813. }
  5814. _ACEOF
  5815. if ac_fn_c_try_compile "$LINENO"; then :
  5816. echo conftest.$ac_objext > conftest.lst
  5817. lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
  5818. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  5819. (eval $lt_ar_try) 2>&5
  5820. ac_status=$?
  5821. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5822. test $ac_status = 0; }
  5823. if test "$ac_status" -eq 0; then
  5824. # Ensure the archiver fails upon bogus file names.
  5825. rm -f conftest.$ac_objext libconftest.a
  5826. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  5827. (eval $lt_ar_try) 2>&5
  5828. ac_status=$?
  5829. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5830. test $ac_status = 0; }
  5831. if test "$ac_status" -ne 0; then
  5832. lt_cv_ar_at_file=@
  5833. fi
  5834. fi
  5835. rm -f conftest.* libconftest.a
  5836. fi
  5837. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5838. fi
  5839. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
  5840. $as_echo "$lt_cv_ar_at_file" >&6; }
  5841. if test "x$lt_cv_ar_at_file" = xno; then
  5842. archiver_list_spec=
  5843. else
  5844. archiver_list_spec=$lt_cv_ar_at_file
  5845. fi
  5846. if test -n "$ac_tool_prefix"; then
  5847. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  5848. set dummy ${ac_tool_prefix}strip; ac_word=$2
  5849. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5850. $as_echo_n "checking for $ac_word... " >&6; }
  5851. if ${ac_cv_prog_STRIP+:} false; then :
  5852. $as_echo_n "(cached) " >&6
  5853. else
  5854. if test -n "$STRIP"; then
  5855. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  5856. else
  5857. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5858. for as_dir in $PATH
  5859. do
  5860. IFS=$as_save_IFS
  5861. test -z "$as_dir" && as_dir=.
  5862. for ac_exec_ext in '' $ac_executable_extensions; do
  5863. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5864. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  5865. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5866. break 2
  5867. fi
  5868. done
  5869. done
  5870. IFS=$as_save_IFS
  5871. fi
  5872. fi
  5873. STRIP=$ac_cv_prog_STRIP
  5874. if test -n "$STRIP"; then
  5875. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  5876. $as_echo "$STRIP" >&6; }
  5877. else
  5878. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5879. $as_echo "no" >&6; }
  5880. fi
  5881. fi
  5882. if test -z "$ac_cv_prog_STRIP"; then
  5883. ac_ct_STRIP=$STRIP
  5884. # Extract the first word of "strip", so it can be a program name with args.
  5885. set dummy strip; ac_word=$2
  5886. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5887. $as_echo_n "checking for $ac_word... " >&6; }
  5888. if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
  5889. $as_echo_n "(cached) " >&6
  5890. else
  5891. if test -n "$ac_ct_STRIP"; then
  5892. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  5893. else
  5894. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5895. for as_dir in $PATH
  5896. do
  5897. IFS=$as_save_IFS
  5898. test -z "$as_dir" && as_dir=.
  5899. for ac_exec_ext in '' $ac_executable_extensions; do
  5900. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5901. ac_cv_prog_ac_ct_STRIP="strip"
  5902. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5903. break 2
  5904. fi
  5905. done
  5906. done
  5907. IFS=$as_save_IFS
  5908. fi
  5909. fi
  5910. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  5911. if test -n "$ac_ct_STRIP"; then
  5912. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  5913. $as_echo "$ac_ct_STRIP" >&6; }
  5914. else
  5915. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5916. $as_echo "no" >&6; }
  5917. fi
  5918. if test "x$ac_ct_STRIP" = x; then
  5919. STRIP=":"
  5920. else
  5921. case $cross_compiling:$ac_tool_warned in
  5922. yes:)
  5923. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5924. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5925. ac_tool_warned=yes ;;
  5926. esac
  5927. STRIP=$ac_ct_STRIP
  5928. fi
  5929. else
  5930. STRIP="$ac_cv_prog_STRIP"
  5931. fi
  5932. test -z "$STRIP" && STRIP=:
  5933. if test -n "$ac_tool_prefix"; then
  5934. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  5935. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  5936. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5937. $as_echo_n "checking for $ac_word... " >&6; }
  5938. if ${ac_cv_prog_RANLIB+:} false; then :
  5939. $as_echo_n "(cached) " >&6
  5940. else
  5941. if test -n "$RANLIB"; then
  5942. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  5943. else
  5944. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5945. for as_dir in $PATH
  5946. do
  5947. IFS=$as_save_IFS
  5948. test -z "$as_dir" && as_dir=.
  5949. for ac_exec_ext in '' $ac_executable_extensions; do
  5950. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5951. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  5952. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5953. break 2
  5954. fi
  5955. done
  5956. done
  5957. IFS=$as_save_IFS
  5958. fi
  5959. fi
  5960. RANLIB=$ac_cv_prog_RANLIB
  5961. if test -n "$RANLIB"; then
  5962. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  5963. $as_echo "$RANLIB" >&6; }
  5964. else
  5965. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5966. $as_echo "no" >&6; }
  5967. fi
  5968. fi
  5969. if test -z "$ac_cv_prog_RANLIB"; then
  5970. ac_ct_RANLIB=$RANLIB
  5971. # Extract the first word of "ranlib", so it can be a program name with args.
  5972. set dummy ranlib; ac_word=$2
  5973. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5974. $as_echo_n "checking for $ac_word... " >&6; }
  5975. if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
  5976. $as_echo_n "(cached) " >&6
  5977. else
  5978. if test -n "$ac_ct_RANLIB"; then
  5979. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  5980. else
  5981. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5982. for as_dir in $PATH
  5983. do
  5984. IFS=$as_save_IFS
  5985. test -z "$as_dir" && as_dir=.
  5986. for ac_exec_ext in '' $ac_executable_extensions; do
  5987. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5988. ac_cv_prog_ac_ct_RANLIB="ranlib"
  5989. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5990. break 2
  5991. fi
  5992. done
  5993. done
  5994. IFS=$as_save_IFS
  5995. fi
  5996. fi
  5997. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  5998. if test -n "$ac_ct_RANLIB"; then
  5999. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  6000. $as_echo "$ac_ct_RANLIB" >&6; }
  6001. else
  6002. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6003. $as_echo "no" >&6; }
  6004. fi
  6005. if test "x$ac_ct_RANLIB" = x; then
  6006. RANLIB=":"
  6007. else
  6008. case $cross_compiling:$ac_tool_warned in
  6009. yes:)
  6010. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6011. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6012. ac_tool_warned=yes ;;
  6013. esac
  6014. RANLIB=$ac_ct_RANLIB
  6015. fi
  6016. else
  6017. RANLIB="$ac_cv_prog_RANLIB"
  6018. fi
  6019. test -z "$RANLIB" && RANLIB=:
  6020. # Determine commands to create old-style static archives.
  6021. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
  6022. old_postinstall_cmds='chmod 644 $oldlib'
  6023. old_postuninstall_cmds=
  6024. if test -n "$RANLIB"; then
  6025. case $host_os in
  6026. openbsd*)
  6027. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
  6028. ;;
  6029. *)
  6030. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
  6031. ;;
  6032. esac
  6033. old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
  6034. fi
  6035. case $host_os in
  6036. darwin*)
  6037. lock_old_archive_extraction=yes ;;
  6038. *)
  6039. lock_old_archive_extraction=no ;;
  6040. esac
  6041. # If no C compiler was specified, use CC.
  6042. LTCC=${LTCC-"$CC"}
  6043. # If no C compiler flags were specified, use CFLAGS.
  6044. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  6045. # Allow CC to be a program name with arguments.
  6046. compiler=$CC
  6047. # Check for command to grab the raw symbol name followed by C symbol from nm.
  6048. { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
  6049. $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
  6050. if ${lt_cv_sys_global_symbol_pipe+:} false; then :
  6051. $as_echo_n "(cached) " >&6
  6052. else
  6053. # These are sane defaults that work on at least a few old systems.
  6054. # [They come from Ultrix. What could be older than Ultrix?!! ;)]
  6055. # Character class describing NM global symbol codes.
  6056. symcode='[BCDEGRST]'
  6057. # Regexp to match symbols that can be accessed directly from C.
  6058. sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
  6059. # Define system-specific variables.
  6060. case $host_os in
  6061. aix*)
  6062. symcode='[BCDT]'
  6063. ;;
  6064. cygwin* | mingw* | pw32* | cegcc*)
  6065. symcode='[ABCDGISTW]'
  6066. ;;
  6067. hpux*)
  6068. if test "$host_cpu" = ia64; then
  6069. symcode='[ABCDEGRST]'
  6070. fi
  6071. ;;
  6072. irix* | nonstopux*)
  6073. symcode='[BCDEGRST]'
  6074. ;;
  6075. osf*)
  6076. symcode='[BCDEGQRST]'
  6077. ;;
  6078. solaris*)
  6079. symcode='[BDRT]'
  6080. ;;
  6081. sco3.2v5*)
  6082. symcode='[DT]'
  6083. ;;
  6084. sysv4.2uw2*)
  6085. symcode='[DT]'
  6086. ;;
  6087. sysv5* | sco5v6* | unixware* | OpenUNIX*)
  6088. symcode='[ABDT]'
  6089. ;;
  6090. sysv4)
  6091. symcode='[DFNSTU]'
  6092. ;;
  6093. esac
  6094. # If we're using GNU nm, then use its standard symbol codes.
  6095. case `$NM -V 2>&1` in
  6096. *GNU* | *'with BFD'*)
  6097. symcode='[ABCDGIRSTW]' ;;
  6098. esac
  6099. # Transform an extracted symbol line into a proper C declaration.
  6100. # Some systems (esp. on ia64) link data and code symbols differently,
  6101. # so use this general approach.
  6102. lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  6103. # Transform an extracted symbol line into symbol name and symbol address
  6104. lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
  6105. 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'"
  6106. # Handle CRLF in mingw tool chain
  6107. opt_cr=
  6108. case $build_os in
  6109. mingw*)
  6110. opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  6111. ;;
  6112. esac
  6113. # Try without a prefix underscore, then with it.
  6114. for ac_symprfx in "" "_"; do
  6115. # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  6116. symxfrm="\\1 $ac_symprfx\\2 \\2"
  6117. # Write the raw and C identifiers.
  6118. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  6119. # Fake it for dumpbin and say T for any non-static function
  6120. # and D for any global variable.
  6121. # Also find C++ and __fastcall symbols from MSVC++,
  6122. # which start with @ or ?.
  6123. lt_cv_sys_global_symbol_pipe="$AWK '"\
  6124. " {last_section=section; section=\$ 3};"\
  6125. " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
  6126. " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
  6127. " \$ 0!~/External *\|/{next};"\
  6128. " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
  6129. " {if(hide[section]) next};"\
  6130. " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
  6131. " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
  6132. " s[1]~/^[@?]/{print s[1], s[1]; next};"\
  6133. " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
  6134. " ' prfx=^$ac_symprfx"
  6135. else
  6136. lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  6137. fi
  6138. lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
  6139. # Check to see that the pipe works correctly.
  6140. pipe_works=no
  6141. rm -f conftest*
  6142. cat > conftest.$ac_ext <<_LT_EOF
  6143. #ifdef __cplusplus
  6144. extern "C" {
  6145. #endif
  6146. char nm_test_var;
  6147. void nm_test_func(void);
  6148. void nm_test_func(void){}
  6149. #ifdef __cplusplus
  6150. }
  6151. #endif
  6152. int main(){nm_test_var='a';nm_test_func();return(0);}
  6153. _LT_EOF
  6154. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6155. (eval $ac_compile) 2>&5
  6156. ac_status=$?
  6157. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6158. test $ac_status = 0; }; then
  6159. # Now try to grab the symbols.
  6160. nlist=conftest.nm
  6161. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
  6162. (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
  6163. ac_status=$?
  6164. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6165. test $ac_status = 0; } && test -s "$nlist"; then
  6166. # Try sorting and uniquifying the output.
  6167. if sort "$nlist" | uniq > "$nlist"T; then
  6168. mv -f "$nlist"T "$nlist"
  6169. else
  6170. rm -f "$nlist"T
  6171. fi
  6172. # Make sure that we snagged all the symbols we need.
  6173. if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
  6174. if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
  6175. cat <<_LT_EOF > conftest.$ac_ext
  6176. /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
  6177. #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
  6178. /* DATA imports from DLLs on WIN32 con't be const, because runtime
  6179. relocations are performed -- see ld's documentation on pseudo-relocs. */
  6180. # define LT@&t@_DLSYM_CONST
  6181. #elif defined(__osf__)
  6182. /* This system does not cope well with relocations in const data. */
  6183. # define LT@&t@_DLSYM_CONST
  6184. #else
  6185. # define LT@&t@_DLSYM_CONST const
  6186. #endif
  6187. #ifdef __cplusplus
  6188. extern "C" {
  6189. #endif
  6190. _LT_EOF
  6191. # Now generate the symbol file.
  6192. eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
  6193. cat <<_LT_EOF >> conftest.$ac_ext
  6194. /* The mapping between symbol names and symbols. */
  6195. LT@&t@_DLSYM_CONST struct {
  6196. const char *name;
  6197. void *address;
  6198. }
  6199. lt__PROGRAM__LTX_preloaded_symbols[] =
  6200. {
  6201. { "@PROGRAM@", (void *) 0 },
  6202. _LT_EOF
  6203. $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
  6204. cat <<\_LT_EOF >> conftest.$ac_ext
  6205. {0, (void *) 0}
  6206. };
  6207. /* This works around a problem in FreeBSD linker */
  6208. #ifdef FREEBSD_WORKAROUND
  6209. static const void *lt_preloaded_setup() {
  6210. return lt__PROGRAM__LTX_preloaded_symbols;
  6211. }
  6212. #endif
  6213. #ifdef __cplusplus
  6214. }
  6215. #endif
  6216. _LT_EOF
  6217. # Now try linking the two files.
  6218. mv conftest.$ac_objext conftstm.$ac_objext
  6219. lt_globsym_save_LIBS=$LIBS
  6220. lt_globsym_save_CFLAGS=$CFLAGS
  6221. LIBS="conftstm.$ac_objext"
  6222. CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
  6223. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  6224. (eval $ac_link) 2>&5
  6225. ac_status=$?
  6226. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6227. test $ac_status = 0; } && test -s conftest${ac_exeext}; then
  6228. pipe_works=yes
  6229. fi
  6230. LIBS=$lt_globsym_save_LIBS
  6231. CFLAGS=$lt_globsym_save_CFLAGS
  6232. else
  6233. echo "cannot find nm_test_func in $nlist" >&5
  6234. fi
  6235. else
  6236. echo "cannot find nm_test_var in $nlist" >&5
  6237. fi
  6238. else
  6239. echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
  6240. fi
  6241. else
  6242. echo "$progname: failed program was:" >&5
  6243. cat conftest.$ac_ext >&5
  6244. fi
  6245. rm -rf conftest* conftst*
  6246. # Do not use the global_symbol_pipe unless it works.
  6247. if test "$pipe_works" = yes; then
  6248. break
  6249. else
  6250. lt_cv_sys_global_symbol_pipe=
  6251. fi
  6252. done
  6253. fi
  6254. if test -z "$lt_cv_sys_global_symbol_pipe"; then
  6255. lt_cv_sys_global_symbol_to_cdecl=
  6256. fi
  6257. if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  6258. { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
  6259. $as_echo "failed" >&6; }
  6260. else
  6261. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
  6262. $as_echo "ok" >&6; }
  6263. fi
  6264. # Response file support.
  6265. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  6266. nm_file_list_spec='@'
  6267. elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
  6268. nm_file_list_spec='@'
  6269. fi
  6270. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
  6271. $as_echo_n "checking for sysroot... " >&6; }
  6272. @%:@ Check whether --with-sysroot was given.
  6273. if test "${with_sysroot+set}" = set; then :
  6274. withval=$with_sysroot;
  6275. else
  6276. with_sysroot=no
  6277. fi
  6278. lt_sysroot=
  6279. case ${with_sysroot} in #(
  6280. yes)
  6281. if test "$GCC" = yes; then
  6282. lt_sysroot=`$CC --print-sysroot 2>/dev/null`
  6283. fi
  6284. ;; #(
  6285. /*)
  6286. lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
  6287. ;; #(
  6288. no|'')
  6289. ;; #(
  6290. *)
  6291. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
  6292. $as_echo "${with_sysroot}" >&6; }
  6293. as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
  6294. ;;
  6295. esac
  6296. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
  6297. $as_echo "${lt_sysroot:-no}" >&6; }
  6298. @%:@ Check whether --enable-libtool-lock was given.
  6299. if test "${enable_libtool_lock+set}" = set; then :
  6300. enableval=$enable_libtool_lock;
  6301. fi
  6302. test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  6303. # Some flags need to be propagated to the compiler or linker for good
  6304. # libtool support.
  6305. case $host in
  6306. ia64-*-hpux*)
  6307. # Find out which ABI we are using.
  6308. echo 'int i;' > conftest.$ac_ext
  6309. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6310. (eval $ac_compile) 2>&5
  6311. ac_status=$?
  6312. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6313. test $ac_status = 0; }; then
  6314. case `/usr/bin/file conftest.$ac_objext` in
  6315. *ELF-32*)
  6316. HPUX_IA64_MODE="32"
  6317. ;;
  6318. *ELF-64*)
  6319. HPUX_IA64_MODE="64"
  6320. ;;
  6321. esac
  6322. fi
  6323. rm -rf conftest*
  6324. ;;
  6325. *-*-irix6*)
  6326. # Find out which ABI we are using.
  6327. echo '#line '$LINENO' "configure"' > conftest.$ac_ext
  6328. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6329. (eval $ac_compile) 2>&5
  6330. ac_status=$?
  6331. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6332. test $ac_status = 0; }; then
  6333. if test "$lt_cv_prog_gnu_ld" = yes; then
  6334. case `/usr/bin/file conftest.$ac_objext` in
  6335. *32-bit*)
  6336. LD="${LD-ld} -melf32bsmip"
  6337. ;;
  6338. *N32*)
  6339. LD="${LD-ld} -melf32bmipn32"
  6340. ;;
  6341. *64-bit*)
  6342. LD="${LD-ld} -melf64bmip"
  6343. ;;
  6344. esac
  6345. else
  6346. case `/usr/bin/file conftest.$ac_objext` in
  6347. *32-bit*)
  6348. LD="${LD-ld} -32"
  6349. ;;
  6350. *N32*)
  6351. LD="${LD-ld} -n32"
  6352. ;;
  6353. *64-bit*)
  6354. LD="${LD-ld} -64"
  6355. ;;
  6356. esac
  6357. fi
  6358. fi
  6359. rm -rf conftest*
  6360. ;;
  6361. x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
  6362. s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
  6363. # Find out which ABI we are using.
  6364. echo 'int i;' > conftest.$ac_ext
  6365. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6366. (eval $ac_compile) 2>&5
  6367. ac_status=$?
  6368. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6369. test $ac_status = 0; }; then
  6370. case `/usr/bin/file conftest.o` in
  6371. *32-bit*)
  6372. case $host in
  6373. x86_64-*kfreebsd*-gnu)
  6374. LD="${LD-ld} -m elf_i386_fbsd"
  6375. ;;
  6376. x86_64-*linux*)
  6377. LD="${LD-ld} -m elf_i386"
  6378. ;;
  6379. ppc64-*linux*|powerpc64-*linux*)
  6380. LD="${LD-ld} -m elf32ppclinux"
  6381. ;;
  6382. s390x-*linux*)
  6383. LD="${LD-ld} -m elf_s390"
  6384. ;;
  6385. sparc64-*linux*)
  6386. LD="${LD-ld} -m elf32_sparc"
  6387. ;;
  6388. esac
  6389. ;;
  6390. *64-bit*)
  6391. case $host in
  6392. x86_64-*kfreebsd*-gnu)
  6393. LD="${LD-ld} -m elf_x86_64_fbsd"
  6394. ;;
  6395. x86_64-*linux*)
  6396. LD="${LD-ld} -m elf_x86_64"
  6397. ;;
  6398. ppc*-*linux*|powerpc*-*linux*)
  6399. LD="${LD-ld} -m elf64ppc"
  6400. ;;
  6401. s390*-*linux*|s390*-*tpf*)
  6402. LD="${LD-ld} -m elf64_s390"
  6403. ;;
  6404. sparc*-*linux*)
  6405. LD="${LD-ld} -m elf64_sparc"
  6406. ;;
  6407. esac
  6408. ;;
  6409. esac
  6410. fi
  6411. rm -rf conftest*
  6412. ;;
  6413. *-*-sco3.2v5*)
  6414. # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  6415. SAVE_CFLAGS="$CFLAGS"
  6416. CFLAGS="$CFLAGS -belf"
  6417. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
  6418. $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
  6419. if ${lt_cv_cc_needs_belf+:} false; then :
  6420. $as_echo_n "(cached) " >&6
  6421. else
  6422. ac_ext=c
  6423. ac_cpp='$CPP $CPPFLAGS'
  6424. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6425. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6426. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6427. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6428. /* end confdefs.h. */
  6429. int
  6430. main ()
  6431. {
  6432. ;
  6433. return 0;
  6434. }
  6435. _ACEOF
  6436. if ac_fn_c_try_link "$LINENO"; then :
  6437. lt_cv_cc_needs_belf=yes
  6438. else
  6439. lt_cv_cc_needs_belf=no
  6440. fi
  6441. rm -f core conftest.err conftest.$ac_objext \
  6442. conftest$ac_exeext conftest.$ac_ext
  6443. ac_ext=c
  6444. ac_cpp='$CPP $CPPFLAGS'
  6445. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6446. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6447. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6448. fi
  6449. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
  6450. $as_echo "$lt_cv_cc_needs_belf" >&6; }
  6451. if test x"$lt_cv_cc_needs_belf" != x"yes"; then
  6452. # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  6453. CFLAGS="$SAVE_CFLAGS"
  6454. fi
  6455. ;;
  6456. *-*solaris*)
  6457. # Find out which ABI we are using.
  6458. echo 'int i;' > conftest.$ac_ext
  6459. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6460. (eval $ac_compile) 2>&5
  6461. ac_status=$?
  6462. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6463. test $ac_status = 0; }; then
  6464. case `/usr/bin/file conftest.o` in
  6465. *64-bit*)
  6466. case $lt_cv_prog_gnu_ld in
  6467. yes*)
  6468. case $host in
  6469. i?86-*-solaris*)
  6470. LD="${LD-ld} -m elf_x86_64"
  6471. ;;
  6472. sparc*-*-solaris*)
  6473. LD="${LD-ld} -m elf64_sparc"
  6474. ;;
  6475. esac
  6476. # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
  6477. if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
  6478. LD="${LD-ld}_sol2"
  6479. fi
  6480. ;;
  6481. *)
  6482. if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
  6483. LD="${LD-ld} -64"
  6484. fi
  6485. ;;
  6486. esac
  6487. ;;
  6488. esac
  6489. fi
  6490. rm -rf conftest*
  6491. ;;
  6492. esac
  6493. need_locks="$enable_libtool_lock"
  6494. if test -n "$ac_tool_prefix"; then
  6495. # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
  6496. set dummy ${ac_tool_prefix}mt; ac_word=$2
  6497. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6498. $as_echo_n "checking for $ac_word... " >&6; }
  6499. if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
  6500. $as_echo_n "(cached) " >&6
  6501. else
  6502. if test -n "$MANIFEST_TOOL"; then
  6503. ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
  6504. else
  6505. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6506. for as_dir in $PATH
  6507. do
  6508. IFS=$as_save_IFS
  6509. test -z "$as_dir" && as_dir=.
  6510. for ac_exec_ext in '' $ac_executable_extensions; do
  6511. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6512. ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
  6513. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6514. break 2
  6515. fi
  6516. done
  6517. done
  6518. IFS=$as_save_IFS
  6519. fi
  6520. fi
  6521. MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
  6522. if test -n "$MANIFEST_TOOL"; then
  6523. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
  6524. $as_echo "$MANIFEST_TOOL" >&6; }
  6525. else
  6526. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6527. $as_echo "no" >&6; }
  6528. fi
  6529. fi
  6530. if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
  6531. ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
  6532. # Extract the first word of "mt", so it can be a program name with args.
  6533. set dummy mt; ac_word=$2
  6534. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6535. $as_echo_n "checking for $ac_word... " >&6; }
  6536. if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
  6537. $as_echo_n "(cached) " >&6
  6538. else
  6539. if test -n "$ac_ct_MANIFEST_TOOL"; then
  6540. ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
  6541. else
  6542. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6543. for as_dir in $PATH
  6544. do
  6545. IFS=$as_save_IFS
  6546. test -z "$as_dir" && as_dir=.
  6547. for ac_exec_ext in '' $ac_executable_extensions; do
  6548. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6549. ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
  6550. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6551. break 2
  6552. fi
  6553. done
  6554. done
  6555. IFS=$as_save_IFS
  6556. fi
  6557. fi
  6558. ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
  6559. if test -n "$ac_ct_MANIFEST_TOOL"; then
  6560. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
  6561. $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
  6562. else
  6563. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6564. $as_echo "no" >&6; }
  6565. fi
  6566. if test "x$ac_ct_MANIFEST_TOOL" = x; then
  6567. MANIFEST_TOOL=":"
  6568. else
  6569. case $cross_compiling:$ac_tool_warned in
  6570. yes:)
  6571. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6572. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6573. ac_tool_warned=yes ;;
  6574. esac
  6575. MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
  6576. fi
  6577. else
  6578. MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
  6579. fi
  6580. test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
  6581. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
  6582. $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
  6583. if ${lt_cv_path_mainfest_tool+:} false; then :
  6584. $as_echo_n "(cached) " >&6
  6585. else
  6586. lt_cv_path_mainfest_tool=no
  6587. echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
  6588. $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
  6589. cat conftest.err >&5
  6590. if $GREP 'Manifest Tool' conftest.out > /dev/null; then
  6591. lt_cv_path_mainfest_tool=yes
  6592. fi
  6593. rm -f conftest*
  6594. fi
  6595. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
  6596. $as_echo "$lt_cv_path_mainfest_tool" >&6; }
  6597. if test "x$lt_cv_path_mainfest_tool" != xyes; then
  6598. MANIFEST_TOOL=:
  6599. fi
  6600. case $host_os in
  6601. rhapsody* | darwin*)
  6602. if test -n "$ac_tool_prefix"; then
  6603. # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
  6604. set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
  6605. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6606. $as_echo_n "checking for $ac_word... " >&6; }
  6607. if ${ac_cv_prog_DSYMUTIL+:} false; then :
  6608. $as_echo_n "(cached) " >&6
  6609. else
  6610. if test -n "$DSYMUTIL"; then
  6611. ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
  6612. else
  6613. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6614. for as_dir in $PATH
  6615. do
  6616. IFS=$as_save_IFS
  6617. test -z "$as_dir" && as_dir=.
  6618. for ac_exec_ext in '' $ac_executable_extensions; do
  6619. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6620. ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
  6621. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6622. break 2
  6623. fi
  6624. done
  6625. done
  6626. IFS=$as_save_IFS
  6627. fi
  6628. fi
  6629. DSYMUTIL=$ac_cv_prog_DSYMUTIL
  6630. if test -n "$DSYMUTIL"; then
  6631. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
  6632. $as_echo "$DSYMUTIL" >&6; }
  6633. else
  6634. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6635. $as_echo "no" >&6; }
  6636. fi
  6637. fi
  6638. if test -z "$ac_cv_prog_DSYMUTIL"; then
  6639. ac_ct_DSYMUTIL=$DSYMUTIL
  6640. # Extract the first word of "dsymutil", so it can be a program name with args.
  6641. set dummy dsymutil; ac_word=$2
  6642. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6643. $as_echo_n "checking for $ac_word... " >&6; }
  6644. if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
  6645. $as_echo_n "(cached) " >&6
  6646. else
  6647. if test -n "$ac_ct_DSYMUTIL"; then
  6648. ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
  6649. else
  6650. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6651. for as_dir in $PATH
  6652. do
  6653. IFS=$as_save_IFS
  6654. test -z "$as_dir" && as_dir=.
  6655. for ac_exec_ext in '' $ac_executable_extensions; do
  6656. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6657. ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
  6658. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6659. break 2
  6660. fi
  6661. done
  6662. done
  6663. IFS=$as_save_IFS
  6664. fi
  6665. fi
  6666. ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
  6667. if test -n "$ac_ct_DSYMUTIL"; then
  6668. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
  6669. $as_echo "$ac_ct_DSYMUTIL" >&6; }
  6670. else
  6671. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6672. $as_echo "no" >&6; }
  6673. fi
  6674. if test "x$ac_ct_DSYMUTIL" = x; then
  6675. DSYMUTIL=":"
  6676. else
  6677. case $cross_compiling:$ac_tool_warned in
  6678. yes:)
  6679. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6680. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6681. ac_tool_warned=yes ;;
  6682. esac
  6683. DSYMUTIL=$ac_ct_DSYMUTIL
  6684. fi
  6685. else
  6686. DSYMUTIL="$ac_cv_prog_DSYMUTIL"
  6687. fi
  6688. if test -n "$ac_tool_prefix"; then
  6689. # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
  6690. set dummy ${ac_tool_prefix}nmedit; ac_word=$2
  6691. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6692. $as_echo_n "checking for $ac_word... " >&6; }
  6693. if ${ac_cv_prog_NMEDIT+:} false; then :
  6694. $as_echo_n "(cached) " >&6
  6695. else
  6696. if test -n "$NMEDIT"; then
  6697. ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
  6698. else
  6699. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6700. for as_dir in $PATH
  6701. do
  6702. IFS=$as_save_IFS
  6703. test -z "$as_dir" && as_dir=.
  6704. for ac_exec_ext in '' $ac_executable_extensions; do
  6705. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6706. ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
  6707. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6708. break 2
  6709. fi
  6710. done
  6711. done
  6712. IFS=$as_save_IFS
  6713. fi
  6714. fi
  6715. NMEDIT=$ac_cv_prog_NMEDIT
  6716. if test -n "$NMEDIT"; then
  6717. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
  6718. $as_echo "$NMEDIT" >&6; }
  6719. else
  6720. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6721. $as_echo "no" >&6; }
  6722. fi
  6723. fi
  6724. if test -z "$ac_cv_prog_NMEDIT"; then
  6725. ac_ct_NMEDIT=$NMEDIT
  6726. # Extract the first word of "nmedit", so it can be a program name with args.
  6727. set dummy nmedit; ac_word=$2
  6728. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6729. $as_echo_n "checking for $ac_word... " >&6; }
  6730. if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
  6731. $as_echo_n "(cached) " >&6
  6732. else
  6733. if test -n "$ac_ct_NMEDIT"; then
  6734. ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
  6735. else
  6736. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6737. for as_dir in $PATH
  6738. do
  6739. IFS=$as_save_IFS
  6740. test -z "$as_dir" && as_dir=.
  6741. for ac_exec_ext in '' $ac_executable_extensions; do
  6742. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6743. ac_cv_prog_ac_ct_NMEDIT="nmedit"
  6744. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6745. break 2
  6746. fi
  6747. done
  6748. done
  6749. IFS=$as_save_IFS
  6750. fi
  6751. fi
  6752. ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
  6753. if test -n "$ac_ct_NMEDIT"; then
  6754. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
  6755. $as_echo "$ac_ct_NMEDIT" >&6; }
  6756. else
  6757. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6758. $as_echo "no" >&6; }
  6759. fi
  6760. if test "x$ac_ct_NMEDIT" = x; then
  6761. NMEDIT=":"
  6762. else
  6763. case $cross_compiling:$ac_tool_warned in
  6764. yes:)
  6765. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6766. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6767. ac_tool_warned=yes ;;
  6768. esac
  6769. NMEDIT=$ac_ct_NMEDIT
  6770. fi
  6771. else
  6772. NMEDIT="$ac_cv_prog_NMEDIT"
  6773. fi
  6774. if test -n "$ac_tool_prefix"; then
  6775. # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
  6776. set dummy ${ac_tool_prefix}lipo; ac_word=$2
  6777. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6778. $as_echo_n "checking for $ac_word... " >&6; }
  6779. if ${ac_cv_prog_LIPO+:} false; then :
  6780. $as_echo_n "(cached) " >&6
  6781. else
  6782. if test -n "$LIPO"; then
  6783. ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
  6784. else
  6785. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6786. for as_dir in $PATH
  6787. do
  6788. IFS=$as_save_IFS
  6789. test -z "$as_dir" && as_dir=.
  6790. for ac_exec_ext in '' $ac_executable_extensions; do
  6791. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6792. ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
  6793. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6794. break 2
  6795. fi
  6796. done
  6797. done
  6798. IFS=$as_save_IFS
  6799. fi
  6800. fi
  6801. LIPO=$ac_cv_prog_LIPO
  6802. if test -n "$LIPO"; then
  6803. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
  6804. $as_echo "$LIPO" >&6; }
  6805. else
  6806. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6807. $as_echo "no" >&6; }
  6808. fi
  6809. fi
  6810. if test -z "$ac_cv_prog_LIPO"; then
  6811. ac_ct_LIPO=$LIPO
  6812. # Extract the first word of "lipo", so it can be a program name with args.
  6813. set dummy lipo; ac_word=$2
  6814. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6815. $as_echo_n "checking for $ac_word... " >&6; }
  6816. if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
  6817. $as_echo_n "(cached) " >&6
  6818. else
  6819. if test -n "$ac_ct_LIPO"; then
  6820. ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
  6821. else
  6822. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6823. for as_dir in $PATH
  6824. do
  6825. IFS=$as_save_IFS
  6826. test -z "$as_dir" && as_dir=.
  6827. for ac_exec_ext in '' $ac_executable_extensions; do
  6828. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6829. ac_cv_prog_ac_ct_LIPO="lipo"
  6830. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6831. break 2
  6832. fi
  6833. done
  6834. done
  6835. IFS=$as_save_IFS
  6836. fi
  6837. fi
  6838. ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
  6839. if test -n "$ac_ct_LIPO"; then
  6840. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
  6841. $as_echo "$ac_ct_LIPO" >&6; }
  6842. else
  6843. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6844. $as_echo "no" >&6; }
  6845. fi
  6846. if test "x$ac_ct_LIPO" = x; then
  6847. LIPO=":"
  6848. else
  6849. case $cross_compiling:$ac_tool_warned in
  6850. yes:)
  6851. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6852. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6853. ac_tool_warned=yes ;;
  6854. esac
  6855. LIPO=$ac_ct_LIPO
  6856. fi
  6857. else
  6858. LIPO="$ac_cv_prog_LIPO"
  6859. fi
  6860. if test -n "$ac_tool_prefix"; then
  6861. # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
  6862. set dummy ${ac_tool_prefix}otool; ac_word=$2
  6863. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6864. $as_echo_n "checking for $ac_word... " >&6; }
  6865. if ${ac_cv_prog_OTOOL+:} false; then :
  6866. $as_echo_n "(cached) " >&6
  6867. else
  6868. if test -n "$OTOOL"; then
  6869. ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
  6870. else
  6871. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6872. for as_dir in $PATH
  6873. do
  6874. IFS=$as_save_IFS
  6875. test -z "$as_dir" && as_dir=.
  6876. for ac_exec_ext in '' $ac_executable_extensions; do
  6877. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6878. ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
  6879. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6880. break 2
  6881. fi
  6882. done
  6883. done
  6884. IFS=$as_save_IFS
  6885. fi
  6886. fi
  6887. OTOOL=$ac_cv_prog_OTOOL
  6888. if test -n "$OTOOL"; then
  6889. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
  6890. $as_echo "$OTOOL" >&6; }
  6891. else
  6892. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6893. $as_echo "no" >&6; }
  6894. fi
  6895. fi
  6896. if test -z "$ac_cv_prog_OTOOL"; then
  6897. ac_ct_OTOOL=$OTOOL
  6898. # Extract the first word of "otool", so it can be a program name with args.
  6899. set dummy otool; ac_word=$2
  6900. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6901. $as_echo_n "checking for $ac_word... " >&6; }
  6902. if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
  6903. $as_echo_n "(cached) " >&6
  6904. else
  6905. if test -n "$ac_ct_OTOOL"; then
  6906. ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
  6907. else
  6908. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6909. for as_dir in $PATH
  6910. do
  6911. IFS=$as_save_IFS
  6912. test -z "$as_dir" && as_dir=.
  6913. for ac_exec_ext in '' $ac_executable_extensions; do
  6914. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6915. ac_cv_prog_ac_ct_OTOOL="otool"
  6916. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6917. break 2
  6918. fi
  6919. done
  6920. done
  6921. IFS=$as_save_IFS
  6922. fi
  6923. fi
  6924. ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
  6925. if test -n "$ac_ct_OTOOL"; then
  6926. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
  6927. $as_echo "$ac_ct_OTOOL" >&6; }
  6928. else
  6929. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6930. $as_echo "no" >&6; }
  6931. fi
  6932. if test "x$ac_ct_OTOOL" = x; then
  6933. OTOOL=":"
  6934. else
  6935. case $cross_compiling:$ac_tool_warned in
  6936. yes:)
  6937. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6938. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6939. ac_tool_warned=yes ;;
  6940. esac
  6941. OTOOL=$ac_ct_OTOOL
  6942. fi
  6943. else
  6944. OTOOL="$ac_cv_prog_OTOOL"
  6945. fi
  6946. if test -n "$ac_tool_prefix"; then
  6947. # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
  6948. set dummy ${ac_tool_prefix}otool64; ac_word=$2
  6949. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6950. $as_echo_n "checking for $ac_word... " >&6; }
  6951. if ${ac_cv_prog_OTOOL64+:} false; then :
  6952. $as_echo_n "(cached) " >&6
  6953. else
  6954. if test -n "$OTOOL64"; then
  6955. ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
  6956. else
  6957. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6958. for as_dir in $PATH
  6959. do
  6960. IFS=$as_save_IFS
  6961. test -z "$as_dir" && as_dir=.
  6962. for ac_exec_ext in '' $ac_executable_extensions; do
  6963. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6964. ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
  6965. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6966. break 2
  6967. fi
  6968. done
  6969. done
  6970. IFS=$as_save_IFS
  6971. fi
  6972. fi
  6973. OTOOL64=$ac_cv_prog_OTOOL64
  6974. if test -n "$OTOOL64"; then
  6975. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
  6976. $as_echo "$OTOOL64" >&6; }
  6977. else
  6978. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6979. $as_echo "no" >&6; }
  6980. fi
  6981. fi
  6982. if test -z "$ac_cv_prog_OTOOL64"; then
  6983. ac_ct_OTOOL64=$OTOOL64
  6984. # Extract the first word of "otool64", so it can be a program name with args.
  6985. set dummy otool64; ac_word=$2
  6986. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6987. $as_echo_n "checking for $ac_word... " >&6; }
  6988. if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
  6989. $as_echo_n "(cached) " >&6
  6990. else
  6991. if test -n "$ac_ct_OTOOL64"; then
  6992. ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
  6993. else
  6994. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6995. for as_dir in $PATH
  6996. do
  6997. IFS=$as_save_IFS
  6998. test -z "$as_dir" && as_dir=.
  6999. for ac_exec_ext in '' $ac_executable_extensions; do
  7000. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  7001. ac_cv_prog_ac_ct_OTOOL64="otool64"
  7002. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7003. break 2
  7004. fi
  7005. done
  7006. done
  7007. IFS=$as_save_IFS
  7008. fi
  7009. fi
  7010. ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
  7011. if test -n "$ac_ct_OTOOL64"; then
  7012. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
  7013. $as_echo "$ac_ct_OTOOL64" >&6; }
  7014. else
  7015. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7016. $as_echo "no" >&6; }
  7017. fi
  7018. if test "x$ac_ct_OTOOL64" = x; then
  7019. OTOOL64=":"
  7020. else
  7021. case $cross_compiling:$ac_tool_warned in
  7022. yes:)
  7023. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7024. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7025. ac_tool_warned=yes ;;
  7026. esac
  7027. OTOOL64=$ac_ct_OTOOL64
  7028. fi
  7029. else
  7030. OTOOL64="$ac_cv_prog_OTOOL64"
  7031. fi
  7032. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
  7033. $as_echo_n "checking for -single_module linker flag... " >&6; }
  7034. if ${lt_cv_apple_cc_single_mod+:} false; then :
  7035. $as_echo_n "(cached) " >&6
  7036. else
  7037. lt_cv_apple_cc_single_mod=no
  7038. if test -z "${LT_MULTI_MODULE}"; then
  7039. # By default we will add the -single_module flag. You can override
  7040. # by either setting the environment variable LT_MULTI_MODULE
  7041. # non-empty at configure time, or by adding -multi_module to the
  7042. # link flags.
  7043. rm -rf libconftest.dylib*
  7044. echo "int foo(void){return 1;}" > conftest.c
  7045. echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  7046. -dynamiclib -Wl,-single_module conftest.c" >&5
  7047. $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  7048. -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
  7049. _lt_result=$?
  7050. # If there is a non-empty error log, and "single_module"
  7051. # appears in it, assume the flag caused a linker warning
  7052. if test -s conftest.err && $GREP single_module conftest.err; then
  7053. cat conftest.err >&5
  7054. # Otherwise, if the output was created with a 0 exit code from
  7055. # the compiler, it worked.
  7056. elif test -f libconftest.dylib && test $_lt_result -eq 0; then
  7057. lt_cv_apple_cc_single_mod=yes
  7058. else
  7059. cat conftest.err >&5
  7060. fi
  7061. rm -rf libconftest.dylib*
  7062. rm -f conftest.*
  7063. fi
  7064. fi
  7065. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
  7066. $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
  7067. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
  7068. $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
  7069. if ${lt_cv_ld_exported_symbols_list+:} false; then :
  7070. $as_echo_n "(cached) " >&6
  7071. else
  7072. lt_cv_ld_exported_symbols_list=no
  7073. save_LDFLAGS=$LDFLAGS
  7074. echo "_main" > conftest.sym
  7075. LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
  7076. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7077. /* end confdefs.h. */
  7078. int
  7079. main ()
  7080. {
  7081. ;
  7082. return 0;
  7083. }
  7084. _ACEOF
  7085. if ac_fn_c_try_link "$LINENO"; then :
  7086. lt_cv_ld_exported_symbols_list=yes
  7087. else
  7088. lt_cv_ld_exported_symbols_list=no
  7089. fi
  7090. rm -f core conftest.err conftest.$ac_objext \
  7091. conftest$ac_exeext conftest.$ac_ext
  7092. LDFLAGS="$save_LDFLAGS"
  7093. fi
  7094. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
  7095. $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
  7096. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
  7097. $as_echo_n "checking for -force_load linker flag... " >&6; }
  7098. if ${lt_cv_ld_force_load+:} false; then :
  7099. $as_echo_n "(cached) " >&6
  7100. else
  7101. lt_cv_ld_force_load=no
  7102. cat > conftest.c << _LT_EOF
  7103. int forced_loaded() { return 2;}
  7104. _LT_EOF
  7105. echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
  7106. $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
  7107. echo "$AR cru libconftest.a conftest.o" >&5
  7108. $AR cru libconftest.a conftest.o 2>&5
  7109. echo "$RANLIB libconftest.a" >&5
  7110. $RANLIB libconftest.a 2>&5
  7111. cat > conftest.c << _LT_EOF
  7112. int main() { return 0;}
  7113. _LT_EOF
  7114. echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
  7115. $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
  7116. _lt_result=$?
  7117. if test -s conftest.err && $GREP force_load conftest.err; then
  7118. cat conftest.err >&5
  7119. elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
  7120. lt_cv_ld_force_load=yes
  7121. else
  7122. cat conftest.err >&5
  7123. fi
  7124. rm -f conftest.err libconftest.a conftest conftest.c
  7125. rm -rf conftest.dSYM
  7126. fi
  7127. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
  7128. $as_echo "$lt_cv_ld_force_load" >&6; }
  7129. case $host_os in
  7130. rhapsody* | darwin1.[012])
  7131. _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
  7132. darwin1.*)
  7133. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  7134. darwin*) # darwin 5.x on
  7135. # if running on 10.5 or later, the deployment target defaults
  7136. # to the OS version, if on x86, and 10.4, the deployment
  7137. # target defaults to 10.4. Don't you love it?
  7138. case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
  7139. 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
  7140. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  7141. 10.[012]*)
  7142. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  7143. 10.*)
  7144. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  7145. esac
  7146. ;;
  7147. esac
  7148. if test "$lt_cv_apple_cc_single_mod" = "yes"; then
  7149. _lt_dar_single_mod='$single_module'
  7150. fi
  7151. if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
  7152. _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
  7153. else
  7154. _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
  7155. fi
  7156. if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
  7157. _lt_dsymutil='~$DSYMUTIL $lib || :'
  7158. else
  7159. _lt_dsymutil=
  7160. fi
  7161. ;;
  7162. esac
  7163. for ac_header in dlfcn.h
  7164. do :
  7165. ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
  7166. "
  7167. if test "x$ac_cv_header_dlfcn_h" = xyes; then :
  7168. cat >>confdefs.h <<_ACEOF
  7169. @%:@define HAVE_DLFCN_H 1
  7170. _ACEOF
  7171. fi
  7172. done
  7173. # Set options
  7174. enable_dlopen=no
  7175. enable_win32_dll=no
  7176. @%:@ Check whether --enable-shared was given.
  7177. if test "${enable_shared+set}" = set; then :
  7178. enableval=$enable_shared; p=${PACKAGE-default}
  7179. case $enableval in
  7180. yes) enable_shared=yes ;;
  7181. no) enable_shared=no ;;
  7182. *)
  7183. enable_shared=no
  7184. # Look at the argument we got. We use all the common list separators.
  7185. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  7186. for pkg in $enableval; do
  7187. IFS="$lt_save_ifs"
  7188. if test "X$pkg" = "X$p"; then
  7189. enable_shared=yes
  7190. fi
  7191. done
  7192. IFS="$lt_save_ifs"
  7193. ;;
  7194. esac
  7195. else
  7196. enable_shared=yes
  7197. fi
  7198. @%:@ Check whether --enable-static was given.
  7199. if test "${enable_static+set}" = set; then :
  7200. enableval=$enable_static; p=${PACKAGE-default}
  7201. case $enableval in
  7202. yes) enable_static=yes ;;
  7203. no) enable_static=no ;;
  7204. *)
  7205. enable_static=no
  7206. # Look at the argument we got. We use all the common list separators.
  7207. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  7208. for pkg in $enableval; do
  7209. IFS="$lt_save_ifs"
  7210. if test "X$pkg" = "X$p"; then
  7211. enable_static=yes
  7212. fi
  7213. done
  7214. IFS="$lt_save_ifs"
  7215. ;;
  7216. esac
  7217. else
  7218. enable_static=yes
  7219. fi
  7220. @%:@ Check whether --with-pic was given.
  7221. if test "${with_pic+set}" = set; then :
  7222. withval=$with_pic; lt_p=${PACKAGE-default}
  7223. case $withval in
  7224. yes|no) pic_mode=$withval ;;
  7225. *)
  7226. pic_mode=default
  7227. # Look at the argument we got. We use all the common list separators.
  7228. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  7229. for lt_pkg in $withval; do
  7230. IFS="$lt_save_ifs"
  7231. if test "X$lt_pkg" = "X$lt_p"; then
  7232. pic_mode=yes
  7233. fi
  7234. done
  7235. IFS="$lt_save_ifs"
  7236. ;;
  7237. esac
  7238. else
  7239. pic_mode=default
  7240. fi
  7241. test -z "$pic_mode" && pic_mode=default
  7242. @%:@ Check whether --enable-fast-install was given.
  7243. if test "${enable_fast_install+set}" = set; then :
  7244. enableval=$enable_fast_install; p=${PACKAGE-default}
  7245. case $enableval in
  7246. yes) enable_fast_install=yes ;;
  7247. no) enable_fast_install=no ;;
  7248. *)
  7249. enable_fast_install=no
  7250. # Look at the argument we got. We use all the common list separators.
  7251. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  7252. for pkg in $enableval; do
  7253. IFS="$lt_save_ifs"
  7254. if test "X$pkg" = "X$p"; then
  7255. enable_fast_install=yes
  7256. fi
  7257. done
  7258. IFS="$lt_save_ifs"
  7259. ;;
  7260. esac
  7261. else
  7262. enable_fast_install=yes
  7263. fi
  7264. # This can be used to rebuild libtool when needed
  7265. LIBTOOL_DEPS="$ltmain"
  7266. # Always use our own libtool.
  7267. LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  7268. test -z "$LN_S" && LN_S="ln -s"
  7269. if test -n "${ZSH_VERSION+set}" ; then
  7270. setopt NO_GLOB_SUBST
  7271. fi
  7272. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
  7273. $as_echo_n "checking for objdir... " >&6; }
  7274. if ${lt_cv_objdir+:} false; then :
  7275. $as_echo_n "(cached) " >&6
  7276. else
  7277. rm -f .libs 2>/dev/null
  7278. mkdir .libs 2>/dev/null
  7279. if test -d .libs; then
  7280. lt_cv_objdir=.libs
  7281. else
  7282. # MS-DOS does not allow filenames that begin with a dot.
  7283. lt_cv_objdir=_libs
  7284. fi
  7285. rmdir .libs 2>/dev/null
  7286. fi
  7287. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
  7288. $as_echo "$lt_cv_objdir" >&6; }
  7289. objdir=$lt_cv_objdir
  7290. cat >>confdefs.h <<_ACEOF
  7291. @%:@define LT_OBJDIR "$lt_cv_objdir/"
  7292. _ACEOF
  7293. case $host_os in
  7294. aix3*)
  7295. # AIX sometimes has problems with the GCC collect2 program. For some
  7296. # reason, if we set the COLLECT_NAMES environment variable, the problems
  7297. # vanish in a puff of smoke.
  7298. if test "X${COLLECT_NAMES+set}" != Xset; then
  7299. COLLECT_NAMES=
  7300. export COLLECT_NAMES
  7301. fi
  7302. ;;
  7303. esac
  7304. # Global variables:
  7305. ofile=libtool
  7306. can_build_shared=yes
  7307. # All known linkers require a `.a' archive for static linking (except MSVC,
  7308. # which needs '.lib').
  7309. libext=a
  7310. with_gnu_ld="$lt_cv_prog_gnu_ld"
  7311. old_CC="$CC"
  7312. old_CFLAGS="$CFLAGS"
  7313. # Set sane defaults for various variables
  7314. test -z "$CC" && CC=cc
  7315. test -z "$LTCC" && LTCC=$CC
  7316. test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  7317. test -z "$LD" && LD=ld
  7318. test -z "$ac_objext" && ac_objext=o
  7319. for cc_temp in $compiler""; do
  7320. case $cc_temp in
  7321. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  7322. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  7323. \-*) ;;
  7324. *) break;;
  7325. esac
  7326. done
  7327. cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  7328. # Only perform the check for file, if the check method requires it
  7329. test -z "$MAGIC_CMD" && MAGIC_CMD=file
  7330. case $deplibs_check_method in
  7331. file_magic*)
  7332. if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  7333. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
  7334. $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
  7335. if ${lt_cv_path_MAGIC_CMD+:} false; then :
  7336. $as_echo_n "(cached) " >&6
  7337. else
  7338. case $MAGIC_CMD in
  7339. [\\/*] | ?:[\\/]*)
  7340. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  7341. ;;
  7342. *)
  7343. lt_save_MAGIC_CMD="$MAGIC_CMD"
  7344. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  7345. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  7346. for ac_dir in $ac_dummy; do
  7347. IFS="$lt_save_ifs"
  7348. test -z "$ac_dir" && ac_dir=.
  7349. if test -f $ac_dir/${ac_tool_prefix}file; then
  7350. lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
  7351. if test -n "$file_magic_test_file"; then
  7352. case $deplibs_check_method in
  7353. "file_magic "*)
  7354. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  7355. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  7356. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  7357. $EGREP "$file_magic_regex" > /dev/null; then
  7358. :
  7359. else
  7360. cat <<_LT_EOF 1>&2
  7361. *** Warning: the command libtool uses to detect shared libraries,
  7362. *** $file_magic_cmd, produces output that libtool cannot recognize.
  7363. *** The result is that libtool may fail to recognize shared libraries
  7364. *** as such. This will affect the creation of libtool libraries that
  7365. *** depend on shared libraries, but programs linked with such libtool
  7366. *** libraries will work regardless of this problem. Nevertheless, you
  7367. *** may want to report the problem to your system manager and/or to
  7368. *** bug-libtool@gnu.org
  7369. _LT_EOF
  7370. fi ;;
  7371. esac
  7372. fi
  7373. break
  7374. fi
  7375. done
  7376. IFS="$lt_save_ifs"
  7377. MAGIC_CMD="$lt_save_MAGIC_CMD"
  7378. ;;
  7379. esac
  7380. fi
  7381. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  7382. if test -n "$MAGIC_CMD"; then
  7383. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  7384. $as_echo "$MAGIC_CMD" >&6; }
  7385. else
  7386. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7387. $as_echo "no" >&6; }
  7388. fi
  7389. if test -z "$lt_cv_path_MAGIC_CMD"; then
  7390. if test -n "$ac_tool_prefix"; then
  7391. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
  7392. $as_echo_n "checking for file... " >&6; }
  7393. if ${lt_cv_path_MAGIC_CMD+:} false; then :
  7394. $as_echo_n "(cached) " >&6
  7395. else
  7396. case $MAGIC_CMD in
  7397. [\\/*] | ?:[\\/]*)
  7398. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  7399. ;;
  7400. *)
  7401. lt_save_MAGIC_CMD="$MAGIC_CMD"
  7402. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  7403. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  7404. for ac_dir in $ac_dummy; do
  7405. IFS="$lt_save_ifs"
  7406. test -z "$ac_dir" && ac_dir=.
  7407. if test -f $ac_dir/file; then
  7408. lt_cv_path_MAGIC_CMD="$ac_dir/file"
  7409. if test -n "$file_magic_test_file"; then
  7410. case $deplibs_check_method in
  7411. "file_magic "*)
  7412. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  7413. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  7414. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  7415. $EGREP "$file_magic_regex" > /dev/null; then
  7416. :
  7417. else
  7418. cat <<_LT_EOF 1>&2
  7419. *** Warning: the command libtool uses to detect shared libraries,
  7420. *** $file_magic_cmd, produces output that libtool cannot recognize.
  7421. *** The result is that libtool may fail to recognize shared libraries
  7422. *** as such. This will affect the creation of libtool libraries that
  7423. *** depend on shared libraries, but programs linked with such libtool
  7424. *** libraries will work regardless of this problem. Nevertheless, you
  7425. *** may want to report the problem to your system manager and/or to
  7426. *** bug-libtool@gnu.org
  7427. _LT_EOF
  7428. fi ;;
  7429. esac
  7430. fi
  7431. break
  7432. fi
  7433. done
  7434. IFS="$lt_save_ifs"
  7435. MAGIC_CMD="$lt_save_MAGIC_CMD"
  7436. ;;
  7437. esac
  7438. fi
  7439. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  7440. if test -n "$MAGIC_CMD"; then
  7441. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  7442. $as_echo "$MAGIC_CMD" >&6; }
  7443. else
  7444. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7445. $as_echo "no" >&6; }
  7446. fi
  7447. else
  7448. MAGIC_CMD=:
  7449. fi
  7450. fi
  7451. fi
  7452. ;;
  7453. esac
  7454. # Use C for the default configuration in the libtool script
  7455. lt_save_CC="$CC"
  7456. ac_ext=c
  7457. ac_cpp='$CPP $CPPFLAGS'
  7458. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  7459. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  7460. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  7461. # Source file extension for C test sources.
  7462. ac_ext=c
  7463. # Object file extension for compiled C test sources.
  7464. objext=o
  7465. objext=$objext
  7466. # Code to be used in simple compile tests
  7467. lt_simple_compile_test_code="int some_variable = 0;"
  7468. # Code to be used in simple link tests
  7469. lt_simple_link_test_code='int main(){return(0);}'
  7470. # If no C compiler was specified, use CC.
  7471. LTCC=${LTCC-"$CC"}
  7472. # If no C compiler flags were specified, use CFLAGS.
  7473. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  7474. # Allow CC to be a program name with arguments.
  7475. compiler=$CC
  7476. # Save the default compiler, since it gets overwritten when the other
  7477. # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
  7478. compiler_DEFAULT=$CC
  7479. # save warnings/boilerplate of simple test code
  7480. ac_outfile=conftest.$ac_objext
  7481. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  7482. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  7483. _lt_compiler_boilerplate=`cat conftest.err`
  7484. $RM conftest*
  7485. ac_outfile=conftest.$ac_objext
  7486. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  7487. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  7488. _lt_linker_boilerplate=`cat conftest.err`
  7489. $RM -r conftest*
  7490. if test -n "$compiler"; then
  7491. lt_prog_compiler_no_builtin_flag=
  7492. if test "$GCC" = yes; then
  7493. case $cc_basename in
  7494. nvcc*)
  7495. lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
  7496. *)
  7497. lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
  7498. esac
  7499. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  7500. $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
  7501. if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
  7502. $as_echo_n "(cached) " >&6
  7503. else
  7504. lt_cv_prog_compiler_rtti_exceptions=no
  7505. ac_outfile=conftest.$ac_objext
  7506. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7507. lt_compiler_flag="-fno-rtti -fno-exceptions"
  7508. # Insert the option either (1) after the last *FLAGS variable, or
  7509. # (2) before a word containing "conftest.", or (3) at the end.
  7510. # Note that $ac_compile itself does not contain backslashes and begins
  7511. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7512. # The option is referenced via a variable to avoid confusing sed.
  7513. lt_compile=`echo "$ac_compile" | $SED \
  7514. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7515. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7516. -e 's:$: $lt_compiler_flag:'`
  7517. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7518. (eval "$lt_compile" 2>conftest.err)
  7519. ac_status=$?
  7520. cat conftest.err >&5
  7521. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7522. if (exit $ac_status) && test -s "$ac_outfile"; then
  7523. # The compiler can only warn and ignore the option if not recognized
  7524. # So say no if there are warnings other than the usual output.
  7525. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  7526. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7527. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  7528. lt_cv_prog_compiler_rtti_exceptions=yes
  7529. fi
  7530. fi
  7531. $RM conftest*
  7532. fi
  7533. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  7534. $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
  7535. if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
  7536. lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
  7537. else
  7538. :
  7539. fi
  7540. fi
  7541. lt_prog_compiler_wl=
  7542. lt_prog_compiler_pic=
  7543. lt_prog_compiler_static=
  7544. if test "$GCC" = yes; then
  7545. lt_prog_compiler_wl='-Wl,'
  7546. lt_prog_compiler_static='-static'
  7547. case $host_os in
  7548. aix*)
  7549. # All AIX code is PIC.
  7550. if test "$host_cpu" = ia64; then
  7551. # AIX 5 now supports IA64 processor
  7552. lt_prog_compiler_static='-Bstatic'
  7553. fi
  7554. ;;
  7555. amigaos*)
  7556. case $host_cpu in
  7557. powerpc)
  7558. # see comment about AmigaOS4 .so support
  7559. lt_prog_compiler_pic='-fPIC'
  7560. ;;
  7561. m68k)
  7562. # FIXME: we need at least 68020 code to build shared libraries, but
  7563. # adding the `-m68020' flag to GCC prevents building anything better,
  7564. # like `-m68040'.
  7565. lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
  7566. ;;
  7567. esac
  7568. ;;
  7569. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  7570. # PIC is the default for these OSes.
  7571. ;;
  7572. mingw* | cygwin* | pw32* | os2* | cegcc*)
  7573. # This hack is so that the source file can tell whether it is being
  7574. # built for inclusion in a dll (and should export symbols for example).
  7575. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  7576. # (--disable-auto-import) libraries
  7577. lt_prog_compiler_pic='-DDLL_EXPORT'
  7578. ;;
  7579. darwin* | rhapsody*)
  7580. # PIC is the default on this platform
  7581. # Common symbols not allowed in MH_DYLIB files
  7582. lt_prog_compiler_pic='-fno-common'
  7583. ;;
  7584. haiku*)
  7585. # PIC is the default for Haiku.
  7586. # The "-static" flag exists, but is broken.
  7587. lt_prog_compiler_static=
  7588. ;;
  7589. hpux*)
  7590. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  7591. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  7592. # sets the default TLS model and affects inlining.
  7593. case $host_cpu in
  7594. hppa*64*)
  7595. # +Z the default
  7596. ;;
  7597. *)
  7598. lt_prog_compiler_pic='-fPIC'
  7599. ;;
  7600. esac
  7601. ;;
  7602. interix[3-9]*)
  7603. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  7604. # Instead, we relocate shared libraries at runtime.
  7605. ;;
  7606. msdosdjgpp*)
  7607. # Just because we use GCC doesn't mean we suddenly get shared libraries
  7608. # on systems that don't support them.
  7609. lt_prog_compiler_can_build_shared=no
  7610. enable_shared=no
  7611. ;;
  7612. *nto* | *qnx*)
  7613. # QNX uses GNU C++, but need to define -shared option too, otherwise
  7614. # it will coredump.
  7615. lt_prog_compiler_pic='-fPIC -shared'
  7616. ;;
  7617. sysv4*MP*)
  7618. if test -d /usr/nec; then
  7619. lt_prog_compiler_pic=-Kconform_pic
  7620. fi
  7621. ;;
  7622. *)
  7623. lt_prog_compiler_pic='-fPIC'
  7624. ;;
  7625. esac
  7626. case $cc_basename in
  7627. nvcc*) # Cuda Compiler Driver 2.2
  7628. lt_prog_compiler_wl='-Xlinker '
  7629. if test -n "$lt_prog_compiler_pic"; then
  7630. lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
  7631. fi
  7632. ;;
  7633. esac
  7634. else
  7635. # PORTME Check for flag to pass linker flags through the system compiler.
  7636. case $host_os in
  7637. aix*)
  7638. lt_prog_compiler_wl='-Wl,'
  7639. if test "$host_cpu" = ia64; then
  7640. # AIX 5 now supports IA64 processor
  7641. lt_prog_compiler_static='-Bstatic'
  7642. else
  7643. lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
  7644. fi
  7645. ;;
  7646. mingw* | cygwin* | pw32* | os2* | cegcc*)
  7647. # This hack is so that the source file can tell whether it is being
  7648. # built for inclusion in a dll (and should export symbols for example).
  7649. lt_prog_compiler_pic='-DDLL_EXPORT'
  7650. ;;
  7651. hpux9* | hpux10* | hpux11*)
  7652. lt_prog_compiler_wl='-Wl,'
  7653. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  7654. # not for PA HP-UX.
  7655. case $host_cpu in
  7656. hppa*64*|ia64*)
  7657. # +Z the default
  7658. ;;
  7659. *)
  7660. lt_prog_compiler_pic='+Z'
  7661. ;;
  7662. esac
  7663. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  7664. lt_prog_compiler_static='${wl}-a ${wl}archive'
  7665. ;;
  7666. irix5* | irix6* | nonstopux*)
  7667. lt_prog_compiler_wl='-Wl,'
  7668. # PIC (with -KPIC) is the default.
  7669. lt_prog_compiler_static='-non_shared'
  7670. ;;
  7671. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  7672. case $cc_basename in
  7673. # old Intel for x86_64 which still supported -KPIC.
  7674. ecc*)
  7675. lt_prog_compiler_wl='-Wl,'
  7676. lt_prog_compiler_pic='-KPIC'
  7677. lt_prog_compiler_static='-static'
  7678. ;;
  7679. # icc used to be incompatible with GCC.
  7680. # ICC 10 doesn't accept -KPIC any more.
  7681. icc* | ifort*)
  7682. lt_prog_compiler_wl='-Wl,'
  7683. lt_prog_compiler_pic='-fPIC'
  7684. lt_prog_compiler_static='-static'
  7685. ;;
  7686. # Lahey Fortran 8.1.
  7687. lf95*)
  7688. lt_prog_compiler_wl='-Wl,'
  7689. lt_prog_compiler_pic='--shared'
  7690. lt_prog_compiler_static='--static'
  7691. ;;
  7692. nagfor*)
  7693. # NAG Fortran compiler
  7694. lt_prog_compiler_wl='-Wl,-Wl,,'
  7695. lt_prog_compiler_pic='-PIC'
  7696. lt_prog_compiler_static='-Bstatic'
  7697. ;;
  7698. pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
  7699. # Portland Group compilers (*not* the Pentium gcc compiler,
  7700. # which looks to be a dead project)
  7701. lt_prog_compiler_wl='-Wl,'
  7702. lt_prog_compiler_pic='-fpic'
  7703. lt_prog_compiler_static='-Bstatic'
  7704. ;;
  7705. ccc*)
  7706. lt_prog_compiler_wl='-Wl,'
  7707. # All Alpha code is PIC.
  7708. lt_prog_compiler_static='-non_shared'
  7709. ;;
  7710. xl* | bgxl* | bgf* | mpixl*)
  7711. # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
  7712. lt_prog_compiler_wl='-Wl,'
  7713. lt_prog_compiler_pic='-qpic'
  7714. lt_prog_compiler_static='-qstaticlink'
  7715. ;;
  7716. *)
  7717. case `$CC -V 2>&1 | sed 5q` in
  7718. *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
  7719. # Sun Fortran 8.3 passes all unrecognized flags to the linker
  7720. lt_prog_compiler_pic='-KPIC'
  7721. lt_prog_compiler_static='-Bstatic'
  7722. lt_prog_compiler_wl=''
  7723. ;;
  7724. *Sun\ F* | *Sun*Fortran*)
  7725. lt_prog_compiler_pic='-KPIC'
  7726. lt_prog_compiler_static='-Bstatic'
  7727. lt_prog_compiler_wl='-Qoption ld '
  7728. ;;
  7729. *Sun\ C*)
  7730. # Sun C 5.9
  7731. lt_prog_compiler_pic='-KPIC'
  7732. lt_prog_compiler_static='-Bstatic'
  7733. lt_prog_compiler_wl='-Wl,'
  7734. ;;
  7735. *Intel*\ [CF]*Compiler*)
  7736. lt_prog_compiler_wl='-Wl,'
  7737. lt_prog_compiler_pic='-fPIC'
  7738. lt_prog_compiler_static='-static'
  7739. ;;
  7740. *Portland\ Group*)
  7741. lt_prog_compiler_wl='-Wl,'
  7742. lt_prog_compiler_pic='-fpic'
  7743. lt_prog_compiler_static='-Bstatic'
  7744. ;;
  7745. esac
  7746. ;;
  7747. esac
  7748. ;;
  7749. newsos6)
  7750. lt_prog_compiler_pic='-KPIC'
  7751. lt_prog_compiler_static='-Bstatic'
  7752. ;;
  7753. *nto* | *qnx*)
  7754. # QNX uses GNU C++, but need to define -shared option too, otherwise
  7755. # it will coredump.
  7756. lt_prog_compiler_pic='-fPIC -shared'
  7757. ;;
  7758. osf3* | osf4* | osf5*)
  7759. lt_prog_compiler_wl='-Wl,'
  7760. # All OSF/1 code is PIC.
  7761. lt_prog_compiler_static='-non_shared'
  7762. ;;
  7763. rdos*)
  7764. lt_prog_compiler_static='-non_shared'
  7765. ;;
  7766. solaris*)
  7767. lt_prog_compiler_pic='-KPIC'
  7768. lt_prog_compiler_static='-Bstatic'
  7769. case $cc_basename in
  7770. f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
  7771. lt_prog_compiler_wl='-Qoption ld ';;
  7772. *)
  7773. lt_prog_compiler_wl='-Wl,';;
  7774. esac
  7775. ;;
  7776. sunos4*)
  7777. lt_prog_compiler_wl='-Qoption ld '
  7778. lt_prog_compiler_pic='-PIC'
  7779. lt_prog_compiler_static='-Bstatic'
  7780. ;;
  7781. sysv4 | sysv4.2uw2* | sysv4.3*)
  7782. lt_prog_compiler_wl='-Wl,'
  7783. lt_prog_compiler_pic='-KPIC'
  7784. lt_prog_compiler_static='-Bstatic'
  7785. ;;
  7786. sysv4*MP*)
  7787. if test -d /usr/nec ;then
  7788. lt_prog_compiler_pic='-Kconform_pic'
  7789. lt_prog_compiler_static='-Bstatic'
  7790. fi
  7791. ;;
  7792. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  7793. lt_prog_compiler_wl='-Wl,'
  7794. lt_prog_compiler_pic='-KPIC'
  7795. lt_prog_compiler_static='-Bstatic'
  7796. ;;
  7797. unicos*)
  7798. lt_prog_compiler_wl='-Wl,'
  7799. lt_prog_compiler_can_build_shared=no
  7800. ;;
  7801. uts4*)
  7802. lt_prog_compiler_pic='-pic'
  7803. lt_prog_compiler_static='-Bstatic'
  7804. ;;
  7805. *)
  7806. lt_prog_compiler_can_build_shared=no
  7807. ;;
  7808. esac
  7809. fi
  7810. case $host_os in
  7811. # For platforms which do not support PIC, -DPIC is meaningless:
  7812. *djgpp*)
  7813. lt_prog_compiler_pic=
  7814. ;;
  7815. *)
  7816. lt_prog_compiler_pic="$lt_prog_compiler_pic@&t@ -DPIC"
  7817. ;;
  7818. esac
  7819. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  7820. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  7821. if ${lt_cv_prog_compiler_pic+:} false; then :
  7822. $as_echo_n "(cached) " >&6
  7823. else
  7824. lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
  7825. fi
  7826. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
  7827. $as_echo "$lt_cv_prog_compiler_pic" >&6; }
  7828. lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
  7829. #
  7830. # Check to make sure the PIC flag actually works.
  7831. #
  7832. if test -n "$lt_prog_compiler_pic"; then
  7833. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
  7834. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
  7835. if ${lt_cv_prog_compiler_pic_works+:} false; then :
  7836. $as_echo_n "(cached) " >&6
  7837. else
  7838. lt_cv_prog_compiler_pic_works=no
  7839. ac_outfile=conftest.$ac_objext
  7840. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7841. lt_compiler_flag="$lt_prog_compiler_pic@&t@ -DPIC"
  7842. # Insert the option either (1) after the last *FLAGS variable, or
  7843. # (2) before a word containing "conftest.", or (3) at the end.
  7844. # Note that $ac_compile itself does not contain backslashes and begins
  7845. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7846. # The option is referenced via a variable to avoid confusing sed.
  7847. lt_compile=`echo "$ac_compile" | $SED \
  7848. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7849. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7850. -e 's:$: $lt_compiler_flag:'`
  7851. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7852. (eval "$lt_compile" 2>conftest.err)
  7853. ac_status=$?
  7854. cat conftest.err >&5
  7855. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7856. if (exit $ac_status) && test -s "$ac_outfile"; then
  7857. # The compiler can only warn and ignore the option if not recognized
  7858. # So say no if there are warnings other than the usual output.
  7859. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  7860. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7861. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  7862. lt_cv_prog_compiler_pic_works=yes
  7863. fi
  7864. fi
  7865. $RM conftest*
  7866. fi
  7867. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
  7868. $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
  7869. if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
  7870. case $lt_prog_compiler_pic in
  7871. "" | " "*) ;;
  7872. *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
  7873. esac
  7874. else
  7875. lt_prog_compiler_pic=
  7876. lt_prog_compiler_can_build_shared=no
  7877. fi
  7878. fi
  7879. #
  7880. # Check to make sure the static flag actually works.
  7881. #
  7882. wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
  7883. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  7884. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  7885. if ${lt_cv_prog_compiler_static_works+:} false; then :
  7886. $as_echo_n "(cached) " >&6
  7887. else
  7888. lt_cv_prog_compiler_static_works=no
  7889. save_LDFLAGS="$LDFLAGS"
  7890. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  7891. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  7892. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  7893. # The linker can only warn and ignore the option if not recognized
  7894. # So say no if there are warnings
  7895. if test -s conftest.err; then
  7896. # Append any errors to the config.log.
  7897. cat conftest.err 1>&5
  7898. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  7899. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7900. if diff conftest.exp conftest.er2 >/dev/null; then
  7901. lt_cv_prog_compiler_static_works=yes
  7902. fi
  7903. else
  7904. lt_cv_prog_compiler_static_works=yes
  7905. fi
  7906. fi
  7907. $RM -r conftest*
  7908. LDFLAGS="$save_LDFLAGS"
  7909. fi
  7910. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
  7911. $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
  7912. if test x"$lt_cv_prog_compiler_static_works" = xyes; then
  7913. :
  7914. else
  7915. lt_prog_compiler_static=
  7916. fi
  7917. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  7918. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  7919. if ${lt_cv_prog_compiler_c_o+:} false; then :
  7920. $as_echo_n "(cached) " >&6
  7921. else
  7922. lt_cv_prog_compiler_c_o=no
  7923. $RM -r conftest 2>/dev/null
  7924. mkdir conftest
  7925. cd conftest
  7926. mkdir out
  7927. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7928. lt_compiler_flag="-o out/conftest2.$ac_objext"
  7929. # Insert the option either (1) after the last *FLAGS variable, or
  7930. # (2) before a word containing "conftest.", or (3) at the end.
  7931. # Note that $ac_compile itself does not contain backslashes and begins
  7932. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7933. lt_compile=`echo "$ac_compile" | $SED \
  7934. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7935. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7936. -e 's:$: $lt_compiler_flag:'`
  7937. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7938. (eval "$lt_compile" 2>out/conftest.err)
  7939. ac_status=$?
  7940. cat out/conftest.err >&5
  7941. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7942. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  7943. then
  7944. # The compiler can only warn and ignore the option if not recognized
  7945. # So say no if there are warnings
  7946. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  7947. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  7948. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  7949. lt_cv_prog_compiler_c_o=yes
  7950. fi
  7951. fi
  7952. chmod u+w . 2>&5
  7953. $RM conftest*
  7954. # SGI C++ compiler will create directory out/ii_files/ for
  7955. # template instantiation
  7956. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  7957. $RM out/* && rmdir out
  7958. cd ..
  7959. $RM -r conftest
  7960. $RM conftest*
  7961. fi
  7962. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  7963. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  7964. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  7965. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  7966. if ${lt_cv_prog_compiler_c_o+:} false; then :
  7967. $as_echo_n "(cached) " >&6
  7968. else
  7969. lt_cv_prog_compiler_c_o=no
  7970. $RM -r conftest 2>/dev/null
  7971. mkdir conftest
  7972. cd conftest
  7973. mkdir out
  7974. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7975. lt_compiler_flag="-o out/conftest2.$ac_objext"
  7976. # Insert the option either (1) after the last *FLAGS variable, or
  7977. # (2) before a word containing "conftest.", or (3) at the end.
  7978. # Note that $ac_compile itself does not contain backslashes and begins
  7979. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7980. lt_compile=`echo "$ac_compile" | $SED \
  7981. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7982. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7983. -e 's:$: $lt_compiler_flag:'`
  7984. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7985. (eval "$lt_compile" 2>out/conftest.err)
  7986. ac_status=$?
  7987. cat out/conftest.err >&5
  7988. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7989. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  7990. then
  7991. # The compiler can only warn and ignore the option if not recognized
  7992. # So say no if there are warnings
  7993. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  7994. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  7995. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  7996. lt_cv_prog_compiler_c_o=yes
  7997. fi
  7998. fi
  7999. chmod u+w . 2>&5
  8000. $RM conftest*
  8001. # SGI C++ compiler will create directory out/ii_files/ for
  8002. # template instantiation
  8003. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  8004. $RM out/* && rmdir out
  8005. cd ..
  8006. $RM -r conftest
  8007. $RM conftest*
  8008. fi
  8009. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  8010. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  8011. hard_links="nottested"
  8012. if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
  8013. # do not overwrite the value of need_locks provided by the user
  8014. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  8015. $as_echo_n "checking if we can lock with hard links... " >&6; }
  8016. hard_links=yes
  8017. $RM conftest*
  8018. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  8019. touch conftest.a
  8020. ln conftest.a conftest.b 2>&5 || hard_links=no
  8021. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  8022. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  8023. $as_echo "$hard_links" >&6; }
  8024. if test "$hard_links" = no; then
  8025. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  8026. $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  8027. need_locks=warn
  8028. fi
  8029. else
  8030. need_locks=no
  8031. fi
  8032. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  8033. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  8034. runpath_var=
  8035. allow_undefined_flag=
  8036. always_export_symbols=no
  8037. archive_cmds=
  8038. archive_expsym_cmds=
  8039. compiler_needs_object=no
  8040. enable_shared_with_static_runtimes=no
  8041. export_dynamic_flag_spec=
  8042. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  8043. hardcode_automatic=no
  8044. hardcode_direct=no
  8045. hardcode_direct_absolute=no
  8046. hardcode_libdir_flag_spec=
  8047. hardcode_libdir_separator=
  8048. hardcode_minus_L=no
  8049. hardcode_shlibpath_var=unsupported
  8050. inherit_rpath=no
  8051. link_all_deplibs=unknown
  8052. module_cmds=
  8053. module_expsym_cmds=
  8054. old_archive_from_new_cmds=
  8055. old_archive_from_expsyms_cmds=
  8056. thread_safe_flag_spec=
  8057. whole_archive_flag_spec=
  8058. # include_expsyms should be a list of space-separated symbols to be *always*
  8059. # included in the symbol list
  8060. include_expsyms=
  8061. # exclude_expsyms can be an extended regexp of symbols to exclude
  8062. # it will be wrapped by ` (' and `)$', so one must not match beginning or
  8063. # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  8064. # as well as any symbol that contains `d'.
  8065. exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  8066. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  8067. # platforms (ab)use it in PIC code, but their linkers get confused if
  8068. # the symbol is explicitly referenced. Since portable code cannot
  8069. # rely on this symbol name, it's probably fine to never include it in
  8070. # preloaded symbol tables.
  8071. # Exclude shared library initialization/finalization symbols.
  8072. extract_expsyms_cmds=
  8073. case $host_os in
  8074. cygwin* | mingw* | pw32* | cegcc*)
  8075. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  8076. # When not using gcc, we currently assume that we are using
  8077. # Microsoft Visual C++.
  8078. if test "$GCC" != yes; then
  8079. with_gnu_ld=no
  8080. fi
  8081. ;;
  8082. interix*)
  8083. # we just hope/assume this is gcc and not c89 (= MSVC++)
  8084. with_gnu_ld=yes
  8085. ;;
  8086. openbsd*)
  8087. with_gnu_ld=no
  8088. ;;
  8089. linux* | k*bsd*-gnu | gnu*)
  8090. link_all_deplibs=no
  8091. ;;
  8092. esac
  8093. ld_shlibs=yes
  8094. # On some targets, GNU ld is compatible enough with the native linker
  8095. # that we're better off using the native interface for both.
  8096. lt_use_gnu_ld_interface=no
  8097. if test "$with_gnu_ld" = yes; then
  8098. case $host_os in
  8099. aix*)
  8100. # The AIX port of GNU ld has always aspired to compatibility
  8101. # with the native linker. However, as the warning in the GNU ld
  8102. # block says, versions before 2.19.5* couldn't really create working
  8103. # shared libraries, regardless of the interface used.
  8104. case `$LD -v 2>&1` in
  8105. *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
  8106. *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
  8107. *\ \(GNU\ Binutils\)\ [3-9]*) ;;
  8108. *)
  8109. lt_use_gnu_ld_interface=yes
  8110. ;;
  8111. esac
  8112. ;;
  8113. *)
  8114. lt_use_gnu_ld_interface=yes
  8115. ;;
  8116. esac
  8117. fi
  8118. if test "$lt_use_gnu_ld_interface" = yes; then
  8119. # If archive_cmds runs LD, not CC, wlarc should be empty
  8120. wlarc='${wl}'
  8121. # Set some defaults for GNU ld with shared library support. These
  8122. # are reset later if shared libraries are not supported. Putting them
  8123. # here allows them to be overridden if necessary.
  8124. runpath_var=LD_RUN_PATH
  8125. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8126. export_dynamic_flag_spec='${wl}--export-dynamic'
  8127. # ancient GNU ld didn't support --whole-archive et. al.
  8128. if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
  8129. whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  8130. else
  8131. whole_archive_flag_spec=
  8132. fi
  8133. supports_anon_versioning=no
  8134. case `$LD -v 2>&1` in
  8135. *GNU\ gold*) supports_anon_versioning=yes ;;
  8136. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  8137. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  8138. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  8139. *\ 2.11.*) ;; # other 2.11 versions
  8140. *) supports_anon_versioning=yes ;;
  8141. esac
  8142. # See if GNU ld supports shared libraries.
  8143. case $host_os in
  8144. aix[3-9]*)
  8145. # On AIX/PPC, the GNU linker is very broken
  8146. if test "$host_cpu" != ia64; then
  8147. ld_shlibs=no
  8148. cat <<_LT_EOF 1>&2
  8149. *** Warning: the GNU linker, at least up to release 2.19, is reported
  8150. *** to be unable to reliably create shared libraries on AIX.
  8151. *** Therefore, libtool is disabling shared libraries support. If you
  8152. *** really care for shared libraries, you may want to install binutils
  8153. *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
  8154. *** You will then need to restart the configuration process.
  8155. _LT_EOF
  8156. fi
  8157. ;;
  8158. amigaos*)
  8159. case $host_cpu in
  8160. powerpc)
  8161. # see comment about AmigaOS4 .so support
  8162. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8163. archive_expsym_cmds=''
  8164. ;;
  8165. m68k)
  8166. archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
  8167. hardcode_libdir_flag_spec='-L$libdir'
  8168. hardcode_minus_L=yes
  8169. ;;
  8170. esac
  8171. ;;
  8172. beos*)
  8173. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8174. allow_undefined_flag=unsupported
  8175. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  8176. # support --undefined. This deserves some investigation. FIXME
  8177. archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8178. else
  8179. ld_shlibs=no
  8180. fi
  8181. ;;
  8182. cygwin* | mingw* | pw32* | cegcc*)
  8183. # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
  8184. # as there is no search path for DLLs.
  8185. hardcode_libdir_flag_spec='-L$libdir'
  8186. export_dynamic_flag_spec='${wl}--export-all-symbols'
  8187. allow_undefined_flag=unsupported
  8188. always_export_symbols=no
  8189. enable_shared_with_static_runtimes=yes
  8190. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
  8191. exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
  8192. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  8193. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  8194. # If the export-symbols file already is a .def file (1st line
  8195. # is EXPORTS), use it as is; otherwise, prepend...
  8196. archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  8197. cp $export_symbols $output_objdir/$soname.def;
  8198. else
  8199. echo EXPORTS > $output_objdir/$soname.def;
  8200. cat $export_symbols >> $output_objdir/$soname.def;
  8201. fi~
  8202. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  8203. else
  8204. ld_shlibs=no
  8205. fi
  8206. ;;
  8207. haiku*)
  8208. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8209. link_all_deplibs=yes
  8210. ;;
  8211. interix[3-9]*)
  8212. hardcode_direct=no
  8213. hardcode_shlibpath_var=no
  8214. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  8215. export_dynamic_flag_spec='${wl}-E'
  8216. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  8217. # Instead, shared libraries are loaded at an image base (0x10000000 by
  8218. # default) and relocated if they conflict, which is a slow very memory
  8219. # consuming and fragmenting process. To avoid this, we pick a random,
  8220. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  8221. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  8222. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  8223. archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  8224. ;;
  8225. gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
  8226. tmp_diet=no
  8227. if test "$host_os" = linux-dietlibc; then
  8228. case $cc_basename in
  8229. diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
  8230. esac
  8231. fi
  8232. if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
  8233. && test "$tmp_diet" = no
  8234. then
  8235. tmp_addflag=' $pic_flag'
  8236. tmp_sharedflag='-shared'
  8237. case $cc_basename,$host_cpu in
  8238. pgcc*) # Portland Group C compiler
  8239. whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
  8240. tmp_addflag=' $pic_flag'
  8241. ;;
  8242. pgf77* | pgf90* | pgf95* | pgfortran*)
  8243. # Portland Group f77 and f90 compilers
  8244. whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
  8245. tmp_addflag=' $pic_flag -Mnomain' ;;
  8246. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  8247. tmp_addflag=' -i_dynamic' ;;
  8248. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  8249. tmp_addflag=' -i_dynamic -nofor_main' ;;
  8250. ifc* | ifort*) # Intel Fortran compiler
  8251. tmp_addflag=' -nofor_main' ;;
  8252. lf95*) # Lahey Fortran 8.1
  8253. whole_archive_flag_spec=
  8254. tmp_sharedflag='--shared' ;;
  8255. xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
  8256. tmp_sharedflag='-qmkshrobj'
  8257. tmp_addflag= ;;
  8258. nvcc*) # Cuda Compiler Driver 2.2
  8259. whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
  8260. compiler_needs_object=yes
  8261. ;;
  8262. esac
  8263. case `$CC -V 2>&1 | sed 5q` in
  8264. *Sun\ C*) # Sun C 5.9
  8265. whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
  8266. compiler_needs_object=yes
  8267. tmp_sharedflag='-G' ;;
  8268. *Sun\ F*) # Sun Fortran 8.3
  8269. tmp_sharedflag='-G' ;;
  8270. esac
  8271. archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8272. if test "x$supports_anon_versioning" = xyes; then
  8273. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  8274. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  8275. echo "local: *; };" >> $output_objdir/$libname.ver~
  8276. $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  8277. fi
  8278. case $cc_basename in
  8279. xlf* | bgf* | bgxlf* | mpixlf*)
  8280. # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
  8281. whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
  8282. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8283. archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
  8284. if test "x$supports_anon_versioning" = xyes; then
  8285. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  8286. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  8287. echo "local: *; };" >> $output_objdir/$libname.ver~
  8288. $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
  8289. fi
  8290. ;;
  8291. esac
  8292. else
  8293. ld_shlibs=no
  8294. fi
  8295. ;;
  8296. netbsd* | netbsdelf*-gnu)
  8297. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  8298. archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  8299. wlarc=
  8300. else
  8301. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8302. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  8303. fi
  8304. ;;
  8305. solaris*)
  8306. if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
  8307. ld_shlibs=no
  8308. cat <<_LT_EOF 1>&2
  8309. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  8310. *** create shared libraries on Solaris systems. Therefore, libtool
  8311. *** is disabling shared libraries support. We urge you to upgrade GNU
  8312. *** binutils to release 2.9.1 or newer. Another option is to modify
  8313. *** your PATH or compiler configuration so that the native linker is
  8314. *** used, and then restart.
  8315. _LT_EOF
  8316. elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8317. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8318. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  8319. else
  8320. ld_shlibs=no
  8321. fi
  8322. ;;
  8323. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  8324. case `$LD -v 2>&1` in
  8325. *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  8326. ld_shlibs=no
  8327. cat <<_LT_EOF 1>&2
  8328. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  8329. *** reliably create shared libraries on SCO systems. Therefore, libtool
  8330. *** is disabling shared libraries support. We urge you to upgrade GNU
  8331. *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  8332. *** your PATH or compiler configuration so that the native linker is
  8333. *** used, and then restart.
  8334. _LT_EOF
  8335. ;;
  8336. *)
  8337. # For security reasons, it is highly recommended that you always
  8338. # use absolute paths for naming shared libraries, and exclude the
  8339. # DT_RUNPATH tag from executables and libraries. But doing so
  8340. # requires that you compile everything twice, which is a pain.
  8341. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8342. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8343. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8344. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  8345. else
  8346. ld_shlibs=no
  8347. fi
  8348. ;;
  8349. esac
  8350. ;;
  8351. sunos4*)
  8352. archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8353. wlarc=
  8354. hardcode_direct=yes
  8355. hardcode_shlibpath_var=no
  8356. ;;
  8357. *)
  8358. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8359. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8360. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  8361. else
  8362. ld_shlibs=no
  8363. fi
  8364. ;;
  8365. esac
  8366. if test "$ld_shlibs" = no; then
  8367. runpath_var=
  8368. hardcode_libdir_flag_spec=
  8369. export_dynamic_flag_spec=
  8370. whole_archive_flag_spec=
  8371. fi
  8372. else
  8373. # PORTME fill in a description of your system's linker (not GNU ld)
  8374. case $host_os in
  8375. aix3*)
  8376. allow_undefined_flag=unsupported
  8377. always_export_symbols=yes
  8378. archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
  8379. # Note: this linker hardcodes the directories in LIBPATH if there
  8380. # are no directories specified by -L.
  8381. hardcode_minus_L=yes
  8382. if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  8383. # Neither direct hardcoding nor static linking is supported with a
  8384. # broken collect2.
  8385. hardcode_direct=unsupported
  8386. fi
  8387. ;;
  8388. aix[4-9]*)
  8389. if test "$host_cpu" = ia64; then
  8390. # On IA64, the linker does run time linking by default, so we don't
  8391. # have to do anything special.
  8392. aix_use_runtimelinking=no
  8393. exp_sym_flag='-Bexport'
  8394. no_entry_flag=""
  8395. else
  8396. # If we're using GNU nm, then we don't want the "-C" option.
  8397. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  8398. # Also, AIX nm treats weak defined symbols like other global
  8399. # defined symbols, whereas GNU nm marks them as "W".
  8400. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  8401. export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
  8402. else
  8403. export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
  8404. fi
  8405. aix_use_runtimelinking=no
  8406. # Test if we are trying to use run time linking or normal
  8407. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  8408. # need to do runtime linking.
  8409. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  8410. for ld_flag in $LDFLAGS; do
  8411. if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  8412. aix_use_runtimelinking=yes
  8413. break
  8414. fi
  8415. done
  8416. ;;
  8417. esac
  8418. exp_sym_flag='-bexport'
  8419. no_entry_flag='-bnoentry'
  8420. fi
  8421. # When large executables or shared objects are built, AIX ld can
  8422. # have problems creating the table of contents. If linking a library
  8423. # or program results in "error TOC overflow" add -mminimal-toc to
  8424. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  8425. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  8426. archive_cmds=''
  8427. hardcode_direct=yes
  8428. hardcode_direct_absolute=yes
  8429. hardcode_libdir_separator=':'
  8430. link_all_deplibs=yes
  8431. file_list_spec='${wl}-f,'
  8432. if test "$GCC" = yes; then
  8433. case $host_os in aix4.[012]|aix4.[012].*)
  8434. # We only want to do this on AIX 4.2 and lower, the check
  8435. # below for broken collect2 doesn't work under 4.3+
  8436. collect2name=`${CC} -print-prog-name=collect2`
  8437. if test -f "$collect2name" &&
  8438. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  8439. then
  8440. # We have reworked collect2
  8441. :
  8442. else
  8443. # We have old collect2
  8444. hardcode_direct=unsupported
  8445. # It fails to find uninstalled libraries when the uninstalled
  8446. # path is not listed in the libpath. Setting hardcode_minus_L
  8447. # to unsupported forces relinking
  8448. hardcode_minus_L=yes
  8449. hardcode_libdir_flag_spec='-L$libdir'
  8450. hardcode_libdir_separator=
  8451. fi
  8452. ;;
  8453. esac
  8454. shared_flag='-shared'
  8455. if test "$aix_use_runtimelinking" = yes; then
  8456. shared_flag="$shared_flag "'${wl}-G'
  8457. fi
  8458. link_all_deplibs=no
  8459. else
  8460. # not using gcc
  8461. if test "$host_cpu" = ia64; then
  8462. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  8463. # chokes on -Wl,-G. The following line is correct:
  8464. shared_flag='-G'
  8465. else
  8466. if test "$aix_use_runtimelinking" = yes; then
  8467. shared_flag='${wl}-G'
  8468. else
  8469. shared_flag='${wl}-bM:SRE'
  8470. fi
  8471. fi
  8472. fi
  8473. export_dynamic_flag_spec='${wl}-bexpall'
  8474. # It seems that -bexpall does not export symbols beginning with
  8475. # underscore (_), so it is better to generate a list of symbols to export.
  8476. always_export_symbols=yes
  8477. if test "$aix_use_runtimelinking" = yes; then
  8478. # Warning - without using the other runtime loading flags (-brtl),
  8479. # -berok will link without error, but may produce a broken library.
  8480. allow_undefined_flag='-berok'
  8481. # Determine the default libpath from the value encoded in an
  8482. # empty executable.
  8483. if test "${lt_cv_aix_libpath+set}" = set; then
  8484. aix_libpath=$lt_cv_aix_libpath
  8485. else
  8486. if ${lt_cv_aix_libpath_+:} false; then :
  8487. $as_echo_n "(cached) " >&6
  8488. else
  8489. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8490. /* end confdefs.h. */
  8491. int
  8492. main ()
  8493. {
  8494. ;
  8495. return 0;
  8496. }
  8497. _ACEOF
  8498. if ac_fn_c_try_link "$LINENO"; then :
  8499. lt_aix_libpath_sed='
  8500. /Import File Strings/,/^$/ {
  8501. /^0/ {
  8502. s/^0 *\([^ ]*\) *$/\1/
  8503. p
  8504. }
  8505. }'
  8506. lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8507. # Check for a 64-bit object if we didn't find anything.
  8508. if test -z "$lt_cv_aix_libpath_"; then
  8509. lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8510. fi
  8511. fi
  8512. rm -f core conftest.err conftest.$ac_objext \
  8513. conftest$ac_exeext conftest.$ac_ext
  8514. if test -z "$lt_cv_aix_libpath_"; then
  8515. lt_cv_aix_libpath_="/usr/lib:/lib"
  8516. fi
  8517. fi
  8518. aix_libpath=$lt_cv_aix_libpath_
  8519. fi
  8520. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  8521. archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
  8522. else
  8523. if test "$host_cpu" = ia64; then
  8524. hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
  8525. allow_undefined_flag="-z nodefs"
  8526. 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"
  8527. else
  8528. # Determine the default libpath from the value encoded in an
  8529. # empty executable.
  8530. if test "${lt_cv_aix_libpath+set}" = set; then
  8531. aix_libpath=$lt_cv_aix_libpath
  8532. else
  8533. if ${lt_cv_aix_libpath_+:} false; then :
  8534. $as_echo_n "(cached) " >&6
  8535. else
  8536. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8537. /* end confdefs.h. */
  8538. int
  8539. main ()
  8540. {
  8541. ;
  8542. return 0;
  8543. }
  8544. _ACEOF
  8545. if ac_fn_c_try_link "$LINENO"; then :
  8546. lt_aix_libpath_sed='
  8547. /Import File Strings/,/^$/ {
  8548. /^0/ {
  8549. s/^0 *\([^ ]*\) *$/\1/
  8550. p
  8551. }
  8552. }'
  8553. lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8554. # Check for a 64-bit object if we didn't find anything.
  8555. if test -z "$lt_cv_aix_libpath_"; then
  8556. lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8557. fi
  8558. fi
  8559. rm -f core conftest.err conftest.$ac_objext \
  8560. conftest$ac_exeext conftest.$ac_ext
  8561. if test -z "$lt_cv_aix_libpath_"; then
  8562. lt_cv_aix_libpath_="/usr/lib:/lib"
  8563. fi
  8564. fi
  8565. aix_libpath=$lt_cv_aix_libpath_
  8566. fi
  8567. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  8568. # Warning - without using the other run time loading flags,
  8569. # -berok will link without error, but may produce a broken library.
  8570. no_undefined_flag=' ${wl}-bernotok'
  8571. allow_undefined_flag=' ${wl}-berok'
  8572. if test "$with_gnu_ld" = yes; then
  8573. # We only use this code for GNU lds that support --whole-archive.
  8574. whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  8575. else
  8576. # Exported symbols can be pulled into shared objects from archives
  8577. whole_archive_flag_spec='$convenience'
  8578. fi
  8579. archive_cmds_need_lc=yes
  8580. # This is similar to how AIX traditionally builds its shared libraries.
  8581. 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'
  8582. fi
  8583. fi
  8584. ;;
  8585. amigaos*)
  8586. case $host_cpu in
  8587. powerpc)
  8588. # see comment about AmigaOS4 .so support
  8589. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8590. archive_expsym_cmds=''
  8591. ;;
  8592. m68k)
  8593. 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)'
  8594. hardcode_libdir_flag_spec='-L$libdir'
  8595. hardcode_minus_L=yes
  8596. ;;
  8597. esac
  8598. ;;
  8599. bsdi[45]*)
  8600. export_dynamic_flag_spec=-rdynamic
  8601. ;;
  8602. cygwin* | mingw* | pw32* | cegcc*)
  8603. # When not using gcc, we currently assume that we are using
  8604. # Microsoft Visual C++.
  8605. # hardcode_libdir_flag_spec is actually meaningless, as there is
  8606. # no search path for DLLs.
  8607. case $cc_basename in
  8608. cl*)
  8609. # Native MSVC
  8610. hardcode_libdir_flag_spec=' '
  8611. allow_undefined_flag=unsupported
  8612. always_export_symbols=yes
  8613. file_list_spec='@'
  8614. # Tell ltmain to make .lib files, not .a files.
  8615. libext=lib
  8616. # Tell ltmain to make .dll files, not .so files.
  8617. shrext_cmds=".dll"
  8618. # FIXME: Setting linknames here is a bad hack.
  8619. archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
  8620. archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  8621. sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
  8622. else
  8623. sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
  8624. fi~
  8625. $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
  8626. linknames='
  8627. # The linker will not automatically build a static lib if we build a DLL.
  8628. # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
  8629. enable_shared_with_static_runtimes=yes
  8630. exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
  8631. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
  8632. # Don't use ranlib
  8633. old_postinstall_cmds='chmod 644 $oldlib'
  8634. postlink_cmds='lt_outputfile="@OUTPUT@"~
  8635. lt_tool_outputfile="@TOOL_OUTPUT@"~
  8636. case $lt_outputfile in
  8637. *.exe|*.EXE) ;;
  8638. *)
  8639. lt_outputfile="$lt_outputfile.exe"
  8640. lt_tool_outputfile="$lt_tool_outputfile.exe"
  8641. ;;
  8642. esac~
  8643. if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
  8644. $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
  8645. $RM "$lt_outputfile.manifest";
  8646. fi'
  8647. ;;
  8648. *)
  8649. # Assume MSVC wrapper
  8650. hardcode_libdir_flag_spec=' '
  8651. allow_undefined_flag=unsupported
  8652. # Tell ltmain to make .lib files, not .a files.
  8653. libext=lib
  8654. # Tell ltmain to make .dll files, not .so files.
  8655. shrext_cmds=".dll"
  8656. # FIXME: Setting linknames here is a bad hack.
  8657. archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
  8658. # The linker will automatically build a .lib file if we build a DLL.
  8659. old_archive_from_new_cmds='true'
  8660. # FIXME: Should let the user specify the lib program.
  8661. old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
  8662. enable_shared_with_static_runtimes=yes
  8663. ;;
  8664. esac
  8665. ;;
  8666. darwin* | rhapsody*)
  8667. archive_cmds_need_lc=no
  8668. hardcode_direct=no
  8669. hardcode_automatic=yes
  8670. hardcode_shlibpath_var=unsupported
  8671. if test "$lt_cv_ld_force_load" = "yes"; then
  8672. whole_archive_flag_spec='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
  8673. else
  8674. whole_archive_flag_spec=''
  8675. fi
  8676. link_all_deplibs=yes
  8677. allow_undefined_flag="$_lt_dar_allow_undefined"
  8678. case $cc_basename in
  8679. ifort*) _lt_dar_can_shared=yes ;;
  8680. *) _lt_dar_can_shared=$GCC ;;
  8681. esac
  8682. if test "$_lt_dar_can_shared" = "yes"; then
  8683. output_verbose_link_cmd=func_echo_all
  8684. archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
  8685. module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  8686. 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}"
  8687. 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}"
  8688. else
  8689. ld_shlibs=no
  8690. fi
  8691. ;;
  8692. dgux*)
  8693. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8694. hardcode_libdir_flag_spec='-L$libdir'
  8695. hardcode_shlibpath_var=no
  8696. ;;
  8697. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  8698. # support. Future versions do this automatically, but an explicit c++rt0.o
  8699. # does not break anything, and helps significantly (at the cost of a little
  8700. # extra space).
  8701. freebsd2.2*)
  8702. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  8703. hardcode_libdir_flag_spec='-R$libdir'
  8704. hardcode_direct=yes
  8705. hardcode_shlibpath_var=no
  8706. ;;
  8707. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  8708. freebsd2.*)
  8709. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8710. hardcode_direct=yes
  8711. hardcode_minus_L=yes
  8712. hardcode_shlibpath_var=no
  8713. ;;
  8714. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  8715. freebsd* | dragonfly*)
  8716. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8717. hardcode_libdir_flag_spec='-R$libdir'
  8718. hardcode_direct=yes
  8719. hardcode_shlibpath_var=no
  8720. ;;
  8721. hpux9*)
  8722. if test "$GCC" = yes; then
  8723. archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  8724. else
  8725. 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'
  8726. fi
  8727. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8728. hardcode_libdir_separator=:
  8729. hardcode_direct=yes
  8730. # hardcode_minus_L: Not really in the search PATH,
  8731. # but as the default location of the library.
  8732. hardcode_minus_L=yes
  8733. export_dynamic_flag_spec='${wl}-E'
  8734. ;;
  8735. hpux10*)
  8736. if test "$GCC" = yes && test "$with_gnu_ld" = no; then
  8737. archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8738. else
  8739. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  8740. fi
  8741. if test "$with_gnu_ld" = no; then
  8742. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8743. hardcode_libdir_separator=:
  8744. hardcode_direct=yes
  8745. hardcode_direct_absolute=yes
  8746. export_dynamic_flag_spec='${wl}-E'
  8747. # hardcode_minus_L: Not really in the search PATH,
  8748. # but as the default location of the library.
  8749. hardcode_minus_L=yes
  8750. fi
  8751. ;;
  8752. hpux11*)
  8753. if test "$GCC" = yes && test "$with_gnu_ld" = no; then
  8754. case $host_cpu in
  8755. hppa*64*)
  8756. archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8757. ;;
  8758. ia64*)
  8759. archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  8760. ;;
  8761. *)
  8762. archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8763. ;;
  8764. esac
  8765. else
  8766. case $host_cpu in
  8767. hppa*64*)
  8768. archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8769. ;;
  8770. ia64*)
  8771. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  8772. ;;
  8773. *)
  8774. # Older versions of the 11.00 compiler do not understand -b yet
  8775. # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
  8776. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
  8777. $as_echo_n "checking if $CC understands -b... " >&6; }
  8778. if ${lt_cv_prog_compiler__b+:} false; then :
  8779. $as_echo_n "(cached) " >&6
  8780. else
  8781. lt_cv_prog_compiler__b=no
  8782. save_LDFLAGS="$LDFLAGS"
  8783. LDFLAGS="$LDFLAGS -b"
  8784. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  8785. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  8786. # The linker can only warn and ignore the option if not recognized
  8787. # So say no if there are warnings
  8788. if test -s conftest.err; then
  8789. # Append any errors to the config.log.
  8790. cat conftest.err 1>&5
  8791. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  8792. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  8793. if diff conftest.exp conftest.er2 >/dev/null; then
  8794. lt_cv_prog_compiler__b=yes
  8795. fi
  8796. else
  8797. lt_cv_prog_compiler__b=yes
  8798. fi
  8799. fi
  8800. $RM -r conftest*
  8801. LDFLAGS="$save_LDFLAGS"
  8802. fi
  8803. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
  8804. $as_echo "$lt_cv_prog_compiler__b" >&6; }
  8805. if test x"$lt_cv_prog_compiler__b" = xyes; then
  8806. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8807. else
  8808. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  8809. fi
  8810. ;;
  8811. esac
  8812. fi
  8813. if test "$with_gnu_ld" = no; then
  8814. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8815. hardcode_libdir_separator=:
  8816. case $host_cpu in
  8817. hppa*64*|ia64*)
  8818. hardcode_direct=no
  8819. hardcode_shlibpath_var=no
  8820. ;;
  8821. *)
  8822. hardcode_direct=yes
  8823. hardcode_direct_absolute=yes
  8824. export_dynamic_flag_spec='${wl}-E'
  8825. # hardcode_minus_L: Not really in the search PATH,
  8826. # but as the default location of the library.
  8827. hardcode_minus_L=yes
  8828. ;;
  8829. esac
  8830. fi
  8831. ;;
  8832. irix5* | irix6* | nonstopux*)
  8833. if test "$GCC" = yes; then
  8834. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  8835. # Try to use the -exported_symbol ld option, if it does not
  8836. # work, assume that -exports_file does not work either and
  8837. # implicitly export all symbols.
  8838. # This should be the same for all languages, so no per-tag cache variable.
  8839. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
  8840. $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
  8841. if ${lt_cv_irix_exported_symbol+:} false; then :
  8842. $as_echo_n "(cached) " >&6
  8843. else
  8844. save_LDFLAGS="$LDFLAGS"
  8845. LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
  8846. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8847. /* end confdefs.h. */
  8848. int foo (void) { return 0; }
  8849. _ACEOF
  8850. if ac_fn_c_try_link "$LINENO"; then :
  8851. lt_cv_irix_exported_symbol=yes
  8852. else
  8853. lt_cv_irix_exported_symbol=no
  8854. fi
  8855. rm -f core conftest.err conftest.$ac_objext \
  8856. conftest$ac_exeext conftest.$ac_ext
  8857. LDFLAGS="$save_LDFLAGS"
  8858. fi
  8859. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
  8860. $as_echo "$lt_cv_irix_exported_symbol" >&6; }
  8861. if test "$lt_cv_irix_exported_symbol" = yes; then
  8862. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
  8863. fi
  8864. else
  8865. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
  8866. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
  8867. fi
  8868. archive_cmds_need_lc='no'
  8869. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8870. hardcode_libdir_separator=:
  8871. inherit_rpath=yes
  8872. link_all_deplibs=yes
  8873. ;;
  8874. netbsd* | netbsdelf*-gnu)
  8875. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  8876. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  8877. else
  8878. archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  8879. fi
  8880. hardcode_libdir_flag_spec='-R$libdir'
  8881. hardcode_direct=yes
  8882. hardcode_shlibpath_var=no
  8883. ;;
  8884. newsos6)
  8885. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8886. hardcode_direct=yes
  8887. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8888. hardcode_libdir_separator=:
  8889. hardcode_shlibpath_var=no
  8890. ;;
  8891. *nto* | *qnx*)
  8892. ;;
  8893. openbsd*)
  8894. if test -f /usr/libexec/ld.so; then
  8895. hardcode_direct=yes
  8896. hardcode_shlibpath_var=no
  8897. hardcode_direct_absolute=yes
  8898. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  8899. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8900. archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  8901. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  8902. export_dynamic_flag_spec='${wl}-E'
  8903. else
  8904. case $host_os in
  8905. openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  8906. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8907. hardcode_libdir_flag_spec='-R$libdir'
  8908. ;;
  8909. *)
  8910. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8911. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  8912. ;;
  8913. esac
  8914. fi
  8915. else
  8916. ld_shlibs=no
  8917. fi
  8918. ;;
  8919. os2*)
  8920. hardcode_libdir_flag_spec='-L$libdir'
  8921. hardcode_minus_L=yes
  8922. allow_undefined_flag=unsupported
  8923. 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'
  8924. old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  8925. ;;
  8926. osf3*)
  8927. if test "$GCC" = yes; then
  8928. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  8929. archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  8930. else
  8931. allow_undefined_flag=' -expect_unresolved \*'
  8932. archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
  8933. fi
  8934. archive_cmds_need_lc='no'
  8935. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8936. hardcode_libdir_separator=:
  8937. ;;
  8938. osf4* | osf5*) # as osf3* with the addition of -msym flag
  8939. if test "$GCC" = yes; then
  8940. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  8941. archive_cmds='$CC -shared${allow_undefined_flag} $pic_flag $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  8942. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8943. else
  8944. allow_undefined_flag=' -expect_unresolved \*'
  8945. archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
  8946. 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~
  8947. $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
  8948. # Both c and cxx compiler support -rpath directly
  8949. hardcode_libdir_flag_spec='-rpath $libdir'
  8950. fi
  8951. archive_cmds_need_lc='no'
  8952. hardcode_libdir_separator=:
  8953. ;;
  8954. solaris*)
  8955. no_undefined_flag=' -z defs'
  8956. if test "$GCC" = yes; then
  8957. wlarc='${wl}'
  8958. archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8959. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8960. $CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  8961. else
  8962. case `$CC -V 2>&1` in
  8963. *"Compilers 5.0"*)
  8964. wlarc=''
  8965. archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8966. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8967. $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
  8968. ;;
  8969. *)
  8970. wlarc='${wl}'
  8971. archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
  8972. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8973. $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  8974. ;;
  8975. esac
  8976. fi
  8977. hardcode_libdir_flag_spec='-R$libdir'
  8978. hardcode_shlibpath_var=no
  8979. case $host_os in
  8980. solaris2.[0-5] | solaris2.[0-5].*) ;;
  8981. *)
  8982. # The compiler driver will combine and reorder linker options,
  8983. # but understands `-z linker_flag'. GCC discards it without `$wl',
  8984. # but is careful enough not to reorder.
  8985. # Supported since Solaris 2.6 (maybe 2.5.1?)
  8986. if test "$GCC" = yes; then
  8987. whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  8988. else
  8989. whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
  8990. fi
  8991. ;;
  8992. esac
  8993. link_all_deplibs=yes
  8994. ;;
  8995. sunos4*)
  8996. if test "x$host_vendor" = xsequent; then
  8997. # Use $CC to link under sequent, because it throws in some extra .o
  8998. # files that make .init and .fini sections work.
  8999. archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  9000. else
  9001. archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  9002. fi
  9003. hardcode_libdir_flag_spec='-L$libdir'
  9004. hardcode_direct=yes
  9005. hardcode_minus_L=yes
  9006. hardcode_shlibpath_var=no
  9007. ;;
  9008. sysv4)
  9009. case $host_vendor in
  9010. sni)
  9011. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9012. hardcode_direct=yes # is this really true???
  9013. ;;
  9014. siemens)
  9015. ## LD is ld it makes a PLAMLIB
  9016. ## CC just makes a GrossModule.
  9017. archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  9018. reload_cmds='$CC -r -o $output$reload_objs'
  9019. hardcode_direct=no
  9020. ;;
  9021. motorola)
  9022. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9023. hardcode_direct=no #Motorola manual says yes, but my tests say they lie
  9024. ;;
  9025. esac
  9026. runpath_var='LD_RUN_PATH'
  9027. hardcode_shlibpath_var=no
  9028. ;;
  9029. sysv4.3*)
  9030. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9031. hardcode_shlibpath_var=no
  9032. export_dynamic_flag_spec='-Bexport'
  9033. ;;
  9034. sysv4*MP*)
  9035. if test -d /usr/nec; then
  9036. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9037. hardcode_shlibpath_var=no
  9038. runpath_var=LD_RUN_PATH
  9039. hardcode_runpath_var=yes
  9040. ld_shlibs=yes
  9041. fi
  9042. ;;
  9043. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  9044. no_undefined_flag='${wl}-z,text'
  9045. archive_cmds_need_lc=no
  9046. hardcode_shlibpath_var=no
  9047. runpath_var='LD_RUN_PATH'
  9048. if test "$GCC" = yes; then
  9049. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9050. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9051. else
  9052. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9053. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9054. fi
  9055. ;;
  9056. sysv5* | sco3.2v5* | sco5v6*)
  9057. # Note: We can NOT use -z defs as we might desire, because we do not
  9058. # link with -lc, and that would cause any symbols used from libc to
  9059. # always be unresolved, which means just about no library would
  9060. # ever link correctly. If we're not using GNU ld we use -z text
  9061. # though, which does catch some bad symbols but isn't as heavy-handed
  9062. # as -z defs.
  9063. no_undefined_flag='${wl}-z,text'
  9064. allow_undefined_flag='${wl}-z,nodefs'
  9065. archive_cmds_need_lc=no
  9066. hardcode_shlibpath_var=no
  9067. hardcode_libdir_flag_spec='${wl}-R,$libdir'
  9068. hardcode_libdir_separator=':'
  9069. link_all_deplibs=yes
  9070. export_dynamic_flag_spec='${wl}-Bexport'
  9071. runpath_var='LD_RUN_PATH'
  9072. if test "$GCC" = yes; then
  9073. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9074. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9075. else
  9076. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9077. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9078. fi
  9079. ;;
  9080. uts4*)
  9081. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9082. hardcode_libdir_flag_spec='-L$libdir'
  9083. hardcode_shlibpath_var=no
  9084. ;;
  9085. *)
  9086. ld_shlibs=no
  9087. ;;
  9088. esac
  9089. if test x$host_vendor = xsni; then
  9090. case $host in
  9091. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  9092. export_dynamic_flag_spec='${wl}-Blargedynsym'
  9093. ;;
  9094. esac
  9095. fi
  9096. fi
  9097. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
  9098. $as_echo "$ld_shlibs" >&6; }
  9099. test "$ld_shlibs" = no && can_build_shared=no
  9100. with_gnu_ld=$with_gnu_ld
  9101. #
  9102. # Do we need to explicitly link libc?
  9103. #
  9104. case "x$archive_cmds_need_lc" in
  9105. x|xyes)
  9106. # Assume -lc should be added
  9107. archive_cmds_need_lc=yes
  9108. if test "$enable_shared" = yes && test "$GCC" = yes; then
  9109. case $archive_cmds in
  9110. *'~'*)
  9111. # FIXME: we may have to deal with multi-command sequences.
  9112. ;;
  9113. '$CC '*)
  9114. # Test whether the compiler implicitly links with -lc since on some
  9115. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  9116. # to ld, don't add -lc before -lgcc.
  9117. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  9118. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  9119. if ${lt_cv_archive_cmds_need_lc+:} false; then :
  9120. $as_echo_n "(cached) " >&6
  9121. else
  9122. $RM conftest*
  9123. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  9124. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  9125. (eval $ac_compile) 2>&5
  9126. ac_status=$?
  9127. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9128. test $ac_status = 0; } 2>conftest.err; then
  9129. soname=conftest
  9130. lib=conftest
  9131. libobjs=conftest.$ac_objext
  9132. deplibs=
  9133. wl=$lt_prog_compiler_wl
  9134. pic_flag=$lt_prog_compiler_pic
  9135. compiler_flags=-v
  9136. linker_flags=-v
  9137. verstring=
  9138. output_objdir=.
  9139. libname=conftest
  9140. lt_save_allow_undefined_flag=$allow_undefined_flag
  9141. allow_undefined_flag=
  9142. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  9143. (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  9144. ac_status=$?
  9145. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9146. test $ac_status = 0; }
  9147. then
  9148. lt_cv_archive_cmds_need_lc=no
  9149. else
  9150. lt_cv_archive_cmds_need_lc=yes
  9151. fi
  9152. allow_undefined_flag=$lt_save_allow_undefined_flag
  9153. else
  9154. cat conftest.err 1>&5
  9155. fi
  9156. $RM conftest*
  9157. fi
  9158. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
  9159. $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
  9160. archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
  9161. ;;
  9162. esac
  9163. fi
  9164. ;;
  9165. esac
  9166. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  9167. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  9168. if test "$GCC" = yes; then
  9169. case $host_os in
  9170. darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
  9171. *) lt_awk_arg="/^libraries:/" ;;
  9172. esac
  9173. case $host_os in
  9174. mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
  9175. *) lt_sed_strip_eq="s,=/,/,g" ;;
  9176. esac
  9177. lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
  9178. case $lt_search_path_spec in
  9179. *\;*)
  9180. # if the path contains ";" then we assume it to be the separator
  9181. # otherwise default to the standard path separator (i.e. ":") - it is
  9182. # assumed that no part of a normal pathname contains ";" but that should
  9183. # okay in the real world where ";" in dirpaths is itself problematic.
  9184. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
  9185. ;;
  9186. *)
  9187. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
  9188. ;;
  9189. esac
  9190. # Ok, now we have the path, separated by spaces, we can step through it
  9191. # and add multilib dir if necessary.
  9192. lt_tmp_lt_search_path_spec=
  9193. lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
  9194. for lt_sys_path in $lt_search_path_spec; do
  9195. if test -d "$lt_sys_path/$lt_multi_os_dir"; then
  9196. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
  9197. else
  9198. test -d "$lt_sys_path" && \
  9199. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
  9200. fi
  9201. done
  9202. lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
  9203. BEGIN {RS=" "; FS="/|\n";} {
  9204. lt_foo="";
  9205. lt_count=0;
  9206. for (lt_i = NF; lt_i > 0; lt_i--) {
  9207. if ($lt_i != "" && $lt_i != ".") {
  9208. if ($lt_i == "..") {
  9209. lt_count++;
  9210. } else {
  9211. if (lt_count == 0) {
  9212. lt_foo="/" $lt_i lt_foo;
  9213. } else {
  9214. lt_count--;
  9215. }
  9216. }
  9217. }
  9218. }
  9219. if (lt_foo != "") { lt_freq[lt_foo]++; }
  9220. if (lt_freq[lt_foo] == 1) { print lt_foo; }
  9221. }'`
  9222. # AWK program above erroneously prepends '/' to C:/dos/paths
  9223. # for these hosts.
  9224. case $host_os in
  9225. mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
  9226. $SED 's,/\([A-Za-z]:\),\1,g'` ;;
  9227. esac
  9228. sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
  9229. else
  9230. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  9231. fi
  9232. library_names_spec=
  9233. libname_spec='lib$name'
  9234. soname_spec=
  9235. shrext_cmds=".so"
  9236. postinstall_cmds=
  9237. postuninstall_cmds=
  9238. finish_cmds=
  9239. finish_eval=
  9240. shlibpath_var=
  9241. shlibpath_overrides_runpath=unknown
  9242. version_type=none
  9243. dynamic_linker="$host_os ld.so"
  9244. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  9245. need_lib_prefix=unknown
  9246. hardcode_into_libs=no
  9247. # when you set need_version to no, make sure it does not cause -set_version
  9248. # flags to be left without arguments
  9249. need_version=unknown
  9250. case $host_os in
  9251. aix3*)
  9252. version_type=linux # correct to gnu/linux during the next big refactor
  9253. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  9254. shlibpath_var=LIBPATH
  9255. # AIX 3 has no versioning support, so we append a major version to the name.
  9256. soname_spec='${libname}${release}${shared_ext}$major'
  9257. ;;
  9258. aix[4-9]*)
  9259. version_type=linux # correct to gnu/linux during the next big refactor
  9260. need_lib_prefix=no
  9261. need_version=no
  9262. hardcode_into_libs=yes
  9263. if test "$host_cpu" = ia64; then
  9264. # AIX 5 supports IA64
  9265. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  9266. shlibpath_var=LD_LIBRARY_PATH
  9267. else
  9268. # With GCC up to 2.95.x, collect2 would create an import file
  9269. # for dependence libraries. The import file would start with
  9270. # the line `#! .'. This would cause the generated library to
  9271. # depend on `.', always an invalid library. This was fixed in
  9272. # development snapshots of GCC prior to 3.0.
  9273. case $host_os in
  9274. aix4 | aix4.[01] | aix4.[01].*)
  9275. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  9276. echo ' yes '
  9277. echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  9278. :
  9279. else
  9280. can_build_shared=no
  9281. fi
  9282. ;;
  9283. esac
  9284. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  9285. # soname into executable. Probably we can add versioning support to
  9286. # collect2, so additional links can be useful in future.
  9287. if test "$aix_use_runtimelinking" = yes; then
  9288. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  9289. # instead of lib<name>.a to let people know that these are not
  9290. # typical AIX shared libraries.
  9291. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9292. else
  9293. # We preserve .a as extension for shared libraries through AIX4.2
  9294. # and later when we are not doing run time linking.
  9295. library_names_spec='${libname}${release}.a $libname.a'
  9296. soname_spec='${libname}${release}${shared_ext}$major'
  9297. fi
  9298. shlibpath_var=LIBPATH
  9299. fi
  9300. ;;
  9301. amigaos*)
  9302. case $host_cpu in
  9303. powerpc)
  9304. # Since July 2007 AmigaOS4 officially supports .so libraries.
  9305. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  9306. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9307. ;;
  9308. m68k)
  9309. library_names_spec='$libname.ixlibrary $libname.a'
  9310. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  9311. finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
  9312. ;;
  9313. esac
  9314. ;;
  9315. beos*)
  9316. library_names_spec='${libname}${shared_ext}'
  9317. dynamic_linker="$host_os ld.so"
  9318. shlibpath_var=LIBRARY_PATH
  9319. ;;
  9320. bsdi[45]*)
  9321. version_type=linux # correct to gnu/linux during the next big refactor
  9322. need_version=no
  9323. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9324. soname_spec='${libname}${release}${shared_ext}$major'
  9325. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  9326. shlibpath_var=LD_LIBRARY_PATH
  9327. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  9328. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  9329. # the default ld.so.conf also contains /usr/contrib/lib and
  9330. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  9331. # libtool to hard-code these into programs
  9332. ;;
  9333. cygwin* | mingw* | pw32* | cegcc*)
  9334. version_type=windows
  9335. shrext_cmds=".dll"
  9336. need_version=no
  9337. need_lib_prefix=no
  9338. case $GCC,$cc_basename in
  9339. yes,*)
  9340. # gcc
  9341. library_names_spec='$libname.dll.a'
  9342. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  9343. postinstall_cmds='base_file=`basename \${file}`~
  9344. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  9345. dldir=$destdir/`dirname \$dlpath`~
  9346. test -d \$dldir || mkdir -p \$dldir~
  9347. $install_prog $dir/$dlname \$dldir/$dlname~
  9348. chmod a+x \$dldir/$dlname~
  9349. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  9350. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  9351. fi'
  9352. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  9353. dlpath=$dir/\$dldll~
  9354. $RM \$dlpath'
  9355. shlibpath_overrides_runpath=yes
  9356. case $host_os in
  9357. cygwin*)
  9358. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  9359. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  9360. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
  9361. ;;
  9362. mingw* | cegcc*)
  9363. # MinGW DLLs use traditional 'lib' prefix
  9364. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  9365. ;;
  9366. pw32*)
  9367. # pw32 DLLs use 'pw' prefix rather than 'lib'
  9368. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  9369. ;;
  9370. esac
  9371. dynamic_linker='Win32 ld.exe'
  9372. ;;
  9373. *,cl*)
  9374. # Native MSVC
  9375. libname_spec='$name'
  9376. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  9377. library_names_spec='${libname}.dll.lib'
  9378. case $build_os in
  9379. mingw*)
  9380. sys_lib_search_path_spec=
  9381. lt_save_ifs=$IFS
  9382. IFS=';'
  9383. for lt_path in $LIB
  9384. do
  9385. IFS=$lt_save_ifs
  9386. # Let DOS variable expansion print the short 8.3 style file name.
  9387. lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
  9388. sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
  9389. done
  9390. IFS=$lt_save_ifs
  9391. # Convert to MSYS style.
  9392. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
  9393. ;;
  9394. cygwin*)
  9395. # Convert to unix form, then to dos form, then back to unix form
  9396. # but this time dos style (no spaces!) so that the unix form looks
  9397. # like /cygdrive/c/PROGRA~1:/cygdr...
  9398. sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
  9399. sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
  9400. sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  9401. ;;
  9402. *)
  9403. sys_lib_search_path_spec="$LIB"
  9404. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  9405. # It is most probably a Windows format PATH.
  9406. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  9407. else
  9408. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  9409. fi
  9410. # FIXME: find the short name or the path components, as spaces are
  9411. # common. (e.g. "Program Files" -> "PROGRA~1")
  9412. ;;
  9413. esac
  9414. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  9415. postinstall_cmds='base_file=`basename \${file}`~
  9416. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  9417. dldir=$destdir/`dirname \$dlpath`~
  9418. test -d \$dldir || mkdir -p \$dldir~
  9419. $install_prog $dir/$dlname \$dldir/$dlname'
  9420. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  9421. dlpath=$dir/\$dldll~
  9422. $RM \$dlpath'
  9423. shlibpath_overrides_runpath=yes
  9424. dynamic_linker='Win32 link.exe'
  9425. ;;
  9426. *)
  9427. # Assume MSVC wrapper
  9428. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  9429. dynamic_linker='Win32 ld.exe'
  9430. ;;
  9431. esac
  9432. # FIXME: first we should search . and the directory the executable is in
  9433. shlibpath_var=PATH
  9434. ;;
  9435. darwin* | rhapsody*)
  9436. dynamic_linker="$host_os dyld"
  9437. version_type=darwin
  9438. need_lib_prefix=no
  9439. need_version=no
  9440. library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  9441. soname_spec='${libname}${release}${major}$shared_ext'
  9442. shlibpath_overrides_runpath=yes
  9443. shlibpath_var=DYLD_LIBRARY_PATH
  9444. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  9445. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
  9446. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  9447. ;;
  9448. dgux*)
  9449. version_type=linux # correct to gnu/linux during the next big refactor
  9450. need_lib_prefix=no
  9451. need_version=no
  9452. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  9453. soname_spec='${libname}${release}${shared_ext}$major'
  9454. shlibpath_var=LD_LIBRARY_PATH
  9455. ;;
  9456. freebsd* | dragonfly*)
  9457. # DragonFly does not have aout. When/if they implement a new
  9458. # versioning mechanism, adjust this.
  9459. if test -x /usr/bin/objformat; then
  9460. objformat=`/usr/bin/objformat`
  9461. else
  9462. case $host_os in
  9463. freebsd[23].*) objformat=aout ;;
  9464. *) objformat=elf ;;
  9465. esac
  9466. fi
  9467. version_type=freebsd-$objformat
  9468. case $version_type in
  9469. freebsd-elf*)
  9470. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  9471. need_version=no
  9472. need_lib_prefix=no
  9473. ;;
  9474. freebsd-*)
  9475. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  9476. need_version=yes
  9477. ;;
  9478. esac
  9479. shlibpath_var=LD_LIBRARY_PATH
  9480. case $host_os in
  9481. freebsd2.*)
  9482. shlibpath_overrides_runpath=yes
  9483. ;;
  9484. freebsd3.[01]* | freebsdelf3.[01]*)
  9485. shlibpath_overrides_runpath=yes
  9486. hardcode_into_libs=yes
  9487. ;;
  9488. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  9489. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  9490. shlibpath_overrides_runpath=no
  9491. hardcode_into_libs=yes
  9492. ;;
  9493. *) # from 4.6 on, and DragonFly
  9494. shlibpath_overrides_runpath=yes
  9495. hardcode_into_libs=yes
  9496. ;;
  9497. esac
  9498. ;;
  9499. gnu*)
  9500. version_type=linux # correct to gnu/linux during the next big refactor
  9501. need_lib_prefix=no
  9502. need_version=no
  9503. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  9504. soname_spec='${libname}${release}${shared_ext}$major'
  9505. shlibpath_var=LD_LIBRARY_PATH
  9506. shlibpath_overrides_runpath=no
  9507. hardcode_into_libs=yes
  9508. ;;
  9509. haiku*)
  9510. version_type=linux # correct to gnu/linux during the next big refactor
  9511. need_lib_prefix=no
  9512. need_version=no
  9513. dynamic_linker="$host_os runtime_loader"
  9514. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  9515. soname_spec='${libname}${release}${shared_ext}$major'
  9516. shlibpath_var=LIBRARY_PATH
  9517. shlibpath_overrides_runpath=yes
  9518. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
  9519. hardcode_into_libs=yes
  9520. ;;
  9521. hpux9* | hpux10* | hpux11*)
  9522. # Give a soname corresponding to the major version so that dld.sl refuses to
  9523. # link against other versions.
  9524. version_type=sunos
  9525. need_lib_prefix=no
  9526. need_version=no
  9527. case $host_cpu in
  9528. ia64*)
  9529. shrext_cmds='.so'
  9530. hardcode_into_libs=yes
  9531. dynamic_linker="$host_os dld.so"
  9532. shlibpath_var=LD_LIBRARY_PATH
  9533. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  9534. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9535. soname_spec='${libname}${release}${shared_ext}$major'
  9536. if test "X$HPUX_IA64_MODE" = X32; then
  9537. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  9538. else
  9539. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  9540. fi
  9541. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  9542. ;;
  9543. hppa*64*)
  9544. shrext_cmds='.sl'
  9545. hardcode_into_libs=yes
  9546. dynamic_linker="$host_os dld.sl"
  9547. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  9548. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  9549. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9550. soname_spec='${libname}${release}${shared_ext}$major'
  9551. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  9552. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  9553. ;;
  9554. *)
  9555. shrext_cmds='.sl'
  9556. dynamic_linker="$host_os dld.sl"
  9557. shlibpath_var=SHLIB_PATH
  9558. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  9559. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9560. soname_spec='${libname}${release}${shared_ext}$major'
  9561. ;;
  9562. esac
  9563. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  9564. postinstall_cmds='chmod 555 $lib'
  9565. # or fails outright, so override atomically:
  9566. install_override_mode=555
  9567. ;;
  9568. interix[3-9]*)
  9569. version_type=linux # correct to gnu/linux during the next big refactor
  9570. need_lib_prefix=no
  9571. need_version=no
  9572. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  9573. soname_spec='${libname}${release}${shared_ext}$major'
  9574. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  9575. shlibpath_var=LD_LIBRARY_PATH
  9576. shlibpath_overrides_runpath=no
  9577. hardcode_into_libs=yes
  9578. ;;
  9579. irix5* | irix6* | nonstopux*)
  9580. case $host_os in
  9581. nonstopux*) version_type=nonstopux ;;
  9582. *)
  9583. if test "$lt_cv_prog_gnu_ld" = yes; then
  9584. version_type=linux # correct to gnu/linux during the next big refactor
  9585. else
  9586. version_type=irix
  9587. fi ;;
  9588. esac
  9589. need_lib_prefix=no
  9590. need_version=no
  9591. soname_spec='${libname}${release}${shared_ext}$major'
  9592. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  9593. case $host_os in
  9594. irix5* | nonstopux*)
  9595. libsuff= shlibsuff=
  9596. ;;
  9597. *)
  9598. case $LD in # libtool.m4 will add one of these switches to LD
  9599. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  9600. libsuff= shlibsuff= libmagic=32-bit;;
  9601. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  9602. libsuff=32 shlibsuff=N32 libmagic=N32;;
  9603. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  9604. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  9605. *) libsuff= shlibsuff= libmagic=never-match;;
  9606. esac
  9607. ;;
  9608. esac
  9609. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  9610. shlibpath_overrides_runpath=no
  9611. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  9612. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  9613. hardcode_into_libs=yes
  9614. ;;
  9615. # No shared lib support for Linux oldld, aout, or coff.
  9616. linux*oldld* | linux*aout* | linux*coff*)
  9617. dynamic_linker=no
  9618. ;;
  9619. # This must be glibc/ELF.
  9620. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  9621. version_type=linux # correct to gnu/linux during the next big refactor
  9622. need_lib_prefix=no
  9623. need_version=no
  9624. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9625. soname_spec='${libname}${release}${shared_ext}$major'
  9626. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  9627. shlibpath_var=LD_LIBRARY_PATH
  9628. shlibpath_overrides_runpath=no
  9629. # Some binutils ld are patched to set DT_RUNPATH
  9630. if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
  9631. $as_echo_n "(cached) " >&6
  9632. else
  9633. lt_cv_shlibpath_overrides_runpath=no
  9634. save_LDFLAGS=$LDFLAGS
  9635. save_libdir=$libdir
  9636. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
  9637. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
  9638. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9639. /* end confdefs.h. */
  9640. int
  9641. main ()
  9642. {
  9643. ;
  9644. return 0;
  9645. }
  9646. _ACEOF
  9647. if ac_fn_c_try_link "$LINENO"; then :
  9648. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  9649. lt_cv_shlibpath_overrides_runpath=yes
  9650. fi
  9651. fi
  9652. rm -f core conftest.err conftest.$ac_objext \
  9653. conftest$ac_exeext conftest.$ac_ext
  9654. LDFLAGS=$save_LDFLAGS
  9655. libdir=$save_libdir
  9656. fi
  9657. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  9658. # This implies no fast_install, which is unacceptable.
  9659. # Some rework will be needed to allow for fast_install
  9660. # before this can be enabled.
  9661. hardcode_into_libs=yes
  9662. # Append ld.so.conf contents to the search path
  9663. if test -f /etc/ld.so.conf; then
  9664. lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
  9665. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  9666. fi
  9667. # We used to test for /lib/ld.so.1 and disable shared libraries on
  9668. # powerpc, because MkLinux only supported shared libraries with the
  9669. # GNU dynamic linker. Since this was broken with cross compilers,
  9670. # most powerpc-linux boxes support dynamic linking these days and
  9671. # people can always --disable-shared, the test was removed, and we
  9672. # assume the GNU/Linux dynamic linker is in use.
  9673. dynamic_linker='GNU/Linux ld.so'
  9674. ;;
  9675. netbsdelf*-gnu)
  9676. version_type=linux
  9677. need_lib_prefix=no
  9678. need_version=no
  9679. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  9680. soname_spec='${libname}${release}${shared_ext}$major'
  9681. shlibpath_var=LD_LIBRARY_PATH
  9682. shlibpath_overrides_runpath=no
  9683. hardcode_into_libs=yes
  9684. dynamic_linker='NetBSD ld.elf_so'
  9685. ;;
  9686. netbsd*)
  9687. version_type=sunos
  9688. need_lib_prefix=no
  9689. need_version=no
  9690. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  9691. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9692. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  9693. dynamic_linker='NetBSD (a.out) ld.so'
  9694. else
  9695. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  9696. soname_spec='${libname}${release}${shared_ext}$major'
  9697. dynamic_linker='NetBSD ld.elf_so'
  9698. fi
  9699. shlibpath_var=LD_LIBRARY_PATH
  9700. shlibpath_overrides_runpath=yes
  9701. hardcode_into_libs=yes
  9702. ;;
  9703. newsos6)
  9704. version_type=linux # correct to gnu/linux during the next big refactor
  9705. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9706. shlibpath_var=LD_LIBRARY_PATH
  9707. shlibpath_overrides_runpath=yes
  9708. ;;
  9709. *nto* | *qnx*)
  9710. version_type=qnx
  9711. need_lib_prefix=no
  9712. need_version=no
  9713. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9714. soname_spec='${libname}${release}${shared_ext}$major'
  9715. shlibpath_var=LD_LIBRARY_PATH
  9716. shlibpath_overrides_runpath=no
  9717. hardcode_into_libs=yes
  9718. dynamic_linker='ldqnx.so'
  9719. ;;
  9720. openbsd*)
  9721. version_type=sunos
  9722. sys_lib_dlsearch_path_spec="/usr/lib"
  9723. need_lib_prefix=no
  9724. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  9725. case $host_os in
  9726. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  9727. *) need_version=no ;;
  9728. esac
  9729. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9730. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  9731. shlibpath_var=LD_LIBRARY_PATH
  9732. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  9733. case $host_os in
  9734. openbsd2.[89] | openbsd2.[89].*)
  9735. shlibpath_overrides_runpath=no
  9736. ;;
  9737. *)
  9738. shlibpath_overrides_runpath=yes
  9739. ;;
  9740. esac
  9741. else
  9742. shlibpath_overrides_runpath=yes
  9743. fi
  9744. ;;
  9745. os2*)
  9746. libname_spec='$name'
  9747. shrext_cmds=".dll"
  9748. need_lib_prefix=no
  9749. library_names_spec='$libname${shared_ext} $libname.a'
  9750. dynamic_linker='OS/2 ld.exe'
  9751. shlibpath_var=LIBPATH
  9752. ;;
  9753. osf3* | osf4* | osf5*)
  9754. version_type=osf
  9755. need_lib_prefix=no
  9756. need_version=no
  9757. soname_spec='${libname}${release}${shared_ext}$major'
  9758. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9759. shlibpath_var=LD_LIBRARY_PATH
  9760. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  9761. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  9762. ;;
  9763. rdos*)
  9764. dynamic_linker=no
  9765. ;;
  9766. solaris*)
  9767. version_type=linux # correct to gnu/linux during the next big refactor
  9768. need_lib_prefix=no
  9769. need_version=no
  9770. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9771. soname_spec='${libname}${release}${shared_ext}$major'
  9772. shlibpath_var=LD_LIBRARY_PATH
  9773. shlibpath_overrides_runpath=yes
  9774. hardcode_into_libs=yes
  9775. # ldd complains unless libraries are executable
  9776. postinstall_cmds='chmod +x $lib'
  9777. ;;
  9778. sunos4*)
  9779. version_type=sunos
  9780. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9781. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  9782. shlibpath_var=LD_LIBRARY_PATH
  9783. shlibpath_overrides_runpath=yes
  9784. if test "$with_gnu_ld" = yes; then
  9785. need_lib_prefix=no
  9786. fi
  9787. need_version=yes
  9788. ;;
  9789. sysv4 | sysv4.3*)
  9790. version_type=linux # correct to gnu/linux during the next big refactor
  9791. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9792. soname_spec='${libname}${release}${shared_ext}$major'
  9793. shlibpath_var=LD_LIBRARY_PATH
  9794. case $host_vendor in
  9795. sni)
  9796. shlibpath_overrides_runpath=no
  9797. need_lib_prefix=no
  9798. runpath_var=LD_RUN_PATH
  9799. ;;
  9800. siemens)
  9801. need_lib_prefix=no
  9802. ;;
  9803. motorola)
  9804. need_lib_prefix=no
  9805. need_version=no
  9806. shlibpath_overrides_runpath=no
  9807. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  9808. ;;
  9809. esac
  9810. ;;
  9811. sysv4*MP*)
  9812. if test -d /usr/nec ;then
  9813. version_type=linux # correct to gnu/linux during the next big refactor
  9814. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  9815. soname_spec='$libname${shared_ext}.$major'
  9816. shlibpath_var=LD_LIBRARY_PATH
  9817. fi
  9818. ;;
  9819. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  9820. version_type=freebsd-elf
  9821. need_lib_prefix=no
  9822. need_version=no
  9823. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  9824. soname_spec='${libname}${release}${shared_ext}$major'
  9825. shlibpath_var=LD_LIBRARY_PATH
  9826. shlibpath_overrides_runpath=yes
  9827. hardcode_into_libs=yes
  9828. if test "$with_gnu_ld" = yes; then
  9829. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  9830. else
  9831. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  9832. case $host_os in
  9833. sco3.2v5*)
  9834. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  9835. ;;
  9836. esac
  9837. fi
  9838. sys_lib_dlsearch_path_spec='/usr/lib'
  9839. ;;
  9840. tpf*)
  9841. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  9842. version_type=linux # correct to gnu/linux during the next big refactor
  9843. need_lib_prefix=no
  9844. need_version=no
  9845. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9846. shlibpath_var=LD_LIBRARY_PATH
  9847. shlibpath_overrides_runpath=no
  9848. hardcode_into_libs=yes
  9849. ;;
  9850. uts4*)
  9851. version_type=linux # correct to gnu/linux during the next big refactor
  9852. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9853. soname_spec='${libname}${release}${shared_ext}$major'
  9854. shlibpath_var=LD_LIBRARY_PATH
  9855. ;;
  9856. *)
  9857. dynamic_linker=no
  9858. ;;
  9859. esac
  9860. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  9861. $as_echo "$dynamic_linker" >&6; }
  9862. test "$dynamic_linker" = no && can_build_shared=no
  9863. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  9864. if test "$GCC" = yes; then
  9865. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  9866. fi
  9867. if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  9868. sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  9869. fi
  9870. if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  9871. sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  9872. fi
  9873. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  9874. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  9875. hardcode_action=
  9876. if test -n "$hardcode_libdir_flag_spec" ||
  9877. test -n "$runpath_var" ||
  9878. test "X$hardcode_automatic" = "Xyes" ; then
  9879. # We can hardcode non-existent directories.
  9880. if test "$hardcode_direct" != no &&
  9881. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  9882. # have to relink, otherwise we might link with an installed library
  9883. # when we should be linking with a yet-to-be-installed one
  9884. ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
  9885. test "$hardcode_minus_L" != no; then
  9886. # Linking always hardcodes the temporary library directory.
  9887. hardcode_action=relink
  9888. else
  9889. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  9890. hardcode_action=immediate
  9891. fi
  9892. else
  9893. # We cannot hardcode anything, or else we can only hardcode existing
  9894. # directories.
  9895. hardcode_action=unsupported
  9896. fi
  9897. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
  9898. $as_echo "$hardcode_action" >&6; }
  9899. if test "$hardcode_action" = relink ||
  9900. test "$inherit_rpath" = yes; then
  9901. # Fast installation is not supported
  9902. enable_fast_install=no
  9903. elif test "$shlibpath_overrides_runpath" = yes ||
  9904. test "$enable_shared" = no; then
  9905. # Fast installation is not necessary
  9906. enable_fast_install=needless
  9907. fi
  9908. if test "x$enable_dlopen" != xyes; then
  9909. enable_dlopen=unknown
  9910. enable_dlopen_self=unknown
  9911. enable_dlopen_self_static=unknown
  9912. else
  9913. lt_cv_dlopen=no
  9914. lt_cv_dlopen_libs=
  9915. case $host_os in
  9916. beos*)
  9917. lt_cv_dlopen="load_add_on"
  9918. lt_cv_dlopen_libs=
  9919. lt_cv_dlopen_self=yes
  9920. ;;
  9921. mingw* | pw32* | cegcc*)
  9922. lt_cv_dlopen="LoadLibrary"
  9923. lt_cv_dlopen_libs=
  9924. ;;
  9925. cygwin*)
  9926. lt_cv_dlopen="dlopen"
  9927. lt_cv_dlopen_libs=
  9928. ;;
  9929. darwin*)
  9930. # if libdl is installed we need to link against it
  9931. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  9932. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  9933. if ${ac_cv_lib_dl_dlopen+:} false; then :
  9934. $as_echo_n "(cached) " >&6
  9935. else
  9936. ac_check_lib_save_LIBS=$LIBS
  9937. LIBS="-ldl $LIBS"
  9938. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9939. /* end confdefs.h. */
  9940. /* Override any GCC internal prototype to avoid an error.
  9941. Use char because int might match the return type of a GCC
  9942. builtin and then its argument prototype would still apply. */
  9943. #ifdef __cplusplus
  9944. extern "C"
  9945. #endif
  9946. char dlopen ();
  9947. int
  9948. main ()
  9949. {
  9950. return dlopen ();
  9951. ;
  9952. return 0;
  9953. }
  9954. _ACEOF
  9955. if ac_fn_c_try_link "$LINENO"; then :
  9956. ac_cv_lib_dl_dlopen=yes
  9957. else
  9958. ac_cv_lib_dl_dlopen=no
  9959. fi
  9960. rm -f core conftest.err conftest.$ac_objext \
  9961. conftest$ac_exeext conftest.$ac_ext
  9962. LIBS=$ac_check_lib_save_LIBS
  9963. fi
  9964. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  9965. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  9966. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  9967. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  9968. else
  9969. lt_cv_dlopen="dyld"
  9970. lt_cv_dlopen_libs=
  9971. lt_cv_dlopen_self=yes
  9972. fi
  9973. ;;
  9974. *)
  9975. ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
  9976. if test "x$ac_cv_func_shl_load" = xyes; then :
  9977. lt_cv_dlopen="shl_load"
  9978. else
  9979. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
  9980. $as_echo_n "checking for shl_load in -ldld... " >&6; }
  9981. if ${ac_cv_lib_dld_shl_load+:} false; then :
  9982. $as_echo_n "(cached) " >&6
  9983. else
  9984. ac_check_lib_save_LIBS=$LIBS
  9985. LIBS="-ldld $LIBS"
  9986. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9987. /* end confdefs.h. */
  9988. /* Override any GCC internal prototype to avoid an error.
  9989. Use char because int might match the return type of a GCC
  9990. builtin and then its argument prototype would still apply. */
  9991. #ifdef __cplusplus
  9992. extern "C"
  9993. #endif
  9994. char shl_load ();
  9995. int
  9996. main ()
  9997. {
  9998. return shl_load ();
  9999. ;
  10000. return 0;
  10001. }
  10002. _ACEOF
  10003. if ac_fn_c_try_link "$LINENO"; then :
  10004. ac_cv_lib_dld_shl_load=yes
  10005. else
  10006. ac_cv_lib_dld_shl_load=no
  10007. fi
  10008. rm -f core conftest.err conftest.$ac_objext \
  10009. conftest$ac_exeext conftest.$ac_ext
  10010. LIBS=$ac_check_lib_save_LIBS
  10011. fi
  10012. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
  10013. $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
  10014. if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
  10015. lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
  10016. else
  10017. ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
  10018. if test "x$ac_cv_func_dlopen" = xyes; then :
  10019. lt_cv_dlopen="dlopen"
  10020. else
  10021. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  10022. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  10023. if ${ac_cv_lib_dl_dlopen+:} false; then :
  10024. $as_echo_n "(cached) " >&6
  10025. else
  10026. ac_check_lib_save_LIBS=$LIBS
  10027. LIBS="-ldl $LIBS"
  10028. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10029. /* end confdefs.h. */
  10030. /* Override any GCC internal prototype to avoid an error.
  10031. Use char because int might match the return type of a GCC
  10032. builtin and then its argument prototype would still apply. */
  10033. #ifdef __cplusplus
  10034. extern "C"
  10035. #endif
  10036. char dlopen ();
  10037. int
  10038. main ()
  10039. {
  10040. return dlopen ();
  10041. ;
  10042. return 0;
  10043. }
  10044. _ACEOF
  10045. if ac_fn_c_try_link "$LINENO"; then :
  10046. ac_cv_lib_dl_dlopen=yes
  10047. else
  10048. ac_cv_lib_dl_dlopen=no
  10049. fi
  10050. rm -f core conftest.err conftest.$ac_objext \
  10051. conftest$ac_exeext conftest.$ac_ext
  10052. LIBS=$ac_check_lib_save_LIBS
  10053. fi
  10054. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  10055. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  10056. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  10057. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  10058. else
  10059. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
  10060. $as_echo_n "checking for dlopen in -lsvld... " >&6; }
  10061. if ${ac_cv_lib_svld_dlopen+:} false; then :
  10062. $as_echo_n "(cached) " >&6
  10063. else
  10064. ac_check_lib_save_LIBS=$LIBS
  10065. LIBS="-lsvld $LIBS"
  10066. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10067. /* end confdefs.h. */
  10068. /* Override any GCC internal prototype to avoid an error.
  10069. Use char because int might match the return type of a GCC
  10070. builtin and then its argument prototype would still apply. */
  10071. #ifdef __cplusplus
  10072. extern "C"
  10073. #endif
  10074. char dlopen ();
  10075. int
  10076. main ()
  10077. {
  10078. return dlopen ();
  10079. ;
  10080. return 0;
  10081. }
  10082. _ACEOF
  10083. if ac_fn_c_try_link "$LINENO"; then :
  10084. ac_cv_lib_svld_dlopen=yes
  10085. else
  10086. ac_cv_lib_svld_dlopen=no
  10087. fi
  10088. rm -f core conftest.err conftest.$ac_objext \
  10089. conftest$ac_exeext conftest.$ac_ext
  10090. LIBS=$ac_check_lib_save_LIBS
  10091. fi
  10092. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
  10093. $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
  10094. if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
  10095. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
  10096. else
  10097. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
  10098. $as_echo_n "checking for dld_link in -ldld... " >&6; }
  10099. if ${ac_cv_lib_dld_dld_link+:} false; then :
  10100. $as_echo_n "(cached) " >&6
  10101. else
  10102. ac_check_lib_save_LIBS=$LIBS
  10103. LIBS="-ldld $LIBS"
  10104. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10105. /* end confdefs.h. */
  10106. /* Override any GCC internal prototype to avoid an error.
  10107. Use char because int might match the return type of a GCC
  10108. builtin and then its argument prototype would still apply. */
  10109. #ifdef __cplusplus
  10110. extern "C"
  10111. #endif
  10112. char dld_link ();
  10113. int
  10114. main ()
  10115. {
  10116. return dld_link ();
  10117. ;
  10118. return 0;
  10119. }
  10120. _ACEOF
  10121. if ac_fn_c_try_link "$LINENO"; then :
  10122. ac_cv_lib_dld_dld_link=yes
  10123. else
  10124. ac_cv_lib_dld_dld_link=no
  10125. fi
  10126. rm -f core conftest.err conftest.$ac_objext \
  10127. conftest$ac_exeext conftest.$ac_ext
  10128. LIBS=$ac_check_lib_save_LIBS
  10129. fi
  10130. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
  10131. $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
  10132. if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
  10133. lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
  10134. fi
  10135. fi
  10136. fi
  10137. fi
  10138. fi
  10139. fi
  10140. ;;
  10141. esac
  10142. if test "x$lt_cv_dlopen" != xno; then
  10143. enable_dlopen=yes
  10144. else
  10145. enable_dlopen=no
  10146. fi
  10147. case $lt_cv_dlopen in
  10148. dlopen)
  10149. save_CPPFLAGS="$CPPFLAGS"
  10150. test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  10151. save_LDFLAGS="$LDFLAGS"
  10152. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  10153. save_LIBS="$LIBS"
  10154. LIBS="$lt_cv_dlopen_libs $LIBS"
  10155. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
  10156. $as_echo_n "checking whether a program can dlopen itself... " >&6; }
  10157. if ${lt_cv_dlopen_self+:} false; then :
  10158. $as_echo_n "(cached) " >&6
  10159. else
  10160. if test "$cross_compiling" = yes; then :
  10161. lt_cv_dlopen_self=cross
  10162. else
  10163. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  10164. lt_status=$lt_dlunknown
  10165. cat > conftest.$ac_ext <<_LT_EOF
  10166. #line $LINENO "configure"
  10167. #include "confdefs.h"
  10168. #if HAVE_DLFCN_H
  10169. #include <dlfcn.h>
  10170. #endif
  10171. #include <stdio.h>
  10172. #ifdef RTLD_GLOBAL
  10173. # define LT_DLGLOBAL RTLD_GLOBAL
  10174. #else
  10175. # ifdef DL_GLOBAL
  10176. # define LT_DLGLOBAL DL_GLOBAL
  10177. # else
  10178. # define LT_DLGLOBAL 0
  10179. # endif
  10180. #endif
  10181. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  10182. find out it does not work in some platform. */
  10183. #ifndef LT_DLLAZY_OR_NOW
  10184. # ifdef RTLD_LAZY
  10185. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  10186. # else
  10187. # ifdef DL_LAZY
  10188. # define LT_DLLAZY_OR_NOW DL_LAZY
  10189. # else
  10190. # ifdef RTLD_NOW
  10191. # define LT_DLLAZY_OR_NOW RTLD_NOW
  10192. # else
  10193. # ifdef DL_NOW
  10194. # define LT_DLLAZY_OR_NOW DL_NOW
  10195. # else
  10196. # define LT_DLLAZY_OR_NOW 0
  10197. # endif
  10198. # endif
  10199. # endif
  10200. # endif
  10201. #endif
  10202. /* When -fvisbility=hidden is used, assume the code has been annotated
  10203. correspondingly for the symbols needed. */
  10204. #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  10205. int fnord () __attribute__((visibility("default")));
  10206. #endif
  10207. int fnord () { return 42; }
  10208. int main ()
  10209. {
  10210. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  10211. int status = $lt_dlunknown;
  10212. if (self)
  10213. {
  10214. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  10215. else
  10216. {
  10217. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  10218. else puts (dlerror ());
  10219. }
  10220. /* dlclose (self); */
  10221. }
  10222. else
  10223. puts (dlerror ());
  10224. return status;
  10225. }
  10226. _LT_EOF
  10227. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  10228. (eval $ac_link) 2>&5
  10229. ac_status=$?
  10230. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10231. test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  10232. (./conftest; exit; ) >&5 2>/dev/null
  10233. lt_status=$?
  10234. case x$lt_status in
  10235. x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  10236. x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  10237. x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
  10238. esac
  10239. else :
  10240. # compilation failed
  10241. lt_cv_dlopen_self=no
  10242. fi
  10243. fi
  10244. rm -fr conftest*
  10245. fi
  10246. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
  10247. $as_echo "$lt_cv_dlopen_self" >&6; }
  10248. if test "x$lt_cv_dlopen_self" = xyes; then
  10249. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  10250. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
  10251. $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
  10252. if ${lt_cv_dlopen_self_static+:} false; then :
  10253. $as_echo_n "(cached) " >&6
  10254. else
  10255. if test "$cross_compiling" = yes; then :
  10256. lt_cv_dlopen_self_static=cross
  10257. else
  10258. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  10259. lt_status=$lt_dlunknown
  10260. cat > conftest.$ac_ext <<_LT_EOF
  10261. #line $LINENO "configure"
  10262. #include "confdefs.h"
  10263. #if HAVE_DLFCN_H
  10264. #include <dlfcn.h>
  10265. #endif
  10266. #include <stdio.h>
  10267. #ifdef RTLD_GLOBAL
  10268. # define LT_DLGLOBAL RTLD_GLOBAL
  10269. #else
  10270. # ifdef DL_GLOBAL
  10271. # define LT_DLGLOBAL DL_GLOBAL
  10272. # else
  10273. # define LT_DLGLOBAL 0
  10274. # endif
  10275. #endif
  10276. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  10277. find out it does not work in some platform. */
  10278. #ifndef LT_DLLAZY_OR_NOW
  10279. # ifdef RTLD_LAZY
  10280. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  10281. # else
  10282. # ifdef DL_LAZY
  10283. # define LT_DLLAZY_OR_NOW DL_LAZY
  10284. # else
  10285. # ifdef RTLD_NOW
  10286. # define LT_DLLAZY_OR_NOW RTLD_NOW
  10287. # else
  10288. # ifdef DL_NOW
  10289. # define LT_DLLAZY_OR_NOW DL_NOW
  10290. # else
  10291. # define LT_DLLAZY_OR_NOW 0
  10292. # endif
  10293. # endif
  10294. # endif
  10295. # endif
  10296. #endif
  10297. /* When -fvisbility=hidden is used, assume the code has been annotated
  10298. correspondingly for the symbols needed. */
  10299. #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  10300. int fnord () __attribute__((visibility("default")));
  10301. #endif
  10302. int fnord () { return 42; }
  10303. int main ()
  10304. {
  10305. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  10306. int status = $lt_dlunknown;
  10307. if (self)
  10308. {
  10309. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  10310. else
  10311. {
  10312. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  10313. else puts (dlerror ());
  10314. }
  10315. /* dlclose (self); */
  10316. }
  10317. else
  10318. puts (dlerror ());
  10319. return status;
  10320. }
  10321. _LT_EOF
  10322. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  10323. (eval $ac_link) 2>&5
  10324. ac_status=$?
  10325. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10326. test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  10327. (./conftest; exit; ) >&5 2>/dev/null
  10328. lt_status=$?
  10329. case x$lt_status in
  10330. x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  10331. x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  10332. x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
  10333. esac
  10334. else :
  10335. # compilation failed
  10336. lt_cv_dlopen_self_static=no
  10337. fi
  10338. fi
  10339. rm -fr conftest*
  10340. fi
  10341. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
  10342. $as_echo "$lt_cv_dlopen_self_static" >&6; }
  10343. fi
  10344. CPPFLAGS="$save_CPPFLAGS"
  10345. LDFLAGS="$save_LDFLAGS"
  10346. LIBS="$save_LIBS"
  10347. ;;
  10348. esac
  10349. case $lt_cv_dlopen_self in
  10350. yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  10351. *) enable_dlopen_self=unknown ;;
  10352. esac
  10353. case $lt_cv_dlopen_self_static in
  10354. yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  10355. *) enable_dlopen_self_static=unknown ;;
  10356. esac
  10357. fi
  10358. striplib=
  10359. old_striplib=
  10360. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
  10361. $as_echo_n "checking whether stripping libraries is possible... " >&6; }
  10362. if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
  10363. test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  10364. test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  10365. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  10366. $as_echo "yes" >&6; }
  10367. else
  10368. # FIXME - insert some real tests, host_os isn't really good enough
  10369. case $host_os in
  10370. darwin*)
  10371. if test -n "$STRIP" ; then
  10372. striplib="$STRIP -x"
  10373. old_striplib="$STRIP -S"
  10374. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  10375. $as_echo "yes" >&6; }
  10376. else
  10377. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10378. $as_echo "no" >&6; }
  10379. fi
  10380. ;;
  10381. *)
  10382. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10383. $as_echo "no" >&6; }
  10384. ;;
  10385. esac
  10386. fi
  10387. # Report which library types will actually be built
  10388. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
  10389. $as_echo_n "checking if libtool supports shared libraries... " >&6; }
  10390. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
  10391. $as_echo "$can_build_shared" >&6; }
  10392. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
  10393. $as_echo_n "checking whether to build shared libraries... " >&6; }
  10394. test "$can_build_shared" = "no" && enable_shared=no
  10395. # On AIX, shared libraries and static libraries use the same namespace, and
  10396. # are all built from PIC.
  10397. case $host_os in
  10398. aix3*)
  10399. test "$enable_shared" = yes && enable_static=no
  10400. if test -n "$RANLIB"; then
  10401. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  10402. postinstall_cmds='$RANLIB $lib'
  10403. fi
  10404. ;;
  10405. aix[4-9]*)
  10406. if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  10407. test "$enable_shared" = yes && enable_static=no
  10408. fi
  10409. ;;
  10410. esac
  10411. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
  10412. $as_echo "$enable_shared" >&6; }
  10413. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
  10414. $as_echo_n "checking whether to build static libraries... " >&6; }
  10415. # Make sure either enable_shared or enable_static is yes.
  10416. test "$enable_shared" = yes || enable_static=yes
  10417. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
  10418. $as_echo "$enable_static" >&6; }
  10419. fi
  10420. ac_ext=c
  10421. ac_cpp='$CPP $CPPFLAGS'
  10422. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10423. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10424. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  10425. CC="$lt_save_CC"
  10426. ac_config_commands="$ac_config_commands libtool"
  10427. # Only expand once:
  10428. ac_config_files="$ac_config_files Makefile src/Makefile tests/Makefile"
  10429. cat >confcache <<\_ACEOF
  10430. # This file is a shell script that caches the results of configure
  10431. # tests run on this system so they can be shared between configure
  10432. # scripts and configure runs, see configure's option --config-cache.
  10433. # It is not useful on other systems. If it contains results you don't
  10434. # want to keep, you may remove or edit it.
  10435. #
  10436. # config.status only pays attention to the cache file if you give it
  10437. # the --recheck option to rerun configure.
  10438. #
  10439. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  10440. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  10441. # following values.
  10442. _ACEOF
  10443. # The following way of writing the cache mishandles newlines in values,
  10444. # but we know of no workaround that is simple, portable, and efficient.
  10445. # So, we kill variables containing newlines.
  10446. # Ultrix sh set writes to stderr and can't be redirected directly,
  10447. # and sets the high bit in the cache file unless we assign to the vars.
  10448. (
  10449. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  10450. eval ac_val=\$$ac_var
  10451. case $ac_val in #(
  10452. *${as_nl}*)
  10453. case $ac_var in #(
  10454. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  10455. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  10456. esac
  10457. case $ac_var in #(
  10458. _ | IFS | as_nl) ;; #(
  10459. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  10460. *) { eval $ac_var=; unset $ac_var;} ;;
  10461. esac ;;
  10462. esac
  10463. done
  10464. (set) 2>&1 |
  10465. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  10466. *${as_nl}ac_space=\ *)
  10467. # `set' does not quote correctly, so add quotes: double-quote
  10468. # substitution turns \\\\ into \\, and sed turns \\ into \.
  10469. sed -n \
  10470. "s/'/'\\\\''/g;
  10471. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  10472. ;; #(
  10473. *)
  10474. # `set' quotes correctly as required by POSIX, so do not add quotes.
  10475. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  10476. ;;
  10477. esac |
  10478. sort
  10479. ) |
  10480. sed '
  10481. /^ac_cv_env_/b end
  10482. t clear
  10483. :clear
  10484. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  10485. t end
  10486. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  10487. :end' >>confcache
  10488. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  10489. if test -w "$cache_file"; then
  10490. if test "x$cache_file" != "x/dev/null"; then
  10491. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  10492. $as_echo "$as_me: updating cache $cache_file" >&6;}
  10493. if test ! -f "$cache_file" || test -h "$cache_file"; then
  10494. cat confcache >"$cache_file"
  10495. else
  10496. case $cache_file in #(
  10497. */* | ?:*)
  10498. mv -f confcache "$cache_file"$$ &&
  10499. mv -f "$cache_file"$$ "$cache_file" ;; #(
  10500. *)
  10501. mv -f confcache "$cache_file" ;;
  10502. esac
  10503. fi
  10504. fi
  10505. else
  10506. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  10507. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  10508. fi
  10509. fi
  10510. rm -f confcache
  10511. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  10512. # Let make expand exec_prefix.
  10513. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  10514. # Transform confdefs.h into DEFS.
  10515. # Protect against shell expansion while executing Makefile rules.
  10516. # Protect against Makefile macro expansion.
  10517. #
  10518. # If the first sed substitution is executed (which looks for macros that
  10519. # take arguments), then branch to the quote section. Otherwise,
  10520. # look for a macro that doesn't take arguments.
  10521. ac_script='
  10522. :mline
  10523. /\\$/{
  10524. N
  10525. s,\\\n,,
  10526. b mline
  10527. }
  10528. t clear
  10529. :clear
  10530. s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
  10531. t quote
  10532. s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
  10533. t quote
  10534. b any
  10535. :quote
  10536. s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
  10537. s/\[/\\&/g
  10538. s/\]/\\&/g
  10539. s/\$/$$/g
  10540. H
  10541. :any
  10542. ${
  10543. g
  10544. s/^\n//
  10545. s/\n/ /g
  10546. p
  10547. }
  10548. '
  10549. DEFS=`sed -n "$ac_script" confdefs.h`
  10550. ac_libobjs=
  10551. ac_ltlibobjs=
  10552. U=
  10553. for ac_i in : $LIB@&t@OBJS; do test "x$ac_i" = x: && continue
  10554. # 1. Remove the extension, and $U if already installed.
  10555. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  10556. ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  10557. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  10558. # will be set to the directory where LIBOBJS objects are built.
  10559. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  10560. as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  10561. done
  10562. LIB@&t@OBJS=$ac_libobjs
  10563. LTLIBOBJS=$ac_ltlibobjs
  10564. if test -n "$EXEEXT"; then
  10565. am__EXEEXT_TRUE=
  10566. am__EXEEXT_FALSE='#'
  10567. else
  10568. am__EXEEXT_TRUE='#'
  10569. am__EXEEXT_FALSE=
  10570. fi
  10571. if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
  10572. as_fn_error $? "conditional \"AMDEP\" was never defined.
  10573. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  10574. fi
  10575. if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  10576. as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
  10577. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  10578. fi
  10579. if test -z "${HAVE_CHECK_TRUE}" && test -z "${HAVE_CHECK_FALSE}"; then
  10580. as_fn_error $? "conditional \"HAVE_CHECK\" was never defined.
  10581. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  10582. fi
  10583. if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  10584. as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
  10585. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  10586. fi
  10587. : "${CONFIG_STATUS=./config.status}"
  10588. ac_write_fail=0
  10589. ac_clean_files_save=$ac_clean_files
  10590. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  10591. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  10592. $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  10593. as_write_fail=0
  10594. cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  10595. #! $SHELL
  10596. # Generated by $as_me.
  10597. # Run this file to recreate the current configuration.
  10598. # Compiler output produced by configure, useful for debugging
  10599. # configure, is in config.log if it exists.
  10600. debug=false
  10601. ac_cs_recheck=false
  10602. ac_cs_silent=false
  10603. SHELL=\${CONFIG_SHELL-$SHELL}
  10604. export SHELL
  10605. _ASEOF
  10606. cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  10607. ## -------------------- ##
  10608. ## M4sh Initialization. ##
  10609. ## -------------------- ##
  10610. # Be more Bourne compatible
  10611. DUALCASE=1; export DUALCASE # for MKS sh
  10612. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  10613. emulate sh
  10614. NULLCMD=:
  10615. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  10616. # is contrary to our usage. Disable this feature.
  10617. alias -g '${1+"$@"}'='"$@"'
  10618. setopt NO_GLOB_SUBST
  10619. else
  10620. case `(set -o) 2>/dev/null` in @%:@(
  10621. *posix*) :
  10622. set -o posix ;; @%:@(
  10623. *) :
  10624. ;;
  10625. esac
  10626. fi
  10627. as_nl='
  10628. '
  10629. export as_nl
  10630. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  10631. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  10632. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  10633. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  10634. # Prefer a ksh shell builtin over an external printf program on Solaris,
  10635. # but without wasting forks for bash or zsh.
  10636. if test -z "$BASH_VERSION$ZSH_VERSION" \
  10637. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  10638. as_echo='print -r --'
  10639. as_echo_n='print -rn --'
  10640. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  10641. as_echo='printf %s\n'
  10642. as_echo_n='printf %s'
  10643. else
  10644. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  10645. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  10646. as_echo_n='/usr/ucb/echo -n'
  10647. else
  10648. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  10649. as_echo_n_body='eval
  10650. arg=$1;
  10651. case $arg in @%:@(
  10652. *"$as_nl"*)
  10653. expr "X$arg" : "X\\(.*\\)$as_nl";
  10654. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  10655. esac;
  10656. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  10657. '
  10658. export as_echo_n_body
  10659. as_echo_n='sh -c $as_echo_n_body as_echo'
  10660. fi
  10661. export as_echo_body
  10662. as_echo='sh -c $as_echo_body as_echo'
  10663. fi
  10664. # The user is always right.
  10665. if test "${PATH_SEPARATOR+set}" != set; then
  10666. PATH_SEPARATOR=:
  10667. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  10668. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  10669. PATH_SEPARATOR=';'
  10670. }
  10671. fi
  10672. # IFS
  10673. # We need space, tab and new line, in precisely that order. Quoting is
  10674. # there to prevent editors from complaining about space-tab.
  10675. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  10676. # splitting by setting IFS to empty value.)
  10677. IFS=" "" $as_nl"
  10678. # Find who we are. Look in the path if we contain no directory separator.
  10679. as_myself=
  10680. case $0 in @%:@((
  10681. *[\\/]* ) as_myself=$0 ;;
  10682. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10683. for as_dir in $PATH
  10684. do
  10685. IFS=$as_save_IFS
  10686. test -z "$as_dir" && as_dir=.
  10687. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  10688. done
  10689. IFS=$as_save_IFS
  10690. ;;
  10691. esac
  10692. # We did not find ourselves, most probably we were run as `sh COMMAND'
  10693. # in which case we are not to be found in the path.
  10694. if test "x$as_myself" = x; then
  10695. as_myself=$0
  10696. fi
  10697. if test ! -f "$as_myself"; then
  10698. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  10699. exit 1
  10700. fi
  10701. # Unset variables that we do not need and which cause bugs (e.g. in
  10702. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  10703. # suppresses any "Segmentation fault" message there. '((' could
  10704. # trigger a bug in pdksh 5.2.14.
  10705. for as_var in BASH_ENV ENV MAIL MAILPATH
  10706. do eval test x\${$as_var+set} = xset \
  10707. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  10708. done
  10709. PS1='$ '
  10710. PS2='> '
  10711. PS4='+ '
  10712. # NLS nuisances.
  10713. LC_ALL=C
  10714. export LC_ALL
  10715. LANGUAGE=C
  10716. export LANGUAGE
  10717. # CDPATH.
  10718. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  10719. @%:@ as_fn_error STATUS ERROR [LINENO LOG_FD]
  10720. @%:@ ----------------------------------------
  10721. @%:@ Output "`basename @S|@0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  10722. @%:@ provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  10723. @%:@ script with STATUS, using 1 if that was 0.
  10724. as_fn_error ()
  10725. {
  10726. as_status=$1; test $as_status -eq 0 && as_status=1
  10727. if test "$4"; then
  10728. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  10729. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  10730. fi
  10731. $as_echo "$as_me: error: $2" >&2
  10732. as_fn_exit $as_status
  10733. } @%:@ as_fn_error
  10734. @%:@ as_fn_set_status STATUS
  10735. @%:@ -----------------------
  10736. @%:@ Set @S|@? to STATUS, without forking.
  10737. as_fn_set_status ()
  10738. {
  10739. return $1
  10740. } @%:@ as_fn_set_status
  10741. @%:@ as_fn_exit STATUS
  10742. @%:@ -----------------
  10743. @%:@ Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  10744. as_fn_exit ()
  10745. {
  10746. set +e
  10747. as_fn_set_status $1
  10748. exit $1
  10749. } @%:@ as_fn_exit
  10750. @%:@ as_fn_unset VAR
  10751. @%:@ ---------------
  10752. @%:@ Portably unset VAR.
  10753. as_fn_unset ()
  10754. {
  10755. { eval $1=; unset $1;}
  10756. }
  10757. as_unset=as_fn_unset
  10758. @%:@ as_fn_append VAR VALUE
  10759. @%:@ ----------------------
  10760. @%:@ Append the text in VALUE to the end of the definition contained in VAR. Take
  10761. @%:@ advantage of any shell optimizations that allow amortized linear growth over
  10762. @%:@ repeated appends, instead of the typical quadratic growth present in naive
  10763. @%:@ implementations.
  10764. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  10765. eval 'as_fn_append ()
  10766. {
  10767. eval $1+=\$2
  10768. }'
  10769. else
  10770. as_fn_append ()
  10771. {
  10772. eval $1=\$$1\$2
  10773. }
  10774. fi # as_fn_append
  10775. @%:@ as_fn_arith ARG...
  10776. @%:@ ------------------
  10777. @%:@ Perform arithmetic evaluation on the ARGs, and store the result in the
  10778. @%:@ global @S|@as_val. Take advantage of shells that can avoid forks. The arguments
  10779. @%:@ must be portable across @S|@(()) and expr.
  10780. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  10781. eval 'as_fn_arith ()
  10782. {
  10783. as_val=$(( $* ))
  10784. }'
  10785. else
  10786. as_fn_arith ()
  10787. {
  10788. as_val=`expr "$@" || test $? -eq 1`
  10789. }
  10790. fi # as_fn_arith
  10791. if expr a : '\(a\)' >/dev/null 2>&1 &&
  10792. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  10793. as_expr=expr
  10794. else
  10795. as_expr=false
  10796. fi
  10797. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  10798. as_basename=basename
  10799. else
  10800. as_basename=false
  10801. fi
  10802. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  10803. as_dirname=dirname
  10804. else
  10805. as_dirname=false
  10806. fi
  10807. as_me=`$as_basename -- "$0" ||
  10808. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  10809. X"$0" : 'X\(//\)$' \| \
  10810. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  10811. $as_echo X/"$0" |
  10812. sed '/^.*\/\([^/][^/]*\)\/*$/{
  10813. s//\1/
  10814. q
  10815. }
  10816. /^X\/\(\/\/\)$/{
  10817. s//\1/
  10818. q
  10819. }
  10820. /^X\/\(\/\).*/{
  10821. s//\1/
  10822. q
  10823. }
  10824. s/.*/./; q'`
  10825. # Avoid depending upon Character Ranges.
  10826. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  10827. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  10828. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  10829. as_cr_digits='0123456789'
  10830. as_cr_alnum=$as_cr_Letters$as_cr_digits
  10831. ECHO_C= ECHO_N= ECHO_T=
  10832. case `echo -n x` in @%:@(((((
  10833. -n*)
  10834. case `echo 'xy\c'` in
  10835. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  10836. xy) ECHO_C='\c';;
  10837. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  10838. ECHO_T=' ';;
  10839. esac;;
  10840. *)
  10841. ECHO_N='-n';;
  10842. esac
  10843. rm -f conf$$ conf$$.exe conf$$.file
  10844. if test -d conf$$.dir; then
  10845. rm -f conf$$.dir/conf$$.file
  10846. else
  10847. rm -f conf$$.dir
  10848. mkdir conf$$.dir 2>/dev/null
  10849. fi
  10850. if (echo >conf$$.file) 2>/dev/null; then
  10851. if ln -s conf$$.file conf$$ 2>/dev/null; then
  10852. as_ln_s='ln -s'
  10853. # ... but there are two gotchas:
  10854. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  10855. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  10856. # In both cases, we have to default to `cp -p'.
  10857. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  10858. as_ln_s='cp -p'
  10859. elif ln conf$$.file conf$$ 2>/dev/null; then
  10860. as_ln_s=ln
  10861. else
  10862. as_ln_s='cp -p'
  10863. fi
  10864. else
  10865. as_ln_s='cp -p'
  10866. fi
  10867. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  10868. rmdir conf$$.dir 2>/dev/null
  10869. @%:@ as_fn_mkdir_p
  10870. @%:@ -------------
  10871. @%:@ Create "@S|@as_dir" as a directory, including parents if necessary.
  10872. as_fn_mkdir_p ()
  10873. {
  10874. case $as_dir in #(
  10875. -*) as_dir=./$as_dir;;
  10876. esac
  10877. test -d "$as_dir" || eval $as_mkdir_p || {
  10878. as_dirs=
  10879. while :; do
  10880. case $as_dir in #(
  10881. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  10882. *) as_qdir=$as_dir;;
  10883. esac
  10884. as_dirs="'$as_qdir' $as_dirs"
  10885. as_dir=`$as_dirname -- "$as_dir" ||
  10886. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  10887. X"$as_dir" : 'X\(//\)[^/]' \| \
  10888. X"$as_dir" : 'X\(//\)$' \| \
  10889. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  10890. $as_echo X"$as_dir" |
  10891. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  10892. s//\1/
  10893. q
  10894. }
  10895. /^X\(\/\/\)[^/].*/{
  10896. s//\1/
  10897. q
  10898. }
  10899. /^X\(\/\/\)$/{
  10900. s//\1/
  10901. q
  10902. }
  10903. /^X\(\/\).*/{
  10904. s//\1/
  10905. q
  10906. }
  10907. s/.*/./; q'`
  10908. test -d "$as_dir" && break
  10909. done
  10910. test -z "$as_dirs" || eval "mkdir $as_dirs"
  10911. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  10912. } @%:@ as_fn_mkdir_p
  10913. if mkdir -p . 2>/dev/null; then
  10914. as_mkdir_p='mkdir -p "$as_dir"'
  10915. else
  10916. test -d ./-p && rmdir ./-p
  10917. as_mkdir_p=false
  10918. fi
  10919. if test -x / >/dev/null 2>&1; then
  10920. as_test_x='test -x'
  10921. else
  10922. if ls -dL / >/dev/null 2>&1; then
  10923. as_ls_L_option=L
  10924. else
  10925. as_ls_L_option=
  10926. fi
  10927. as_test_x='
  10928. eval sh -c '\''
  10929. if test -d "$1"; then
  10930. test -d "$1/.";
  10931. else
  10932. case $1 in @%:@(
  10933. -*)set "./$1";;
  10934. esac;
  10935. case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in @%:@((
  10936. ???[sx]*):;;*)false;;esac;fi
  10937. '\'' sh
  10938. '
  10939. fi
  10940. as_executable_p=$as_test_x
  10941. # Sed expression to map a string onto a valid CPP name.
  10942. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  10943. # Sed expression to map a string onto a valid variable name.
  10944. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  10945. exec 6>&1
  10946. ## ----------------------------------- ##
  10947. ## Main body of $CONFIG_STATUS script. ##
  10948. ## ----------------------------------- ##
  10949. _ASEOF
  10950. test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  10951. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  10952. # Save the log message, to keep $0 and so on meaningful, and to
  10953. # report actual input values of CONFIG_FILES etc. instead of their
  10954. # values after options handling.
  10955. ac_log="
  10956. This file was extended by OPCUAServer $as_me 1.0, which was
  10957. generated by GNU Autoconf 2.68. Invocation command line was
  10958. CONFIG_FILES = $CONFIG_FILES
  10959. CONFIG_HEADERS = $CONFIG_HEADERS
  10960. CONFIG_LINKS = $CONFIG_LINKS
  10961. CONFIG_COMMANDS = $CONFIG_COMMANDS
  10962. $ $0 $@
  10963. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  10964. "
  10965. _ACEOF
  10966. case $ac_config_files in *"
  10967. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  10968. esac
  10969. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  10970. # Files that config.status was made for.
  10971. config_files="$ac_config_files"
  10972. config_commands="$ac_config_commands"
  10973. _ACEOF
  10974. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  10975. ac_cs_usage="\
  10976. \`$as_me' instantiates files and other configuration actions
  10977. from templates according to the current configuration. Unless the files
  10978. and actions are specified as TAGs, all are instantiated by default.
  10979. Usage: $0 [OPTION]... [TAG]...
  10980. -h, --help print this help, then exit
  10981. -V, --version print version number and configuration settings, then exit
  10982. --config print configuration, then exit
  10983. -q, --quiet, --silent
  10984. do not print progress messages
  10985. -d, --debug don't remove temporary files
  10986. --recheck update $as_me by reconfiguring in the same conditions
  10987. --file=FILE[:TEMPLATE]
  10988. instantiate the configuration file FILE
  10989. Configuration files:
  10990. $config_files
  10991. Configuration commands:
  10992. $config_commands
  10993. Report bugs to the package provider."
  10994. _ACEOF
  10995. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  10996. ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
  10997. ac_cs_version="\\
  10998. OPCUAServer config.status 1.0
  10999. configured by $0, generated by GNU Autoconf 2.68,
  11000. with options \\"\$ac_cs_config\\"
  11001. Copyright (C) 2010 Free Software Foundation, Inc.
  11002. This config.status script is free software; the Free Software Foundation
  11003. gives unlimited permission to copy, distribute and modify it."
  11004. ac_pwd='$ac_pwd'
  11005. srcdir='$srcdir'
  11006. INSTALL='$INSTALL'
  11007. MKDIR_P='$MKDIR_P'
  11008. AWK='$AWK'
  11009. test -n "\$AWK" || AWK=awk
  11010. _ACEOF
  11011. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  11012. # The default lists apply if the user does not specify any file.
  11013. ac_need_defaults=:
  11014. while test $# != 0
  11015. do
  11016. case $1 in
  11017. --*=?*)
  11018. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  11019. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  11020. ac_shift=:
  11021. ;;
  11022. --*=)
  11023. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  11024. ac_optarg=
  11025. ac_shift=:
  11026. ;;
  11027. *)
  11028. ac_option=$1
  11029. ac_optarg=$2
  11030. ac_shift=shift
  11031. ;;
  11032. esac
  11033. case $ac_option in
  11034. # Handling of the options.
  11035. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  11036. ac_cs_recheck=: ;;
  11037. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  11038. $as_echo "$ac_cs_version"; exit ;;
  11039. --config | --confi | --conf | --con | --co | --c )
  11040. $as_echo "$ac_cs_config"; exit ;;
  11041. --debug | --debu | --deb | --de | --d | -d )
  11042. debug=: ;;
  11043. --file | --fil | --fi | --f )
  11044. $ac_shift
  11045. case $ac_optarg in
  11046. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  11047. '') as_fn_error $? "missing file argument" ;;
  11048. esac
  11049. as_fn_append CONFIG_FILES " '$ac_optarg'"
  11050. ac_need_defaults=false;;
  11051. --he | --h | --help | --hel | -h )
  11052. $as_echo "$ac_cs_usage"; exit ;;
  11053. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  11054. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  11055. ac_cs_silent=: ;;
  11056. # This is an error.
  11057. -*) as_fn_error $? "unrecognized option: \`$1'
  11058. Try \`$0 --help' for more information." ;;
  11059. *) as_fn_append ac_config_targets " $1"
  11060. ac_need_defaults=false ;;
  11061. esac
  11062. shift
  11063. done
  11064. ac_configure_extra_args=
  11065. if $ac_cs_silent; then
  11066. exec 6>/dev/null
  11067. ac_configure_extra_args="$ac_configure_extra_args --silent"
  11068. fi
  11069. _ACEOF
  11070. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  11071. if \$ac_cs_recheck; then
  11072. set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  11073. shift
  11074. \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  11075. CONFIG_SHELL='$SHELL'
  11076. export CONFIG_SHELL
  11077. exec "\$@"
  11078. fi
  11079. _ACEOF
  11080. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  11081. exec 5>>config.log
  11082. {
  11083. echo
  11084. sed 'h;s/./-/g;s/^.../@%:@@%:@ /;s/...$/ @%:@@%:@/;p;x;p;x' <<_ASBOX
  11085. @%:@@%:@ Running $as_me. @%:@@%:@
  11086. _ASBOX
  11087. $as_echo "$ac_log"
  11088. } >&5
  11089. _ACEOF
  11090. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  11091. #
  11092. # INIT-COMMANDS
  11093. #
  11094. AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
  11095. # The HP-UX ksh and POSIX shell print the target directory to stdout
  11096. # if CDPATH is set.
  11097. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  11098. sed_quote_subst='$sed_quote_subst'
  11099. double_quote_subst='$double_quote_subst'
  11100. delay_variable_subst='$delay_variable_subst'
  11101. macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
  11102. macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
  11103. enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
  11104. enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
  11105. pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
  11106. enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
  11107. SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
  11108. ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
  11109. PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
  11110. host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
  11111. host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
  11112. host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
  11113. build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
  11114. build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
  11115. build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
  11116. SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
  11117. Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
  11118. GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
  11119. EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
  11120. FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
  11121. LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
  11122. NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
  11123. LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
  11124. max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
  11125. ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
  11126. exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
  11127. lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
  11128. lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
  11129. lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
  11130. lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
  11131. lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
  11132. reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
  11133. reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
  11134. OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
  11135. deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
  11136. file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
  11137. file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
  11138. want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
  11139. DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
  11140. sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
  11141. AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
  11142. AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
  11143. archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
  11144. STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
  11145. RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
  11146. old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  11147. old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  11148. old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
  11149. lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
  11150. CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
  11151. CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
  11152. compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
  11153. GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
  11154. lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
  11155. lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
  11156. lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
  11157. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`'
  11158. nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
  11159. lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
  11160. objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
  11161. MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
  11162. lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
  11163. lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
  11164. lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
  11165. lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
  11166. lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
  11167. need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
  11168. MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
  11169. DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
  11170. NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
  11171. LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
  11172. OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
  11173. OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
  11174. libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
  11175. shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
  11176. extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  11177. archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
  11178. enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
  11179. export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
  11180. whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
  11181. compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
  11182. old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
  11183. old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  11184. archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
  11185. archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  11186. module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
  11187. module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  11188. with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
  11189. allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
  11190. no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
  11191. hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
  11192. hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
  11193. hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
  11194. hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
  11195. hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
  11196. hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
  11197. hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
  11198. inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
  11199. link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
  11200. always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
  11201. export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
  11202. exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
  11203. include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
  11204. prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
  11205. postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
  11206. file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
  11207. variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
  11208. need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
  11209. need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
  11210. version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
  11211. runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
  11212. shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
  11213. shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
  11214. libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
  11215. library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
  11216. soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
  11217. install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
  11218. postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  11219. postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  11220. finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
  11221. finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
  11222. hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
  11223. sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
  11224. sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
  11225. hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
  11226. enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
  11227. enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
  11228. enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
  11229. old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
  11230. striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
  11231. LTCC='$LTCC'
  11232. LTCFLAGS='$LTCFLAGS'
  11233. compiler='$compiler_DEFAULT'
  11234. # A function that is used when there is no print builtin or printf.
  11235. func_fallback_echo ()
  11236. {
  11237. eval 'cat <<_LTECHO_EOF
  11238. \$1
  11239. _LTECHO_EOF'
  11240. }
  11241. # Quote evaled strings.
  11242. for var in SHELL \
  11243. ECHO \
  11244. PATH_SEPARATOR \
  11245. SED \
  11246. GREP \
  11247. EGREP \
  11248. FGREP \
  11249. LD \
  11250. NM \
  11251. LN_S \
  11252. lt_SP2NL \
  11253. lt_NL2SP \
  11254. reload_flag \
  11255. OBJDUMP \
  11256. deplibs_check_method \
  11257. file_magic_cmd \
  11258. file_magic_glob \
  11259. want_nocaseglob \
  11260. DLLTOOL \
  11261. sharedlib_from_linklib_cmd \
  11262. AR \
  11263. AR_FLAGS \
  11264. archiver_list_spec \
  11265. STRIP \
  11266. RANLIB \
  11267. CC \
  11268. CFLAGS \
  11269. compiler \
  11270. lt_cv_sys_global_symbol_pipe \
  11271. lt_cv_sys_global_symbol_to_cdecl \
  11272. lt_cv_sys_global_symbol_to_c_name_address \
  11273. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
  11274. nm_file_list_spec \
  11275. lt_prog_compiler_no_builtin_flag \
  11276. lt_prog_compiler_pic \
  11277. lt_prog_compiler_wl \
  11278. lt_prog_compiler_static \
  11279. lt_cv_prog_compiler_c_o \
  11280. need_locks \
  11281. MANIFEST_TOOL \
  11282. DSYMUTIL \
  11283. NMEDIT \
  11284. LIPO \
  11285. OTOOL \
  11286. OTOOL64 \
  11287. shrext_cmds \
  11288. export_dynamic_flag_spec \
  11289. whole_archive_flag_spec \
  11290. compiler_needs_object \
  11291. with_gnu_ld \
  11292. allow_undefined_flag \
  11293. no_undefined_flag \
  11294. hardcode_libdir_flag_spec \
  11295. hardcode_libdir_separator \
  11296. exclude_expsyms \
  11297. include_expsyms \
  11298. file_list_spec \
  11299. variables_saved_for_relink \
  11300. libname_spec \
  11301. library_names_spec \
  11302. soname_spec \
  11303. install_override_mode \
  11304. finish_eval \
  11305. old_striplib \
  11306. striplib; do
  11307. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  11308. *[\\\\\\\`\\"\\\$]*)
  11309. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
  11310. ;;
  11311. *)
  11312. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  11313. ;;
  11314. esac
  11315. done
  11316. # Double-quote double-evaled strings.
  11317. for var in reload_cmds \
  11318. old_postinstall_cmds \
  11319. old_postuninstall_cmds \
  11320. old_archive_cmds \
  11321. extract_expsyms_cmds \
  11322. old_archive_from_new_cmds \
  11323. old_archive_from_expsyms_cmds \
  11324. archive_cmds \
  11325. archive_expsym_cmds \
  11326. module_cmds \
  11327. module_expsym_cmds \
  11328. export_symbols_cmds \
  11329. prelink_cmds \
  11330. postlink_cmds \
  11331. postinstall_cmds \
  11332. postuninstall_cmds \
  11333. finish_cmds \
  11334. sys_lib_search_path_spec \
  11335. sys_lib_dlsearch_path_spec; do
  11336. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  11337. *[\\\\\\\`\\"\\\$]*)
  11338. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
  11339. ;;
  11340. *)
  11341. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  11342. ;;
  11343. esac
  11344. done
  11345. ac_aux_dir='$ac_aux_dir'
  11346. xsi_shell='$xsi_shell'
  11347. lt_shell_append='$lt_shell_append'
  11348. # See if we are running on zsh, and set the options which allow our
  11349. # commands through without removal of \ escapes INIT.
  11350. if test -n "\${ZSH_VERSION+set}" ; then
  11351. setopt NO_GLOB_SUBST
  11352. fi
  11353. PACKAGE='$PACKAGE'
  11354. VERSION='$VERSION'
  11355. TIMESTAMP='$TIMESTAMP'
  11356. RM='$RM'
  11357. ofile='$ofile'
  11358. _ACEOF
  11359. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  11360. # Handling of arguments.
  11361. for ac_config_target in $ac_config_targets
  11362. do
  11363. case $ac_config_target in
  11364. "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
  11365. "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
  11366. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  11367. "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
  11368. "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
  11369. *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  11370. esac
  11371. done
  11372. # If the user did not use the arguments to specify the items to instantiate,
  11373. # then the envvar interface is used. Set only those that are not.
  11374. # We use the long form for the default assignment because of an extremely
  11375. # bizarre bug on SunOS 4.1.3.
  11376. if $ac_need_defaults; then
  11377. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  11378. test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  11379. fi
  11380. # Have a temporary directory for convenience. Make it in the build tree
  11381. # simply because there is no reason against having it here, and in addition,
  11382. # creating and moving files from /tmp can sometimes cause problems.
  11383. # Hook for its removal unless debugging.
  11384. # Note that there is a small window in which the directory will not be cleaned:
  11385. # after its creation but before its name has been assigned to `$tmp'.
  11386. $debug ||
  11387. {
  11388. tmp= ac_tmp=
  11389. trap 'exit_status=$?
  11390. : "${ac_tmp:=$tmp}"
  11391. { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
  11392. ' 0
  11393. trap 'as_fn_exit 1' 1 2 13 15
  11394. }
  11395. # Create a (secure) tmp directory for tmp files.
  11396. {
  11397. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  11398. test -d "$tmp"
  11399. } ||
  11400. {
  11401. tmp=./conf$$-$RANDOM
  11402. (umask 077 && mkdir "$tmp")
  11403. } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
  11404. ac_tmp=$tmp
  11405. # Set up the scripts for CONFIG_FILES section.
  11406. # No need to generate them if there are no CONFIG_FILES.
  11407. # This happens for instance with `./config.status config.h'.
  11408. if test -n "$CONFIG_FILES"; then
  11409. ac_cr=`echo X | tr X '\015'`
  11410. # On cygwin, bash can eat \r inside `` if the user requested igncr.
  11411. # But we know of no other shell where ac_cr would be empty at this
  11412. # point, so we can use a bashism as a fallback.
  11413. if test "x$ac_cr" = x; then
  11414. eval ac_cr=\$\'\\r\'
  11415. fi
  11416. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  11417. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  11418. ac_cs_awk_cr='\\r'
  11419. else
  11420. ac_cs_awk_cr=$ac_cr
  11421. fi
  11422. echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
  11423. _ACEOF
  11424. {
  11425. echo "cat >conf$$subs.awk <<_ACEOF" &&
  11426. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  11427. echo "_ACEOF"
  11428. } >conf$$subs.sh ||
  11429. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  11430. ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
  11431. ac_delim='%!_!# '
  11432. for ac_last_try in false false false false false :; do
  11433. . ./conf$$subs.sh ||
  11434. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  11435. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  11436. if test $ac_delim_n = $ac_delim_num; then
  11437. break
  11438. elif $ac_last_try; then
  11439. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  11440. else
  11441. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  11442. fi
  11443. done
  11444. rm -f conf$$subs.sh
  11445. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  11446. cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
  11447. _ACEOF
  11448. sed -n '
  11449. h
  11450. s/^/S["/; s/!.*/"]=/
  11451. p
  11452. g
  11453. s/^[^!]*!//
  11454. :repl
  11455. t repl
  11456. s/'"$ac_delim"'$//
  11457. t delim
  11458. :nl
  11459. h
  11460. s/\(.\{148\}\)..*/\1/
  11461. t more1
  11462. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  11463. p
  11464. n
  11465. b repl
  11466. :more1
  11467. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  11468. p
  11469. g
  11470. s/.\{148\}//
  11471. t nl
  11472. :delim
  11473. h
  11474. s/\(.\{148\}\)..*/\1/
  11475. t more2
  11476. s/["\\]/\\&/g; s/^/"/; s/$/"/
  11477. p
  11478. b
  11479. :more2
  11480. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  11481. p
  11482. g
  11483. s/.\{148\}//
  11484. t delim
  11485. ' <conf$$subs.awk | sed '
  11486. /^[^""]/{
  11487. N
  11488. s/\n//
  11489. }
  11490. ' >>$CONFIG_STATUS || ac_write_fail=1
  11491. rm -f conf$$subs.awk
  11492. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  11493. _ACAWK
  11494. cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
  11495. for (key in S) S_is_set[key] = 1
  11496. FS = ""
  11497. }
  11498. {
  11499. line = $ 0
  11500. nfields = split(line, field, "@")
  11501. substed = 0
  11502. len = length(field[1])
  11503. for (i = 2; i < nfields; i++) {
  11504. key = field[i]
  11505. keylen = length(key)
  11506. if (S_is_set[key]) {
  11507. value = S[key]
  11508. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  11509. len += length(value) + length(field[++i])
  11510. substed = 1
  11511. } else
  11512. len += 1 + keylen
  11513. }
  11514. print line
  11515. }
  11516. _ACAWK
  11517. _ACEOF
  11518. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  11519. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  11520. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  11521. else
  11522. cat
  11523. fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
  11524. || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
  11525. _ACEOF
  11526. # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
  11527. # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
  11528. # trailing colons and then remove the whole line if VPATH becomes empty
  11529. # (actually we leave an empty line to preserve line numbers).
  11530. if test "x$srcdir" = x.; then
  11531. ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
  11532. h
  11533. s///
  11534. s/^/:/
  11535. s/[ ]*$/:/
  11536. s/:\$(srcdir):/:/g
  11537. s/:\${srcdir}:/:/g
  11538. s/:@srcdir@:/:/g
  11539. s/^:*//
  11540. s/:*$//
  11541. x
  11542. s/\(=[ ]*\).*/\1/
  11543. G
  11544. s/\n//
  11545. s/^[^=]*=[ ]*$//
  11546. }'
  11547. fi
  11548. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  11549. fi # test -n "$CONFIG_FILES"
  11550. eval set X " :F $CONFIG_FILES :C $CONFIG_COMMANDS"
  11551. shift
  11552. for ac_tag
  11553. do
  11554. case $ac_tag in
  11555. :[FHLC]) ac_mode=$ac_tag; continue;;
  11556. esac
  11557. case $ac_mode$ac_tag in
  11558. :[FHL]*:*);;
  11559. :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
  11560. :[FH]-) ac_tag=-:-;;
  11561. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  11562. esac
  11563. ac_save_IFS=$IFS
  11564. IFS=:
  11565. set x $ac_tag
  11566. IFS=$ac_save_IFS
  11567. shift
  11568. ac_file=$1
  11569. shift
  11570. case $ac_mode in
  11571. :L) ac_source=$1;;
  11572. :[FH])
  11573. ac_file_inputs=
  11574. for ac_f
  11575. do
  11576. case $ac_f in
  11577. -) ac_f="$ac_tmp/stdin";;
  11578. *) # Look for the file first in the build tree, then in the source tree
  11579. # (if the path is not absolute). The absolute path cannot be DOS-style,
  11580. # because $ac_f cannot contain `:'.
  11581. test -f "$ac_f" ||
  11582. case $ac_f in
  11583. [\\/$]*) false;;
  11584. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  11585. esac ||
  11586. as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
  11587. esac
  11588. case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  11589. as_fn_append ac_file_inputs " '$ac_f'"
  11590. done
  11591. # Let's still pretend it is `configure' which instantiates (i.e., don't
  11592. # use $as_me), people would be surprised to read:
  11593. # /* config.h. Generated by config.status. */
  11594. configure_input='Generated from '`
  11595. $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  11596. `' by configure.'
  11597. if test x"$ac_file" != x-; then
  11598. configure_input="$ac_file. $configure_input"
  11599. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  11600. $as_echo "$as_me: creating $ac_file" >&6;}
  11601. fi
  11602. # Neutralize special characters interpreted by sed in replacement strings.
  11603. case $configure_input in #(
  11604. *\&* | *\|* | *\\* )
  11605. ac_sed_conf_input=`$as_echo "$configure_input" |
  11606. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  11607. *) ac_sed_conf_input=$configure_input;;
  11608. esac
  11609. case $ac_tag in
  11610. *:-:* | *:-) cat >"$ac_tmp/stdin" \
  11611. || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
  11612. esac
  11613. ;;
  11614. esac
  11615. ac_dir=`$as_dirname -- "$ac_file" ||
  11616. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  11617. X"$ac_file" : 'X\(//\)[^/]' \| \
  11618. X"$ac_file" : 'X\(//\)$' \| \
  11619. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  11620. $as_echo X"$ac_file" |
  11621. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  11622. s//\1/
  11623. q
  11624. }
  11625. /^X\(\/\/\)[^/].*/{
  11626. s//\1/
  11627. q
  11628. }
  11629. /^X\(\/\/\)$/{
  11630. s//\1/
  11631. q
  11632. }
  11633. /^X\(\/\).*/{
  11634. s//\1/
  11635. q
  11636. }
  11637. s/.*/./; q'`
  11638. as_dir="$ac_dir"; as_fn_mkdir_p
  11639. ac_builddir=.
  11640. case "$ac_dir" in
  11641. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  11642. *)
  11643. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  11644. # A ".." for each directory in $ac_dir_suffix.
  11645. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  11646. case $ac_top_builddir_sub in
  11647. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  11648. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  11649. esac ;;
  11650. esac
  11651. ac_abs_top_builddir=$ac_pwd
  11652. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  11653. # for backward compatibility:
  11654. ac_top_builddir=$ac_top_build_prefix
  11655. case $srcdir in
  11656. .) # We are building in place.
  11657. ac_srcdir=.
  11658. ac_top_srcdir=$ac_top_builddir_sub
  11659. ac_abs_top_srcdir=$ac_pwd ;;
  11660. [\\/]* | ?:[\\/]* ) # Absolute name.
  11661. ac_srcdir=$srcdir$ac_dir_suffix;
  11662. ac_top_srcdir=$srcdir
  11663. ac_abs_top_srcdir=$srcdir ;;
  11664. *) # Relative name.
  11665. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  11666. ac_top_srcdir=$ac_top_build_prefix$srcdir
  11667. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  11668. esac
  11669. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  11670. case $ac_mode in
  11671. :F)
  11672. #
  11673. # CONFIG_FILE
  11674. #
  11675. case $INSTALL in
  11676. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  11677. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  11678. esac
  11679. ac_MKDIR_P=$MKDIR_P
  11680. case $MKDIR_P in
  11681. [\\/$]* | ?:[\\/]* ) ;;
  11682. */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
  11683. esac
  11684. _ACEOF
  11685. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  11686. # If the template does not know about datarootdir, expand it.
  11687. # FIXME: This hack should be removed a few years after 2.60.
  11688. ac_datarootdir_hack=; ac_datarootdir_seen=
  11689. ac_sed_dataroot='
  11690. /datarootdir/ {
  11691. p
  11692. q
  11693. }
  11694. /@datadir@/p
  11695. /@docdir@/p
  11696. /@infodir@/p
  11697. /@localedir@/p
  11698. /@mandir@/p'
  11699. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  11700. *datarootdir*) ac_datarootdir_seen=yes;;
  11701. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  11702. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  11703. $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  11704. _ACEOF
  11705. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  11706. ac_datarootdir_hack='
  11707. s&@datadir@&$datadir&g
  11708. s&@docdir@&$docdir&g
  11709. s&@infodir@&$infodir&g
  11710. s&@localedir@&$localedir&g
  11711. s&@mandir@&$mandir&g
  11712. s&\\\${datarootdir}&$datarootdir&g' ;;
  11713. esac
  11714. _ACEOF
  11715. # Neutralize VPATH when `$srcdir' = `.'.
  11716. # Shell code in configure.ac might set extrasub.
  11717. # FIXME: do we really want to maintain this feature?
  11718. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  11719. ac_sed_extra="$ac_vpsub
  11720. $extrasub
  11721. _ACEOF
  11722. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  11723. :t
  11724. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  11725. s|@configure_input@|$ac_sed_conf_input|;t t
  11726. s&@top_builddir@&$ac_top_builddir_sub&;t t
  11727. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  11728. s&@srcdir@&$ac_srcdir&;t t
  11729. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  11730. s&@top_srcdir@&$ac_top_srcdir&;t t
  11731. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  11732. s&@builddir@&$ac_builddir&;t t
  11733. s&@abs_builddir@&$ac_abs_builddir&;t t
  11734. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  11735. s&@INSTALL@&$ac_INSTALL&;t t
  11736. s&@MKDIR_P@&$ac_MKDIR_P&;t t
  11737. $ac_datarootdir_hack
  11738. "
  11739. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
  11740. >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  11741. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  11742. { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
  11743. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
  11744. "$ac_tmp/out"`; test -z "$ac_out"; } &&
  11745. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  11746. which seems to be undefined. Please make sure it is defined" >&5
  11747. $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  11748. which seems to be undefined. Please make sure it is defined" >&2;}
  11749. rm -f "$ac_tmp/stdin"
  11750. case $ac_file in
  11751. -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
  11752. *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
  11753. esac \
  11754. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  11755. ;;
  11756. :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
  11757. $as_echo "$as_me: executing $ac_file commands" >&6;}
  11758. ;;
  11759. esac
  11760. case $ac_file$ac_mode in
  11761. "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
  11762. # Autoconf 2.62 quotes --file arguments for eval, but not when files
  11763. # are listed without --file. Let's play safe and only enable the eval
  11764. # if we detect the quoting.
  11765. case $CONFIG_FILES in
  11766. *\'*) eval set x "$CONFIG_FILES" ;;
  11767. *) set x $CONFIG_FILES ;;
  11768. esac
  11769. shift
  11770. for mf
  11771. do
  11772. # Strip MF so we end up with the name of the file.
  11773. mf=`echo "$mf" | sed -e 's/:.*$//'`
  11774. # Check whether this is an Automake generated Makefile or not.
  11775. # We used to match only the files named `Makefile.in', but
  11776. # some people rename them; so instead we look at the file content.
  11777. # Grep'ing the first line is not enough: some people post-process
  11778. # each Makefile.in and add a new line on top of each file to say so.
  11779. # Grep'ing the whole file is not good either: AIX grep has a line
  11780. # limit of 2048, but all sed's we know have understand at least 4000.
  11781. if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
  11782. dirpart=`$as_dirname -- "$mf" ||
  11783. $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  11784. X"$mf" : 'X\(//\)[^/]' \| \
  11785. X"$mf" : 'X\(//\)$' \| \
  11786. X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
  11787. $as_echo X"$mf" |
  11788. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  11789. s//\1/
  11790. q
  11791. }
  11792. /^X\(\/\/\)[^/].*/{
  11793. s//\1/
  11794. q
  11795. }
  11796. /^X\(\/\/\)$/{
  11797. s//\1/
  11798. q
  11799. }
  11800. /^X\(\/\).*/{
  11801. s//\1/
  11802. q
  11803. }
  11804. s/.*/./; q'`
  11805. else
  11806. continue
  11807. fi
  11808. # Extract the definition of DEPDIR, am__include, and am__quote
  11809. # from the Makefile without running `make'.
  11810. DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
  11811. test -z "$DEPDIR" && continue
  11812. am__include=`sed -n 's/^am__include = //p' < "$mf"`
  11813. test -z "am__include" && continue
  11814. am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
  11815. # When using ansi2knr, U may be empty or an underscore; expand it
  11816. U=`sed -n 's/^U = //p' < "$mf"`
  11817. # Find all dependency output files, they are included files with
  11818. # $(DEPDIR) in their names. We invoke sed twice because it is the
  11819. # simplest approach to changing $(DEPDIR) to its actual value in the
  11820. # expansion.
  11821. for file in `sed -n "
  11822. s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
  11823. sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
  11824. # Make sure the directory exists.
  11825. test -f "$dirpart/$file" && continue
  11826. fdir=`$as_dirname -- "$file" ||
  11827. $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  11828. X"$file" : 'X\(//\)[^/]' \| \
  11829. X"$file" : 'X\(//\)$' \| \
  11830. X"$file" : 'X\(/\)' \| . 2>/dev/null ||
  11831. $as_echo X"$file" |
  11832. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  11833. s//\1/
  11834. q
  11835. }
  11836. /^X\(\/\/\)[^/].*/{
  11837. s//\1/
  11838. q
  11839. }
  11840. /^X\(\/\/\)$/{
  11841. s//\1/
  11842. q
  11843. }
  11844. /^X\(\/\).*/{
  11845. s//\1/
  11846. q
  11847. }
  11848. s/.*/./; q'`
  11849. as_dir=$dirpart/$fdir; as_fn_mkdir_p
  11850. # echo "creating $dirpart/$file"
  11851. echo '# dummy' > "$dirpart/$file"
  11852. done
  11853. done
  11854. }
  11855. ;;
  11856. "libtool":C)
  11857. # See if we are running on zsh, and set the options which allow our
  11858. # commands through without removal of \ escapes.
  11859. if test -n "${ZSH_VERSION+set}" ; then
  11860. setopt NO_GLOB_SUBST
  11861. fi
  11862. cfgfile="${ofile}T"
  11863. trap "$RM \"$cfgfile\"; exit 1" 1 2 15
  11864. $RM "$cfgfile"
  11865. cat <<_LT_EOF >> "$cfgfile"
  11866. #! $SHELL
  11867. # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
  11868. # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
  11869. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  11870. # NOTE: Changes made to this file will be lost: look at ltmain.sh.
  11871. #
  11872. # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
  11873. # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
  11874. # Foundation, Inc.
  11875. # Written by Gordon Matzigkeit, 1996
  11876. #
  11877. # This file is part of GNU Libtool.
  11878. #
  11879. # GNU Libtool is free software; you can redistribute it and/or
  11880. # modify it under the terms of the GNU General Public License as
  11881. # published by the Free Software Foundation; either version 2 of
  11882. # the License, or (at your option) any later version.
  11883. #
  11884. # As a special exception to the GNU General Public License,
  11885. # if you distribute this file as part of a program or library that
  11886. # is built using GNU Libtool, you may include this file under the
  11887. # same distribution terms that you use for the rest of that program.
  11888. #
  11889. # GNU Libtool is distributed in the hope that it will be useful,
  11890. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  11891. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  11892. # GNU General Public License for more details.
  11893. #
  11894. # You should have received a copy of the GNU General Public License
  11895. # along with GNU Libtool; see the file COPYING. If not, a copy
  11896. # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
  11897. # obtained by writing to the Free Software Foundation, Inc.,
  11898. # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  11899. # The names of the tagged configurations supported by this script.
  11900. available_tags=""
  11901. # ### BEGIN LIBTOOL CONFIG
  11902. # Which release of libtool.m4 was used?
  11903. macro_version=$macro_version
  11904. macro_revision=$macro_revision
  11905. # Whether or not to build shared libraries.
  11906. build_libtool_libs=$enable_shared
  11907. # Whether or not to build static libraries.
  11908. build_old_libs=$enable_static
  11909. # What type of objects to build.
  11910. pic_mode=$pic_mode
  11911. # Whether or not to optimize for fast installation.
  11912. fast_install=$enable_fast_install
  11913. # Shell to use when invoking shell scripts.
  11914. SHELL=$lt_SHELL
  11915. # An echo program that protects backslashes.
  11916. ECHO=$lt_ECHO
  11917. # The PATH separator for the build system.
  11918. PATH_SEPARATOR=$lt_PATH_SEPARATOR
  11919. # The host system.
  11920. host_alias=$host_alias
  11921. host=$host
  11922. host_os=$host_os
  11923. # The build system.
  11924. build_alias=$build_alias
  11925. build=$build
  11926. build_os=$build_os
  11927. # A sed program that does not truncate output.
  11928. SED=$lt_SED
  11929. # Sed that helps us avoid accidentally triggering echo(1) options like -n.
  11930. Xsed="\$SED -e 1s/^X//"
  11931. # A grep program that handles long lines.
  11932. GREP=$lt_GREP
  11933. # An ERE matcher.
  11934. EGREP=$lt_EGREP
  11935. # A literal string matcher.
  11936. FGREP=$lt_FGREP
  11937. # A BSD- or MS-compatible name lister.
  11938. NM=$lt_NM
  11939. # Whether we need soft or hard links.
  11940. LN_S=$lt_LN_S
  11941. # What is the maximum length of a command?
  11942. max_cmd_len=$max_cmd_len
  11943. # Object file suffix (normally "o").
  11944. objext=$ac_objext
  11945. # Executable file suffix (normally "").
  11946. exeext=$exeext
  11947. # whether the shell understands "unset".
  11948. lt_unset=$lt_unset
  11949. # turn spaces into newlines.
  11950. SP2NL=$lt_lt_SP2NL
  11951. # turn newlines into spaces.
  11952. NL2SP=$lt_lt_NL2SP
  11953. # convert \$build file names to \$host format.
  11954. to_host_file_cmd=$lt_cv_to_host_file_cmd
  11955. # convert \$build files to toolchain format.
  11956. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  11957. # An object symbol dumper.
  11958. OBJDUMP=$lt_OBJDUMP
  11959. # Method to check whether dependent libraries are shared objects.
  11960. deplibs_check_method=$lt_deplibs_check_method
  11961. # Command to use when deplibs_check_method = "file_magic".
  11962. file_magic_cmd=$lt_file_magic_cmd
  11963. # How to find potential files when deplibs_check_method = "file_magic".
  11964. file_magic_glob=$lt_file_magic_glob
  11965. # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
  11966. want_nocaseglob=$lt_want_nocaseglob
  11967. # DLL creation program.
  11968. DLLTOOL=$lt_DLLTOOL
  11969. # Command to associate shared and link libraries.
  11970. sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
  11971. # The archiver.
  11972. AR=$lt_AR
  11973. # Flags to create an archive.
  11974. AR_FLAGS=$lt_AR_FLAGS
  11975. # How to feed a file listing to the archiver.
  11976. archiver_list_spec=$lt_archiver_list_spec
  11977. # A symbol stripping program.
  11978. STRIP=$lt_STRIP
  11979. # Commands used to install an old-style archive.
  11980. RANLIB=$lt_RANLIB
  11981. old_postinstall_cmds=$lt_old_postinstall_cmds
  11982. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  11983. # Whether to use a lock for old archive extraction.
  11984. lock_old_archive_extraction=$lock_old_archive_extraction
  11985. # A C compiler.
  11986. LTCC=$lt_CC
  11987. # LTCC compiler flags.
  11988. LTCFLAGS=$lt_CFLAGS
  11989. # Take the output of nm and produce a listing of raw symbols and C names.
  11990. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  11991. # Transform the output of nm in a proper C declaration.
  11992. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  11993. # Transform the output of nm in a C name address pair.
  11994. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  11995. # Transform the output of nm in a C name address pair when lib prefix is needed.
  11996. global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
  11997. # Specify filename containing input files for \$NM.
  11998. nm_file_list_spec=$lt_nm_file_list_spec
  11999. # The root where to search for dependent libraries,and in which our libraries should be installed.
  12000. lt_sysroot=$lt_sysroot
  12001. # The name of the directory that contains temporary libtool files.
  12002. objdir=$objdir
  12003. # Used to examine libraries when file_magic_cmd begins with "file".
  12004. MAGIC_CMD=$MAGIC_CMD
  12005. # Must we lock files when doing compilation?
  12006. need_locks=$lt_need_locks
  12007. # Manifest tool.
  12008. MANIFEST_TOOL=$lt_MANIFEST_TOOL
  12009. # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
  12010. DSYMUTIL=$lt_DSYMUTIL
  12011. # Tool to change global to local symbols on Mac OS X.
  12012. NMEDIT=$lt_NMEDIT
  12013. # Tool to manipulate fat objects and archives on Mac OS X.
  12014. LIPO=$lt_LIPO
  12015. # ldd/readelf like tool for Mach-O binaries on Mac OS X.
  12016. OTOOL=$lt_OTOOL
  12017. # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
  12018. OTOOL64=$lt_OTOOL64
  12019. # Old archive suffix (normally "a").
  12020. libext=$libext
  12021. # Shared library suffix (normally ".so").
  12022. shrext_cmds=$lt_shrext_cmds
  12023. # The commands to extract the exported symbol list from a shared archive.
  12024. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  12025. # Variables whose values should be saved in libtool wrapper scripts and
  12026. # restored at link time.
  12027. variables_saved_for_relink=$lt_variables_saved_for_relink
  12028. # Do we need the "lib" prefix for modules?
  12029. need_lib_prefix=$need_lib_prefix
  12030. # Do we need a version for libraries?
  12031. need_version=$need_version
  12032. # Library versioning type.
  12033. version_type=$version_type
  12034. # Shared library runtime path variable.
  12035. runpath_var=$runpath_var
  12036. # Shared library path variable.
  12037. shlibpath_var=$shlibpath_var
  12038. # Is shlibpath searched before the hard-coded library search path?
  12039. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  12040. # Format of library name prefix.
  12041. libname_spec=$lt_libname_spec
  12042. # List of archive names. First name is the real one, the rest are links.
  12043. # The last name is the one that the linker finds with -lNAME
  12044. library_names_spec=$lt_library_names_spec
  12045. # The coded name of the library, if different from the real name.
  12046. soname_spec=$lt_soname_spec
  12047. # Permission mode override for installation of shared libraries.
  12048. install_override_mode=$lt_install_override_mode
  12049. # Command to use after installation of a shared archive.
  12050. postinstall_cmds=$lt_postinstall_cmds
  12051. # Command to use after uninstallation of a shared archive.
  12052. postuninstall_cmds=$lt_postuninstall_cmds
  12053. # Commands used to finish a libtool library installation in a directory.
  12054. finish_cmds=$lt_finish_cmds
  12055. # As "finish_cmds", except a single script fragment to be evaled but
  12056. # not shown.
  12057. finish_eval=$lt_finish_eval
  12058. # Whether we should hardcode library paths into libraries.
  12059. hardcode_into_libs=$hardcode_into_libs
  12060. # Compile-time system search path for libraries.
  12061. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  12062. # Run-time system search path for libraries.
  12063. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  12064. # Whether dlopen is supported.
  12065. dlopen_support=$enable_dlopen
  12066. # Whether dlopen of programs is supported.
  12067. dlopen_self=$enable_dlopen_self
  12068. # Whether dlopen of statically linked programs is supported.
  12069. dlopen_self_static=$enable_dlopen_self_static
  12070. # Commands to strip libraries.
  12071. old_striplib=$lt_old_striplib
  12072. striplib=$lt_striplib
  12073. # The linker used to build libraries.
  12074. LD=$lt_LD
  12075. # How to create reloadable object files.
  12076. reload_flag=$lt_reload_flag
  12077. reload_cmds=$lt_reload_cmds
  12078. # Commands used to build an old-style archive.
  12079. old_archive_cmds=$lt_old_archive_cmds
  12080. # A language specific compiler.
  12081. CC=$lt_compiler
  12082. # Is the compiler the GNU compiler?
  12083. with_gcc=$GCC
  12084. # Compiler flag to turn off builtin functions.
  12085. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
  12086. # Additional compiler flags for building library objects.
  12087. pic_flag=$lt_lt_prog_compiler_pic
  12088. # How to pass a linker flag through the compiler.
  12089. wl=$lt_lt_prog_compiler_wl
  12090. # Compiler flag to prevent dynamic linking.
  12091. link_static_flag=$lt_lt_prog_compiler_static
  12092. # Does compiler simultaneously support -c and -o options?
  12093. compiler_c_o=$lt_lt_cv_prog_compiler_c_o
  12094. # Whether or not to add -lc for building shared libraries.
  12095. build_libtool_need_lc=$archive_cmds_need_lc
  12096. # Whether or not to disallow shared libs when runtime libs are static.
  12097. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
  12098. # Compiler flag to allow reflexive dlopens.
  12099. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
  12100. # Compiler flag to generate shared objects directly from archives.
  12101. whole_archive_flag_spec=$lt_whole_archive_flag_spec
  12102. # Whether the compiler copes with passing no objects directly.
  12103. compiler_needs_object=$lt_compiler_needs_object
  12104. # Create an old-style archive from a shared archive.
  12105. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
  12106. # Create a temporary old-style archive to link instead of a shared archive.
  12107. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
  12108. # Commands used to build a shared archive.
  12109. archive_cmds=$lt_archive_cmds
  12110. archive_expsym_cmds=$lt_archive_expsym_cmds
  12111. # Commands used to build a loadable module if different from building
  12112. # a shared archive.
  12113. module_cmds=$lt_module_cmds
  12114. module_expsym_cmds=$lt_module_expsym_cmds
  12115. # Whether we are building with GNU ld or not.
  12116. with_gnu_ld=$lt_with_gnu_ld
  12117. # Flag that allows shared libraries with undefined symbols to be built.
  12118. allow_undefined_flag=$lt_allow_undefined_flag
  12119. # Flag that enforces no undefined symbols.
  12120. no_undefined_flag=$lt_no_undefined_flag
  12121. # Flag to hardcode \$libdir into a binary during linking.
  12122. # This must work even if \$libdir does not exist
  12123. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
  12124. # Whether we need a single "-rpath" flag with a separated argument.
  12125. hardcode_libdir_separator=$lt_hardcode_libdir_separator
  12126. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  12127. # DIR into the resulting binary.
  12128. hardcode_direct=$hardcode_direct
  12129. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  12130. # DIR into the resulting binary and the resulting library dependency is
  12131. # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
  12132. # library is relocated.
  12133. hardcode_direct_absolute=$hardcode_direct_absolute
  12134. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  12135. # into the resulting binary.
  12136. hardcode_minus_L=$hardcode_minus_L
  12137. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  12138. # into the resulting binary.
  12139. hardcode_shlibpath_var=$hardcode_shlibpath_var
  12140. # Set to "yes" if building a shared library automatically hardcodes DIR
  12141. # into the library and all subsequent libraries and executables linked
  12142. # against it.
  12143. hardcode_automatic=$hardcode_automatic
  12144. # Set to yes if linker adds runtime paths of dependent libraries
  12145. # to runtime path list.
  12146. inherit_rpath=$inherit_rpath
  12147. # Whether libtool must link a program against all its dependency libraries.
  12148. link_all_deplibs=$link_all_deplibs
  12149. # Set to "yes" if exported symbols are required.
  12150. always_export_symbols=$always_export_symbols
  12151. # The commands to list exported symbols.
  12152. export_symbols_cmds=$lt_export_symbols_cmds
  12153. # Symbols that should not be listed in the preloaded symbols.
  12154. exclude_expsyms=$lt_exclude_expsyms
  12155. # Symbols that must always be exported.
  12156. include_expsyms=$lt_include_expsyms
  12157. # Commands necessary for linking programs (against libraries) with templates.
  12158. prelink_cmds=$lt_prelink_cmds
  12159. # Commands necessary for finishing linking programs.
  12160. postlink_cmds=$lt_postlink_cmds
  12161. # Specify filename containing input files.
  12162. file_list_spec=$lt_file_list_spec
  12163. # How to hardcode a shared library path into an executable.
  12164. hardcode_action=$hardcode_action
  12165. # ### END LIBTOOL CONFIG
  12166. _LT_EOF
  12167. case $host_os in
  12168. aix3*)
  12169. cat <<\_LT_EOF >> "$cfgfile"
  12170. # AIX sometimes has problems with the GCC collect2 program. For some
  12171. # reason, if we set the COLLECT_NAMES environment variable, the problems
  12172. # vanish in a puff of smoke.
  12173. if test "X${COLLECT_NAMES+set}" != Xset; then
  12174. COLLECT_NAMES=
  12175. export COLLECT_NAMES
  12176. fi
  12177. _LT_EOF
  12178. ;;
  12179. esac
  12180. ltmain="$ac_aux_dir/ltmain.sh"
  12181. # We use sed instead of cat because bash on DJGPP gets confused if
  12182. # if finds mixed CR/LF and LF-only lines. Since sed operates in
  12183. # text mode, it properly converts lines to CR/LF. This bash problem
  12184. # is reportedly fixed, but why not run on old versions too?
  12185. sed '$q' "$ltmain" >> "$cfgfile" \
  12186. || (rm -f "$cfgfile"; exit 1)
  12187. if test x"$xsi_shell" = xyes; then
  12188. sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
  12189. func_dirname ()\
  12190. {\
  12191. \ case ${1} in\
  12192. \ */*) func_dirname_result="${1%/*}${2}" ;;\
  12193. \ * ) func_dirname_result="${3}" ;;\
  12194. \ esac\
  12195. } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
  12196. && mv -f "$cfgfile.tmp" "$cfgfile" \
  12197. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  12198. test 0 -eq $? || _lt_function_replace_fail=:
  12199. sed -e '/^func_basename ()$/,/^} # func_basename /c\
  12200. func_basename ()\
  12201. {\
  12202. \ func_basename_result="${1##*/}"\
  12203. } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
  12204. && mv -f "$cfgfile.tmp" "$cfgfile" \
  12205. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  12206. test 0 -eq $? || _lt_function_replace_fail=:
  12207. sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
  12208. func_dirname_and_basename ()\
  12209. {\
  12210. \ case ${1} in\
  12211. \ */*) func_dirname_result="${1%/*}${2}" ;;\
  12212. \ * ) func_dirname_result="${3}" ;;\
  12213. \ esac\
  12214. \ func_basename_result="${1##*/}"\
  12215. } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
  12216. && mv -f "$cfgfile.tmp" "$cfgfile" \
  12217. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  12218. test 0 -eq $? || _lt_function_replace_fail=:
  12219. sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
  12220. func_stripname ()\
  12221. {\
  12222. \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
  12223. \ # positional parameters, so assign one to ordinary parameter first.\
  12224. \ func_stripname_result=${3}\
  12225. \ func_stripname_result=${func_stripname_result#"${1}"}\
  12226. \ func_stripname_result=${func_stripname_result%"${2}"}\
  12227. } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
  12228. && mv -f "$cfgfile.tmp" "$cfgfile" \
  12229. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  12230. test 0 -eq $? || _lt_function_replace_fail=:
  12231. sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
  12232. func_split_long_opt ()\
  12233. {\
  12234. \ func_split_long_opt_name=${1%%=*}\
  12235. \ func_split_long_opt_arg=${1#*=}\
  12236. } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
  12237. && mv -f "$cfgfile.tmp" "$cfgfile" \
  12238. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  12239. test 0 -eq $? || _lt_function_replace_fail=:
  12240. sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
  12241. func_split_short_opt ()\
  12242. {\
  12243. \ func_split_short_opt_arg=${1#??}\
  12244. \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
  12245. } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
  12246. && mv -f "$cfgfile.tmp" "$cfgfile" \
  12247. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  12248. test 0 -eq $? || _lt_function_replace_fail=:
  12249. sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
  12250. func_lo2o ()\
  12251. {\
  12252. \ case ${1} in\
  12253. \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
  12254. \ *) func_lo2o_result=${1} ;;\
  12255. \ esac\
  12256. } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
  12257. && mv -f "$cfgfile.tmp" "$cfgfile" \
  12258. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  12259. test 0 -eq $? || _lt_function_replace_fail=:
  12260. sed -e '/^func_xform ()$/,/^} # func_xform /c\
  12261. func_xform ()\
  12262. {\
  12263. func_xform_result=${1%.*}.lo\
  12264. } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
  12265. && mv -f "$cfgfile.tmp" "$cfgfile" \
  12266. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  12267. test 0 -eq $? || _lt_function_replace_fail=:
  12268. sed -e '/^func_arith ()$/,/^} # func_arith /c\
  12269. func_arith ()\
  12270. {\
  12271. func_arith_result=$(( $* ))\
  12272. } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
  12273. && mv -f "$cfgfile.tmp" "$cfgfile" \
  12274. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  12275. test 0 -eq $? || _lt_function_replace_fail=:
  12276. sed -e '/^func_len ()$/,/^} # func_len /c\
  12277. func_len ()\
  12278. {\
  12279. func_len_result=${#1}\
  12280. } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
  12281. && mv -f "$cfgfile.tmp" "$cfgfile" \
  12282. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  12283. test 0 -eq $? || _lt_function_replace_fail=:
  12284. fi
  12285. if test x"$lt_shell_append" = xyes; then
  12286. sed -e '/^func_append ()$/,/^} # func_append /c\
  12287. func_append ()\
  12288. {\
  12289. eval "${1}+=\\${2}"\
  12290. } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
  12291. && mv -f "$cfgfile.tmp" "$cfgfile" \
  12292. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  12293. test 0 -eq $? || _lt_function_replace_fail=:
  12294. sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
  12295. func_append_quoted ()\
  12296. {\
  12297. \ func_quote_for_eval "${2}"\
  12298. \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
  12299. } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
  12300. && mv -f "$cfgfile.tmp" "$cfgfile" \
  12301. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  12302. test 0 -eq $? || _lt_function_replace_fail=:
  12303. # Save a `func_append' function call where possible by direct use of '+='
  12304. sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
  12305. && mv -f "$cfgfile.tmp" "$cfgfile" \
  12306. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  12307. test 0 -eq $? || _lt_function_replace_fail=:
  12308. else
  12309. # Save a `func_append' function call even when '+=' is not available
  12310. sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
  12311. && mv -f "$cfgfile.tmp" "$cfgfile" \
  12312. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  12313. test 0 -eq $? || _lt_function_replace_fail=:
  12314. fi
  12315. if test x"$_lt_function_replace_fail" = x":"; then
  12316. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
  12317. $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
  12318. fi
  12319. mv -f "$cfgfile" "$ofile" ||
  12320. (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  12321. chmod +x "$ofile"
  12322. ;;
  12323. esac
  12324. done # for ac_tag
  12325. as_fn_exit 0
  12326. _ACEOF
  12327. ac_clean_files=$ac_clean_files_save
  12328. test $ac_write_fail = 0 ||
  12329. as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
  12330. # configure is writing to config.log, and then calls config.status.
  12331. # config.status does its own redirection, appending to config.log.
  12332. # Unfortunately, on DOS this fails, as config.log is still kept open
  12333. # by configure, so config.status won't be able to write to it; its
  12334. # output is simply discarded. So we exec the FD to /dev/null,
  12335. # effectively closing config.log, so it can be properly (re)opened and
  12336. # appended to by config.status. When coming back to configure, we
  12337. # need to make the FD available again.
  12338. if test "$no_create" != yes; then
  12339. ac_cs_success=:
  12340. ac_config_status_args=
  12341. test "$silent" = yes &&
  12342. ac_config_status_args="$ac_config_status_args --quiet"
  12343. exec 5>/dev/null
  12344. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  12345. exec 5>>config.log
  12346. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  12347. # would make configure fail if this is the last instruction.
  12348. $ac_cs_success || as_fn_exit 1
  12349. fi
  12350. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  12351. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  12352. $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  12353. fi