configure 400 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342123431234412345123461234712348123491235012351123521235312354123551235612357123581235912360123611236212363123641236512366123671236812369123701237112372123731237412375123761237712378123791238012381123821238312384123851238612387123881238912390123911239212393123941239512396123971239812399124001240112402124031240412405124061240712408124091241012411124121241312414124151241612417124181241912420124211242212423124241242512426124271242812429124301243112432124331243412435124361243712438124391244012441124421244312444124451244612447124481244912450124511245212453124541245512456124571245812459124601246112462124631246412465124661246712468124691247012471124721247312474124751247612477124781247912480124811248212483124841248512486124871248812489124901249112492124931249412495124961249712498124991250012501125021250312504125051250612507125081250912510125111251212513125141251512516125171251812519125201252112522125231252412525125261252712528125291253012531125321253312534125351253612537125381253912540125411254212543125441254512546125471254812549125501255112552125531255412555125561255712558125591256012561125621256312564125651256612567125681256912570125711257212573125741257512576125771257812579125801258112582125831258412585125861258712588125891259012591125921259312594125951259612597125981259912600126011260212603126041260512606126071260812609126101261112612126131261412615126161261712618126191262012621126221262312624126251262612627126281262912630126311263212633126341263512636126371263812639126401264112642126431264412645126461264712648126491265012651126521265312654126551265612657126581265912660126611266212663126641266512666126671266812669126701267112672126731267412675126761267712678126791268012681126821268312684126851268612687126881268912690126911269212693126941269512696126971269812699127001270112702127031270412705127061270712708127091271012711127121271312714127151271612717127181271912720127211272212723127241272512726127271272812729127301273112732127331273412735127361273712738127391274012741127421274312744127451274612747127481274912750127511275212753127541275512756127571275812759127601276112762127631276412765127661276712768127691277012771127721277312774127751277612777127781277912780127811278212783127841278512786127871278812789127901279112792127931279412795127961279712798127991280012801128021280312804128051280612807128081280912810128111281212813128141281512816128171281812819128201282112822128231282412825128261282712828128291283012831128321283312834128351283612837128381283912840128411284212843128441284512846128471284812849128501285112852128531285412855128561285712858128591286012861128621286312864128651286612867128681286912870128711287212873128741287512876128771287812879128801288112882128831288412885128861288712888128891289012891128921289312894128951289612897128981289912900129011290212903129041290512906129071290812909129101291112912129131291412915129161291712918129191292012921129221292312924129251292612927129281292912930129311293212933129341293512936129371293812939129401294112942129431294412945129461294712948129491295012951129521295312954129551295612957129581295912960129611296212963129641296512966129671296812969129701297112972129731297412975129761297712978129791298012981129821298312984129851298612987129881298912990129911299212993129941299512996129971299812999130001300113002130031300413005130061300713008130091301013011130121301313014130151301613017130181301913020130211302213023130241302513026130271302813029130301303113032130331303413035130361303713038130391304013041130421304313044130451304613047130481304913050130511305213053130541305513056130571305813059130601306113062130631306413065130661306713068130691307013071130721307313074130751307613077130781307913080130811308213083130841308513086130871308813089130901309113092130931309413095130961309713098130991310013101131021310313104131051310613107131081310913110131111311213113131141311513116131171311813119131201312113122131231312413125131261312713128131291313013131131321313313134131351313613137131381313913140131411314213143131441314513146131471314813149131501315113152131531315413155131561315713158131591316013161131621316313164131651316613167131681316913170131711317213173131741317513176131771317813179131801318113182131831318413185131861318713188131891319013191131921319313194131951319613197131981319913200132011320213203132041320513206132071320813209132101321113212132131321413215132161321713218132191322013221132221322313224132251322613227132281322913230132311323213233132341323513236132371323813239132401324113242132431324413245132461324713248132491325013251132521325313254132551325613257132581325913260132611326213263132641326513266132671326813269132701327113272132731327413275132761327713278132791328013281132821328313284132851328613287132881328913290132911329213293132941329513296132971329813299133001330113302133031330413305133061330713308133091331013311133121331313314133151331613317133181331913320133211332213323133241332513326133271332813329133301333113332133331333413335133361333713338133391334013341133421334313344133451334613347133481334913350133511335213353133541335513356133571335813359133601336113362133631336413365133661336713368133691337013371133721337313374133751337613377133781337913380133811338213383133841338513386133871338813389133901339113392133931339413395133961339713398133991340013401134021340313404134051340613407134081340913410134111341213413134141341513416134171341813419134201342113422134231342413425134261342713428134291343013431134321343313434134351343613437134381343913440134411344213443134441344513446134471344813449134501345113452134531345413455134561345713458134591346013461134621346313464134651346613467134681346913470134711347213473134741347513476134771347813479134801348113482134831348413485134861348713488134891349013491134921349313494134951349613497134981349913500135011350213503135041350513506135071350813509135101351113512135131351413515135161351713518135191352013521135221352313524135251352613527135281352913530135311353213533135341353513536135371353813539135401354113542135431354413545135461354713548135491355013551135521355313554135551355613557135581355913560135611356213563135641356513566135671356813569135701357113572135731357413575135761357713578135791358013581135821358313584135851358613587135881358913590135911359213593135941359513596135971359813599136001360113602136031360413605136061360713608136091361013611136121361313614136151361613617136181361913620136211362213623136241362513626136271362813629136301363113632136331363413635136361363713638136391364013641136421364313644136451364613647136481364913650136511365213653136541365513656136571365813659136601366113662136631366413665136661366713668136691367013671136721367313674136751367613677136781367913680136811368213683136841368513686136871368813689136901369113692136931369413695136961369713698136991370013701137021370313704137051370613707137081370913710137111371213713137141371513716137171371813719137201372113722137231372413725137261372713728137291373013731137321373313734137351373613737137381373913740137411374213743137441374513746137471374813749137501375113752137531375413755137561375713758137591376013761137621376313764137651376613767137681376913770137711377213773137741377513776137771377813779137801378113782137831378413785137861378713788137891379013791137921379313794137951379613797137981379913800138011380213803138041380513806138071380813809138101381113812138131381413815138161381713818138191382013821138221382313824138251382613827138281382913830138311383213833138341383513836138371383813839138401384113842138431384413845138461384713848138491385013851138521385313854138551385613857138581385913860138611386213863138641386513866138671386813869138701387113872138731387413875138761387713878138791388013881138821388313884138851388613887138881388913890138911389213893138941389513896138971389813899139001390113902139031390413905139061390713908139091391013911139121391313914139151391613917139181391913920139211392213923139241392513926139271392813929139301393113932139331393413935139361393713938139391394013941139421394313944139451394613947139481394913950139511395213953139541395513956139571395813959139601396113962139631396413965139661396713968139691397013971139721397313974139751397613977139781397913980139811398213983139841398513986139871398813989139901399113992139931399413995139961399713998139991400014001140021400314004140051400614007140081400914010
  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.69 for package-unused version-unused.
  4. #
  5. #
  6. # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
  7. #
  8. #
  9. # This configure script is free software; the Free Software Foundation
  10. # gives unlimited permission to copy, distribute and modify it.
  11. ## -------------------- ##
  12. ## M4sh Initialization. ##
  13. ## -------------------- ##
  14. # Be more Bourne compatible
  15. DUALCASE=1; export DUALCASE # for MKS sh
  16. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  17. emulate sh
  18. NULLCMD=:
  19. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  20. # is contrary to our usage. Disable this feature.
  21. alias -g '${1+"$@"}'='"$@"'
  22. setopt NO_GLOB_SUBST
  23. else
  24. case `(set -o) 2>/dev/null` in #(
  25. *posix*) :
  26. set -o posix ;; #(
  27. *) :
  28. ;;
  29. esac
  30. fi
  31. as_nl='
  32. '
  33. export as_nl
  34. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  35. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  36. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  37. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  38. # Prefer a ksh shell builtin over an external printf program on Solaris,
  39. # but without wasting forks for bash or zsh.
  40. if test -z "$BASH_VERSION$ZSH_VERSION" \
  41. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  42. as_echo='print -r --'
  43. as_echo_n='print -rn --'
  44. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  45. as_echo='printf %s\n'
  46. as_echo_n='printf %s'
  47. else
  48. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  49. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  50. as_echo_n='/usr/ucb/echo -n'
  51. else
  52. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  53. as_echo_n_body='eval
  54. arg=$1;
  55. case $arg in #(
  56. *"$as_nl"*)
  57. expr "X$arg" : "X\\(.*\\)$as_nl";
  58. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  59. esac;
  60. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  61. '
  62. export as_echo_n_body
  63. as_echo_n='sh -c $as_echo_n_body as_echo'
  64. fi
  65. export as_echo_body
  66. as_echo='sh -c $as_echo_body as_echo'
  67. fi
  68. # The user is always right.
  69. if test "${PATH_SEPARATOR+set}" != set; then
  70. PATH_SEPARATOR=:
  71. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  72. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  73. PATH_SEPARATOR=';'
  74. }
  75. fi
  76. # IFS
  77. # We need space, tab and new line, in precisely that order. Quoting is
  78. # there to prevent editors from complaining about space-tab.
  79. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  80. # splitting by setting IFS to empty value.)
  81. IFS=" "" $as_nl"
  82. # Find who we are. Look in the path if we contain no directory separator.
  83. as_myself=
  84. case $0 in #((
  85. *[\\/]* ) as_myself=$0 ;;
  86. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  87. for as_dir in $PATH
  88. do
  89. IFS=$as_save_IFS
  90. test -z "$as_dir" && as_dir=.
  91. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  92. done
  93. IFS=$as_save_IFS
  94. ;;
  95. esac
  96. # We did not find ourselves, most probably we were run as `sh COMMAND'
  97. # in which case we are not to be found in the path.
  98. if test "x$as_myself" = x; then
  99. as_myself=$0
  100. fi
  101. if test ! -f "$as_myself"; then
  102. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  103. exit 1
  104. fi
  105. # Unset variables that we do not need and which cause bugs (e.g. in
  106. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  107. # suppresses any "Segmentation fault" message there. '((' could
  108. # trigger a bug in pdksh 5.2.14.
  109. for as_var in BASH_ENV ENV MAIL MAILPATH
  110. do eval test x\${$as_var+set} = xset \
  111. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  112. done
  113. PS1='$ '
  114. PS2='> '
  115. PS4='+ '
  116. # NLS nuisances.
  117. LC_ALL=C
  118. export LC_ALL
  119. LANGUAGE=C
  120. export LANGUAGE
  121. # CDPATH.
  122. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  123. # Use a proper internal environment variable to ensure we don't fall
  124. # into an infinite loop, continuously re-executing ourselves.
  125. if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
  126. _as_can_reexec=no; export _as_can_reexec;
  127. # We cannot yet assume a decent shell, so we have to provide a
  128. # neutralization value for shells without unset; and this also
  129. # works around shells that cannot unset nonexistent variables.
  130. # Preserve -v and -x to the replacement shell.
  131. BASH_ENV=/dev/null
  132. ENV=/dev/null
  133. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  134. case $- in # ((((
  135. *v*x* | *x*v* ) as_opts=-vx ;;
  136. *v* ) as_opts=-v ;;
  137. *x* ) as_opts=-x ;;
  138. * ) as_opts= ;;
  139. esac
  140. exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
  141. # Admittedly, this is quite paranoid, since all the known shells bail
  142. # out after a failed `exec'.
  143. $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
  144. as_fn_exit 255
  145. fi
  146. # We don't want this to propagate to other subprocesses.
  147. { _as_can_reexec=; unset _as_can_reexec;}
  148. if test "x$CONFIG_SHELL" = x; then
  149. as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
  150. emulate sh
  151. NULLCMD=:
  152. # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
  153. # is contrary to our usage. Disable this feature.
  154. alias -g '\${1+\"\$@\"}'='\"\$@\"'
  155. setopt NO_GLOB_SUBST
  156. else
  157. case \`(set -o) 2>/dev/null\` in #(
  158. *posix*) :
  159. set -o posix ;; #(
  160. *) :
  161. ;;
  162. esac
  163. fi
  164. "
  165. as_required="as_fn_return () { (exit \$1); }
  166. as_fn_success () { as_fn_return 0; }
  167. as_fn_failure () { as_fn_return 1; }
  168. as_fn_ret_success () { return 0; }
  169. as_fn_ret_failure () { return 1; }
  170. exitcode=0
  171. as_fn_success || { exitcode=1; echo as_fn_success failed.; }
  172. as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
  173. as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
  174. as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
  175. if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
  176. else
  177. exitcode=1; echo positional parameters were not saved.
  178. fi
  179. test x\$exitcode = x0 || exit 1
  180. test -x / || exit 1"
  181. as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
  182. as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
  183. eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
  184. test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
  185. test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
  186. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  187. ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
  188. ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
  189. PATH=/empty FPATH=/empty; export PATH FPATH
  190. test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
  191. || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
  192. test \$(( 1 + 1 )) = 2 || exit 1"
  193. if (eval "$as_required") 2>/dev/null; then :
  194. as_have_required=yes
  195. else
  196. as_have_required=no
  197. fi
  198. if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
  199. else
  200. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  201. as_found=false
  202. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  203. do
  204. IFS=$as_save_IFS
  205. test -z "$as_dir" && as_dir=.
  206. as_found=:
  207. case $as_dir in #(
  208. /*)
  209. for as_base in sh bash ksh sh5; do
  210. # Try only shells that exist, to save several forks.
  211. as_shell=$as_dir/$as_base
  212. if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
  213. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
  214. CONFIG_SHELL=$as_shell as_have_required=yes
  215. if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
  216. break 2
  217. fi
  218. fi
  219. done;;
  220. esac
  221. as_found=false
  222. done
  223. $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
  224. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
  225. CONFIG_SHELL=$SHELL as_have_required=yes
  226. fi; }
  227. IFS=$as_save_IFS
  228. if test "x$CONFIG_SHELL" != x; then :
  229. export CONFIG_SHELL
  230. # We cannot yet assume a decent shell, so we have to provide a
  231. # neutralization value for shells without unset; and this also
  232. # works around shells that cannot unset nonexistent variables.
  233. # Preserve -v and -x to the replacement shell.
  234. BASH_ENV=/dev/null
  235. ENV=/dev/null
  236. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  237. case $- in # ((((
  238. *v*x* | *x*v* ) as_opts=-vx ;;
  239. *v* ) as_opts=-v ;;
  240. *x* ) as_opts=-x ;;
  241. * ) as_opts= ;;
  242. esac
  243. exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
  244. # Admittedly, this is quite paranoid, since all the known shells bail
  245. # out after a failed `exec'.
  246. $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
  247. exit 255
  248. fi
  249. if test x$as_have_required = xno; then :
  250. $as_echo "$0: This script requires a shell more modern than all"
  251. $as_echo "$0: the shells that I found on your system."
  252. if test x${ZSH_VERSION+set} = xset ; then
  253. $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
  254. $as_echo "$0: be upgraded to zsh 4.3.4 or later."
  255. else
  256. $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
  257. $0: including any error possibly output before this
  258. $0: message. Then install a modern shell, or manually run
  259. $0: the script under such a shell if you do have one."
  260. fi
  261. exit 1
  262. fi
  263. fi
  264. fi
  265. SHELL=${CONFIG_SHELL-/bin/sh}
  266. export SHELL
  267. # Unset more variables known to interfere with behavior of common tools.
  268. CLICOLOR_FORCE= GREP_OPTIONS=
  269. unset CLICOLOR_FORCE GREP_OPTIONS
  270. ## --------------------- ##
  271. ## M4sh Shell Functions. ##
  272. ## --------------------- ##
  273. # as_fn_unset VAR
  274. # ---------------
  275. # Portably unset VAR.
  276. as_fn_unset ()
  277. {
  278. { eval $1=; unset $1;}
  279. }
  280. as_unset=as_fn_unset
  281. # as_fn_set_status STATUS
  282. # -----------------------
  283. # Set $? to STATUS, without forking.
  284. as_fn_set_status ()
  285. {
  286. return $1
  287. } # as_fn_set_status
  288. # as_fn_exit STATUS
  289. # -----------------
  290. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  291. as_fn_exit ()
  292. {
  293. set +e
  294. as_fn_set_status $1
  295. exit $1
  296. } # as_fn_exit
  297. # as_fn_mkdir_p
  298. # -------------
  299. # Create "$as_dir" as a directory, including parents if necessary.
  300. as_fn_mkdir_p ()
  301. {
  302. case $as_dir in #(
  303. -*) as_dir=./$as_dir;;
  304. esac
  305. test -d "$as_dir" || eval $as_mkdir_p || {
  306. as_dirs=
  307. while :; do
  308. case $as_dir in #(
  309. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  310. *) as_qdir=$as_dir;;
  311. esac
  312. as_dirs="'$as_qdir' $as_dirs"
  313. as_dir=`$as_dirname -- "$as_dir" ||
  314. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  315. X"$as_dir" : 'X\(//\)[^/]' \| \
  316. X"$as_dir" : 'X\(//\)$' \| \
  317. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  318. $as_echo X"$as_dir" |
  319. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  320. s//\1/
  321. q
  322. }
  323. /^X\(\/\/\)[^/].*/{
  324. s//\1/
  325. q
  326. }
  327. /^X\(\/\/\)$/{
  328. s//\1/
  329. q
  330. }
  331. /^X\(\/\).*/{
  332. s//\1/
  333. q
  334. }
  335. s/.*/./; q'`
  336. test -d "$as_dir" && break
  337. done
  338. test -z "$as_dirs" || eval "mkdir $as_dirs"
  339. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  340. } # as_fn_mkdir_p
  341. # as_fn_executable_p FILE
  342. # -----------------------
  343. # Test if FILE is an executable regular file.
  344. as_fn_executable_p ()
  345. {
  346. test -f "$1" && test -x "$1"
  347. } # as_fn_executable_p
  348. # as_fn_append VAR VALUE
  349. # ----------------------
  350. # Append the text in VALUE to the end of the definition contained in VAR. Take
  351. # advantage of any shell optimizations that allow amortized linear growth over
  352. # repeated appends, instead of the typical quadratic growth present in naive
  353. # implementations.
  354. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  355. eval 'as_fn_append ()
  356. {
  357. eval $1+=\$2
  358. }'
  359. else
  360. as_fn_append ()
  361. {
  362. eval $1=\$$1\$2
  363. }
  364. fi # as_fn_append
  365. # as_fn_arith ARG...
  366. # ------------------
  367. # Perform arithmetic evaluation on the ARGs, and store the result in the
  368. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  369. # must be portable across $(()) and expr.
  370. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  371. eval 'as_fn_arith ()
  372. {
  373. as_val=$(( $* ))
  374. }'
  375. else
  376. as_fn_arith ()
  377. {
  378. as_val=`expr "$@" || test $? -eq 1`
  379. }
  380. fi # as_fn_arith
  381. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  382. # ----------------------------------------
  383. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  384. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  385. # script with STATUS, using 1 if that was 0.
  386. as_fn_error ()
  387. {
  388. as_status=$1; test $as_status -eq 0 && as_status=1
  389. if test "$4"; then
  390. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  391. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  392. fi
  393. $as_echo "$as_me: error: $2" >&2
  394. as_fn_exit $as_status
  395. } # as_fn_error
  396. if expr a : '\(a\)' >/dev/null 2>&1 &&
  397. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  398. as_expr=expr
  399. else
  400. as_expr=false
  401. fi
  402. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  403. as_basename=basename
  404. else
  405. as_basename=false
  406. fi
  407. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  408. as_dirname=dirname
  409. else
  410. as_dirname=false
  411. fi
  412. as_me=`$as_basename -- "$0" ||
  413. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  414. X"$0" : 'X\(//\)$' \| \
  415. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  416. $as_echo X/"$0" |
  417. sed '/^.*\/\([^/][^/]*\)\/*$/{
  418. s//\1/
  419. q
  420. }
  421. /^X\/\(\/\/\)$/{
  422. s//\1/
  423. q
  424. }
  425. /^X\/\(\/\).*/{
  426. s//\1/
  427. q
  428. }
  429. s/.*/./; q'`
  430. # Avoid depending upon Character Ranges.
  431. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  432. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  433. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  434. as_cr_digits='0123456789'
  435. as_cr_alnum=$as_cr_Letters$as_cr_digits
  436. as_lineno_1=$LINENO as_lineno_1a=$LINENO
  437. as_lineno_2=$LINENO as_lineno_2a=$LINENO
  438. eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
  439. test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
  440. # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
  441. sed -n '
  442. p
  443. /[$]LINENO/=
  444. ' <$as_myself |
  445. sed '
  446. s/[$]LINENO.*/&-/
  447. t lineno
  448. b
  449. :lineno
  450. N
  451. :loop
  452. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  453. t loop
  454. s/-\n.*//
  455. ' >$as_me.lineno &&
  456. chmod +x "$as_me.lineno" ||
  457. { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
  458. # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
  459. # already done that, so ensure we don't try to do so again and fall
  460. # in an infinite loop. This has already happened in practice.
  461. _as_can_reexec=no; export _as_can_reexec
  462. # Don't try to exec as it changes $[0], causing all sort of problems
  463. # (the dirname of $[0] is not the place where we might find the
  464. # original and so on. Autoconf is especially sensitive to this).
  465. . "./$as_me.lineno"
  466. # Exit status is that of the last command.
  467. exit
  468. }
  469. ECHO_C= ECHO_N= ECHO_T=
  470. case `echo -n x` in #(((((
  471. -n*)
  472. case `echo 'xy\c'` in
  473. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  474. xy) ECHO_C='\c';;
  475. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  476. ECHO_T=' ';;
  477. esac;;
  478. *)
  479. ECHO_N='-n';;
  480. esac
  481. rm -f conf$$ conf$$.exe conf$$.file
  482. if test -d conf$$.dir; then
  483. rm -f conf$$.dir/conf$$.file
  484. else
  485. rm -f conf$$.dir
  486. mkdir conf$$.dir 2>/dev/null
  487. fi
  488. if (echo >conf$$.file) 2>/dev/null; then
  489. if ln -s conf$$.file conf$$ 2>/dev/null; then
  490. as_ln_s='ln -s'
  491. # ... but there are two gotchas:
  492. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  493. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  494. # In both cases, we have to default to `cp -pR'.
  495. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  496. as_ln_s='cp -pR'
  497. elif ln conf$$.file conf$$ 2>/dev/null; then
  498. as_ln_s=ln
  499. else
  500. as_ln_s='cp -pR'
  501. fi
  502. else
  503. as_ln_s='cp -pR'
  504. fi
  505. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  506. rmdir conf$$.dir 2>/dev/null
  507. if mkdir -p . 2>/dev/null; then
  508. as_mkdir_p='mkdir -p "$as_dir"'
  509. else
  510. test -d ./-p && rmdir ./-p
  511. as_mkdir_p=false
  512. fi
  513. as_test_x='test -x'
  514. as_executable_p=as_fn_executable_p
  515. # Sed expression to map a string onto a valid CPP name.
  516. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  517. # Sed expression to map a string onto a valid variable name.
  518. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  519. SHELL=${CONFIG_SHELL-/bin/sh}
  520. test -n "$DJDIR" || exec 7<&0 </dev/null
  521. exec 6>&1
  522. # Name of the host.
  523. # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
  524. # so uname gets run too.
  525. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  526. #
  527. # Initializations.
  528. #
  529. ac_default_prefix=/usr/local
  530. ac_clean_files=
  531. ac_config_libobj_dir=.
  532. LIBOBJS=
  533. cross_compiling=no
  534. subdirs=
  535. MFLAGS=
  536. MAKEFLAGS=
  537. # Identity of this package.
  538. PACKAGE_NAME='package-unused'
  539. PACKAGE_TARNAME='libobjc'
  540. PACKAGE_VERSION='version-unused'
  541. PACKAGE_STRING='package-unused version-unused'
  542. PACKAGE_BUGREPORT=''
  543. PACKAGE_URL=''
  544. ac_unique_file="objc/objc.h"
  545. # Factoring default headers for most tests.
  546. ac_includes_default="\
  547. #include <stdio.h>
  548. #ifdef HAVE_SYS_TYPES_H
  549. # include <sys/types.h>
  550. #endif
  551. #ifdef HAVE_SYS_STAT_H
  552. # include <sys/stat.h>
  553. #endif
  554. #ifdef STDC_HEADERS
  555. # include <stdlib.h>
  556. # include <stddef.h>
  557. #else
  558. # ifdef HAVE_STDLIB_H
  559. # include <stdlib.h>
  560. # endif
  561. #endif
  562. #ifdef HAVE_STRING_H
  563. # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
  564. # include <memory.h>
  565. # endif
  566. # include <string.h>
  567. #endif
  568. #ifdef HAVE_STRINGS_H
  569. # include <strings.h>
  570. #endif
  571. #ifdef HAVE_INTTYPES_H
  572. # include <inttypes.h>
  573. #endif
  574. #ifdef HAVE_STDINT_H
  575. # include <stdint.h>
  576. #endif
  577. #ifdef HAVE_UNISTD_H
  578. # include <unistd.h>
  579. #endif"
  580. ac_subst_vars='LTLIBOBJS
  581. LIBOBJS
  582. get_gcc_base_ver
  583. OBJC_BOEHM_GC_LIBS
  584. OBJC_BOEHM_GC_INCLUDES
  585. OBJC_BOEHM_GC
  586. OBJC_GCFLAGS
  587. SET_MAKE
  588. CPP
  589. OTOOL64
  590. OTOOL
  591. LIPO
  592. NMEDIT
  593. DSYMUTIL
  594. AWK
  595. STRIP
  596. LN_S
  597. NM
  598. ac_ct_DUMPBIN
  599. DUMPBIN
  600. LD
  601. FGREP
  602. EGREP
  603. GREP
  604. SED
  605. LIBTOOL
  606. OBJDUMP
  607. DLLTOOL
  608. MAINT
  609. MAINTAINER_MODE_FALSE
  610. MAINTAINER_MODE_TRUE
  611. INSTALL_DATA
  612. INSTALL_SCRIPT
  613. INSTALL_PROGRAM
  614. RANLIB
  615. AR
  616. AS
  617. XCFLAGS
  618. extra_ldflags_libobjc
  619. lt_host_flags
  620. OBJEXT
  621. EXEEXT
  622. ac_ct_CC
  623. CPPFLAGS
  624. LDFLAGS
  625. CFLAGS
  626. CC
  627. libsuffix
  628. includedirname
  629. toolexeclibdir
  630. toolexecdir
  631. glibcpp_srcdir
  632. target_noncanonical
  633. target_os
  634. target_vendor
  635. target_cpu
  636. target
  637. host_os
  638. host_vendor
  639. host_cpu
  640. host
  641. multi_basedir
  642. VERSION
  643. target_subdir
  644. host_subdir
  645. build_subdir
  646. build_libsubdir
  647. build_os
  648. build_vendor
  649. build_cpu
  650. build
  651. target_alias
  652. host_alias
  653. build_alias
  654. LIBS
  655. ECHO_T
  656. ECHO_N
  657. ECHO_C
  658. DEFS
  659. mandir
  660. localedir
  661. libdir
  662. psdir
  663. pdfdir
  664. dvidir
  665. htmldir
  666. infodir
  667. docdir
  668. oldincludedir
  669. includedir
  670. localstatedir
  671. sharedstatedir
  672. sysconfdir
  673. datadir
  674. datarootdir
  675. libexecdir
  676. sbindir
  677. bindir
  678. program_transform_name
  679. prefix
  680. exec_prefix
  681. PACKAGE_URL
  682. PACKAGE_BUGREPORT
  683. PACKAGE_STRING
  684. PACKAGE_VERSION
  685. PACKAGE_TARNAME
  686. PACKAGE_NAME
  687. PATH_SEPARATOR
  688. SHELL'
  689. ac_subst_files=''
  690. ac_user_opts='
  691. enable_option_checking
  692. with_build_libsubdir
  693. with_target_subdir
  694. with_cross_host
  695. enable_version_specific_runtime_libs
  696. enable_multilib
  697. with_toolexeclibdir
  698. enable_cet
  699. enable_maintainer_mode
  700. enable_shared
  701. enable_static
  702. with_pic
  703. enable_fast_install
  704. with_gnu_ld
  705. enable_libtool_lock
  706. enable_tls
  707. enable_objc_gc
  708. with_target_bdw_gc
  709. with_target_bdw_gc_include
  710. with_target_bdw_gc_lib
  711. with_gcc_major_version_only
  712. '
  713. ac_precious_vars='build_alias
  714. host_alias
  715. target_alias
  716. CPP
  717. CPPFLAGS'
  718. # Initialize some variables set by options.
  719. ac_init_help=
  720. ac_init_version=false
  721. ac_unrecognized_opts=
  722. ac_unrecognized_sep=
  723. # The variables have the same names as the options, with
  724. # dashes changed to underlines.
  725. cache_file=/dev/null
  726. exec_prefix=NONE
  727. no_create=
  728. no_recursion=
  729. prefix=NONE
  730. program_prefix=NONE
  731. program_suffix=NONE
  732. program_transform_name=s,x,x,
  733. silent=
  734. site=
  735. srcdir=
  736. verbose=
  737. x_includes=NONE
  738. x_libraries=NONE
  739. # Installation directory options.
  740. # These are left unexpanded so users can "make install exec_prefix=/foo"
  741. # and all the variables that are supposed to be based on exec_prefix
  742. # by default will actually change.
  743. # Use braces instead of parens because sh, perl, etc. also accept them.
  744. # (The list follows the same order as the GNU Coding Standards.)
  745. bindir='${exec_prefix}/bin'
  746. sbindir='${exec_prefix}/sbin'
  747. libexecdir='${exec_prefix}/libexec'
  748. datarootdir='${prefix}/share'
  749. datadir='${datarootdir}'
  750. sysconfdir='${prefix}/etc'
  751. sharedstatedir='${prefix}/com'
  752. localstatedir='${prefix}/var'
  753. includedir='${prefix}/include'
  754. oldincludedir='/usr/include'
  755. docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
  756. infodir='${datarootdir}/info'
  757. htmldir='${docdir}'
  758. dvidir='${docdir}'
  759. pdfdir='${docdir}'
  760. psdir='${docdir}'
  761. libdir='${exec_prefix}/lib'
  762. localedir='${datarootdir}/locale'
  763. mandir='${datarootdir}/man'
  764. ac_prev=
  765. ac_dashdash=
  766. for ac_option
  767. do
  768. # If the previous option needs an argument, assign it.
  769. if test -n "$ac_prev"; then
  770. eval $ac_prev=\$ac_option
  771. ac_prev=
  772. continue
  773. fi
  774. case $ac_option in
  775. *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  776. *=) ac_optarg= ;;
  777. *) ac_optarg=yes ;;
  778. esac
  779. # Accept the important Cygnus configure options, so we can diagnose typos.
  780. case $ac_dashdash$ac_option in
  781. --)
  782. ac_dashdash=yes ;;
  783. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  784. ac_prev=bindir ;;
  785. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  786. bindir=$ac_optarg ;;
  787. -build | --build | --buil | --bui | --bu)
  788. ac_prev=build_alias ;;
  789. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  790. build_alias=$ac_optarg ;;
  791. -cache-file | --cache-file | --cache-fil | --cache-fi \
  792. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  793. ac_prev=cache_file ;;
  794. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  795. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  796. cache_file=$ac_optarg ;;
  797. --config-cache | -C)
  798. cache_file=config.cache ;;
  799. -datadir | --datadir | --datadi | --datad)
  800. ac_prev=datadir ;;
  801. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  802. datadir=$ac_optarg ;;
  803. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  804. | --dataroo | --dataro | --datar)
  805. ac_prev=datarootdir ;;
  806. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  807. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  808. datarootdir=$ac_optarg ;;
  809. -disable-* | --disable-*)
  810. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  811. # Reject names that are not valid shell variable names.
  812. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  813. as_fn_error $? "invalid feature name: $ac_useropt"
  814. ac_useropt_orig=$ac_useropt
  815. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  816. case $ac_user_opts in
  817. *"
  818. "enable_$ac_useropt"
  819. "*) ;;
  820. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  821. ac_unrecognized_sep=', ';;
  822. esac
  823. eval enable_$ac_useropt=no ;;
  824. -docdir | --docdir | --docdi | --doc | --do)
  825. ac_prev=docdir ;;
  826. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  827. docdir=$ac_optarg ;;
  828. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  829. ac_prev=dvidir ;;
  830. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  831. dvidir=$ac_optarg ;;
  832. -enable-* | --enable-*)
  833. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  834. # Reject names that are not valid shell variable names.
  835. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  836. as_fn_error $? "invalid feature name: $ac_useropt"
  837. ac_useropt_orig=$ac_useropt
  838. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  839. case $ac_user_opts in
  840. *"
  841. "enable_$ac_useropt"
  842. "*) ;;
  843. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  844. ac_unrecognized_sep=', ';;
  845. esac
  846. eval enable_$ac_useropt=\$ac_optarg ;;
  847. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  848. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  849. | --exec | --exe | --ex)
  850. ac_prev=exec_prefix ;;
  851. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  852. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  853. | --exec=* | --exe=* | --ex=*)
  854. exec_prefix=$ac_optarg ;;
  855. -gas | --gas | --ga | --g)
  856. # Obsolete; use --with-gas.
  857. with_gas=yes ;;
  858. -help | --help | --hel | --he | -h)
  859. ac_init_help=long ;;
  860. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  861. ac_init_help=recursive ;;
  862. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  863. ac_init_help=short ;;
  864. -host | --host | --hos | --ho)
  865. ac_prev=host_alias ;;
  866. -host=* | --host=* | --hos=* | --ho=*)
  867. host_alias=$ac_optarg ;;
  868. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  869. ac_prev=htmldir ;;
  870. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  871. | --ht=*)
  872. htmldir=$ac_optarg ;;
  873. -includedir | --includedir | --includedi | --included | --include \
  874. | --includ | --inclu | --incl | --inc)
  875. ac_prev=includedir ;;
  876. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  877. | --includ=* | --inclu=* | --incl=* | --inc=*)
  878. includedir=$ac_optarg ;;
  879. -infodir | --infodir | --infodi | --infod | --info | --inf)
  880. ac_prev=infodir ;;
  881. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  882. infodir=$ac_optarg ;;
  883. -libdir | --libdir | --libdi | --libd)
  884. ac_prev=libdir ;;
  885. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  886. libdir=$ac_optarg ;;
  887. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  888. | --libexe | --libex | --libe)
  889. ac_prev=libexecdir ;;
  890. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  891. | --libexe=* | --libex=* | --libe=*)
  892. libexecdir=$ac_optarg ;;
  893. -localedir | --localedir | --localedi | --localed | --locale)
  894. ac_prev=localedir ;;
  895. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  896. localedir=$ac_optarg ;;
  897. -localstatedir | --localstatedir | --localstatedi | --localstated \
  898. | --localstate | --localstat | --localsta | --localst | --locals)
  899. ac_prev=localstatedir ;;
  900. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  901. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  902. localstatedir=$ac_optarg ;;
  903. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  904. ac_prev=mandir ;;
  905. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  906. mandir=$ac_optarg ;;
  907. -nfp | --nfp | --nf)
  908. # Obsolete; use --without-fp.
  909. with_fp=no ;;
  910. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  911. | --no-cr | --no-c | -n)
  912. no_create=yes ;;
  913. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  914. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  915. no_recursion=yes ;;
  916. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  917. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  918. | --oldin | --oldi | --old | --ol | --o)
  919. ac_prev=oldincludedir ;;
  920. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  921. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  922. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  923. oldincludedir=$ac_optarg ;;
  924. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  925. ac_prev=prefix ;;
  926. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  927. prefix=$ac_optarg ;;
  928. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  929. | --program-pre | --program-pr | --program-p)
  930. ac_prev=program_prefix ;;
  931. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  932. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  933. program_prefix=$ac_optarg ;;
  934. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  935. | --program-suf | --program-su | --program-s)
  936. ac_prev=program_suffix ;;
  937. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  938. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  939. program_suffix=$ac_optarg ;;
  940. -program-transform-name | --program-transform-name \
  941. | --program-transform-nam | --program-transform-na \
  942. | --program-transform-n | --program-transform- \
  943. | --program-transform | --program-transfor \
  944. | --program-transfo | --program-transf \
  945. | --program-trans | --program-tran \
  946. | --progr-tra | --program-tr | --program-t)
  947. ac_prev=program_transform_name ;;
  948. -program-transform-name=* | --program-transform-name=* \
  949. | --program-transform-nam=* | --program-transform-na=* \
  950. | --program-transform-n=* | --program-transform-=* \
  951. | --program-transform=* | --program-transfor=* \
  952. | --program-transfo=* | --program-transf=* \
  953. | --program-trans=* | --program-tran=* \
  954. | --progr-tra=* | --program-tr=* | --program-t=*)
  955. program_transform_name=$ac_optarg ;;
  956. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  957. ac_prev=pdfdir ;;
  958. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  959. pdfdir=$ac_optarg ;;
  960. -psdir | --psdir | --psdi | --psd | --ps)
  961. ac_prev=psdir ;;
  962. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  963. psdir=$ac_optarg ;;
  964. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  965. | -silent | --silent | --silen | --sile | --sil)
  966. silent=yes ;;
  967. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  968. ac_prev=sbindir ;;
  969. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  970. | --sbi=* | --sb=*)
  971. sbindir=$ac_optarg ;;
  972. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  973. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  974. | --sharedst | --shareds | --shared | --share | --shar \
  975. | --sha | --sh)
  976. ac_prev=sharedstatedir ;;
  977. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  978. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  979. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  980. | --sha=* | --sh=*)
  981. sharedstatedir=$ac_optarg ;;
  982. -site | --site | --sit)
  983. ac_prev=site ;;
  984. -site=* | --site=* | --sit=*)
  985. site=$ac_optarg ;;
  986. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  987. ac_prev=srcdir ;;
  988. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  989. srcdir=$ac_optarg ;;
  990. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  991. | --syscon | --sysco | --sysc | --sys | --sy)
  992. ac_prev=sysconfdir ;;
  993. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  994. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  995. sysconfdir=$ac_optarg ;;
  996. -target | --target | --targe | --targ | --tar | --ta | --t)
  997. ac_prev=target_alias ;;
  998. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  999. target_alias=$ac_optarg ;;
  1000. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  1001. verbose=yes ;;
  1002. -version | --version | --versio | --versi | --vers | -V)
  1003. ac_init_version=: ;;
  1004. -with-* | --with-*)
  1005. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1006. # Reject names that are not valid shell variable names.
  1007. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1008. as_fn_error $? "invalid package name: $ac_useropt"
  1009. ac_useropt_orig=$ac_useropt
  1010. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1011. case $ac_user_opts in
  1012. *"
  1013. "with_$ac_useropt"
  1014. "*) ;;
  1015. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  1016. ac_unrecognized_sep=', ';;
  1017. esac
  1018. eval with_$ac_useropt=\$ac_optarg ;;
  1019. -without-* | --without-*)
  1020. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1021. # Reject names that are not valid shell variable names.
  1022. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1023. as_fn_error $? "invalid package name: $ac_useropt"
  1024. ac_useropt_orig=$ac_useropt
  1025. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1026. case $ac_user_opts in
  1027. *"
  1028. "with_$ac_useropt"
  1029. "*) ;;
  1030. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  1031. ac_unrecognized_sep=', ';;
  1032. esac
  1033. eval with_$ac_useropt=no ;;
  1034. --x)
  1035. # Obsolete; use --with-x.
  1036. with_x=yes ;;
  1037. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1038. | --x-incl | --x-inc | --x-in | --x-i)
  1039. ac_prev=x_includes ;;
  1040. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1041. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1042. x_includes=$ac_optarg ;;
  1043. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1044. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1045. ac_prev=x_libraries ;;
  1046. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1047. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1048. x_libraries=$ac_optarg ;;
  1049. -*) as_fn_error $? "unrecognized option: \`$ac_option'
  1050. Try \`$0 --help' for more information"
  1051. ;;
  1052. *=*)
  1053. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1054. # Reject names that are not valid shell variable names.
  1055. case $ac_envvar in #(
  1056. '' | [0-9]* | *[!_$as_cr_alnum]* )
  1057. as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
  1058. esac
  1059. eval $ac_envvar=\$ac_optarg
  1060. export $ac_envvar ;;
  1061. *)
  1062. # FIXME: should be removed in autoconf 3.0.
  1063. $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1064. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1065. $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1066. : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
  1067. ;;
  1068. esac
  1069. done
  1070. if test -n "$ac_prev"; then
  1071. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1072. as_fn_error $? "missing argument to $ac_option"
  1073. fi
  1074. if test -n "$ac_unrecognized_opts"; then
  1075. case $enable_option_checking in
  1076. no) ;;
  1077. fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
  1078. *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1079. esac
  1080. fi
  1081. # Check all directory arguments for consistency.
  1082. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1083. datadir sysconfdir sharedstatedir localstatedir includedir \
  1084. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1085. libdir localedir mandir
  1086. do
  1087. eval ac_val=\$$ac_var
  1088. # Remove trailing slashes.
  1089. case $ac_val in
  1090. */ )
  1091. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1092. eval $ac_var=\$ac_val;;
  1093. esac
  1094. # Be sure to have absolute directory names.
  1095. case $ac_val in
  1096. [\\/$]* | ?:[\\/]* ) continue;;
  1097. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1098. esac
  1099. as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
  1100. done
  1101. # There might be people who depend on the old broken behavior: `$host'
  1102. # used to hold the argument of --host etc.
  1103. # FIXME: To remove some day.
  1104. build=$build_alias
  1105. host=$host_alias
  1106. target=$target_alias
  1107. # FIXME: To remove some day.
  1108. if test "x$host_alias" != x; then
  1109. if test "x$build_alias" = x; then
  1110. cross_compiling=maybe
  1111. elif test "x$build_alias" != "x$host_alias"; then
  1112. cross_compiling=yes
  1113. fi
  1114. fi
  1115. ac_tool_prefix=
  1116. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1117. test "$silent" = yes && exec 6>/dev/null
  1118. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1119. ac_ls_di=`ls -di .` &&
  1120. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1121. as_fn_error $? "working directory cannot be determined"
  1122. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1123. as_fn_error $? "pwd does not report name of working directory"
  1124. # Find the source files, if location was not specified.
  1125. if test -z "$srcdir"; then
  1126. ac_srcdir_defaulted=yes
  1127. # Try the directory containing this script, then the parent directory.
  1128. ac_confdir=`$as_dirname -- "$as_myself" ||
  1129. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1130. X"$as_myself" : 'X\(//\)[^/]' \| \
  1131. X"$as_myself" : 'X\(//\)$' \| \
  1132. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1133. $as_echo X"$as_myself" |
  1134. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1135. s//\1/
  1136. q
  1137. }
  1138. /^X\(\/\/\)[^/].*/{
  1139. s//\1/
  1140. q
  1141. }
  1142. /^X\(\/\/\)$/{
  1143. s//\1/
  1144. q
  1145. }
  1146. /^X\(\/\).*/{
  1147. s//\1/
  1148. q
  1149. }
  1150. s/.*/./; q'`
  1151. srcdir=$ac_confdir
  1152. if test ! -r "$srcdir/$ac_unique_file"; then
  1153. srcdir=..
  1154. fi
  1155. else
  1156. ac_srcdir_defaulted=no
  1157. fi
  1158. if test ! -r "$srcdir/$ac_unique_file"; then
  1159. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1160. as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
  1161. fi
  1162. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1163. ac_abs_confdir=`(
  1164. cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
  1165. pwd)`
  1166. # When building in place, set srcdir=.
  1167. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1168. srcdir=.
  1169. fi
  1170. # Remove unnecessary trailing slashes from srcdir.
  1171. # Double slashes in file names in object file debugging info
  1172. # mess up M-x gdb in Emacs.
  1173. case $srcdir in
  1174. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1175. esac
  1176. for ac_var in $ac_precious_vars; do
  1177. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1178. eval ac_env_${ac_var}_value=\$${ac_var}
  1179. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1180. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1181. done
  1182. #
  1183. # Report the --help message.
  1184. #
  1185. if test "$ac_init_help" = "long"; then
  1186. # Omit some internal or obsolete options to make the list less imposing.
  1187. # This message is too long to be a string in the A/UX 3.1 sh.
  1188. cat <<_ACEOF
  1189. \`configure' configures package-unused version-unused to adapt to many kinds of systems.
  1190. Usage: $0 [OPTION]... [VAR=VALUE]...
  1191. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1192. VAR=VALUE. See below for descriptions of some of the useful variables.
  1193. Defaults for the options are specified in brackets.
  1194. Configuration:
  1195. -h, --help display this help and exit
  1196. --help=short display options specific to this package
  1197. --help=recursive display the short help of all the included packages
  1198. -V, --version display version information and exit
  1199. -q, --quiet, --silent do not print \`checking ...' messages
  1200. --cache-file=FILE cache test results in FILE [disabled]
  1201. -C, --config-cache alias for \`--cache-file=config.cache'
  1202. -n, --no-create do not create output files
  1203. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1204. Installation directories:
  1205. --prefix=PREFIX install architecture-independent files in PREFIX
  1206. [$ac_default_prefix]
  1207. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1208. [PREFIX]
  1209. By default, \`make install' will install all the files in
  1210. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1211. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1212. for instance \`--prefix=\$HOME'.
  1213. For better control, use the options below.
  1214. Fine tuning of the installation directories:
  1215. --bindir=DIR user executables [EPREFIX/bin]
  1216. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1217. --libexecdir=DIR program executables [EPREFIX/libexec]
  1218. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1219. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1220. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1221. --libdir=DIR object code libraries [EPREFIX/lib]
  1222. --includedir=DIR C header files [PREFIX/include]
  1223. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1224. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1225. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1226. --infodir=DIR info documentation [DATAROOTDIR/info]
  1227. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1228. --mandir=DIR man documentation [DATAROOTDIR/man]
  1229. --docdir=DIR documentation root [DATAROOTDIR/doc/libobjc]
  1230. --htmldir=DIR html documentation [DOCDIR]
  1231. --dvidir=DIR dvi documentation [DOCDIR]
  1232. --pdfdir=DIR pdf documentation [DOCDIR]
  1233. --psdir=DIR ps documentation [DOCDIR]
  1234. _ACEOF
  1235. cat <<\_ACEOF
  1236. System types:
  1237. --build=BUILD configure for building on BUILD [guessed]
  1238. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1239. --target=TARGET configure for building compilers for TARGET [HOST]
  1240. _ACEOF
  1241. fi
  1242. if test -n "$ac_init_help"; then
  1243. case $ac_init_help in
  1244. short | recursive ) echo "Configuration of package-unused version-unused:";;
  1245. esac
  1246. cat <<\_ACEOF
  1247. Optional Features:
  1248. --disable-option-checking ignore unrecognized --enable/--with options
  1249. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1250. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1251. --enable-version-specific-runtime-libs Specify that runtime libraries should be installed in a compiler-specific directory
  1252. --enable-multilib build many library versions (default)
  1253. --enable-cet enable Intel CET in target libraries [default=auto]
  1254. --enable-maintainer-mode
  1255. enable make rules and dependencies not useful (and
  1256. sometimes confusing) to the casual installer
  1257. --enable-shared[=PKGS] build shared libraries [default=yes]
  1258. --enable-static[=PKGS] build static libraries [default=yes]
  1259. --enable-fast-install[=PKGS]
  1260. optimize for fast installation [default=yes]
  1261. --disable-libtool-lock avoid locking (might break parallel builds)
  1262. --enable-tls Use thread-local storage [default=yes]
  1263. --enable-objc-gc enable use of Boehm's garbage collector with the GNU
  1264. Objective-C runtime
  1265. Optional Packages:
  1266. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1267. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1268. --with-build-libsubdir=DIR Directory where to find libraries for build system
  1269. --with-target-subdir=SUBDIR
  1270. configuring in a subdirectory
  1271. --with-cross-host=HOST configuring with a cross compiler
  1272. --with-toolexeclibdir=DIR
  1273. install libraries built with a cross compiler within
  1274. DIR
  1275. --with-pic try to use only PIC/non-PIC objects [default=use
  1276. both]
  1277. --with-gnu-ld assume the C compiler uses GNU ld [default=no]
  1278. --with-target-bdw-gc=PATHLIST
  1279. specify prefix directory for installed bdw-gc
  1280. package. Equivalent to
  1281. --with-target-bdw-gc-include=PATH/include plus
  1282. --with-target-bdw-gc-lib=PATH/lib
  1283. --with-target-bdw-gc-include=PATHLIST
  1284. specify directories for installed bdw-gc include
  1285. files
  1286. --with-target-bdw-gc-lib=PATHLIST
  1287. specify directories for installed bdw-gc library
  1288. --with-gcc-major-version-only
  1289. use only GCC major number in filesystem paths
  1290. Some influential environment variables:
  1291. CC C compiler command
  1292. CFLAGS C compiler flags
  1293. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1294. nonstandard directory <lib dir>
  1295. LIBS libraries to pass to the linker, e.g. -l<library>
  1296. CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
  1297. you have headers in a nonstandard directory <include dir>
  1298. CPP C preprocessor
  1299. Use these variables to override the choices made by `configure' or to help
  1300. it to find libraries and programs with nonstandard names/locations.
  1301. Report bugs to the package provider.
  1302. _ACEOF
  1303. ac_status=$?
  1304. fi
  1305. if test "$ac_init_help" = "recursive"; then
  1306. # If there are subdirs, report their specific --help.
  1307. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1308. test -d "$ac_dir" ||
  1309. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1310. continue
  1311. ac_builddir=.
  1312. case "$ac_dir" in
  1313. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1314. *)
  1315. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  1316. # A ".." for each directory in $ac_dir_suffix.
  1317. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1318. case $ac_top_builddir_sub in
  1319. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1320. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1321. esac ;;
  1322. esac
  1323. ac_abs_top_builddir=$ac_pwd
  1324. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1325. # for backward compatibility:
  1326. ac_top_builddir=$ac_top_build_prefix
  1327. case $srcdir in
  1328. .) # We are building in place.
  1329. ac_srcdir=.
  1330. ac_top_srcdir=$ac_top_builddir_sub
  1331. ac_abs_top_srcdir=$ac_pwd ;;
  1332. [\\/]* | ?:[\\/]* ) # Absolute name.
  1333. ac_srcdir=$srcdir$ac_dir_suffix;
  1334. ac_top_srcdir=$srcdir
  1335. ac_abs_top_srcdir=$srcdir ;;
  1336. *) # Relative name.
  1337. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1338. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1339. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1340. esac
  1341. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1342. cd "$ac_dir" || { ac_status=$?; continue; }
  1343. # Check for guested configure.
  1344. if test -f "$ac_srcdir/configure.gnu"; then
  1345. echo &&
  1346. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1347. elif test -f "$ac_srcdir/configure"; then
  1348. echo &&
  1349. $SHELL "$ac_srcdir/configure" --help=recursive
  1350. else
  1351. $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1352. fi || ac_status=$?
  1353. cd "$ac_pwd" || { ac_status=$?; break; }
  1354. done
  1355. fi
  1356. test -n "$ac_init_help" && exit $ac_status
  1357. if $ac_init_version; then
  1358. cat <<\_ACEOF
  1359. package-unused configure version-unused
  1360. generated by GNU Autoconf 2.69
  1361. Copyright (C) 2012 Free Software Foundation, Inc.
  1362. This configure script is free software; the Free Software Foundation
  1363. gives unlimited permission to copy, distribute and modify it.
  1364. _ACEOF
  1365. exit
  1366. fi
  1367. ## ------------------------ ##
  1368. ## Autoconf initialization. ##
  1369. ## ------------------------ ##
  1370. # ac_fn_c_try_compile LINENO
  1371. # --------------------------
  1372. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1373. ac_fn_c_try_compile ()
  1374. {
  1375. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1376. rm -f conftest.$ac_objext
  1377. if { { ac_try="$ac_compile"
  1378. case "(($ac_try" in
  1379. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1380. *) ac_try_echo=$ac_try;;
  1381. esac
  1382. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1383. $as_echo "$ac_try_echo"; } >&5
  1384. (eval "$ac_compile") 2>conftest.err
  1385. ac_status=$?
  1386. if test -s conftest.err; then
  1387. grep -v '^ *+' conftest.err >conftest.er1
  1388. cat conftest.er1 >&5
  1389. mv -f conftest.er1 conftest.err
  1390. fi
  1391. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1392. test $ac_status = 0; } && {
  1393. test -z "$ac_c_werror_flag" ||
  1394. test ! -s conftest.err
  1395. } && test -s conftest.$ac_objext; then :
  1396. ac_retval=0
  1397. else
  1398. $as_echo "$as_me: failed program was:" >&5
  1399. sed 's/^/| /' conftest.$ac_ext >&5
  1400. ac_retval=1
  1401. fi
  1402. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1403. as_fn_set_status $ac_retval
  1404. } # ac_fn_c_try_compile
  1405. # ac_fn_c_try_link LINENO
  1406. # -----------------------
  1407. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1408. ac_fn_c_try_link ()
  1409. {
  1410. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1411. rm -f conftest.$ac_objext conftest$ac_exeext
  1412. if { { ac_try="$ac_link"
  1413. case "(($ac_try" in
  1414. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1415. *) ac_try_echo=$ac_try;;
  1416. esac
  1417. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1418. $as_echo "$ac_try_echo"; } >&5
  1419. (eval "$ac_link") 2>conftest.err
  1420. ac_status=$?
  1421. if test -s conftest.err; then
  1422. grep -v '^ *+' conftest.err >conftest.er1
  1423. cat conftest.er1 >&5
  1424. mv -f conftest.er1 conftest.err
  1425. fi
  1426. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1427. test $ac_status = 0; } && {
  1428. test -z "$ac_c_werror_flag" ||
  1429. test ! -s conftest.err
  1430. } && test -s conftest$ac_exeext && {
  1431. test "$cross_compiling" = yes ||
  1432. test -x conftest$ac_exeext
  1433. }; then :
  1434. ac_retval=0
  1435. else
  1436. $as_echo "$as_me: failed program was:" >&5
  1437. sed 's/^/| /' conftest.$ac_ext >&5
  1438. ac_retval=1
  1439. fi
  1440. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1441. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1442. # interfere with the next link command; also delete a directory that is
  1443. # left behind by Apple's compiler. We do this before executing the actions.
  1444. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1445. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1446. as_fn_set_status $ac_retval
  1447. } # ac_fn_c_try_link
  1448. # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
  1449. # -------------------------------------------------------
  1450. # Tests whether HEADER exists and can be compiled using the include files in
  1451. # INCLUDES, setting the cache variable VAR accordingly.
  1452. ac_fn_c_check_header_compile ()
  1453. {
  1454. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1455. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1456. $as_echo_n "checking for $2... " >&6; }
  1457. if eval \${$3+:} false; then :
  1458. $as_echo_n "(cached) " >&6
  1459. else
  1460. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1461. /* end confdefs.h. */
  1462. $4
  1463. #include <$2>
  1464. _ACEOF
  1465. if ac_fn_c_try_compile "$LINENO"; then :
  1466. eval "$3=yes"
  1467. else
  1468. eval "$3=no"
  1469. fi
  1470. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1471. fi
  1472. eval ac_res=\$$3
  1473. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1474. $as_echo "$ac_res" >&6; }
  1475. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1476. } # ac_fn_c_check_header_compile
  1477. # ac_fn_c_try_cpp LINENO
  1478. # ----------------------
  1479. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1480. ac_fn_c_try_cpp ()
  1481. {
  1482. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1483. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1484. case "(($ac_try" in
  1485. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1486. *) ac_try_echo=$ac_try;;
  1487. esac
  1488. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1489. $as_echo "$ac_try_echo"; } >&5
  1490. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1491. ac_status=$?
  1492. if test -s conftest.err; then
  1493. grep -v '^ *+' conftest.err >conftest.er1
  1494. cat conftest.er1 >&5
  1495. mv -f conftest.er1 conftest.err
  1496. fi
  1497. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1498. test $ac_status = 0; } > conftest.i && {
  1499. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  1500. test ! -s conftest.err
  1501. }; then :
  1502. ac_retval=0
  1503. else
  1504. $as_echo "$as_me: failed program was:" >&5
  1505. sed 's/^/| /' conftest.$ac_ext >&5
  1506. ac_retval=1
  1507. fi
  1508. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1509. as_fn_set_status $ac_retval
  1510. } # ac_fn_c_try_cpp
  1511. # ac_fn_c_try_run LINENO
  1512. # ----------------------
  1513. # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
  1514. # that executables *can* be run.
  1515. ac_fn_c_try_run ()
  1516. {
  1517. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1518. if { { ac_try="$ac_link"
  1519. case "(($ac_try" in
  1520. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1521. *) ac_try_echo=$ac_try;;
  1522. esac
  1523. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1524. $as_echo "$ac_try_echo"; } >&5
  1525. (eval "$ac_link") 2>&5
  1526. ac_status=$?
  1527. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1528. test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  1529. { { case "(($ac_try" in
  1530. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1531. *) ac_try_echo=$ac_try;;
  1532. esac
  1533. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1534. $as_echo "$ac_try_echo"; } >&5
  1535. (eval "$ac_try") 2>&5
  1536. ac_status=$?
  1537. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1538. test $ac_status = 0; }; }; then :
  1539. ac_retval=0
  1540. else
  1541. $as_echo "$as_me: program exited with status $ac_status" >&5
  1542. $as_echo "$as_me: failed program was:" >&5
  1543. sed 's/^/| /' conftest.$ac_ext >&5
  1544. ac_retval=$ac_status
  1545. fi
  1546. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1547. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1548. as_fn_set_status $ac_retval
  1549. } # ac_fn_c_try_run
  1550. # ac_fn_c_check_func LINENO FUNC VAR
  1551. # ----------------------------------
  1552. # Tests whether FUNC exists, setting the cache variable VAR accordingly
  1553. ac_fn_c_check_func ()
  1554. {
  1555. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1556. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1557. $as_echo_n "checking for $2... " >&6; }
  1558. if eval \${$3+:} false; then :
  1559. $as_echo_n "(cached) " >&6
  1560. else
  1561. if test x$gcc_no_link = xyes; then
  1562. as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  1563. fi
  1564. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1565. /* end confdefs.h. */
  1566. /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
  1567. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  1568. #define $2 innocuous_$2
  1569. /* System header to define __stub macros and hopefully few prototypes,
  1570. which can conflict with char $2 (); below.
  1571. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  1572. <limits.h> exists even on freestanding compilers. */
  1573. #ifdef __STDC__
  1574. # include <limits.h>
  1575. #else
  1576. # include <assert.h>
  1577. #endif
  1578. #undef $2
  1579. /* Override any GCC internal prototype to avoid an error.
  1580. Use char because int might match the return type of a GCC
  1581. builtin and then its argument prototype would still apply. */
  1582. #ifdef __cplusplus
  1583. extern "C"
  1584. #endif
  1585. char $2 ();
  1586. /* The GNU C library defines this for functions which it implements
  1587. to always fail with ENOSYS. Some functions are actually named
  1588. something starting with __ and the normal name is an alias. */
  1589. #if defined __stub_$2 || defined __stub___$2
  1590. choke me
  1591. #endif
  1592. int
  1593. main ()
  1594. {
  1595. return $2 ();
  1596. ;
  1597. return 0;
  1598. }
  1599. _ACEOF
  1600. if ac_fn_c_try_link "$LINENO"; then :
  1601. eval "$3=yes"
  1602. else
  1603. eval "$3=no"
  1604. fi
  1605. rm -f core conftest.err conftest.$ac_objext \
  1606. conftest$ac_exeext conftest.$ac_ext
  1607. fi
  1608. eval ac_res=\$$3
  1609. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1610. $as_echo "$ac_res" >&6; }
  1611. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1612. } # ac_fn_c_check_func
  1613. # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
  1614. # -------------------------------------------------------
  1615. # Tests whether HEADER exists, giving a warning if it cannot be compiled using
  1616. # the include files in INCLUDES and setting the cache variable VAR
  1617. # accordingly.
  1618. ac_fn_c_check_header_mongrel ()
  1619. {
  1620. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1621. if eval \${$3+:} false; then :
  1622. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1623. $as_echo_n "checking for $2... " >&6; }
  1624. if eval \${$3+:} false; then :
  1625. $as_echo_n "(cached) " >&6
  1626. fi
  1627. eval ac_res=\$$3
  1628. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1629. $as_echo "$ac_res" >&6; }
  1630. else
  1631. # Is the header compilable?
  1632. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
  1633. $as_echo_n "checking $2 usability... " >&6; }
  1634. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1635. /* end confdefs.h. */
  1636. $4
  1637. #include <$2>
  1638. _ACEOF
  1639. if ac_fn_c_try_compile "$LINENO"; then :
  1640. ac_header_compiler=yes
  1641. else
  1642. ac_header_compiler=no
  1643. fi
  1644. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1645. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
  1646. $as_echo "$ac_header_compiler" >&6; }
  1647. # Is the header present?
  1648. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
  1649. $as_echo_n "checking $2 presence... " >&6; }
  1650. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1651. /* end confdefs.h. */
  1652. #include <$2>
  1653. _ACEOF
  1654. if ac_fn_c_try_cpp "$LINENO"; then :
  1655. ac_header_preproc=yes
  1656. else
  1657. ac_header_preproc=no
  1658. fi
  1659. rm -f conftest.err conftest.i conftest.$ac_ext
  1660. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
  1661. $as_echo "$ac_header_preproc" >&6; }
  1662. # So? What about this header?
  1663. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
  1664. yes:no: )
  1665. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
  1666. $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
  1667. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1668. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1669. ;;
  1670. no:yes:* )
  1671. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
  1672. $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
  1673. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
  1674. $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
  1675. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
  1676. $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
  1677. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
  1678. $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
  1679. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1680. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1681. ;;
  1682. esac
  1683. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1684. $as_echo_n "checking for $2... " >&6; }
  1685. if eval \${$3+:} false; then :
  1686. $as_echo_n "(cached) " >&6
  1687. else
  1688. eval "$3=\$ac_header_compiler"
  1689. fi
  1690. eval ac_res=\$$3
  1691. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1692. $as_echo "$ac_res" >&6; }
  1693. fi
  1694. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1695. } # ac_fn_c_check_header_mongrel
  1696. cat >config.log <<_ACEOF
  1697. This file contains any messages produced by compilers while
  1698. running configure, to aid debugging if configure makes a mistake.
  1699. It was created by package-unused $as_me version-unused, which was
  1700. generated by GNU Autoconf 2.69. Invocation command line was
  1701. $ $0 $@
  1702. _ACEOF
  1703. exec 5>>config.log
  1704. {
  1705. cat <<_ASUNAME
  1706. ## --------- ##
  1707. ## Platform. ##
  1708. ## --------- ##
  1709. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  1710. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  1711. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  1712. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  1713. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  1714. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  1715. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  1716. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  1717. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  1718. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  1719. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  1720. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  1721. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  1722. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  1723. _ASUNAME
  1724. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1725. for as_dir in $PATH
  1726. do
  1727. IFS=$as_save_IFS
  1728. test -z "$as_dir" && as_dir=.
  1729. $as_echo "PATH: $as_dir"
  1730. done
  1731. IFS=$as_save_IFS
  1732. } >&5
  1733. cat >&5 <<_ACEOF
  1734. ## ----------- ##
  1735. ## Core tests. ##
  1736. ## ----------- ##
  1737. _ACEOF
  1738. # Keep a trace of the command line.
  1739. # Strip out --no-create and --no-recursion so they do not pile up.
  1740. # Strip out --silent because we don't want to record it for future runs.
  1741. # Also quote any args containing shell meta-characters.
  1742. # Make two passes to allow for proper duplicate-argument suppression.
  1743. ac_configure_args=
  1744. ac_configure_args0=
  1745. ac_configure_args1=
  1746. ac_must_keep_next=false
  1747. for ac_pass in 1 2
  1748. do
  1749. for ac_arg
  1750. do
  1751. case $ac_arg in
  1752. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  1753. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1754. | -silent | --silent | --silen | --sile | --sil)
  1755. continue ;;
  1756. *\'*)
  1757. ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  1758. esac
  1759. case $ac_pass in
  1760. 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  1761. 2)
  1762. as_fn_append ac_configure_args1 " '$ac_arg'"
  1763. if test $ac_must_keep_next = true; then
  1764. ac_must_keep_next=false # Got value, back to normal.
  1765. else
  1766. case $ac_arg in
  1767. *=* | --config-cache | -C | -disable-* | --disable-* \
  1768. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  1769. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  1770. | -with-* | --with-* | -without-* | --without-* | --x)
  1771. case "$ac_configure_args0 " in
  1772. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  1773. esac
  1774. ;;
  1775. -* ) ac_must_keep_next=true ;;
  1776. esac
  1777. fi
  1778. as_fn_append ac_configure_args " '$ac_arg'"
  1779. ;;
  1780. esac
  1781. done
  1782. done
  1783. { ac_configure_args0=; unset ac_configure_args0;}
  1784. { ac_configure_args1=; unset ac_configure_args1;}
  1785. # When interrupted or exit'd, cleanup temporary files, and complete
  1786. # config.log. We remove comments because anyway the quotes in there
  1787. # would cause problems or look ugly.
  1788. # WARNING: Use '\'' to represent an apostrophe within the trap.
  1789. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  1790. trap 'exit_status=$?
  1791. # Save into config.log some information that might help in debugging.
  1792. {
  1793. echo
  1794. $as_echo "## ---------------- ##
  1795. ## Cache variables. ##
  1796. ## ---------------- ##"
  1797. echo
  1798. # The following way of writing the cache mishandles newlines in values,
  1799. (
  1800. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  1801. eval ac_val=\$$ac_var
  1802. case $ac_val in #(
  1803. *${as_nl}*)
  1804. case $ac_var in #(
  1805. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  1806. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  1807. esac
  1808. case $ac_var in #(
  1809. _ | IFS | as_nl) ;; #(
  1810. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  1811. *) { eval $ac_var=; unset $ac_var;} ;;
  1812. esac ;;
  1813. esac
  1814. done
  1815. (set) 2>&1 |
  1816. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  1817. *${as_nl}ac_space=\ *)
  1818. sed -n \
  1819. "s/'\''/'\''\\\\'\'''\''/g;
  1820. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  1821. ;; #(
  1822. *)
  1823. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  1824. ;;
  1825. esac |
  1826. sort
  1827. )
  1828. echo
  1829. $as_echo "## ----------------- ##
  1830. ## Output variables. ##
  1831. ## ----------------- ##"
  1832. echo
  1833. for ac_var in $ac_subst_vars
  1834. do
  1835. eval ac_val=\$$ac_var
  1836. case $ac_val in
  1837. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1838. esac
  1839. $as_echo "$ac_var='\''$ac_val'\''"
  1840. done | sort
  1841. echo
  1842. if test -n "$ac_subst_files"; then
  1843. $as_echo "## ------------------- ##
  1844. ## File substitutions. ##
  1845. ## ------------------- ##"
  1846. echo
  1847. for ac_var in $ac_subst_files
  1848. do
  1849. eval ac_val=\$$ac_var
  1850. case $ac_val in
  1851. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1852. esac
  1853. $as_echo "$ac_var='\''$ac_val'\''"
  1854. done | sort
  1855. echo
  1856. fi
  1857. if test -s confdefs.h; then
  1858. $as_echo "## ----------- ##
  1859. ## confdefs.h. ##
  1860. ## ----------- ##"
  1861. echo
  1862. cat confdefs.h
  1863. echo
  1864. fi
  1865. test "$ac_signal" != 0 &&
  1866. $as_echo "$as_me: caught signal $ac_signal"
  1867. $as_echo "$as_me: exit $exit_status"
  1868. } >&5
  1869. rm -f core *.core core.conftest.* &&
  1870. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  1871. exit $exit_status
  1872. ' 0
  1873. for ac_signal in 1 2 13 15; do
  1874. trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  1875. done
  1876. ac_signal=0
  1877. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  1878. rm -f -r conftest* confdefs.h
  1879. $as_echo "/* confdefs.h */" > confdefs.h
  1880. # Predefined preprocessor variables.
  1881. cat >>confdefs.h <<_ACEOF
  1882. #define PACKAGE_NAME "$PACKAGE_NAME"
  1883. _ACEOF
  1884. cat >>confdefs.h <<_ACEOF
  1885. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  1886. _ACEOF
  1887. cat >>confdefs.h <<_ACEOF
  1888. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  1889. _ACEOF
  1890. cat >>confdefs.h <<_ACEOF
  1891. #define PACKAGE_STRING "$PACKAGE_STRING"
  1892. _ACEOF
  1893. cat >>confdefs.h <<_ACEOF
  1894. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  1895. _ACEOF
  1896. cat >>confdefs.h <<_ACEOF
  1897. #define PACKAGE_URL "$PACKAGE_URL"
  1898. _ACEOF
  1899. # Let the site file select an alternate cache file if it wants to.
  1900. # Prefer an explicitly selected file to automatically selected ones.
  1901. ac_site_file1=NONE
  1902. ac_site_file2=NONE
  1903. if test -n "$CONFIG_SITE"; then
  1904. # We do not want a PATH search for config.site.
  1905. case $CONFIG_SITE in #((
  1906. -*) ac_site_file1=./$CONFIG_SITE;;
  1907. */*) ac_site_file1=$CONFIG_SITE;;
  1908. *) ac_site_file1=./$CONFIG_SITE;;
  1909. esac
  1910. elif test "x$prefix" != xNONE; then
  1911. ac_site_file1=$prefix/share/config.site
  1912. ac_site_file2=$prefix/etc/config.site
  1913. else
  1914. ac_site_file1=$ac_default_prefix/share/config.site
  1915. ac_site_file2=$ac_default_prefix/etc/config.site
  1916. fi
  1917. for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  1918. do
  1919. test "x$ac_site_file" = xNONE && continue
  1920. if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
  1921. { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  1922. $as_echo "$as_me: loading site script $ac_site_file" >&6;}
  1923. sed 's/^/| /' "$ac_site_file" >&5
  1924. . "$ac_site_file" \
  1925. || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  1926. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  1927. as_fn_error $? "failed to load site script $ac_site_file
  1928. See \`config.log' for more details" "$LINENO" 5; }
  1929. fi
  1930. done
  1931. if test -r "$cache_file"; then
  1932. # Some versions of bash will fail to source /dev/null (special files
  1933. # actually), so we avoid doing that. DJGPP emulates it as a regular file.
  1934. if test /dev/null != "$cache_file" && test -f "$cache_file"; then
  1935. { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  1936. $as_echo "$as_me: loading cache $cache_file" >&6;}
  1937. case $cache_file in
  1938. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  1939. *) . "./$cache_file";;
  1940. esac
  1941. fi
  1942. else
  1943. { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  1944. $as_echo "$as_me: creating cache $cache_file" >&6;}
  1945. >$cache_file
  1946. fi
  1947. # Check that the precious variables saved in the cache have kept the same
  1948. # value.
  1949. ac_cache_corrupted=false
  1950. for ac_var in $ac_precious_vars; do
  1951. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  1952. eval ac_new_set=\$ac_env_${ac_var}_set
  1953. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  1954. eval ac_new_val=\$ac_env_${ac_var}_value
  1955. case $ac_old_set,$ac_new_set in
  1956. set,)
  1957. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  1958. $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  1959. ac_cache_corrupted=: ;;
  1960. ,set)
  1961. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  1962. $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  1963. ac_cache_corrupted=: ;;
  1964. ,);;
  1965. *)
  1966. if test "x$ac_old_val" != "x$ac_new_val"; then
  1967. # differences in whitespace do not lead to failure.
  1968. ac_old_val_w=`echo x $ac_old_val`
  1969. ac_new_val_w=`echo x $ac_new_val`
  1970. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  1971. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  1972. $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  1973. ac_cache_corrupted=:
  1974. else
  1975. { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  1976. $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  1977. eval $ac_var=\$ac_old_val
  1978. fi
  1979. { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
  1980. $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
  1981. { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
  1982. $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
  1983. fi;;
  1984. esac
  1985. # Pass precious variables to config.status.
  1986. if test "$ac_new_set" = set; then
  1987. case $ac_new_val in
  1988. *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  1989. *) ac_arg=$ac_var=$ac_new_val ;;
  1990. esac
  1991. case " $ac_configure_args " in
  1992. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  1993. *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  1994. esac
  1995. fi
  1996. done
  1997. if $ac_cache_corrupted; then
  1998. { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  1999. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2000. { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  2001. $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  2002. as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
  2003. fi
  2004. ## -------------------- ##
  2005. ## Main body of script. ##
  2006. ## -------------------- ##
  2007. ac_ext=c
  2008. ac_cpp='$CPP $CPPFLAGS'
  2009. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2010. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2011. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2012. ac_aux_dir=
  2013. for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
  2014. if test -f "$ac_dir/install-sh"; then
  2015. ac_aux_dir=$ac_dir
  2016. ac_install_sh="$ac_aux_dir/install-sh -c"
  2017. break
  2018. elif test -f "$ac_dir/install.sh"; then
  2019. ac_aux_dir=$ac_dir
  2020. ac_install_sh="$ac_aux_dir/install.sh -c"
  2021. break
  2022. elif test -f "$ac_dir/shtool"; then
  2023. ac_aux_dir=$ac_dir
  2024. ac_install_sh="$ac_aux_dir/shtool install -c"
  2025. break
  2026. fi
  2027. done
  2028. if test -z "$ac_aux_dir"; then
  2029. as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
  2030. fi
  2031. # These three variables are undocumented and unsupported,
  2032. # and are intended to be withdrawn in a future Autoconf release.
  2033. # They can cause serious problems if a builder's source tree is in a directory
  2034. # whose full name contains unusual characters.
  2035. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  2036. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  2037. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  2038. # Make sure we can run config.sub.
  2039. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  2040. as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
  2041. { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
  2042. $as_echo_n "checking build system type... " >&6; }
  2043. if ${ac_cv_build+:} false; then :
  2044. $as_echo_n "(cached) " >&6
  2045. else
  2046. ac_build_alias=$build_alias
  2047. test "x$ac_build_alias" = x &&
  2048. ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  2049. test "x$ac_build_alias" = x &&
  2050. as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
  2051. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  2052. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
  2053. fi
  2054. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
  2055. $as_echo "$ac_cv_build" >&6; }
  2056. case $ac_cv_build in
  2057. *-*-*) ;;
  2058. *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
  2059. esac
  2060. build=$ac_cv_build
  2061. ac_save_IFS=$IFS; IFS='-'
  2062. set x $ac_cv_build
  2063. shift
  2064. build_cpu=$1
  2065. build_vendor=$2
  2066. shift; shift
  2067. # Remember, the first character of IFS is used to create $*,
  2068. # except with old shells:
  2069. build_os=$*
  2070. IFS=$ac_save_IFS
  2071. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  2072. case ${build_alias} in
  2073. "") build_noncanonical=${build} ;;
  2074. *) build_noncanonical=${build_alias} ;;
  2075. esac
  2076. case ${host_alias} in
  2077. "") host_noncanonical=${build_noncanonical} ;;
  2078. *) host_noncanonical=${host_alias} ;;
  2079. esac
  2080. case ${target_alias} in
  2081. "") target_noncanonical=${host_noncanonical} ;;
  2082. *) target_noncanonical=${target_alias} ;;
  2083. esac
  2084. # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
  2085. # have matching libraries, they should use host libraries: Makefile.tpl
  2086. # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
  2087. # However, they still use the build modules, because the corresponding
  2088. # host modules (e.g. bison) are only built for the host when bootstrap
  2089. # finishes. So:
  2090. # - build_subdir is where we find build modules, and never changes.
  2091. # - build_libsubdir is where we find build libraries, and can be overridden.
  2092. # Prefix 'build-' so this never conflicts with target_subdir.
  2093. build_subdir="build-${build_noncanonical}"
  2094. # Check whether --with-build-libsubdir was given.
  2095. if test "${with_build_libsubdir+set}" = set; then :
  2096. withval=$with_build_libsubdir; build_libsubdir="$withval"
  2097. else
  2098. build_libsubdir="$build_subdir"
  2099. fi
  2100. # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
  2101. if ( test $srcdir = . && test -d gcc ) \
  2102. || test -d $srcdir/../host-${host_noncanonical}; then
  2103. host_subdir="host-${host_noncanonical}"
  2104. else
  2105. host_subdir=.
  2106. fi
  2107. # No prefix.
  2108. target_subdir=${target_noncanonical}
  2109. # We need the following definitions because AC_PROG_LIBTOOL relies on them
  2110. PACKAGE=libobjc
  2111. # Version is pulled out to make it a bit easier to change using sed.
  2112. VERSION=4:0:0
  2113. # This works around the fact that libtool configuration may change LD
  2114. # for this particular configuration, but some shells, instead of
  2115. # keeping the changes in LD private, export them just because LD is
  2116. # exported.
  2117. ORIGINAL_LD_FOR_MULTILIBS=$LD
  2118. # -------
  2119. # Options
  2120. # -------
  2121. # We use these options to decide which functions to include.
  2122. # Check whether --with-target-subdir was given.
  2123. if test "${with_target_subdir+set}" = set; then :
  2124. withval=$with_target_subdir;
  2125. fi
  2126. # Check whether --with-cross-host was given.
  2127. if test "${with_cross_host+set}" = set; then :
  2128. withval=$with_cross_host;
  2129. fi
  2130. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-version-specific-runtime-libs" >&5
  2131. $as_echo_n "checking for --enable-version-specific-runtime-libs... " >&6; }
  2132. # Check whether --enable-version-specific-runtime-libs was given.
  2133. if test "${enable_version_specific_runtime_libs+set}" = set; then :
  2134. enableval=$enable_version_specific_runtime_libs; case "$enableval" in
  2135. yes) version_specific_libs=yes ;;
  2136. no) version_specific_libs=no ;;
  2137. *) as_fn_error $? "Unknown argument to enable/disable version-specific libs" "$LINENO" 5;;
  2138. esac
  2139. else
  2140. version_specific_libs=no
  2141. fi
  2142. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $version_specific_libs" >&5
  2143. $as_echo "$version_specific_libs" >&6; }
  2144. # -----------
  2145. # Directories
  2146. # -----------
  2147. # Find the rest of the source tree framework.
  2148. # Default to --enable-multilib
  2149. # Check whether --enable-multilib was given.
  2150. if test "${enable_multilib+set}" = set; then :
  2151. enableval=$enable_multilib; case "$enableval" in
  2152. yes) multilib=yes ;;
  2153. no) multilib=no ;;
  2154. *) as_fn_error $? "bad value $enableval for multilib option" "$LINENO" 5 ;;
  2155. esac
  2156. else
  2157. multilib=yes
  2158. fi
  2159. # We may get other options which we leave undocumented:
  2160. # --with-target-subdir, --with-multisrctop, --with-multisubdir
  2161. # See config-ml.in if you want the gory details.
  2162. if test "$srcdir" = "."; then
  2163. if test "$with_target_subdir" != "."; then
  2164. multi_basedir="$srcdir/$with_multisrctop../.."
  2165. else
  2166. multi_basedir="$srcdir/$with_multisrctop.."
  2167. fi
  2168. else
  2169. multi_basedir="$srcdir/.."
  2170. fi
  2171. # Even if the default multilib is not a cross compilation,
  2172. # it may be that some of the other multilibs are.
  2173. if test $cross_compiling = no && test $multilib = yes \
  2174. && test "x${with_multisubdir}" != x ; then
  2175. cross_compiling=maybe
  2176. fi
  2177. ac_config_commands="$ac_config_commands default-1"
  2178. { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
  2179. $as_echo_n "checking host system type... " >&6; }
  2180. if ${ac_cv_host+:} false; then :
  2181. $as_echo_n "(cached) " >&6
  2182. else
  2183. if test "x$host_alias" = x; then
  2184. ac_cv_host=$ac_cv_build
  2185. else
  2186. ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  2187. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
  2188. fi
  2189. fi
  2190. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
  2191. $as_echo "$ac_cv_host" >&6; }
  2192. case $ac_cv_host in
  2193. *-*-*) ;;
  2194. *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
  2195. esac
  2196. host=$ac_cv_host
  2197. ac_save_IFS=$IFS; IFS='-'
  2198. set x $ac_cv_host
  2199. shift
  2200. host_cpu=$1
  2201. host_vendor=$2
  2202. shift; shift
  2203. # Remember, the first character of IFS is used to create $*,
  2204. # except with old shells:
  2205. host_os=$*
  2206. IFS=$ac_save_IFS
  2207. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  2208. { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
  2209. $as_echo_n "checking target system type... " >&6; }
  2210. if ${ac_cv_target+:} false; then :
  2211. $as_echo_n "(cached) " >&6
  2212. else
  2213. if test "x$target_alias" = x; then
  2214. ac_cv_target=$ac_cv_host
  2215. else
  2216. ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
  2217. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
  2218. fi
  2219. fi
  2220. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
  2221. $as_echo "$ac_cv_target" >&6; }
  2222. case $ac_cv_target in
  2223. *-*-*) ;;
  2224. *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
  2225. esac
  2226. target=$ac_cv_target
  2227. ac_save_IFS=$IFS; IFS='-'
  2228. set x $ac_cv_target
  2229. shift
  2230. target_cpu=$1
  2231. target_vendor=$2
  2232. shift; shift
  2233. # Remember, the first character of IFS is used to create $*,
  2234. # except with old shells:
  2235. target_os=$*
  2236. IFS=$ac_save_IFS
  2237. case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
  2238. # The aliases save the names the user supplied, while $host etc.
  2239. # will get canonicalized.
  2240. test -n "$target_alias" &&
  2241. test "$program_prefix$program_suffix$program_transform_name" = \
  2242. NONENONEs,x,x, &&
  2243. program_prefix=${target_alias}-
  2244. # Export source directory.
  2245. # These need to be absolute paths, yet at the same time need to
  2246. # canonicalize only relative paths, because then amd will not unmount
  2247. # drives. Thus the use of PWDCMD: set it to 'pawd' or 'amq -w' if using amd.
  2248. case $srcdir in
  2249. \\/$* | ?:\\/*) glibcpp_srcdir=${srcdir} ;;
  2250. *) glibcpp_srcdir=`cd "$srcdir" && ${PWDCMD-pwd} || echo "$srcdir"` ;;
  2251. esac
  2252. # Check whether --with-toolexeclibdir was given.
  2253. if test "${with_toolexeclibdir+set}" = set; then :
  2254. withval=$with_toolexeclibdir; case ${with_toolexeclibdir} in
  2255. /)
  2256. ;;
  2257. */)
  2258. with_toolexeclibdir=`echo $with_toolexeclibdir | sed 's,/$,,'`
  2259. ;;
  2260. esac
  2261. else
  2262. with_toolexeclibdir=no
  2263. fi
  2264. # Calculate toolexeclibdir
  2265. # Also toolexecdir, though it's only used in toolexeclibdir
  2266. case ${version_specific_libs} in
  2267. yes)
  2268. # Need the gcc compiler version to know where to install libraries
  2269. # and header files if --enable-version-specific-runtime-libs option
  2270. # is selected.
  2271. toolexecdir='$(libdir)/gcc/$(target_noncanonical)'
  2272. toolexeclibdir='$(toolexecdir)/$(gcc_version)$(MULTISUBDIR)'
  2273. ;;
  2274. no)
  2275. if test -n "$with_cross_host" &&
  2276. test x"$with_cross_host" != x"no"; then
  2277. # Install a library built with a cross compiler in tooldir, not libdir.
  2278. toolexecdir='$(exec_prefix)/$(target_noncanonical)'
  2279. case ${with_toolexeclibdir} in
  2280. no)
  2281. toolexeclibdir='$(toolexecdir)/lib'
  2282. ;;
  2283. *)
  2284. toolexeclibdir=${with_toolexeclibdir}
  2285. ;;
  2286. esac
  2287. else
  2288. toolexecdir='$(libdir)/gcc-lib/$(target_noncanonical)'
  2289. toolexeclibdir='$(libdir)'
  2290. fi
  2291. multi_os_directory=`$CC -print-multi-os-directory`
  2292. case $multi_os_directory in
  2293. .) ;; # Avoid trailing /.
  2294. *) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;;
  2295. esac
  2296. ;;
  2297. esac
  2298. # Figure out if we want to name the include directory and the
  2299. # library name changes differently.
  2300. includedirname=include
  2301. libsuffix=
  2302. case "${host}" in
  2303. *-darwin*)
  2304. # Darwin is the only target so far that needs a different include directory.
  2305. includedirname=include-gnu-runtime
  2306. libsuffix=-gnu
  2307. ;;
  2308. esac
  2309. ac_config_headers="$ac_config_headers config.h"
  2310. # --------
  2311. # Programs
  2312. # --------
  2313. # We must force CC to /not/ be a precious variable; otherwise
  2314. # the wrong, non-multilib-adjusted value will be used in multilibs.
  2315. # As a side effect, we have to subst CFLAGS ourselves.
  2316. ac_ext=c
  2317. ac_cpp='$CPP $CPPFLAGS'
  2318. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2319. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2320. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2321. if test -n "$ac_tool_prefix"; then
  2322. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  2323. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  2324. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2325. $as_echo_n "checking for $ac_word... " >&6; }
  2326. if ${ac_cv_prog_CC+:} false; then :
  2327. $as_echo_n "(cached) " >&6
  2328. else
  2329. if test -n "$CC"; then
  2330. ac_cv_prog_CC="$CC" # Let the user override the test.
  2331. else
  2332. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2333. for as_dir in $PATH
  2334. do
  2335. IFS=$as_save_IFS
  2336. test -z "$as_dir" && as_dir=.
  2337. for ac_exec_ext in '' $ac_executable_extensions; do
  2338. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2339. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  2340. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2341. break 2
  2342. fi
  2343. done
  2344. done
  2345. IFS=$as_save_IFS
  2346. fi
  2347. fi
  2348. CC=$ac_cv_prog_CC
  2349. if test -n "$CC"; then
  2350. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2351. $as_echo "$CC" >&6; }
  2352. else
  2353. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2354. $as_echo "no" >&6; }
  2355. fi
  2356. fi
  2357. if test -z "$ac_cv_prog_CC"; then
  2358. ac_ct_CC=$CC
  2359. # Extract the first word of "gcc", so it can be a program name with args.
  2360. set dummy gcc; ac_word=$2
  2361. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2362. $as_echo_n "checking for $ac_word... " >&6; }
  2363. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  2364. $as_echo_n "(cached) " >&6
  2365. else
  2366. if test -n "$ac_ct_CC"; then
  2367. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2368. else
  2369. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2370. for as_dir in $PATH
  2371. do
  2372. IFS=$as_save_IFS
  2373. test -z "$as_dir" && as_dir=.
  2374. for ac_exec_ext in '' $ac_executable_extensions; do
  2375. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2376. ac_cv_prog_ac_ct_CC="gcc"
  2377. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2378. break 2
  2379. fi
  2380. done
  2381. done
  2382. IFS=$as_save_IFS
  2383. fi
  2384. fi
  2385. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2386. if test -n "$ac_ct_CC"; then
  2387. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  2388. $as_echo "$ac_ct_CC" >&6; }
  2389. else
  2390. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2391. $as_echo "no" >&6; }
  2392. fi
  2393. if test "x$ac_ct_CC" = x; then
  2394. CC=""
  2395. else
  2396. case $cross_compiling:$ac_tool_warned in
  2397. yes:)
  2398. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2399. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2400. ac_tool_warned=yes ;;
  2401. esac
  2402. CC=$ac_ct_CC
  2403. fi
  2404. else
  2405. CC="$ac_cv_prog_CC"
  2406. fi
  2407. if test -z "$CC"; then
  2408. if test -n "$ac_tool_prefix"; then
  2409. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  2410. set dummy ${ac_tool_prefix}cc; ac_word=$2
  2411. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2412. $as_echo_n "checking for $ac_word... " >&6; }
  2413. if ${ac_cv_prog_CC+:} false; then :
  2414. $as_echo_n "(cached) " >&6
  2415. else
  2416. if test -n "$CC"; then
  2417. ac_cv_prog_CC="$CC" # Let the user override the test.
  2418. else
  2419. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2420. for as_dir in $PATH
  2421. do
  2422. IFS=$as_save_IFS
  2423. test -z "$as_dir" && as_dir=.
  2424. for ac_exec_ext in '' $ac_executable_extensions; do
  2425. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2426. ac_cv_prog_CC="${ac_tool_prefix}cc"
  2427. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2428. break 2
  2429. fi
  2430. done
  2431. done
  2432. IFS=$as_save_IFS
  2433. fi
  2434. fi
  2435. CC=$ac_cv_prog_CC
  2436. if test -n "$CC"; then
  2437. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2438. $as_echo "$CC" >&6; }
  2439. else
  2440. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2441. $as_echo "no" >&6; }
  2442. fi
  2443. fi
  2444. fi
  2445. if test -z "$CC"; then
  2446. # Extract the first word of "cc", so it can be a program name with args.
  2447. set dummy cc; ac_word=$2
  2448. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2449. $as_echo_n "checking for $ac_word... " >&6; }
  2450. if ${ac_cv_prog_CC+:} false; then :
  2451. $as_echo_n "(cached) " >&6
  2452. else
  2453. if test -n "$CC"; then
  2454. ac_cv_prog_CC="$CC" # Let the user override the test.
  2455. else
  2456. ac_prog_rejected=no
  2457. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2458. for as_dir in $PATH
  2459. do
  2460. IFS=$as_save_IFS
  2461. test -z "$as_dir" && as_dir=.
  2462. for ac_exec_ext in '' $ac_executable_extensions; do
  2463. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2464. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  2465. ac_prog_rejected=yes
  2466. continue
  2467. fi
  2468. ac_cv_prog_CC="cc"
  2469. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2470. break 2
  2471. fi
  2472. done
  2473. done
  2474. IFS=$as_save_IFS
  2475. if test $ac_prog_rejected = yes; then
  2476. # We found a bogon in the path, so make sure we never use it.
  2477. set dummy $ac_cv_prog_CC
  2478. shift
  2479. if test $# != 0; then
  2480. # We chose a different compiler from the bogus one.
  2481. # However, it has the same basename, so the bogon will be chosen
  2482. # first if we set CC to just the basename; use the full file name.
  2483. shift
  2484. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  2485. fi
  2486. fi
  2487. fi
  2488. fi
  2489. CC=$ac_cv_prog_CC
  2490. if test -n "$CC"; then
  2491. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2492. $as_echo "$CC" >&6; }
  2493. else
  2494. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2495. $as_echo "no" >&6; }
  2496. fi
  2497. fi
  2498. if test -z "$CC"; then
  2499. if test -n "$ac_tool_prefix"; then
  2500. for ac_prog in cl.exe
  2501. do
  2502. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  2503. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  2504. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2505. $as_echo_n "checking for $ac_word... " >&6; }
  2506. if ${ac_cv_prog_CC+:} false; then :
  2507. $as_echo_n "(cached) " >&6
  2508. else
  2509. if test -n "$CC"; then
  2510. ac_cv_prog_CC="$CC" # Let the user override the test.
  2511. else
  2512. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2513. for as_dir in $PATH
  2514. do
  2515. IFS=$as_save_IFS
  2516. test -z "$as_dir" && as_dir=.
  2517. for ac_exec_ext in '' $ac_executable_extensions; do
  2518. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2519. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  2520. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2521. break 2
  2522. fi
  2523. done
  2524. done
  2525. IFS=$as_save_IFS
  2526. fi
  2527. fi
  2528. CC=$ac_cv_prog_CC
  2529. if test -n "$CC"; then
  2530. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2531. $as_echo "$CC" >&6; }
  2532. else
  2533. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2534. $as_echo "no" >&6; }
  2535. fi
  2536. test -n "$CC" && break
  2537. done
  2538. fi
  2539. if test -z "$CC"; then
  2540. ac_ct_CC=$CC
  2541. for ac_prog in cl.exe
  2542. do
  2543. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2544. set dummy $ac_prog; ac_word=$2
  2545. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2546. $as_echo_n "checking for $ac_word... " >&6; }
  2547. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  2548. $as_echo_n "(cached) " >&6
  2549. else
  2550. if test -n "$ac_ct_CC"; then
  2551. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2552. else
  2553. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2554. for as_dir in $PATH
  2555. do
  2556. IFS=$as_save_IFS
  2557. test -z "$as_dir" && as_dir=.
  2558. for ac_exec_ext in '' $ac_executable_extensions; do
  2559. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2560. ac_cv_prog_ac_ct_CC="$ac_prog"
  2561. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2562. break 2
  2563. fi
  2564. done
  2565. done
  2566. IFS=$as_save_IFS
  2567. fi
  2568. fi
  2569. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2570. if test -n "$ac_ct_CC"; then
  2571. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  2572. $as_echo "$ac_ct_CC" >&6; }
  2573. else
  2574. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2575. $as_echo "no" >&6; }
  2576. fi
  2577. test -n "$ac_ct_CC" && break
  2578. done
  2579. if test "x$ac_ct_CC" = x; then
  2580. CC=""
  2581. else
  2582. case $cross_compiling:$ac_tool_warned in
  2583. yes:)
  2584. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2585. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2586. ac_tool_warned=yes ;;
  2587. esac
  2588. CC=$ac_ct_CC
  2589. fi
  2590. fi
  2591. fi
  2592. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2593. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2594. as_fn_error $? "no acceptable C compiler found in \$PATH
  2595. See \`config.log' for more details" "$LINENO" 5; }
  2596. # Provide some information about the compiler.
  2597. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  2598. set X $ac_compile
  2599. ac_compiler=$2
  2600. for ac_option in --version -v -V -qversion; do
  2601. { { ac_try="$ac_compiler $ac_option >&5"
  2602. case "(($ac_try" in
  2603. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2604. *) ac_try_echo=$ac_try;;
  2605. esac
  2606. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2607. $as_echo "$ac_try_echo"; } >&5
  2608. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  2609. ac_status=$?
  2610. if test -s conftest.err; then
  2611. sed '10a\
  2612. ... rest of stderr output deleted ...
  2613. 10q' conftest.err >conftest.er1
  2614. cat conftest.er1 >&5
  2615. fi
  2616. rm -f conftest.er1 conftest.err
  2617. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2618. test $ac_status = 0; }
  2619. done
  2620. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2621. /* end confdefs.h. */
  2622. #include <stdio.h>
  2623. int
  2624. main ()
  2625. {
  2626. printf ("hello world\n");
  2627. ;
  2628. return 0;
  2629. }
  2630. _ACEOF
  2631. # FIXME: Cleanup?
  2632. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  2633. (eval $ac_link) 2>&5
  2634. ac_status=$?
  2635. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2636. test $ac_status = 0; }; then :
  2637. gcc_no_link=no
  2638. else
  2639. gcc_no_link=yes
  2640. fi
  2641. if test x$gcc_no_link = xyes; then
  2642. # Setting cross_compile will disable run tests; it will
  2643. # also disable AC_CHECK_FILE but that's generally
  2644. # correct if we can't link.
  2645. cross_compiling=yes
  2646. EXEEXT=
  2647. else
  2648. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2649. /* end confdefs.h. */
  2650. int
  2651. main ()
  2652. {
  2653. ;
  2654. return 0;
  2655. }
  2656. _ACEOF
  2657. ac_clean_files_save=$ac_clean_files
  2658. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  2659. # Try to create an executable without -o first, disregard a.out.
  2660. # It will help us diagnose broken compilers, and finding out an intuition
  2661. # of exeext.
  2662. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
  2663. $as_echo_n "checking whether the C compiler works... " >&6; }
  2664. ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  2665. # The possible output files:
  2666. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  2667. ac_rmfiles=
  2668. for ac_file in $ac_files
  2669. do
  2670. case $ac_file in
  2671. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  2672. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  2673. esac
  2674. done
  2675. rm -f $ac_rmfiles
  2676. if { { ac_try="$ac_link_default"
  2677. case "(($ac_try" in
  2678. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2679. *) ac_try_echo=$ac_try;;
  2680. esac
  2681. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2682. $as_echo "$ac_try_echo"; } >&5
  2683. (eval "$ac_link_default") 2>&5
  2684. ac_status=$?
  2685. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2686. test $ac_status = 0; }; then :
  2687. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  2688. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  2689. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  2690. # so that the user can short-circuit this test for compilers unknown to
  2691. # Autoconf.
  2692. for ac_file in $ac_files ''
  2693. do
  2694. test -f "$ac_file" || continue
  2695. case $ac_file in
  2696. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  2697. ;;
  2698. [ab].out )
  2699. # We found the default executable, but exeext='' is most
  2700. # certainly right.
  2701. break;;
  2702. *.* )
  2703. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  2704. then :; else
  2705. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2706. fi
  2707. # We set ac_cv_exeext here because the later test for it is not
  2708. # safe: cross compilers may not add the suffix if given an `-o'
  2709. # argument, so we may need to know it at that point already.
  2710. # Even if this section looks crufty: it has the advantage of
  2711. # actually working.
  2712. break;;
  2713. * )
  2714. break;;
  2715. esac
  2716. done
  2717. test "$ac_cv_exeext" = no && ac_cv_exeext=
  2718. else
  2719. ac_file=''
  2720. fi
  2721. if test -z "$ac_file"; then :
  2722. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2723. $as_echo "no" >&6; }
  2724. $as_echo "$as_me: failed program was:" >&5
  2725. sed 's/^/| /' conftest.$ac_ext >&5
  2726. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2727. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2728. as_fn_error 77 "C compiler cannot create executables
  2729. See \`config.log' for more details" "$LINENO" 5; }
  2730. else
  2731. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2732. $as_echo "yes" >&6; }
  2733. fi
  2734. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
  2735. $as_echo_n "checking for C compiler default output file name... " >&6; }
  2736. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  2737. $as_echo "$ac_file" >&6; }
  2738. ac_exeext=$ac_cv_exeext
  2739. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  2740. ac_clean_files=$ac_clean_files_save
  2741. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  2742. $as_echo_n "checking for suffix of executables... " >&6; }
  2743. if { { ac_try="$ac_link"
  2744. case "(($ac_try" in
  2745. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2746. *) ac_try_echo=$ac_try;;
  2747. esac
  2748. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2749. $as_echo "$ac_try_echo"; } >&5
  2750. (eval "$ac_link") 2>&5
  2751. ac_status=$?
  2752. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2753. test $ac_status = 0; }; then :
  2754. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  2755. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  2756. # work properly (i.e., refer to `conftest.exe'), while it won't with
  2757. # `rm'.
  2758. for ac_file in conftest.exe conftest conftest.*; do
  2759. test -f "$ac_file" || continue
  2760. case $ac_file in
  2761. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  2762. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2763. break;;
  2764. * ) break;;
  2765. esac
  2766. done
  2767. else
  2768. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2769. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2770. as_fn_error $? "cannot compute suffix of executables: cannot compile and link
  2771. See \`config.log' for more details" "$LINENO" 5; }
  2772. fi
  2773. rm -f conftest conftest$ac_cv_exeext
  2774. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  2775. $as_echo "$ac_cv_exeext" >&6; }
  2776. rm -f conftest.$ac_ext
  2777. EXEEXT=$ac_cv_exeext
  2778. ac_exeext=$EXEEXT
  2779. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2780. /* end confdefs.h. */
  2781. #include <stdio.h>
  2782. int
  2783. main ()
  2784. {
  2785. FILE *f = fopen ("conftest.out", "w");
  2786. return ferror (f) || fclose (f) != 0;
  2787. ;
  2788. return 0;
  2789. }
  2790. _ACEOF
  2791. ac_clean_files="$ac_clean_files conftest.out"
  2792. # Check that the compiler produces executables we can run. If not, either
  2793. # the compiler is broken, or we cross compile.
  2794. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  2795. $as_echo_n "checking whether we are cross compiling... " >&6; }
  2796. if test "$cross_compiling" != yes; then
  2797. { { ac_try="$ac_link"
  2798. case "(($ac_try" in
  2799. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2800. *) ac_try_echo=$ac_try;;
  2801. esac
  2802. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2803. $as_echo "$ac_try_echo"; } >&5
  2804. (eval "$ac_link") 2>&5
  2805. ac_status=$?
  2806. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2807. test $ac_status = 0; }
  2808. if { ac_try='./conftest$ac_cv_exeext'
  2809. { { case "(($ac_try" in
  2810. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2811. *) ac_try_echo=$ac_try;;
  2812. esac
  2813. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2814. $as_echo "$ac_try_echo"; } >&5
  2815. (eval "$ac_try") 2>&5
  2816. ac_status=$?
  2817. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2818. test $ac_status = 0; }; }; then
  2819. cross_compiling=no
  2820. else
  2821. if test "$cross_compiling" = maybe; then
  2822. cross_compiling=yes
  2823. else
  2824. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2825. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2826. as_fn_error $? "cannot run C compiled programs.
  2827. If you meant to cross compile, use \`--host'.
  2828. See \`config.log' for more details" "$LINENO" 5; }
  2829. fi
  2830. fi
  2831. fi
  2832. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  2833. $as_echo "$cross_compiling" >&6; }
  2834. rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
  2835. ac_clean_files=$ac_clean_files_save
  2836. fi
  2837. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  2838. $as_echo_n "checking for suffix of object files... " >&6; }
  2839. if ${ac_cv_objext+:} false; then :
  2840. $as_echo_n "(cached) " >&6
  2841. else
  2842. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2843. /* end confdefs.h. */
  2844. int
  2845. main ()
  2846. {
  2847. ;
  2848. return 0;
  2849. }
  2850. _ACEOF
  2851. rm -f conftest.o conftest.obj
  2852. if { { ac_try="$ac_compile"
  2853. case "(($ac_try" in
  2854. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2855. *) ac_try_echo=$ac_try;;
  2856. esac
  2857. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2858. $as_echo "$ac_try_echo"; } >&5
  2859. (eval "$ac_compile") 2>&5
  2860. ac_status=$?
  2861. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2862. test $ac_status = 0; }; then :
  2863. for ac_file in conftest.o conftest.obj conftest.*; do
  2864. test -f "$ac_file" || continue;
  2865. case $ac_file in
  2866. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  2867. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  2868. break;;
  2869. esac
  2870. done
  2871. else
  2872. $as_echo "$as_me: failed program was:" >&5
  2873. sed 's/^/| /' conftest.$ac_ext >&5
  2874. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2875. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2876. as_fn_error $? "cannot compute suffix of object files: cannot compile
  2877. See \`config.log' for more details" "$LINENO" 5; }
  2878. fi
  2879. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  2880. fi
  2881. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  2882. $as_echo "$ac_cv_objext" >&6; }
  2883. OBJEXT=$ac_cv_objext
  2884. ac_objext=$OBJEXT
  2885. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  2886. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  2887. if ${ac_cv_c_compiler_gnu+:} false; then :
  2888. $as_echo_n "(cached) " >&6
  2889. else
  2890. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2891. /* end confdefs.h. */
  2892. int
  2893. main ()
  2894. {
  2895. #ifndef __GNUC__
  2896. choke me
  2897. #endif
  2898. ;
  2899. return 0;
  2900. }
  2901. _ACEOF
  2902. if ac_fn_c_try_compile "$LINENO"; then :
  2903. ac_compiler_gnu=yes
  2904. else
  2905. ac_compiler_gnu=no
  2906. fi
  2907. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2908. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  2909. fi
  2910. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  2911. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  2912. if test $ac_compiler_gnu = yes; then
  2913. GCC=yes
  2914. else
  2915. GCC=
  2916. fi
  2917. ac_test_CFLAGS=${CFLAGS+set}
  2918. ac_save_CFLAGS=$CFLAGS
  2919. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  2920. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  2921. if ${ac_cv_prog_cc_g+:} false; then :
  2922. $as_echo_n "(cached) " >&6
  2923. else
  2924. ac_save_c_werror_flag=$ac_c_werror_flag
  2925. ac_c_werror_flag=yes
  2926. ac_cv_prog_cc_g=no
  2927. CFLAGS="-g"
  2928. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2929. /* end confdefs.h. */
  2930. int
  2931. main ()
  2932. {
  2933. ;
  2934. return 0;
  2935. }
  2936. _ACEOF
  2937. if ac_fn_c_try_compile "$LINENO"; then :
  2938. ac_cv_prog_cc_g=yes
  2939. else
  2940. CFLAGS=""
  2941. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2942. /* end confdefs.h. */
  2943. int
  2944. main ()
  2945. {
  2946. ;
  2947. return 0;
  2948. }
  2949. _ACEOF
  2950. if ac_fn_c_try_compile "$LINENO"; then :
  2951. else
  2952. ac_c_werror_flag=$ac_save_c_werror_flag
  2953. CFLAGS="-g"
  2954. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2955. /* end confdefs.h. */
  2956. int
  2957. main ()
  2958. {
  2959. ;
  2960. return 0;
  2961. }
  2962. _ACEOF
  2963. if ac_fn_c_try_compile "$LINENO"; then :
  2964. ac_cv_prog_cc_g=yes
  2965. fi
  2966. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2967. fi
  2968. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2969. fi
  2970. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2971. ac_c_werror_flag=$ac_save_c_werror_flag
  2972. fi
  2973. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  2974. $as_echo "$ac_cv_prog_cc_g" >&6; }
  2975. if test "$ac_test_CFLAGS" = set; then
  2976. CFLAGS=$ac_save_CFLAGS
  2977. elif test $ac_cv_prog_cc_g = yes; then
  2978. if test "$GCC" = yes; then
  2979. CFLAGS="-g -O2"
  2980. else
  2981. CFLAGS="-g"
  2982. fi
  2983. else
  2984. if test "$GCC" = yes; then
  2985. CFLAGS="-O2"
  2986. else
  2987. CFLAGS=
  2988. fi
  2989. fi
  2990. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  2991. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  2992. if ${ac_cv_prog_cc_c89+:} false; then :
  2993. $as_echo_n "(cached) " >&6
  2994. else
  2995. ac_cv_prog_cc_c89=no
  2996. ac_save_CC=$CC
  2997. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2998. /* end confdefs.h. */
  2999. #include <stdarg.h>
  3000. #include <stdio.h>
  3001. struct stat;
  3002. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  3003. struct buf { int x; };
  3004. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  3005. static char *e (p, i)
  3006. char **p;
  3007. int i;
  3008. {
  3009. return p[i];
  3010. }
  3011. static char *f (char * (*g) (char **, int), char **p, ...)
  3012. {
  3013. char *s;
  3014. va_list v;
  3015. va_start (v,p);
  3016. s = g (p, va_arg (v,int));
  3017. va_end (v);
  3018. return s;
  3019. }
  3020. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  3021. function prototypes and stuff, but not '\xHH' hex character constants.
  3022. These don't provoke an error unfortunately, instead are silently treated
  3023. as 'x'. The following induces an error, until -std is added to get
  3024. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  3025. array size at least. It's necessary to write '\x00'==0 to get something
  3026. that's true only with -std. */
  3027. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  3028. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  3029. inside strings and character constants. */
  3030. #define FOO(x) 'x'
  3031. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  3032. int test (int i, double x);
  3033. struct s1 {int (*f) (int a);};
  3034. struct s2 {int (*f) (double a);};
  3035. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  3036. int argc;
  3037. char **argv;
  3038. int
  3039. main ()
  3040. {
  3041. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  3042. ;
  3043. return 0;
  3044. }
  3045. _ACEOF
  3046. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  3047. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  3048. do
  3049. CC="$ac_save_CC $ac_arg"
  3050. if ac_fn_c_try_compile "$LINENO"; then :
  3051. ac_cv_prog_cc_c89=$ac_arg
  3052. fi
  3053. rm -f core conftest.err conftest.$ac_objext
  3054. test "x$ac_cv_prog_cc_c89" != "xno" && break
  3055. done
  3056. rm -f conftest.$ac_ext
  3057. CC=$ac_save_CC
  3058. fi
  3059. # AC_CACHE_VAL
  3060. case "x$ac_cv_prog_cc_c89" in
  3061. x)
  3062. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  3063. $as_echo "none needed" >&6; } ;;
  3064. xno)
  3065. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  3066. $as_echo "unsupported" >&6; } ;;
  3067. *)
  3068. CC="$CC $ac_cv_prog_cc_c89"
  3069. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  3070. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  3071. esac
  3072. if test "x$ac_cv_prog_cc_c89" != xno; then :
  3073. fi
  3074. ac_ext=c
  3075. ac_cpp='$CPP $CPPFLAGS'
  3076. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3077. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3078. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3079. # extra LD Flags which are required for targets
  3080. case $host in
  3081. *-cygwin* | *-mingw*)
  3082. # 'host' will be top-level target in the case of a target lib,
  3083. # we must compare to with_cross_host to decide if this is a native
  3084. # or cross-compiler and select where to install dlls appropriately.
  3085. if test -n "$with_cross_host" &&
  3086. test x"$with_cross_host" != x"no"; then
  3087. lt_host_flags='-no-undefined -bindir "$(toolexeclibdir)"';
  3088. else
  3089. lt_host_flags='-no-undefined -bindir "$(bindir)"';
  3090. fi
  3091. ;;
  3092. *)
  3093. lt_host_flags=
  3094. ;;
  3095. esac
  3096. case "${host}" in
  3097. *-darwin*)
  3098. # Darwin needs -single_module when linking libobjc
  3099. extra_ldflags_libobjc='$(lt_host_flags) -Wl,-single_module'
  3100. ;;
  3101. *-cygwin*|*-mingw*)
  3102. # Tell libtool to build DLLs on Windows
  3103. extra_ldflags_libobjc='$(lt_host_flags)'
  3104. ;;
  3105. esac
  3106. # Add CET specific flags if CET is enabled
  3107. # Check whether --enable-cet was given.
  3108. if test "${enable_cet+set}" = set; then :
  3109. enableval=$enable_cet;
  3110. case "$enableval" in
  3111. yes|no|auto) ;;
  3112. *) as_fn_error $? "Unknown argument to enable/disable cet" "$LINENO" 5 ;;
  3113. esac
  3114. else
  3115. enable_cet=auto
  3116. fi
  3117. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CET support" >&5
  3118. $as_echo_n "checking for CET support... " >&6; }
  3119. # NB: Avoid nested save_CFLAGS and save_LDFLAGS.
  3120. case "$host" in
  3121. i[34567]86-*-linux* | x86_64-*-linux*)
  3122. case "$enable_cet" in
  3123. auto)
  3124. # Check if target supports multi-byte NOPs
  3125. # and if assembler supports CET insn.
  3126. cet_save_CFLAGS="$CFLAGS"
  3127. CFLAGS="$CFLAGS -fcf-protection"
  3128. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3129. /* end confdefs.h. */
  3130. int
  3131. main ()
  3132. {
  3133. #if !defined(__SSE2__)
  3134. #error target does not support multi-byte NOPs
  3135. #else
  3136. asm ("setssbsy");
  3137. #endif
  3138. ;
  3139. return 0;
  3140. }
  3141. _ACEOF
  3142. if ac_fn_c_try_compile "$LINENO"; then :
  3143. enable_cet=yes
  3144. else
  3145. enable_cet=no
  3146. fi
  3147. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3148. CFLAGS="$cet_save_CFLAGS"
  3149. ;;
  3150. yes)
  3151. # Check if assembler supports CET.
  3152. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3153. /* end confdefs.h. */
  3154. int
  3155. main ()
  3156. {
  3157. asm ("setssbsy");
  3158. ;
  3159. return 0;
  3160. }
  3161. _ACEOF
  3162. if ac_fn_c_try_compile "$LINENO"; then :
  3163. else
  3164. as_fn_error $? "assembler with CET support is required for --enable-cet" "$LINENO" 5
  3165. fi
  3166. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3167. ;;
  3168. esac
  3169. ;;
  3170. *)
  3171. enable_cet=no
  3172. ;;
  3173. esac
  3174. if test x$enable_cet = xyes; then
  3175. CET_FLAGS="-fcf-protection -mshstk"
  3176. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3177. $as_echo "yes" >&6; }
  3178. else
  3179. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3180. $as_echo "no" >&6; }
  3181. fi
  3182. XCFLAGS="$XCFLAGS $CET_FLAGS"
  3183. if test -n "$ac_tool_prefix"; then
  3184. # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
  3185. set dummy ${ac_tool_prefix}as; ac_word=$2
  3186. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3187. $as_echo_n "checking for $ac_word... " >&6; }
  3188. if ${ac_cv_prog_AS+:} false; then :
  3189. $as_echo_n "(cached) " >&6
  3190. else
  3191. if test -n "$AS"; then
  3192. ac_cv_prog_AS="$AS" # Let the user override the test.
  3193. else
  3194. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3195. for as_dir in $PATH
  3196. do
  3197. IFS=$as_save_IFS
  3198. test -z "$as_dir" && as_dir=.
  3199. for ac_exec_ext in '' $ac_executable_extensions; do
  3200. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3201. ac_cv_prog_AS="${ac_tool_prefix}as"
  3202. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3203. break 2
  3204. fi
  3205. done
  3206. done
  3207. IFS=$as_save_IFS
  3208. fi
  3209. fi
  3210. AS=$ac_cv_prog_AS
  3211. if test -n "$AS"; then
  3212. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
  3213. $as_echo "$AS" >&6; }
  3214. else
  3215. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3216. $as_echo "no" >&6; }
  3217. fi
  3218. fi
  3219. if test -z "$ac_cv_prog_AS"; then
  3220. ac_ct_AS=$AS
  3221. # Extract the first word of "as", so it can be a program name with args.
  3222. set dummy as; ac_word=$2
  3223. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3224. $as_echo_n "checking for $ac_word... " >&6; }
  3225. if ${ac_cv_prog_ac_ct_AS+:} false; then :
  3226. $as_echo_n "(cached) " >&6
  3227. else
  3228. if test -n "$ac_ct_AS"; then
  3229. ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
  3230. else
  3231. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3232. for as_dir in $PATH
  3233. do
  3234. IFS=$as_save_IFS
  3235. test -z "$as_dir" && as_dir=.
  3236. for ac_exec_ext in '' $ac_executable_extensions; do
  3237. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3238. ac_cv_prog_ac_ct_AS="as"
  3239. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3240. break 2
  3241. fi
  3242. done
  3243. done
  3244. IFS=$as_save_IFS
  3245. fi
  3246. fi
  3247. ac_ct_AS=$ac_cv_prog_ac_ct_AS
  3248. if test -n "$ac_ct_AS"; then
  3249. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
  3250. $as_echo "$ac_ct_AS" >&6; }
  3251. else
  3252. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3253. $as_echo "no" >&6; }
  3254. fi
  3255. if test "x$ac_ct_AS" = x; then
  3256. AS=""
  3257. else
  3258. case $cross_compiling:$ac_tool_warned in
  3259. yes:)
  3260. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3261. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3262. ac_tool_warned=yes ;;
  3263. esac
  3264. AS=$ac_ct_AS
  3265. fi
  3266. else
  3267. AS="$ac_cv_prog_AS"
  3268. fi
  3269. if test -n "$ac_tool_prefix"; then
  3270. # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
  3271. set dummy ${ac_tool_prefix}ar; ac_word=$2
  3272. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3273. $as_echo_n "checking for $ac_word... " >&6; }
  3274. if ${ac_cv_prog_AR+:} false; then :
  3275. $as_echo_n "(cached) " >&6
  3276. else
  3277. if test -n "$AR"; then
  3278. ac_cv_prog_AR="$AR" # Let the user override the test.
  3279. else
  3280. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3281. for as_dir in $PATH
  3282. do
  3283. IFS=$as_save_IFS
  3284. test -z "$as_dir" && as_dir=.
  3285. for ac_exec_ext in '' $ac_executable_extensions; do
  3286. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3287. ac_cv_prog_AR="${ac_tool_prefix}ar"
  3288. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3289. break 2
  3290. fi
  3291. done
  3292. done
  3293. IFS=$as_save_IFS
  3294. fi
  3295. fi
  3296. AR=$ac_cv_prog_AR
  3297. if test -n "$AR"; then
  3298. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  3299. $as_echo "$AR" >&6; }
  3300. else
  3301. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3302. $as_echo "no" >&6; }
  3303. fi
  3304. fi
  3305. if test -z "$ac_cv_prog_AR"; then
  3306. ac_ct_AR=$AR
  3307. # Extract the first word of "ar", so it can be a program name with args.
  3308. set dummy ar; ac_word=$2
  3309. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3310. $as_echo_n "checking for $ac_word... " >&6; }
  3311. if ${ac_cv_prog_ac_ct_AR+:} false; then :
  3312. $as_echo_n "(cached) " >&6
  3313. else
  3314. if test -n "$ac_ct_AR"; then
  3315. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  3316. else
  3317. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3318. for as_dir in $PATH
  3319. do
  3320. IFS=$as_save_IFS
  3321. test -z "$as_dir" && as_dir=.
  3322. for ac_exec_ext in '' $ac_executable_extensions; do
  3323. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3324. ac_cv_prog_ac_ct_AR="ar"
  3325. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3326. break 2
  3327. fi
  3328. done
  3329. done
  3330. IFS=$as_save_IFS
  3331. fi
  3332. fi
  3333. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  3334. if test -n "$ac_ct_AR"; then
  3335. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
  3336. $as_echo "$ac_ct_AR" >&6; }
  3337. else
  3338. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3339. $as_echo "no" >&6; }
  3340. fi
  3341. if test "x$ac_ct_AR" = x; then
  3342. AR=""
  3343. else
  3344. case $cross_compiling:$ac_tool_warned in
  3345. yes:)
  3346. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3347. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3348. ac_tool_warned=yes ;;
  3349. esac
  3350. AR=$ac_ct_AR
  3351. fi
  3352. else
  3353. AR="$ac_cv_prog_AR"
  3354. fi
  3355. if test -n "$ac_tool_prefix"; then
  3356. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  3357. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  3358. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3359. $as_echo_n "checking for $ac_word... " >&6; }
  3360. if ${ac_cv_prog_RANLIB+:} false; then :
  3361. $as_echo_n "(cached) " >&6
  3362. else
  3363. if test -n "$RANLIB"; then
  3364. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  3365. else
  3366. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3367. for as_dir in $PATH
  3368. do
  3369. IFS=$as_save_IFS
  3370. test -z "$as_dir" && as_dir=.
  3371. for ac_exec_ext in '' $ac_executable_extensions; do
  3372. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3373. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  3374. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3375. break 2
  3376. fi
  3377. done
  3378. done
  3379. IFS=$as_save_IFS
  3380. fi
  3381. fi
  3382. RANLIB=$ac_cv_prog_RANLIB
  3383. if test -n "$RANLIB"; then
  3384. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  3385. $as_echo "$RANLIB" >&6; }
  3386. else
  3387. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3388. $as_echo "no" >&6; }
  3389. fi
  3390. fi
  3391. if test -z "$ac_cv_prog_RANLIB"; then
  3392. ac_ct_RANLIB=$RANLIB
  3393. # Extract the first word of "ranlib", so it can be a program name with args.
  3394. set dummy ranlib; ac_word=$2
  3395. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3396. $as_echo_n "checking for $ac_word... " >&6; }
  3397. if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
  3398. $as_echo_n "(cached) " >&6
  3399. else
  3400. if test -n "$ac_ct_RANLIB"; then
  3401. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  3402. else
  3403. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3404. for as_dir in $PATH
  3405. do
  3406. IFS=$as_save_IFS
  3407. test -z "$as_dir" && as_dir=.
  3408. for ac_exec_ext in '' $ac_executable_extensions; do
  3409. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3410. ac_cv_prog_ac_ct_RANLIB="ranlib"
  3411. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3412. break 2
  3413. fi
  3414. done
  3415. done
  3416. IFS=$as_save_IFS
  3417. fi
  3418. fi
  3419. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  3420. if test -n "$ac_ct_RANLIB"; then
  3421. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  3422. $as_echo "$ac_ct_RANLIB" >&6; }
  3423. else
  3424. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3425. $as_echo "no" >&6; }
  3426. fi
  3427. if test "x$ac_ct_RANLIB" = x; then
  3428. RANLIB=":"
  3429. else
  3430. case $cross_compiling:$ac_tool_warned in
  3431. yes:)
  3432. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3433. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3434. ac_tool_warned=yes ;;
  3435. esac
  3436. RANLIB=$ac_ct_RANLIB
  3437. fi
  3438. else
  3439. RANLIB="$ac_cv_prog_RANLIB"
  3440. fi
  3441. # Find a good install program. We prefer a C program (faster),
  3442. # so one script is as good as another. But avoid the broken or
  3443. # incompatible versions:
  3444. # SysV /etc/install, /usr/sbin/install
  3445. # SunOS /usr/etc/install
  3446. # IRIX /sbin/install
  3447. # AIX /bin/install
  3448. # AmigaOS /C/install, which installs bootblocks on floppy discs
  3449. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  3450. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  3451. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  3452. # OS/2's system install, which has a completely different semantic
  3453. # ./install, which can be erroneously created by make from ./install.sh.
  3454. # Reject install programs that cannot install multiple files.
  3455. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
  3456. $as_echo_n "checking for a BSD-compatible install... " >&6; }
  3457. if test -z "$INSTALL"; then
  3458. if ${ac_cv_path_install+:} false; then :
  3459. $as_echo_n "(cached) " >&6
  3460. else
  3461. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3462. for as_dir in $PATH
  3463. do
  3464. IFS=$as_save_IFS
  3465. test -z "$as_dir" && as_dir=.
  3466. # Account for people who put trailing slashes in PATH elements.
  3467. case $as_dir/ in #((
  3468. ./ | .// | /[cC]/* | \
  3469. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  3470. ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
  3471. /usr/ucb/* ) ;;
  3472. *)
  3473. # OSF1 and SCO ODT 3.0 have their own names for install.
  3474. # Don't use installbsd from OSF since it installs stuff as root
  3475. # by default.
  3476. for ac_prog in ginstall scoinst install; do
  3477. for ac_exec_ext in '' $ac_executable_extensions; do
  3478. if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
  3479. if test $ac_prog = install &&
  3480. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  3481. # AIX install. It has an incompatible calling convention.
  3482. :
  3483. elif test $ac_prog = install &&
  3484. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  3485. # program-specific install script used by HP pwplus--don't use.
  3486. :
  3487. else
  3488. rm -rf conftest.one conftest.two conftest.dir
  3489. echo one > conftest.one
  3490. echo two > conftest.two
  3491. mkdir conftest.dir
  3492. if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
  3493. test -s conftest.one && test -s conftest.two &&
  3494. test -s conftest.dir/conftest.one &&
  3495. test -s conftest.dir/conftest.two
  3496. then
  3497. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  3498. break 3
  3499. fi
  3500. fi
  3501. fi
  3502. done
  3503. done
  3504. ;;
  3505. esac
  3506. done
  3507. IFS=$as_save_IFS
  3508. rm -rf conftest.one conftest.two conftest.dir
  3509. fi
  3510. if test "${ac_cv_path_install+set}" = set; then
  3511. INSTALL=$ac_cv_path_install
  3512. else
  3513. # As a last resort, use the slow shell script. Don't cache a
  3514. # value for INSTALL within a source directory, because that will
  3515. # break other packages using the cache if that directory is
  3516. # removed, or if the value is a relative name.
  3517. INSTALL=$ac_install_sh
  3518. fi
  3519. fi
  3520. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
  3521. $as_echo "$INSTALL" >&6; }
  3522. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  3523. # It thinks the first close brace ends the variable substitution.
  3524. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  3525. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  3526. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  3527. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
  3528. $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
  3529. # Check whether --enable-maintainer-mode was given.
  3530. if test "${enable_maintainer_mode+set}" = set; then :
  3531. enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
  3532. else
  3533. USE_MAINTAINER_MODE=no
  3534. fi
  3535. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
  3536. $as_echo "$USE_MAINTAINER_MODE" >&6; }
  3537. if test $USE_MAINTAINER_MODE = yes; then
  3538. MAINTAINER_MODE_TRUE=
  3539. MAINTAINER_MODE_FALSE='#'
  3540. else
  3541. MAINTAINER_MODE_TRUE='#'
  3542. MAINTAINER_MODE_FALSE=
  3543. fi
  3544. MAINT=$MAINTAINER_MODE_TRUE
  3545. # Enable Win32 DLL on MS Windows - FIXME
  3546. enable_win32_dll=yes
  3547. case $host in
  3548. *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
  3549. if test -n "$ac_tool_prefix"; then
  3550. # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
  3551. set dummy ${ac_tool_prefix}as; ac_word=$2
  3552. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3553. $as_echo_n "checking for $ac_word... " >&6; }
  3554. if ${ac_cv_prog_AS+:} false; then :
  3555. $as_echo_n "(cached) " >&6
  3556. else
  3557. if test -n "$AS"; then
  3558. ac_cv_prog_AS="$AS" # Let the user override the test.
  3559. else
  3560. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3561. for as_dir in $PATH
  3562. do
  3563. IFS=$as_save_IFS
  3564. test -z "$as_dir" && as_dir=.
  3565. for ac_exec_ext in '' $ac_executable_extensions; do
  3566. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3567. ac_cv_prog_AS="${ac_tool_prefix}as"
  3568. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3569. break 2
  3570. fi
  3571. done
  3572. done
  3573. IFS=$as_save_IFS
  3574. fi
  3575. fi
  3576. AS=$ac_cv_prog_AS
  3577. if test -n "$AS"; then
  3578. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
  3579. $as_echo "$AS" >&6; }
  3580. else
  3581. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3582. $as_echo "no" >&6; }
  3583. fi
  3584. fi
  3585. if test -z "$ac_cv_prog_AS"; then
  3586. ac_ct_AS=$AS
  3587. # Extract the first word of "as", so it can be a program name with args.
  3588. set dummy as; ac_word=$2
  3589. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3590. $as_echo_n "checking for $ac_word... " >&6; }
  3591. if ${ac_cv_prog_ac_ct_AS+:} false; then :
  3592. $as_echo_n "(cached) " >&6
  3593. else
  3594. if test -n "$ac_ct_AS"; then
  3595. ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
  3596. else
  3597. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3598. for as_dir in $PATH
  3599. do
  3600. IFS=$as_save_IFS
  3601. test -z "$as_dir" && as_dir=.
  3602. for ac_exec_ext in '' $ac_executable_extensions; do
  3603. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3604. ac_cv_prog_ac_ct_AS="as"
  3605. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3606. break 2
  3607. fi
  3608. done
  3609. done
  3610. IFS=$as_save_IFS
  3611. fi
  3612. fi
  3613. ac_ct_AS=$ac_cv_prog_ac_ct_AS
  3614. if test -n "$ac_ct_AS"; then
  3615. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
  3616. $as_echo "$ac_ct_AS" >&6; }
  3617. else
  3618. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3619. $as_echo "no" >&6; }
  3620. fi
  3621. if test "x$ac_ct_AS" = x; then
  3622. AS="false"
  3623. else
  3624. case $cross_compiling:$ac_tool_warned in
  3625. yes:)
  3626. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3627. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3628. ac_tool_warned=yes ;;
  3629. esac
  3630. AS=$ac_ct_AS
  3631. fi
  3632. else
  3633. AS="$ac_cv_prog_AS"
  3634. fi
  3635. if test -n "$ac_tool_prefix"; then
  3636. # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
  3637. set dummy ${ac_tool_prefix}dlltool; ac_word=$2
  3638. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3639. $as_echo_n "checking for $ac_word... " >&6; }
  3640. if ${ac_cv_prog_DLLTOOL+:} false; then :
  3641. $as_echo_n "(cached) " >&6
  3642. else
  3643. if test -n "$DLLTOOL"; then
  3644. ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
  3645. else
  3646. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3647. for as_dir in $PATH
  3648. do
  3649. IFS=$as_save_IFS
  3650. test -z "$as_dir" && as_dir=.
  3651. for ac_exec_ext in '' $ac_executable_extensions; do
  3652. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3653. ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
  3654. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3655. break 2
  3656. fi
  3657. done
  3658. done
  3659. IFS=$as_save_IFS
  3660. fi
  3661. fi
  3662. DLLTOOL=$ac_cv_prog_DLLTOOL
  3663. if test -n "$DLLTOOL"; then
  3664. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
  3665. $as_echo "$DLLTOOL" >&6; }
  3666. else
  3667. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3668. $as_echo "no" >&6; }
  3669. fi
  3670. fi
  3671. if test -z "$ac_cv_prog_DLLTOOL"; then
  3672. ac_ct_DLLTOOL=$DLLTOOL
  3673. # Extract the first word of "dlltool", so it can be a program name with args.
  3674. set dummy dlltool; ac_word=$2
  3675. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3676. $as_echo_n "checking for $ac_word... " >&6; }
  3677. if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
  3678. $as_echo_n "(cached) " >&6
  3679. else
  3680. if test -n "$ac_ct_DLLTOOL"; then
  3681. ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
  3682. else
  3683. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3684. for as_dir in $PATH
  3685. do
  3686. IFS=$as_save_IFS
  3687. test -z "$as_dir" && as_dir=.
  3688. for ac_exec_ext in '' $ac_executable_extensions; do
  3689. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3690. ac_cv_prog_ac_ct_DLLTOOL="dlltool"
  3691. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3692. break 2
  3693. fi
  3694. done
  3695. done
  3696. IFS=$as_save_IFS
  3697. fi
  3698. fi
  3699. ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
  3700. if test -n "$ac_ct_DLLTOOL"; then
  3701. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
  3702. $as_echo "$ac_ct_DLLTOOL" >&6; }
  3703. else
  3704. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3705. $as_echo "no" >&6; }
  3706. fi
  3707. if test "x$ac_ct_DLLTOOL" = x; then
  3708. DLLTOOL="false"
  3709. else
  3710. case $cross_compiling:$ac_tool_warned in
  3711. yes:)
  3712. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3713. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3714. ac_tool_warned=yes ;;
  3715. esac
  3716. DLLTOOL=$ac_ct_DLLTOOL
  3717. fi
  3718. else
  3719. DLLTOOL="$ac_cv_prog_DLLTOOL"
  3720. fi
  3721. if test -n "$ac_tool_prefix"; then
  3722. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  3723. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  3724. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3725. $as_echo_n "checking for $ac_word... " >&6; }
  3726. if ${ac_cv_prog_OBJDUMP+:} false; then :
  3727. $as_echo_n "(cached) " >&6
  3728. else
  3729. if test -n "$OBJDUMP"; then
  3730. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  3731. else
  3732. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3733. for as_dir in $PATH
  3734. do
  3735. IFS=$as_save_IFS
  3736. test -z "$as_dir" && as_dir=.
  3737. for ac_exec_ext in '' $ac_executable_extensions; do
  3738. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3739. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  3740. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3741. break 2
  3742. fi
  3743. done
  3744. done
  3745. IFS=$as_save_IFS
  3746. fi
  3747. fi
  3748. OBJDUMP=$ac_cv_prog_OBJDUMP
  3749. if test -n "$OBJDUMP"; then
  3750. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  3751. $as_echo "$OBJDUMP" >&6; }
  3752. else
  3753. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3754. $as_echo "no" >&6; }
  3755. fi
  3756. fi
  3757. if test -z "$ac_cv_prog_OBJDUMP"; then
  3758. ac_ct_OBJDUMP=$OBJDUMP
  3759. # Extract the first word of "objdump", so it can be a program name with args.
  3760. set dummy objdump; ac_word=$2
  3761. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3762. $as_echo_n "checking for $ac_word... " >&6; }
  3763. if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
  3764. $as_echo_n "(cached) " >&6
  3765. else
  3766. if test -n "$ac_ct_OBJDUMP"; then
  3767. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  3768. else
  3769. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3770. for as_dir in $PATH
  3771. do
  3772. IFS=$as_save_IFS
  3773. test -z "$as_dir" && as_dir=.
  3774. for ac_exec_ext in '' $ac_executable_extensions; do
  3775. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3776. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  3777. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3778. break 2
  3779. fi
  3780. done
  3781. done
  3782. IFS=$as_save_IFS
  3783. fi
  3784. fi
  3785. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  3786. if test -n "$ac_ct_OBJDUMP"; then
  3787. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  3788. $as_echo "$ac_ct_OBJDUMP" >&6; }
  3789. else
  3790. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3791. $as_echo "no" >&6; }
  3792. fi
  3793. if test "x$ac_ct_OBJDUMP" = x; then
  3794. OBJDUMP="false"
  3795. else
  3796. case $cross_compiling:$ac_tool_warned in
  3797. yes:)
  3798. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3799. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3800. ac_tool_warned=yes ;;
  3801. esac
  3802. OBJDUMP=$ac_ct_OBJDUMP
  3803. fi
  3804. else
  3805. OBJDUMP="$ac_cv_prog_OBJDUMP"
  3806. fi
  3807. ;;
  3808. esac
  3809. test -z "$AS" && AS=as
  3810. test -z "$DLLTOOL" && DLLTOOL=dlltool
  3811. test -z "$OBJDUMP" && OBJDUMP=objdump
  3812. case `pwd` in
  3813. *\ * | *\ *)
  3814. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
  3815. $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
  3816. esac
  3817. macro_version='2.2.7a'
  3818. macro_revision='1.3134'
  3819. ltmain="$ac_aux_dir/ltmain.sh"
  3820. # Backslashify metacharacters that are still active within
  3821. # double-quoted strings.
  3822. sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
  3823. # Same as above, but do not quote variable references.
  3824. double_quote_subst='s/\(["`\\]\)/\\\1/g'
  3825. # Sed substitution to delay expansion of an escaped shell variable in a
  3826. # double_quote_subst'ed string.
  3827. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  3828. # Sed substitution to delay expansion of an escaped single quote.
  3829. delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
  3830. # Sed substitution to avoid accidental globbing in evaled expressions
  3831. no_glob_subst='s/\*/\\\*/g'
  3832. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  3833. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
  3834. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
  3835. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
  3836. $as_echo_n "checking how to print strings... " >&6; }
  3837. # Test print first, because it will be a builtin if present.
  3838. if test "X`print -r -- -n 2>/dev/null`" = X-n && \
  3839. test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
  3840. ECHO='print -r --'
  3841. elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
  3842. ECHO='printf %s\n'
  3843. else
  3844. # Use this function as a fallback that always works.
  3845. func_fallback_echo ()
  3846. {
  3847. eval 'cat <<_LTECHO_EOF
  3848. $1
  3849. _LTECHO_EOF'
  3850. }
  3851. ECHO='func_fallback_echo'
  3852. fi
  3853. # func_echo_all arg...
  3854. # Invoke $ECHO with all args, space-separated.
  3855. func_echo_all ()
  3856. {
  3857. $ECHO ""
  3858. }
  3859. case "$ECHO" in
  3860. printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
  3861. $as_echo "printf" >&6; } ;;
  3862. print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
  3863. $as_echo "print -r" >&6; } ;;
  3864. *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
  3865. $as_echo "cat" >&6; } ;;
  3866. esac
  3867. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
  3868. $as_echo_n "checking for a sed that does not truncate output... " >&6; }
  3869. if ${ac_cv_path_SED+:} false; then :
  3870. $as_echo_n "(cached) " >&6
  3871. else
  3872. ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  3873. for ac_i in 1 2 3 4 5 6 7; do
  3874. ac_script="$ac_script$as_nl$ac_script"
  3875. done
  3876. echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
  3877. { ac_script=; unset ac_script;}
  3878. if test -z "$SED"; then
  3879. ac_path_SED_found=false
  3880. # Loop through the user's path and test for each of PROGNAME-LIST
  3881. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3882. for as_dir in $PATH
  3883. do
  3884. IFS=$as_save_IFS
  3885. test -z "$as_dir" && as_dir=.
  3886. for ac_prog in sed gsed; do
  3887. for ac_exec_ext in '' $ac_executable_extensions; do
  3888. ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
  3889. as_fn_executable_p "$ac_path_SED" || continue
  3890. # Check for GNU ac_path_SED and select it if it is found.
  3891. # Check for GNU $ac_path_SED
  3892. case `"$ac_path_SED" --version 2>&1` in
  3893. *GNU*)
  3894. ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  3895. *)
  3896. ac_count=0
  3897. $as_echo_n 0123456789 >"conftest.in"
  3898. while :
  3899. do
  3900. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3901. mv "conftest.tmp" "conftest.in"
  3902. cp "conftest.in" "conftest.nl"
  3903. $as_echo '' >> "conftest.nl"
  3904. "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3905. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3906. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3907. if test $ac_count -gt ${ac_path_SED_max-0}; then
  3908. # Best one so far, save it but keep looking for a better one
  3909. ac_cv_path_SED="$ac_path_SED"
  3910. ac_path_SED_max=$ac_count
  3911. fi
  3912. # 10*(2^10) chars as input seems more than enough
  3913. test $ac_count -gt 10 && break
  3914. done
  3915. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3916. esac
  3917. $ac_path_SED_found && break 3
  3918. done
  3919. done
  3920. done
  3921. IFS=$as_save_IFS
  3922. if test -z "$ac_cv_path_SED"; then
  3923. as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
  3924. fi
  3925. else
  3926. ac_cv_path_SED=$SED
  3927. fi
  3928. fi
  3929. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
  3930. $as_echo "$ac_cv_path_SED" >&6; }
  3931. SED="$ac_cv_path_SED"
  3932. rm -f conftest.sed
  3933. test -z "$SED" && SED=sed
  3934. Xsed="$SED -e 1s/^X//"
  3935. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
  3936. $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
  3937. if ${ac_cv_path_GREP+:} false; then :
  3938. $as_echo_n "(cached) " >&6
  3939. else
  3940. if test -z "$GREP"; then
  3941. ac_path_GREP_found=false
  3942. # Loop through the user's path and test for each of PROGNAME-LIST
  3943. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3944. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3945. do
  3946. IFS=$as_save_IFS
  3947. test -z "$as_dir" && as_dir=.
  3948. for ac_prog in grep ggrep; do
  3949. for ac_exec_ext in '' $ac_executable_extensions; do
  3950. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  3951. as_fn_executable_p "$ac_path_GREP" || continue
  3952. # Check for GNU ac_path_GREP and select it if it is found.
  3953. # Check for GNU $ac_path_GREP
  3954. case `"$ac_path_GREP" --version 2>&1` in
  3955. *GNU*)
  3956. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  3957. *)
  3958. ac_count=0
  3959. $as_echo_n 0123456789 >"conftest.in"
  3960. while :
  3961. do
  3962. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3963. mv "conftest.tmp" "conftest.in"
  3964. cp "conftest.in" "conftest.nl"
  3965. $as_echo 'GREP' >> "conftest.nl"
  3966. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3967. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3968. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3969. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  3970. # Best one so far, save it but keep looking for a better one
  3971. ac_cv_path_GREP="$ac_path_GREP"
  3972. ac_path_GREP_max=$ac_count
  3973. fi
  3974. # 10*(2^10) chars as input seems more than enough
  3975. test $ac_count -gt 10 && break
  3976. done
  3977. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3978. esac
  3979. $ac_path_GREP_found && break 3
  3980. done
  3981. done
  3982. done
  3983. IFS=$as_save_IFS
  3984. if test -z "$ac_cv_path_GREP"; then
  3985. as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  3986. fi
  3987. else
  3988. ac_cv_path_GREP=$GREP
  3989. fi
  3990. fi
  3991. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
  3992. $as_echo "$ac_cv_path_GREP" >&6; }
  3993. GREP="$ac_cv_path_GREP"
  3994. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  3995. $as_echo_n "checking for egrep... " >&6; }
  3996. if ${ac_cv_path_EGREP+:} false; then :
  3997. $as_echo_n "(cached) " >&6
  3998. else
  3999. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  4000. then ac_cv_path_EGREP="$GREP -E"
  4001. else
  4002. if test -z "$EGREP"; then
  4003. ac_path_EGREP_found=false
  4004. # Loop through the user's path and test for each of PROGNAME-LIST
  4005. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4006. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4007. do
  4008. IFS=$as_save_IFS
  4009. test -z "$as_dir" && as_dir=.
  4010. for ac_prog in egrep; do
  4011. for ac_exec_ext in '' $ac_executable_extensions; do
  4012. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  4013. as_fn_executable_p "$ac_path_EGREP" || continue
  4014. # Check for GNU ac_path_EGREP and select it if it is found.
  4015. # Check for GNU $ac_path_EGREP
  4016. case `"$ac_path_EGREP" --version 2>&1` in
  4017. *GNU*)
  4018. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  4019. *)
  4020. ac_count=0
  4021. $as_echo_n 0123456789 >"conftest.in"
  4022. while :
  4023. do
  4024. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4025. mv "conftest.tmp" "conftest.in"
  4026. cp "conftest.in" "conftest.nl"
  4027. $as_echo 'EGREP' >> "conftest.nl"
  4028. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4029. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4030. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4031. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  4032. # Best one so far, save it but keep looking for a better one
  4033. ac_cv_path_EGREP="$ac_path_EGREP"
  4034. ac_path_EGREP_max=$ac_count
  4035. fi
  4036. # 10*(2^10) chars as input seems more than enough
  4037. test $ac_count -gt 10 && break
  4038. done
  4039. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4040. esac
  4041. $ac_path_EGREP_found && break 3
  4042. done
  4043. done
  4044. done
  4045. IFS=$as_save_IFS
  4046. if test -z "$ac_cv_path_EGREP"; then
  4047. as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4048. fi
  4049. else
  4050. ac_cv_path_EGREP=$EGREP
  4051. fi
  4052. fi
  4053. fi
  4054. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  4055. $as_echo "$ac_cv_path_EGREP" >&6; }
  4056. EGREP="$ac_cv_path_EGREP"
  4057. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
  4058. $as_echo_n "checking for fgrep... " >&6; }
  4059. if ${ac_cv_path_FGREP+:} false; then :
  4060. $as_echo_n "(cached) " >&6
  4061. else
  4062. if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
  4063. then ac_cv_path_FGREP="$GREP -F"
  4064. else
  4065. if test -z "$FGREP"; then
  4066. ac_path_FGREP_found=false
  4067. # Loop through the user's path and test for each of PROGNAME-LIST
  4068. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4069. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4070. do
  4071. IFS=$as_save_IFS
  4072. test -z "$as_dir" && as_dir=.
  4073. for ac_prog in fgrep; do
  4074. for ac_exec_ext in '' $ac_executable_extensions; do
  4075. ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
  4076. as_fn_executable_p "$ac_path_FGREP" || continue
  4077. # Check for GNU ac_path_FGREP and select it if it is found.
  4078. # Check for GNU $ac_path_FGREP
  4079. case `"$ac_path_FGREP" --version 2>&1` in
  4080. *GNU*)
  4081. ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
  4082. *)
  4083. ac_count=0
  4084. $as_echo_n 0123456789 >"conftest.in"
  4085. while :
  4086. do
  4087. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4088. mv "conftest.tmp" "conftest.in"
  4089. cp "conftest.in" "conftest.nl"
  4090. $as_echo 'FGREP' >> "conftest.nl"
  4091. "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4092. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4093. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4094. if test $ac_count -gt ${ac_path_FGREP_max-0}; then
  4095. # Best one so far, save it but keep looking for a better one
  4096. ac_cv_path_FGREP="$ac_path_FGREP"
  4097. ac_path_FGREP_max=$ac_count
  4098. fi
  4099. # 10*(2^10) chars as input seems more than enough
  4100. test $ac_count -gt 10 && break
  4101. done
  4102. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4103. esac
  4104. $ac_path_FGREP_found && break 3
  4105. done
  4106. done
  4107. done
  4108. IFS=$as_save_IFS
  4109. if test -z "$ac_cv_path_FGREP"; then
  4110. as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4111. fi
  4112. else
  4113. ac_cv_path_FGREP=$FGREP
  4114. fi
  4115. fi
  4116. fi
  4117. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
  4118. $as_echo "$ac_cv_path_FGREP" >&6; }
  4119. FGREP="$ac_cv_path_FGREP"
  4120. test -z "$GREP" && GREP=grep
  4121. # Check whether --with-gnu-ld was given.
  4122. if test "${with_gnu_ld+set}" = set; then :
  4123. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  4124. else
  4125. with_gnu_ld=no
  4126. fi
  4127. ac_prog=ld
  4128. if test "$GCC" = yes; then
  4129. # Check if gcc -print-prog-name=ld gives a path.
  4130. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  4131. $as_echo_n "checking for ld used by $CC... " >&6; }
  4132. case $host in
  4133. *-*-mingw*)
  4134. # gcc leaves a trailing carriage return which upsets mingw
  4135. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  4136. *)
  4137. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  4138. esac
  4139. case $ac_prog in
  4140. # Accept absolute paths.
  4141. [\\/]* | ?:[\\/]*)
  4142. re_direlt='/[^/][^/]*/\.\./'
  4143. # Canonicalize the pathname of ld
  4144. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  4145. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  4146. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  4147. done
  4148. test -z "$LD" && LD="$ac_prog"
  4149. ;;
  4150. "")
  4151. # If it fails, then pretend we aren't using GCC.
  4152. ac_prog=ld
  4153. ;;
  4154. *)
  4155. # If it is relative, then search for the first ld in PATH.
  4156. with_gnu_ld=unknown
  4157. ;;
  4158. esac
  4159. elif test "$with_gnu_ld" = yes; then
  4160. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  4161. $as_echo_n "checking for GNU ld... " >&6; }
  4162. else
  4163. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  4164. $as_echo_n "checking for non-GNU ld... " >&6; }
  4165. fi
  4166. if ${lt_cv_path_LD+:} false; then :
  4167. $as_echo_n "(cached) " >&6
  4168. else
  4169. if test -z "$LD"; then
  4170. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  4171. for ac_dir in $PATH; do
  4172. IFS="$lt_save_ifs"
  4173. test -z "$ac_dir" && ac_dir=.
  4174. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  4175. lt_cv_path_LD="$ac_dir/$ac_prog"
  4176. # Check to see if the program is GNU ld. I'd rather use --version,
  4177. # but apparently some variants of GNU ld only accept -v.
  4178. # Break only if it was the GNU/non-GNU ld that we prefer.
  4179. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  4180. *GNU* | *'with BFD'*)
  4181. test "$with_gnu_ld" != no && break
  4182. ;;
  4183. *)
  4184. test "$with_gnu_ld" != yes && break
  4185. ;;
  4186. esac
  4187. fi
  4188. done
  4189. IFS="$lt_save_ifs"
  4190. else
  4191. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  4192. fi
  4193. fi
  4194. LD="$lt_cv_path_LD"
  4195. if test -n "$LD"; then
  4196. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  4197. $as_echo "$LD" >&6; }
  4198. else
  4199. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4200. $as_echo "no" >&6; }
  4201. fi
  4202. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  4203. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  4204. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  4205. if ${lt_cv_prog_gnu_ld+:} false; then :
  4206. $as_echo_n "(cached) " >&6
  4207. else
  4208. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  4209. case `$LD -v 2>&1 </dev/null` in
  4210. *GNU* | *'with BFD'*)
  4211. lt_cv_prog_gnu_ld=yes
  4212. ;;
  4213. *)
  4214. lt_cv_prog_gnu_ld=no
  4215. ;;
  4216. esac
  4217. fi
  4218. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  4219. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  4220. with_gnu_ld=$lt_cv_prog_gnu_ld
  4221. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
  4222. $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
  4223. if ${lt_cv_path_NM+:} false; then :
  4224. $as_echo_n "(cached) " >&6
  4225. else
  4226. if test -n "$NM"; then
  4227. # Let the user override the test.
  4228. lt_cv_path_NM="$NM"
  4229. else
  4230. lt_nm_to_check="${ac_tool_prefix}nm"
  4231. if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
  4232. lt_nm_to_check="$lt_nm_to_check nm"
  4233. fi
  4234. for lt_tmp_nm in $lt_nm_to_check; do
  4235. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  4236. for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
  4237. IFS="$lt_save_ifs"
  4238. test -z "$ac_dir" && ac_dir=.
  4239. tmp_nm="$ac_dir/$lt_tmp_nm"
  4240. if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
  4241. # Check to see if the nm accepts a BSD-compat flag.
  4242. # Adding the `sed 1q' prevents false positives on HP-UX, which says:
  4243. # nm: unknown option "B" ignored
  4244. # Tru64's nm complains that /dev/null is an invalid object file
  4245. case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
  4246. */dev/null* | *'Invalid file or object type'*)
  4247. lt_cv_path_NM="$tmp_nm -B"
  4248. break
  4249. ;;
  4250. *)
  4251. case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  4252. */dev/null*)
  4253. lt_cv_path_NM="$tmp_nm -p"
  4254. break
  4255. ;;
  4256. *)
  4257. lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  4258. continue # so that we can try to find one that supports BSD flags
  4259. ;;
  4260. esac
  4261. ;;
  4262. esac
  4263. fi
  4264. done
  4265. IFS="$lt_save_ifs"
  4266. done
  4267. : ${lt_cv_path_NM=no}
  4268. fi
  4269. fi
  4270. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
  4271. $as_echo "$lt_cv_path_NM" >&6; }
  4272. if test "$lt_cv_path_NM" != "no"; then
  4273. NM="$lt_cv_path_NM"
  4274. else
  4275. # Didn't find any BSD compatible name lister, look for dumpbin.
  4276. if test -n "$DUMPBIN"; then :
  4277. # Let the user override the test.
  4278. else
  4279. if test -n "$ac_tool_prefix"; then
  4280. for ac_prog in dumpbin "link -dump"
  4281. do
  4282. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  4283. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  4284. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4285. $as_echo_n "checking for $ac_word... " >&6; }
  4286. if ${ac_cv_prog_DUMPBIN+:} false; then :
  4287. $as_echo_n "(cached) " >&6
  4288. else
  4289. if test -n "$DUMPBIN"; then
  4290. ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
  4291. else
  4292. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4293. for as_dir in $PATH
  4294. do
  4295. IFS=$as_save_IFS
  4296. test -z "$as_dir" && as_dir=.
  4297. for ac_exec_ext in '' $ac_executable_extensions; do
  4298. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4299. ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
  4300. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4301. break 2
  4302. fi
  4303. done
  4304. done
  4305. IFS=$as_save_IFS
  4306. fi
  4307. fi
  4308. DUMPBIN=$ac_cv_prog_DUMPBIN
  4309. if test -n "$DUMPBIN"; then
  4310. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
  4311. $as_echo "$DUMPBIN" >&6; }
  4312. else
  4313. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4314. $as_echo "no" >&6; }
  4315. fi
  4316. test -n "$DUMPBIN" && break
  4317. done
  4318. fi
  4319. if test -z "$DUMPBIN"; then
  4320. ac_ct_DUMPBIN=$DUMPBIN
  4321. for ac_prog in dumpbin "link -dump"
  4322. do
  4323. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4324. set dummy $ac_prog; ac_word=$2
  4325. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4326. $as_echo_n "checking for $ac_word... " >&6; }
  4327. if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
  4328. $as_echo_n "(cached) " >&6
  4329. else
  4330. if test -n "$ac_ct_DUMPBIN"; then
  4331. ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
  4332. else
  4333. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4334. for as_dir in $PATH
  4335. do
  4336. IFS=$as_save_IFS
  4337. test -z "$as_dir" && as_dir=.
  4338. for ac_exec_ext in '' $ac_executable_extensions; do
  4339. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4340. ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
  4341. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4342. break 2
  4343. fi
  4344. done
  4345. done
  4346. IFS=$as_save_IFS
  4347. fi
  4348. fi
  4349. ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
  4350. if test -n "$ac_ct_DUMPBIN"; then
  4351. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
  4352. $as_echo "$ac_ct_DUMPBIN" >&6; }
  4353. else
  4354. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4355. $as_echo "no" >&6; }
  4356. fi
  4357. test -n "$ac_ct_DUMPBIN" && break
  4358. done
  4359. if test "x$ac_ct_DUMPBIN" = x; then
  4360. DUMPBIN=":"
  4361. else
  4362. case $cross_compiling:$ac_tool_warned in
  4363. yes:)
  4364. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4365. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4366. ac_tool_warned=yes ;;
  4367. esac
  4368. DUMPBIN=$ac_ct_DUMPBIN
  4369. fi
  4370. fi
  4371. case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
  4372. *COFF*)
  4373. DUMPBIN="$DUMPBIN -symbols"
  4374. ;;
  4375. *)
  4376. DUMPBIN=:
  4377. ;;
  4378. esac
  4379. fi
  4380. if test "$DUMPBIN" != ":"; then
  4381. NM="$DUMPBIN"
  4382. fi
  4383. fi
  4384. test -z "$NM" && NM=nm
  4385. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
  4386. $as_echo_n "checking the name lister ($NM) interface... " >&6; }
  4387. if ${lt_cv_nm_interface+:} false; then :
  4388. $as_echo_n "(cached) " >&6
  4389. else
  4390. lt_cv_nm_interface="BSD nm"
  4391. echo "int some_variable = 0;" > conftest.$ac_ext
  4392. (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
  4393. (eval "$ac_compile" 2>conftest.err)
  4394. cat conftest.err >&5
  4395. (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
  4396. (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
  4397. cat conftest.err >&5
  4398. (eval echo "\"\$as_me:$LINENO: output\"" >&5)
  4399. cat conftest.out >&5
  4400. if $GREP 'External.*some_variable' conftest.out > /dev/null; then
  4401. lt_cv_nm_interface="MS dumpbin"
  4402. fi
  4403. rm -f conftest*
  4404. fi
  4405. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
  4406. $as_echo "$lt_cv_nm_interface" >&6; }
  4407. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
  4408. $as_echo_n "checking whether ln -s works... " >&6; }
  4409. LN_S=$as_ln_s
  4410. if test "$LN_S" = "ln -s"; then
  4411. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4412. $as_echo "yes" >&6; }
  4413. else
  4414. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
  4415. $as_echo "no, using $LN_S" >&6; }
  4416. fi
  4417. # find the maximum length of command line arguments
  4418. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
  4419. $as_echo_n "checking the maximum length of command line arguments... " >&6; }
  4420. if ${lt_cv_sys_max_cmd_len+:} false; then :
  4421. $as_echo_n "(cached) " >&6
  4422. else
  4423. i=0
  4424. teststring="ABCD"
  4425. case $build_os in
  4426. msdosdjgpp*)
  4427. # On DJGPP, this test can blow up pretty badly due to problems in libc
  4428. # (any single argument exceeding 2000 bytes causes a buffer overrun
  4429. # during glob expansion). Even if it were fixed, the result of this
  4430. # check would be larger than it should be.
  4431. lt_cv_sys_max_cmd_len=12288; # 12K is about right
  4432. ;;
  4433. gnu*)
  4434. # Under GNU Hurd, this test is not required because there is
  4435. # no limit to the length of command line arguments.
  4436. # Libtool will interpret -1 as no limit whatsoever
  4437. lt_cv_sys_max_cmd_len=-1;
  4438. ;;
  4439. cygwin* | mingw* | cegcc*)
  4440. # On Win9x/ME, this test blows up -- it succeeds, but takes
  4441. # about 5 minutes as the teststring grows exponentially.
  4442. # Worse, since 9x/ME are not pre-emptively multitasking,
  4443. # you end up with a "frozen" computer, even though with patience
  4444. # the test eventually succeeds (with a max line length of 256k).
  4445. # Instead, let's just punt: use the minimum linelength reported by
  4446. # all of the supported platforms: 8192 (on NT/2K/XP).
  4447. lt_cv_sys_max_cmd_len=8192;
  4448. ;;
  4449. mint*)
  4450. # On MiNT this can take a long time and run out of memory.
  4451. lt_cv_sys_max_cmd_len=8192;
  4452. ;;
  4453. amigaos*)
  4454. # On AmigaOS with pdksh, this test takes hours, literally.
  4455. # So we just punt and use a minimum line length of 8192.
  4456. lt_cv_sys_max_cmd_len=8192;
  4457. ;;
  4458. netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
  4459. # This has been around since 386BSD, at least. Likely further.
  4460. if test -x /sbin/sysctl; then
  4461. lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  4462. elif test -x /usr/sbin/sysctl; then
  4463. lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  4464. else
  4465. lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  4466. fi
  4467. # And add a safety zone
  4468. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  4469. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  4470. ;;
  4471. interix*)
  4472. # We know the value 262144 and hardcode it with a safety zone (like BSD)
  4473. lt_cv_sys_max_cmd_len=196608
  4474. ;;
  4475. osf*)
  4476. # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  4477. # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  4478. # nice to cause kernel panics so lets avoid the loop below.
  4479. # First set a reasonable default.
  4480. lt_cv_sys_max_cmd_len=16384
  4481. #
  4482. if test -x /sbin/sysconfig; then
  4483. case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  4484. *1*) lt_cv_sys_max_cmd_len=-1 ;;
  4485. esac
  4486. fi
  4487. ;;
  4488. sco3.2v5*)
  4489. lt_cv_sys_max_cmd_len=102400
  4490. ;;
  4491. sysv5* | sco5v6* | sysv4.2uw2*)
  4492. kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  4493. if test -n "$kargmax"; then
  4494. lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
  4495. else
  4496. lt_cv_sys_max_cmd_len=32768
  4497. fi
  4498. ;;
  4499. *)
  4500. lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
  4501. if test -n "$lt_cv_sys_max_cmd_len"; then
  4502. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  4503. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  4504. else
  4505. # Make teststring a little bigger before we do anything with it.
  4506. # a 1K string should be a reasonable start.
  4507. for i in 1 2 3 4 5 6 7 8 ; do
  4508. teststring=$teststring$teststring
  4509. done
  4510. SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  4511. # If test is not a shell built-in, we'll probably end up computing a
  4512. # maximum length that is only half of the actual maximum length, but
  4513. # we can't tell.
  4514. while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
  4515. = "X$teststring$teststring"; } >/dev/null 2>&1 &&
  4516. test $i != 17 # 1/2 MB should be enough
  4517. do
  4518. i=`expr $i + 1`
  4519. teststring=$teststring$teststring
  4520. done
  4521. # Only check the string length outside the loop.
  4522. lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
  4523. teststring=
  4524. # Add a significant safety factor because C++ compilers can tack on
  4525. # massive amounts of additional arguments before passing them to the
  4526. # linker. It appears as though 1/2 is a usable value.
  4527. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  4528. fi
  4529. ;;
  4530. esac
  4531. fi
  4532. if test -n $lt_cv_sys_max_cmd_len ; then
  4533. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
  4534. $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
  4535. else
  4536. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
  4537. $as_echo "none" >&6; }
  4538. fi
  4539. max_cmd_len=$lt_cv_sys_max_cmd_len
  4540. : ${CP="cp -f"}
  4541. : ${MV="mv -f"}
  4542. : ${RM="rm -f"}
  4543. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
  4544. $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
  4545. # Try some XSI features
  4546. xsi_shell=no
  4547. ( _lt_dummy="a/b/c"
  4548. test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
  4549. = c,a/b,, \
  4550. && eval 'test $(( 1 + 1 )) -eq 2 \
  4551. && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
  4552. && xsi_shell=yes
  4553. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
  4554. $as_echo "$xsi_shell" >&6; }
  4555. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
  4556. $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
  4557. lt_shell_append=no
  4558. ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
  4559. >/dev/null 2>&1 \
  4560. && lt_shell_append=yes
  4561. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
  4562. $as_echo "$lt_shell_append" >&6; }
  4563. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  4564. lt_unset=unset
  4565. else
  4566. lt_unset=false
  4567. fi
  4568. # test EBCDIC or ASCII
  4569. case `echo X|tr X '\101'` in
  4570. A) # ASCII based system
  4571. # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
  4572. lt_SP2NL='tr \040 \012'
  4573. lt_NL2SP='tr \015\012 \040\040'
  4574. ;;
  4575. *) # EBCDIC based system
  4576. lt_SP2NL='tr \100 \n'
  4577. lt_NL2SP='tr \r\n \100\100'
  4578. ;;
  4579. esac
  4580. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
  4581. $as_echo_n "checking for $LD option to reload object files... " >&6; }
  4582. if ${lt_cv_ld_reload_flag+:} false; then :
  4583. $as_echo_n "(cached) " >&6
  4584. else
  4585. lt_cv_ld_reload_flag='-r'
  4586. fi
  4587. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
  4588. $as_echo "$lt_cv_ld_reload_flag" >&6; }
  4589. reload_flag=$lt_cv_ld_reload_flag
  4590. case $reload_flag in
  4591. "" | " "*) ;;
  4592. *) reload_flag=" $reload_flag" ;;
  4593. esac
  4594. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  4595. case $host_os in
  4596. darwin*)
  4597. if test "$GCC" = yes; then
  4598. reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
  4599. else
  4600. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  4601. fi
  4602. ;;
  4603. esac
  4604. if test -n "$ac_tool_prefix"; then
  4605. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  4606. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  4607. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4608. $as_echo_n "checking for $ac_word... " >&6; }
  4609. if ${ac_cv_prog_OBJDUMP+:} false; then :
  4610. $as_echo_n "(cached) " >&6
  4611. else
  4612. if test -n "$OBJDUMP"; then
  4613. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  4614. else
  4615. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4616. for as_dir in $PATH
  4617. do
  4618. IFS=$as_save_IFS
  4619. test -z "$as_dir" && as_dir=.
  4620. for ac_exec_ext in '' $ac_executable_extensions; do
  4621. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4622. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  4623. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4624. break 2
  4625. fi
  4626. done
  4627. done
  4628. IFS=$as_save_IFS
  4629. fi
  4630. fi
  4631. OBJDUMP=$ac_cv_prog_OBJDUMP
  4632. if test -n "$OBJDUMP"; then
  4633. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  4634. $as_echo "$OBJDUMP" >&6; }
  4635. else
  4636. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4637. $as_echo "no" >&6; }
  4638. fi
  4639. fi
  4640. if test -z "$ac_cv_prog_OBJDUMP"; then
  4641. ac_ct_OBJDUMP=$OBJDUMP
  4642. # Extract the first word of "objdump", so it can be a program name with args.
  4643. set dummy objdump; ac_word=$2
  4644. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4645. $as_echo_n "checking for $ac_word... " >&6; }
  4646. if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
  4647. $as_echo_n "(cached) " >&6
  4648. else
  4649. if test -n "$ac_ct_OBJDUMP"; then
  4650. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  4651. else
  4652. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4653. for as_dir in $PATH
  4654. do
  4655. IFS=$as_save_IFS
  4656. test -z "$as_dir" && as_dir=.
  4657. for ac_exec_ext in '' $ac_executable_extensions; do
  4658. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4659. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  4660. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4661. break 2
  4662. fi
  4663. done
  4664. done
  4665. IFS=$as_save_IFS
  4666. fi
  4667. fi
  4668. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  4669. if test -n "$ac_ct_OBJDUMP"; then
  4670. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  4671. $as_echo "$ac_ct_OBJDUMP" >&6; }
  4672. else
  4673. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4674. $as_echo "no" >&6; }
  4675. fi
  4676. if test "x$ac_ct_OBJDUMP" = x; then
  4677. OBJDUMP="false"
  4678. else
  4679. case $cross_compiling:$ac_tool_warned in
  4680. yes:)
  4681. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4682. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4683. ac_tool_warned=yes ;;
  4684. esac
  4685. OBJDUMP=$ac_ct_OBJDUMP
  4686. fi
  4687. else
  4688. OBJDUMP="$ac_cv_prog_OBJDUMP"
  4689. fi
  4690. test -z "$OBJDUMP" && OBJDUMP=objdump
  4691. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
  4692. $as_echo_n "checking how to recognize dependent libraries... " >&6; }
  4693. if ${lt_cv_deplibs_check_method+:} false; then :
  4694. $as_echo_n "(cached) " >&6
  4695. else
  4696. lt_cv_file_magic_cmd='$MAGIC_CMD'
  4697. lt_cv_file_magic_test_file=
  4698. lt_cv_deplibs_check_method='unknown'
  4699. # Need to set the preceding variable on all platforms that support
  4700. # interlibrary dependencies.
  4701. # 'none' -- dependencies not supported.
  4702. # `unknown' -- same as none, but documents that we really don't know.
  4703. # 'pass_all' -- all dependencies passed with no checks.
  4704. # 'test_compile' -- check by making test program.
  4705. # 'file_magic [[regex]]' -- check by looking for files in library path
  4706. # which responds to the $file_magic_cmd with a given extended regex.
  4707. # If you have `file' or equivalent on your system and you're not sure
  4708. # whether `pass_all' will *always* work, you probably want this one.
  4709. case $host_os in
  4710. aix[4-9]*)
  4711. lt_cv_deplibs_check_method=pass_all
  4712. ;;
  4713. beos*)
  4714. lt_cv_deplibs_check_method=pass_all
  4715. ;;
  4716. bsdi[45]*)
  4717. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  4718. lt_cv_file_magic_cmd='/usr/bin/file -L'
  4719. lt_cv_file_magic_test_file=/shlib/libc.so
  4720. ;;
  4721. cygwin*)
  4722. # func_win32_libid is a shell function defined in ltmain.sh
  4723. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  4724. lt_cv_file_magic_cmd='func_win32_libid'
  4725. ;;
  4726. mingw* | pw32*)
  4727. # Base MSYS/MinGW do not provide the 'file' command needed by
  4728. # func_win32_libid shell function, so use a weaker test based on 'objdump',
  4729. # unless we find 'file', for example because we are cross-compiling.
  4730. # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
  4731. if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
  4732. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  4733. lt_cv_file_magic_cmd='func_win32_libid'
  4734. else
  4735. lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
  4736. lt_cv_file_magic_cmd='$OBJDUMP -f'
  4737. fi
  4738. ;;
  4739. cegcc*)
  4740. # use the weaker test based on 'objdump'. See mingw*.
  4741. lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
  4742. lt_cv_file_magic_cmd='$OBJDUMP -f'
  4743. ;;
  4744. darwin* | rhapsody*)
  4745. lt_cv_deplibs_check_method=pass_all
  4746. ;;
  4747. freebsd* | dragonfly*)
  4748. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  4749. case $host_cpu in
  4750. i*86 )
  4751. # Not sure whether the presence of OpenBSD here was a mistake.
  4752. # Let's accept both of them until this is cleared up.
  4753. lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
  4754. lt_cv_file_magic_cmd=/usr/bin/file
  4755. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  4756. ;;
  4757. esac
  4758. else
  4759. lt_cv_deplibs_check_method=pass_all
  4760. fi
  4761. ;;
  4762. gnu*)
  4763. lt_cv_deplibs_check_method=pass_all
  4764. ;;
  4765. haiku*)
  4766. lt_cv_deplibs_check_method=pass_all
  4767. ;;
  4768. hpux10.20* | hpux11*)
  4769. lt_cv_file_magic_cmd=/usr/bin/file
  4770. case $host_cpu in
  4771. ia64*)
  4772. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
  4773. lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  4774. ;;
  4775. hppa*64*)
  4776. 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]'
  4777. lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  4778. ;;
  4779. *)
  4780. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
  4781. lt_cv_file_magic_test_file=/usr/lib/libc.sl
  4782. ;;
  4783. esac
  4784. ;;
  4785. interix[3-9]*)
  4786. # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  4787. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
  4788. ;;
  4789. irix5* | irix6* | nonstopux*)
  4790. case $LD in
  4791. *-32|*"-32 ") libmagic=32-bit;;
  4792. *-n32|*"-n32 ") libmagic=N32;;
  4793. *-64|*"-64 ") libmagic=64-bit;;
  4794. *) libmagic=never-match;;
  4795. esac
  4796. lt_cv_deplibs_check_method=pass_all
  4797. ;;
  4798. # This must be Linux ELF.
  4799. linux* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
  4800. lt_cv_deplibs_check_method=pass_all
  4801. ;;
  4802. netbsd*)
  4803. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  4804. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  4805. else
  4806. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
  4807. fi
  4808. ;;
  4809. newos6*)
  4810. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  4811. lt_cv_file_magic_cmd=/usr/bin/file
  4812. lt_cv_file_magic_test_file=/usr/lib/libnls.so
  4813. ;;
  4814. *nto* | *qnx*)
  4815. lt_cv_deplibs_check_method=pass_all
  4816. ;;
  4817. openbsd*)
  4818. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  4819. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
  4820. else
  4821. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  4822. fi
  4823. ;;
  4824. osf3* | osf4* | osf5*)
  4825. lt_cv_deplibs_check_method=pass_all
  4826. ;;
  4827. rdos*)
  4828. lt_cv_deplibs_check_method=pass_all
  4829. ;;
  4830. solaris*)
  4831. lt_cv_deplibs_check_method=pass_all
  4832. ;;
  4833. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  4834. lt_cv_deplibs_check_method=pass_all
  4835. ;;
  4836. sysv4 | sysv4.3*)
  4837. case $host_vendor in
  4838. motorola)
  4839. 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]'
  4840. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  4841. ;;
  4842. ncr)
  4843. lt_cv_deplibs_check_method=pass_all
  4844. ;;
  4845. sequent)
  4846. lt_cv_file_magic_cmd='/bin/file'
  4847. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
  4848. ;;
  4849. sni)
  4850. lt_cv_file_magic_cmd='/bin/file'
  4851. lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
  4852. lt_cv_file_magic_test_file=/lib/libc.so
  4853. ;;
  4854. siemens)
  4855. lt_cv_deplibs_check_method=pass_all
  4856. ;;
  4857. pc)
  4858. lt_cv_deplibs_check_method=pass_all
  4859. ;;
  4860. esac
  4861. ;;
  4862. tpf*)
  4863. lt_cv_deplibs_check_method=pass_all
  4864. ;;
  4865. esac
  4866. fi
  4867. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
  4868. $as_echo "$lt_cv_deplibs_check_method" >&6; }
  4869. file_magic_cmd=$lt_cv_file_magic_cmd
  4870. deplibs_check_method=$lt_cv_deplibs_check_method
  4871. test -z "$deplibs_check_method" && deplibs_check_method=unknown
  4872. if test -n "$ac_tool_prefix"; then
  4873. # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
  4874. set dummy ${ac_tool_prefix}ar; ac_word=$2
  4875. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4876. $as_echo_n "checking for $ac_word... " >&6; }
  4877. if ${ac_cv_prog_AR+:} false; then :
  4878. $as_echo_n "(cached) " >&6
  4879. else
  4880. if test -n "$AR"; then
  4881. ac_cv_prog_AR="$AR" # Let the user override the test.
  4882. else
  4883. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4884. for as_dir in $PATH
  4885. do
  4886. IFS=$as_save_IFS
  4887. test -z "$as_dir" && as_dir=.
  4888. for ac_exec_ext in '' $ac_executable_extensions; do
  4889. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4890. ac_cv_prog_AR="${ac_tool_prefix}ar"
  4891. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4892. break 2
  4893. fi
  4894. done
  4895. done
  4896. IFS=$as_save_IFS
  4897. fi
  4898. fi
  4899. AR=$ac_cv_prog_AR
  4900. if test -n "$AR"; then
  4901. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  4902. $as_echo "$AR" >&6; }
  4903. else
  4904. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4905. $as_echo "no" >&6; }
  4906. fi
  4907. fi
  4908. if test -z "$ac_cv_prog_AR"; then
  4909. ac_ct_AR=$AR
  4910. # Extract the first word of "ar", so it can be a program name with args.
  4911. set dummy ar; ac_word=$2
  4912. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4913. $as_echo_n "checking for $ac_word... " >&6; }
  4914. if ${ac_cv_prog_ac_ct_AR+:} false; then :
  4915. $as_echo_n "(cached) " >&6
  4916. else
  4917. if test -n "$ac_ct_AR"; then
  4918. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  4919. else
  4920. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4921. for as_dir in $PATH
  4922. do
  4923. IFS=$as_save_IFS
  4924. test -z "$as_dir" && as_dir=.
  4925. for ac_exec_ext in '' $ac_executable_extensions; do
  4926. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4927. ac_cv_prog_ac_ct_AR="ar"
  4928. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4929. break 2
  4930. fi
  4931. done
  4932. done
  4933. IFS=$as_save_IFS
  4934. fi
  4935. fi
  4936. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  4937. if test -n "$ac_ct_AR"; then
  4938. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
  4939. $as_echo "$ac_ct_AR" >&6; }
  4940. else
  4941. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4942. $as_echo "no" >&6; }
  4943. fi
  4944. if test "x$ac_ct_AR" = x; then
  4945. AR="false"
  4946. else
  4947. case $cross_compiling:$ac_tool_warned in
  4948. yes:)
  4949. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4950. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4951. ac_tool_warned=yes ;;
  4952. esac
  4953. AR=$ac_ct_AR
  4954. fi
  4955. else
  4956. AR="$ac_cv_prog_AR"
  4957. fi
  4958. test -z "$AR" && AR=ar
  4959. test -z "$AR_FLAGS" && AR_FLAGS=cru
  4960. if test -n "$ac_tool_prefix"; then
  4961. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  4962. set dummy ${ac_tool_prefix}strip; ac_word=$2
  4963. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4964. $as_echo_n "checking for $ac_word... " >&6; }
  4965. if ${ac_cv_prog_STRIP+:} false; then :
  4966. $as_echo_n "(cached) " >&6
  4967. else
  4968. if test -n "$STRIP"; then
  4969. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  4970. else
  4971. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4972. for as_dir in $PATH
  4973. do
  4974. IFS=$as_save_IFS
  4975. test -z "$as_dir" && as_dir=.
  4976. for ac_exec_ext in '' $ac_executable_extensions; do
  4977. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4978. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  4979. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4980. break 2
  4981. fi
  4982. done
  4983. done
  4984. IFS=$as_save_IFS
  4985. fi
  4986. fi
  4987. STRIP=$ac_cv_prog_STRIP
  4988. if test -n "$STRIP"; then
  4989. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  4990. $as_echo "$STRIP" >&6; }
  4991. else
  4992. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4993. $as_echo "no" >&6; }
  4994. fi
  4995. fi
  4996. if test -z "$ac_cv_prog_STRIP"; then
  4997. ac_ct_STRIP=$STRIP
  4998. # Extract the first word of "strip", so it can be a program name with args.
  4999. set dummy strip; ac_word=$2
  5000. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5001. $as_echo_n "checking for $ac_word... " >&6; }
  5002. if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
  5003. $as_echo_n "(cached) " >&6
  5004. else
  5005. if test -n "$ac_ct_STRIP"; then
  5006. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  5007. else
  5008. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5009. for as_dir in $PATH
  5010. do
  5011. IFS=$as_save_IFS
  5012. test -z "$as_dir" && as_dir=.
  5013. for ac_exec_ext in '' $ac_executable_extensions; do
  5014. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5015. ac_cv_prog_ac_ct_STRIP="strip"
  5016. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5017. break 2
  5018. fi
  5019. done
  5020. done
  5021. IFS=$as_save_IFS
  5022. fi
  5023. fi
  5024. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  5025. if test -n "$ac_ct_STRIP"; then
  5026. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  5027. $as_echo "$ac_ct_STRIP" >&6; }
  5028. else
  5029. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5030. $as_echo "no" >&6; }
  5031. fi
  5032. if test "x$ac_ct_STRIP" = x; then
  5033. STRIP=":"
  5034. else
  5035. case $cross_compiling:$ac_tool_warned in
  5036. yes:)
  5037. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5038. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5039. ac_tool_warned=yes ;;
  5040. esac
  5041. STRIP=$ac_ct_STRIP
  5042. fi
  5043. else
  5044. STRIP="$ac_cv_prog_STRIP"
  5045. fi
  5046. test -z "$STRIP" && STRIP=:
  5047. if test -n "$ac_tool_prefix"; then
  5048. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  5049. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  5050. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5051. $as_echo_n "checking for $ac_word... " >&6; }
  5052. if ${ac_cv_prog_RANLIB+:} false; then :
  5053. $as_echo_n "(cached) " >&6
  5054. else
  5055. if test -n "$RANLIB"; then
  5056. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  5057. else
  5058. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5059. for as_dir in $PATH
  5060. do
  5061. IFS=$as_save_IFS
  5062. test -z "$as_dir" && as_dir=.
  5063. for ac_exec_ext in '' $ac_executable_extensions; do
  5064. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5065. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  5066. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5067. break 2
  5068. fi
  5069. done
  5070. done
  5071. IFS=$as_save_IFS
  5072. fi
  5073. fi
  5074. RANLIB=$ac_cv_prog_RANLIB
  5075. if test -n "$RANLIB"; then
  5076. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  5077. $as_echo "$RANLIB" >&6; }
  5078. else
  5079. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5080. $as_echo "no" >&6; }
  5081. fi
  5082. fi
  5083. if test -z "$ac_cv_prog_RANLIB"; then
  5084. ac_ct_RANLIB=$RANLIB
  5085. # Extract the first word of "ranlib", so it can be a program name with args.
  5086. set dummy ranlib; ac_word=$2
  5087. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5088. $as_echo_n "checking for $ac_word... " >&6; }
  5089. if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
  5090. $as_echo_n "(cached) " >&6
  5091. else
  5092. if test -n "$ac_ct_RANLIB"; then
  5093. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  5094. else
  5095. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5096. for as_dir in $PATH
  5097. do
  5098. IFS=$as_save_IFS
  5099. test -z "$as_dir" && as_dir=.
  5100. for ac_exec_ext in '' $ac_executable_extensions; do
  5101. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5102. ac_cv_prog_ac_ct_RANLIB="ranlib"
  5103. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5104. break 2
  5105. fi
  5106. done
  5107. done
  5108. IFS=$as_save_IFS
  5109. fi
  5110. fi
  5111. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  5112. if test -n "$ac_ct_RANLIB"; then
  5113. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  5114. $as_echo "$ac_ct_RANLIB" >&6; }
  5115. else
  5116. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5117. $as_echo "no" >&6; }
  5118. fi
  5119. if test "x$ac_ct_RANLIB" = x; then
  5120. RANLIB=":"
  5121. else
  5122. case $cross_compiling:$ac_tool_warned in
  5123. yes:)
  5124. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5125. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5126. ac_tool_warned=yes ;;
  5127. esac
  5128. RANLIB=$ac_ct_RANLIB
  5129. fi
  5130. else
  5131. RANLIB="$ac_cv_prog_RANLIB"
  5132. fi
  5133. test -z "$RANLIB" && RANLIB=:
  5134. # Determine commands to create old-style static archives.
  5135. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
  5136. old_postinstall_cmds='chmod 644 $oldlib'
  5137. old_postuninstall_cmds=
  5138. if test -n "$RANLIB"; then
  5139. case $host_os in
  5140. openbsd*)
  5141. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
  5142. ;;
  5143. *)
  5144. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
  5145. ;;
  5146. esac
  5147. old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
  5148. fi
  5149. case $host_os in
  5150. darwin*)
  5151. lock_old_archive_extraction=yes ;;
  5152. *)
  5153. lock_old_archive_extraction=no ;;
  5154. esac
  5155. for ac_prog in gawk mawk nawk awk
  5156. do
  5157. # Extract the first word of "$ac_prog", so it can be a program name with args.
  5158. set dummy $ac_prog; ac_word=$2
  5159. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5160. $as_echo_n "checking for $ac_word... " >&6; }
  5161. if ${ac_cv_prog_AWK+:} false; then :
  5162. $as_echo_n "(cached) " >&6
  5163. else
  5164. if test -n "$AWK"; then
  5165. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  5166. else
  5167. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5168. for as_dir in $PATH
  5169. do
  5170. IFS=$as_save_IFS
  5171. test -z "$as_dir" && as_dir=.
  5172. for ac_exec_ext in '' $ac_executable_extensions; do
  5173. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5174. ac_cv_prog_AWK="$ac_prog"
  5175. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5176. break 2
  5177. fi
  5178. done
  5179. done
  5180. IFS=$as_save_IFS
  5181. fi
  5182. fi
  5183. AWK=$ac_cv_prog_AWK
  5184. if test -n "$AWK"; then
  5185. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  5186. $as_echo "$AWK" >&6; }
  5187. else
  5188. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5189. $as_echo "no" >&6; }
  5190. fi
  5191. test -n "$AWK" && break
  5192. done
  5193. # If no C compiler was specified, use CC.
  5194. LTCC=${LTCC-"$CC"}
  5195. # If no C compiler flags were specified, use CFLAGS.
  5196. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  5197. # Allow CC to be a program name with arguments.
  5198. compiler=$CC
  5199. # Check for command to grab the raw symbol name followed by C symbol from nm.
  5200. { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
  5201. $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
  5202. if ${lt_cv_sys_global_symbol_pipe+:} false; then :
  5203. $as_echo_n "(cached) " >&6
  5204. else
  5205. # These are sane defaults that work on at least a few old systems.
  5206. # [They come from Ultrix. What could be older than Ultrix?!! ;)]
  5207. # Character class describing NM global symbol codes.
  5208. symcode='[BCDEGRST]'
  5209. # Regexp to match symbols that can be accessed directly from C.
  5210. sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
  5211. # Define system-specific variables.
  5212. case $host_os in
  5213. aix*)
  5214. symcode='[BCDT]'
  5215. ;;
  5216. cygwin* | mingw* | pw32* | cegcc*)
  5217. symcode='[ABCDGISTW]'
  5218. ;;
  5219. hpux*)
  5220. if test "$host_cpu" = ia64; then
  5221. symcode='[ABCDEGRST]'
  5222. fi
  5223. ;;
  5224. irix* | nonstopux*)
  5225. symcode='[BCDEGRST]'
  5226. ;;
  5227. osf*)
  5228. symcode='[BCDEGQRST]'
  5229. ;;
  5230. solaris*)
  5231. symcode='[BDRT]'
  5232. ;;
  5233. sco3.2v5*)
  5234. symcode='[DT]'
  5235. ;;
  5236. sysv4.2uw2*)
  5237. symcode='[DT]'
  5238. ;;
  5239. sysv5* | sco5v6* | unixware* | OpenUNIX*)
  5240. symcode='[ABDT]'
  5241. ;;
  5242. sysv4)
  5243. symcode='[DFNSTU]'
  5244. ;;
  5245. esac
  5246. # If we're using GNU nm, then use its standard symbol codes.
  5247. case `$NM -V 2>&1` in
  5248. *GNU* | *'with BFD'*)
  5249. symcode='[ABCDGIRSTW]' ;;
  5250. esac
  5251. # Transform an extracted symbol line into a proper C declaration.
  5252. # Some systems (esp. on ia64) link data and code symbols differently,
  5253. # so use this general approach.
  5254. lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  5255. # Transform an extracted symbol line into symbol name and symbol address
  5256. lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
  5257. 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'"
  5258. # Handle CRLF in mingw tool chain
  5259. opt_cr=
  5260. case $build_os in
  5261. mingw*)
  5262. opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  5263. ;;
  5264. esac
  5265. # Try without a prefix underscore, then with it.
  5266. for ac_symprfx in "" "_"; do
  5267. # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  5268. symxfrm="\\1 $ac_symprfx\\2 \\2"
  5269. # Write the raw and C identifiers.
  5270. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  5271. # Fake it for dumpbin and say T for any non-static function
  5272. # and D for any global variable.
  5273. # Also find C++ and __fastcall symbols from MSVC++,
  5274. # which start with @ or ?.
  5275. lt_cv_sys_global_symbol_pipe="$AWK '"\
  5276. " {last_section=section; section=\$ 3};"\
  5277. " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
  5278. " \$ 0!~/External *\|/{next};"\
  5279. " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
  5280. " {if(hide[section]) next};"\
  5281. " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
  5282. " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
  5283. " s[1]~/^[@?]/{print s[1], s[1]; next};"\
  5284. " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
  5285. " ' prfx=^$ac_symprfx"
  5286. else
  5287. lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  5288. fi
  5289. # Check to see that the pipe works correctly.
  5290. pipe_works=no
  5291. rm -f conftest*
  5292. cat > conftest.$ac_ext <<_LT_EOF
  5293. #ifdef __cplusplus
  5294. extern "C" {
  5295. #endif
  5296. char nm_test_var;
  5297. void nm_test_func(void);
  5298. void nm_test_func(void){}
  5299. #ifdef __cplusplus
  5300. }
  5301. #endif
  5302. int main(){nm_test_var='a';nm_test_func();return(0);}
  5303. _LT_EOF
  5304. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5305. (eval $ac_compile) 2>&5
  5306. ac_status=$?
  5307. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5308. test $ac_status = 0; }; then
  5309. # Now try to grab the symbols.
  5310. nlist=conftest.nm
  5311. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
  5312. (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
  5313. ac_status=$?
  5314. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5315. test $ac_status = 0; } && test -s "$nlist"; then
  5316. # Try sorting and uniquifying the output.
  5317. if sort "$nlist" | uniq > "$nlist"T; then
  5318. mv -f "$nlist"T "$nlist"
  5319. else
  5320. rm -f "$nlist"T
  5321. fi
  5322. # Make sure that we snagged all the symbols we need.
  5323. if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
  5324. if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
  5325. cat <<_LT_EOF > conftest.$ac_ext
  5326. #ifdef __cplusplus
  5327. extern "C" {
  5328. #endif
  5329. _LT_EOF
  5330. # Now generate the symbol file.
  5331. eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
  5332. cat <<_LT_EOF >> conftest.$ac_ext
  5333. /* The mapping between symbol names and symbols. */
  5334. const struct {
  5335. const char *name;
  5336. void *address;
  5337. }
  5338. lt__PROGRAM__LTX_preloaded_symbols[] =
  5339. {
  5340. { "@PROGRAM@", (void *) 0 },
  5341. _LT_EOF
  5342. $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
  5343. cat <<\_LT_EOF >> conftest.$ac_ext
  5344. {0, (void *) 0}
  5345. };
  5346. /* This works around a problem in FreeBSD linker */
  5347. #ifdef FREEBSD_WORKAROUND
  5348. static const void *lt_preloaded_setup() {
  5349. return lt__PROGRAM__LTX_preloaded_symbols;
  5350. }
  5351. #endif
  5352. #ifdef __cplusplus
  5353. }
  5354. #endif
  5355. _LT_EOF
  5356. # Now try linking the two files.
  5357. mv conftest.$ac_objext conftstm.$ac_objext
  5358. lt_save_LIBS="$LIBS"
  5359. lt_save_CFLAGS="$CFLAGS"
  5360. LIBS="conftstm.$ac_objext"
  5361. CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
  5362. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  5363. (eval $ac_link) 2>&5
  5364. ac_status=$?
  5365. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5366. test $ac_status = 0; } && test -s conftest${ac_exeext}; then
  5367. pipe_works=yes
  5368. fi
  5369. LIBS="$lt_save_LIBS"
  5370. CFLAGS="$lt_save_CFLAGS"
  5371. else
  5372. echo "cannot find nm_test_func in $nlist" >&5
  5373. fi
  5374. else
  5375. echo "cannot find nm_test_var in $nlist" >&5
  5376. fi
  5377. else
  5378. echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
  5379. fi
  5380. else
  5381. echo "$progname: failed program was:" >&5
  5382. cat conftest.$ac_ext >&5
  5383. fi
  5384. rm -rf conftest* conftst*
  5385. # Do not use the global_symbol_pipe unless it works.
  5386. if test "$pipe_works" = yes; then
  5387. break
  5388. else
  5389. lt_cv_sys_global_symbol_pipe=
  5390. fi
  5391. done
  5392. fi
  5393. if test -z "$lt_cv_sys_global_symbol_pipe"; then
  5394. lt_cv_sys_global_symbol_to_cdecl=
  5395. fi
  5396. if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  5397. { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
  5398. $as_echo "failed" >&6; }
  5399. else
  5400. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
  5401. $as_echo "ok" >&6; }
  5402. fi
  5403. # Check whether --enable-libtool-lock was given.
  5404. if test "${enable_libtool_lock+set}" = set; then :
  5405. enableval=$enable_libtool_lock;
  5406. fi
  5407. test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  5408. # Some flags need to be propagated to the compiler or linker for good
  5409. # libtool support.
  5410. case $host in
  5411. ia64-*-hpux*)
  5412. # Find out which ABI we are using.
  5413. echo 'int i;' > conftest.$ac_ext
  5414. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5415. (eval $ac_compile) 2>&5
  5416. ac_status=$?
  5417. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5418. test $ac_status = 0; }; then
  5419. case `/usr/bin/file conftest.$ac_objext` in
  5420. *ELF-32*)
  5421. HPUX_IA64_MODE="32"
  5422. ;;
  5423. *ELF-64*)
  5424. HPUX_IA64_MODE="64"
  5425. ;;
  5426. esac
  5427. fi
  5428. rm -rf conftest*
  5429. ;;
  5430. *-*-irix6*)
  5431. # Find out which ABI we are using.
  5432. echo '#line '$LINENO' "configure"' > conftest.$ac_ext
  5433. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5434. (eval $ac_compile) 2>&5
  5435. ac_status=$?
  5436. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5437. test $ac_status = 0; }; then
  5438. if test "$lt_cv_prog_gnu_ld" = yes; then
  5439. case `/usr/bin/file conftest.$ac_objext` in
  5440. *32-bit*)
  5441. LD="${LD-ld} -melf32bsmip"
  5442. ;;
  5443. *N32*)
  5444. LD="${LD-ld} -melf32bmipn32"
  5445. ;;
  5446. *64-bit*)
  5447. LD="${LD-ld} -melf64bmip"
  5448. ;;
  5449. esac
  5450. else
  5451. case `/usr/bin/file conftest.$ac_objext` in
  5452. *32-bit*)
  5453. LD="${LD-ld} -32"
  5454. ;;
  5455. *N32*)
  5456. LD="${LD-ld} -n32"
  5457. ;;
  5458. *64-bit*)
  5459. LD="${LD-ld} -64"
  5460. ;;
  5461. esac
  5462. fi
  5463. fi
  5464. rm -rf conftest*
  5465. ;;
  5466. x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
  5467. s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
  5468. # Find out which ABI we are using.
  5469. echo 'int i;' > conftest.$ac_ext
  5470. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5471. (eval $ac_compile) 2>&5
  5472. ac_status=$?
  5473. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5474. test $ac_status = 0; }; then
  5475. case `/usr/bin/file conftest.o` in
  5476. *32-bit*)
  5477. case $host in
  5478. x86_64-*kfreebsd*-gnu)
  5479. LD="${LD-ld} -m elf_i386_fbsd"
  5480. ;;
  5481. x86_64-*linux*)
  5482. case `/usr/bin/file conftest.o` in
  5483. *x86-64*)
  5484. LD="${LD-ld} -m elf32_x86_64"
  5485. ;;
  5486. *)
  5487. LD="${LD-ld} -m elf_i386"
  5488. ;;
  5489. esac
  5490. ;;
  5491. powerpc64le-*linux*)
  5492. LD="${LD-ld} -m elf32lppclinux"
  5493. ;;
  5494. powerpc64-*linux*)
  5495. LD="${LD-ld} -m elf32ppclinux"
  5496. ;;
  5497. s390x-*linux*)
  5498. LD="${LD-ld} -m elf_s390"
  5499. ;;
  5500. sparc64-*linux*)
  5501. LD="${LD-ld} -m elf32_sparc"
  5502. ;;
  5503. esac
  5504. ;;
  5505. *64-bit*)
  5506. case $host in
  5507. x86_64-*kfreebsd*-gnu)
  5508. LD="${LD-ld} -m elf_x86_64_fbsd"
  5509. ;;
  5510. x86_64-*linux*)
  5511. LD="${LD-ld} -m elf_x86_64"
  5512. ;;
  5513. powerpcle-*linux*)
  5514. LD="${LD-ld} -m elf64lppc"
  5515. ;;
  5516. powerpc-*linux*)
  5517. LD="${LD-ld} -m elf64ppc"
  5518. ;;
  5519. s390*-*linux*|s390*-*tpf*)
  5520. LD="${LD-ld} -m elf64_s390"
  5521. ;;
  5522. sparc*-*linux*)
  5523. LD="${LD-ld} -m elf64_sparc"
  5524. ;;
  5525. esac
  5526. ;;
  5527. esac
  5528. fi
  5529. rm -rf conftest*
  5530. ;;
  5531. *-*-sco3.2v5*)
  5532. # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  5533. SAVE_CFLAGS="$CFLAGS"
  5534. CFLAGS="$CFLAGS -belf"
  5535. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
  5536. $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
  5537. if ${lt_cv_cc_needs_belf+:} false; then :
  5538. $as_echo_n "(cached) " >&6
  5539. else
  5540. ac_ext=c
  5541. ac_cpp='$CPP $CPPFLAGS'
  5542. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5543. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5544. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5545. if test x$gcc_no_link = xyes; then
  5546. as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  5547. fi
  5548. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5549. /* end confdefs.h. */
  5550. int
  5551. main ()
  5552. {
  5553. ;
  5554. return 0;
  5555. }
  5556. _ACEOF
  5557. if ac_fn_c_try_link "$LINENO"; then :
  5558. lt_cv_cc_needs_belf=yes
  5559. else
  5560. lt_cv_cc_needs_belf=no
  5561. fi
  5562. rm -f core conftest.err conftest.$ac_objext \
  5563. conftest$ac_exeext conftest.$ac_ext
  5564. ac_ext=c
  5565. ac_cpp='$CPP $CPPFLAGS'
  5566. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5567. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5568. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5569. fi
  5570. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
  5571. $as_echo "$lt_cv_cc_needs_belf" >&6; }
  5572. if test x"$lt_cv_cc_needs_belf" != x"yes"; then
  5573. # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  5574. CFLAGS="$SAVE_CFLAGS"
  5575. fi
  5576. ;;
  5577. sparc*-*solaris*)
  5578. # Find out which ABI we are using.
  5579. echo 'int i;' > conftest.$ac_ext
  5580. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5581. (eval $ac_compile) 2>&5
  5582. ac_status=$?
  5583. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5584. test $ac_status = 0; }; then
  5585. case `/usr/bin/file conftest.o` in
  5586. *64-bit*)
  5587. case $lt_cv_prog_gnu_ld in
  5588. yes*) LD="${LD-ld} -m elf64_sparc" ;;
  5589. *)
  5590. if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
  5591. LD="${LD-ld} -64"
  5592. fi
  5593. ;;
  5594. esac
  5595. ;;
  5596. esac
  5597. fi
  5598. rm -rf conftest*
  5599. ;;
  5600. esac
  5601. need_locks="$enable_libtool_lock"
  5602. case $host_os in
  5603. rhapsody* | darwin*)
  5604. if test -n "$ac_tool_prefix"; then
  5605. # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
  5606. set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
  5607. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5608. $as_echo_n "checking for $ac_word... " >&6; }
  5609. if ${ac_cv_prog_DSYMUTIL+:} false; then :
  5610. $as_echo_n "(cached) " >&6
  5611. else
  5612. if test -n "$DSYMUTIL"; then
  5613. ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
  5614. else
  5615. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5616. for as_dir in $PATH
  5617. do
  5618. IFS=$as_save_IFS
  5619. test -z "$as_dir" && as_dir=.
  5620. for ac_exec_ext in '' $ac_executable_extensions; do
  5621. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5622. ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
  5623. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5624. break 2
  5625. fi
  5626. done
  5627. done
  5628. IFS=$as_save_IFS
  5629. fi
  5630. fi
  5631. DSYMUTIL=$ac_cv_prog_DSYMUTIL
  5632. if test -n "$DSYMUTIL"; then
  5633. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
  5634. $as_echo "$DSYMUTIL" >&6; }
  5635. else
  5636. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5637. $as_echo "no" >&6; }
  5638. fi
  5639. fi
  5640. if test -z "$ac_cv_prog_DSYMUTIL"; then
  5641. ac_ct_DSYMUTIL=$DSYMUTIL
  5642. # Extract the first word of "dsymutil", so it can be a program name with args.
  5643. set dummy dsymutil; ac_word=$2
  5644. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5645. $as_echo_n "checking for $ac_word... " >&6; }
  5646. if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
  5647. $as_echo_n "(cached) " >&6
  5648. else
  5649. if test -n "$ac_ct_DSYMUTIL"; then
  5650. ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
  5651. else
  5652. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5653. for as_dir in $PATH
  5654. do
  5655. IFS=$as_save_IFS
  5656. test -z "$as_dir" && as_dir=.
  5657. for ac_exec_ext in '' $ac_executable_extensions; do
  5658. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5659. ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
  5660. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5661. break 2
  5662. fi
  5663. done
  5664. done
  5665. IFS=$as_save_IFS
  5666. fi
  5667. fi
  5668. ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
  5669. if test -n "$ac_ct_DSYMUTIL"; then
  5670. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
  5671. $as_echo "$ac_ct_DSYMUTIL" >&6; }
  5672. else
  5673. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5674. $as_echo "no" >&6; }
  5675. fi
  5676. if test "x$ac_ct_DSYMUTIL" = x; then
  5677. DSYMUTIL=":"
  5678. else
  5679. case $cross_compiling:$ac_tool_warned in
  5680. yes:)
  5681. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5682. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5683. ac_tool_warned=yes ;;
  5684. esac
  5685. DSYMUTIL=$ac_ct_DSYMUTIL
  5686. fi
  5687. else
  5688. DSYMUTIL="$ac_cv_prog_DSYMUTIL"
  5689. fi
  5690. if test -n "$ac_tool_prefix"; then
  5691. # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
  5692. set dummy ${ac_tool_prefix}nmedit; ac_word=$2
  5693. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5694. $as_echo_n "checking for $ac_word... " >&6; }
  5695. if ${ac_cv_prog_NMEDIT+:} false; then :
  5696. $as_echo_n "(cached) " >&6
  5697. else
  5698. if test -n "$NMEDIT"; then
  5699. ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
  5700. else
  5701. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5702. for as_dir in $PATH
  5703. do
  5704. IFS=$as_save_IFS
  5705. test -z "$as_dir" && as_dir=.
  5706. for ac_exec_ext in '' $ac_executable_extensions; do
  5707. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5708. ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
  5709. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5710. break 2
  5711. fi
  5712. done
  5713. done
  5714. IFS=$as_save_IFS
  5715. fi
  5716. fi
  5717. NMEDIT=$ac_cv_prog_NMEDIT
  5718. if test -n "$NMEDIT"; then
  5719. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
  5720. $as_echo "$NMEDIT" >&6; }
  5721. else
  5722. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5723. $as_echo "no" >&6; }
  5724. fi
  5725. fi
  5726. if test -z "$ac_cv_prog_NMEDIT"; then
  5727. ac_ct_NMEDIT=$NMEDIT
  5728. # Extract the first word of "nmedit", so it can be a program name with args.
  5729. set dummy nmedit; ac_word=$2
  5730. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5731. $as_echo_n "checking for $ac_word... " >&6; }
  5732. if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
  5733. $as_echo_n "(cached) " >&6
  5734. else
  5735. if test -n "$ac_ct_NMEDIT"; then
  5736. ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
  5737. else
  5738. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5739. for as_dir in $PATH
  5740. do
  5741. IFS=$as_save_IFS
  5742. test -z "$as_dir" && as_dir=.
  5743. for ac_exec_ext in '' $ac_executable_extensions; do
  5744. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5745. ac_cv_prog_ac_ct_NMEDIT="nmedit"
  5746. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5747. break 2
  5748. fi
  5749. done
  5750. done
  5751. IFS=$as_save_IFS
  5752. fi
  5753. fi
  5754. ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
  5755. if test -n "$ac_ct_NMEDIT"; then
  5756. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
  5757. $as_echo "$ac_ct_NMEDIT" >&6; }
  5758. else
  5759. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5760. $as_echo "no" >&6; }
  5761. fi
  5762. if test "x$ac_ct_NMEDIT" = x; then
  5763. NMEDIT=":"
  5764. else
  5765. case $cross_compiling:$ac_tool_warned in
  5766. yes:)
  5767. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5768. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5769. ac_tool_warned=yes ;;
  5770. esac
  5771. NMEDIT=$ac_ct_NMEDIT
  5772. fi
  5773. else
  5774. NMEDIT="$ac_cv_prog_NMEDIT"
  5775. fi
  5776. if test -n "$ac_tool_prefix"; then
  5777. # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
  5778. set dummy ${ac_tool_prefix}lipo; ac_word=$2
  5779. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5780. $as_echo_n "checking for $ac_word... " >&6; }
  5781. if ${ac_cv_prog_LIPO+:} false; then :
  5782. $as_echo_n "(cached) " >&6
  5783. else
  5784. if test -n "$LIPO"; then
  5785. ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
  5786. else
  5787. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5788. for as_dir in $PATH
  5789. do
  5790. IFS=$as_save_IFS
  5791. test -z "$as_dir" && as_dir=.
  5792. for ac_exec_ext in '' $ac_executable_extensions; do
  5793. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5794. ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
  5795. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5796. break 2
  5797. fi
  5798. done
  5799. done
  5800. IFS=$as_save_IFS
  5801. fi
  5802. fi
  5803. LIPO=$ac_cv_prog_LIPO
  5804. if test -n "$LIPO"; then
  5805. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
  5806. $as_echo "$LIPO" >&6; }
  5807. else
  5808. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5809. $as_echo "no" >&6; }
  5810. fi
  5811. fi
  5812. if test -z "$ac_cv_prog_LIPO"; then
  5813. ac_ct_LIPO=$LIPO
  5814. # Extract the first word of "lipo", so it can be a program name with args.
  5815. set dummy lipo; ac_word=$2
  5816. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5817. $as_echo_n "checking for $ac_word... " >&6; }
  5818. if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
  5819. $as_echo_n "(cached) " >&6
  5820. else
  5821. if test -n "$ac_ct_LIPO"; then
  5822. ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
  5823. else
  5824. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5825. for as_dir in $PATH
  5826. do
  5827. IFS=$as_save_IFS
  5828. test -z "$as_dir" && as_dir=.
  5829. for ac_exec_ext in '' $ac_executable_extensions; do
  5830. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5831. ac_cv_prog_ac_ct_LIPO="lipo"
  5832. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5833. break 2
  5834. fi
  5835. done
  5836. done
  5837. IFS=$as_save_IFS
  5838. fi
  5839. fi
  5840. ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
  5841. if test -n "$ac_ct_LIPO"; then
  5842. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
  5843. $as_echo "$ac_ct_LIPO" >&6; }
  5844. else
  5845. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5846. $as_echo "no" >&6; }
  5847. fi
  5848. if test "x$ac_ct_LIPO" = x; then
  5849. LIPO=":"
  5850. else
  5851. case $cross_compiling:$ac_tool_warned in
  5852. yes:)
  5853. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5854. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5855. ac_tool_warned=yes ;;
  5856. esac
  5857. LIPO=$ac_ct_LIPO
  5858. fi
  5859. else
  5860. LIPO="$ac_cv_prog_LIPO"
  5861. fi
  5862. if test -n "$ac_tool_prefix"; then
  5863. # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
  5864. set dummy ${ac_tool_prefix}otool; ac_word=$2
  5865. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5866. $as_echo_n "checking for $ac_word... " >&6; }
  5867. if ${ac_cv_prog_OTOOL+:} false; then :
  5868. $as_echo_n "(cached) " >&6
  5869. else
  5870. if test -n "$OTOOL"; then
  5871. ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
  5872. else
  5873. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5874. for as_dir in $PATH
  5875. do
  5876. IFS=$as_save_IFS
  5877. test -z "$as_dir" && as_dir=.
  5878. for ac_exec_ext in '' $ac_executable_extensions; do
  5879. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5880. ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
  5881. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5882. break 2
  5883. fi
  5884. done
  5885. done
  5886. IFS=$as_save_IFS
  5887. fi
  5888. fi
  5889. OTOOL=$ac_cv_prog_OTOOL
  5890. if test -n "$OTOOL"; then
  5891. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
  5892. $as_echo "$OTOOL" >&6; }
  5893. else
  5894. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5895. $as_echo "no" >&6; }
  5896. fi
  5897. fi
  5898. if test -z "$ac_cv_prog_OTOOL"; then
  5899. ac_ct_OTOOL=$OTOOL
  5900. # Extract the first word of "otool", so it can be a program name with args.
  5901. set dummy otool; ac_word=$2
  5902. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5903. $as_echo_n "checking for $ac_word... " >&6; }
  5904. if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
  5905. $as_echo_n "(cached) " >&6
  5906. else
  5907. if test -n "$ac_ct_OTOOL"; then
  5908. ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
  5909. else
  5910. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5911. for as_dir in $PATH
  5912. do
  5913. IFS=$as_save_IFS
  5914. test -z "$as_dir" && as_dir=.
  5915. for ac_exec_ext in '' $ac_executable_extensions; do
  5916. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5917. ac_cv_prog_ac_ct_OTOOL="otool"
  5918. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5919. break 2
  5920. fi
  5921. done
  5922. done
  5923. IFS=$as_save_IFS
  5924. fi
  5925. fi
  5926. ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
  5927. if test -n "$ac_ct_OTOOL"; then
  5928. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
  5929. $as_echo "$ac_ct_OTOOL" >&6; }
  5930. else
  5931. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5932. $as_echo "no" >&6; }
  5933. fi
  5934. if test "x$ac_ct_OTOOL" = x; then
  5935. OTOOL=":"
  5936. else
  5937. case $cross_compiling:$ac_tool_warned in
  5938. yes:)
  5939. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5940. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5941. ac_tool_warned=yes ;;
  5942. esac
  5943. OTOOL=$ac_ct_OTOOL
  5944. fi
  5945. else
  5946. OTOOL="$ac_cv_prog_OTOOL"
  5947. fi
  5948. if test -n "$ac_tool_prefix"; then
  5949. # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
  5950. set dummy ${ac_tool_prefix}otool64; ac_word=$2
  5951. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5952. $as_echo_n "checking for $ac_word... " >&6; }
  5953. if ${ac_cv_prog_OTOOL64+:} false; then :
  5954. $as_echo_n "(cached) " >&6
  5955. else
  5956. if test -n "$OTOOL64"; then
  5957. ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
  5958. else
  5959. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5960. for as_dir in $PATH
  5961. do
  5962. IFS=$as_save_IFS
  5963. test -z "$as_dir" && as_dir=.
  5964. for ac_exec_ext in '' $ac_executable_extensions; do
  5965. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5966. ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
  5967. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5968. break 2
  5969. fi
  5970. done
  5971. done
  5972. IFS=$as_save_IFS
  5973. fi
  5974. fi
  5975. OTOOL64=$ac_cv_prog_OTOOL64
  5976. if test -n "$OTOOL64"; then
  5977. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
  5978. $as_echo "$OTOOL64" >&6; }
  5979. else
  5980. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5981. $as_echo "no" >&6; }
  5982. fi
  5983. fi
  5984. if test -z "$ac_cv_prog_OTOOL64"; then
  5985. ac_ct_OTOOL64=$OTOOL64
  5986. # Extract the first word of "otool64", so it can be a program name with args.
  5987. set dummy otool64; ac_word=$2
  5988. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5989. $as_echo_n "checking for $ac_word... " >&6; }
  5990. if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
  5991. $as_echo_n "(cached) " >&6
  5992. else
  5993. if test -n "$ac_ct_OTOOL64"; then
  5994. ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
  5995. else
  5996. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5997. for as_dir in $PATH
  5998. do
  5999. IFS=$as_save_IFS
  6000. test -z "$as_dir" && as_dir=.
  6001. for ac_exec_ext in '' $ac_executable_extensions; do
  6002. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6003. ac_cv_prog_ac_ct_OTOOL64="otool64"
  6004. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6005. break 2
  6006. fi
  6007. done
  6008. done
  6009. IFS=$as_save_IFS
  6010. fi
  6011. fi
  6012. ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
  6013. if test -n "$ac_ct_OTOOL64"; then
  6014. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
  6015. $as_echo "$ac_ct_OTOOL64" >&6; }
  6016. else
  6017. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6018. $as_echo "no" >&6; }
  6019. fi
  6020. if test "x$ac_ct_OTOOL64" = x; then
  6021. OTOOL64=":"
  6022. else
  6023. case $cross_compiling:$ac_tool_warned in
  6024. yes:)
  6025. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6026. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6027. ac_tool_warned=yes ;;
  6028. esac
  6029. OTOOL64=$ac_ct_OTOOL64
  6030. fi
  6031. else
  6032. OTOOL64="$ac_cv_prog_OTOOL64"
  6033. fi
  6034. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
  6035. $as_echo_n "checking for -single_module linker flag... " >&6; }
  6036. if ${lt_cv_apple_cc_single_mod+:} false; then :
  6037. $as_echo_n "(cached) " >&6
  6038. else
  6039. lt_cv_apple_cc_single_mod=no
  6040. if test -z "${LT_MULTI_MODULE}"; then
  6041. # By default we will add the -single_module flag. You can override
  6042. # by either setting the environment variable LT_MULTI_MODULE
  6043. # non-empty at configure time, or by adding -multi_module to the
  6044. # link flags.
  6045. rm -rf libconftest.dylib*
  6046. echo "int foo(void){return 1;}" > conftest.c
  6047. echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  6048. -dynamiclib -Wl,-single_module conftest.c" >&5
  6049. $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  6050. -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
  6051. _lt_result=$?
  6052. if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
  6053. lt_cv_apple_cc_single_mod=yes
  6054. else
  6055. cat conftest.err >&5
  6056. fi
  6057. rm -rf libconftest.dylib*
  6058. rm -f conftest.*
  6059. fi
  6060. fi
  6061. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
  6062. $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
  6063. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
  6064. $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
  6065. if ${lt_cv_ld_exported_symbols_list+:} false; then :
  6066. $as_echo_n "(cached) " >&6
  6067. else
  6068. lt_cv_ld_exported_symbols_list=no
  6069. save_LDFLAGS=$LDFLAGS
  6070. echo "_main" > conftest.sym
  6071. LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
  6072. if test x$gcc_no_link = xyes; then
  6073. as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  6074. fi
  6075. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6076. /* end confdefs.h. */
  6077. int
  6078. main ()
  6079. {
  6080. ;
  6081. return 0;
  6082. }
  6083. _ACEOF
  6084. if ac_fn_c_try_link "$LINENO"; then :
  6085. lt_cv_ld_exported_symbols_list=yes
  6086. else
  6087. lt_cv_ld_exported_symbols_list=no
  6088. fi
  6089. rm -f core conftest.err conftest.$ac_objext \
  6090. conftest$ac_exeext conftest.$ac_ext
  6091. LDFLAGS="$save_LDFLAGS"
  6092. fi
  6093. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
  6094. $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
  6095. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
  6096. $as_echo_n "checking for -force_load linker flag... " >&6; }
  6097. if ${lt_cv_ld_force_load+:} false; then :
  6098. $as_echo_n "(cached) " >&6
  6099. else
  6100. lt_cv_ld_force_load=no
  6101. cat > conftest.c << _LT_EOF
  6102. int forced_loaded() { return 2;}
  6103. _LT_EOF
  6104. echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
  6105. $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
  6106. echo "$AR cru libconftest.a conftest.o" >&5
  6107. $AR cru libconftest.a conftest.o 2>&5
  6108. cat > conftest.c << _LT_EOF
  6109. int main() { return 0;}
  6110. _LT_EOF
  6111. echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
  6112. $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
  6113. _lt_result=$?
  6114. if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
  6115. lt_cv_ld_force_load=yes
  6116. else
  6117. cat conftest.err >&5
  6118. fi
  6119. rm -f conftest.err libconftest.a conftest conftest.c
  6120. rm -rf conftest.dSYM
  6121. fi
  6122. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
  6123. $as_echo "$lt_cv_ld_force_load" >&6; }
  6124. # Allow for Darwin 4-7 (macOS 10.0-10.3) although these are not expect to
  6125. # build without first building modern cctools / linker.
  6126. case $host_cpu-$host_os in
  6127. *-rhapsody* | *-darwin1.[012])
  6128. _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
  6129. *-darwin1.*)
  6130. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  6131. *-darwin*)
  6132. # darwin 5.x (macOS 10.1) onwards we only need to adjust when the
  6133. # deployment target is forced to an earlier version.
  6134. case ${MACOSX_DEPLOYMENT_TARGET-UNSET},$host in
  6135. UNSET,*-darwin[89]*|UNSET,*-darwin[12][0123456789]*)
  6136. ;;
  6137. 10.[012][,.]*)
  6138. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  6139. ;;
  6140. *)
  6141. ;;
  6142. esac
  6143. ;;
  6144. esac
  6145. if test "$lt_cv_apple_cc_single_mod" = "yes"; then
  6146. _lt_dar_single_mod='$single_module'
  6147. fi
  6148. if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
  6149. _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
  6150. else
  6151. _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
  6152. fi
  6153. if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
  6154. _lt_dsymutil='~$DSYMUTIL $lib || :'
  6155. else
  6156. _lt_dsymutil=
  6157. fi
  6158. ;;
  6159. esac
  6160. ac_ext=c
  6161. ac_cpp='$CPP $CPPFLAGS'
  6162. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6163. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6164. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6165. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
  6166. $as_echo_n "checking how to run the C preprocessor... " >&6; }
  6167. # On Suns, sometimes $CPP names a directory.
  6168. if test -n "$CPP" && test -d "$CPP"; then
  6169. CPP=
  6170. fi
  6171. if test -z "$CPP"; then
  6172. if ${ac_cv_prog_CPP+:} false; then :
  6173. $as_echo_n "(cached) " >&6
  6174. else
  6175. # Double quotes because CPP needs to be expanded
  6176. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  6177. do
  6178. ac_preproc_ok=false
  6179. for ac_c_preproc_warn_flag in '' yes
  6180. do
  6181. # Use a header file that comes with gcc, so configuring glibc
  6182. # with a fresh cross-compiler works.
  6183. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  6184. # <limits.h> exists even on freestanding compilers.
  6185. # On the NeXT, cc -E runs the code through the compiler's parser,
  6186. # not just through cpp. "Syntax error" is here to catch this case.
  6187. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6188. /* end confdefs.h. */
  6189. #ifdef __STDC__
  6190. # include <limits.h>
  6191. #else
  6192. # include <assert.h>
  6193. #endif
  6194. Syntax error
  6195. _ACEOF
  6196. if ac_fn_c_try_cpp "$LINENO"; then :
  6197. else
  6198. # Broken: fails on valid input.
  6199. continue
  6200. fi
  6201. rm -f conftest.err conftest.i conftest.$ac_ext
  6202. # OK, works on sane cases. Now check whether nonexistent headers
  6203. # can be detected and how.
  6204. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6205. /* end confdefs.h. */
  6206. #include <ac_nonexistent.h>
  6207. _ACEOF
  6208. if ac_fn_c_try_cpp "$LINENO"; then :
  6209. # Broken: success on invalid input.
  6210. continue
  6211. else
  6212. # Passes both tests.
  6213. ac_preproc_ok=:
  6214. break
  6215. fi
  6216. rm -f conftest.err conftest.i conftest.$ac_ext
  6217. done
  6218. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  6219. rm -f conftest.i conftest.err conftest.$ac_ext
  6220. if $ac_preproc_ok; then :
  6221. break
  6222. fi
  6223. done
  6224. ac_cv_prog_CPP=$CPP
  6225. fi
  6226. CPP=$ac_cv_prog_CPP
  6227. else
  6228. ac_cv_prog_CPP=$CPP
  6229. fi
  6230. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
  6231. $as_echo "$CPP" >&6; }
  6232. ac_preproc_ok=false
  6233. for ac_c_preproc_warn_flag in '' yes
  6234. do
  6235. # Use a header file that comes with gcc, so configuring glibc
  6236. # with a fresh cross-compiler works.
  6237. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  6238. # <limits.h> exists even on freestanding compilers.
  6239. # On the NeXT, cc -E runs the code through the compiler's parser,
  6240. # not just through cpp. "Syntax error" is here to catch this case.
  6241. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6242. /* end confdefs.h. */
  6243. #ifdef __STDC__
  6244. # include <limits.h>
  6245. #else
  6246. # include <assert.h>
  6247. #endif
  6248. Syntax error
  6249. _ACEOF
  6250. if ac_fn_c_try_cpp "$LINENO"; then :
  6251. else
  6252. # Broken: fails on valid input.
  6253. continue
  6254. fi
  6255. rm -f conftest.err conftest.i conftest.$ac_ext
  6256. # OK, works on sane cases. Now check whether nonexistent headers
  6257. # can be detected and how.
  6258. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6259. /* end confdefs.h. */
  6260. #include <ac_nonexistent.h>
  6261. _ACEOF
  6262. if ac_fn_c_try_cpp "$LINENO"; then :
  6263. # Broken: success on invalid input.
  6264. continue
  6265. else
  6266. # Passes both tests.
  6267. ac_preproc_ok=:
  6268. break
  6269. fi
  6270. rm -f conftest.err conftest.i conftest.$ac_ext
  6271. done
  6272. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  6273. rm -f conftest.i conftest.err conftest.$ac_ext
  6274. if $ac_preproc_ok; then :
  6275. else
  6276. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  6277. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  6278. as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
  6279. See \`config.log' for more details" "$LINENO" 5; }
  6280. fi
  6281. ac_ext=c
  6282. ac_cpp='$CPP $CPPFLAGS'
  6283. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6284. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6285. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6286. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  6287. $as_echo_n "checking for ANSI C header files... " >&6; }
  6288. if ${ac_cv_header_stdc+:} false; then :
  6289. $as_echo_n "(cached) " >&6
  6290. else
  6291. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6292. /* end confdefs.h. */
  6293. #include <stdlib.h>
  6294. #include <stdarg.h>
  6295. #include <string.h>
  6296. #include <float.h>
  6297. int
  6298. main ()
  6299. {
  6300. ;
  6301. return 0;
  6302. }
  6303. _ACEOF
  6304. if ac_fn_c_try_compile "$LINENO"; then :
  6305. ac_cv_header_stdc=yes
  6306. else
  6307. ac_cv_header_stdc=no
  6308. fi
  6309. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6310. if test $ac_cv_header_stdc = yes; then
  6311. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  6312. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6313. /* end confdefs.h. */
  6314. #include <string.h>
  6315. _ACEOF
  6316. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6317. $EGREP "memchr" >/dev/null 2>&1; then :
  6318. else
  6319. ac_cv_header_stdc=no
  6320. fi
  6321. rm -f conftest*
  6322. fi
  6323. if test $ac_cv_header_stdc = yes; then
  6324. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  6325. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6326. /* end confdefs.h. */
  6327. #include <stdlib.h>
  6328. _ACEOF
  6329. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6330. $EGREP "free" >/dev/null 2>&1; then :
  6331. else
  6332. ac_cv_header_stdc=no
  6333. fi
  6334. rm -f conftest*
  6335. fi
  6336. if test $ac_cv_header_stdc = yes; then
  6337. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  6338. if test "$cross_compiling" = yes; then :
  6339. :
  6340. else
  6341. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6342. /* end confdefs.h. */
  6343. #include <ctype.h>
  6344. #include <stdlib.h>
  6345. #if ((' ' & 0x0FF) == 0x020)
  6346. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  6347. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  6348. #else
  6349. # define ISLOWER(c) \
  6350. (('a' <= (c) && (c) <= 'i') \
  6351. || ('j' <= (c) && (c) <= 'r') \
  6352. || ('s' <= (c) && (c) <= 'z'))
  6353. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  6354. #endif
  6355. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  6356. int
  6357. main ()
  6358. {
  6359. int i;
  6360. for (i = 0; i < 256; i++)
  6361. if (XOR (islower (i), ISLOWER (i))
  6362. || toupper (i) != TOUPPER (i))
  6363. return 2;
  6364. return 0;
  6365. }
  6366. _ACEOF
  6367. if ac_fn_c_try_run "$LINENO"; then :
  6368. else
  6369. ac_cv_header_stdc=no
  6370. fi
  6371. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  6372. conftest.$ac_objext conftest.beam conftest.$ac_ext
  6373. fi
  6374. fi
  6375. fi
  6376. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  6377. $as_echo "$ac_cv_header_stdc" >&6; }
  6378. if test $ac_cv_header_stdc = yes; then
  6379. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  6380. fi
  6381. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  6382. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  6383. inttypes.h stdint.h unistd.h
  6384. do :
  6385. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  6386. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  6387. "
  6388. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  6389. cat >>confdefs.h <<_ACEOF
  6390. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  6391. _ACEOF
  6392. fi
  6393. done
  6394. for ac_header in dlfcn.h
  6395. do :
  6396. ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
  6397. "
  6398. if test "x$ac_cv_header_dlfcn_h" = xyes; then :
  6399. cat >>confdefs.h <<_ACEOF
  6400. #define HAVE_DLFCN_H 1
  6401. _ACEOF
  6402. fi
  6403. done
  6404. # Set options
  6405. enable_dlopen=no
  6406. # Check whether --enable-shared was given.
  6407. if test "${enable_shared+set}" = set; then :
  6408. enableval=$enable_shared; p=${PACKAGE-default}
  6409. case $enableval in
  6410. yes) enable_shared=yes ;;
  6411. no) enable_shared=no ;;
  6412. *)
  6413. enable_shared=no
  6414. # Look at the argument we got. We use all the common list separators.
  6415. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  6416. for pkg in $enableval; do
  6417. IFS="$lt_save_ifs"
  6418. if test "X$pkg" = "X$p"; then
  6419. enable_shared=yes
  6420. fi
  6421. done
  6422. IFS="$lt_save_ifs"
  6423. ;;
  6424. esac
  6425. else
  6426. enable_shared=yes
  6427. fi
  6428. # Check whether --enable-static was given.
  6429. if test "${enable_static+set}" = set; then :
  6430. enableval=$enable_static; p=${PACKAGE-default}
  6431. case $enableval in
  6432. yes) enable_static=yes ;;
  6433. no) enable_static=no ;;
  6434. *)
  6435. enable_static=no
  6436. # Look at the argument we got. We use all the common list separators.
  6437. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  6438. for pkg in $enableval; do
  6439. IFS="$lt_save_ifs"
  6440. if test "X$pkg" = "X$p"; then
  6441. enable_static=yes
  6442. fi
  6443. done
  6444. IFS="$lt_save_ifs"
  6445. ;;
  6446. esac
  6447. else
  6448. enable_static=yes
  6449. fi
  6450. # Check whether --with-pic was given.
  6451. if test "${with_pic+set}" = set; then :
  6452. withval=$with_pic; pic_mode="$withval"
  6453. else
  6454. pic_mode=default
  6455. fi
  6456. test -z "$pic_mode" && pic_mode=default
  6457. # Check whether --enable-fast-install was given.
  6458. if test "${enable_fast_install+set}" = set; then :
  6459. enableval=$enable_fast_install; p=${PACKAGE-default}
  6460. case $enableval in
  6461. yes) enable_fast_install=yes ;;
  6462. no) enable_fast_install=no ;;
  6463. *)
  6464. enable_fast_install=no
  6465. # Look at the argument we got. We use all the common list separators.
  6466. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  6467. for pkg in $enableval; do
  6468. IFS="$lt_save_ifs"
  6469. if test "X$pkg" = "X$p"; then
  6470. enable_fast_install=yes
  6471. fi
  6472. done
  6473. IFS="$lt_save_ifs"
  6474. ;;
  6475. esac
  6476. else
  6477. enable_fast_install=yes
  6478. fi
  6479. # This can be used to rebuild libtool when needed
  6480. LIBTOOL_DEPS="$ltmain"
  6481. # Always use our own libtool.
  6482. LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  6483. test -z "$LN_S" && LN_S="ln -s"
  6484. if test -n "${ZSH_VERSION+set}" ; then
  6485. setopt NO_GLOB_SUBST
  6486. fi
  6487. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
  6488. $as_echo_n "checking for objdir... " >&6; }
  6489. if ${lt_cv_objdir+:} false; then :
  6490. $as_echo_n "(cached) " >&6
  6491. else
  6492. rm -f .libs 2>/dev/null
  6493. mkdir .libs 2>/dev/null
  6494. if test -d .libs; then
  6495. lt_cv_objdir=.libs
  6496. else
  6497. # MS-DOS does not allow filenames that begin with a dot.
  6498. lt_cv_objdir=_libs
  6499. fi
  6500. rmdir .libs 2>/dev/null
  6501. fi
  6502. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
  6503. $as_echo "$lt_cv_objdir" >&6; }
  6504. objdir=$lt_cv_objdir
  6505. cat >>confdefs.h <<_ACEOF
  6506. #define LT_OBJDIR "$lt_cv_objdir/"
  6507. _ACEOF
  6508. case $host_os in
  6509. aix3*)
  6510. # AIX sometimes has problems with the GCC collect2 program. For some
  6511. # reason, if we set the COLLECT_NAMES environment variable, the problems
  6512. # vanish in a puff of smoke.
  6513. if test "X${COLLECT_NAMES+set}" != Xset; then
  6514. COLLECT_NAMES=
  6515. export COLLECT_NAMES
  6516. fi
  6517. ;;
  6518. esac
  6519. # Global variables:
  6520. ofile=libtool
  6521. can_build_shared=yes
  6522. # All known linkers require a `.a' archive for static linking (except MSVC,
  6523. # which needs '.lib').
  6524. libext=a
  6525. with_gnu_ld="$lt_cv_prog_gnu_ld"
  6526. old_CC="$CC"
  6527. old_CFLAGS="$CFLAGS"
  6528. # Set sane defaults for various variables
  6529. test -z "$CC" && CC=cc
  6530. test -z "$LTCC" && LTCC=$CC
  6531. test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  6532. test -z "$LD" && LD=ld
  6533. test -z "$ac_objext" && ac_objext=o
  6534. for cc_temp in $compiler""; do
  6535. case $cc_temp in
  6536. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  6537. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  6538. \-*) ;;
  6539. *) break;;
  6540. esac
  6541. done
  6542. cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  6543. # Only perform the check for file, if the check method requires it
  6544. test -z "$MAGIC_CMD" && MAGIC_CMD=file
  6545. case $deplibs_check_method in
  6546. file_magic*)
  6547. if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  6548. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
  6549. $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
  6550. if ${lt_cv_path_MAGIC_CMD+:} false; then :
  6551. $as_echo_n "(cached) " >&6
  6552. else
  6553. case $MAGIC_CMD in
  6554. [\\/*] | ?:[\\/]*)
  6555. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  6556. ;;
  6557. *)
  6558. lt_save_MAGIC_CMD="$MAGIC_CMD"
  6559. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  6560. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  6561. for ac_dir in $ac_dummy; do
  6562. IFS="$lt_save_ifs"
  6563. test -z "$ac_dir" && ac_dir=.
  6564. if test -f $ac_dir/${ac_tool_prefix}file; then
  6565. lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
  6566. if test -n "$file_magic_test_file"; then
  6567. case $deplibs_check_method in
  6568. "file_magic "*)
  6569. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  6570. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6571. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  6572. $EGREP "$file_magic_regex" > /dev/null; then
  6573. :
  6574. else
  6575. cat <<_LT_EOF 1>&2
  6576. *** Warning: the command libtool uses to detect shared libraries,
  6577. *** $file_magic_cmd, produces output that libtool cannot recognize.
  6578. *** The result is that libtool may fail to recognize shared libraries
  6579. *** as such. This will affect the creation of libtool libraries that
  6580. *** depend on shared libraries, but programs linked with such libtool
  6581. *** libraries will work regardless of this problem. Nevertheless, you
  6582. *** may want to report the problem to your system manager and/or to
  6583. *** bug-libtool@gnu.org
  6584. _LT_EOF
  6585. fi ;;
  6586. esac
  6587. fi
  6588. break
  6589. fi
  6590. done
  6591. IFS="$lt_save_ifs"
  6592. MAGIC_CMD="$lt_save_MAGIC_CMD"
  6593. ;;
  6594. esac
  6595. fi
  6596. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6597. if test -n "$MAGIC_CMD"; then
  6598. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  6599. $as_echo "$MAGIC_CMD" >&6; }
  6600. else
  6601. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6602. $as_echo "no" >&6; }
  6603. fi
  6604. if test -z "$lt_cv_path_MAGIC_CMD"; then
  6605. if test -n "$ac_tool_prefix"; then
  6606. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
  6607. $as_echo_n "checking for file... " >&6; }
  6608. if ${lt_cv_path_MAGIC_CMD+:} false; then :
  6609. $as_echo_n "(cached) " >&6
  6610. else
  6611. case $MAGIC_CMD in
  6612. [\\/*] | ?:[\\/]*)
  6613. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  6614. ;;
  6615. *)
  6616. lt_save_MAGIC_CMD="$MAGIC_CMD"
  6617. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  6618. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  6619. for ac_dir in $ac_dummy; do
  6620. IFS="$lt_save_ifs"
  6621. test -z "$ac_dir" && ac_dir=.
  6622. if test -f $ac_dir/file; then
  6623. lt_cv_path_MAGIC_CMD="$ac_dir/file"
  6624. if test -n "$file_magic_test_file"; then
  6625. case $deplibs_check_method in
  6626. "file_magic "*)
  6627. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  6628. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6629. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  6630. $EGREP "$file_magic_regex" > /dev/null; then
  6631. :
  6632. else
  6633. cat <<_LT_EOF 1>&2
  6634. *** Warning: the command libtool uses to detect shared libraries,
  6635. *** $file_magic_cmd, produces output that libtool cannot recognize.
  6636. *** The result is that libtool may fail to recognize shared libraries
  6637. *** as such. This will affect the creation of libtool libraries that
  6638. *** depend on shared libraries, but programs linked with such libtool
  6639. *** libraries will work regardless of this problem. Nevertheless, you
  6640. *** may want to report the problem to your system manager and/or to
  6641. *** bug-libtool@gnu.org
  6642. _LT_EOF
  6643. fi ;;
  6644. esac
  6645. fi
  6646. break
  6647. fi
  6648. done
  6649. IFS="$lt_save_ifs"
  6650. MAGIC_CMD="$lt_save_MAGIC_CMD"
  6651. ;;
  6652. esac
  6653. fi
  6654. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6655. if test -n "$MAGIC_CMD"; then
  6656. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  6657. $as_echo "$MAGIC_CMD" >&6; }
  6658. else
  6659. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6660. $as_echo "no" >&6; }
  6661. fi
  6662. else
  6663. MAGIC_CMD=:
  6664. fi
  6665. fi
  6666. fi
  6667. ;;
  6668. esac
  6669. # Use C for the default configuration in the libtool script
  6670. lt_save_CC="$CC"
  6671. ac_ext=c
  6672. ac_cpp='$CPP $CPPFLAGS'
  6673. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6674. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6675. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6676. # Source file extension for C test sources.
  6677. ac_ext=c
  6678. # Object file extension for compiled C test sources.
  6679. objext=o
  6680. objext=$objext
  6681. # Code to be used in simple compile tests
  6682. lt_simple_compile_test_code="int some_variable = 0;"
  6683. # Code to be used in simple link tests
  6684. lt_simple_link_test_code='int main(){return(0);}'
  6685. # If no C compiler was specified, use CC.
  6686. LTCC=${LTCC-"$CC"}
  6687. # If no C compiler flags were specified, use CFLAGS.
  6688. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  6689. # Allow CC to be a program name with arguments.
  6690. compiler=$CC
  6691. # Save the default compiler, since it gets overwritten when the other
  6692. # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
  6693. compiler_DEFAULT=$CC
  6694. # save warnings/boilerplate of simple test code
  6695. ac_outfile=conftest.$ac_objext
  6696. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  6697. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  6698. _lt_compiler_boilerplate=`cat conftest.err`
  6699. $RM conftest*
  6700. ac_outfile=conftest.$ac_objext
  6701. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  6702. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  6703. _lt_linker_boilerplate=`cat conftest.err`
  6704. $RM -r conftest*
  6705. ## CAVEAT EMPTOR:
  6706. ## There is no encapsulation within the following macros, do not change
  6707. ## the running order or otherwise move them around unless you know exactly
  6708. ## what you are doing...
  6709. if test -n "$compiler"; then
  6710. lt_prog_compiler_no_builtin_flag=
  6711. if test "$GCC" = yes; then
  6712. case $cc_basename in
  6713. nvcc*)
  6714. lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
  6715. *)
  6716. lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
  6717. esac
  6718. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  6719. $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
  6720. if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
  6721. $as_echo_n "(cached) " >&6
  6722. else
  6723. lt_cv_prog_compiler_rtti_exceptions=no
  6724. ac_outfile=conftest.$ac_objext
  6725. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  6726. lt_compiler_flag="-fno-rtti -fno-exceptions"
  6727. # Insert the option either (1) after the last *FLAGS variable, or
  6728. # (2) before a word containing "conftest.", or (3) at the end.
  6729. # Note that $ac_compile itself does not contain backslashes and begins
  6730. # with a dollar sign (not a hyphen), so the echo should work correctly.
  6731. # The option is referenced via a variable to avoid confusing sed.
  6732. lt_compile=`echo "$ac_compile" | $SED \
  6733. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  6734. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  6735. -e 's:$: $lt_compiler_flag:'`
  6736. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  6737. (eval "$lt_compile" 2>conftest.err)
  6738. ac_status=$?
  6739. cat conftest.err >&5
  6740. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6741. if (exit $ac_status) && test -s "$ac_outfile"; then
  6742. # The compiler can only warn and ignore the option if not recognized
  6743. # So say no if there are warnings other than the usual output.
  6744. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  6745. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  6746. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  6747. lt_cv_prog_compiler_rtti_exceptions=yes
  6748. fi
  6749. fi
  6750. $RM conftest*
  6751. fi
  6752. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  6753. $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
  6754. if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
  6755. lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
  6756. else
  6757. :
  6758. fi
  6759. fi
  6760. lt_prog_compiler_wl=
  6761. lt_prog_compiler_pic=
  6762. lt_prog_compiler_static=
  6763. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  6764. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  6765. if test "$GCC" = yes; then
  6766. lt_prog_compiler_wl='-Wl,'
  6767. lt_prog_compiler_static='-static'
  6768. case $host_os in
  6769. aix*)
  6770. # All AIX code is PIC.
  6771. if test "$host_cpu" = ia64; then
  6772. # AIX 5 now supports IA64 processor
  6773. lt_prog_compiler_static='-Bstatic'
  6774. fi
  6775. lt_prog_compiler_pic='-fPIC'
  6776. ;;
  6777. amigaos*)
  6778. case $host_cpu in
  6779. powerpc)
  6780. # see comment about AmigaOS4 .so support
  6781. lt_prog_compiler_pic='-fPIC'
  6782. ;;
  6783. m68k)
  6784. # FIXME: we need at least 68020 code to build shared libraries, but
  6785. # adding the `-m68020' flag to GCC prevents building anything better,
  6786. # like `-m68040'.
  6787. lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
  6788. ;;
  6789. esac
  6790. ;;
  6791. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  6792. # PIC is the default for these OSes.
  6793. ;;
  6794. mingw* | cygwin* | pw32* | os2* | cegcc*)
  6795. # This hack is so that the source file can tell whether it is being
  6796. # built for inclusion in a dll (and should export symbols for example).
  6797. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  6798. # (--disable-auto-import) libraries
  6799. lt_prog_compiler_pic='-DDLL_EXPORT'
  6800. ;;
  6801. darwin* | rhapsody*)
  6802. # PIC is the default on this platform
  6803. # Common symbols not allowed in MH_DYLIB files
  6804. lt_prog_compiler_pic='-fno-common'
  6805. ;;
  6806. haiku*)
  6807. # PIC is the default for Haiku.
  6808. # The "-static" flag exists, but is broken.
  6809. lt_prog_compiler_static=
  6810. ;;
  6811. hpux*)
  6812. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  6813. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  6814. # sets the default TLS model and affects inlining.
  6815. case $host_cpu in
  6816. hppa*64*)
  6817. # +Z the default
  6818. ;;
  6819. *)
  6820. lt_prog_compiler_pic='-fPIC'
  6821. ;;
  6822. esac
  6823. ;;
  6824. interix[3-9]*)
  6825. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  6826. # Instead, we relocate shared libraries at runtime.
  6827. ;;
  6828. msdosdjgpp*)
  6829. # Just because we use GCC doesn't mean we suddenly get shared libraries
  6830. # on systems that don't support them.
  6831. lt_prog_compiler_can_build_shared=no
  6832. enable_shared=no
  6833. ;;
  6834. *nto* | *qnx*)
  6835. # QNX uses GNU C++, but need to define -shared option too, otherwise
  6836. # it will coredump.
  6837. lt_prog_compiler_pic='-fPIC -shared'
  6838. ;;
  6839. sysv4*MP*)
  6840. if test -d /usr/nec; then
  6841. lt_prog_compiler_pic=-Kconform_pic
  6842. fi
  6843. ;;
  6844. *)
  6845. lt_prog_compiler_pic='-fPIC'
  6846. ;;
  6847. esac
  6848. case $cc_basename in
  6849. nvcc*) # Cuda Compiler Driver 2.2
  6850. lt_prog_compiler_wl='-Xlinker '
  6851. lt_prog_compiler_pic='-Xcompiler -fPIC'
  6852. ;;
  6853. esac
  6854. else
  6855. # PORTME Check for flag to pass linker flags through the system compiler.
  6856. case $host_os in
  6857. aix*)
  6858. lt_prog_compiler_wl='-Wl,'
  6859. if test "$host_cpu" = ia64; then
  6860. # AIX 5 now supports IA64 processor
  6861. lt_prog_compiler_static='-Bstatic'
  6862. else
  6863. lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
  6864. fi
  6865. ;;
  6866. mingw* | cygwin* | pw32* | os2* | cegcc*)
  6867. # This hack is so that the source file can tell whether it is being
  6868. # built for inclusion in a dll (and should export symbols for example).
  6869. lt_prog_compiler_pic='-DDLL_EXPORT'
  6870. ;;
  6871. hpux9* | hpux10* | hpux11*)
  6872. lt_prog_compiler_wl='-Wl,'
  6873. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  6874. # not for PA HP-UX.
  6875. case $host_cpu in
  6876. hppa*64*|ia64*)
  6877. # +Z the default
  6878. ;;
  6879. *)
  6880. lt_prog_compiler_pic='+Z'
  6881. ;;
  6882. esac
  6883. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  6884. lt_prog_compiler_static='${wl}-a ${wl}archive'
  6885. ;;
  6886. irix5* | irix6* | nonstopux*)
  6887. lt_prog_compiler_wl='-Wl,'
  6888. # PIC (with -KPIC) is the default.
  6889. lt_prog_compiler_static='-non_shared'
  6890. ;;
  6891. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  6892. case $cc_basename in
  6893. # old Intel for x86_64 which still supported -KPIC.
  6894. ecc*)
  6895. lt_prog_compiler_wl='-Wl,'
  6896. lt_prog_compiler_pic='-KPIC'
  6897. lt_prog_compiler_static='-static'
  6898. ;;
  6899. # icc used to be incompatible with GCC.
  6900. # ICC 10 doesn't accept -KPIC any more.
  6901. icc* | ifort*)
  6902. lt_prog_compiler_wl='-Wl,'
  6903. lt_prog_compiler_pic='-fPIC'
  6904. lt_prog_compiler_static='-static'
  6905. ;;
  6906. # Lahey Fortran 8.1.
  6907. lf95*)
  6908. lt_prog_compiler_wl='-Wl,'
  6909. lt_prog_compiler_pic='--shared'
  6910. lt_prog_compiler_static='--static'
  6911. ;;
  6912. pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
  6913. # Portland Group compilers (*not* the Pentium gcc compiler,
  6914. # which looks to be a dead project)
  6915. lt_prog_compiler_wl='-Wl,'
  6916. lt_prog_compiler_pic='-fpic'
  6917. lt_prog_compiler_static='-Bstatic'
  6918. ;;
  6919. ccc*)
  6920. lt_prog_compiler_wl='-Wl,'
  6921. # All Alpha code is PIC.
  6922. lt_prog_compiler_static='-non_shared'
  6923. ;;
  6924. xl* | bgxl* | bgf* | mpixl*)
  6925. # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
  6926. lt_prog_compiler_wl='-Wl,'
  6927. lt_prog_compiler_pic='-qpic'
  6928. lt_prog_compiler_static='-qstaticlink'
  6929. ;;
  6930. *)
  6931. case `$CC -V 2>&1 | sed 5q` in
  6932. *Sun\ F* | *Sun*Fortran*)
  6933. # Sun Fortran 8.3 passes all unrecognized flags to the linker
  6934. lt_prog_compiler_pic='-KPIC'
  6935. lt_prog_compiler_static='-Bstatic'
  6936. lt_prog_compiler_wl=''
  6937. ;;
  6938. *Sun\ C*)
  6939. # Sun C 5.9
  6940. lt_prog_compiler_pic='-KPIC'
  6941. lt_prog_compiler_static='-Bstatic'
  6942. lt_prog_compiler_wl='-Wl,'
  6943. ;;
  6944. esac
  6945. ;;
  6946. esac
  6947. ;;
  6948. newsos6)
  6949. lt_prog_compiler_pic='-KPIC'
  6950. lt_prog_compiler_static='-Bstatic'
  6951. ;;
  6952. *nto* | *qnx*)
  6953. # QNX uses GNU C++, but need to define -shared option too, otherwise
  6954. # it will coredump.
  6955. lt_prog_compiler_pic='-fPIC -shared'
  6956. ;;
  6957. osf3* | osf4* | osf5*)
  6958. lt_prog_compiler_wl='-Wl,'
  6959. # All OSF/1 code is PIC.
  6960. lt_prog_compiler_static='-non_shared'
  6961. ;;
  6962. rdos*)
  6963. lt_prog_compiler_static='-non_shared'
  6964. ;;
  6965. solaris*)
  6966. lt_prog_compiler_pic='-KPIC'
  6967. lt_prog_compiler_static='-Bstatic'
  6968. case $cc_basename in
  6969. f77* | f90* | f95*)
  6970. lt_prog_compiler_wl='-Qoption ld ';;
  6971. *)
  6972. lt_prog_compiler_wl='-Wl,';;
  6973. esac
  6974. ;;
  6975. sunos4*)
  6976. lt_prog_compiler_wl='-Qoption ld '
  6977. lt_prog_compiler_pic='-PIC'
  6978. lt_prog_compiler_static='-Bstatic'
  6979. ;;
  6980. sysv4 | sysv4.2uw2* | sysv4.3*)
  6981. lt_prog_compiler_wl='-Wl,'
  6982. lt_prog_compiler_pic='-KPIC'
  6983. lt_prog_compiler_static='-Bstatic'
  6984. ;;
  6985. sysv4*MP*)
  6986. if test -d /usr/nec ;then
  6987. lt_prog_compiler_pic='-Kconform_pic'
  6988. lt_prog_compiler_static='-Bstatic'
  6989. fi
  6990. ;;
  6991. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  6992. lt_prog_compiler_wl='-Wl,'
  6993. lt_prog_compiler_pic='-KPIC'
  6994. lt_prog_compiler_static='-Bstatic'
  6995. ;;
  6996. unicos*)
  6997. lt_prog_compiler_wl='-Wl,'
  6998. lt_prog_compiler_can_build_shared=no
  6999. ;;
  7000. uts4*)
  7001. lt_prog_compiler_pic='-pic'
  7002. lt_prog_compiler_static='-Bstatic'
  7003. ;;
  7004. *)
  7005. lt_prog_compiler_can_build_shared=no
  7006. ;;
  7007. esac
  7008. fi
  7009. case $host_os in
  7010. # For platforms which do not support PIC, -DPIC is meaningless:
  7011. *djgpp*)
  7012. lt_prog_compiler_pic=
  7013. ;;
  7014. *)
  7015. lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
  7016. ;;
  7017. esac
  7018. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
  7019. $as_echo "$lt_prog_compiler_pic" >&6; }
  7020. #
  7021. # Check to make sure the PIC flag actually works.
  7022. #
  7023. if test -n "$lt_prog_compiler_pic"; then
  7024. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
  7025. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
  7026. if ${lt_cv_prog_compiler_pic_works+:} false; then :
  7027. $as_echo_n "(cached) " >&6
  7028. else
  7029. lt_cv_prog_compiler_pic_works=no
  7030. ac_outfile=conftest.$ac_objext
  7031. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7032. lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
  7033. # Insert the option either (1) after the last *FLAGS variable, or
  7034. # (2) before a word containing "conftest.", or (3) at the end.
  7035. # Note that $ac_compile itself does not contain backslashes and begins
  7036. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7037. # The option is referenced via a variable to avoid confusing sed.
  7038. lt_compile=`echo "$ac_compile" | $SED \
  7039. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7040. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7041. -e 's:$: $lt_compiler_flag:'`
  7042. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7043. (eval "$lt_compile" 2>conftest.err)
  7044. ac_status=$?
  7045. cat conftest.err >&5
  7046. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7047. if (exit $ac_status) && test -s "$ac_outfile"; then
  7048. # The compiler can only warn and ignore the option if not recognized
  7049. # So say no if there are warnings other than the usual output.
  7050. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  7051. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7052. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  7053. lt_cv_prog_compiler_pic_works=yes
  7054. fi
  7055. fi
  7056. $RM conftest*
  7057. fi
  7058. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
  7059. $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
  7060. if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
  7061. case $lt_prog_compiler_pic in
  7062. "" | " "*) ;;
  7063. *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
  7064. esac
  7065. else
  7066. lt_prog_compiler_pic=
  7067. lt_prog_compiler_can_build_shared=no
  7068. fi
  7069. fi
  7070. #
  7071. # Check to make sure the static flag actually works.
  7072. #
  7073. wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
  7074. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  7075. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  7076. if ${lt_cv_prog_compiler_static_works+:} false; then :
  7077. $as_echo_n "(cached) " >&6
  7078. else
  7079. lt_cv_prog_compiler_static_works=no
  7080. save_LDFLAGS="$LDFLAGS"
  7081. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  7082. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  7083. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  7084. # The linker can only warn and ignore the option if not recognized
  7085. # So say no if there are warnings
  7086. if test -s conftest.err; then
  7087. # Append any errors to the config.log.
  7088. cat conftest.err 1>&5
  7089. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  7090. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7091. if diff conftest.exp conftest.er2 >/dev/null; then
  7092. lt_cv_prog_compiler_static_works=yes
  7093. fi
  7094. else
  7095. lt_cv_prog_compiler_static_works=yes
  7096. fi
  7097. fi
  7098. $RM -r conftest*
  7099. LDFLAGS="$save_LDFLAGS"
  7100. fi
  7101. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
  7102. $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
  7103. if test x"$lt_cv_prog_compiler_static_works" = xyes; then
  7104. :
  7105. else
  7106. lt_prog_compiler_static=
  7107. fi
  7108. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  7109. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  7110. if ${lt_cv_prog_compiler_c_o+:} false; then :
  7111. $as_echo_n "(cached) " >&6
  7112. else
  7113. lt_cv_prog_compiler_c_o=no
  7114. $RM -r conftest 2>/dev/null
  7115. mkdir conftest
  7116. cd conftest
  7117. mkdir out
  7118. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7119. lt_compiler_flag="-o out/conftest2.$ac_objext"
  7120. # Insert the option either (1) after the last *FLAGS variable, or
  7121. # (2) before a word containing "conftest.", or (3) at the end.
  7122. # Note that $ac_compile itself does not contain backslashes and begins
  7123. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7124. lt_compile=`echo "$ac_compile" | $SED \
  7125. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7126. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7127. -e 's:$: $lt_compiler_flag:'`
  7128. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7129. (eval "$lt_compile" 2>out/conftest.err)
  7130. ac_status=$?
  7131. cat out/conftest.err >&5
  7132. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7133. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  7134. then
  7135. # The compiler can only warn and ignore the option if not recognized
  7136. # So say no if there are warnings
  7137. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  7138. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  7139. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  7140. lt_cv_prog_compiler_c_o=yes
  7141. fi
  7142. fi
  7143. chmod u+w . 2>&5
  7144. $RM conftest*
  7145. # SGI C++ compiler will create directory out/ii_files/ for
  7146. # template instantiation
  7147. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  7148. $RM out/* && rmdir out
  7149. cd ..
  7150. $RM -r conftest
  7151. $RM conftest*
  7152. fi
  7153. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  7154. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  7155. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  7156. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  7157. if ${lt_cv_prog_compiler_c_o+:} false; then :
  7158. $as_echo_n "(cached) " >&6
  7159. else
  7160. lt_cv_prog_compiler_c_o=no
  7161. $RM -r conftest 2>/dev/null
  7162. mkdir conftest
  7163. cd conftest
  7164. mkdir out
  7165. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7166. lt_compiler_flag="-o out/conftest2.$ac_objext"
  7167. # Insert the option either (1) after the last *FLAGS variable, or
  7168. # (2) before a word containing "conftest.", or (3) at the end.
  7169. # Note that $ac_compile itself does not contain backslashes and begins
  7170. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7171. lt_compile=`echo "$ac_compile" | $SED \
  7172. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7173. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7174. -e 's:$: $lt_compiler_flag:'`
  7175. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7176. (eval "$lt_compile" 2>out/conftest.err)
  7177. ac_status=$?
  7178. cat out/conftest.err >&5
  7179. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7180. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  7181. then
  7182. # The compiler can only warn and ignore the option if not recognized
  7183. # So say no if there are warnings
  7184. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  7185. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  7186. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  7187. lt_cv_prog_compiler_c_o=yes
  7188. fi
  7189. fi
  7190. chmod u+w . 2>&5
  7191. $RM conftest*
  7192. # SGI C++ compiler will create directory out/ii_files/ for
  7193. # template instantiation
  7194. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  7195. $RM out/* && rmdir out
  7196. cd ..
  7197. $RM -r conftest
  7198. $RM conftest*
  7199. fi
  7200. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  7201. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  7202. hard_links="nottested"
  7203. if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
  7204. # do not overwrite the value of need_locks provided by the user
  7205. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  7206. $as_echo_n "checking if we can lock with hard links... " >&6; }
  7207. hard_links=yes
  7208. $RM conftest*
  7209. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  7210. touch conftest.a
  7211. ln conftest.a conftest.b 2>&5 || hard_links=no
  7212. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  7213. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  7214. $as_echo "$hard_links" >&6; }
  7215. if test "$hard_links" = no; then
  7216. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  7217. $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  7218. need_locks=warn
  7219. fi
  7220. else
  7221. need_locks=no
  7222. fi
  7223. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  7224. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  7225. runpath_var=
  7226. allow_undefined_flag=
  7227. always_export_symbols=no
  7228. archive_cmds=
  7229. archive_expsym_cmds=
  7230. compiler_needs_object=no
  7231. enable_shared_with_static_runtimes=no
  7232. export_dynamic_flag_spec=
  7233. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  7234. hardcode_automatic=no
  7235. hardcode_direct=no
  7236. hardcode_direct_absolute=no
  7237. hardcode_libdir_flag_spec=
  7238. hardcode_libdir_flag_spec_ld=
  7239. hardcode_libdir_separator=
  7240. hardcode_minus_L=no
  7241. hardcode_shlibpath_var=unsupported
  7242. inherit_rpath=no
  7243. link_all_deplibs=unknown
  7244. module_cmds=
  7245. module_expsym_cmds=
  7246. old_archive_from_new_cmds=
  7247. old_archive_from_expsyms_cmds=
  7248. thread_safe_flag_spec=
  7249. whole_archive_flag_spec=
  7250. # include_expsyms should be a list of space-separated symbols to be *always*
  7251. # included in the symbol list
  7252. include_expsyms=
  7253. # exclude_expsyms can be an extended regexp of symbols to exclude
  7254. # it will be wrapped by ` (' and `)$', so one must not match beginning or
  7255. # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  7256. # as well as any symbol that contains `d'.
  7257. exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  7258. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  7259. # platforms (ab)use it in PIC code, but their linkers get confused if
  7260. # the symbol is explicitly referenced. Since portable code cannot
  7261. # rely on this symbol name, it's probably fine to never include it in
  7262. # preloaded symbol tables.
  7263. # Exclude shared library initialization/finalization symbols.
  7264. extract_expsyms_cmds=
  7265. case $host_os in
  7266. cygwin* | mingw* | pw32* | cegcc*)
  7267. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  7268. # When not using gcc, we currently assume that we are using
  7269. # Microsoft Visual C++.
  7270. if test "$GCC" != yes; then
  7271. with_gnu_ld=no
  7272. fi
  7273. ;;
  7274. interix*)
  7275. # we just hope/assume this is gcc and not c89 (= MSVC++)
  7276. with_gnu_ld=yes
  7277. ;;
  7278. openbsd*)
  7279. with_gnu_ld=no
  7280. ;;
  7281. esac
  7282. ld_shlibs=yes
  7283. # On some targets, GNU ld is compatible enough with the native linker
  7284. # that we're better off using the native interface for both.
  7285. lt_use_gnu_ld_interface=no
  7286. if test "$with_gnu_ld" = yes; then
  7287. case $host_os in
  7288. aix*)
  7289. # The AIX port of GNU ld has always aspired to compatibility
  7290. # with the native linker. However, as the warning in the GNU ld
  7291. # block says, versions before 2.19.5* couldn't really create working
  7292. # shared libraries, regardless of the interface used.
  7293. case `$LD -v 2>&1` in
  7294. *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
  7295. *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
  7296. *\ \(GNU\ Binutils\)\ [3-9]*) ;;
  7297. *)
  7298. lt_use_gnu_ld_interface=yes
  7299. ;;
  7300. esac
  7301. ;;
  7302. *)
  7303. lt_use_gnu_ld_interface=yes
  7304. ;;
  7305. esac
  7306. fi
  7307. if test "$lt_use_gnu_ld_interface" = yes; then
  7308. # If archive_cmds runs LD, not CC, wlarc should be empty
  7309. wlarc='${wl}'
  7310. # Set some defaults for GNU ld with shared library support. These
  7311. # are reset later if shared libraries are not supported. Putting them
  7312. # here allows them to be overridden if necessary.
  7313. runpath_var=LD_RUN_PATH
  7314. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7315. export_dynamic_flag_spec='${wl}--export-dynamic'
  7316. # ancient GNU ld didn't support --whole-archive et. al.
  7317. if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
  7318. whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  7319. else
  7320. whole_archive_flag_spec=
  7321. fi
  7322. supports_anon_versioning=no
  7323. case `$LD -v 2>&1` in
  7324. *GNU\ gold*) supports_anon_versioning=yes ;;
  7325. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  7326. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  7327. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  7328. *\ 2.11.*) ;; # other 2.11 versions
  7329. *) supports_anon_versioning=yes ;;
  7330. esac
  7331. # See if GNU ld supports shared libraries.
  7332. case $host_os in
  7333. aix[3-9]*)
  7334. # On AIX/PPC, the GNU linker is very broken
  7335. if test "$host_cpu" != ia64; then
  7336. ld_shlibs=no
  7337. cat <<_LT_EOF 1>&2
  7338. *** Warning: the GNU linker, at least up to release 2.19, is reported
  7339. *** to be unable to reliably create shared libraries on AIX.
  7340. *** Therefore, libtool is disabling shared libraries support. If you
  7341. *** really care for shared libraries, you may want to install binutils
  7342. *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
  7343. *** You will then need to restart the configuration process.
  7344. _LT_EOF
  7345. fi
  7346. ;;
  7347. amigaos*)
  7348. case $host_cpu in
  7349. powerpc)
  7350. # see comment about AmigaOS4 .so support
  7351. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7352. archive_expsym_cmds=''
  7353. ;;
  7354. m68k)
  7355. 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)'
  7356. hardcode_libdir_flag_spec='-L$libdir'
  7357. hardcode_minus_L=yes
  7358. ;;
  7359. esac
  7360. ;;
  7361. beos*)
  7362. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7363. allow_undefined_flag=unsupported
  7364. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  7365. # support --undefined. This deserves some investigation. FIXME
  7366. archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7367. else
  7368. ld_shlibs=no
  7369. fi
  7370. ;;
  7371. cygwin* | mingw* | pw32* | cegcc*)
  7372. # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
  7373. # as there is no search path for DLLs.
  7374. hardcode_libdir_flag_spec='-L$libdir'
  7375. export_dynamic_flag_spec='${wl}--export-all-symbols'
  7376. allow_undefined_flag=unsupported
  7377. always_export_symbols=no
  7378. enable_shared_with_static_runtimes=yes
  7379. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
  7380. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  7381. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  7382. # If the export-symbols file already is a .def file (1st line
  7383. # is EXPORTS), use it as is; otherwise, prepend...
  7384. archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  7385. cp $export_symbols $output_objdir/$soname.def;
  7386. else
  7387. echo EXPORTS > $output_objdir/$soname.def;
  7388. cat $export_symbols >> $output_objdir/$soname.def;
  7389. fi~
  7390. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  7391. else
  7392. ld_shlibs=no
  7393. fi
  7394. ;;
  7395. haiku*)
  7396. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7397. link_all_deplibs=yes
  7398. ;;
  7399. interix[3-9]*)
  7400. hardcode_direct=no
  7401. hardcode_shlibpath_var=no
  7402. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  7403. export_dynamic_flag_spec='${wl}-E'
  7404. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  7405. # Instead, shared libraries are loaded at an image base (0x10000000 by
  7406. # default) and relocated if they conflict, which is a slow very memory
  7407. # consuming and fragmenting process. To avoid this, we pick a random,
  7408. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  7409. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  7410. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  7411. 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'
  7412. ;;
  7413. gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
  7414. tmp_diet=no
  7415. if test "$host_os" = linux-dietlibc; then
  7416. case $cc_basename in
  7417. diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
  7418. esac
  7419. fi
  7420. if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
  7421. && test "$tmp_diet" = no
  7422. then
  7423. tmp_addflag=' $pic_flag'
  7424. tmp_sharedflag='-shared'
  7425. case $cc_basename,$host_cpu in
  7426. pgcc*) # Portland Group C compiler
  7427. 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'
  7428. tmp_addflag=' $pic_flag'
  7429. ;;
  7430. pgf77* | pgf90* | pgf95* | pgfortran*)
  7431. # Portland Group f77 and f90 compilers
  7432. 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'
  7433. tmp_addflag=' $pic_flag -Mnomain' ;;
  7434. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  7435. tmp_addflag=' -i_dynamic' ;;
  7436. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  7437. tmp_addflag=' -i_dynamic -nofor_main' ;;
  7438. ifc* | ifort*) # Intel Fortran compiler
  7439. tmp_addflag=' -nofor_main' ;;
  7440. lf95*) # Lahey Fortran 8.1
  7441. whole_archive_flag_spec=
  7442. tmp_sharedflag='--shared' ;;
  7443. xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
  7444. tmp_sharedflag='-qmkshrobj'
  7445. tmp_addflag= ;;
  7446. nvcc*) # Cuda Compiler Driver 2.2
  7447. 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'
  7448. compiler_needs_object=yes
  7449. ;;
  7450. esac
  7451. case `$CC -V 2>&1 | sed 5q` in
  7452. *Sun\ C*) # Sun C 5.9
  7453. 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'
  7454. compiler_needs_object=yes
  7455. tmp_sharedflag='-G' ;;
  7456. *Sun\ F*) # Sun Fortran 8.3
  7457. tmp_sharedflag='-G' ;;
  7458. esac
  7459. archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7460. if test "x$supports_anon_versioning" = xyes; then
  7461. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  7462. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  7463. echo "local: *; };" >> $output_objdir/$libname.ver~
  7464. $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  7465. fi
  7466. case $cc_basename in
  7467. xlf* | bgf* | bgxlf* | mpixlf*)
  7468. # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
  7469. whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
  7470. hardcode_libdir_flag_spec=
  7471. hardcode_libdir_flag_spec_ld='-rpath $libdir'
  7472. archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
  7473. if test "x$supports_anon_versioning" = xyes; then
  7474. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  7475. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  7476. echo "local: *; };" >> $output_objdir/$libname.ver~
  7477. $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
  7478. fi
  7479. ;;
  7480. esac
  7481. else
  7482. ld_shlibs=no
  7483. fi
  7484. ;;
  7485. netbsd*)
  7486. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  7487. archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  7488. wlarc=
  7489. else
  7490. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7491. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7492. fi
  7493. ;;
  7494. solaris*)
  7495. if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
  7496. ld_shlibs=no
  7497. cat <<_LT_EOF 1>&2
  7498. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  7499. *** create shared libraries on Solaris systems. Therefore, libtool
  7500. *** is disabling shared libraries support. We urge you to upgrade GNU
  7501. *** binutils to release 2.9.1 or newer. Another option is to modify
  7502. *** your PATH or compiler configuration so that the native linker is
  7503. *** used, and then restart.
  7504. _LT_EOF
  7505. elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7506. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7507. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7508. else
  7509. ld_shlibs=no
  7510. fi
  7511. ;;
  7512. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  7513. case `$LD -v 2>&1` in
  7514. *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  7515. ld_shlibs=no
  7516. cat <<_LT_EOF 1>&2
  7517. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  7518. *** reliably create shared libraries on SCO systems. Therefore, libtool
  7519. *** is disabling shared libraries support. We urge you to upgrade GNU
  7520. *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  7521. *** your PATH or compiler configuration so that the native linker is
  7522. *** used, and then restart.
  7523. _LT_EOF
  7524. ;;
  7525. *)
  7526. # For security reasons, it is highly recommended that you always
  7527. # use absolute paths for naming shared libraries, and exclude the
  7528. # DT_RUNPATH tag from executables and libraries. But doing so
  7529. # requires that you compile everything twice, which is a pain.
  7530. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7531. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7532. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7533. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7534. else
  7535. ld_shlibs=no
  7536. fi
  7537. ;;
  7538. esac
  7539. ;;
  7540. sunos4*)
  7541. archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  7542. wlarc=
  7543. hardcode_direct=yes
  7544. hardcode_shlibpath_var=no
  7545. ;;
  7546. *)
  7547. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7548. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7549. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7550. else
  7551. ld_shlibs=no
  7552. fi
  7553. ;;
  7554. esac
  7555. if test "$ld_shlibs" = no; then
  7556. runpath_var=
  7557. hardcode_libdir_flag_spec=
  7558. export_dynamic_flag_spec=
  7559. whole_archive_flag_spec=
  7560. fi
  7561. else
  7562. # PORTME fill in a description of your system's linker (not GNU ld)
  7563. case $host_os in
  7564. aix3*)
  7565. allow_undefined_flag=unsupported
  7566. always_export_symbols=yes
  7567. 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'
  7568. # Note: this linker hardcodes the directories in LIBPATH if there
  7569. # are no directories specified by -L.
  7570. hardcode_minus_L=yes
  7571. if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  7572. # Neither direct hardcoding nor static linking is supported with a
  7573. # broken collect2.
  7574. hardcode_direct=unsupported
  7575. fi
  7576. ;;
  7577. aix[4-9]*)
  7578. if test "$host_cpu" = ia64; then
  7579. # On IA64, the linker does run time linking by default, so we don't
  7580. # have to do anything special.
  7581. aix_use_runtimelinking=no
  7582. exp_sym_flag='-Bexport'
  7583. no_entry_flag=""
  7584. else
  7585. # If we're using GNU nm, then we don't want the "-C" option.
  7586. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  7587. # Also, AIX nm treats weak defined symbols like other global
  7588. # defined symbols, whereas GNU nm marks them as "W".
  7589. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  7590. 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'
  7591. else
  7592. export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
  7593. fi
  7594. aix_use_runtimelinking=no
  7595. # Test if we are trying to use run time linking or normal
  7596. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  7597. # need to do runtime linking.
  7598. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  7599. for ld_flag in $LDFLAGS; do
  7600. if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  7601. aix_use_runtimelinking=yes
  7602. break
  7603. fi
  7604. done
  7605. ;;
  7606. esac
  7607. exp_sym_flag='-bexport'
  7608. no_entry_flag='-bnoentry'
  7609. fi
  7610. # When large executables or shared objects are built, AIX ld can
  7611. # have problems creating the table of contents. If linking a library
  7612. # or program results in "error TOC overflow" add -mminimal-toc to
  7613. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  7614. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  7615. archive_cmds=''
  7616. hardcode_direct=yes
  7617. hardcode_direct_absolute=yes
  7618. hardcode_libdir_separator=':'
  7619. link_all_deplibs=yes
  7620. file_list_spec='${wl}-f,'
  7621. if test "$GCC" = yes; then
  7622. case $host_os in aix4.[012]|aix4.[012].*)
  7623. # We only want to do this on AIX 4.2 and lower, the check
  7624. # below for broken collect2 doesn't work under 4.3+
  7625. collect2name=`${CC} -print-prog-name=collect2`
  7626. if test -f "$collect2name" &&
  7627. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  7628. then
  7629. # We have reworked collect2
  7630. :
  7631. else
  7632. # We have old collect2
  7633. hardcode_direct=unsupported
  7634. # It fails to find uninstalled libraries when the uninstalled
  7635. # path is not listed in the libpath. Setting hardcode_minus_L
  7636. # to unsupported forces relinking
  7637. hardcode_minus_L=yes
  7638. hardcode_libdir_flag_spec='-L$libdir'
  7639. hardcode_libdir_separator=
  7640. fi
  7641. ;;
  7642. esac
  7643. shared_flag='-shared'
  7644. if test "$aix_use_runtimelinking" = yes; then
  7645. shared_flag="$shared_flag "'${wl}-G'
  7646. fi
  7647. else
  7648. # not using gcc
  7649. if test "$host_cpu" = ia64; then
  7650. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  7651. # chokes on -Wl,-G. The following line is correct:
  7652. shared_flag='-G'
  7653. else
  7654. if test "$aix_use_runtimelinking" = yes; then
  7655. shared_flag='${wl}-G'
  7656. else
  7657. shared_flag='${wl}-bM:SRE'
  7658. fi
  7659. fi
  7660. fi
  7661. export_dynamic_flag_spec='${wl}-bexpall'
  7662. # It seems that -bexpall does not export symbols beginning with
  7663. # underscore (_), so it is better to generate a list of symbols to export.
  7664. always_export_symbols=yes
  7665. if test "$aix_use_runtimelinking" = yes; then
  7666. # Warning - without using the other runtime loading flags (-brtl),
  7667. # -berok will link without error, but may produce a broken library.
  7668. allow_undefined_flag='-berok'
  7669. # Determine the default libpath from the value encoded in an
  7670. # empty executable.
  7671. if test x$gcc_no_link = xyes; then
  7672. as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  7673. fi
  7674. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7675. /* end confdefs.h. */
  7676. int
  7677. main ()
  7678. {
  7679. ;
  7680. return 0;
  7681. }
  7682. _ACEOF
  7683. if ac_fn_c_try_link "$LINENO"; then :
  7684. lt_aix_libpath_sed='
  7685. /Import File Strings/,/^$/ {
  7686. /^0/ {
  7687. s/^0 *\(.*\)$/\1/
  7688. p
  7689. }
  7690. }'
  7691. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  7692. # Check for a 64-bit object if we didn't find anything.
  7693. if test -z "$aix_libpath"; then
  7694. aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  7695. fi
  7696. fi
  7697. rm -f core conftest.err conftest.$ac_objext \
  7698. conftest$ac_exeext conftest.$ac_ext
  7699. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  7700. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  7701. 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"
  7702. else
  7703. if test "$host_cpu" = ia64; then
  7704. hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
  7705. allow_undefined_flag="-z nodefs"
  7706. 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"
  7707. else
  7708. # Determine the default libpath from the value encoded in an
  7709. # empty executable.
  7710. if test x$gcc_no_link = xyes; then
  7711. as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  7712. fi
  7713. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7714. /* end confdefs.h. */
  7715. int
  7716. main ()
  7717. {
  7718. ;
  7719. return 0;
  7720. }
  7721. _ACEOF
  7722. if ac_fn_c_try_link "$LINENO"; then :
  7723. lt_aix_libpath_sed='
  7724. /Import File Strings/,/^$/ {
  7725. /^0/ {
  7726. s/^0 *\(.*\)$/\1/
  7727. p
  7728. }
  7729. }'
  7730. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  7731. # Check for a 64-bit object if we didn't find anything.
  7732. if test -z "$aix_libpath"; then
  7733. aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  7734. fi
  7735. fi
  7736. rm -f core conftest.err conftest.$ac_objext \
  7737. conftest$ac_exeext conftest.$ac_ext
  7738. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  7739. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  7740. # Warning - without using the other run time loading flags,
  7741. # -berok will link without error, but may produce a broken library.
  7742. no_undefined_flag=' ${wl}-bernotok'
  7743. allow_undefined_flag=' ${wl}-berok'
  7744. if test "$with_gnu_ld" = yes; then
  7745. # We only use this code for GNU lds that support --whole-archive.
  7746. whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  7747. else
  7748. # Exported symbols can be pulled into shared objects from archives
  7749. whole_archive_flag_spec='$convenience'
  7750. fi
  7751. archive_cmds_need_lc=yes
  7752. # This is similar to how AIX traditionally builds its shared libraries.
  7753. 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'
  7754. fi
  7755. fi
  7756. ;;
  7757. amigaos*)
  7758. case $host_cpu in
  7759. powerpc)
  7760. # see comment about AmigaOS4 .so support
  7761. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7762. archive_expsym_cmds=''
  7763. ;;
  7764. m68k)
  7765. 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)'
  7766. hardcode_libdir_flag_spec='-L$libdir'
  7767. hardcode_minus_L=yes
  7768. ;;
  7769. esac
  7770. ;;
  7771. bsdi[45]*)
  7772. export_dynamic_flag_spec=-rdynamic
  7773. ;;
  7774. cygwin* | mingw* | pw32* | cegcc*)
  7775. # When not using gcc, we currently assume that we are using
  7776. # Microsoft Visual C++.
  7777. # hardcode_libdir_flag_spec is actually meaningless, as there is
  7778. # no search path for DLLs.
  7779. hardcode_libdir_flag_spec=' '
  7780. allow_undefined_flag=unsupported
  7781. # Tell ltmain to make .lib files, not .a files.
  7782. libext=lib
  7783. # Tell ltmain to make .dll files, not .so files.
  7784. shrext_cmds=".dll"
  7785. # FIXME: Setting linknames here is a bad hack.
  7786. archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
  7787. # The linker will automatically build a .lib file if we build a DLL.
  7788. old_archive_from_new_cmds='true'
  7789. # FIXME: Should let the user specify the lib program.
  7790. old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
  7791. fix_srcfile_path='`cygpath -w "$srcfile"`'
  7792. enable_shared_with_static_runtimes=yes
  7793. ;;
  7794. darwin* | rhapsody*)
  7795. archive_cmds_need_lc=no
  7796. hardcode_direct=no
  7797. hardcode_automatic=yes
  7798. hardcode_shlibpath_var=unsupported
  7799. if test "$lt_cv_ld_force_load" = "yes"; then
  7800. 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\"`'
  7801. else
  7802. whole_archive_flag_spec=''
  7803. fi
  7804. link_all_deplibs=yes
  7805. allow_undefined_flag="$_lt_dar_allow_undefined"
  7806. case $cc_basename in
  7807. ifort*) _lt_dar_can_shared=yes ;;
  7808. *) _lt_dar_can_shared=$GCC ;;
  7809. esac
  7810. if test "$_lt_dar_can_shared" = "yes"; then
  7811. output_verbose_link_cmd=func_echo_all
  7812. archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
  7813. module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  7814. 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}"
  7815. 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}"
  7816. else
  7817. ld_shlibs=no
  7818. fi
  7819. ;;
  7820. dgux*)
  7821. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  7822. hardcode_libdir_flag_spec='-L$libdir'
  7823. hardcode_shlibpath_var=no
  7824. ;;
  7825. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  7826. # support. Future versions do this automatically, but an explicit c++rt0.o
  7827. # does not break anything, and helps significantly (at the cost of a little
  7828. # extra space).
  7829. freebsd2.2*)
  7830. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  7831. hardcode_libdir_flag_spec='-R$libdir'
  7832. hardcode_direct=yes
  7833. hardcode_shlibpath_var=no
  7834. ;;
  7835. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  7836. freebsd2.*)
  7837. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  7838. hardcode_direct=yes
  7839. hardcode_minus_L=yes
  7840. hardcode_shlibpath_var=no
  7841. ;;
  7842. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  7843. freebsd* | dragonfly*)
  7844. archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
  7845. hardcode_libdir_flag_spec='-R$libdir'
  7846. hardcode_direct=yes
  7847. hardcode_shlibpath_var=no
  7848. ;;
  7849. hpux9*)
  7850. if test "$GCC" = yes; then
  7851. archive_cmds='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  7852. else
  7853. 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'
  7854. fi
  7855. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  7856. hardcode_libdir_separator=:
  7857. hardcode_direct=yes
  7858. # hardcode_minus_L: Not really in the search PATH,
  7859. # but as the default location of the library.
  7860. hardcode_minus_L=yes
  7861. export_dynamic_flag_spec='${wl}-E'
  7862. ;;
  7863. hpux10*)
  7864. if test "$GCC" = yes && test "$with_gnu_ld" = no; then
  7865. archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  7866. else
  7867. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  7868. fi
  7869. if test "$with_gnu_ld" = no; then
  7870. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  7871. hardcode_libdir_flag_spec_ld='+b $libdir'
  7872. hardcode_libdir_separator=:
  7873. hardcode_direct=yes
  7874. hardcode_direct_absolute=yes
  7875. export_dynamic_flag_spec='${wl}-E'
  7876. # hardcode_minus_L: Not really in the search PATH,
  7877. # but as the default location of the library.
  7878. hardcode_minus_L=yes
  7879. fi
  7880. ;;
  7881. hpux11*)
  7882. if test "$GCC" = yes && test "$with_gnu_ld" = no; then
  7883. case $host_cpu in
  7884. hppa*64*)
  7885. archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  7886. ;;
  7887. ia64*)
  7888. archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  7889. ;;
  7890. *)
  7891. archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  7892. ;;
  7893. esac
  7894. else
  7895. case $host_cpu in
  7896. hppa*64*)
  7897. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  7898. ;;
  7899. ia64*)
  7900. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  7901. ;;
  7902. *)
  7903. # Older versions of the 11.00 compiler do not understand -b yet
  7904. # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
  7905. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
  7906. $as_echo_n "checking if $CC understands -b... " >&6; }
  7907. if ${lt_cv_prog_compiler__b+:} false; then :
  7908. $as_echo_n "(cached) " >&6
  7909. else
  7910. lt_cv_prog_compiler__b=no
  7911. save_LDFLAGS="$LDFLAGS"
  7912. LDFLAGS="$LDFLAGS -b"
  7913. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  7914. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  7915. # The linker can only warn and ignore the option if not recognized
  7916. # So say no if there are warnings
  7917. if test -s conftest.err; then
  7918. # Append any errors to the config.log.
  7919. cat conftest.err 1>&5
  7920. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  7921. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7922. if diff conftest.exp conftest.er2 >/dev/null; then
  7923. lt_cv_prog_compiler__b=yes
  7924. fi
  7925. else
  7926. lt_cv_prog_compiler__b=yes
  7927. fi
  7928. fi
  7929. $RM -r conftest*
  7930. LDFLAGS="$save_LDFLAGS"
  7931. fi
  7932. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
  7933. $as_echo "$lt_cv_prog_compiler__b" >&6; }
  7934. if test x"$lt_cv_prog_compiler__b" = xyes; then
  7935. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  7936. else
  7937. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  7938. fi
  7939. ;;
  7940. esac
  7941. fi
  7942. if test "$with_gnu_ld" = no; then
  7943. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  7944. hardcode_libdir_separator=:
  7945. case $host_cpu in
  7946. hppa*64*|ia64*)
  7947. hardcode_direct=no
  7948. hardcode_shlibpath_var=no
  7949. ;;
  7950. *)
  7951. hardcode_direct=yes
  7952. hardcode_direct_absolute=yes
  7953. export_dynamic_flag_spec='${wl}-E'
  7954. # hardcode_minus_L: Not really in the search PATH,
  7955. # but as the default location of the library.
  7956. hardcode_minus_L=yes
  7957. ;;
  7958. esac
  7959. fi
  7960. ;;
  7961. irix5* | irix6* | nonstopux*)
  7962. if test "$GCC" = yes; then
  7963. archive_cmds='$CC -shared $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'
  7964. # Try to use the -exported_symbol ld option, if it does not
  7965. # work, assume that -exports_file does not work either and
  7966. # implicitly export all symbols.
  7967. save_LDFLAGS="$LDFLAGS"
  7968. LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
  7969. if test x$gcc_no_link = xyes; then
  7970. as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  7971. fi
  7972. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7973. /* end confdefs.h. */
  7974. int foo(void) {}
  7975. _ACEOF
  7976. if ac_fn_c_try_link "$LINENO"; then :
  7977. archive_expsym_cmds='$CC -shared $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'
  7978. fi
  7979. rm -f core conftest.err conftest.$ac_objext \
  7980. conftest$ac_exeext conftest.$ac_ext
  7981. LDFLAGS="$save_LDFLAGS"
  7982. else
  7983. 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'
  7984. 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'
  7985. fi
  7986. archive_cmds_need_lc='no'
  7987. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7988. hardcode_libdir_separator=:
  7989. inherit_rpath=yes
  7990. link_all_deplibs=yes
  7991. ;;
  7992. netbsd*)
  7993. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  7994. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  7995. else
  7996. archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  7997. fi
  7998. hardcode_libdir_flag_spec='-R$libdir'
  7999. hardcode_direct=yes
  8000. hardcode_shlibpath_var=no
  8001. ;;
  8002. newsos6)
  8003. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8004. hardcode_direct=yes
  8005. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8006. hardcode_libdir_separator=:
  8007. hardcode_shlibpath_var=no
  8008. ;;
  8009. *nto* | *qnx*)
  8010. ;;
  8011. openbsd*)
  8012. if test -f /usr/libexec/ld.so; then
  8013. hardcode_direct=yes
  8014. hardcode_shlibpath_var=no
  8015. hardcode_direct_absolute=yes
  8016. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  8017. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8018. archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  8019. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  8020. export_dynamic_flag_spec='${wl}-E'
  8021. else
  8022. case $host_os in
  8023. openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  8024. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8025. hardcode_libdir_flag_spec='-R$libdir'
  8026. ;;
  8027. *)
  8028. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8029. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  8030. ;;
  8031. esac
  8032. fi
  8033. else
  8034. ld_shlibs=no
  8035. fi
  8036. ;;
  8037. os2*)
  8038. hardcode_libdir_flag_spec='-L$libdir'
  8039. hardcode_minus_L=yes
  8040. allow_undefined_flag=unsupported
  8041. 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'
  8042. old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  8043. ;;
  8044. osf3*)
  8045. if test "$GCC" = yes; then
  8046. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  8047. 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'
  8048. else
  8049. allow_undefined_flag=' -expect_unresolved \*'
  8050. 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'
  8051. fi
  8052. archive_cmds_need_lc='no'
  8053. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8054. hardcode_libdir_separator=:
  8055. ;;
  8056. osf4* | osf5*) # as osf3* with the addition of -msym flag
  8057. if test "$GCC" = yes; then
  8058. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  8059. archive_cmds='$CC -shared${allow_undefined_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'
  8060. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8061. else
  8062. allow_undefined_flag=' -expect_unresolved \*'
  8063. 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'
  8064. 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~
  8065. $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'
  8066. # Both c and cxx compiler support -rpath directly
  8067. hardcode_libdir_flag_spec='-rpath $libdir'
  8068. fi
  8069. archive_cmds_need_lc='no'
  8070. hardcode_libdir_separator=:
  8071. ;;
  8072. solaris*)
  8073. no_undefined_flag=' -z defs'
  8074. if test "$GCC" = yes; then
  8075. wlarc='${wl}'
  8076. archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8077. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8078. $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  8079. else
  8080. case `$CC -V 2>&1` in
  8081. *"Compilers 5.0"*)
  8082. wlarc=''
  8083. archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8084. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8085. $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
  8086. ;;
  8087. *)
  8088. wlarc='${wl}'
  8089. archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
  8090. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8091. $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  8092. ;;
  8093. esac
  8094. fi
  8095. hardcode_libdir_flag_spec='-R$libdir'
  8096. hardcode_shlibpath_var=no
  8097. case $host_os in
  8098. solaris2.[0-5] | solaris2.[0-5].*) ;;
  8099. *)
  8100. # The compiler driver will combine and reorder linker options,
  8101. # but understands `-z linker_flag'. GCC discards it without `$wl',
  8102. # but is careful enough not to reorder.
  8103. # Supported since Solaris 2.6 (maybe 2.5.1?)
  8104. if test "$GCC" = yes; then
  8105. whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  8106. else
  8107. whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
  8108. fi
  8109. ;;
  8110. esac
  8111. link_all_deplibs=yes
  8112. ;;
  8113. sunos4*)
  8114. if test "x$host_vendor" = xsequent; then
  8115. # Use $CC to link under sequent, because it throws in some extra .o
  8116. # files that make .init and .fini sections work.
  8117. archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  8118. else
  8119. archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  8120. fi
  8121. hardcode_libdir_flag_spec='-L$libdir'
  8122. hardcode_direct=yes
  8123. hardcode_minus_L=yes
  8124. hardcode_shlibpath_var=no
  8125. ;;
  8126. sysv4)
  8127. case $host_vendor in
  8128. sni)
  8129. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8130. hardcode_direct=yes # is this really true???
  8131. ;;
  8132. siemens)
  8133. ## LD is ld it makes a PLAMLIB
  8134. ## CC just makes a GrossModule.
  8135. archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  8136. reload_cmds='$CC -r -o $output$reload_objs'
  8137. hardcode_direct=no
  8138. ;;
  8139. motorola)
  8140. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8141. hardcode_direct=no #Motorola manual says yes, but my tests say they lie
  8142. ;;
  8143. esac
  8144. runpath_var='LD_RUN_PATH'
  8145. hardcode_shlibpath_var=no
  8146. ;;
  8147. sysv4.3*)
  8148. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8149. hardcode_shlibpath_var=no
  8150. export_dynamic_flag_spec='-Bexport'
  8151. ;;
  8152. sysv4*MP*)
  8153. if test -d /usr/nec; then
  8154. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8155. hardcode_shlibpath_var=no
  8156. runpath_var=LD_RUN_PATH
  8157. hardcode_runpath_var=yes
  8158. ld_shlibs=yes
  8159. fi
  8160. ;;
  8161. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  8162. no_undefined_flag='${wl}-z,text'
  8163. archive_cmds_need_lc=no
  8164. hardcode_shlibpath_var=no
  8165. runpath_var='LD_RUN_PATH'
  8166. if test "$GCC" = yes; then
  8167. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8168. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8169. else
  8170. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8171. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8172. fi
  8173. ;;
  8174. sysv5* | sco3.2v5* | sco5v6*)
  8175. # Note: We can NOT use -z defs as we might desire, because we do not
  8176. # link with -lc, and that would cause any symbols used from libc to
  8177. # always be unresolved, which means just about no library would
  8178. # ever link correctly. If we're not using GNU ld we use -z text
  8179. # though, which does catch some bad symbols but isn't as heavy-handed
  8180. # as -z defs.
  8181. no_undefined_flag='${wl}-z,text'
  8182. allow_undefined_flag='${wl}-z,nodefs'
  8183. archive_cmds_need_lc=no
  8184. hardcode_shlibpath_var=no
  8185. hardcode_libdir_flag_spec='${wl}-R,$libdir'
  8186. hardcode_libdir_separator=':'
  8187. link_all_deplibs=yes
  8188. export_dynamic_flag_spec='${wl}-Bexport'
  8189. runpath_var='LD_RUN_PATH'
  8190. if test "$GCC" = yes; then
  8191. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8192. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8193. else
  8194. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8195. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8196. fi
  8197. ;;
  8198. uts4*)
  8199. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8200. hardcode_libdir_flag_spec='-L$libdir'
  8201. hardcode_shlibpath_var=no
  8202. ;;
  8203. *)
  8204. ld_shlibs=no
  8205. ;;
  8206. esac
  8207. if test x$host_vendor = xsni; then
  8208. case $host in
  8209. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  8210. export_dynamic_flag_spec='${wl}-Blargedynsym'
  8211. ;;
  8212. esac
  8213. fi
  8214. fi
  8215. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
  8216. $as_echo "$ld_shlibs" >&6; }
  8217. test "$ld_shlibs" = no && can_build_shared=no
  8218. with_gnu_ld=$with_gnu_ld
  8219. #
  8220. # Do we need to explicitly link libc?
  8221. #
  8222. case "x$archive_cmds_need_lc" in
  8223. x|xyes)
  8224. # Assume -lc should be added
  8225. archive_cmds_need_lc=yes
  8226. if test "$enable_shared" = yes && test "$GCC" = yes; then
  8227. case $archive_cmds in
  8228. *'~'*)
  8229. # FIXME: we may have to deal with multi-command sequences.
  8230. ;;
  8231. '$CC '*)
  8232. # Test whether the compiler implicitly links with -lc since on some
  8233. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  8234. # to ld, don't add -lc before -lgcc.
  8235. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  8236. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  8237. if ${lt_cv_archive_cmds_need_lc+:} false; then :
  8238. $as_echo_n "(cached) " >&6
  8239. else
  8240. $RM conftest*
  8241. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8242. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  8243. (eval $ac_compile) 2>&5
  8244. ac_status=$?
  8245. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  8246. test $ac_status = 0; } 2>conftest.err; then
  8247. soname=conftest
  8248. lib=conftest
  8249. libobjs=conftest.$ac_objext
  8250. deplibs=
  8251. wl=$lt_prog_compiler_wl
  8252. pic_flag=$lt_prog_compiler_pic
  8253. compiler_flags=-v
  8254. linker_flags=-v
  8255. verstring=
  8256. output_objdir=.
  8257. libname=conftest
  8258. lt_save_allow_undefined_flag=$allow_undefined_flag
  8259. allow_undefined_flag=
  8260. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  8261. (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  8262. ac_status=$?
  8263. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  8264. test $ac_status = 0; }
  8265. then
  8266. lt_cv_archive_cmds_need_lc=no
  8267. else
  8268. lt_cv_archive_cmds_need_lc=yes
  8269. fi
  8270. allow_undefined_flag=$lt_save_allow_undefined_flag
  8271. else
  8272. cat conftest.err 1>&5
  8273. fi
  8274. $RM conftest*
  8275. fi
  8276. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
  8277. $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
  8278. archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
  8279. ;;
  8280. esac
  8281. fi
  8282. ;;
  8283. esac
  8284. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  8285. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  8286. if test "$GCC" = yes; then
  8287. case $host_os in
  8288. darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
  8289. *) lt_awk_arg="/^libraries:/" ;;
  8290. esac
  8291. case $host_os in
  8292. mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
  8293. *) lt_sed_strip_eq="s,=/,/,g" ;;
  8294. esac
  8295. lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
  8296. case $lt_search_path_spec in
  8297. *\;*)
  8298. # if the path contains ";" then we assume it to be the separator
  8299. # otherwise default to the standard path separator (i.e. ":") - it is
  8300. # assumed that no part of a normal pathname contains ";" but that should
  8301. # okay in the real world where ";" in dirpaths is itself problematic.
  8302. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
  8303. ;;
  8304. *)
  8305. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
  8306. ;;
  8307. esac
  8308. # Ok, now we have the path, separated by spaces, we can step through it
  8309. # and add multilib dir if necessary.
  8310. lt_tmp_lt_search_path_spec=
  8311. lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
  8312. for lt_sys_path in $lt_search_path_spec; do
  8313. if test -d "$lt_sys_path/$lt_multi_os_dir"; then
  8314. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
  8315. else
  8316. test -d "$lt_sys_path" && \
  8317. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
  8318. fi
  8319. done
  8320. lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
  8321. BEGIN {RS=" "; FS="/|\n";} {
  8322. lt_foo="";
  8323. lt_count=0;
  8324. for (lt_i = NF; lt_i > 0; lt_i--) {
  8325. if ($lt_i != "" && $lt_i != ".") {
  8326. if ($lt_i == "..") {
  8327. lt_count++;
  8328. } else {
  8329. if (lt_count == 0) {
  8330. lt_foo="/" $lt_i lt_foo;
  8331. } else {
  8332. lt_count--;
  8333. }
  8334. }
  8335. }
  8336. }
  8337. if (lt_foo != "") { lt_freq[lt_foo]++; }
  8338. if (lt_freq[lt_foo] == 1) { print lt_foo; }
  8339. }'`
  8340. # AWK program above erroneously prepends '/' to C:/dos/paths
  8341. # for these hosts.
  8342. case $host_os in
  8343. mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
  8344. $SED 's,/\([A-Za-z]:\),\1,g'` ;;
  8345. esac
  8346. sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
  8347. else
  8348. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  8349. fi
  8350. library_names_spec=
  8351. libname_spec='lib$name'
  8352. soname_spec=
  8353. shrext_cmds=".so"
  8354. postinstall_cmds=
  8355. postuninstall_cmds=
  8356. finish_cmds=
  8357. finish_eval=
  8358. shlibpath_var=
  8359. shlibpath_overrides_runpath=unknown
  8360. version_type=none
  8361. dynamic_linker="$host_os ld.so"
  8362. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  8363. need_lib_prefix=unknown
  8364. hardcode_into_libs=no
  8365. # when you set need_version to no, make sure it does not cause -set_version
  8366. # flags to be left without arguments
  8367. need_version=unknown
  8368. case $host_os in
  8369. aix3*)
  8370. version_type=linux
  8371. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  8372. shlibpath_var=LIBPATH
  8373. # AIX 3 has no versioning support, so we append a major version to the name.
  8374. soname_spec='${libname}${release}${shared_ext}$major'
  8375. ;;
  8376. aix[4-9]*)
  8377. version_type=linux
  8378. need_lib_prefix=no
  8379. need_version=no
  8380. hardcode_into_libs=yes
  8381. if test "$host_cpu" = ia64; then
  8382. # AIX 5 supports IA64
  8383. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  8384. shlibpath_var=LD_LIBRARY_PATH
  8385. else
  8386. # With GCC up to 2.95.x, collect2 would create an import file
  8387. # for dependence libraries. The import file would start with
  8388. # the line `#! .'. This would cause the generated library to
  8389. # depend on `.', always an invalid library. This was fixed in
  8390. # development snapshots of GCC prior to 3.0.
  8391. case $host_os in
  8392. aix4 | aix4.[01] | aix4.[01].*)
  8393. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  8394. echo ' yes '
  8395. echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  8396. :
  8397. else
  8398. can_build_shared=no
  8399. fi
  8400. ;;
  8401. esac
  8402. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  8403. # soname into executable. Probably we can add versioning support to
  8404. # collect2, so additional links can be useful in future.
  8405. if test "$aix_use_runtimelinking" = yes; then
  8406. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  8407. # instead of lib<name>.a to let people know that these are not
  8408. # typical AIX shared libraries.
  8409. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8410. else
  8411. # We preserve .a as extension for shared libraries through AIX4.2
  8412. # and later when we are not doing run time linking.
  8413. library_names_spec='${libname}${release}.a $libname.a'
  8414. soname_spec='${libname}${release}${shared_ext}$major'
  8415. fi
  8416. shlibpath_var=LIBPATH
  8417. fi
  8418. ;;
  8419. amigaos*)
  8420. case $host_cpu in
  8421. powerpc)
  8422. # Since July 2007 AmigaOS4 officially supports .so libraries.
  8423. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  8424. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8425. ;;
  8426. m68k)
  8427. library_names_spec='$libname.ixlibrary $libname.a'
  8428. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  8429. 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'
  8430. ;;
  8431. esac
  8432. ;;
  8433. beos*)
  8434. library_names_spec='${libname}${shared_ext}'
  8435. dynamic_linker="$host_os ld.so"
  8436. shlibpath_var=LIBRARY_PATH
  8437. ;;
  8438. bsdi[45]*)
  8439. version_type=linux
  8440. need_version=no
  8441. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8442. soname_spec='${libname}${release}${shared_ext}$major'
  8443. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  8444. shlibpath_var=LD_LIBRARY_PATH
  8445. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  8446. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  8447. # the default ld.so.conf also contains /usr/contrib/lib and
  8448. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  8449. # libtool to hard-code these into programs
  8450. ;;
  8451. cygwin* | mingw* | pw32* | cegcc*)
  8452. version_type=windows
  8453. shrext_cmds=".dll"
  8454. need_version=no
  8455. need_lib_prefix=no
  8456. case $GCC,$host_os in
  8457. yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
  8458. library_names_spec='$libname.dll.a'
  8459. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  8460. postinstall_cmds='base_file=`basename \${file}`~
  8461. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  8462. dldir=$destdir/`dirname \$dlpath`~
  8463. test -d \$dldir || mkdir -p \$dldir~
  8464. $install_prog $dir/$dlname \$dldir/$dlname~
  8465. chmod a+x \$dldir/$dlname~
  8466. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  8467. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  8468. fi'
  8469. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  8470. dlpath=$dir/\$dldll~
  8471. $RM \$dlpath'
  8472. shlibpath_overrides_runpath=yes
  8473. case $host_os in
  8474. cygwin*)
  8475. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  8476. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  8477. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
  8478. ;;
  8479. mingw* | cegcc*)
  8480. # MinGW DLLs use traditional 'lib' prefix
  8481. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  8482. ;;
  8483. pw32*)
  8484. # pw32 DLLs use 'pw' prefix rather than 'lib'
  8485. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  8486. ;;
  8487. esac
  8488. ;;
  8489. *)
  8490. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  8491. ;;
  8492. esac
  8493. dynamic_linker='Win32 ld.exe'
  8494. # FIXME: first we should search . and the directory the executable is in
  8495. shlibpath_var=PATH
  8496. ;;
  8497. darwin* | rhapsody*)
  8498. dynamic_linker="$host_os dyld"
  8499. version_type=darwin
  8500. need_lib_prefix=no
  8501. need_version=no
  8502. library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  8503. soname_spec='${libname}${release}${major}$shared_ext'
  8504. shlibpath_overrides_runpath=yes
  8505. shlibpath_var=DYLD_LIBRARY_PATH
  8506. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  8507. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
  8508. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  8509. ;;
  8510. dgux*)
  8511. version_type=linux
  8512. need_lib_prefix=no
  8513. need_version=no
  8514. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  8515. soname_spec='${libname}${release}${shared_ext}$major'
  8516. shlibpath_var=LD_LIBRARY_PATH
  8517. ;;
  8518. freebsd* | dragonfly*)
  8519. # DragonFly does not have aout. When/if they implement a new
  8520. # versioning mechanism, adjust this.
  8521. if test -x /usr/bin/objformat; then
  8522. objformat=`/usr/bin/objformat`
  8523. else
  8524. case $host_os in
  8525. freebsd[23].*) objformat=aout ;;
  8526. *) objformat=elf ;;
  8527. esac
  8528. fi
  8529. version_type=freebsd-$objformat
  8530. case $version_type in
  8531. freebsd-elf*)
  8532. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  8533. need_version=no
  8534. need_lib_prefix=no
  8535. ;;
  8536. freebsd-*)
  8537. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  8538. need_version=yes
  8539. ;;
  8540. esac
  8541. shlibpath_var=LD_LIBRARY_PATH
  8542. case $host_os in
  8543. freebsd2.*)
  8544. shlibpath_overrides_runpath=yes
  8545. ;;
  8546. freebsd3.[01]* | freebsdelf3.[01]*)
  8547. shlibpath_overrides_runpath=yes
  8548. hardcode_into_libs=yes
  8549. ;;
  8550. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  8551. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  8552. shlibpath_overrides_runpath=no
  8553. hardcode_into_libs=yes
  8554. ;;
  8555. *) # from 4.6 on, and DragonFly
  8556. shlibpath_overrides_runpath=yes
  8557. hardcode_into_libs=yes
  8558. ;;
  8559. esac
  8560. ;;
  8561. haiku*)
  8562. version_type=linux
  8563. need_lib_prefix=no
  8564. need_version=no
  8565. dynamic_linker="$host_os runtime_loader"
  8566. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  8567. soname_spec='${libname}${release}${shared_ext}$major'
  8568. shlibpath_var=LIBRARY_PATH
  8569. shlibpath_overrides_runpath=yes
  8570. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
  8571. hardcode_into_libs=yes
  8572. ;;
  8573. hpux9* | hpux10* | hpux11*)
  8574. # Give a soname corresponding to the major version so that dld.sl refuses to
  8575. # link against other versions.
  8576. version_type=sunos
  8577. need_lib_prefix=no
  8578. need_version=no
  8579. case $host_cpu in
  8580. ia64*)
  8581. shrext_cmds='.so'
  8582. hardcode_into_libs=yes
  8583. dynamic_linker="$host_os dld.so"
  8584. shlibpath_var=LD_LIBRARY_PATH
  8585. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  8586. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8587. soname_spec='${libname}${release}${shared_ext}$major'
  8588. if test "X$HPUX_IA64_MODE" = X32; then
  8589. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  8590. else
  8591. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  8592. fi
  8593. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  8594. ;;
  8595. hppa*64*)
  8596. shrext_cmds='.sl'
  8597. hardcode_into_libs=yes
  8598. dynamic_linker="$host_os dld.sl"
  8599. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  8600. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  8601. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8602. soname_spec='${libname}${release}${shared_ext}$major'
  8603. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  8604. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  8605. ;;
  8606. *)
  8607. shrext_cmds='.sl'
  8608. dynamic_linker="$host_os dld.sl"
  8609. shlibpath_var=SHLIB_PATH
  8610. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  8611. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8612. soname_spec='${libname}${release}${shared_ext}$major'
  8613. ;;
  8614. esac
  8615. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  8616. postinstall_cmds='chmod 555 $lib'
  8617. # or fails outright, so override atomically:
  8618. install_override_mode=555
  8619. ;;
  8620. interix[3-9]*)
  8621. version_type=linux
  8622. need_lib_prefix=no
  8623. need_version=no
  8624. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  8625. soname_spec='${libname}${release}${shared_ext}$major'
  8626. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  8627. shlibpath_var=LD_LIBRARY_PATH
  8628. shlibpath_overrides_runpath=no
  8629. hardcode_into_libs=yes
  8630. ;;
  8631. irix5* | irix6* | nonstopux*)
  8632. case $host_os in
  8633. nonstopux*) version_type=nonstopux ;;
  8634. *)
  8635. if test "$lt_cv_prog_gnu_ld" = yes; then
  8636. version_type=linux
  8637. else
  8638. version_type=irix
  8639. fi ;;
  8640. esac
  8641. need_lib_prefix=no
  8642. need_version=no
  8643. soname_spec='${libname}${release}${shared_ext}$major'
  8644. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  8645. case $host_os in
  8646. irix5* | nonstopux*)
  8647. libsuff= shlibsuff=
  8648. ;;
  8649. *)
  8650. case $LD in # libtool.m4 will add one of these switches to LD
  8651. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  8652. libsuff= shlibsuff= libmagic=32-bit;;
  8653. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  8654. libsuff=32 shlibsuff=N32 libmagic=N32;;
  8655. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  8656. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  8657. *) libsuff= shlibsuff= libmagic=never-match;;
  8658. esac
  8659. ;;
  8660. esac
  8661. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  8662. shlibpath_overrides_runpath=no
  8663. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  8664. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  8665. hardcode_into_libs=yes
  8666. ;;
  8667. # No shared lib support for Linux oldld, aout, or coff.
  8668. linux*oldld* | linux*aout* | linux*coff*)
  8669. dynamic_linker=no
  8670. ;;
  8671. # This must be Linux ELF.
  8672. # uclinux* changes (here and below) have been submitted to the libtool
  8673. # project, but have not yet been accepted: they are GCC-local changes
  8674. # for the time being. (See
  8675. # https://lists.gnu.org/archive/html/libtool-patches/2018-05/msg00000.html)
  8676. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu* | uclinuxfdpiceabi)
  8677. version_type=linux
  8678. need_lib_prefix=no
  8679. need_version=no
  8680. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8681. soname_spec='${libname}${release}${shared_ext}$major'
  8682. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  8683. shlibpath_var=LD_LIBRARY_PATH
  8684. shlibpath_overrides_runpath=no
  8685. # Some binutils ld are patched to set DT_RUNPATH
  8686. if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
  8687. $as_echo_n "(cached) " >&6
  8688. else
  8689. lt_cv_shlibpath_overrides_runpath=no
  8690. save_LDFLAGS=$LDFLAGS
  8691. save_libdir=$libdir
  8692. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
  8693. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
  8694. if test x$gcc_no_link = xyes; then
  8695. as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  8696. fi
  8697. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8698. /* end confdefs.h. */
  8699. int
  8700. main ()
  8701. {
  8702. ;
  8703. return 0;
  8704. }
  8705. _ACEOF
  8706. if ac_fn_c_try_link "$LINENO"; then :
  8707. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  8708. lt_cv_shlibpath_overrides_runpath=yes
  8709. fi
  8710. fi
  8711. rm -f core conftest.err conftest.$ac_objext \
  8712. conftest$ac_exeext conftest.$ac_ext
  8713. LDFLAGS=$save_LDFLAGS
  8714. libdir=$save_libdir
  8715. fi
  8716. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  8717. # This implies no fast_install, which is unacceptable.
  8718. # Some rework will be needed to allow for fast_install
  8719. # before this can be enabled.
  8720. hardcode_into_libs=yes
  8721. # Append ld.so.conf contents to the search path
  8722. if test -f /etc/ld.so.conf; then
  8723. 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' ' '`
  8724. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  8725. fi
  8726. # We used to test for /lib/ld.so.1 and disable shared libraries on
  8727. # powerpc, because MkLinux only supported shared libraries with the
  8728. # GNU dynamic linker. Since this was broken with cross compilers,
  8729. # most powerpc-linux boxes support dynamic linking these days and
  8730. # people can always --disable-shared, the test was removed, and we
  8731. # assume the GNU/Linux dynamic linker is in use.
  8732. dynamic_linker='GNU/Linux ld.so'
  8733. ;;
  8734. netbsd*)
  8735. version_type=sunos
  8736. need_lib_prefix=no
  8737. need_version=no
  8738. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  8739. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  8740. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  8741. dynamic_linker='NetBSD (a.out) ld.so'
  8742. else
  8743. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  8744. soname_spec='${libname}${release}${shared_ext}$major'
  8745. dynamic_linker='NetBSD ld.elf_so'
  8746. fi
  8747. shlibpath_var=LD_LIBRARY_PATH
  8748. shlibpath_overrides_runpath=yes
  8749. hardcode_into_libs=yes
  8750. ;;
  8751. newsos6)
  8752. version_type=linux
  8753. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8754. shlibpath_var=LD_LIBRARY_PATH
  8755. shlibpath_overrides_runpath=yes
  8756. ;;
  8757. *nto* | *qnx*)
  8758. version_type=qnx
  8759. need_lib_prefix=no
  8760. need_version=no
  8761. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8762. soname_spec='${libname}${release}${shared_ext}$major'
  8763. shlibpath_var=LD_LIBRARY_PATH
  8764. shlibpath_overrides_runpath=no
  8765. hardcode_into_libs=yes
  8766. dynamic_linker='ldqnx.so'
  8767. ;;
  8768. openbsd*)
  8769. version_type=sunos
  8770. sys_lib_dlsearch_path_spec="/usr/lib"
  8771. need_lib_prefix=no
  8772. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  8773. case $host_os in
  8774. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  8775. *) need_version=no ;;
  8776. esac
  8777. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  8778. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  8779. shlibpath_var=LD_LIBRARY_PATH
  8780. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  8781. case $host_os in
  8782. openbsd2.[89] | openbsd2.[89].*)
  8783. shlibpath_overrides_runpath=no
  8784. ;;
  8785. *)
  8786. shlibpath_overrides_runpath=yes
  8787. ;;
  8788. esac
  8789. else
  8790. shlibpath_overrides_runpath=yes
  8791. fi
  8792. ;;
  8793. os2*)
  8794. libname_spec='$name'
  8795. shrext_cmds=".dll"
  8796. need_lib_prefix=no
  8797. library_names_spec='$libname${shared_ext} $libname.a'
  8798. dynamic_linker='OS/2 ld.exe'
  8799. shlibpath_var=LIBPATH
  8800. ;;
  8801. osf3* | osf4* | osf5*)
  8802. version_type=osf
  8803. need_lib_prefix=no
  8804. need_version=no
  8805. soname_spec='${libname}${release}${shared_ext}$major'
  8806. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8807. shlibpath_var=LD_LIBRARY_PATH
  8808. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  8809. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  8810. ;;
  8811. rdos*)
  8812. dynamic_linker=no
  8813. ;;
  8814. solaris*)
  8815. version_type=linux
  8816. need_lib_prefix=no
  8817. need_version=no
  8818. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8819. soname_spec='${libname}${release}${shared_ext}$major'
  8820. shlibpath_var=LD_LIBRARY_PATH
  8821. shlibpath_overrides_runpath=yes
  8822. hardcode_into_libs=yes
  8823. # ldd complains unless libraries are executable
  8824. postinstall_cmds='chmod +x $lib'
  8825. ;;
  8826. sunos4*)
  8827. version_type=sunos
  8828. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  8829. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  8830. shlibpath_var=LD_LIBRARY_PATH
  8831. shlibpath_overrides_runpath=yes
  8832. if test "$with_gnu_ld" = yes; then
  8833. need_lib_prefix=no
  8834. fi
  8835. need_version=yes
  8836. ;;
  8837. sysv4 | sysv4.3*)
  8838. version_type=linux
  8839. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8840. soname_spec='${libname}${release}${shared_ext}$major'
  8841. shlibpath_var=LD_LIBRARY_PATH
  8842. case $host_vendor in
  8843. sni)
  8844. shlibpath_overrides_runpath=no
  8845. need_lib_prefix=no
  8846. runpath_var=LD_RUN_PATH
  8847. ;;
  8848. siemens)
  8849. need_lib_prefix=no
  8850. ;;
  8851. motorola)
  8852. need_lib_prefix=no
  8853. need_version=no
  8854. shlibpath_overrides_runpath=no
  8855. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  8856. ;;
  8857. esac
  8858. ;;
  8859. sysv4*MP*)
  8860. if test -d /usr/nec ;then
  8861. version_type=linux
  8862. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  8863. soname_spec='$libname${shared_ext}.$major'
  8864. shlibpath_var=LD_LIBRARY_PATH
  8865. fi
  8866. ;;
  8867. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  8868. version_type=freebsd-elf
  8869. need_lib_prefix=no
  8870. need_version=no
  8871. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  8872. soname_spec='${libname}${release}${shared_ext}$major'
  8873. shlibpath_var=LD_LIBRARY_PATH
  8874. shlibpath_overrides_runpath=yes
  8875. hardcode_into_libs=yes
  8876. if test "$with_gnu_ld" = yes; then
  8877. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  8878. else
  8879. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  8880. case $host_os in
  8881. sco3.2v5*)
  8882. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  8883. ;;
  8884. esac
  8885. fi
  8886. sys_lib_dlsearch_path_spec='/usr/lib'
  8887. ;;
  8888. tpf*)
  8889. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  8890. version_type=linux
  8891. need_lib_prefix=no
  8892. need_version=no
  8893. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8894. shlibpath_var=LD_LIBRARY_PATH
  8895. shlibpath_overrides_runpath=no
  8896. hardcode_into_libs=yes
  8897. ;;
  8898. uts4*)
  8899. version_type=linux
  8900. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8901. soname_spec='${libname}${release}${shared_ext}$major'
  8902. shlibpath_var=LD_LIBRARY_PATH
  8903. ;;
  8904. *)
  8905. dynamic_linker=no
  8906. ;;
  8907. esac
  8908. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  8909. $as_echo "$dynamic_linker" >&6; }
  8910. test "$dynamic_linker" = no && can_build_shared=no
  8911. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  8912. if test "$GCC" = yes; then
  8913. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  8914. fi
  8915. if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  8916. sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  8917. fi
  8918. if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  8919. sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  8920. fi
  8921. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  8922. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  8923. hardcode_action=
  8924. if test -n "$hardcode_libdir_flag_spec" ||
  8925. test -n "$runpath_var" ||
  8926. test "X$hardcode_automatic" = "Xyes" ; then
  8927. # We can hardcode non-existent directories.
  8928. if test "$hardcode_direct" != no &&
  8929. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  8930. # have to relink, otherwise we might link with an installed library
  8931. # when we should be linking with a yet-to-be-installed one
  8932. ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
  8933. test "$hardcode_minus_L" != no; then
  8934. # Linking always hardcodes the temporary library directory.
  8935. hardcode_action=relink
  8936. else
  8937. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  8938. hardcode_action=immediate
  8939. fi
  8940. else
  8941. # We cannot hardcode anything, or else we can only hardcode existing
  8942. # directories.
  8943. hardcode_action=unsupported
  8944. fi
  8945. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
  8946. $as_echo "$hardcode_action" >&6; }
  8947. if test "$hardcode_action" = relink ||
  8948. test "$inherit_rpath" = yes; then
  8949. # Fast installation is not supported
  8950. enable_fast_install=no
  8951. elif test "$shlibpath_overrides_runpath" = yes ||
  8952. test "$enable_shared" = no; then
  8953. # Fast installation is not necessary
  8954. enable_fast_install=needless
  8955. fi
  8956. if test "x$enable_dlopen" != xyes; then
  8957. enable_dlopen=unknown
  8958. enable_dlopen_self=unknown
  8959. enable_dlopen_self_static=unknown
  8960. else
  8961. lt_cv_dlopen=no
  8962. lt_cv_dlopen_libs=
  8963. case $host_os in
  8964. beos*)
  8965. lt_cv_dlopen="load_add_on"
  8966. lt_cv_dlopen_libs=
  8967. lt_cv_dlopen_self=yes
  8968. ;;
  8969. mingw* | pw32* | cegcc*)
  8970. lt_cv_dlopen="LoadLibrary"
  8971. lt_cv_dlopen_libs=
  8972. ;;
  8973. cygwin*)
  8974. lt_cv_dlopen="dlopen"
  8975. lt_cv_dlopen_libs=
  8976. ;;
  8977. darwin*)
  8978. # if libdl is installed we need to link against it
  8979. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  8980. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  8981. if ${ac_cv_lib_dl_dlopen+:} false; then :
  8982. $as_echo_n "(cached) " >&6
  8983. else
  8984. ac_check_lib_save_LIBS=$LIBS
  8985. LIBS="-ldl $LIBS"
  8986. if test x$gcc_no_link = xyes; then
  8987. as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  8988. fi
  8989. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8990. /* end confdefs.h. */
  8991. /* Override any GCC internal prototype to avoid an error.
  8992. Use char because int might match the return type of a GCC
  8993. builtin and then its argument prototype would still apply. */
  8994. #ifdef __cplusplus
  8995. extern "C"
  8996. #endif
  8997. char dlopen ();
  8998. int
  8999. main ()
  9000. {
  9001. return dlopen ();
  9002. ;
  9003. return 0;
  9004. }
  9005. _ACEOF
  9006. if ac_fn_c_try_link "$LINENO"; then :
  9007. ac_cv_lib_dl_dlopen=yes
  9008. else
  9009. ac_cv_lib_dl_dlopen=no
  9010. fi
  9011. rm -f core conftest.err conftest.$ac_objext \
  9012. conftest$ac_exeext conftest.$ac_ext
  9013. LIBS=$ac_check_lib_save_LIBS
  9014. fi
  9015. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  9016. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  9017. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  9018. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  9019. else
  9020. lt_cv_dlopen="dyld"
  9021. lt_cv_dlopen_libs=
  9022. lt_cv_dlopen_self=yes
  9023. fi
  9024. ;;
  9025. *)
  9026. ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
  9027. if test "x$ac_cv_func_shl_load" = xyes; then :
  9028. lt_cv_dlopen="shl_load"
  9029. else
  9030. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
  9031. $as_echo_n "checking for shl_load in -ldld... " >&6; }
  9032. if ${ac_cv_lib_dld_shl_load+:} false; then :
  9033. $as_echo_n "(cached) " >&6
  9034. else
  9035. ac_check_lib_save_LIBS=$LIBS
  9036. LIBS="-ldld $LIBS"
  9037. if test x$gcc_no_link = xyes; then
  9038. as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  9039. fi
  9040. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9041. /* end confdefs.h. */
  9042. /* Override any GCC internal prototype to avoid an error.
  9043. Use char because int might match the return type of a GCC
  9044. builtin and then its argument prototype would still apply. */
  9045. #ifdef __cplusplus
  9046. extern "C"
  9047. #endif
  9048. char shl_load ();
  9049. int
  9050. main ()
  9051. {
  9052. return shl_load ();
  9053. ;
  9054. return 0;
  9055. }
  9056. _ACEOF
  9057. if ac_fn_c_try_link "$LINENO"; then :
  9058. ac_cv_lib_dld_shl_load=yes
  9059. else
  9060. ac_cv_lib_dld_shl_load=no
  9061. fi
  9062. rm -f core conftest.err conftest.$ac_objext \
  9063. conftest$ac_exeext conftest.$ac_ext
  9064. LIBS=$ac_check_lib_save_LIBS
  9065. fi
  9066. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
  9067. $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
  9068. if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
  9069. lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
  9070. else
  9071. ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
  9072. if test "x$ac_cv_func_dlopen" = xyes; then :
  9073. lt_cv_dlopen="dlopen"
  9074. else
  9075. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  9076. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  9077. if ${ac_cv_lib_dl_dlopen+:} false; then :
  9078. $as_echo_n "(cached) " >&6
  9079. else
  9080. ac_check_lib_save_LIBS=$LIBS
  9081. LIBS="-ldl $LIBS"
  9082. if test x$gcc_no_link = xyes; then
  9083. as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  9084. fi
  9085. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9086. /* end confdefs.h. */
  9087. /* Override any GCC internal prototype to avoid an error.
  9088. Use char because int might match the return type of a GCC
  9089. builtin and then its argument prototype would still apply. */
  9090. #ifdef __cplusplus
  9091. extern "C"
  9092. #endif
  9093. char dlopen ();
  9094. int
  9095. main ()
  9096. {
  9097. return dlopen ();
  9098. ;
  9099. return 0;
  9100. }
  9101. _ACEOF
  9102. if ac_fn_c_try_link "$LINENO"; then :
  9103. ac_cv_lib_dl_dlopen=yes
  9104. else
  9105. ac_cv_lib_dl_dlopen=no
  9106. fi
  9107. rm -f core conftest.err conftest.$ac_objext \
  9108. conftest$ac_exeext conftest.$ac_ext
  9109. LIBS=$ac_check_lib_save_LIBS
  9110. fi
  9111. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  9112. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  9113. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  9114. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  9115. else
  9116. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
  9117. $as_echo_n "checking for dlopen in -lsvld... " >&6; }
  9118. if ${ac_cv_lib_svld_dlopen+:} false; then :
  9119. $as_echo_n "(cached) " >&6
  9120. else
  9121. ac_check_lib_save_LIBS=$LIBS
  9122. LIBS="-lsvld $LIBS"
  9123. if test x$gcc_no_link = xyes; then
  9124. as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  9125. fi
  9126. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9127. /* end confdefs.h. */
  9128. /* Override any GCC internal prototype to avoid an error.
  9129. Use char because int might match the return type of a GCC
  9130. builtin and then its argument prototype would still apply. */
  9131. #ifdef __cplusplus
  9132. extern "C"
  9133. #endif
  9134. char dlopen ();
  9135. int
  9136. main ()
  9137. {
  9138. return dlopen ();
  9139. ;
  9140. return 0;
  9141. }
  9142. _ACEOF
  9143. if ac_fn_c_try_link "$LINENO"; then :
  9144. ac_cv_lib_svld_dlopen=yes
  9145. else
  9146. ac_cv_lib_svld_dlopen=no
  9147. fi
  9148. rm -f core conftest.err conftest.$ac_objext \
  9149. conftest$ac_exeext conftest.$ac_ext
  9150. LIBS=$ac_check_lib_save_LIBS
  9151. fi
  9152. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
  9153. $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
  9154. if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
  9155. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
  9156. else
  9157. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
  9158. $as_echo_n "checking for dld_link in -ldld... " >&6; }
  9159. if ${ac_cv_lib_dld_dld_link+:} false; then :
  9160. $as_echo_n "(cached) " >&6
  9161. else
  9162. ac_check_lib_save_LIBS=$LIBS
  9163. LIBS="-ldld $LIBS"
  9164. if test x$gcc_no_link = xyes; then
  9165. as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  9166. fi
  9167. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9168. /* end confdefs.h. */
  9169. /* Override any GCC internal prototype to avoid an error.
  9170. Use char because int might match the return type of a GCC
  9171. builtin and then its argument prototype would still apply. */
  9172. #ifdef __cplusplus
  9173. extern "C"
  9174. #endif
  9175. char dld_link ();
  9176. int
  9177. main ()
  9178. {
  9179. return dld_link ();
  9180. ;
  9181. return 0;
  9182. }
  9183. _ACEOF
  9184. if ac_fn_c_try_link "$LINENO"; then :
  9185. ac_cv_lib_dld_dld_link=yes
  9186. else
  9187. ac_cv_lib_dld_dld_link=no
  9188. fi
  9189. rm -f core conftest.err conftest.$ac_objext \
  9190. conftest$ac_exeext conftest.$ac_ext
  9191. LIBS=$ac_check_lib_save_LIBS
  9192. fi
  9193. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
  9194. $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
  9195. if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
  9196. lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
  9197. fi
  9198. fi
  9199. fi
  9200. fi
  9201. fi
  9202. fi
  9203. ;;
  9204. esac
  9205. if test "x$lt_cv_dlopen" != xno; then
  9206. enable_dlopen=yes
  9207. else
  9208. enable_dlopen=no
  9209. fi
  9210. case $lt_cv_dlopen in
  9211. dlopen)
  9212. save_CPPFLAGS="$CPPFLAGS"
  9213. test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  9214. save_LDFLAGS="$LDFLAGS"
  9215. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  9216. save_LIBS="$LIBS"
  9217. LIBS="$lt_cv_dlopen_libs $LIBS"
  9218. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
  9219. $as_echo_n "checking whether a program can dlopen itself... " >&6; }
  9220. if ${lt_cv_dlopen_self+:} false; then :
  9221. $as_echo_n "(cached) " >&6
  9222. else
  9223. if test "$cross_compiling" = yes; then :
  9224. lt_cv_dlopen_self=cross
  9225. else
  9226. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  9227. lt_status=$lt_dlunknown
  9228. cat > conftest.$ac_ext <<_LT_EOF
  9229. #line 10784 "configure"
  9230. #include "confdefs.h"
  9231. #if HAVE_DLFCN_H
  9232. #include <dlfcn.h>
  9233. #endif
  9234. #include <stdio.h>
  9235. #ifdef RTLD_GLOBAL
  9236. # define LT_DLGLOBAL RTLD_GLOBAL
  9237. #else
  9238. # ifdef DL_GLOBAL
  9239. # define LT_DLGLOBAL DL_GLOBAL
  9240. # else
  9241. # define LT_DLGLOBAL 0
  9242. # endif
  9243. #endif
  9244. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  9245. find out it does not work in some platform. */
  9246. #ifndef LT_DLLAZY_OR_NOW
  9247. # ifdef RTLD_LAZY
  9248. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  9249. # else
  9250. # ifdef DL_LAZY
  9251. # define LT_DLLAZY_OR_NOW DL_LAZY
  9252. # else
  9253. # ifdef RTLD_NOW
  9254. # define LT_DLLAZY_OR_NOW RTLD_NOW
  9255. # else
  9256. # ifdef DL_NOW
  9257. # define LT_DLLAZY_OR_NOW DL_NOW
  9258. # else
  9259. # define LT_DLLAZY_OR_NOW 0
  9260. # endif
  9261. # endif
  9262. # endif
  9263. # endif
  9264. #endif
  9265. /* When -fvisbility=hidden is used, assume the code has been annotated
  9266. correspondingly for the symbols needed. */
  9267. #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  9268. void fnord () __attribute__((visibility("default")));
  9269. #endif
  9270. void fnord () { int i=42; }
  9271. int main ()
  9272. {
  9273. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  9274. int status = $lt_dlunknown;
  9275. if (self)
  9276. {
  9277. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  9278. else
  9279. {
  9280. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  9281. else puts (dlerror ());
  9282. }
  9283. /* dlclose (self); */
  9284. }
  9285. else
  9286. puts (dlerror ());
  9287. return status;
  9288. }
  9289. _LT_EOF
  9290. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  9291. (eval $ac_link) 2>&5
  9292. ac_status=$?
  9293. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9294. test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  9295. (./conftest; exit; ) >&5 2>/dev/null
  9296. lt_status=$?
  9297. case x$lt_status in
  9298. x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  9299. x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  9300. x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
  9301. esac
  9302. else :
  9303. # compilation failed
  9304. lt_cv_dlopen_self=no
  9305. fi
  9306. fi
  9307. rm -fr conftest*
  9308. fi
  9309. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
  9310. $as_echo "$lt_cv_dlopen_self" >&6; }
  9311. if test "x$lt_cv_dlopen_self" = xyes; then
  9312. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  9313. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
  9314. $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
  9315. if ${lt_cv_dlopen_self_static+:} false; then :
  9316. $as_echo_n "(cached) " >&6
  9317. else
  9318. if test "$cross_compiling" = yes; then :
  9319. lt_cv_dlopen_self_static=cross
  9320. else
  9321. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  9322. lt_status=$lt_dlunknown
  9323. cat > conftest.$ac_ext <<_LT_EOF
  9324. #line 10890 "configure"
  9325. #include "confdefs.h"
  9326. #if HAVE_DLFCN_H
  9327. #include <dlfcn.h>
  9328. #endif
  9329. #include <stdio.h>
  9330. #ifdef RTLD_GLOBAL
  9331. # define LT_DLGLOBAL RTLD_GLOBAL
  9332. #else
  9333. # ifdef DL_GLOBAL
  9334. # define LT_DLGLOBAL DL_GLOBAL
  9335. # else
  9336. # define LT_DLGLOBAL 0
  9337. # endif
  9338. #endif
  9339. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  9340. find out it does not work in some platform. */
  9341. #ifndef LT_DLLAZY_OR_NOW
  9342. # ifdef RTLD_LAZY
  9343. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  9344. # else
  9345. # ifdef DL_LAZY
  9346. # define LT_DLLAZY_OR_NOW DL_LAZY
  9347. # else
  9348. # ifdef RTLD_NOW
  9349. # define LT_DLLAZY_OR_NOW RTLD_NOW
  9350. # else
  9351. # ifdef DL_NOW
  9352. # define LT_DLLAZY_OR_NOW DL_NOW
  9353. # else
  9354. # define LT_DLLAZY_OR_NOW 0
  9355. # endif
  9356. # endif
  9357. # endif
  9358. # endif
  9359. #endif
  9360. /* When -fvisbility=hidden is used, assume the code has been annotated
  9361. correspondingly for the symbols needed. */
  9362. #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  9363. void fnord () __attribute__((visibility("default")));
  9364. #endif
  9365. void fnord () { int i=42; }
  9366. int main ()
  9367. {
  9368. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  9369. int status = $lt_dlunknown;
  9370. if (self)
  9371. {
  9372. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  9373. else
  9374. {
  9375. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  9376. else puts (dlerror ());
  9377. }
  9378. /* dlclose (self); */
  9379. }
  9380. else
  9381. puts (dlerror ());
  9382. return status;
  9383. }
  9384. _LT_EOF
  9385. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  9386. (eval $ac_link) 2>&5
  9387. ac_status=$?
  9388. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9389. test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  9390. (./conftest; exit; ) >&5 2>/dev/null
  9391. lt_status=$?
  9392. case x$lt_status in
  9393. x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  9394. x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  9395. x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
  9396. esac
  9397. else :
  9398. # compilation failed
  9399. lt_cv_dlopen_self_static=no
  9400. fi
  9401. fi
  9402. rm -fr conftest*
  9403. fi
  9404. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
  9405. $as_echo "$lt_cv_dlopen_self_static" >&6; }
  9406. fi
  9407. CPPFLAGS="$save_CPPFLAGS"
  9408. LDFLAGS="$save_LDFLAGS"
  9409. LIBS="$save_LIBS"
  9410. ;;
  9411. esac
  9412. case $lt_cv_dlopen_self in
  9413. yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  9414. *) enable_dlopen_self=unknown ;;
  9415. esac
  9416. case $lt_cv_dlopen_self_static in
  9417. yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  9418. *) enable_dlopen_self_static=unknown ;;
  9419. esac
  9420. fi
  9421. striplib=
  9422. old_striplib=
  9423. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
  9424. $as_echo_n "checking whether stripping libraries is possible... " >&6; }
  9425. if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
  9426. test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  9427. test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  9428. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  9429. $as_echo "yes" >&6; }
  9430. else
  9431. # FIXME - insert some real tests, host_os isn't really good enough
  9432. case $host_os in
  9433. darwin*)
  9434. if test -n "$STRIP" ; then
  9435. striplib="$STRIP -x"
  9436. old_striplib="$STRIP -S"
  9437. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  9438. $as_echo "yes" >&6; }
  9439. else
  9440. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9441. $as_echo "no" >&6; }
  9442. fi
  9443. ;;
  9444. *)
  9445. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9446. $as_echo "no" >&6; }
  9447. ;;
  9448. esac
  9449. fi
  9450. # Report which library types will actually be built
  9451. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
  9452. $as_echo_n "checking if libtool supports shared libraries... " >&6; }
  9453. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
  9454. $as_echo "$can_build_shared" >&6; }
  9455. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
  9456. $as_echo_n "checking whether to build shared libraries... " >&6; }
  9457. test "$can_build_shared" = "no" && enable_shared=no
  9458. # On AIX, shared libraries and static libraries use the same namespace, and
  9459. # are all built from PIC.
  9460. case $host_os in
  9461. aix3*)
  9462. test "$enable_shared" = yes && enable_static=no
  9463. if test -n "$RANLIB"; then
  9464. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  9465. postinstall_cmds='$RANLIB $lib'
  9466. fi
  9467. ;;
  9468. aix[4-9]*)
  9469. if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  9470. test "$enable_shared" = yes && enable_static=no
  9471. fi
  9472. ;;
  9473. esac
  9474. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
  9475. $as_echo "$enable_shared" >&6; }
  9476. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
  9477. $as_echo_n "checking whether to build static libraries... " >&6; }
  9478. # Make sure either enable_shared or enable_static is yes.
  9479. test "$enable_shared" = yes || enable_static=yes
  9480. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
  9481. $as_echo "$enable_static" >&6; }
  9482. fi
  9483. ac_ext=c
  9484. ac_cpp='$CPP $CPPFLAGS'
  9485. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  9486. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  9487. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  9488. CC="$lt_save_CC"
  9489. ac_config_commands="$ac_config_commands libtool"
  9490. # Only expand once:
  9491. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  9492. $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  9493. set x ${MAKE-make}
  9494. ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  9495. if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
  9496. $as_echo_n "(cached) " >&6
  9497. else
  9498. cat >conftest.make <<\_ACEOF
  9499. SHELL = /bin/sh
  9500. all:
  9501. @echo '@@@%%%=$(MAKE)=@@@%%%'
  9502. _ACEOF
  9503. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  9504. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  9505. *@@@%%%=?*=@@@%%%*)
  9506. eval ac_cv_prog_make_${ac_make}_set=yes;;
  9507. *)
  9508. eval ac_cv_prog_make_${ac_make}_set=no;;
  9509. esac
  9510. rm -f conftest.make
  9511. fi
  9512. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  9513. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  9514. $as_echo "yes" >&6; }
  9515. SET_MAKE=
  9516. else
  9517. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9518. $as_echo "no" >&6; }
  9519. SET_MAKE="MAKE=${MAKE-make}"
  9520. fi
  9521. # -------
  9522. # Headers
  9523. # -------
  9524. # Sanity check for the cross-compilation case:
  9525. ac_fn_c_check_header_mongrel "$LINENO" "stdio.h" "ac_cv_header_stdio_h" "$ac_includes_default"
  9526. if test "x$ac_cv_header_stdio_h" = xyes; then :
  9527. :
  9528. else
  9529. as_fn_error $? "Can't find stdio.h.
  9530. You must have a usable C system for the target already installed, at least
  9531. including headers and, preferably, the library, before you can configure
  9532. the Objective C runtime system. If necessary, install gcc now with
  9533. \`LANGUAGES=c', then the target library, then build with \`LANGUAGES=objc'." "$LINENO" 5
  9534. fi
  9535. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  9536. $as_echo_n "checking for ANSI C header files... " >&6; }
  9537. if ${ac_cv_header_stdc+:} false; then :
  9538. $as_echo_n "(cached) " >&6
  9539. else
  9540. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9541. /* end confdefs.h. */
  9542. #include <stdlib.h>
  9543. #include <stdarg.h>
  9544. #include <string.h>
  9545. #include <float.h>
  9546. int
  9547. main ()
  9548. {
  9549. ;
  9550. return 0;
  9551. }
  9552. _ACEOF
  9553. if ac_fn_c_try_compile "$LINENO"; then :
  9554. ac_cv_header_stdc=yes
  9555. else
  9556. ac_cv_header_stdc=no
  9557. fi
  9558. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9559. if test $ac_cv_header_stdc = yes; then
  9560. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  9561. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9562. /* end confdefs.h. */
  9563. #include <string.h>
  9564. _ACEOF
  9565. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  9566. $EGREP "memchr" >/dev/null 2>&1; then :
  9567. else
  9568. ac_cv_header_stdc=no
  9569. fi
  9570. rm -f conftest*
  9571. fi
  9572. if test $ac_cv_header_stdc = yes; then
  9573. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  9574. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9575. /* end confdefs.h. */
  9576. #include <stdlib.h>
  9577. _ACEOF
  9578. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  9579. $EGREP "free" >/dev/null 2>&1; then :
  9580. else
  9581. ac_cv_header_stdc=no
  9582. fi
  9583. rm -f conftest*
  9584. fi
  9585. if test $ac_cv_header_stdc = yes; then
  9586. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  9587. if test "$cross_compiling" = yes; then :
  9588. :
  9589. else
  9590. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9591. /* end confdefs.h. */
  9592. #include <ctype.h>
  9593. #include <stdlib.h>
  9594. #if ((' ' & 0x0FF) == 0x020)
  9595. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  9596. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  9597. #else
  9598. # define ISLOWER(c) \
  9599. (('a' <= (c) && (c) <= 'i') \
  9600. || ('j' <= (c) && (c) <= 'r') \
  9601. || ('s' <= (c) && (c) <= 'z'))
  9602. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  9603. #endif
  9604. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  9605. int
  9606. main ()
  9607. {
  9608. int i;
  9609. for (i = 0; i < 256; i++)
  9610. if (XOR (islower (i), ISLOWER (i))
  9611. || toupper (i) != TOUPPER (i))
  9612. return 2;
  9613. return 0;
  9614. }
  9615. _ACEOF
  9616. if ac_fn_c_try_run "$LINENO"; then :
  9617. else
  9618. ac_cv_header_stdc=no
  9619. fi
  9620. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  9621. conftest.$ac_objext conftest.beam conftest.$ac_ext
  9622. fi
  9623. fi
  9624. fi
  9625. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  9626. $as_echo "$ac_cv_header_stdc" >&6; }
  9627. if test $ac_cv_header_stdc = yes; then
  9628. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  9629. fi
  9630. for ac_header in sched.h
  9631. do :
  9632. ac_fn_c_check_header_mongrel "$LINENO" "sched.h" "ac_cv_header_sched_h" "$ac_includes_default"
  9633. if test "x$ac_cv_header_sched_h" = xyes; then :
  9634. cat >>confdefs.h <<_ACEOF
  9635. #define HAVE_SCHED_H 1
  9636. _ACEOF
  9637. fi
  9638. done
  9639. # -----------
  9640. # Miscellanea
  9641. # -----------
  9642. # Check if we have thread-local storage
  9643. # Check whether --enable-tls was given.
  9644. if test "${enable_tls+set}" = set; then :
  9645. enableval=$enable_tls;
  9646. case "$enableval" in
  9647. yes|no) ;;
  9648. *) as_fn_error $? "Argument to enable/disable tls must be yes or no" "$LINENO" 5 ;;
  9649. esac
  9650. else
  9651. enable_tls=yes
  9652. fi
  9653. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports thread-local storage" >&5
  9654. $as_echo_n "checking whether the target supports thread-local storage... " >&6; }
  9655. if ${gcc_cv_have_tls+:} false; then :
  9656. $as_echo_n "(cached) " >&6
  9657. else
  9658. if test "$cross_compiling" = yes; then :
  9659. if test x$gcc_no_link = xyes; then
  9660. as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  9661. fi
  9662. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9663. /* end confdefs.h. */
  9664. __thread int a; int b; int main() { return a = b; }
  9665. _ACEOF
  9666. if ac_fn_c_try_link "$LINENO"; then :
  9667. chktls_save_LDFLAGS="$LDFLAGS"
  9668. case $host in
  9669. *-*-linux* | -*-uclinuxfdpic*)
  9670. LDFLAGS="-shared -Wl,--no-undefined $LDFLAGS"
  9671. ;;
  9672. esac
  9673. chktls_save_CFLAGS="$CFLAGS"
  9674. CFLAGS="-fPIC $CFLAGS"
  9675. if test x$gcc_no_link = xyes; then
  9676. as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  9677. fi
  9678. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9679. /* end confdefs.h. */
  9680. int f() { return 0; }
  9681. _ACEOF
  9682. if ac_fn_c_try_link "$LINENO"; then :
  9683. if test x$gcc_no_link = xyes; then
  9684. as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  9685. fi
  9686. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9687. /* end confdefs.h. */
  9688. __thread int a; int b; int f() { return a = b; }
  9689. _ACEOF
  9690. if ac_fn_c_try_link "$LINENO"; then :
  9691. gcc_cv_have_tls=yes
  9692. else
  9693. gcc_cv_have_tls=no
  9694. fi
  9695. rm -f core conftest.err conftest.$ac_objext \
  9696. conftest$ac_exeext conftest.$ac_ext
  9697. else
  9698. gcc_cv_have_tls=yes
  9699. fi
  9700. rm -f core conftest.err conftest.$ac_objext \
  9701. conftest$ac_exeext conftest.$ac_ext
  9702. CFLAGS="$chktls_save_CFLAGS"
  9703. LDFLAGS="$chktls_save_LDFLAGS"
  9704. else
  9705. gcc_cv_have_tls=no
  9706. fi
  9707. rm -f core conftest.err conftest.$ac_objext \
  9708. conftest$ac_exeext conftest.$ac_ext
  9709. else
  9710. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9711. /* end confdefs.h. */
  9712. __thread int a; int b; int main() { return a = b; }
  9713. _ACEOF
  9714. if ac_fn_c_try_run "$LINENO"; then :
  9715. chktls_save_LDFLAGS="$LDFLAGS"
  9716. LDFLAGS="-static $LDFLAGS"
  9717. if test x$gcc_no_link = xyes; then
  9718. as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  9719. fi
  9720. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9721. /* end confdefs.h. */
  9722. int main() { return 0; }
  9723. _ACEOF
  9724. if ac_fn_c_try_link "$LINENO"; then :
  9725. if test "$cross_compiling" = yes; then :
  9726. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  9727. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  9728. as_fn_error $? "cannot run test program while cross compiling
  9729. See \`config.log' for more details" "$LINENO" 5; }
  9730. else
  9731. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9732. /* end confdefs.h. */
  9733. __thread int a; int b; int main() { return a = b; }
  9734. _ACEOF
  9735. if ac_fn_c_try_run "$LINENO"; then :
  9736. gcc_cv_have_tls=yes
  9737. else
  9738. gcc_cv_have_tls=no
  9739. fi
  9740. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  9741. conftest.$ac_objext conftest.beam conftest.$ac_ext
  9742. fi
  9743. else
  9744. gcc_cv_have_tls=yes
  9745. fi
  9746. rm -f core conftest.err conftest.$ac_objext \
  9747. conftest$ac_exeext conftest.$ac_ext
  9748. LDFLAGS="$chktls_save_LDFLAGS"
  9749. if test $gcc_cv_have_tls = yes; then
  9750. chktls_save_CFLAGS="$CFLAGS"
  9751. thread_CFLAGS=failed
  9752. for flag in '' '-pthread' '-lpthread'; do
  9753. CFLAGS="$flag $chktls_save_CFLAGS"
  9754. if test x$gcc_no_link = xyes; then
  9755. as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  9756. fi
  9757. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9758. /* end confdefs.h. */
  9759. #include <pthread.h>
  9760. void *g(void *d) { return NULL; }
  9761. int
  9762. main ()
  9763. {
  9764. pthread_t t; pthread_create(&t,NULL,g,NULL);
  9765. ;
  9766. return 0;
  9767. }
  9768. _ACEOF
  9769. if ac_fn_c_try_link "$LINENO"; then :
  9770. thread_CFLAGS="$flag"
  9771. fi
  9772. rm -f core conftest.err conftest.$ac_objext \
  9773. conftest$ac_exeext conftest.$ac_ext
  9774. if test "X$thread_CFLAGS" != Xfailed; then
  9775. break
  9776. fi
  9777. done
  9778. CFLAGS="$chktls_save_CFLAGS"
  9779. if test "X$thread_CFLAGS" != Xfailed; then
  9780. CFLAGS="$thread_CFLAGS $chktls_save_CFLAGS"
  9781. if test "$cross_compiling" = yes; then :
  9782. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  9783. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  9784. as_fn_error $? "cannot run test program while cross compiling
  9785. See \`config.log' for more details" "$LINENO" 5; }
  9786. else
  9787. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9788. /* end confdefs.h. */
  9789. #include <pthread.h>
  9790. __thread int a;
  9791. static int *volatile a_in_other_thread;
  9792. static void *
  9793. thread_func (void *arg)
  9794. {
  9795. a_in_other_thread = &a;
  9796. return (void *)0;
  9797. }
  9798. int
  9799. main ()
  9800. {
  9801. pthread_t thread;
  9802. void *thread_retval;
  9803. int *volatile a_in_main_thread;
  9804. a_in_main_thread = &a;
  9805. if (pthread_create (&thread, (pthread_attr_t *)0,
  9806. thread_func, (void *)0))
  9807. return 0;
  9808. if (pthread_join (thread, &thread_retval))
  9809. return 0;
  9810. return (a_in_other_thread == a_in_main_thread);
  9811. ;
  9812. return 0;
  9813. }
  9814. _ACEOF
  9815. if ac_fn_c_try_run "$LINENO"; then :
  9816. gcc_cv_have_tls=yes
  9817. else
  9818. gcc_cv_have_tls=no
  9819. fi
  9820. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  9821. conftest.$ac_objext conftest.beam conftest.$ac_ext
  9822. fi
  9823. CFLAGS="$chktls_save_CFLAGS"
  9824. fi
  9825. fi
  9826. else
  9827. gcc_cv_have_tls=no
  9828. fi
  9829. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  9830. conftest.$ac_objext conftest.beam conftest.$ac_ext
  9831. fi
  9832. fi
  9833. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_have_tls" >&5
  9834. $as_echo "$gcc_cv_have_tls" >&6; }
  9835. if test "$enable_tls $gcc_cv_have_tls" = "yes yes"; then
  9836. $as_echo "#define HAVE_TLS 1" >>confdefs.h
  9837. fi
  9838. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the type of bitfields matters" >&5
  9839. $as_echo_n "checking if the type of bitfields matters... " >&6; }
  9840. if ${gt_cv_bitfield_type_matters+:} false; then :
  9841. $as_echo_n "(cached) " >&6
  9842. else
  9843. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9844. /* end confdefs.h. */
  9845. struct foo1 { char x; char y:1; char z; };
  9846. struct foo2 { char x; long long int y:1; char z; };
  9847. int foo1test[ sizeof (struct foo1) < sizeof (struct foo2) ? 1 : -1 ];
  9848. int
  9849. main ()
  9850. {
  9851. ;
  9852. return 0;
  9853. }
  9854. _ACEOF
  9855. if ac_fn_c_try_compile "$LINENO"; then :
  9856. gt_cv_bitfield_type_matters=yes
  9857. else
  9858. gt_cv_bitfield_type_matters=no
  9859. fi
  9860. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9861. fi
  9862. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_bitfield_type_matters" >&5
  9863. $as_echo "$gt_cv_bitfield_type_matters" >&6; }
  9864. if test $gt_cv_bitfield_type_matters = yes; then
  9865. $as_echo "#define HAVE_BITFIELD_TYPE_MATTERS 1" >>confdefs.h
  9866. fi
  9867. # -----------
  9868. # boehm-gc
  9869. # -----------
  9870. # Check whether --enable-objc-gc was given.
  9871. if test "${enable_objc_gc+set}" = set; then :
  9872. enableval=$enable_objc_gc;
  9873. else
  9874. enable_objc_gc=no
  9875. fi
  9876. # Check whether --with-target-bdw-gc was given.
  9877. if test "${with_target_bdw_gc+set}" = set; then :
  9878. withval=$with_target_bdw_gc;
  9879. fi
  9880. # Check whether --with-target-bdw-gc-include was given.
  9881. if test "${with_target_bdw_gc_include+set}" = set; then :
  9882. withval=$with_target_bdw_gc_include;
  9883. fi
  9884. # Check whether --with-target-bdw-gc-lib was given.
  9885. if test "${with_target_bdw_gc_lib+set}" = set; then :
  9886. withval=$with_target_bdw_gc_lib;
  9887. fi
  9888. case "$enable_objc_gc" in
  9889. no)
  9890. use_bdw_gc=no
  9891. ;;
  9892. *)
  9893. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bdw garbage collector" >&5
  9894. $as_echo_n "checking for bdw garbage collector... " >&6; }
  9895. if test "x$with_target_bdw_gc$with_target_bdw_gc_include$with_target_bdw_gc_lib" = x; then
  9896. BDW_GC_CFLAGS=
  9897. BDW_GC_LIBS="-lgc"
  9898. else
  9899. if test "x$with_target_bdw_gc_include" = x && test "x$with_target_bdw_gc_lib" != x; then
  9900. as_fn_error $? "found --with-target-bdw-gc-lib but --with-target-bdw-gc-include missing" "$LINENO" 5
  9901. elif test "x$with_target_bdw_gc_include" != x && test "x$with_target_bdw_gc_lib" = x; then
  9902. as_fn_error $? "found --with-target-bdw-gc-include but --with-target-bdw-gc-lib missing" "$LINENO" 5
  9903. else
  9904. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using paths configured with --with-target-bdw-gc options" >&5
  9905. $as_echo "using paths configured with --with-target-bdw-gc options" >&6; }
  9906. fi
  9907. mldir=`${CC-gcc} --print-multi-directory 2>/dev/null`
  9908. bdw_val=
  9909. if test "x$with_target_bdw_gc" != x; then
  9910. for i in `echo $with_target_bdw_gc | tr ',' ' '`; do
  9911. case "$i" in
  9912. *=*) sd=${i%%=*}; d=${i#*=} ;;
  9913. *) sd=.; d=$i ;;
  9914. esac
  9915. if test "$mldir" = "$sd"; then
  9916. bdw_val=$d
  9917. fi
  9918. done
  9919. if test "x$bdw_val" = x; then
  9920. as_fn_error $? "no multilib path ($mldir) found in --with-target-bdw-gc" "$LINENO" 5
  9921. fi
  9922. bdw_inc_dir="$bdw_val/include"
  9923. bdw_lib_dir="$bdw_val/lib"
  9924. fi
  9925. bdw_val=
  9926. if test "x$with_target_bdw_gc_include" != x; then
  9927. for i in `echo $with_target_bdw_gc_include | tr ',' ' '`; do
  9928. case "$i" in
  9929. *=*) sd=${i%%=*}; d=${i#*=} ;;
  9930. *) sd=.; d=$i; fallback=$i ;;
  9931. esac
  9932. if test "$mldir" = "$sd"; then
  9933. bdw_val=$d
  9934. fi
  9935. done
  9936. if test "x$bdw_val" = x && test "x$bdw_inc_dir" = x && test "x$fallback" != x; then
  9937. bdw_inc_dir="$fallback"
  9938. elif test "x$bdw_val" = x; then
  9939. as_fn_error $? "no multilib path ($mldir) found in --with-target-bdw-gc-include" "$LINENO" 5
  9940. else
  9941. bdw_inc_dir="$bdw_val"
  9942. fi
  9943. fi
  9944. bdw_val=
  9945. if test "x$with_target_bdw_gc_lib" != x; then
  9946. for i in `echo $with_target_bdw_gc_lib | tr ',' ' '`; do
  9947. case "$i" in
  9948. *=*) sd=${i%%=*}; d=${i#*=} ;;
  9949. *) sd=.; d=$i ;;
  9950. esac
  9951. if test "$mldir" = "$sd"; then
  9952. bdw_val=$d
  9953. fi
  9954. done
  9955. if test "x$bdw_val" = x; then
  9956. as_fn_error $? "no multilib path ($mldir) found in --with-target-bdw-gc-lib" "$LINENO" 5
  9957. fi
  9958. bdw_lib_dir="$bdw_val"
  9959. fi
  9960. if test "x$bdw_inc_dir" = x; then
  9961. as_fn_error $? "no multilib path ($mldir) found in --with-target-bdw-gc-include" "$LINENO" 5
  9962. fi
  9963. if test "x$bdw_lib_dir" = x; then
  9964. as_fn_error $? "no multilib path ($mldir) found in --with-target-bdw-gc-lib" "$LINENO" 5
  9965. fi
  9966. BDW_GC_CFLAGS="-I$bdw_inc_dir"
  9967. if test -f $bdw_lib_dir/libgc.la; then
  9968. BDW_GC_LIBS="$bdw_lib_dir/libgc.la"
  9969. else
  9970. BDW_GC_LIBS="-L$bdw_lib_dir -lgc"
  9971. fi
  9972. { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
  9973. $as_echo "found" >&6; }
  9974. fi
  9975. case "$BDW_GC_LIBS" in
  9976. *libgc.la)
  9977. use_bdw_gc=yes
  9978. ;;
  9979. *)
  9980. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for system boehm-gc" >&5
  9981. $as_echo_n "checking for system boehm-gc... " >&6; }
  9982. save_CFLAGS=$CFLAGS
  9983. save_LIBS=$LIBS
  9984. CFLAGS="$CFLAGS $BDW_GC_CFLAGS"
  9985. LIBS="$LIBS $BDW_GC_LIBS"
  9986. if test x$gcc_no_link = xyes; then
  9987. as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  9988. fi
  9989. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9990. /* end confdefs.h. */
  9991. #include <gc/gc.h>
  9992. int
  9993. main ()
  9994. {
  9995. GC_init()
  9996. ;
  9997. return 0;
  9998. }
  9999. _ACEOF
  10000. if ac_fn_c_try_link "$LINENO"; then :
  10001. if test "$cross_compiling" = yes; then :
  10002. system_bdw_gc_found=no
  10003. else
  10004. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10005. /* end confdefs.h. */
  10006. #include <gc/gc.h>
  10007. int main() {
  10008. GC_init();
  10009. return 0;
  10010. }
  10011. _ACEOF
  10012. if ac_fn_c_try_run "$LINENO"; then :
  10013. system_bdw_gc_found=yes
  10014. else
  10015. system_bdw_gc_found=no
  10016. fi
  10017. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  10018. conftest.$ac_objext conftest.beam conftest.$ac_ext
  10019. fi
  10020. else
  10021. system_bdw_gc_found=no
  10022. fi
  10023. rm -f core conftest.err conftest.$ac_objext \
  10024. conftest$ac_exeext conftest.$ac_ext
  10025. CFLAGS=$save_CFLAGS
  10026. LIBS=$save_LIBS
  10027. if test x$enable_objc_gc = xauto && test x$system_bdw_gc_found = xno; then
  10028. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: system bdw-gc not found, not building libobjc_gc" >&5
  10029. $as_echo "$as_me: WARNING: system bdw-gc not found, not building libobjc_gc" >&2;}
  10030. use_bdw_gc=no
  10031. elif test x$enable_objc_gc = xyes && test x$system_bdw_gc_found = xno; then
  10032. as_fn_error $? "system bdw-gc required but not found" "$LINENO" 5
  10033. else
  10034. use_bdw_gc=yes
  10035. { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
  10036. $as_echo "found" >&6; }
  10037. fi
  10038. esac
  10039. esac
  10040. if test "$use_bdw_gc" = no; then
  10041. OBJC_GCFLAGS=''
  10042. OBJC_BOEHM_GC=''
  10043. OBJC_BOEHM_GC_INCLUDES=''
  10044. OBJC_BOEHM_GC_LIBS=''
  10045. else
  10046. OBJC_GCFLAGS='-DOBJC_WITH_GC=1'
  10047. OBJC_BOEHM_GC='libobjc_gc$(libsuffix).la'
  10048. OBJC_BOEHM_GC_INCLUDES=$BDW_GC_CFLAGS
  10049. OBJC_BOEHM_GC_LIBS=$BDW_GC_LIBS
  10050. fi
  10051. # Determine what GCC version number to use in filesystem paths.
  10052. get_gcc_base_ver="cat"
  10053. # Check whether --with-gcc-major-version-only was given.
  10054. if test "${with_gcc_major_version_only+set}" = set; then :
  10055. withval=$with_gcc_major_version_only; if test x$with_gcc_major_version_only = xyes ; then
  10056. get_gcc_base_ver="sed -e 's/^\([0-9]*\).*/\1/'"
  10057. fi
  10058. fi
  10059. # ------
  10060. # Output
  10061. # ------
  10062. if test ${multilib} = yes; then
  10063. multilib_arg="--enable-multilib"
  10064. else
  10065. multilib_arg=
  10066. fi
  10067. ac_config_files="$ac_config_files Makefile"
  10068. cat >confcache <<\_ACEOF
  10069. # This file is a shell script that caches the results of configure
  10070. # tests run on this system so they can be shared between configure
  10071. # scripts and configure runs, see configure's option --config-cache.
  10072. # It is not useful on other systems. If it contains results you don't
  10073. # want to keep, you may remove or edit it.
  10074. #
  10075. # config.status only pays attention to the cache file if you give it
  10076. # the --recheck option to rerun configure.
  10077. #
  10078. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  10079. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  10080. # following values.
  10081. _ACEOF
  10082. # The following way of writing the cache mishandles newlines in values,
  10083. # but we know of no workaround that is simple, portable, and efficient.
  10084. # So, we kill variables containing newlines.
  10085. # Ultrix sh set writes to stderr and can't be redirected directly,
  10086. # and sets the high bit in the cache file unless we assign to the vars.
  10087. (
  10088. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  10089. eval ac_val=\$$ac_var
  10090. case $ac_val in #(
  10091. *${as_nl}*)
  10092. case $ac_var in #(
  10093. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  10094. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  10095. esac
  10096. case $ac_var in #(
  10097. _ | IFS | as_nl) ;; #(
  10098. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  10099. *) { eval $ac_var=; unset $ac_var;} ;;
  10100. esac ;;
  10101. esac
  10102. done
  10103. (set) 2>&1 |
  10104. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  10105. *${as_nl}ac_space=\ *)
  10106. # `set' does not quote correctly, so add quotes: double-quote
  10107. # substitution turns \\\\ into \\, and sed turns \\ into \.
  10108. sed -n \
  10109. "s/'/'\\\\''/g;
  10110. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  10111. ;; #(
  10112. *)
  10113. # `set' quotes correctly as required by POSIX, so do not add quotes.
  10114. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  10115. ;;
  10116. esac |
  10117. sort
  10118. ) |
  10119. sed '
  10120. /^ac_cv_env_/b end
  10121. t clear
  10122. :clear
  10123. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  10124. t end
  10125. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  10126. :end' >>confcache
  10127. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  10128. if test -w "$cache_file"; then
  10129. if test "x$cache_file" != "x/dev/null"; then
  10130. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  10131. $as_echo "$as_me: updating cache $cache_file" >&6;}
  10132. if test ! -f "$cache_file" || test -h "$cache_file"; then
  10133. cat confcache >"$cache_file"
  10134. else
  10135. case $cache_file in #(
  10136. */* | ?:*)
  10137. mv -f confcache "$cache_file"$$ &&
  10138. mv -f "$cache_file"$$ "$cache_file" ;; #(
  10139. *)
  10140. mv -f confcache "$cache_file" ;;
  10141. esac
  10142. fi
  10143. fi
  10144. else
  10145. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  10146. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  10147. fi
  10148. fi
  10149. rm -f confcache
  10150. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  10151. # Let make expand exec_prefix.
  10152. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  10153. DEFS=-DHAVE_CONFIG_H
  10154. ac_libobjs=
  10155. ac_ltlibobjs=
  10156. U=
  10157. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  10158. # 1. Remove the extension, and $U if already installed.
  10159. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  10160. ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  10161. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  10162. # will be set to the directory where LIBOBJS objects are built.
  10163. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  10164. as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  10165. done
  10166. LIBOBJS=$ac_libobjs
  10167. LTLIBOBJS=$ac_ltlibobjs
  10168. if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
  10169. as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
  10170. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  10171. fi
  10172. : "${CONFIG_STATUS=./config.status}"
  10173. ac_write_fail=0
  10174. ac_clean_files_save=$ac_clean_files
  10175. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  10176. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  10177. $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  10178. as_write_fail=0
  10179. cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  10180. #! $SHELL
  10181. # Generated by $as_me.
  10182. # Run this file to recreate the current configuration.
  10183. # Compiler output produced by configure, useful for debugging
  10184. # configure, is in config.log if it exists.
  10185. debug=false
  10186. ac_cs_recheck=false
  10187. ac_cs_silent=false
  10188. SHELL=\${CONFIG_SHELL-$SHELL}
  10189. export SHELL
  10190. _ASEOF
  10191. cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  10192. ## -------------------- ##
  10193. ## M4sh Initialization. ##
  10194. ## -------------------- ##
  10195. # Be more Bourne compatible
  10196. DUALCASE=1; export DUALCASE # for MKS sh
  10197. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  10198. emulate sh
  10199. NULLCMD=:
  10200. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  10201. # is contrary to our usage. Disable this feature.
  10202. alias -g '${1+"$@"}'='"$@"'
  10203. setopt NO_GLOB_SUBST
  10204. else
  10205. case `(set -o) 2>/dev/null` in #(
  10206. *posix*) :
  10207. set -o posix ;; #(
  10208. *) :
  10209. ;;
  10210. esac
  10211. fi
  10212. as_nl='
  10213. '
  10214. export as_nl
  10215. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  10216. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  10217. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  10218. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  10219. # Prefer a ksh shell builtin over an external printf program on Solaris,
  10220. # but without wasting forks for bash or zsh.
  10221. if test -z "$BASH_VERSION$ZSH_VERSION" \
  10222. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  10223. as_echo='print -r --'
  10224. as_echo_n='print -rn --'
  10225. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  10226. as_echo='printf %s\n'
  10227. as_echo_n='printf %s'
  10228. else
  10229. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  10230. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  10231. as_echo_n='/usr/ucb/echo -n'
  10232. else
  10233. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  10234. as_echo_n_body='eval
  10235. arg=$1;
  10236. case $arg in #(
  10237. *"$as_nl"*)
  10238. expr "X$arg" : "X\\(.*\\)$as_nl";
  10239. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  10240. esac;
  10241. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  10242. '
  10243. export as_echo_n_body
  10244. as_echo_n='sh -c $as_echo_n_body as_echo'
  10245. fi
  10246. export as_echo_body
  10247. as_echo='sh -c $as_echo_body as_echo'
  10248. fi
  10249. # The user is always right.
  10250. if test "${PATH_SEPARATOR+set}" != set; then
  10251. PATH_SEPARATOR=:
  10252. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  10253. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  10254. PATH_SEPARATOR=';'
  10255. }
  10256. fi
  10257. # IFS
  10258. # We need space, tab and new line, in precisely that order. Quoting is
  10259. # there to prevent editors from complaining about space-tab.
  10260. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  10261. # splitting by setting IFS to empty value.)
  10262. IFS=" "" $as_nl"
  10263. # Find who we are. Look in the path if we contain no directory separator.
  10264. as_myself=
  10265. case $0 in #((
  10266. *[\\/]* ) as_myself=$0 ;;
  10267. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10268. for as_dir in $PATH
  10269. do
  10270. IFS=$as_save_IFS
  10271. test -z "$as_dir" && as_dir=.
  10272. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  10273. done
  10274. IFS=$as_save_IFS
  10275. ;;
  10276. esac
  10277. # We did not find ourselves, most probably we were run as `sh COMMAND'
  10278. # in which case we are not to be found in the path.
  10279. if test "x$as_myself" = x; then
  10280. as_myself=$0
  10281. fi
  10282. if test ! -f "$as_myself"; then
  10283. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  10284. exit 1
  10285. fi
  10286. # Unset variables that we do not need and which cause bugs (e.g. in
  10287. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  10288. # suppresses any "Segmentation fault" message there. '((' could
  10289. # trigger a bug in pdksh 5.2.14.
  10290. for as_var in BASH_ENV ENV MAIL MAILPATH
  10291. do eval test x\${$as_var+set} = xset \
  10292. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  10293. done
  10294. PS1='$ '
  10295. PS2='> '
  10296. PS4='+ '
  10297. # NLS nuisances.
  10298. LC_ALL=C
  10299. export LC_ALL
  10300. LANGUAGE=C
  10301. export LANGUAGE
  10302. # CDPATH.
  10303. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  10304. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  10305. # ----------------------------------------
  10306. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  10307. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  10308. # script with STATUS, using 1 if that was 0.
  10309. as_fn_error ()
  10310. {
  10311. as_status=$1; test $as_status -eq 0 && as_status=1
  10312. if test "$4"; then
  10313. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  10314. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  10315. fi
  10316. $as_echo "$as_me: error: $2" >&2
  10317. as_fn_exit $as_status
  10318. } # as_fn_error
  10319. # as_fn_set_status STATUS
  10320. # -----------------------
  10321. # Set $? to STATUS, without forking.
  10322. as_fn_set_status ()
  10323. {
  10324. return $1
  10325. } # as_fn_set_status
  10326. # as_fn_exit STATUS
  10327. # -----------------
  10328. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  10329. as_fn_exit ()
  10330. {
  10331. set +e
  10332. as_fn_set_status $1
  10333. exit $1
  10334. } # as_fn_exit
  10335. # as_fn_unset VAR
  10336. # ---------------
  10337. # Portably unset VAR.
  10338. as_fn_unset ()
  10339. {
  10340. { eval $1=; unset $1;}
  10341. }
  10342. as_unset=as_fn_unset
  10343. # as_fn_append VAR VALUE
  10344. # ----------------------
  10345. # Append the text in VALUE to the end of the definition contained in VAR. Take
  10346. # advantage of any shell optimizations that allow amortized linear growth over
  10347. # repeated appends, instead of the typical quadratic growth present in naive
  10348. # implementations.
  10349. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  10350. eval 'as_fn_append ()
  10351. {
  10352. eval $1+=\$2
  10353. }'
  10354. else
  10355. as_fn_append ()
  10356. {
  10357. eval $1=\$$1\$2
  10358. }
  10359. fi # as_fn_append
  10360. # as_fn_arith ARG...
  10361. # ------------------
  10362. # Perform arithmetic evaluation on the ARGs, and store the result in the
  10363. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  10364. # must be portable across $(()) and expr.
  10365. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  10366. eval 'as_fn_arith ()
  10367. {
  10368. as_val=$(( $* ))
  10369. }'
  10370. else
  10371. as_fn_arith ()
  10372. {
  10373. as_val=`expr "$@" || test $? -eq 1`
  10374. }
  10375. fi # as_fn_arith
  10376. if expr a : '\(a\)' >/dev/null 2>&1 &&
  10377. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  10378. as_expr=expr
  10379. else
  10380. as_expr=false
  10381. fi
  10382. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  10383. as_basename=basename
  10384. else
  10385. as_basename=false
  10386. fi
  10387. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  10388. as_dirname=dirname
  10389. else
  10390. as_dirname=false
  10391. fi
  10392. as_me=`$as_basename -- "$0" ||
  10393. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  10394. X"$0" : 'X\(//\)$' \| \
  10395. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  10396. $as_echo X/"$0" |
  10397. sed '/^.*\/\([^/][^/]*\)\/*$/{
  10398. s//\1/
  10399. q
  10400. }
  10401. /^X\/\(\/\/\)$/{
  10402. s//\1/
  10403. q
  10404. }
  10405. /^X\/\(\/\).*/{
  10406. s//\1/
  10407. q
  10408. }
  10409. s/.*/./; q'`
  10410. # Avoid depending upon Character Ranges.
  10411. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  10412. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  10413. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  10414. as_cr_digits='0123456789'
  10415. as_cr_alnum=$as_cr_Letters$as_cr_digits
  10416. ECHO_C= ECHO_N= ECHO_T=
  10417. case `echo -n x` in #(((((
  10418. -n*)
  10419. case `echo 'xy\c'` in
  10420. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  10421. xy) ECHO_C='\c';;
  10422. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  10423. ECHO_T=' ';;
  10424. esac;;
  10425. *)
  10426. ECHO_N='-n';;
  10427. esac
  10428. rm -f conf$$ conf$$.exe conf$$.file
  10429. if test -d conf$$.dir; then
  10430. rm -f conf$$.dir/conf$$.file
  10431. else
  10432. rm -f conf$$.dir
  10433. mkdir conf$$.dir 2>/dev/null
  10434. fi
  10435. if (echo >conf$$.file) 2>/dev/null; then
  10436. if ln -s conf$$.file conf$$ 2>/dev/null; then
  10437. as_ln_s='ln -s'
  10438. # ... but there are two gotchas:
  10439. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  10440. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  10441. # In both cases, we have to default to `cp -pR'.
  10442. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  10443. as_ln_s='cp -pR'
  10444. elif ln conf$$.file conf$$ 2>/dev/null; then
  10445. as_ln_s=ln
  10446. else
  10447. as_ln_s='cp -pR'
  10448. fi
  10449. else
  10450. as_ln_s='cp -pR'
  10451. fi
  10452. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  10453. rmdir conf$$.dir 2>/dev/null
  10454. # as_fn_mkdir_p
  10455. # -------------
  10456. # Create "$as_dir" as a directory, including parents if necessary.
  10457. as_fn_mkdir_p ()
  10458. {
  10459. case $as_dir in #(
  10460. -*) as_dir=./$as_dir;;
  10461. esac
  10462. test -d "$as_dir" || eval $as_mkdir_p || {
  10463. as_dirs=
  10464. while :; do
  10465. case $as_dir in #(
  10466. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  10467. *) as_qdir=$as_dir;;
  10468. esac
  10469. as_dirs="'$as_qdir' $as_dirs"
  10470. as_dir=`$as_dirname -- "$as_dir" ||
  10471. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  10472. X"$as_dir" : 'X\(//\)[^/]' \| \
  10473. X"$as_dir" : 'X\(//\)$' \| \
  10474. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  10475. $as_echo X"$as_dir" |
  10476. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  10477. s//\1/
  10478. q
  10479. }
  10480. /^X\(\/\/\)[^/].*/{
  10481. s//\1/
  10482. q
  10483. }
  10484. /^X\(\/\/\)$/{
  10485. s//\1/
  10486. q
  10487. }
  10488. /^X\(\/\).*/{
  10489. s//\1/
  10490. q
  10491. }
  10492. s/.*/./; q'`
  10493. test -d "$as_dir" && break
  10494. done
  10495. test -z "$as_dirs" || eval "mkdir $as_dirs"
  10496. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  10497. } # as_fn_mkdir_p
  10498. if mkdir -p . 2>/dev/null; then
  10499. as_mkdir_p='mkdir -p "$as_dir"'
  10500. else
  10501. test -d ./-p && rmdir ./-p
  10502. as_mkdir_p=false
  10503. fi
  10504. # as_fn_executable_p FILE
  10505. # -----------------------
  10506. # Test if FILE is an executable regular file.
  10507. as_fn_executable_p ()
  10508. {
  10509. test -f "$1" && test -x "$1"
  10510. } # as_fn_executable_p
  10511. as_test_x='test -x'
  10512. as_executable_p=as_fn_executable_p
  10513. # Sed expression to map a string onto a valid CPP name.
  10514. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  10515. # Sed expression to map a string onto a valid variable name.
  10516. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  10517. exec 6>&1
  10518. ## ----------------------------------- ##
  10519. ## Main body of $CONFIG_STATUS script. ##
  10520. ## ----------------------------------- ##
  10521. _ASEOF
  10522. test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  10523. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  10524. # Save the log message, to keep $0 and so on meaningful, and to
  10525. # report actual input values of CONFIG_FILES etc. instead of their
  10526. # values after options handling.
  10527. ac_log="
  10528. This file was extended by package-unused $as_me version-unused, which was
  10529. generated by GNU Autoconf 2.69. Invocation command line was
  10530. CONFIG_FILES = $CONFIG_FILES
  10531. CONFIG_HEADERS = $CONFIG_HEADERS
  10532. CONFIG_LINKS = $CONFIG_LINKS
  10533. CONFIG_COMMANDS = $CONFIG_COMMANDS
  10534. $ $0 $@
  10535. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  10536. "
  10537. _ACEOF
  10538. case $ac_config_files in *"
  10539. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  10540. esac
  10541. case $ac_config_headers in *"
  10542. "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
  10543. esac
  10544. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  10545. # Files that config.status was made for.
  10546. config_files="$ac_config_files"
  10547. config_headers="$ac_config_headers"
  10548. config_commands="$ac_config_commands"
  10549. _ACEOF
  10550. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  10551. ac_cs_usage="\
  10552. \`$as_me' instantiates files and other configuration actions
  10553. from templates according to the current configuration. Unless the files
  10554. and actions are specified as TAGs, all are instantiated by default.
  10555. Usage: $0 [OPTION]... [TAG]...
  10556. -h, --help print this help, then exit
  10557. -V, --version print version number and configuration settings, then exit
  10558. --config print configuration, then exit
  10559. -q, --quiet, --silent
  10560. do not print progress messages
  10561. -d, --debug don't remove temporary files
  10562. --recheck update $as_me by reconfiguring in the same conditions
  10563. --file=FILE[:TEMPLATE]
  10564. instantiate the configuration file FILE
  10565. --header=FILE[:TEMPLATE]
  10566. instantiate the configuration header FILE
  10567. Configuration files:
  10568. $config_files
  10569. Configuration headers:
  10570. $config_headers
  10571. Configuration commands:
  10572. $config_commands
  10573. Report bugs to the package provider."
  10574. _ACEOF
  10575. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  10576. ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
  10577. ac_cs_version="\\
  10578. package-unused config.status version-unused
  10579. configured by $0, generated by GNU Autoconf 2.69,
  10580. with options \\"\$ac_cs_config\\"
  10581. Copyright (C) 2012 Free Software Foundation, Inc.
  10582. This config.status script is free software; the Free Software Foundation
  10583. gives unlimited permission to copy, distribute and modify it."
  10584. ac_pwd='$ac_pwd'
  10585. srcdir='$srcdir'
  10586. INSTALL='$INSTALL'
  10587. AWK='$AWK'
  10588. test -n "\$AWK" || AWK=awk
  10589. _ACEOF
  10590. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  10591. # The default lists apply if the user does not specify any file.
  10592. ac_need_defaults=:
  10593. while test $# != 0
  10594. do
  10595. case $1 in
  10596. --*=?*)
  10597. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  10598. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  10599. ac_shift=:
  10600. ;;
  10601. --*=)
  10602. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  10603. ac_optarg=
  10604. ac_shift=:
  10605. ;;
  10606. *)
  10607. ac_option=$1
  10608. ac_optarg=$2
  10609. ac_shift=shift
  10610. ;;
  10611. esac
  10612. case $ac_option in
  10613. # Handling of the options.
  10614. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  10615. ac_cs_recheck=: ;;
  10616. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  10617. $as_echo "$ac_cs_version"; exit ;;
  10618. --config | --confi | --conf | --con | --co | --c )
  10619. $as_echo "$ac_cs_config"; exit ;;
  10620. --debug | --debu | --deb | --de | --d | -d )
  10621. debug=: ;;
  10622. --file | --fil | --fi | --f )
  10623. $ac_shift
  10624. case $ac_optarg in
  10625. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  10626. '') as_fn_error $? "missing file argument" ;;
  10627. esac
  10628. as_fn_append CONFIG_FILES " '$ac_optarg'"
  10629. ac_need_defaults=false;;
  10630. --header | --heade | --head | --hea )
  10631. $ac_shift
  10632. case $ac_optarg in
  10633. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  10634. esac
  10635. as_fn_append CONFIG_HEADERS " '$ac_optarg'"
  10636. ac_need_defaults=false;;
  10637. --he | --h)
  10638. # Conflict between --help and --header
  10639. as_fn_error $? "ambiguous option: \`$1'
  10640. Try \`$0 --help' for more information.";;
  10641. --help | --hel | -h )
  10642. $as_echo "$ac_cs_usage"; exit ;;
  10643. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  10644. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  10645. ac_cs_silent=: ;;
  10646. # This is an error.
  10647. -*) as_fn_error $? "unrecognized option: \`$1'
  10648. Try \`$0 --help' for more information." ;;
  10649. *) as_fn_append ac_config_targets " $1"
  10650. ac_need_defaults=false ;;
  10651. esac
  10652. shift
  10653. done
  10654. ac_configure_extra_args=
  10655. if $ac_cs_silent; then
  10656. exec 6>/dev/null
  10657. ac_configure_extra_args="$ac_configure_extra_args --silent"
  10658. fi
  10659. _ACEOF
  10660. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  10661. if \$ac_cs_recheck; then
  10662. set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  10663. shift
  10664. \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  10665. CONFIG_SHELL='$SHELL'
  10666. export CONFIG_SHELL
  10667. exec "\$@"
  10668. fi
  10669. _ACEOF
  10670. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  10671. exec 5>>config.log
  10672. {
  10673. echo
  10674. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  10675. ## Running $as_me. ##
  10676. _ASBOX
  10677. $as_echo "$ac_log"
  10678. } >&5
  10679. _ACEOF
  10680. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  10681. #
  10682. # INIT-COMMANDS
  10683. #
  10684. srcdir="$srcdir"
  10685. host="$host"
  10686. target="$target"
  10687. with_multisubdir="$with_multisubdir"
  10688. with_multisrctop="$with_multisrctop"
  10689. with_target_subdir="$with_target_subdir"
  10690. ac_configure_args="${multilib_arg} ${ac_configure_args}"
  10691. multi_basedir="$multi_basedir"
  10692. CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
  10693. CC="$CC"
  10694. CXX="$CXX"
  10695. GFORTRAN="$GFORTRAN"
  10696. GDC="$GDC"
  10697. # The HP-UX ksh and POSIX shell print the target directory to stdout
  10698. # if CDPATH is set.
  10699. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  10700. sed_quote_subst='$sed_quote_subst'
  10701. double_quote_subst='$double_quote_subst'
  10702. delay_variable_subst='$delay_variable_subst'
  10703. AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
  10704. DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
  10705. OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
  10706. macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
  10707. macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
  10708. enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
  10709. enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
  10710. pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
  10711. enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
  10712. SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
  10713. ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
  10714. host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
  10715. host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
  10716. host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
  10717. build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
  10718. build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
  10719. build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
  10720. SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
  10721. Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
  10722. GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
  10723. EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
  10724. FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
  10725. LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
  10726. NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
  10727. LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
  10728. max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
  10729. ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
  10730. exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
  10731. lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
  10732. lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
  10733. lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
  10734. reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
  10735. reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
  10736. deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
  10737. file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
  10738. AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
  10739. AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
  10740. STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
  10741. RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
  10742. old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  10743. old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  10744. old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
  10745. lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
  10746. CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
  10747. CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
  10748. compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
  10749. GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
  10750. lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
  10751. lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
  10752. lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
  10753. 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"`'
  10754. objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
  10755. MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
  10756. lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
  10757. lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
  10758. lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
  10759. lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
  10760. lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
  10761. need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
  10762. DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
  10763. NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
  10764. LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
  10765. OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
  10766. OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
  10767. libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
  10768. shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
  10769. extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  10770. archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
  10771. enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
  10772. export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
  10773. whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
  10774. compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
  10775. old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
  10776. old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  10777. archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
  10778. archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  10779. module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
  10780. module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  10781. with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
  10782. allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
  10783. no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
  10784. hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
  10785. hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
  10786. hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
  10787. hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
  10788. hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
  10789. hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
  10790. hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
  10791. hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
  10792. inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
  10793. link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
  10794. fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
  10795. always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
  10796. export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
  10797. exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
  10798. include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
  10799. prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
  10800. file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
  10801. variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
  10802. need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
  10803. need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
  10804. version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
  10805. runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
  10806. shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
  10807. shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
  10808. libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
  10809. library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
  10810. soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
  10811. install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
  10812. postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  10813. postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  10814. finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
  10815. finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
  10816. hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
  10817. sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
  10818. sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
  10819. hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
  10820. enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
  10821. enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
  10822. enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
  10823. old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
  10824. striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
  10825. LTCC='$LTCC'
  10826. LTCFLAGS='$LTCFLAGS'
  10827. compiler='$compiler_DEFAULT'
  10828. # A function that is used when there is no print builtin or printf.
  10829. func_fallback_echo ()
  10830. {
  10831. eval 'cat <<_LTECHO_EOF
  10832. \$1
  10833. _LTECHO_EOF'
  10834. }
  10835. # Quote evaled strings.
  10836. for var in AS \
  10837. DLLTOOL \
  10838. OBJDUMP \
  10839. SHELL \
  10840. ECHO \
  10841. SED \
  10842. GREP \
  10843. EGREP \
  10844. FGREP \
  10845. LD \
  10846. NM \
  10847. LN_S \
  10848. lt_SP2NL \
  10849. lt_NL2SP \
  10850. reload_flag \
  10851. deplibs_check_method \
  10852. file_magic_cmd \
  10853. AR \
  10854. AR_FLAGS \
  10855. STRIP \
  10856. RANLIB \
  10857. CC \
  10858. CFLAGS \
  10859. compiler \
  10860. lt_cv_sys_global_symbol_pipe \
  10861. lt_cv_sys_global_symbol_to_cdecl \
  10862. lt_cv_sys_global_symbol_to_c_name_address \
  10863. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
  10864. lt_prog_compiler_no_builtin_flag \
  10865. lt_prog_compiler_wl \
  10866. lt_prog_compiler_pic \
  10867. lt_prog_compiler_static \
  10868. lt_cv_prog_compiler_c_o \
  10869. need_locks \
  10870. DSYMUTIL \
  10871. NMEDIT \
  10872. LIPO \
  10873. OTOOL \
  10874. OTOOL64 \
  10875. shrext_cmds \
  10876. export_dynamic_flag_spec \
  10877. whole_archive_flag_spec \
  10878. compiler_needs_object \
  10879. with_gnu_ld \
  10880. allow_undefined_flag \
  10881. no_undefined_flag \
  10882. hardcode_libdir_flag_spec \
  10883. hardcode_libdir_flag_spec_ld \
  10884. hardcode_libdir_separator \
  10885. fix_srcfile_path \
  10886. exclude_expsyms \
  10887. include_expsyms \
  10888. file_list_spec \
  10889. variables_saved_for_relink \
  10890. libname_spec \
  10891. library_names_spec \
  10892. soname_spec \
  10893. install_override_mode \
  10894. finish_eval \
  10895. old_striplib \
  10896. striplib; do
  10897. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  10898. *[\\\\\\\`\\"\\\$]*)
  10899. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
  10900. ;;
  10901. *)
  10902. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  10903. ;;
  10904. esac
  10905. done
  10906. # Double-quote double-evaled strings.
  10907. for var in reload_cmds \
  10908. old_postinstall_cmds \
  10909. old_postuninstall_cmds \
  10910. old_archive_cmds \
  10911. extract_expsyms_cmds \
  10912. old_archive_from_new_cmds \
  10913. old_archive_from_expsyms_cmds \
  10914. archive_cmds \
  10915. archive_expsym_cmds \
  10916. module_cmds \
  10917. module_expsym_cmds \
  10918. export_symbols_cmds \
  10919. prelink_cmds \
  10920. postinstall_cmds \
  10921. postuninstall_cmds \
  10922. finish_cmds \
  10923. sys_lib_search_path_spec \
  10924. sys_lib_dlsearch_path_spec; do
  10925. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  10926. *[\\\\\\\`\\"\\\$]*)
  10927. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
  10928. ;;
  10929. *)
  10930. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  10931. ;;
  10932. esac
  10933. done
  10934. ac_aux_dir='$ac_aux_dir'
  10935. xsi_shell='$xsi_shell'
  10936. lt_shell_append='$lt_shell_append'
  10937. # See if we are running on zsh, and set the options which allow our
  10938. # commands through without removal of \ escapes INIT.
  10939. if test -n "\${ZSH_VERSION+set}" ; then
  10940. setopt NO_GLOB_SUBST
  10941. fi
  10942. PACKAGE='$PACKAGE'
  10943. VERSION='$VERSION'
  10944. TIMESTAMP='$TIMESTAMP'
  10945. RM='$RM'
  10946. ofile='$ofile'
  10947. _ACEOF
  10948. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  10949. # Handling of arguments.
  10950. for ac_config_target in $ac_config_targets
  10951. do
  10952. case $ac_config_target in
  10953. "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
  10954. "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
  10955. "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
  10956. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  10957. *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  10958. esac
  10959. done
  10960. # If the user did not use the arguments to specify the items to instantiate,
  10961. # then the envvar interface is used. Set only those that are not.
  10962. # We use the long form for the default assignment because of an extremely
  10963. # bizarre bug on SunOS 4.1.3.
  10964. if $ac_need_defaults; then
  10965. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  10966. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  10967. test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  10968. fi
  10969. # Have a temporary directory for convenience. Make it in the build tree
  10970. # simply because there is no reason against having it here, and in addition,
  10971. # creating and moving files from /tmp can sometimes cause problems.
  10972. # Hook for its removal unless debugging.
  10973. # Note that there is a small window in which the directory will not be cleaned:
  10974. # after its creation but before its name has been assigned to `$tmp'.
  10975. $debug ||
  10976. {
  10977. tmp= ac_tmp=
  10978. trap 'exit_status=$?
  10979. : "${ac_tmp:=$tmp}"
  10980. { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
  10981. ' 0
  10982. trap 'as_fn_exit 1' 1 2 13 15
  10983. }
  10984. # Create a (secure) tmp directory for tmp files.
  10985. {
  10986. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  10987. test -d "$tmp"
  10988. } ||
  10989. {
  10990. tmp=./conf$$-$RANDOM
  10991. (umask 077 && mkdir "$tmp")
  10992. } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
  10993. ac_tmp=$tmp
  10994. # Set up the scripts for CONFIG_FILES section.
  10995. # No need to generate them if there are no CONFIG_FILES.
  10996. # This happens for instance with `./config.status config.h'.
  10997. if test -n "$CONFIG_FILES"; then
  10998. ac_cr=`echo X | tr X '\015'`
  10999. # On cygwin, bash can eat \r inside `` if the user requested igncr.
  11000. # But we know of no other shell where ac_cr would be empty at this
  11001. # point, so we can use a bashism as a fallback.
  11002. if test "x$ac_cr" = x; then
  11003. eval ac_cr=\$\'\\r\'
  11004. fi
  11005. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  11006. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  11007. ac_cs_awk_cr='\\r'
  11008. else
  11009. ac_cs_awk_cr=$ac_cr
  11010. fi
  11011. echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
  11012. _ACEOF
  11013. {
  11014. echo "cat >conf$$subs.awk <<_ACEOF" &&
  11015. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  11016. echo "_ACEOF"
  11017. } >conf$$subs.sh ||
  11018. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  11019. ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
  11020. ac_delim='%!_!# '
  11021. for ac_last_try in false false false false false :; do
  11022. . ./conf$$subs.sh ||
  11023. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  11024. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  11025. if test $ac_delim_n = $ac_delim_num; then
  11026. break
  11027. elif $ac_last_try; then
  11028. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  11029. else
  11030. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  11031. fi
  11032. done
  11033. rm -f conf$$subs.sh
  11034. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  11035. cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
  11036. _ACEOF
  11037. sed -n '
  11038. h
  11039. s/^/S["/; s/!.*/"]=/
  11040. p
  11041. g
  11042. s/^[^!]*!//
  11043. :repl
  11044. t repl
  11045. s/'"$ac_delim"'$//
  11046. t delim
  11047. :nl
  11048. h
  11049. s/\(.\{148\}\)..*/\1/
  11050. t more1
  11051. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  11052. p
  11053. n
  11054. b repl
  11055. :more1
  11056. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  11057. p
  11058. g
  11059. s/.\{148\}//
  11060. t nl
  11061. :delim
  11062. h
  11063. s/\(.\{148\}\)..*/\1/
  11064. t more2
  11065. s/["\\]/\\&/g; s/^/"/; s/$/"/
  11066. p
  11067. b
  11068. :more2
  11069. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  11070. p
  11071. g
  11072. s/.\{148\}//
  11073. t delim
  11074. ' <conf$$subs.awk | sed '
  11075. /^[^""]/{
  11076. N
  11077. s/\n//
  11078. }
  11079. ' >>$CONFIG_STATUS || ac_write_fail=1
  11080. rm -f conf$$subs.awk
  11081. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  11082. _ACAWK
  11083. cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
  11084. for (key in S) S_is_set[key] = 1
  11085. FS = ""
  11086. }
  11087. {
  11088. line = $ 0
  11089. nfields = split(line, field, "@")
  11090. substed = 0
  11091. len = length(field[1])
  11092. for (i = 2; i < nfields; i++) {
  11093. key = field[i]
  11094. keylen = length(key)
  11095. if (S_is_set[key]) {
  11096. value = S[key]
  11097. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  11098. len += length(value) + length(field[++i])
  11099. substed = 1
  11100. } else
  11101. len += 1 + keylen
  11102. }
  11103. print line
  11104. }
  11105. _ACAWK
  11106. _ACEOF
  11107. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  11108. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  11109. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  11110. else
  11111. cat
  11112. fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
  11113. || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
  11114. _ACEOF
  11115. # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
  11116. # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
  11117. # trailing colons and then remove the whole line if VPATH becomes empty
  11118. # (actually we leave an empty line to preserve line numbers).
  11119. if test "x$srcdir" = x.; then
  11120. ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
  11121. h
  11122. s///
  11123. s/^/:/
  11124. s/[ ]*$/:/
  11125. s/:\$(srcdir):/:/g
  11126. s/:\${srcdir}:/:/g
  11127. s/:@srcdir@:/:/g
  11128. s/^:*//
  11129. s/:*$//
  11130. x
  11131. s/\(=[ ]*\).*/\1/
  11132. G
  11133. s/\n//
  11134. s/^[^=]*=[ ]*$//
  11135. }'
  11136. fi
  11137. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  11138. fi # test -n "$CONFIG_FILES"
  11139. # Set up the scripts for CONFIG_HEADERS section.
  11140. # No need to generate them if there are no CONFIG_HEADERS.
  11141. # This happens for instance with `./config.status Makefile'.
  11142. if test -n "$CONFIG_HEADERS"; then
  11143. cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
  11144. BEGIN {
  11145. _ACEOF
  11146. # Transform confdefs.h into an awk script `defines.awk', embedded as
  11147. # here-document in config.status, that substitutes the proper values into
  11148. # config.h.in to produce config.h.
  11149. # Create a delimiter string that does not exist in confdefs.h, to ease
  11150. # handling of long lines.
  11151. ac_delim='%!_!# '
  11152. for ac_last_try in false false :; do
  11153. ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
  11154. if test -z "$ac_tt"; then
  11155. break
  11156. elif $ac_last_try; then
  11157. as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
  11158. else
  11159. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  11160. fi
  11161. done
  11162. # For the awk script, D is an array of macro values keyed by name,
  11163. # likewise P contains macro parameters if any. Preserve backslash
  11164. # newline sequences.
  11165. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  11166. sed -n '
  11167. s/.\{148\}/&'"$ac_delim"'/g
  11168. t rset
  11169. :rset
  11170. s/^[ ]*#[ ]*define[ ][ ]*/ /
  11171. t def
  11172. d
  11173. :def
  11174. s/\\$//
  11175. t bsnl
  11176. s/["\\]/\\&/g
  11177. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  11178. D["\1"]=" \3"/p
  11179. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
  11180. d
  11181. :bsnl
  11182. s/["\\]/\\&/g
  11183. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  11184. D["\1"]=" \3\\\\\\n"\\/p
  11185. t cont
  11186. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
  11187. t cont
  11188. d
  11189. :cont
  11190. n
  11191. s/.\{148\}/&'"$ac_delim"'/g
  11192. t clear
  11193. :clear
  11194. s/\\$//
  11195. t bsnlc
  11196. s/["\\]/\\&/g; s/^/"/; s/$/"/p
  11197. d
  11198. :bsnlc
  11199. s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
  11200. b cont
  11201. ' <confdefs.h | sed '
  11202. s/'"$ac_delim"'/"\\\
  11203. "/g' >>$CONFIG_STATUS || ac_write_fail=1
  11204. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  11205. for (key in D) D_is_set[key] = 1
  11206. FS = ""
  11207. }
  11208. /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  11209. line = \$ 0
  11210. split(line, arg, " ")
  11211. if (arg[1] == "#") {
  11212. defundef = arg[2]
  11213. mac1 = arg[3]
  11214. } else {
  11215. defundef = substr(arg[1], 2)
  11216. mac1 = arg[2]
  11217. }
  11218. split(mac1, mac2, "(") #)
  11219. macro = mac2[1]
  11220. prefix = substr(line, 1, index(line, defundef) - 1)
  11221. if (D_is_set[macro]) {
  11222. # Preserve the white space surrounding the "#".
  11223. print prefix "define", macro P[macro] D[macro]
  11224. next
  11225. } else {
  11226. # Replace #undef with comments. This is necessary, for example,
  11227. # in the case of _POSIX_SOURCE, which is predefined and required
  11228. # on some systems where configure will not decide to define it.
  11229. if (defundef == "undef") {
  11230. print "/*", prefix defundef, macro, "*/"
  11231. next
  11232. }
  11233. }
  11234. }
  11235. { print }
  11236. _ACAWK
  11237. _ACEOF
  11238. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  11239. as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
  11240. fi # test -n "$CONFIG_HEADERS"
  11241. eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
  11242. shift
  11243. for ac_tag
  11244. do
  11245. case $ac_tag in
  11246. :[FHLC]) ac_mode=$ac_tag; continue;;
  11247. esac
  11248. case $ac_mode$ac_tag in
  11249. :[FHL]*:*);;
  11250. :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
  11251. :[FH]-) ac_tag=-:-;;
  11252. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  11253. esac
  11254. ac_save_IFS=$IFS
  11255. IFS=:
  11256. set x $ac_tag
  11257. IFS=$ac_save_IFS
  11258. shift
  11259. ac_file=$1
  11260. shift
  11261. case $ac_mode in
  11262. :L) ac_source=$1;;
  11263. :[FH])
  11264. ac_file_inputs=
  11265. for ac_f
  11266. do
  11267. case $ac_f in
  11268. -) ac_f="$ac_tmp/stdin";;
  11269. *) # Look for the file first in the build tree, then in the source tree
  11270. # (if the path is not absolute). The absolute path cannot be DOS-style,
  11271. # because $ac_f cannot contain `:'.
  11272. test -f "$ac_f" ||
  11273. case $ac_f in
  11274. [\\/$]*) false;;
  11275. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  11276. esac ||
  11277. as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
  11278. esac
  11279. case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  11280. as_fn_append ac_file_inputs " '$ac_f'"
  11281. done
  11282. # Let's still pretend it is `configure' which instantiates (i.e., don't
  11283. # use $as_me), people would be surprised to read:
  11284. # /* config.h. Generated by config.status. */
  11285. configure_input='Generated from '`
  11286. $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  11287. `' by configure.'
  11288. if test x"$ac_file" != x-; then
  11289. configure_input="$ac_file. $configure_input"
  11290. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  11291. $as_echo "$as_me: creating $ac_file" >&6;}
  11292. fi
  11293. # Neutralize special characters interpreted by sed in replacement strings.
  11294. case $configure_input in #(
  11295. *\&* | *\|* | *\\* )
  11296. ac_sed_conf_input=`$as_echo "$configure_input" |
  11297. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  11298. *) ac_sed_conf_input=$configure_input;;
  11299. esac
  11300. case $ac_tag in
  11301. *:-:* | *:-) cat >"$ac_tmp/stdin" \
  11302. || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
  11303. esac
  11304. ;;
  11305. esac
  11306. ac_dir=`$as_dirname -- "$ac_file" ||
  11307. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  11308. X"$ac_file" : 'X\(//\)[^/]' \| \
  11309. X"$ac_file" : 'X\(//\)$' \| \
  11310. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  11311. $as_echo X"$ac_file" |
  11312. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  11313. s//\1/
  11314. q
  11315. }
  11316. /^X\(\/\/\)[^/].*/{
  11317. s//\1/
  11318. q
  11319. }
  11320. /^X\(\/\/\)$/{
  11321. s//\1/
  11322. q
  11323. }
  11324. /^X\(\/\).*/{
  11325. s//\1/
  11326. q
  11327. }
  11328. s/.*/./; q'`
  11329. as_dir="$ac_dir"; as_fn_mkdir_p
  11330. ac_builddir=.
  11331. case "$ac_dir" in
  11332. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  11333. *)
  11334. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  11335. # A ".." for each directory in $ac_dir_suffix.
  11336. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  11337. case $ac_top_builddir_sub in
  11338. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  11339. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  11340. esac ;;
  11341. esac
  11342. ac_abs_top_builddir=$ac_pwd
  11343. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  11344. # for backward compatibility:
  11345. ac_top_builddir=$ac_top_build_prefix
  11346. case $srcdir in
  11347. .) # We are building in place.
  11348. ac_srcdir=.
  11349. ac_top_srcdir=$ac_top_builddir_sub
  11350. ac_abs_top_srcdir=$ac_pwd ;;
  11351. [\\/]* | ?:[\\/]* ) # Absolute name.
  11352. ac_srcdir=$srcdir$ac_dir_suffix;
  11353. ac_top_srcdir=$srcdir
  11354. ac_abs_top_srcdir=$srcdir ;;
  11355. *) # Relative name.
  11356. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  11357. ac_top_srcdir=$ac_top_build_prefix$srcdir
  11358. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  11359. esac
  11360. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  11361. case $ac_mode in
  11362. :F)
  11363. #
  11364. # CONFIG_FILE
  11365. #
  11366. case $INSTALL in
  11367. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  11368. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  11369. esac
  11370. _ACEOF
  11371. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  11372. # If the template does not know about datarootdir, expand it.
  11373. # FIXME: This hack should be removed a few years after 2.60.
  11374. ac_datarootdir_hack=; ac_datarootdir_seen=
  11375. ac_sed_dataroot='
  11376. /datarootdir/ {
  11377. p
  11378. q
  11379. }
  11380. /@datadir@/p
  11381. /@docdir@/p
  11382. /@infodir@/p
  11383. /@localedir@/p
  11384. /@mandir@/p'
  11385. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  11386. *datarootdir*) ac_datarootdir_seen=yes;;
  11387. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  11388. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  11389. $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  11390. _ACEOF
  11391. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  11392. ac_datarootdir_hack='
  11393. s&@datadir@&$datadir&g
  11394. s&@docdir@&$docdir&g
  11395. s&@infodir@&$infodir&g
  11396. s&@localedir@&$localedir&g
  11397. s&@mandir@&$mandir&g
  11398. s&\\\${datarootdir}&$datarootdir&g' ;;
  11399. esac
  11400. _ACEOF
  11401. # Neutralize VPATH when `$srcdir' = `.'.
  11402. # Shell code in configure.ac might set extrasub.
  11403. # FIXME: do we really want to maintain this feature?
  11404. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  11405. ac_sed_extra="$ac_vpsub
  11406. $extrasub
  11407. _ACEOF
  11408. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  11409. :t
  11410. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  11411. s|@configure_input@|$ac_sed_conf_input|;t t
  11412. s&@top_builddir@&$ac_top_builddir_sub&;t t
  11413. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  11414. s&@srcdir@&$ac_srcdir&;t t
  11415. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  11416. s&@top_srcdir@&$ac_top_srcdir&;t t
  11417. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  11418. s&@builddir@&$ac_builddir&;t t
  11419. s&@abs_builddir@&$ac_abs_builddir&;t t
  11420. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  11421. s&@INSTALL@&$ac_INSTALL&;t t
  11422. $ac_datarootdir_hack
  11423. "
  11424. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
  11425. >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  11426. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  11427. { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
  11428. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
  11429. "$ac_tmp/out"`; test -z "$ac_out"; } &&
  11430. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  11431. which seems to be undefined. Please make sure it is defined" >&5
  11432. $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  11433. which seems to be undefined. Please make sure it is defined" >&2;}
  11434. rm -f "$ac_tmp/stdin"
  11435. case $ac_file in
  11436. -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
  11437. *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
  11438. esac \
  11439. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  11440. ;;
  11441. :H)
  11442. #
  11443. # CONFIG_HEADER
  11444. #
  11445. if test x"$ac_file" != x-; then
  11446. {
  11447. $as_echo "/* $configure_input */" \
  11448. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
  11449. } >"$ac_tmp/config.h" \
  11450. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  11451. if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
  11452. { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
  11453. $as_echo "$as_me: $ac_file is unchanged" >&6;}
  11454. else
  11455. rm -f "$ac_file"
  11456. mv "$ac_tmp/config.h" "$ac_file" \
  11457. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  11458. fi
  11459. else
  11460. $as_echo "/* $configure_input */" \
  11461. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
  11462. || as_fn_error $? "could not create -" "$LINENO" 5
  11463. fi
  11464. ;;
  11465. :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
  11466. $as_echo "$as_me: executing $ac_file commands" >&6;}
  11467. ;;
  11468. esac
  11469. case $ac_file$ac_mode in
  11470. "default-1":C)
  11471. # Only add multilib support code if we just rebuilt the top-level
  11472. # Makefile.
  11473. case " $CONFIG_FILES " in
  11474. *" Makefile "*)
  11475. ac_file=Makefile . ${multi_basedir}/config-ml.in
  11476. ;;
  11477. esac ;;
  11478. "libtool":C)
  11479. # See if we are running on zsh, and set the options which allow our
  11480. # commands through without removal of \ escapes.
  11481. if test -n "${ZSH_VERSION+set}" ; then
  11482. setopt NO_GLOB_SUBST
  11483. fi
  11484. cfgfile="${ofile}T"
  11485. trap "$RM \"$cfgfile\"; exit 1" 1 2 15
  11486. $RM "$cfgfile"
  11487. cat <<_LT_EOF >> "$cfgfile"
  11488. #! $SHELL
  11489. # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
  11490. # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
  11491. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  11492. # NOTE: Changes made to this file will be lost: look at ltmain.sh.
  11493. #
  11494. # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
  11495. # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
  11496. # Written by Gordon Matzigkeit, 1996
  11497. #
  11498. # This file is part of GNU Libtool.
  11499. #
  11500. # GNU Libtool is free software; you can redistribute it and/or
  11501. # modify it under the terms of the GNU General Public License as
  11502. # published by the Free Software Foundation; either version 2 of
  11503. # the License, or (at your option) any later version.
  11504. #
  11505. # As a special exception to the GNU General Public License,
  11506. # if you distribute this file as part of a program or library that
  11507. # is built using GNU Libtool, you may include this file under the
  11508. # same distribution terms that you use for the rest of that program.
  11509. #
  11510. # GNU Libtool is distributed in the hope that it will be useful,
  11511. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  11512. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  11513. # GNU General Public License for more details.
  11514. #
  11515. # You should have received a copy of the GNU General Public License
  11516. # along with GNU Libtool; see the file COPYING. If not, a copy
  11517. # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
  11518. # obtained by writing to the Free Software Foundation, Inc.,
  11519. # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  11520. # The names of the tagged configurations supported by this script.
  11521. available_tags=""
  11522. # ### BEGIN LIBTOOL CONFIG
  11523. # Assembler program.
  11524. AS=$lt_AS
  11525. # DLL creation program.
  11526. DLLTOOL=$lt_DLLTOOL
  11527. # Object dumper program.
  11528. OBJDUMP=$lt_OBJDUMP
  11529. # Which release of libtool.m4 was used?
  11530. macro_version=$macro_version
  11531. macro_revision=$macro_revision
  11532. # Whether or not to build shared libraries.
  11533. build_libtool_libs=$enable_shared
  11534. # Whether or not to build static libraries.
  11535. build_old_libs=$enable_static
  11536. # What type of objects to build.
  11537. pic_mode=$pic_mode
  11538. # Whether or not to optimize for fast installation.
  11539. fast_install=$enable_fast_install
  11540. # Shell to use when invoking shell scripts.
  11541. SHELL=$lt_SHELL
  11542. # An echo program that protects backslashes.
  11543. ECHO=$lt_ECHO
  11544. # The host system.
  11545. host_alias=$host_alias
  11546. host=$host
  11547. host_os=$host_os
  11548. # The build system.
  11549. build_alias=$build_alias
  11550. build=$build
  11551. build_os=$build_os
  11552. # A sed program that does not truncate output.
  11553. SED=$lt_SED
  11554. # Sed that helps us avoid accidentally triggering echo(1) options like -n.
  11555. Xsed="\$SED -e 1s/^X//"
  11556. # A grep program that handles long lines.
  11557. GREP=$lt_GREP
  11558. # An ERE matcher.
  11559. EGREP=$lt_EGREP
  11560. # A literal string matcher.
  11561. FGREP=$lt_FGREP
  11562. # A BSD- or MS-compatible name lister.
  11563. NM=$lt_NM
  11564. # Whether we need soft or hard links.
  11565. LN_S=$lt_LN_S
  11566. # What is the maximum length of a command?
  11567. max_cmd_len=$max_cmd_len
  11568. # Object file suffix (normally "o").
  11569. objext=$ac_objext
  11570. # Executable file suffix (normally "").
  11571. exeext=$exeext
  11572. # whether the shell understands "unset".
  11573. lt_unset=$lt_unset
  11574. # turn spaces into newlines.
  11575. SP2NL=$lt_lt_SP2NL
  11576. # turn newlines into spaces.
  11577. NL2SP=$lt_lt_NL2SP
  11578. # Method to check whether dependent libraries are shared objects.
  11579. deplibs_check_method=$lt_deplibs_check_method
  11580. # Command to use when deplibs_check_method == "file_magic".
  11581. file_magic_cmd=$lt_file_magic_cmd
  11582. # The archiver.
  11583. AR=$lt_AR
  11584. AR_FLAGS=$lt_AR_FLAGS
  11585. # A symbol stripping program.
  11586. STRIP=$lt_STRIP
  11587. # Commands used to install an old-style archive.
  11588. RANLIB=$lt_RANLIB
  11589. old_postinstall_cmds=$lt_old_postinstall_cmds
  11590. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  11591. # Whether to use a lock for old archive extraction.
  11592. lock_old_archive_extraction=$lock_old_archive_extraction
  11593. # A C compiler.
  11594. LTCC=$lt_CC
  11595. # LTCC compiler flags.
  11596. LTCFLAGS=$lt_CFLAGS
  11597. # Take the output of nm and produce a listing of raw symbols and C names.
  11598. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  11599. # Transform the output of nm in a proper C declaration.
  11600. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  11601. # Transform the output of nm in a C name address pair.
  11602. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  11603. # Transform the output of nm in a C name address pair when lib prefix is needed.
  11604. global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
  11605. # The name of the directory that contains temporary libtool files.
  11606. objdir=$objdir
  11607. # Used to examine libraries when file_magic_cmd begins with "file".
  11608. MAGIC_CMD=$MAGIC_CMD
  11609. # Must we lock files when doing compilation?
  11610. need_locks=$lt_need_locks
  11611. # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
  11612. DSYMUTIL=$lt_DSYMUTIL
  11613. # Tool to change global to local symbols on Mac OS X.
  11614. NMEDIT=$lt_NMEDIT
  11615. # Tool to manipulate fat objects and archives on Mac OS X.
  11616. LIPO=$lt_LIPO
  11617. # ldd/readelf like tool for Mach-O binaries on Mac OS X.
  11618. OTOOL=$lt_OTOOL
  11619. # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
  11620. OTOOL64=$lt_OTOOL64
  11621. # Old archive suffix (normally "a").
  11622. libext=$libext
  11623. # Shared library suffix (normally ".so").
  11624. shrext_cmds=$lt_shrext_cmds
  11625. # The commands to extract the exported symbol list from a shared archive.
  11626. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  11627. # Variables whose values should be saved in libtool wrapper scripts and
  11628. # restored at link time.
  11629. variables_saved_for_relink=$lt_variables_saved_for_relink
  11630. # Do we need the "lib" prefix for modules?
  11631. need_lib_prefix=$need_lib_prefix
  11632. # Do we need a version for libraries?
  11633. need_version=$need_version
  11634. # Library versioning type.
  11635. version_type=$version_type
  11636. # Shared library runtime path variable.
  11637. runpath_var=$runpath_var
  11638. # Shared library path variable.
  11639. shlibpath_var=$shlibpath_var
  11640. # Is shlibpath searched before the hard-coded library search path?
  11641. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  11642. # Format of library name prefix.
  11643. libname_spec=$lt_libname_spec
  11644. # List of archive names. First name is the real one, the rest are links.
  11645. # The last name is the one that the linker finds with -lNAME
  11646. library_names_spec=$lt_library_names_spec
  11647. # The coded name of the library, if different from the real name.
  11648. soname_spec=$lt_soname_spec
  11649. # Permission mode override for installation of shared libraries.
  11650. install_override_mode=$lt_install_override_mode
  11651. # Command to use after installation of a shared archive.
  11652. postinstall_cmds=$lt_postinstall_cmds
  11653. # Command to use after uninstallation of a shared archive.
  11654. postuninstall_cmds=$lt_postuninstall_cmds
  11655. # Commands used to finish a libtool library installation in a directory.
  11656. finish_cmds=$lt_finish_cmds
  11657. # As "finish_cmds", except a single script fragment to be evaled but
  11658. # not shown.
  11659. finish_eval=$lt_finish_eval
  11660. # Whether we should hardcode library paths into libraries.
  11661. hardcode_into_libs=$hardcode_into_libs
  11662. # Compile-time system search path for libraries.
  11663. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  11664. # Run-time system search path for libraries.
  11665. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  11666. # Whether dlopen is supported.
  11667. dlopen_support=$enable_dlopen
  11668. # Whether dlopen of programs is supported.
  11669. dlopen_self=$enable_dlopen_self
  11670. # Whether dlopen of statically linked programs is supported.
  11671. dlopen_self_static=$enable_dlopen_self_static
  11672. # Commands to strip libraries.
  11673. old_striplib=$lt_old_striplib
  11674. striplib=$lt_striplib
  11675. # The linker used to build libraries.
  11676. LD=$lt_LD
  11677. # How to create reloadable object files.
  11678. reload_flag=$lt_reload_flag
  11679. reload_cmds=$lt_reload_cmds
  11680. # Commands used to build an old-style archive.
  11681. old_archive_cmds=$lt_old_archive_cmds
  11682. # A language specific compiler.
  11683. CC=$lt_compiler
  11684. # Is the compiler the GNU compiler?
  11685. with_gcc=$GCC
  11686. # Compiler flag to turn off builtin functions.
  11687. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
  11688. # How to pass a linker flag through the compiler.
  11689. wl=$lt_lt_prog_compiler_wl
  11690. # Additional compiler flags for building library objects.
  11691. pic_flag=$lt_lt_prog_compiler_pic
  11692. # Compiler flag to prevent dynamic linking.
  11693. link_static_flag=$lt_lt_prog_compiler_static
  11694. # Does compiler simultaneously support -c and -o options?
  11695. compiler_c_o=$lt_lt_cv_prog_compiler_c_o
  11696. # Whether or not to add -lc for building shared libraries.
  11697. build_libtool_need_lc=$archive_cmds_need_lc
  11698. # Whether or not to disallow shared libs when runtime libs are static.
  11699. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
  11700. # Compiler flag to allow reflexive dlopens.
  11701. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
  11702. # Compiler flag to generate shared objects directly from archives.
  11703. whole_archive_flag_spec=$lt_whole_archive_flag_spec
  11704. # Whether the compiler copes with passing no objects directly.
  11705. compiler_needs_object=$lt_compiler_needs_object
  11706. # Create an old-style archive from a shared archive.
  11707. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
  11708. # Create a temporary old-style archive to link instead of a shared archive.
  11709. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
  11710. # Commands used to build a shared archive.
  11711. archive_cmds=$lt_archive_cmds
  11712. archive_expsym_cmds=$lt_archive_expsym_cmds
  11713. # Commands used to build a loadable module if different from building
  11714. # a shared archive.
  11715. module_cmds=$lt_module_cmds
  11716. module_expsym_cmds=$lt_module_expsym_cmds
  11717. # Whether we are building with GNU ld or not.
  11718. with_gnu_ld=$lt_with_gnu_ld
  11719. # Flag that allows shared libraries with undefined symbols to be built.
  11720. allow_undefined_flag=$lt_allow_undefined_flag
  11721. # Flag that enforces no undefined symbols.
  11722. no_undefined_flag=$lt_no_undefined_flag
  11723. # Flag to hardcode \$libdir into a binary during linking.
  11724. # This must work even if \$libdir does not exist
  11725. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
  11726. # If ld is used when linking, flag to hardcode \$libdir into a binary
  11727. # during linking. This must work even if \$libdir does not exist.
  11728. hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
  11729. # Whether we need a single "-rpath" flag with a separated argument.
  11730. hardcode_libdir_separator=$lt_hardcode_libdir_separator
  11731. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  11732. # DIR into the resulting binary.
  11733. hardcode_direct=$hardcode_direct
  11734. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  11735. # DIR into the resulting binary and the resulting library dependency is
  11736. # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
  11737. # library is relocated.
  11738. hardcode_direct_absolute=$hardcode_direct_absolute
  11739. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  11740. # into the resulting binary.
  11741. hardcode_minus_L=$hardcode_minus_L
  11742. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  11743. # into the resulting binary.
  11744. hardcode_shlibpath_var=$hardcode_shlibpath_var
  11745. # Set to "yes" if building a shared library automatically hardcodes DIR
  11746. # into the library and all subsequent libraries and executables linked
  11747. # against it.
  11748. hardcode_automatic=$hardcode_automatic
  11749. # Set to yes if linker adds runtime paths of dependent libraries
  11750. # to runtime path list.
  11751. inherit_rpath=$inherit_rpath
  11752. # Whether libtool must link a program against all its dependency libraries.
  11753. link_all_deplibs=$link_all_deplibs
  11754. # Fix the shell variable \$srcfile for the compiler.
  11755. fix_srcfile_path=$lt_fix_srcfile_path
  11756. # Set to "yes" if exported symbols are required.
  11757. always_export_symbols=$always_export_symbols
  11758. # The commands to list exported symbols.
  11759. export_symbols_cmds=$lt_export_symbols_cmds
  11760. # Symbols that should not be listed in the preloaded symbols.
  11761. exclude_expsyms=$lt_exclude_expsyms
  11762. # Symbols that must always be exported.
  11763. include_expsyms=$lt_include_expsyms
  11764. # Commands necessary for linking programs (against libraries) with templates.
  11765. prelink_cmds=$lt_prelink_cmds
  11766. # Specify filename containing input files.
  11767. file_list_spec=$lt_file_list_spec
  11768. # How to hardcode a shared library path into an executable.
  11769. hardcode_action=$hardcode_action
  11770. # ### END LIBTOOL CONFIG
  11771. _LT_EOF
  11772. case $host_os in
  11773. aix3*)
  11774. cat <<\_LT_EOF >> "$cfgfile"
  11775. # AIX sometimes has problems with the GCC collect2 program. For some
  11776. # reason, if we set the COLLECT_NAMES environment variable, the problems
  11777. # vanish in a puff of smoke.
  11778. if test "X${COLLECT_NAMES+set}" != Xset; then
  11779. COLLECT_NAMES=
  11780. export COLLECT_NAMES
  11781. fi
  11782. _LT_EOF
  11783. ;;
  11784. esac
  11785. ltmain="$ac_aux_dir/ltmain.sh"
  11786. # We use sed instead of cat because bash on DJGPP gets confused if
  11787. # if finds mixed CR/LF and LF-only lines. Since sed operates in
  11788. # text mode, it properly converts lines to CR/LF. This bash problem
  11789. # is reportedly fixed, but why not run on old versions too?
  11790. sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
  11791. || (rm -f "$cfgfile"; exit 1)
  11792. case $xsi_shell in
  11793. yes)
  11794. cat << \_LT_EOF >> "$cfgfile"
  11795. # func_dirname file append nondir_replacement
  11796. # Compute the dirname of FILE. If nonempty, add APPEND to the result,
  11797. # otherwise set result to NONDIR_REPLACEMENT.
  11798. func_dirname ()
  11799. {
  11800. case ${1} in
  11801. */*) func_dirname_result="${1%/*}${2}" ;;
  11802. * ) func_dirname_result="${3}" ;;
  11803. esac
  11804. }
  11805. # func_basename file
  11806. func_basename ()
  11807. {
  11808. func_basename_result="${1##*/}"
  11809. }
  11810. # func_dirname_and_basename file append nondir_replacement
  11811. # perform func_basename and func_dirname in a single function
  11812. # call:
  11813. # dirname: Compute the dirname of FILE. If nonempty,
  11814. # add APPEND to the result, otherwise set result
  11815. # to NONDIR_REPLACEMENT.
  11816. # value returned in "$func_dirname_result"
  11817. # basename: Compute filename of FILE.
  11818. # value retuned in "$func_basename_result"
  11819. # Implementation must be kept synchronized with func_dirname
  11820. # and func_basename. For efficiency, we do not delegate to
  11821. # those functions but instead duplicate the functionality here.
  11822. func_dirname_and_basename ()
  11823. {
  11824. case ${1} in
  11825. */*) func_dirname_result="${1%/*}${2}" ;;
  11826. * ) func_dirname_result="${3}" ;;
  11827. esac
  11828. func_basename_result="${1##*/}"
  11829. }
  11830. # func_stripname prefix suffix name
  11831. # strip PREFIX and SUFFIX off of NAME.
  11832. # PREFIX and SUFFIX must not contain globbing or regex special
  11833. # characters, hashes, percent signs, but SUFFIX may contain a leading
  11834. # dot (in which case that matches only a dot).
  11835. func_stripname ()
  11836. {
  11837. # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
  11838. # positional parameters, so assign one to ordinary parameter first.
  11839. func_stripname_result=${3}
  11840. func_stripname_result=${func_stripname_result#"${1}"}
  11841. func_stripname_result=${func_stripname_result%"${2}"}
  11842. }
  11843. # func_opt_split
  11844. func_opt_split ()
  11845. {
  11846. func_opt_split_opt=${1%%=*}
  11847. func_opt_split_arg=${1#*=}
  11848. }
  11849. # func_lo2o object
  11850. func_lo2o ()
  11851. {
  11852. case ${1} in
  11853. *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
  11854. *) func_lo2o_result=${1} ;;
  11855. esac
  11856. }
  11857. # func_xform libobj-or-source
  11858. func_xform ()
  11859. {
  11860. func_xform_result=${1%.*}.lo
  11861. }
  11862. # func_arith arithmetic-term...
  11863. func_arith ()
  11864. {
  11865. func_arith_result=$(( $* ))
  11866. }
  11867. # func_len string
  11868. # STRING may not start with a hyphen.
  11869. func_len ()
  11870. {
  11871. func_len_result=${#1}
  11872. }
  11873. _LT_EOF
  11874. ;;
  11875. *) # Bourne compatible functions.
  11876. cat << \_LT_EOF >> "$cfgfile"
  11877. # func_dirname file append nondir_replacement
  11878. # Compute the dirname of FILE. If nonempty, add APPEND to the result,
  11879. # otherwise set result to NONDIR_REPLACEMENT.
  11880. func_dirname ()
  11881. {
  11882. # Extract subdirectory from the argument.
  11883. func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
  11884. if test "X$func_dirname_result" = "X${1}"; then
  11885. func_dirname_result="${3}"
  11886. else
  11887. func_dirname_result="$func_dirname_result${2}"
  11888. fi
  11889. }
  11890. # func_basename file
  11891. func_basename ()
  11892. {
  11893. func_basename_result=`$ECHO "${1}" | $SED "$basename"`
  11894. }
  11895. # func_stripname prefix suffix name
  11896. # strip PREFIX and SUFFIX off of NAME.
  11897. # PREFIX and SUFFIX must not contain globbing or regex special
  11898. # characters, hashes, percent signs, but SUFFIX may contain a leading
  11899. # dot (in which case that matches only a dot).
  11900. # func_strip_suffix prefix name
  11901. func_stripname ()
  11902. {
  11903. case ${2} in
  11904. .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
  11905. *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
  11906. esac
  11907. }
  11908. # sed scripts:
  11909. my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
  11910. my_sed_long_arg='1s/^-[^=]*=//'
  11911. # func_opt_split
  11912. func_opt_split ()
  11913. {
  11914. func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
  11915. func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
  11916. }
  11917. # func_lo2o object
  11918. func_lo2o ()
  11919. {
  11920. func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
  11921. }
  11922. # func_xform libobj-or-source
  11923. func_xform ()
  11924. {
  11925. func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
  11926. }
  11927. # func_arith arithmetic-term...
  11928. func_arith ()
  11929. {
  11930. func_arith_result=`expr "$@"`
  11931. }
  11932. # func_len string
  11933. # STRING may not start with a hyphen.
  11934. func_len ()
  11935. {
  11936. func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
  11937. }
  11938. _LT_EOF
  11939. esac
  11940. case $lt_shell_append in
  11941. yes)
  11942. cat << \_LT_EOF >> "$cfgfile"
  11943. # func_append var value
  11944. # Append VALUE to the end of shell variable VAR.
  11945. func_append ()
  11946. {
  11947. eval "$1+=\$2"
  11948. }
  11949. _LT_EOF
  11950. ;;
  11951. *)
  11952. cat << \_LT_EOF >> "$cfgfile"
  11953. # func_append var value
  11954. # Append VALUE to the end of shell variable VAR.
  11955. func_append ()
  11956. {
  11957. eval "$1=\$$1\$2"
  11958. }
  11959. _LT_EOF
  11960. ;;
  11961. esac
  11962. sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
  11963. || (rm -f "$cfgfile"; exit 1)
  11964. mv -f "$cfgfile" "$ofile" ||
  11965. (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  11966. chmod +x "$ofile"
  11967. ;;
  11968. esac
  11969. done # for ac_tag
  11970. as_fn_exit 0
  11971. _ACEOF
  11972. ac_clean_files=$ac_clean_files_save
  11973. test $ac_write_fail = 0 ||
  11974. as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
  11975. # configure is writing to config.log, and then calls config.status.
  11976. # config.status does its own redirection, appending to config.log.
  11977. # Unfortunately, on DOS this fails, as config.log is still kept open
  11978. # by configure, so config.status won't be able to write to it; its
  11979. # output is simply discarded. So we exec the FD to /dev/null,
  11980. # effectively closing config.log, so it can be properly (re)opened and
  11981. # appended to by config.status. When coming back to configure, we
  11982. # need to make the FD available again.
  11983. if test "$no_create" != yes; then
  11984. ac_cs_success=:
  11985. ac_config_status_args=
  11986. test "$silent" = yes &&
  11987. ac_config_status_args="$ac_config_status_args --quiet"
  11988. exec 5>/dev/null
  11989. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  11990. exec 5>>config.log
  11991. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  11992. # would make configure fail if this is the last instruction.
  11993. $ac_cs_success || as_fn_exit 1
  11994. fi
  11995. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  11996. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  11997. $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  11998. fi