configure 568 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104121051210612107121081210912110121111211212113121141211512116121171211812119121201212112122121231212412125121261212712128121291213012131121321213312134121351213612137121381213912140121411214212143121441214512146121471214812149121501215112152121531215412155121561215712158121591216012161121621216312164121651216612167121681216912170121711217212173121741217512176121771217812179121801218112182121831218412185121861218712188121891219012191121921219312194121951219612197121981219912200122011220212203122041220512206122071220812209122101221112212122131221412215122161221712218122191222012221122221222312224122251222612227122281222912230122311223212233122341223512236122371223812239122401224112242122431224412245122461224712248122491225012251122521225312254122551225612257122581225912260122611226212263122641226512266122671226812269122701227112272122731227412275122761227712278122791228012281122821228312284122851228612287122881228912290122911229212293122941229512296122971229812299123001230112302123031230412305123061230712308123091231012311123121231312314123151231612317123181231912320123211232212323123241232512326123271232812329123301233112332123331233412335123361233712338123391234012341123421234312344123451234612347123481234912350123511235212353123541235512356123571235812359123601236112362123631236412365123661236712368123691237012371123721237312374123751237612377123781237912380123811238212383123841238512386123871238812389123901239112392123931239412395123961239712398123991240012401124021240312404124051240612407124081240912410124111241212413124141241512416124171241812419124201242112422124231242412425124261242712428124291243012431124321243312434124351243612437124381243912440124411244212443124441244512446124471244812449124501245112452124531245412455124561245712458124591246012461124621246312464124651246612467124681246912470124711247212473124741247512476124771247812479124801248112482124831248412485124861248712488124891249012491124921249312494124951249612497124981249912500125011250212503125041250512506125071250812509125101251112512125131251412515125161251712518125191252012521125221252312524125251252612527125281252912530125311253212533125341253512536125371253812539125401254112542125431254412545125461254712548125491255012551125521255312554125551255612557125581255912560125611256212563125641256512566125671256812569125701257112572125731257412575125761257712578125791258012581125821258312584125851258612587125881258912590125911259212593125941259512596125971259812599126001260112602126031260412605126061260712608126091261012611126121261312614126151261612617126181261912620126211262212623126241262512626126271262812629126301263112632126331263412635126361263712638126391264012641126421264312644126451264612647126481264912650126511265212653126541265512656126571265812659126601266112662126631266412665126661266712668126691267012671126721267312674126751267612677126781267912680126811268212683126841268512686126871268812689126901269112692126931269412695126961269712698126991270012701127021270312704127051270612707127081270912710127111271212713127141271512716127171271812719127201272112722127231272412725127261272712728127291273012731127321273312734127351273612737127381273912740127411274212743127441274512746127471274812749127501275112752127531275412755127561275712758127591276012761127621276312764127651276612767127681276912770127711277212773127741277512776127771277812779127801278112782127831278412785127861278712788127891279012791127921279312794127951279612797127981279912800128011280212803128041280512806128071280812809128101281112812128131281412815128161281712818128191282012821128221282312824128251282612827128281282912830128311283212833128341283512836128371283812839128401284112842128431284412845128461284712848128491285012851128521285312854128551285612857128581285912860128611286212863128641286512866128671286812869128701287112872128731287412875128761287712878128791288012881128821288312884128851288612887128881288912890128911289212893128941289512896128971289812899129001290112902129031290412905129061290712908129091291012911129121291312914129151291612917129181291912920129211292212923129241292512926129271292812929129301293112932129331293412935129361293712938129391294012941129421294312944129451294612947129481294912950129511295212953129541295512956129571295812959129601296112962129631296412965129661296712968129691297012971129721297312974129751297612977129781297912980129811298212983129841298512986129871298812989129901299112992129931299412995129961299712998129991300013001130021300313004130051300613007130081300913010130111301213013130141301513016130171301813019130201302113022130231302413025130261302713028130291303013031130321303313034130351303613037130381303913040130411304213043130441304513046130471304813049130501305113052130531305413055130561305713058130591306013061130621306313064130651306613067130681306913070130711307213073130741307513076130771307813079130801308113082130831308413085130861308713088130891309013091130921309313094130951309613097130981309913100131011310213103131041310513106131071310813109131101311113112131131311413115131161311713118131191312013121131221312313124131251312613127131281312913130131311313213133131341313513136131371313813139131401314113142131431314413145131461314713148131491315013151131521315313154131551315613157131581315913160131611316213163131641316513166131671316813169131701317113172131731317413175131761317713178131791318013181131821318313184131851318613187131881318913190131911319213193131941319513196131971319813199132001320113202132031320413205132061320713208132091321013211132121321313214132151321613217132181321913220132211322213223132241322513226132271322813229132301323113232132331323413235132361323713238132391324013241132421324313244132451324613247132481324913250132511325213253132541325513256132571325813259132601326113262132631326413265132661326713268132691327013271132721327313274132751327613277132781327913280132811328213283132841328513286132871328813289132901329113292132931329413295132961329713298132991330013301133021330313304133051330613307133081330913310133111331213313133141331513316133171331813319133201332113322133231332413325133261332713328133291333013331133321333313334133351333613337133381333913340133411334213343133441334513346133471334813349133501335113352133531335413355133561335713358133591336013361133621336313364133651336613367133681336913370133711337213373133741337513376133771337813379133801338113382133831338413385133861338713388133891339013391133921339313394133951339613397133981339913400134011340213403134041340513406134071340813409134101341113412134131341413415134161341713418134191342013421134221342313424134251342613427134281342913430134311343213433134341343513436134371343813439134401344113442134431344413445134461344713448134491345013451134521345313454134551345613457134581345913460134611346213463134641346513466134671346813469134701347113472134731347413475134761347713478134791348013481134821348313484134851348613487134881348913490134911349213493134941349513496134971349813499135001350113502135031350413505135061350713508135091351013511135121351313514135151351613517135181351913520135211352213523135241352513526135271352813529135301353113532135331353413535135361353713538135391354013541135421354313544135451354613547135481354913550135511355213553135541355513556135571355813559135601356113562135631356413565135661356713568135691357013571135721357313574135751357613577135781357913580135811358213583135841358513586135871358813589135901359113592135931359413595135961359713598135991360013601136021360313604136051360613607136081360913610136111361213613136141361513616136171361813619136201362113622136231362413625136261362713628136291363013631136321363313634136351363613637136381363913640136411364213643136441364513646136471364813649136501365113652136531365413655136561365713658136591366013661136621366313664136651366613667136681366913670136711367213673136741367513676136771367813679136801368113682136831368413685136861368713688136891369013691136921369313694136951369613697136981369913700137011370213703137041370513706137071370813709137101371113712137131371413715137161371713718137191372013721137221372313724137251372613727137281372913730137311373213733137341373513736137371373813739137401374113742137431374413745137461374713748137491375013751137521375313754137551375613757137581375913760137611376213763137641376513766137671376813769137701377113772137731377413775137761377713778137791378013781137821378313784137851378613787137881378913790137911379213793137941379513796137971379813799138001380113802138031380413805138061380713808138091381013811138121381313814138151381613817138181381913820138211382213823138241382513826138271382813829138301383113832138331383413835138361383713838138391384013841138421384313844138451384613847138481384913850138511385213853138541385513856138571385813859138601386113862138631386413865138661386713868138691387013871138721387313874138751387613877138781387913880138811388213883138841388513886138871388813889138901389113892138931389413895138961389713898138991390013901139021390313904139051390613907139081390913910139111391213913139141391513916139171391813919139201392113922139231392413925139261392713928139291393013931139321393313934139351393613937139381393913940139411394213943139441394513946139471394813949139501395113952139531395413955139561395713958139591396013961139621396313964139651396613967139681396913970139711397213973139741397513976139771397813979139801398113982139831398413985139861398713988139891399013991139921399313994139951399613997139981399914000140011400214003140041400514006140071400814009140101401114012140131401414015140161401714018140191402014021140221402314024140251402614027140281402914030140311403214033140341403514036140371403814039140401404114042140431404414045140461404714048140491405014051140521405314054140551405614057140581405914060140611406214063140641406514066140671406814069140701407114072140731407414075140761407714078140791408014081140821408314084140851408614087140881408914090140911409214093140941409514096140971409814099141001410114102141031410414105141061410714108141091411014111141121411314114141151411614117141181411914120141211412214123141241412514126141271412814129141301413114132141331413414135141361413714138141391414014141141421414314144141451414614147141481414914150141511415214153141541415514156141571415814159141601416114162141631416414165141661416714168141691417014171141721417314174141751417614177141781417914180141811418214183141841418514186141871418814189141901419114192141931419414195141961419714198141991420014201142021420314204142051420614207142081420914210142111421214213142141421514216142171421814219142201422114222142231422414225142261422714228142291423014231142321423314234142351423614237142381423914240142411424214243142441424514246142471424814249142501425114252142531425414255142561425714258142591426014261142621426314264142651426614267142681426914270142711427214273142741427514276142771427814279142801428114282142831428414285142861428714288142891429014291142921429314294142951429614297142981429914300143011430214303143041430514306143071430814309143101431114312143131431414315143161431714318143191432014321143221432314324143251432614327143281432914330143311433214333143341433514336143371433814339143401434114342143431434414345143461434714348143491435014351143521435314354143551435614357143581435914360143611436214363143641436514366143671436814369143701437114372143731437414375143761437714378143791438014381143821438314384143851438614387143881438914390143911439214393143941439514396143971439814399144001440114402144031440414405144061440714408144091441014411144121441314414144151441614417144181441914420144211442214423144241442514426144271442814429144301443114432144331443414435144361443714438144391444014441144421444314444144451444614447144481444914450144511445214453144541445514456144571445814459144601446114462144631446414465144661446714468144691447014471144721447314474144751447614477144781447914480144811448214483144841448514486144871448814489144901449114492144931449414495144961449714498144991450014501145021450314504145051450614507145081450914510145111451214513145141451514516145171451814519145201452114522145231452414525145261452714528145291453014531145321453314534145351453614537145381453914540145411454214543145441454514546145471454814549145501455114552145531455414555145561455714558145591456014561145621456314564145651456614567145681456914570145711457214573145741457514576145771457814579145801458114582145831458414585145861458714588145891459014591145921459314594145951459614597145981459914600146011460214603146041460514606146071460814609146101461114612146131461414615146161461714618146191462014621146221462314624146251462614627146281462914630146311463214633146341463514636146371463814639146401464114642146431464414645146461464714648146491465014651146521465314654146551465614657146581465914660146611466214663146641466514666146671466814669146701467114672146731467414675146761467714678146791468014681146821468314684146851468614687146881468914690146911469214693146941469514696146971469814699147001470114702147031470414705147061470714708147091471014711147121471314714147151471614717147181471914720147211472214723147241472514726147271472814729147301473114732147331473414735147361473714738147391474014741147421474314744147451474614747147481474914750147511475214753147541475514756147571475814759147601476114762147631476414765147661476714768147691477014771147721477314774147751477614777147781477914780147811478214783147841478514786147871478814789147901479114792147931479414795147961479714798147991480014801148021480314804148051480614807148081480914810148111481214813148141481514816148171481814819148201482114822148231482414825148261482714828148291483014831148321483314834148351483614837148381483914840148411484214843148441484514846148471484814849148501485114852148531485414855148561485714858148591486014861148621486314864148651486614867148681486914870148711487214873148741487514876148771487814879148801488114882148831488414885148861488714888148891489014891148921489314894148951489614897148981489914900149011490214903149041490514906149071490814909149101491114912149131491414915149161491714918149191492014921149221492314924149251492614927149281492914930149311493214933149341493514936149371493814939149401494114942149431494414945149461494714948149491495014951149521495314954149551495614957149581495914960149611496214963149641496514966149671496814969149701497114972149731497414975149761497714978149791498014981149821498314984149851498614987149881498914990149911499214993149941499514996149971499814999150001500115002150031500415005150061500715008150091501015011150121501315014150151501615017150181501915020150211502215023150241502515026150271502815029150301503115032150331503415035150361503715038150391504015041150421504315044150451504615047150481504915050150511505215053150541505515056150571505815059150601506115062150631506415065150661506715068150691507015071150721507315074150751507615077150781507915080150811508215083150841508515086150871508815089150901509115092150931509415095150961509715098150991510015101151021510315104151051510615107151081510915110151111511215113151141511515116151171511815119151201512115122151231512415125151261512715128151291513015131151321513315134151351513615137151381513915140151411514215143151441514515146151471514815149151501515115152151531515415155151561515715158151591516015161151621516315164151651516615167151681516915170151711517215173151741517515176151771517815179151801518115182151831518415185151861518715188151891519015191151921519315194151951519615197151981519915200152011520215203152041520515206152071520815209152101521115212152131521415215152161521715218152191522015221152221522315224152251522615227152281522915230152311523215233152341523515236152371523815239152401524115242152431524415245152461524715248152491525015251152521525315254152551525615257152581525915260152611526215263152641526515266152671526815269152701527115272152731527415275152761527715278152791528015281152821528315284152851528615287152881528915290152911529215293152941529515296152971529815299153001530115302153031530415305153061530715308153091531015311153121531315314153151531615317153181531915320153211532215323153241532515326153271532815329153301533115332153331533415335153361533715338153391534015341153421534315344153451534615347153481534915350153511535215353153541535515356153571535815359153601536115362153631536415365153661536715368153691537015371153721537315374153751537615377153781537915380153811538215383153841538515386153871538815389153901539115392153931539415395153961539715398153991540015401154021540315404154051540615407154081540915410154111541215413154141541515416154171541815419154201542115422154231542415425154261542715428154291543015431154321543315434154351543615437154381543915440154411544215443154441544515446154471544815449154501545115452154531545415455154561545715458154591546015461154621546315464154651546615467154681546915470154711547215473154741547515476154771547815479154801548115482154831548415485154861548715488154891549015491154921549315494154951549615497154981549915500155011550215503155041550515506155071550815509155101551115512155131551415515155161551715518155191552015521155221552315524155251552615527155281552915530155311553215533155341553515536155371553815539155401554115542155431554415545155461554715548155491555015551155521555315554155551555615557155581555915560155611556215563155641556515566155671556815569155701557115572155731557415575155761557715578155791558015581155821558315584155851558615587155881558915590155911559215593155941559515596155971559815599156001560115602156031560415605156061560715608156091561015611156121561315614156151561615617156181561915620156211562215623156241562515626156271562815629156301563115632156331563415635156361563715638156391564015641156421564315644156451564615647156481564915650156511565215653156541565515656156571565815659156601566115662156631566415665156661566715668156691567015671156721567315674156751567615677156781567915680156811568215683156841568515686156871568815689156901569115692156931569415695156961569715698156991570015701157021570315704157051570615707157081570915710157111571215713157141571515716157171571815719157201572115722157231572415725157261572715728157291573015731157321573315734157351573615737157381573915740157411574215743157441574515746157471574815749157501575115752157531575415755157561575715758157591576015761157621576315764157651576615767157681576915770157711577215773157741577515776157771577815779157801578115782157831578415785157861578715788157891579015791157921579315794157951579615797157981579915800158011580215803158041580515806158071580815809158101581115812158131581415815158161581715818158191582015821158221582315824158251582615827158281582915830158311583215833158341583515836158371583815839158401584115842158431584415845158461584715848158491585015851158521585315854158551585615857158581585915860158611586215863158641586515866158671586815869158701587115872158731587415875158761587715878158791588015881158821588315884158851588615887158881588915890158911589215893158941589515896158971589815899159001590115902159031590415905159061590715908159091591015911159121591315914159151591615917159181591915920159211592215923159241592515926159271592815929159301593115932159331593415935159361593715938159391594015941159421594315944159451594615947159481594915950159511595215953159541595515956159571595815959159601596115962159631596415965159661596715968159691597015971159721597315974159751597615977159781597915980159811598215983159841598515986159871598815989159901599115992159931599415995159961599715998159991600016001160021600316004160051600616007160081600916010160111601216013160141601516016160171601816019160201602116022160231602416025160261602716028160291603016031160321603316034160351603616037160381603916040160411604216043160441604516046160471604816049160501605116052160531605416055160561605716058160591606016061160621606316064160651606616067160681606916070160711607216073160741607516076160771607816079160801608116082160831608416085160861608716088160891609016091160921609316094160951609616097160981609916100161011610216103161041610516106161071610816109161101611116112161131611416115161161611716118161191612016121161221612316124161251612616127161281612916130161311613216133161341613516136161371613816139161401614116142161431614416145161461614716148161491615016151161521615316154161551615616157161581615916160161611616216163161641616516166161671616816169161701617116172161731617416175161761617716178161791618016181161821618316184161851618616187161881618916190161911619216193161941619516196161971619816199162001620116202162031620416205162061620716208162091621016211162121621316214162151621616217162181621916220162211622216223162241622516226162271622816229162301623116232162331623416235162361623716238162391624016241162421624316244162451624616247162481624916250162511625216253162541625516256162571625816259162601626116262162631626416265162661626716268162691627016271162721627316274162751627616277162781627916280162811628216283162841628516286162871628816289162901629116292162931629416295162961629716298162991630016301163021630316304163051630616307163081630916310163111631216313163141631516316163171631816319163201632116322163231632416325163261632716328163291633016331163321633316334163351633616337163381633916340163411634216343163441634516346163471634816349163501635116352163531635416355163561635716358163591636016361163621636316364163651636616367163681636916370163711637216373163741637516376163771637816379163801638116382163831638416385163861638716388163891639016391163921639316394163951639616397163981639916400164011640216403164041640516406164071640816409164101641116412164131641416415164161641716418164191642016421164221642316424164251642616427164281642916430164311643216433164341643516436164371643816439164401644116442164431644416445164461644716448164491645016451164521645316454164551645616457164581645916460164611646216463164641646516466164671646816469164701647116472164731647416475164761647716478164791648016481164821648316484164851648616487164881648916490164911649216493164941649516496164971649816499165001650116502165031650416505165061650716508165091651016511165121651316514165151651616517165181651916520165211652216523165241652516526165271652816529165301653116532165331653416535165361653716538165391654016541165421654316544165451654616547165481654916550165511655216553165541655516556165571655816559165601656116562165631656416565165661656716568165691657016571165721657316574165751657616577165781657916580165811658216583165841658516586165871658816589165901659116592165931659416595165961659716598165991660016601166021660316604166051660616607166081660916610166111661216613166141661516616166171661816619166201662116622166231662416625166261662716628166291663016631166321663316634166351663616637166381663916640166411664216643166441664516646166471664816649166501665116652166531665416655166561665716658166591666016661166621666316664166651666616667166681666916670166711667216673166741667516676166771667816679166801668116682166831668416685166861668716688166891669016691166921669316694166951669616697166981669916700167011670216703167041670516706167071670816709167101671116712167131671416715167161671716718167191672016721167221672316724167251672616727167281672916730167311673216733167341673516736167371673816739167401674116742167431674416745167461674716748167491675016751167521675316754167551675616757167581675916760167611676216763167641676516766167671676816769167701677116772167731677416775167761677716778167791678016781167821678316784167851678616787167881678916790167911679216793167941679516796167971679816799168001680116802168031680416805168061680716808168091681016811168121681316814168151681616817168181681916820168211682216823168241682516826168271682816829168301683116832168331683416835168361683716838168391684016841168421684316844168451684616847168481684916850168511685216853168541685516856168571685816859168601686116862168631686416865168661686716868168691687016871168721687316874168751687616877168781687916880168811688216883168841688516886168871688816889168901689116892168931689416895168961689716898168991690016901169021690316904169051690616907169081690916910169111691216913169141691516916169171691816919169201692116922169231692416925169261692716928169291693016931169321693316934169351693616937169381693916940169411694216943169441694516946169471694816949169501695116952169531695416955169561695716958169591696016961169621696316964169651696616967169681696916970169711697216973169741697516976169771697816979169801698116982169831698416985169861698716988169891699016991169921699316994169951699616997169981699917000170011700217003170041700517006170071700817009170101701117012170131701417015170161701717018170191702017021170221702317024170251702617027170281702917030170311703217033170341703517036170371703817039170401704117042170431704417045170461704717048170491705017051170521705317054170551705617057170581705917060170611706217063170641706517066170671706817069170701707117072170731707417075170761707717078170791708017081170821708317084170851708617087170881708917090170911709217093170941709517096170971709817099171001710117102171031710417105171061710717108171091711017111171121711317114171151711617117171181711917120171211712217123171241712517126171271712817129171301713117132171331713417135171361713717138171391714017141171421714317144171451714617147171481714917150171511715217153171541715517156171571715817159171601716117162171631716417165171661716717168171691717017171171721717317174171751717617177171781717917180171811718217183171841718517186171871718817189171901719117192171931719417195171961719717198171991720017201172021720317204172051720617207172081720917210172111721217213172141721517216172171721817219172201722117222172231722417225172261722717228172291723017231172321723317234172351723617237172381723917240172411724217243172441724517246172471724817249172501725117252172531725417255172561725717258172591726017261172621726317264172651726617267172681726917270172711727217273172741727517276172771727817279172801728117282172831728417285172861728717288172891729017291172921729317294172951729617297172981729917300173011730217303173041730517306173071730817309173101731117312173131731417315173161731717318173191732017321173221732317324173251732617327173281732917330173311733217333173341733517336173371733817339173401734117342173431734417345173461734717348173491735017351173521735317354173551735617357173581735917360173611736217363173641736517366173671736817369173701737117372173731737417375173761737717378173791738017381173821738317384173851738617387173881738917390173911739217393173941739517396173971739817399174001740117402174031740417405174061740717408174091741017411174121741317414174151741617417174181741917420174211742217423174241742517426174271742817429174301743117432174331743417435174361743717438174391744017441174421744317444174451744617447174481744917450174511745217453174541745517456174571745817459174601746117462174631746417465174661746717468174691747017471174721747317474174751747617477174781747917480174811748217483174841748517486174871748817489174901749117492174931749417495174961749717498174991750017501175021750317504175051750617507175081750917510175111751217513175141751517516175171751817519175201752117522175231752417525175261752717528175291753017531175321753317534175351753617537175381753917540175411754217543175441754517546175471754817549175501755117552175531755417555175561755717558175591756017561175621756317564175651756617567175681756917570175711757217573175741757517576175771757817579175801758117582175831758417585175861758717588175891759017591175921759317594175951759617597175981759917600176011760217603176041760517606176071760817609176101761117612176131761417615176161761717618176191762017621176221762317624176251762617627176281762917630176311763217633176341763517636176371763817639176401764117642176431764417645176461764717648176491765017651176521765317654176551765617657176581765917660176611766217663176641766517666176671766817669176701767117672176731767417675176761767717678176791768017681176821768317684176851768617687176881768917690176911769217693176941769517696176971769817699177001770117702177031770417705177061770717708177091771017711177121771317714177151771617717177181771917720177211772217723177241772517726177271772817729177301773117732177331773417735177361773717738177391774017741177421774317744177451774617747177481774917750177511775217753177541775517756177571775817759177601776117762177631776417765177661776717768177691777017771177721777317774177751777617777177781777917780177811778217783177841778517786177871778817789177901779117792177931779417795177961779717798177991780017801178021780317804178051780617807178081780917810178111781217813178141781517816178171781817819178201782117822178231782417825178261782717828178291783017831178321783317834178351783617837178381783917840178411784217843178441784517846178471784817849178501785117852178531785417855178561785717858178591786017861178621786317864178651786617867178681786917870178711787217873178741787517876178771787817879178801788117882178831788417885178861788717888178891789017891178921789317894178951789617897178981789917900179011790217903179041790517906179071790817909179101791117912179131791417915179161791717918179191792017921179221792317924179251792617927179281792917930179311793217933179341793517936179371793817939179401794117942179431794417945179461794717948179491795017951179521795317954179551795617957179581795917960179611796217963179641796517966179671796817969179701797117972179731797417975179761797717978179791798017981179821798317984179851798617987179881798917990179911799217993179941799517996179971799817999180001800118002180031800418005180061800718008180091801018011180121801318014180151801618017180181801918020180211802218023180241802518026180271802818029180301803118032180331803418035180361803718038180391804018041180421804318044180451804618047180481804918050180511805218053180541805518056180571805818059180601806118062180631806418065180661806718068180691807018071180721807318074180751807618077180781807918080180811808218083180841808518086180871808818089180901809118092180931809418095180961809718098180991810018101181021810318104181051810618107181081810918110181111811218113181141811518116181171811818119181201812118122181231812418125181261812718128181291813018131181321813318134181351813618137181381813918140181411814218143181441814518146181471814818149181501815118152181531815418155181561815718158181591816018161181621816318164181651816618167181681816918170181711817218173181741817518176181771817818179181801818118182181831818418185181861818718188181891819018191181921819318194181951819618197181981819918200182011820218203182041820518206182071820818209182101821118212182131821418215182161821718218182191822018221182221822318224182251822618227182281822918230182311823218233182341823518236182371823818239182401824118242182431824418245182461824718248182491825018251182521825318254182551825618257182581825918260182611826218263182641826518266182671826818269182701827118272182731827418275182761827718278182791828018281182821828318284182851828618287182881828918290182911829218293182941829518296182971829818299183001830118302183031830418305183061830718308183091831018311183121831318314183151831618317183181831918320183211832218323183241832518326183271832818329183301833118332183331833418335183361833718338183391834018341183421834318344183451834618347183481834918350183511835218353183541835518356183571835818359183601836118362183631836418365183661836718368183691837018371183721837318374183751837618377183781837918380183811838218383183841838518386183871838818389183901839118392183931839418395183961839718398183991840018401184021840318404184051840618407184081840918410184111841218413184141841518416184171841818419184201842118422184231842418425184261842718428184291843018431184321843318434184351843618437184381843918440184411844218443184441844518446184471844818449184501845118452184531845418455184561845718458184591846018461184621846318464184651846618467184681846918470184711847218473184741847518476184771847818479184801848118482184831848418485184861848718488184891849018491184921849318494184951849618497184981849918500185011850218503185041850518506185071850818509185101851118512185131851418515185161851718518185191852018521185221852318524185251852618527185281852918530185311853218533185341853518536185371853818539185401854118542185431854418545185461854718548185491855018551185521855318554185551855618557185581855918560185611856218563185641856518566185671856818569185701857118572185731857418575185761857718578185791858018581185821858318584185851858618587185881858918590185911859218593185941859518596185971859818599186001860118602186031860418605186061860718608186091861018611186121861318614186151861618617186181861918620186211862218623186241862518626186271862818629186301863118632186331863418635186361863718638186391864018641186421864318644186451864618647186481864918650186511865218653186541865518656186571865818659186601866118662186631866418665186661866718668186691867018671186721867318674186751867618677186781867918680186811868218683186841868518686186871868818689186901869118692186931869418695186961869718698186991870018701187021870318704187051870618707187081870918710187111871218713187141871518716187171871818719187201872118722187231872418725187261872718728187291873018731187321873318734187351873618737187381873918740187411874218743187441874518746187471874818749187501875118752187531875418755187561875718758187591876018761187621876318764187651876618767187681876918770187711877218773187741877518776187771877818779187801878118782187831878418785187861878718788187891879018791187921879318794187951879618797187981879918800188011880218803188041880518806188071880818809188101881118812188131881418815188161881718818188191882018821188221882318824188251882618827188281882918830188311883218833188341883518836188371883818839188401884118842188431884418845188461884718848188491885018851188521885318854188551885618857188581885918860188611886218863188641886518866188671886818869188701887118872188731887418875188761887718878188791888018881188821888318884188851888618887188881888918890188911889218893188941889518896188971889818899189001890118902189031890418905189061890718908189091891018911189121891318914189151891618917189181891918920189211892218923189241892518926189271892818929189301893118932189331893418935189361893718938189391894018941189421894318944189451894618947189481894918950189511895218953189541895518956189571895818959189601896118962189631896418965189661896718968189691897018971189721897318974189751897618977189781897918980
  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.68 for klish 1.5.3.
  4. #
  5. # Report bugs to <serj.kalichev at gmail dot com>.
  6. #
  7. #
  8. # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
  9. # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
  10. # Foundation, Inc.
  11. #
  12. #
  13. # This configure script is free software; the Free Software Foundation
  14. # gives unlimited permission to copy, distribute and modify it.
  15. ## -------------------- ##
  16. ## M4sh Initialization. ##
  17. ## -------------------- ##
  18. # Be more Bourne compatible
  19. DUALCASE=1; export DUALCASE # for MKS sh
  20. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  21. emulate sh
  22. NULLCMD=:
  23. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  24. # is contrary to our usage. Disable this feature.
  25. alias -g '${1+"$@"}'='"$@"'
  26. setopt NO_GLOB_SUBST
  27. else
  28. case `(set -o) 2>/dev/null` in #(
  29. *posix*) :
  30. set -o posix ;; #(
  31. *) :
  32. ;;
  33. esac
  34. fi
  35. as_nl='
  36. '
  37. export as_nl
  38. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  39. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  40. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  41. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  42. # Prefer a ksh shell builtin over an external printf program on Solaris,
  43. # but without wasting forks for bash or zsh.
  44. if test -z "$BASH_VERSION$ZSH_VERSION" \
  45. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  46. as_echo='print -r --'
  47. as_echo_n='print -rn --'
  48. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  49. as_echo='printf %s\n'
  50. as_echo_n='printf %s'
  51. else
  52. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  53. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  54. as_echo_n='/usr/ucb/echo -n'
  55. else
  56. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  57. as_echo_n_body='eval
  58. arg=$1;
  59. case $arg in #(
  60. *"$as_nl"*)
  61. expr "X$arg" : "X\\(.*\\)$as_nl";
  62. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  63. esac;
  64. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  65. '
  66. export as_echo_n_body
  67. as_echo_n='sh -c $as_echo_n_body as_echo'
  68. fi
  69. export as_echo_body
  70. as_echo='sh -c $as_echo_body as_echo'
  71. fi
  72. # The user is always right.
  73. if test "${PATH_SEPARATOR+set}" != set; then
  74. PATH_SEPARATOR=:
  75. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  76. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  77. PATH_SEPARATOR=';'
  78. }
  79. fi
  80. # IFS
  81. # We need space, tab and new line, in precisely that order. Quoting is
  82. # there to prevent editors from complaining about space-tab.
  83. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  84. # splitting by setting IFS to empty value.)
  85. IFS=" "" $as_nl"
  86. # Find who we are. Look in the path if we contain no directory separator.
  87. as_myself=
  88. case $0 in #((
  89. *[\\/]* ) as_myself=$0 ;;
  90. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  91. for as_dir in $PATH
  92. do
  93. IFS=$as_save_IFS
  94. test -z "$as_dir" && as_dir=.
  95. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  96. done
  97. IFS=$as_save_IFS
  98. ;;
  99. esac
  100. # We did not find ourselves, most probably we were run as `sh COMMAND'
  101. # in which case we are not to be found in the path.
  102. if test "x$as_myself" = x; then
  103. as_myself=$0
  104. fi
  105. if test ! -f "$as_myself"; then
  106. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  107. exit 1
  108. fi
  109. # Unset variables that we do not need and which cause bugs (e.g. in
  110. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  111. # suppresses any "Segmentation fault" message there. '((' could
  112. # trigger a bug in pdksh 5.2.14.
  113. for as_var in BASH_ENV ENV MAIL MAILPATH
  114. do eval test x\${$as_var+set} = xset \
  115. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  116. done
  117. PS1='$ '
  118. PS2='> '
  119. PS4='+ '
  120. # NLS nuisances.
  121. LC_ALL=C
  122. export LC_ALL
  123. LANGUAGE=C
  124. export LANGUAGE
  125. # CDPATH.
  126. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  127. if test "x$CONFIG_SHELL" = x; then
  128. as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
  129. emulate sh
  130. NULLCMD=:
  131. # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
  132. # is contrary to our usage. Disable this feature.
  133. alias -g '\${1+\"\$@\"}'='\"\$@\"'
  134. setopt NO_GLOB_SUBST
  135. else
  136. case \`(set -o) 2>/dev/null\` in #(
  137. *posix*) :
  138. set -o posix ;; #(
  139. *) :
  140. ;;
  141. esac
  142. fi
  143. "
  144. as_required="as_fn_return () { (exit \$1); }
  145. as_fn_success () { as_fn_return 0; }
  146. as_fn_failure () { as_fn_return 1; }
  147. as_fn_ret_success () { return 0; }
  148. as_fn_ret_failure () { return 1; }
  149. exitcode=0
  150. as_fn_success || { exitcode=1; echo as_fn_success failed.; }
  151. as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
  152. as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
  153. as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
  154. if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
  155. else
  156. exitcode=1; echo positional parameters were not saved.
  157. fi
  158. test x\$exitcode = x0 || exit 1"
  159. as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
  160. as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
  161. eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
  162. test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
  163. test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
  164. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  165. ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
  166. ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
  167. PATH=/empty FPATH=/empty; export PATH FPATH
  168. test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
  169. || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
  170. test \$(( 1 + 1 )) = 2 || exit 1"
  171. if (eval "$as_required") 2>/dev/null; then :
  172. as_have_required=yes
  173. else
  174. as_have_required=no
  175. fi
  176. if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
  177. else
  178. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  179. as_found=false
  180. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  181. do
  182. IFS=$as_save_IFS
  183. test -z "$as_dir" && as_dir=.
  184. as_found=:
  185. case $as_dir in #(
  186. /*)
  187. for as_base in sh bash ksh sh5; do
  188. # Try only shells that exist, to save several forks.
  189. as_shell=$as_dir/$as_base
  190. if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
  191. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
  192. CONFIG_SHELL=$as_shell as_have_required=yes
  193. if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
  194. break 2
  195. fi
  196. fi
  197. done;;
  198. esac
  199. as_found=false
  200. done
  201. $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
  202. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
  203. CONFIG_SHELL=$SHELL as_have_required=yes
  204. fi; }
  205. IFS=$as_save_IFS
  206. if test "x$CONFIG_SHELL" != x; then :
  207. # We cannot yet assume a decent shell, so we have to provide a
  208. # neutralization value for shells without unset; and this also
  209. # works around shells that cannot unset nonexistent variables.
  210. # Preserve -v and -x to the replacement shell.
  211. BASH_ENV=/dev/null
  212. ENV=/dev/null
  213. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  214. export CONFIG_SHELL
  215. case $- in # ((((
  216. *v*x* | *x*v* ) as_opts=-vx ;;
  217. *v* ) as_opts=-v ;;
  218. *x* ) as_opts=-x ;;
  219. * ) as_opts= ;;
  220. esac
  221. exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
  222. fi
  223. if test x$as_have_required = xno; then :
  224. $as_echo "$0: This script requires a shell more modern than all"
  225. $as_echo "$0: the shells that I found on your system."
  226. if test x${ZSH_VERSION+set} = xset ; then
  227. $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
  228. $as_echo "$0: be upgraded to zsh 4.3.4 or later."
  229. else
  230. $as_echo "$0: Please tell bug-autoconf@gnu.org and serj.kalichev at
  231. $0: gmail dot com about your system, including any error
  232. $0: possibly output before this message. Then install a
  233. $0: modern shell, or manually run the script under such a
  234. $0: shell if you do have one."
  235. fi
  236. exit 1
  237. fi
  238. fi
  239. fi
  240. SHELL=${CONFIG_SHELL-/bin/sh}
  241. export SHELL
  242. # Unset more variables known to interfere with behavior of common tools.
  243. CLICOLOR_FORCE= GREP_OPTIONS=
  244. unset CLICOLOR_FORCE GREP_OPTIONS
  245. ## --------------------- ##
  246. ## M4sh Shell Functions. ##
  247. ## --------------------- ##
  248. # as_fn_unset VAR
  249. # ---------------
  250. # Portably unset VAR.
  251. as_fn_unset ()
  252. {
  253. { eval $1=; unset $1;}
  254. }
  255. as_unset=as_fn_unset
  256. # as_fn_set_status STATUS
  257. # -----------------------
  258. # Set $? to STATUS, without forking.
  259. as_fn_set_status ()
  260. {
  261. return $1
  262. } # as_fn_set_status
  263. # as_fn_exit STATUS
  264. # -----------------
  265. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  266. as_fn_exit ()
  267. {
  268. set +e
  269. as_fn_set_status $1
  270. exit $1
  271. } # as_fn_exit
  272. # as_fn_mkdir_p
  273. # -------------
  274. # Create "$as_dir" as a directory, including parents if necessary.
  275. as_fn_mkdir_p ()
  276. {
  277. case $as_dir in #(
  278. -*) as_dir=./$as_dir;;
  279. esac
  280. test -d "$as_dir" || eval $as_mkdir_p || {
  281. as_dirs=
  282. while :; do
  283. case $as_dir in #(
  284. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  285. *) as_qdir=$as_dir;;
  286. esac
  287. as_dirs="'$as_qdir' $as_dirs"
  288. as_dir=`$as_dirname -- "$as_dir" ||
  289. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  290. X"$as_dir" : 'X\(//\)[^/]' \| \
  291. X"$as_dir" : 'X\(//\)$' \| \
  292. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  293. $as_echo X"$as_dir" |
  294. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  295. s//\1/
  296. q
  297. }
  298. /^X\(\/\/\)[^/].*/{
  299. s//\1/
  300. q
  301. }
  302. /^X\(\/\/\)$/{
  303. s//\1/
  304. q
  305. }
  306. /^X\(\/\).*/{
  307. s//\1/
  308. q
  309. }
  310. s/.*/./; q'`
  311. test -d "$as_dir" && break
  312. done
  313. test -z "$as_dirs" || eval "mkdir $as_dirs"
  314. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  315. } # as_fn_mkdir_p
  316. # as_fn_append VAR VALUE
  317. # ----------------------
  318. # Append the text in VALUE to the end of the definition contained in VAR. Take
  319. # advantage of any shell optimizations that allow amortized linear growth over
  320. # repeated appends, instead of the typical quadratic growth present in naive
  321. # implementations.
  322. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  323. eval 'as_fn_append ()
  324. {
  325. eval $1+=\$2
  326. }'
  327. else
  328. as_fn_append ()
  329. {
  330. eval $1=\$$1\$2
  331. }
  332. fi # as_fn_append
  333. # as_fn_arith ARG...
  334. # ------------------
  335. # Perform arithmetic evaluation on the ARGs, and store the result in the
  336. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  337. # must be portable across $(()) and expr.
  338. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  339. eval 'as_fn_arith ()
  340. {
  341. as_val=$(( $* ))
  342. }'
  343. else
  344. as_fn_arith ()
  345. {
  346. as_val=`expr "$@" || test $? -eq 1`
  347. }
  348. fi # as_fn_arith
  349. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  350. # ----------------------------------------
  351. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  352. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  353. # script with STATUS, using 1 if that was 0.
  354. as_fn_error ()
  355. {
  356. as_status=$1; test $as_status -eq 0 && as_status=1
  357. if test "$4"; then
  358. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  359. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  360. fi
  361. $as_echo "$as_me: error: $2" >&2
  362. as_fn_exit $as_status
  363. } # as_fn_error
  364. if expr a : '\(a\)' >/dev/null 2>&1 &&
  365. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  366. as_expr=expr
  367. else
  368. as_expr=false
  369. fi
  370. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  371. as_basename=basename
  372. else
  373. as_basename=false
  374. fi
  375. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  376. as_dirname=dirname
  377. else
  378. as_dirname=false
  379. fi
  380. as_me=`$as_basename -- "$0" ||
  381. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  382. X"$0" : 'X\(//\)$' \| \
  383. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  384. $as_echo X/"$0" |
  385. sed '/^.*\/\([^/][^/]*\)\/*$/{
  386. s//\1/
  387. q
  388. }
  389. /^X\/\(\/\/\)$/{
  390. s//\1/
  391. q
  392. }
  393. /^X\/\(\/\).*/{
  394. s//\1/
  395. q
  396. }
  397. s/.*/./; q'`
  398. # Avoid depending upon Character Ranges.
  399. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  400. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  401. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  402. as_cr_digits='0123456789'
  403. as_cr_alnum=$as_cr_Letters$as_cr_digits
  404. as_lineno_1=$LINENO as_lineno_1a=$LINENO
  405. as_lineno_2=$LINENO as_lineno_2a=$LINENO
  406. eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
  407. test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
  408. # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
  409. sed -n '
  410. p
  411. /[$]LINENO/=
  412. ' <$as_myself |
  413. sed '
  414. s/[$]LINENO.*/&-/
  415. t lineno
  416. b
  417. :lineno
  418. N
  419. :loop
  420. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  421. t loop
  422. s/-\n.*//
  423. ' >$as_me.lineno &&
  424. chmod +x "$as_me.lineno" ||
  425. { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
  426. # Don't try to exec as it changes $[0], causing all sort of problems
  427. # (the dirname of $[0] is not the place where we might find the
  428. # original and so on. Autoconf is especially sensitive to this).
  429. . "./$as_me.lineno"
  430. # Exit status is that of the last command.
  431. exit
  432. }
  433. ECHO_C= ECHO_N= ECHO_T=
  434. case `echo -n x` in #(((((
  435. -n*)
  436. case `echo 'xy\c'` in
  437. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  438. xy) ECHO_C='\c';;
  439. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  440. ECHO_T=' ';;
  441. esac;;
  442. *)
  443. ECHO_N='-n';;
  444. esac
  445. rm -f conf$$ conf$$.exe conf$$.file
  446. if test -d conf$$.dir; then
  447. rm -f conf$$.dir/conf$$.file
  448. else
  449. rm -f conf$$.dir
  450. mkdir conf$$.dir 2>/dev/null
  451. fi
  452. if (echo >conf$$.file) 2>/dev/null; then
  453. if ln -s conf$$.file conf$$ 2>/dev/null; then
  454. as_ln_s='ln -s'
  455. # ... but there are two gotchas:
  456. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  457. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  458. # In both cases, we have to default to `cp -p'.
  459. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  460. as_ln_s='cp -p'
  461. elif ln conf$$.file conf$$ 2>/dev/null; then
  462. as_ln_s=ln
  463. else
  464. as_ln_s='cp -p'
  465. fi
  466. else
  467. as_ln_s='cp -p'
  468. fi
  469. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  470. rmdir conf$$.dir 2>/dev/null
  471. if mkdir -p . 2>/dev/null; then
  472. as_mkdir_p='mkdir -p "$as_dir"'
  473. else
  474. test -d ./-p && rmdir ./-p
  475. as_mkdir_p=false
  476. fi
  477. if test -x / >/dev/null 2>&1; then
  478. as_test_x='test -x'
  479. else
  480. if ls -dL / >/dev/null 2>&1; then
  481. as_ls_L_option=L
  482. else
  483. as_ls_L_option=
  484. fi
  485. as_test_x='
  486. eval sh -c '\''
  487. if test -d "$1"; then
  488. test -d "$1/.";
  489. else
  490. case $1 in #(
  491. -*)set "./$1";;
  492. esac;
  493. case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
  494. ???[sx]*):;;*)false;;esac;fi
  495. '\'' sh
  496. '
  497. fi
  498. as_executable_p=$as_test_x
  499. # Sed expression to map a string onto a valid CPP name.
  500. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  501. # Sed expression to map a string onto a valid variable name.
  502. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  503. SHELL=${CONFIG_SHELL-/bin/sh}
  504. test -n "$DJDIR" || exec 7<&0 </dev/null
  505. exec 6>&1
  506. # Name of the host.
  507. # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
  508. # so uname gets run too.
  509. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  510. #
  511. # Initializations.
  512. #
  513. ac_default_prefix=/usr/local
  514. ac_clean_files=
  515. ac_config_libobj_dir=.
  516. LIBOBJS=
  517. cross_compiling=no
  518. subdirs=
  519. MFLAGS=
  520. MAKEFLAGS=
  521. # Identity of this package.
  522. PACKAGE_NAME='klish'
  523. PACKAGE_TARNAME='klish'
  524. PACKAGE_VERSION='1.5.3'
  525. PACKAGE_STRING='klish 1.5.3'
  526. PACKAGE_BUGREPORT='serj.kalichev at gmail dot com'
  527. PACKAGE_URL=''
  528. # Factoring default headers for most tests.
  529. ac_includes_default="\
  530. #include <stdio.h>
  531. #ifdef HAVE_SYS_TYPES_H
  532. # include <sys/types.h>
  533. #endif
  534. #ifdef HAVE_SYS_STAT_H
  535. # include <sys/stat.h>
  536. #endif
  537. #ifdef STDC_HEADERS
  538. # include <stdlib.h>
  539. # include <stddef.h>
  540. #else
  541. # ifdef HAVE_STDLIB_H
  542. # include <stdlib.h>
  543. # endif
  544. #endif
  545. #ifdef HAVE_STRING_H
  546. # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
  547. # include <memory.h>
  548. # endif
  549. # include <string.h>
  550. #endif
  551. #ifdef HAVE_STRINGS_H
  552. # include <strings.h>
  553. #endif
  554. #ifdef HAVE_INTTYPES_H
  555. # include <inttypes.h>
  556. #endif
  557. #ifdef HAVE_STDINT_H
  558. # include <stdint.h>
  559. #endif
  560. #ifdef HAVE_UNISTD_H
  561. # include <unistd.h>
  562. #endif"
  563. ac_subst_vars='am__EXEEXT_FALSE
  564. am__EXEEXT_TRUE
  565. LTLIBOBJS
  566. LIBOBJS
  567. BFD_LIBS
  568. LUBHEAP_CFLAGS
  569. LUBHEAP_LIBS
  570. LUBHEAP_FALSE
  571. LUBHEAP_TRUE
  572. TCL_FALSE
  573. TCL_TRUE
  574. TCL_VERSION
  575. TCL_LIBS
  576. TCL_CFLAGS
  577. RT_CFLAGS
  578. RT_LIBS
  579. PTHREAD_CFLAGS
  580. PTHREAD_LIBS
  581. TINYXML_CXXFLAGS
  582. TINYXML_LIBS
  583. TINYRL_CFLAGS
  584. TINYRL_LIBS
  585. KONF_CFLAGS
  586. KONF_LIBS
  587. LUB_CFLAGS
  588. LUB_LIBS
  589. DEBUG_FALSE
  590. DEBUG_TRUE
  591. am__fastdepCXX_FALSE
  592. am__fastdepCXX_TRUE
  593. CXXDEPMODE
  594. am__fastdepCC_FALSE
  595. am__fastdepCC_TRUE
  596. CCDEPMODE
  597. am__nodep
  598. AMDEPBACKSLASH
  599. AMDEP_FALSE
  600. AMDEP_TRUE
  601. am__quote
  602. am__include
  603. DEPDIR
  604. am__untar
  605. am__tar
  606. AMTAR
  607. am__leading_dot
  608. SET_MAKE
  609. mkdir_p
  610. MKDIR_P
  611. INSTALL_STRIP_PROGRAM
  612. install_sh
  613. MAKEINFO
  614. AUTOHEADER
  615. AUTOMAKE
  616. AUTOCONF
  617. ACLOCAL
  618. VERSION
  619. PACKAGE
  620. CYGPATH_W
  621. am__isrc
  622. INSTALL_DATA
  623. INSTALL_SCRIPT
  624. INSTALL_PROGRAM
  625. CXXCPP
  626. CPP
  627. OTOOL64
  628. OTOOL
  629. LIPO
  630. NMEDIT
  631. DSYMUTIL
  632. MANIFEST_TOOL
  633. AWK
  634. RANLIB
  635. STRIP
  636. ac_ct_AR
  637. AR
  638. LN_S
  639. NM
  640. ac_ct_DUMPBIN
  641. DUMPBIN
  642. LD
  643. FGREP
  644. EGREP
  645. GREP
  646. SED
  647. LIBTOOL
  648. OBJDUMP
  649. DLLTOOL
  650. AS
  651. host_os
  652. host_vendor
  653. host_cpu
  654. host
  655. build_os
  656. build_vendor
  657. build_cpu
  658. build
  659. ac_ct_CXX
  660. CXXFLAGS
  661. CXX
  662. OBJEXT
  663. EXEEXT
  664. ac_ct_CC
  665. CPPFLAGS
  666. LDFLAGS
  667. CFLAGS
  668. CC
  669. target_alias
  670. host_alias
  671. build_alias
  672. LIBS
  673. ECHO_T
  674. ECHO_N
  675. ECHO_C
  676. DEFS
  677. mandir
  678. localedir
  679. libdir
  680. psdir
  681. pdfdir
  682. dvidir
  683. htmldir
  684. infodir
  685. docdir
  686. oldincludedir
  687. includedir
  688. localstatedir
  689. sharedstatedir
  690. sysconfdir
  691. datadir
  692. datarootdir
  693. libexecdir
  694. sbindir
  695. bindir
  696. program_transform_name
  697. prefix
  698. exec_prefix
  699. PACKAGE_URL
  700. PACKAGE_BUGREPORT
  701. PACKAGE_STRING
  702. PACKAGE_VERSION
  703. PACKAGE_TARNAME
  704. PACKAGE_NAME
  705. PATH_SEPARATOR
  706. SHELL'
  707. ac_subst_files=''
  708. ac_user_opts='
  709. enable_option_checking
  710. enable_shared
  711. enable_static
  712. with_pic
  713. enable_fast_install
  714. with_gnu_ld
  715. with_sysroot
  716. enable_libtool_lock
  717. enable_dependency_tracking
  718. enable_debug
  719. with_pthread
  720. with_rt
  721. with_tcl
  722. enable_lubheap
  723. enable_gpl
  724. '
  725. ac_precious_vars='build_alias
  726. host_alias
  727. target_alias
  728. CC
  729. CFLAGS
  730. LDFLAGS
  731. LIBS
  732. CPPFLAGS
  733. CXX
  734. CXXFLAGS
  735. CCC
  736. CPP
  737. CXXCPP'
  738. # Initialize some variables set by options.
  739. ac_init_help=
  740. ac_init_version=false
  741. ac_unrecognized_opts=
  742. ac_unrecognized_sep=
  743. # The variables have the same names as the options, with
  744. # dashes changed to underlines.
  745. cache_file=/dev/null
  746. exec_prefix=NONE
  747. no_create=
  748. no_recursion=
  749. prefix=NONE
  750. program_prefix=NONE
  751. program_suffix=NONE
  752. program_transform_name=s,x,x,
  753. silent=
  754. site=
  755. srcdir=
  756. verbose=
  757. x_includes=NONE
  758. x_libraries=NONE
  759. # Installation directory options.
  760. # These are left unexpanded so users can "make install exec_prefix=/foo"
  761. # and all the variables that are supposed to be based on exec_prefix
  762. # by default will actually change.
  763. # Use braces instead of parens because sh, perl, etc. also accept them.
  764. # (The list follows the same order as the GNU Coding Standards.)
  765. bindir='${exec_prefix}/bin'
  766. sbindir='${exec_prefix}/sbin'
  767. libexecdir='${exec_prefix}/libexec'
  768. datarootdir='${prefix}/share'
  769. datadir='${datarootdir}'
  770. sysconfdir='${prefix}/etc'
  771. sharedstatedir='${prefix}/com'
  772. localstatedir='${prefix}/var'
  773. includedir='${prefix}/include'
  774. oldincludedir='/usr/include'
  775. docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
  776. infodir='${datarootdir}/info'
  777. htmldir='${docdir}'
  778. dvidir='${docdir}'
  779. pdfdir='${docdir}'
  780. psdir='${docdir}'
  781. libdir='${exec_prefix}/lib'
  782. localedir='${datarootdir}/locale'
  783. mandir='${datarootdir}/man'
  784. ac_prev=
  785. ac_dashdash=
  786. for ac_option
  787. do
  788. # If the previous option needs an argument, assign it.
  789. if test -n "$ac_prev"; then
  790. eval $ac_prev=\$ac_option
  791. ac_prev=
  792. continue
  793. fi
  794. case $ac_option in
  795. *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  796. *=) ac_optarg= ;;
  797. *) ac_optarg=yes ;;
  798. esac
  799. # Accept the important Cygnus configure options, so we can diagnose typos.
  800. case $ac_dashdash$ac_option in
  801. --)
  802. ac_dashdash=yes ;;
  803. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  804. ac_prev=bindir ;;
  805. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  806. bindir=$ac_optarg ;;
  807. -build | --build | --buil | --bui | --bu)
  808. ac_prev=build_alias ;;
  809. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  810. build_alias=$ac_optarg ;;
  811. -cache-file | --cache-file | --cache-fil | --cache-fi \
  812. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  813. ac_prev=cache_file ;;
  814. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  815. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  816. cache_file=$ac_optarg ;;
  817. --config-cache | -C)
  818. cache_file=config.cache ;;
  819. -datadir | --datadir | --datadi | --datad)
  820. ac_prev=datadir ;;
  821. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  822. datadir=$ac_optarg ;;
  823. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  824. | --dataroo | --dataro | --datar)
  825. ac_prev=datarootdir ;;
  826. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  827. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  828. datarootdir=$ac_optarg ;;
  829. -disable-* | --disable-*)
  830. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  831. # Reject names that are not valid shell variable names.
  832. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  833. as_fn_error $? "invalid feature name: $ac_useropt"
  834. ac_useropt_orig=$ac_useropt
  835. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  836. case $ac_user_opts in
  837. *"
  838. "enable_$ac_useropt"
  839. "*) ;;
  840. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  841. ac_unrecognized_sep=', ';;
  842. esac
  843. eval enable_$ac_useropt=no ;;
  844. -docdir | --docdir | --docdi | --doc | --do)
  845. ac_prev=docdir ;;
  846. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  847. docdir=$ac_optarg ;;
  848. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  849. ac_prev=dvidir ;;
  850. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  851. dvidir=$ac_optarg ;;
  852. -enable-* | --enable-*)
  853. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  854. # Reject names that are not valid shell variable names.
  855. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  856. as_fn_error $? "invalid feature name: $ac_useropt"
  857. ac_useropt_orig=$ac_useropt
  858. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  859. case $ac_user_opts in
  860. *"
  861. "enable_$ac_useropt"
  862. "*) ;;
  863. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  864. ac_unrecognized_sep=', ';;
  865. esac
  866. eval enable_$ac_useropt=\$ac_optarg ;;
  867. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  868. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  869. | --exec | --exe | --ex)
  870. ac_prev=exec_prefix ;;
  871. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  872. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  873. | --exec=* | --exe=* | --ex=*)
  874. exec_prefix=$ac_optarg ;;
  875. -gas | --gas | --ga | --g)
  876. # Obsolete; use --with-gas.
  877. with_gas=yes ;;
  878. -help | --help | --hel | --he | -h)
  879. ac_init_help=long ;;
  880. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  881. ac_init_help=recursive ;;
  882. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  883. ac_init_help=short ;;
  884. -host | --host | --hos | --ho)
  885. ac_prev=host_alias ;;
  886. -host=* | --host=* | --hos=* | --ho=*)
  887. host_alias=$ac_optarg ;;
  888. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  889. ac_prev=htmldir ;;
  890. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  891. | --ht=*)
  892. htmldir=$ac_optarg ;;
  893. -includedir | --includedir | --includedi | --included | --include \
  894. | --includ | --inclu | --incl | --inc)
  895. ac_prev=includedir ;;
  896. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  897. | --includ=* | --inclu=* | --incl=* | --inc=*)
  898. includedir=$ac_optarg ;;
  899. -infodir | --infodir | --infodi | --infod | --info | --inf)
  900. ac_prev=infodir ;;
  901. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  902. infodir=$ac_optarg ;;
  903. -libdir | --libdir | --libdi | --libd)
  904. ac_prev=libdir ;;
  905. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  906. libdir=$ac_optarg ;;
  907. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  908. | --libexe | --libex | --libe)
  909. ac_prev=libexecdir ;;
  910. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  911. | --libexe=* | --libex=* | --libe=*)
  912. libexecdir=$ac_optarg ;;
  913. -localedir | --localedir | --localedi | --localed | --locale)
  914. ac_prev=localedir ;;
  915. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  916. localedir=$ac_optarg ;;
  917. -localstatedir | --localstatedir | --localstatedi | --localstated \
  918. | --localstate | --localstat | --localsta | --localst | --locals)
  919. ac_prev=localstatedir ;;
  920. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  921. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  922. localstatedir=$ac_optarg ;;
  923. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  924. ac_prev=mandir ;;
  925. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  926. mandir=$ac_optarg ;;
  927. -nfp | --nfp | --nf)
  928. # Obsolete; use --without-fp.
  929. with_fp=no ;;
  930. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  931. | --no-cr | --no-c | -n)
  932. no_create=yes ;;
  933. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  934. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  935. no_recursion=yes ;;
  936. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  937. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  938. | --oldin | --oldi | --old | --ol | --o)
  939. ac_prev=oldincludedir ;;
  940. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  941. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  942. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  943. oldincludedir=$ac_optarg ;;
  944. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  945. ac_prev=prefix ;;
  946. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  947. prefix=$ac_optarg ;;
  948. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  949. | --program-pre | --program-pr | --program-p)
  950. ac_prev=program_prefix ;;
  951. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  952. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  953. program_prefix=$ac_optarg ;;
  954. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  955. | --program-suf | --program-su | --program-s)
  956. ac_prev=program_suffix ;;
  957. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  958. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  959. program_suffix=$ac_optarg ;;
  960. -program-transform-name | --program-transform-name \
  961. | --program-transform-nam | --program-transform-na \
  962. | --program-transform-n | --program-transform- \
  963. | --program-transform | --program-transfor \
  964. | --program-transfo | --program-transf \
  965. | --program-trans | --program-tran \
  966. | --progr-tra | --program-tr | --program-t)
  967. ac_prev=program_transform_name ;;
  968. -program-transform-name=* | --program-transform-name=* \
  969. | --program-transform-nam=* | --program-transform-na=* \
  970. | --program-transform-n=* | --program-transform-=* \
  971. | --program-transform=* | --program-transfor=* \
  972. | --program-transfo=* | --program-transf=* \
  973. | --program-trans=* | --program-tran=* \
  974. | --progr-tra=* | --program-tr=* | --program-t=*)
  975. program_transform_name=$ac_optarg ;;
  976. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  977. ac_prev=pdfdir ;;
  978. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  979. pdfdir=$ac_optarg ;;
  980. -psdir | --psdir | --psdi | --psd | --ps)
  981. ac_prev=psdir ;;
  982. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  983. psdir=$ac_optarg ;;
  984. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  985. | -silent | --silent | --silen | --sile | --sil)
  986. silent=yes ;;
  987. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  988. ac_prev=sbindir ;;
  989. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  990. | --sbi=* | --sb=*)
  991. sbindir=$ac_optarg ;;
  992. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  993. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  994. | --sharedst | --shareds | --shared | --share | --shar \
  995. | --sha | --sh)
  996. ac_prev=sharedstatedir ;;
  997. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  998. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  999. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  1000. | --sha=* | --sh=*)
  1001. sharedstatedir=$ac_optarg ;;
  1002. -site | --site | --sit)
  1003. ac_prev=site ;;
  1004. -site=* | --site=* | --sit=*)
  1005. site=$ac_optarg ;;
  1006. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  1007. ac_prev=srcdir ;;
  1008. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1009. srcdir=$ac_optarg ;;
  1010. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  1011. | --syscon | --sysco | --sysc | --sys | --sy)
  1012. ac_prev=sysconfdir ;;
  1013. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  1014. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  1015. sysconfdir=$ac_optarg ;;
  1016. -target | --target | --targe | --targ | --tar | --ta | --t)
  1017. ac_prev=target_alias ;;
  1018. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  1019. target_alias=$ac_optarg ;;
  1020. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  1021. verbose=yes ;;
  1022. -version | --version | --versio | --versi | --vers | -V)
  1023. ac_init_version=: ;;
  1024. -with-* | --with-*)
  1025. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1026. # Reject names that are not valid shell variable names.
  1027. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1028. as_fn_error $? "invalid package name: $ac_useropt"
  1029. ac_useropt_orig=$ac_useropt
  1030. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1031. case $ac_user_opts in
  1032. *"
  1033. "with_$ac_useropt"
  1034. "*) ;;
  1035. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  1036. ac_unrecognized_sep=', ';;
  1037. esac
  1038. eval with_$ac_useropt=\$ac_optarg ;;
  1039. -without-* | --without-*)
  1040. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1041. # Reject names that are not valid shell variable names.
  1042. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1043. as_fn_error $? "invalid package name: $ac_useropt"
  1044. ac_useropt_orig=$ac_useropt
  1045. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1046. case $ac_user_opts in
  1047. *"
  1048. "with_$ac_useropt"
  1049. "*) ;;
  1050. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  1051. ac_unrecognized_sep=', ';;
  1052. esac
  1053. eval with_$ac_useropt=no ;;
  1054. --x)
  1055. # Obsolete; use --with-x.
  1056. with_x=yes ;;
  1057. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1058. | --x-incl | --x-inc | --x-in | --x-i)
  1059. ac_prev=x_includes ;;
  1060. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1061. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1062. x_includes=$ac_optarg ;;
  1063. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1064. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1065. ac_prev=x_libraries ;;
  1066. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1067. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1068. x_libraries=$ac_optarg ;;
  1069. -*) as_fn_error $? "unrecognized option: \`$ac_option'
  1070. Try \`$0 --help' for more information"
  1071. ;;
  1072. *=*)
  1073. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1074. # Reject names that are not valid shell variable names.
  1075. case $ac_envvar in #(
  1076. '' | [0-9]* | *[!_$as_cr_alnum]* )
  1077. as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
  1078. esac
  1079. eval $ac_envvar=\$ac_optarg
  1080. export $ac_envvar ;;
  1081. *)
  1082. # FIXME: should be removed in autoconf 3.0.
  1083. $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1084. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1085. $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1086. : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
  1087. ;;
  1088. esac
  1089. done
  1090. if test -n "$ac_prev"; then
  1091. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1092. as_fn_error $? "missing argument to $ac_option"
  1093. fi
  1094. if test -n "$ac_unrecognized_opts"; then
  1095. case $enable_option_checking in
  1096. no) ;;
  1097. fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
  1098. *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1099. esac
  1100. fi
  1101. # Check all directory arguments for consistency.
  1102. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1103. datadir sysconfdir sharedstatedir localstatedir includedir \
  1104. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1105. libdir localedir mandir
  1106. do
  1107. eval ac_val=\$$ac_var
  1108. # Remove trailing slashes.
  1109. case $ac_val in
  1110. */ )
  1111. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1112. eval $ac_var=\$ac_val;;
  1113. esac
  1114. # Be sure to have absolute directory names.
  1115. case $ac_val in
  1116. [\\/$]* | ?:[\\/]* ) continue;;
  1117. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1118. esac
  1119. as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
  1120. done
  1121. # There might be people who depend on the old broken behavior: `$host'
  1122. # used to hold the argument of --host etc.
  1123. # FIXME: To remove some day.
  1124. build=$build_alias
  1125. host=$host_alias
  1126. target=$target_alias
  1127. # FIXME: To remove some day.
  1128. if test "x$host_alias" != x; then
  1129. if test "x$build_alias" = x; then
  1130. cross_compiling=maybe
  1131. $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
  1132. If a cross compiler is detected then cross compile mode will be used" >&2
  1133. elif test "x$build_alias" != "x$host_alias"; then
  1134. cross_compiling=yes
  1135. fi
  1136. fi
  1137. ac_tool_prefix=
  1138. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1139. test "$silent" = yes && exec 6>/dev/null
  1140. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1141. ac_ls_di=`ls -di .` &&
  1142. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1143. as_fn_error $? "working directory cannot be determined"
  1144. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1145. as_fn_error $? "pwd does not report name of working directory"
  1146. # Find the source files, if location was not specified.
  1147. if test -z "$srcdir"; then
  1148. ac_srcdir_defaulted=yes
  1149. # Try the directory containing this script, then the parent directory.
  1150. ac_confdir=`$as_dirname -- "$as_myself" ||
  1151. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1152. X"$as_myself" : 'X\(//\)[^/]' \| \
  1153. X"$as_myself" : 'X\(//\)$' \| \
  1154. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1155. $as_echo X"$as_myself" |
  1156. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1157. s//\1/
  1158. q
  1159. }
  1160. /^X\(\/\/\)[^/].*/{
  1161. s//\1/
  1162. q
  1163. }
  1164. /^X\(\/\/\)$/{
  1165. s//\1/
  1166. q
  1167. }
  1168. /^X\(\/\).*/{
  1169. s//\1/
  1170. q
  1171. }
  1172. s/.*/./; q'`
  1173. srcdir=$ac_confdir
  1174. if test ! -r "$srcdir/$ac_unique_file"; then
  1175. srcdir=..
  1176. fi
  1177. else
  1178. ac_srcdir_defaulted=no
  1179. fi
  1180. if test ! -r "$srcdir/$ac_unique_file"; then
  1181. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1182. as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
  1183. fi
  1184. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1185. ac_abs_confdir=`(
  1186. cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
  1187. pwd)`
  1188. # When building in place, set srcdir=.
  1189. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1190. srcdir=.
  1191. fi
  1192. # Remove unnecessary trailing slashes from srcdir.
  1193. # Double slashes in file names in object file debugging info
  1194. # mess up M-x gdb in Emacs.
  1195. case $srcdir in
  1196. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1197. esac
  1198. for ac_var in $ac_precious_vars; do
  1199. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1200. eval ac_env_${ac_var}_value=\$${ac_var}
  1201. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1202. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1203. done
  1204. #
  1205. # Report the --help message.
  1206. #
  1207. if test "$ac_init_help" = "long"; then
  1208. # Omit some internal or obsolete options to make the list less imposing.
  1209. # This message is too long to be a string in the A/UX 3.1 sh.
  1210. cat <<_ACEOF
  1211. \`configure' configures klish 1.5.3 to adapt to many kinds of systems.
  1212. Usage: $0 [OPTION]... [VAR=VALUE]...
  1213. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1214. VAR=VALUE. See below for descriptions of some of the useful variables.
  1215. Defaults for the options are specified in brackets.
  1216. Configuration:
  1217. -h, --help display this help and exit
  1218. --help=short display options specific to this package
  1219. --help=recursive display the short help of all the included packages
  1220. -V, --version display version information and exit
  1221. -q, --quiet, --silent do not print \`checking ...' messages
  1222. --cache-file=FILE cache test results in FILE [disabled]
  1223. -C, --config-cache alias for \`--cache-file=config.cache'
  1224. -n, --no-create do not create output files
  1225. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1226. Installation directories:
  1227. --prefix=PREFIX install architecture-independent files in PREFIX
  1228. [$ac_default_prefix]
  1229. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1230. [PREFIX]
  1231. By default, \`make install' will install all the files in
  1232. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1233. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1234. for instance \`--prefix=\$HOME'.
  1235. For better control, use the options below.
  1236. Fine tuning of the installation directories:
  1237. --bindir=DIR user executables [EPREFIX/bin]
  1238. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1239. --libexecdir=DIR program executables [EPREFIX/libexec]
  1240. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1241. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1242. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1243. --libdir=DIR object code libraries [EPREFIX/lib]
  1244. --includedir=DIR C header files [PREFIX/include]
  1245. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1246. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1247. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1248. --infodir=DIR info documentation [DATAROOTDIR/info]
  1249. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1250. --mandir=DIR man documentation [DATAROOTDIR/man]
  1251. --docdir=DIR documentation root [DATAROOTDIR/doc/klish]
  1252. --htmldir=DIR html documentation [DOCDIR]
  1253. --dvidir=DIR dvi documentation [DOCDIR]
  1254. --pdfdir=DIR pdf documentation [DOCDIR]
  1255. --psdir=DIR ps documentation [DOCDIR]
  1256. _ACEOF
  1257. cat <<\_ACEOF
  1258. Program names:
  1259. --program-prefix=PREFIX prepend PREFIX to installed program names
  1260. --program-suffix=SUFFIX append SUFFIX to installed program names
  1261. --program-transform-name=PROGRAM run sed PROGRAM on installed program names
  1262. System types:
  1263. --build=BUILD configure for building on BUILD [guessed]
  1264. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1265. _ACEOF
  1266. fi
  1267. if test -n "$ac_init_help"; then
  1268. case $ac_init_help in
  1269. short | recursive ) echo "Configuration of klish 1.5.3:";;
  1270. esac
  1271. cat <<\_ACEOF
  1272. Optional Features:
  1273. --disable-option-checking ignore unrecognized --enable/--with options
  1274. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1275. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1276. --enable-shared[=PKGS] build shared libraries [default=yes]
  1277. --enable-static[=PKGS] build static libraries [default=yes]
  1278. --enable-fast-install[=PKGS]
  1279. optimize for fast installation [default=yes]
  1280. --disable-libtool-lock avoid locking (might break parallel builds)
  1281. --disable-dependency-tracking speeds up one-time build
  1282. --enable-dependency-tracking do not reject slow dependency extractors
  1283. --enable-debug Turn on debugging including asserts [default=no]
  1284. --enable-lubheap Replace standard memory libaries with lubheap
  1285. (EXPERIMENTAL) [default=no]
  1286. --enable-gpl Link with GPL licenced libraries [default=yes]
  1287. Optional Packages:
  1288. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1289. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1290. --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
  1291. both]
  1292. --with-gnu-ld assume the C compiler uses GNU ld [default=no]
  1293. --with-sysroot=DIR Search for dependent libraries within DIR
  1294. (or the compiler's sysroot if not specified).
  1295. --with-pthread=DIR Use POSIX threads library distribution in DIR
  1296. --with-rt=DIR Use POSIX real time library distribution in DIR
  1297. --with-tcl=DIR Use TCL library distribution in DIR
  1298. Some influential environment variables:
  1299. CC C compiler command
  1300. CFLAGS C compiler flags
  1301. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1302. nonstandard directory <lib dir>
  1303. LIBS libraries to pass to the linker, e.g. -l<library>
  1304. CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
  1305. you have headers in a nonstandard directory <include dir>
  1306. CXX C++ compiler command
  1307. CXXFLAGS C++ compiler flags
  1308. CPP C preprocessor
  1309. CXXCPP C++ preprocessor
  1310. Use these variables to override the choices made by `configure' or to help
  1311. it to find libraries and programs with nonstandard names/locations.
  1312. Report bugs to <serj.kalichev at gmail dot com>.
  1313. _ACEOF
  1314. ac_status=$?
  1315. fi
  1316. if test "$ac_init_help" = "recursive"; then
  1317. # If there are subdirs, report their specific --help.
  1318. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1319. test -d "$ac_dir" ||
  1320. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1321. continue
  1322. ac_builddir=.
  1323. case "$ac_dir" in
  1324. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1325. *)
  1326. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  1327. # A ".." for each directory in $ac_dir_suffix.
  1328. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1329. case $ac_top_builddir_sub in
  1330. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1331. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1332. esac ;;
  1333. esac
  1334. ac_abs_top_builddir=$ac_pwd
  1335. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1336. # for backward compatibility:
  1337. ac_top_builddir=$ac_top_build_prefix
  1338. case $srcdir in
  1339. .) # We are building in place.
  1340. ac_srcdir=.
  1341. ac_top_srcdir=$ac_top_builddir_sub
  1342. ac_abs_top_srcdir=$ac_pwd ;;
  1343. [\\/]* | ?:[\\/]* ) # Absolute name.
  1344. ac_srcdir=$srcdir$ac_dir_suffix;
  1345. ac_top_srcdir=$srcdir
  1346. ac_abs_top_srcdir=$srcdir ;;
  1347. *) # Relative name.
  1348. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1349. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1350. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1351. esac
  1352. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1353. cd "$ac_dir" || { ac_status=$?; continue; }
  1354. # Check for guested configure.
  1355. if test -f "$ac_srcdir/configure.gnu"; then
  1356. echo &&
  1357. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1358. elif test -f "$ac_srcdir/configure"; then
  1359. echo &&
  1360. $SHELL "$ac_srcdir/configure" --help=recursive
  1361. else
  1362. $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1363. fi || ac_status=$?
  1364. cd "$ac_pwd" || { ac_status=$?; break; }
  1365. done
  1366. fi
  1367. test -n "$ac_init_help" && exit $ac_status
  1368. if $ac_init_version; then
  1369. cat <<\_ACEOF
  1370. klish configure 1.5.3
  1371. generated by GNU Autoconf 2.68
  1372. Copyright (C) 2010 Free Software Foundation, Inc.
  1373. This configure script is free software; the Free Software Foundation
  1374. gives unlimited permission to copy, distribute and modify it.
  1375. _ACEOF
  1376. exit
  1377. fi
  1378. ## ------------------------ ##
  1379. ## Autoconf initialization. ##
  1380. ## ------------------------ ##
  1381. # ac_fn_c_try_compile LINENO
  1382. # --------------------------
  1383. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1384. ac_fn_c_try_compile ()
  1385. {
  1386. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1387. rm -f conftest.$ac_objext
  1388. if { { ac_try="$ac_compile"
  1389. case "(($ac_try" in
  1390. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1391. *) ac_try_echo=$ac_try;;
  1392. esac
  1393. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1394. $as_echo "$ac_try_echo"; } >&5
  1395. (eval "$ac_compile") 2>conftest.err
  1396. ac_status=$?
  1397. if test -s conftest.err; then
  1398. grep -v '^ *+' conftest.err >conftest.er1
  1399. cat conftest.er1 >&5
  1400. mv -f conftest.er1 conftest.err
  1401. fi
  1402. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1403. test $ac_status = 0; } && {
  1404. test -z "$ac_c_werror_flag" ||
  1405. test ! -s conftest.err
  1406. } && test -s conftest.$ac_objext; then :
  1407. ac_retval=0
  1408. else
  1409. $as_echo "$as_me: failed program was:" >&5
  1410. sed 's/^/| /' conftest.$ac_ext >&5
  1411. ac_retval=1
  1412. fi
  1413. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1414. as_fn_set_status $ac_retval
  1415. } # ac_fn_c_try_compile
  1416. # ac_fn_cxx_try_compile LINENO
  1417. # ----------------------------
  1418. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1419. ac_fn_cxx_try_compile ()
  1420. {
  1421. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1422. rm -f conftest.$ac_objext
  1423. if { { ac_try="$ac_compile"
  1424. case "(($ac_try" in
  1425. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1426. *) ac_try_echo=$ac_try;;
  1427. esac
  1428. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1429. $as_echo "$ac_try_echo"; } >&5
  1430. (eval "$ac_compile") 2>conftest.err
  1431. ac_status=$?
  1432. if test -s conftest.err; then
  1433. grep -v '^ *+' conftest.err >conftest.er1
  1434. cat conftest.er1 >&5
  1435. mv -f conftest.er1 conftest.err
  1436. fi
  1437. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1438. test $ac_status = 0; } && {
  1439. test -z "$ac_cxx_werror_flag" ||
  1440. test ! -s conftest.err
  1441. } && test -s conftest.$ac_objext; then :
  1442. ac_retval=0
  1443. else
  1444. $as_echo "$as_me: failed program was:" >&5
  1445. sed 's/^/| /' conftest.$ac_ext >&5
  1446. ac_retval=1
  1447. fi
  1448. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1449. as_fn_set_status $ac_retval
  1450. } # ac_fn_cxx_try_compile
  1451. # ac_fn_c_try_link LINENO
  1452. # -----------------------
  1453. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1454. ac_fn_c_try_link ()
  1455. {
  1456. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1457. rm -f conftest.$ac_objext conftest$ac_exeext
  1458. if { { ac_try="$ac_link"
  1459. case "(($ac_try" in
  1460. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1461. *) ac_try_echo=$ac_try;;
  1462. esac
  1463. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1464. $as_echo "$ac_try_echo"; } >&5
  1465. (eval "$ac_link") 2>conftest.err
  1466. ac_status=$?
  1467. if test -s conftest.err; then
  1468. grep -v '^ *+' conftest.err >conftest.er1
  1469. cat conftest.er1 >&5
  1470. mv -f conftest.er1 conftest.err
  1471. fi
  1472. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1473. test $ac_status = 0; } && {
  1474. test -z "$ac_c_werror_flag" ||
  1475. test ! -s conftest.err
  1476. } && test -s conftest$ac_exeext && {
  1477. test "$cross_compiling" = yes ||
  1478. $as_test_x conftest$ac_exeext
  1479. }; then :
  1480. ac_retval=0
  1481. else
  1482. $as_echo "$as_me: failed program was:" >&5
  1483. sed 's/^/| /' conftest.$ac_ext >&5
  1484. ac_retval=1
  1485. fi
  1486. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1487. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1488. # interfere with the next link command; also delete a directory that is
  1489. # left behind by Apple's compiler. We do this before executing the actions.
  1490. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1491. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1492. as_fn_set_status $ac_retval
  1493. } # ac_fn_c_try_link
  1494. # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
  1495. # -------------------------------------------------------
  1496. # Tests whether HEADER exists and can be compiled using the include files in
  1497. # INCLUDES, setting the cache variable VAR accordingly.
  1498. ac_fn_c_check_header_compile ()
  1499. {
  1500. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1501. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1502. $as_echo_n "checking for $2... " >&6; }
  1503. if eval \${$3+:} false; then :
  1504. $as_echo_n "(cached) " >&6
  1505. else
  1506. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1507. /* end confdefs.h. */
  1508. $4
  1509. #include <$2>
  1510. _ACEOF
  1511. if ac_fn_c_try_compile "$LINENO"; then :
  1512. eval "$3=yes"
  1513. else
  1514. eval "$3=no"
  1515. fi
  1516. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1517. fi
  1518. eval ac_res=\$$3
  1519. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1520. $as_echo "$ac_res" >&6; }
  1521. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1522. } # ac_fn_c_check_header_compile
  1523. # ac_fn_c_try_cpp LINENO
  1524. # ----------------------
  1525. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1526. ac_fn_c_try_cpp ()
  1527. {
  1528. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1529. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1530. case "(($ac_try" in
  1531. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1532. *) ac_try_echo=$ac_try;;
  1533. esac
  1534. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1535. $as_echo "$ac_try_echo"; } >&5
  1536. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1537. ac_status=$?
  1538. if test -s conftest.err; then
  1539. grep -v '^ *+' conftest.err >conftest.er1
  1540. cat conftest.er1 >&5
  1541. mv -f conftest.er1 conftest.err
  1542. fi
  1543. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1544. test $ac_status = 0; } > conftest.i && {
  1545. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  1546. test ! -s conftest.err
  1547. }; then :
  1548. ac_retval=0
  1549. else
  1550. $as_echo "$as_me: failed program was:" >&5
  1551. sed 's/^/| /' conftest.$ac_ext >&5
  1552. ac_retval=1
  1553. fi
  1554. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1555. as_fn_set_status $ac_retval
  1556. } # ac_fn_c_try_cpp
  1557. # ac_fn_c_try_run LINENO
  1558. # ----------------------
  1559. # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
  1560. # that executables *can* be run.
  1561. ac_fn_c_try_run ()
  1562. {
  1563. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1564. if { { ac_try="$ac_link"
  1565. case "(($ac_try" in
  1566. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1567. *) ac_try_echo=$ac_try;;
  1568. esac
  1569. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1570. $as_echo "$ac_try_echo"; } >&5
  1571. (eval "$ac_link") 2>&5
  1572. ac_status=$?
  1573. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1574. test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  1575. { { case "(($ac_try" in
  1576. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1577. *) ac_try_echo=$ac_try;;
  1578. esac
  1579. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1580. $as_echo "$ac_try_echo"; } >&5
  1581. (eval "$ac_try") 2>&5
  1582. ac_status=$?
  1583. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1584. test $ac_status = 0; }; }; then :
  1585. ac_retval=0
  1586. else
  1587. $as_echo "$as_me: program exited with status $ac_status" >&5
  1588. $as_echo "$as_me: failed program was:" >&5
  1589. sed 's/^/| /' conftest.$ac_ext >&5
  1590. ac_retval=$ac_status
  1591. fi
  1592. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1593. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1594. as_fn_set_status $ac_retval
  1595. } # ac_fn_c_try_run
  1596. # ac_fn_c_check_func LINENO FUNC VAR
  1597. # ----------------------------------
  1598. # Tests whether FUNC exists, setting the cache variable VAR accordingly
  1599. ac_fn_c_check_func ()
  1600. {
  1601. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1602. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1603. $as_echo_n "checking for $2... " >&6; }
  1604. if eval \${$3+:} false; then :
  1605. $as_echo_n "(cached) " >&6
  1606. else
  1607. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1608. /* end confdefs.h. */
  1609. /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
  1610. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  1611. #define $2 innocuous_$2
  1612. /* System header to define __stub macros and hopefully few prototypes,
  1613. which can conflict with char $2 (); below.
  1614. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  1615. <limits.h> exists even on freestanding compilers. */
  1616. #ifdef __STDC__
  1617. # include <limits.h>
  1618. #else
  1619. # include <assert.h>
  1620. #endif
  1621. #undef $2
  1622. /* Override any GCC internal prototype to avoid an error.
  1623. Use char because int might match the return type of a GCC
  1624. builtin and then its argument prototype would still apply. */
  1625. #ifdef __cplusplus
  1626. extern "C"
  1627. #endif
  1628. char $2 ();
  1629. /* The GNU C library defines this for functions which it implements
  1630. to always fail with ENOSYS. Some functions are actually named
  1631. something starting with __ and the normal name is an alias. */
  1632. #if defined __stub_$2 || defined __stub___$2
  1633. choke me
  1634. #endif
  1635. int
  1636. main ()
  1637. {
  1638. return $2 ();
  1639. ;
  1640. return 0;
  1641. }
  1642. _ACEOF
  1643. if ac_fn_c_try_link "$LINENO"; then :
  1644. eval "$3=yes"
  1645. else
  1646. eval "$3=no"
  1647. fi
  1648. rm -f core conftest.err conftest.$ac_objext \
  1649. conftest$ac_exeext conftest.$ac_ext
  1650. fi
  1651. eval ac_res=\$$3
  1652. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1653. $as_echo "$ac_res" >&6; }
  1654. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1655. } # ac_fn_c_check_func
  1656. # ac_fn_cxx_try_cpp LINENO
  1657. # ------------------------
  1658. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1659. ac_fn_cxx_try_cpp ()
  1660. {
  1661. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1662. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1663. case "(($ac_try" in
  1664. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1665. *) ac_try_echo=$ac_try;;
  1666. esac
  1667. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1668. $as_echo "$ac_try_echo"; } >&5
  1669. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1670. ac_status=$?
  1671. if test -s conftest.err; then
  1672. grep -v '^ *+' conftest.err >conftest.er1
  1673. cat conftest.er1 >&5
  1674. mv -f conftest.er1 conftest.err
  1675. fi
  1676. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1677. test $ac_status = 0; } > conftest.i && {
  1678. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  1679. test ! -s conftest.err
  1680. }; then :
  1681. ac_retval=0
  1682. else
  1683. $as_echo "$as_me: failed program was:" >&5
  1684. sed 's/^/| /' conftest.$ac_ext >&5
  1685. ac_retval=1
  1686. fi
  1687. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1688. as_fn_set_status $ac_retval
  1689. } # ac_fn_cxx_try_cpp
  1690. # ac_fn_cxx_try_link LINENO
  1691. # -------------------------
  1692. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1693. ac_fn_cxx_try_link ()
  1694. {
  1695. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1696. rm -f conftest.$ac_objext conftest$ac_exeext
  1697. if { { ac_try="$ac_link"
  1698. case "(($ac_try" in
  1699. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1700. *) ac_try_echo=$ac_try;;
  1701. esac
  1702. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1703. $as_echo "$ac_try_echo"; } >&5
  1704. (eval "$ac_link") 2>conftest.err
  1705. ac_status=$?
  1706. if test -s conftest.err; then
  1707. grep -v '^ *+' conftest.err >conftest.er1
  1708. cat conftest.er1 >&5
  1709. mv -f conftest.er1 conftest.err
  1710. fi
  1711. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1712. test $ac_status = 0; } && {
  1713. test -z "$ac_cxx_werror_flag" ||
  1714. test ! -s conftest.err
  1715. } && test -s conftest$ac_exeext && {
  1716. test "$cross_compiling" = yes ||
  1717. $as_test_x conftest$ac_exeext
  1718. }; then :
  1719. ac_retval=0
  1720. else
  1721. $as_echo "$as_me: failed program was:" >&5
  1722. sed 's/^/| /' conftest.$ac_ext >&5
  1723. ac_retval=1
  1724. fi
  1725. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1726. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1727. # interfere with the next link command; also delete a directory that is
  1728. # left behind by Apple's compiler. We do this before executing the actions.
  1729. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1730. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1731. as_fn_set_status $ac_retval
  1732. } # ac_fn_cxx_try_link
  1733. # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
  1734. # --------------------------------------------
  1735. # Tries to find the compile-time value of EXPR in a program that includes
  1736. # INCLUDES, setting VAR accordingly. Returns whether the value could be
  1737. # computed
  1738. ac_fn_c_compute_int ()
  1739. {
  1740. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1741. if test "$cross_compiling" = yes; then
  1742. # Depending upon the size, compute the lo and hi bounds.
  1743. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1744. /* end confdefs.h. */
  1745. $4
  1746. int
  1747. main ()
  1748. {
  1749. static int test_array [1 - 2 * !(($2) >= 0)];
  1750. test_array [0] = 0
  1751. ;
  1752. return 0;
  1753. }
  1754. _ACEOF
  1755. if ac_fn_c_try_compile "$LINENO"; then :
  1756. ac_lo=0 ac_mid=0
  1757. while :; do
  1758. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1759. /* end confdefs.h. */
  1760. $4
  1761. int
  1762. main ()
  1763. {
  1764. static int test_array [1 - 2 * !(($2) <= $ac_mid)];
  1765. test_array [0] = 0
  1766. ;
  1767. return 0;
  1768. }
  1769. _ACEOF
  1770. if ac_fn_c_try_compile "$LINENO"; then :
  1771. ac_hi=$ac_mid; break
  1772. else
  1773. as_fn_arith $ac_mid + 1 && ac_lo=$as_val
  1774. if test $ac_lo -le $ac_mid; then
  1775. ac_lo= ac_hi=
  1776. break
  1777. fi
  1778. as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
  1779. fi
  1780. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1781. done
  1782. else
  1783. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1784. /* end confdefs.h. */
  1785. $4
  1786. int
  1787. main ()
  1788. {
  1789. static int test_array [1 - 2 * !(($2) < 0)];
  1790. test_array [0] = 0
  1791. ;
  1792. return 0;
  1793. }
  1794. _ACEOF
  1795. if ac_fn_c_try_compile "$LINENO"; then :
  1796. ac_hi=-1 ac_mid=-1
  1797. while :; do
  1798. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1799. /* end confdefs.h. */
  1800. $4
  1801. int
  1802. main ()
  1803. {
  1804. static int test_array [1 - 2 * !(($2) >= $ac_mid)];
  1805. test_array [0] = 0
  1806. ;
  1807. return 0;
  1808. }
  1809. _ACEOF
  1810. if ac_fn_c_try_compile "$LINENO"; then :
  1811. ac_lo=$ac_mid; break
  1812. else
  1813. as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
  1814. if test $ac_mid -le $ac_hi; then
  1815. ac_lo= ac_hi=
  1816. break
  1817. fi
  1818. as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
  1819. fi
  1820. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1821. done
  1822. else
  1823. ac_lo= ac_hi=
  1824. fi
  1825. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1826. fi
  1827. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1828. # Binary search between lo and hi bounds.
  1829. while test "x$ac_lo" != "x$ac_hi"; do
  1830. as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
  1831. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1832. /* end confdefs.h. */
  1833. $4
  1834. int
  1835. main ()
  1836. {
  1837. static int test_array [1 - 2 * !(($2) <= $ac_mid)];
  1838. test_array [0] = 0
  1839. ;
  1840. return 0;
  1841. }
  1842. _ACEOF
  1843. if ac_fn_c_try_compile "$LINENO"; then :
  1844. ac_hi=$ac_mid
  1845. else
  1846. as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
  1847. fi
  1848. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1849. done
  1850. case $ac_lo in #((
  1851. ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
  1852. '') ac_retval=1 ;;
  1853. esac
  1854. else
  1855. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1856. /* end confdefs.h. */
  1857. $4
  1858. static long int longval () { return $2; }
  1859. static unsigned long int ulongval () { return $2; }
  1860. #include <stdio.h>
  1861. #include <stdlib.h>
  1862. int
  1863. main ()
  1864. {
  1865. FILE *f = fopen ("conftest.val", "w");
  1866. if (! f)
  1867. return 1;
  1868. if (($2) < 0)
  1869. {
  1870. long int i = longval ();
  1871. if (i != ($2))
  1872. return 1;
  1873. fprintf (f, "%ld", i);
  1874. }
  1875. else
  1876. {
  1877. unsigned long int i = ulongval ();
  1878. if (i != ($2))
  1879. return 1;
  1880. fprintf (f, "%lu", i);
  1881. }
  1882. /* Do not output a trailing newline, as this causes \r\n confusion
  1883. on some platforms. */
  1884. return ferror (f) || fclose (f) != 0;
  1885. ;
  1886. return 0;
  1887. }
  1888. _ACEOF
  1889. if ac_fn_c_try_run "$LINENO"; then :
  1890. echo >>conftest.val; read $3 <conftest.val; ac_retval=0
  1891. else
  1892. ac_retval=1
  1893. fi
  1894. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  1895. conftest.$ac_objext conftest.beam conftest.$ac_ext
  1896. rm -f conftest.val
  1897. fi
  1898. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1899. as_fn_set_status $ac_retval
  1900. } # ac_fn_c_compute_int
  1901. # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
  1902. # -------------------------------------------------------
  1903. # Tests whether HEADER exists, giving a warning if it cannot be compiled using
  1904. # the include files in INCLUDES and setting the cache variable VAR
  1905. # accordingly.
  1906. ac_fn_c_check_header_mongrel ()
  1907. {
  1908. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1909. if eval \${$3+:} false; then :
  1910. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1911. $as_echo_n "checking for $2... " >&6; }
  1912. if eval \${$3+:} false; then :
  1913. $as_echo_n "(cached) " >&6
  1914. fi
  1915. eval ac_res=\$$3
  1916. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1917. $as_echo "$ac_res" >&6; }
  1918. else
  1919. # Is the header compilable?
  1920. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
  1921. $as_echo_n "checking $2 usability... " >&6; }
  1922. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1923. /* end confdefs.h. */
  1924. $4
  1925. #include <$2>
  1926. _ACEOF
  1927. if ac_fn_c_try_compile "$LINENO"; then :
  1928. ac_header_compiler=yes
  1929. else
  1930. ac_header_compiler=no
  1931. fi
  1932. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1933. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
  1934. $as_echo "$ac_header_compiler" >&6; }
  1935. # Is the header present?
  1936. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
  1937. $as_echo_n "checking $2 presence... " >&6; }
  1938. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1939. /* end confdefs.h. */
  1940. #include <$2>
  1941. _ACEOF
  1942. if ac_fn_c_try_cpp "$LINENO"; then :
  1943. ac_header_preproc=yes
  1944. else
  1945. ac_header_preproc=no
  1946. fi
  1947. rm -f conftest.err conftest.i conftest.$ac_ext
  1948. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
  1949. $as_echo "$ac_header_preproc" >&6; }
  1950. # So? What about this header?
  1951. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
  1952. yes:no: )
  1953. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
  1954. $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
  1955. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1956. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1957. ;;
  1958. no:yes:* )
  1959. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
  1960. $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
  1961. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
  1962. $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
  1963. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
  1964. $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
  1965. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
  1966. $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
  1967. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1968. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1969. ( $as_echo "## --------------------------------------------- ##
  1970. ## Report this to serj.kalichev at gmail dot com ##
  1971. ## --------------------------------------------- ##"
  1972. ) | sed "s/^/$as_me: WARNING: /" >&2
  1973. ;;
  1974. esac
  1975. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1976. $as_echo_n "checking for $2... " >&6; }
  1977. if eval \${$3+:} false; then :
  1978. $as_echo_n "(cached) " >&6
  1979. else
  1980. eval "$3=\$ac_header_compiler"
  1981. fi
  1982. eval ac_res=\$$3
  1983. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1984. $as_echo "$ac_res" >&6; }
  1985. fi
  1986. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1987. } # ac_fn_c_check_header_mongrel
  1988. cat >config.log <<_ACEOF
  1989. This file contains any messages produced by compilers while
  1990. running configure, to aid debugging if configure makes a mistake.
  1991. It was created by klish $as_me 1.5.3, which was
  1992. generated by GNU Autoconf 2.68. Invocation command line was
  1993. $ $0 $@
  1994. _ACEOF
  1995. exec 5>>config.log
  1996. {
  1997. cat <<_ASUNAME
  1998. ## --------- ##
  1999. ## Platform. ##
  2000. ## --------- ##
  2001. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  2002. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  2003. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  2004. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  2005. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  2006. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  2007. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  2008. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  2009. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  2010. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  2011. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  2012. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  2013. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  2014. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  2015. _ASUNAME
  2016. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2017. for as_dir in $PATH
  2018. do
  2019. IFS=$as_save_IFS
  2020. test -z "$as_dir" && as_dir=.
  2021. $as_echo "PATH: $as_dir"
  2022. done
  2023. IFS=$as_save_IFS
  2024. } >&5
  2025. cat >&5 <<_ACEOF
  2026. ## ----------- ##
  2027. ## Core tests. ##
  2028. ## ----------- ##
  2029. _ACEOF
  2030. # Keep a trace of the command line.
  2031. # Strip out --no-create and --no-recursion so they do not pile up.
  2032. # Strip out --silent because we don't want to record it for future runs.
  2033. # Also quote any args containing shell meta-characters.
  2034. # Make two passes to allow for proper duplicate-argument suppression.
  2035. ac_configure_args=
  2036. ac_configure_args0=
  2037. ac_configure_args1=
  2038. ac_must_keep_next=false
  2039. for ac_pass in 1 2
  2040. do
  2041. for ac_arg
  2042. do
  2043. case $ac_arg in
  2044. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  2045. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  2046. | -silent | --silent | --silen | --sile | --sil)
  2047. continue ;;
  2048. *\'*)
  2049. ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  2050. esac
  2051. case $ac_pass in
  2052. 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  2053. 2)
  2054. as_fn_append ac_configure_args1 " '$ac_arg'"
  2055. if test $ac_must_keep_next = true; then
  2056. ac_must_keep_next=false # Got value, back to normal.
  2057. else
  2058. case $ac_arg in
  2059. *=* | --config-cache | -C | -disable-* | --disable-* \
  2060. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  2061. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  2062. | -with-* | --with-* | -without-* | --without-* | --x)
  2063. case "$ac_configure_args0 " in
  2064. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  2065. esac
  2066. ;;
  2067. -* ) ac_must_keep_next=true ;;
  2068. esac
  2069. fi
  2070. as_fn_append ac_configure_args " '$ac_arg'"
  2071. ;;
  2072. esac
  2073. done
  2074. done
  2075. { ac_configure_args0=; unset ac_configure_args0;}
  2076. { ac_configure_args1=; unset ac_configure_args1;}
  2077. # When interrupted or exit'd, cleanup temporary files, and complete
  2078. # config.log. We remove comments because anyway the quotes in there
  2079. # would cause problems or look ugly.
  2080. # WARNING: Use '\'' to represent an apostrophe within the trap.
  2081. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  2082. trap 'exit_status=$?
  2083. # Save into config.log some information that might help in debugging.
  2084. {
  2085. echo
  2086. $as_echo "## ---------------- ##
  2087. ## Cache variables. ##
  2088. ## ---------------- ##"
  2089. echo
  2090. # The following way of writing the cache mishandles newlines in values,
  2091. (
  2092. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  2093. eval ac_val=\$$ac_var
  2094. case $ac_val in #(
  2095. *${as_nl}*)
  2096. case $ac_var in #(
  2097. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  2098. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  2099. esac
  2100. case $ac_var in #(
  2101. _ | IFS | as_nl) ;; #(
  2102. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  2103. *) { eval $ac_var=; unset $ac_var;} ;;
  2104. esac ;;
  2105. esac
  2106. done
  2107. (set) 2>&1 |
  2108. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  2109. *${as_nl}ac_space=\ *)
  2110. sed -n \
  2111. "s/'\''/'\''\\\\'\'''\''/g;
  2112. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  2113. ;; #(
  2114. *)
  2115. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  2116. ;;
  2117. esac |
  2118. sort
  2119. )
  2120. echo
  2121. $as_echo "## ----------------- ##
  2122. ## Output variables. ##
  2123. ## ----------------- ##"
  2124. echo
  2125. for ac_var in $ac_subst_vars
  2126. do
  2127. eval ac_val=\$$ac_var
  2128. case $ac_val in
  2129. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2130. esac
  2131. $as_echo "$ac_var='\''$ac_val'\''"
  2132. done | sort
  2133. echo
  2134. if test -n "$ac_subst_files"; then
  2135. $as_echo "## ------------------- ##
  2136. ## File substitutions. ##
  2137. ## ------------------- ##"
  2138. echo
  2139. for ac_var in $ac_subst_files
  2140. do
  2141. eval ac_val=\$$ac_var
  2142. case $ac_val in
  2143. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2144. esac
  2145. $as_echo "$ac_var='\''$ac_val'\''"
  2146. done | sort
  2147. echo
  2148. fi
  2149. if test -s confdefs.h; then
  2150. $as_echo "## ----------- ##
  2151. ## confdefs.h. ##
  2152. ## ----------- ##"
  2153. echo
  2154. cat confdefs.h
  2155. echo
  2156. fi
  2157. test "$ac_signal" != 0 &&
  2158. $as_echo "$as_me: caught signal $ac_signal"
  2159. $as_echo "$as_me: exit $exit_status"
  2160. } >&5
  2161. rm -f core *.core core.conftest.* &&
  2162. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  2163. exit $exit_status
  2164. ' 0
  2165. for ac_signal in 1 2 13 15; do
  2166. trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  2167. done
  2168. ac_signal=0
  2169. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  2170. rm -f -r conftest* confdefs.h
  2171. $as_echo "/* confdefs.h */" > confdefs.h
  2172. # Predefined preprocessor variables.
  2173. cat >>confdefs.h <<_ACEOF
  2174. #define PACKAGE_NAME "$PACKAGE_NAME"
  2175. _ACEOF
  2176. cat >>confdefs.h <<_ACEOF
  2177. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  2178. _ACEOF
  2179. cat >>confdefs.h <<_ACEOF
  2180. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  2181. _ACEOF
  2182. cat >>confdefs.h <<_ACEOF
  2183. #define PACKAGE_STRING "$PACKAGE_STRING"
  2184. _ACEOF
  2185. cat >>confdefs.h <<_ACEOF
  2186. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  2187. _ACEOF
  2188. cat >>confdefs.h <<_ACEOF
  2189. #define PACKAGE_URL "$PACKAGE_URL"
  2190. _ACEOF
  2191. # Let the site file select an alternate cache file if it wants to.
  2192. # Prefer an explicitly selected file to automatically selected ones.
  2193. ac_site_file1=NONE
  2194. ac_site_file2=NONE
  2195. if test -n "$CONFIG_SITE"; then
  2196. # We do not want a PATH search for config.site.
  2197. case $CONFIG_SITE in #((
  2198. -*) ac_site_file1=./$CONFIG_SITE;;
  2199. */*) ac_site_file1=$CONFIG_SITE;;
  2200. *) ac_site_file1=./$CONFIG_SITE;;
  2201. esac
  2202. elif test "x$prefix" != xNONE; then
  2203. ac_site_file1=$prefix/share/config.site
  2204. ac_site_file2=$prefix/etc/config.site
  2205. else
  2206. ac_site_file1=$ac_default_prefix/share/config.site
  2207. ac_site_file2=$ac_default_prefix/etc/config.site
  2208. fi
  2209. for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  2210. do
  2211. test "x$ac_site_file" = xNONE && continue
  2212. if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
  2213. { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  2214. $as_echo "$as_me: loading site script $ac_site_file" >&6;}
  2215. sed 's/^/| /' "$ac_site_file" >&5
  2216. . "$ac_site_file" \
  2217. || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2218. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2219. as_fn_error $? "failed to load site script $ac_site_file
  2220. See \`config.log' for more details" "$LINENO" 5; }
  2221. fi
  2222. done
  2223. if test -r "$cache_file"; then
  2224. # Some versions of bash will fail to source /dev/null (special files
  2225. # actually), so we avoid doing that. DJGPP emulates it as a regular file.
  2226. if test /dev/null != "$cache_file" && test -f "$cache_file"; then
  2227. { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  2228. $as_echo "$as_me: loading cache $cache_file" >&6;}
  2229. case $cache_file in
  2230. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  2231. *) . "./$cache_file";;
  2232. esac
  2233. fi
  2234. else
  2235. { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  2236. $as_echo "$as_me: creating cache $cache_file" >&6;}
  2237. >$cache_file
  2238. fi
  2239. # Check that the precious variables saved in the cache have kept the same
  2240. # value.
  2241. ac_cache_corrupted=false
  2242. for ac_var in $ac_precious_vars; do
  2243. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  2244. eval ac_new_set=\$ac_env_${ac_var}_set
  2245. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  2246. eval ac_new_val=\$ac_env_${ac_var}_value
  2247. case $ac_old_set,$ac_new_set in
  2248. set,)
  2249. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  2250. $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  2251. ac_cache_corrupted=: ;;
  2252. ,set)
  2253. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  2254. $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  2255. ac_cache_corrupted=: ;;
  2256. ,);;
  2257. *)
  2258. if test "x$ac_old_val" != "x$ac_new_val"; then
  2259. # differences in whitespace do not lead to failure.
  2260. ac_old_val_w=`echo x $ac_old_val`
  2261. ac_new_val_w=`echo x $ac_new_val`
  2262. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  2263. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  2264. $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  2265. ac_cache_corrupted=:
  2266. else
  2267. { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  2268. $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  2269. eval $ac_var=\$ac_old_val
  2270. fi
  2271. { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
  2272. $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
  2273. { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
  2274. $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
  2275. fi;;
  2276. esac
  2277. # Pass precious variables to config.status.
  2278. if test "$ac_new_set" = set; then
  2279. case $ac_new_val in
  2280. *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  2281. *) ac_arg=$ac_var=$ac_new_val ;;
  2282. esac
  2283. case " $ac_configure_args " in
  2284. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  2285. *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  2286. esac
  2287. fi
  2288. done
  2289. if $ac_cache_corrupted; then
  2290. { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2291. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2292. { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  2293. $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  2294. as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
  2295. fi
  2296. ## -------------------- ##
  2297. ## Main body of script. ##
  2298. ## -------------------- ##
  2299. ac_ext=c
  2300. ac_cpp='$CPP $CPPFLAGS'
  2301. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2302. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2303. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2304. ac_aux_dir=
  2305. for ac_dir in aux_scripts "$srcdir"/aux_scripts; do
  2306. if test -f "$ac_dir/install-sh"; then
  2307. ac_aux_dir=$ac_dir
  2308. ac_install_sh="$ac_aux_dir/install-sh -c"
  2309. break
  2310. elif test -f "$ac_dir/install.sh"; then
  2311. ac_aux_dir=$ac_dir
  2312. ac_install_sh="$ac_aux_dir/install.sh -c"
  2313. break
  2314. elif test -f "$ac_dir/shtool"; then
  2315. ac_aux_dir=$ac_dir
  2316. ac_install_sh="$ac_aux_dir/shtool install -c"
  2317. break
  2318. fi
  2319. done
  2320. if test -z "$ac_aux_dir"; then
  2321. as_fn_error $? "cannot find install-sh, install.sh, or shtool in aux_scripts \"$srcdir\"/aux_scripts" "$LINENO" 5
  2322. fi
  2323. # These three variables are undocumented and unsupported,
  2324. # and are intended to be withdrawn in a future Autoconf release.
  2325. # They can cause serious problems if a builder's source tree is in a directory
  2326. # whose full name contains unusual characters.
  2327. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  2328. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  2329. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  2330. # Checks for programs.
  2331. ac_ext=c
  2332. ac_cpp='$CPP $CPPFLAGS'
  2333. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2334. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2335. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2336. if test -n "$ac_tool_prefix"; then
  2337. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  2338. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  2339. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2340. $as_echo_n "checking for $ac_word... " >&6; }
  2341. if ${ac_cv_prog_CC+:} false; then :
  2342. $as_echo_n "(cached) " >&6
  2343. else
  2344. if test -n "$CC"; then
  2345. ac_cv_prog_CC="$CC" # Let the user override the test.
  2346. else
  2347. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2348. for as_dir in $PATH
  2349. do
  2350. IFS=$as_save_IFS
  2351. test -z "$as_dir" && as_dir=.
  2352. for ac_exec_ext in '' $ac_executable_extensions; do
  2353. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2354. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  2355. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2356. break 2
  2357. fi
  2358. done
  2359. done
  2360. IFS=$as_save_IFS
  2361. fi
  2362. fi
  2363. CC=$ac_cv_prog_CC
  2364. if test -n "$CC"; then
  2365. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2366. $as_echo "$CC" >&6; }
  2367. else
  2368. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2369. $as_echo "no" >&6; }
  2370. fi
  2371. fi
  2372. if test -z "$ac_cv_prog_CC"; then
  2373. ac_ct_CC=$CC
  2374. # Extract the first word of "gcc", so it can be a program name with args.
  2375. set dummy gcc; ac_word=$2
  2376. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2377. $as_echo_n "checking for $ac_word... " >&6; }
  2378. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  2379. $as_echo_n "(cached) " >&6
  2380. else
  2381. if test -n "$ac_ct_CC"; then
  2382. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2383. else
  2384. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2385. for as_dir in $PATH
  2386. do
  2387. IFS=$as_save_IFS
  2388. test -z "$as_dir" && as_dir=.
  2389. for ac_exec_ext in '' $ac_executable_extensions; do
  2390. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2391. ac_cv_prog_ac_ct_CC="gcc"
  2392. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2393. break 2
  2394. fi
  2395. done
  2396. done
  2397. IFS=$as_save_IFS
  2398. fi
  2399. fi
  2400. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2401. if test -n "$ac_ct_CC"; then
  2402. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  2403. $as_echo "$ac_ct_CC" >&6; }
  2404. else
  2405. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2406. $as_echo "no" >&6; }
  2407. fi
  2408. if test "x$ac_ct_CC" = x; then
  2409. CC=""
  2410. else
  2411. case $cross_compiling:$ac_tool_warned in
  2412. yes:)
  2413. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2414. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2415. ac_tool_warned=yes ;;
  2416. esac
  2417. CC=$ac_ct_CC
  2418. fi
  2419. else
  2420. CC="$ac_cv_prog_CC"
  2421. fi
  2422. if test -z "$CC"; then
  2423. if test -n "$ac_tool_prefix"; then
  2424. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  2425. set dummy ${ac_tool_prefix}cc; ac_word=$2
  2426. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2427. $as_echo_n "checking for $ac_word... " >&6; }
  2428. if ${ac_cv_prog_CC+:} false; then :
  2429. $as_echo_n "(cached) " >&6
  2430. else
  2431. if test -n "$CC"; then
  2432. ac_cv_prog_CC="$CC" # Let the user override the test.
  2433. else
  2434. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2435. for as_dir in $PATH
  2436. do
  2437. IFS=$as_save_IFS
  2438. test -z "$as_dir" && as_dir=.
  2439. for ac_exec_ext in '' $ac_executable_extensions; do
  2440. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2441. ac_cv_prog_CC="${ac_tool_prefix}cc"
  2442. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2443. break 2
  2444. fi
  2445. done
  2446. done
  2447. IFS=$as_save_IFS
  2448. fi
  2449. fi
  2450. CC=$ac_cv_prog_CC
  2451. if test -n "$CC"; then
  2452. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2453. $as_echo "$CC" >&6; }
  2454. else
  2455. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2456. $as_echo "no" >&6; }
  2457. fi
  2458. fi
  2459. fi
  2460. if test -z "$CC"; then
  2461. # Extract the first word of "cc", so it can be a program name with args.
  2462. set dummy cc; ac_word=$2
  2463. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2464. $as_echo_n "checking for $ac_word... " >&6; }
  2465. if ${ac_cv_prog_CC+:} false; then :
  2466. $as_echo_n "(cached) " >&6
  2467. else
  2468. if test -n "$CC"; then
  2469. ac_cv_prog_CC="$CC" # Let the user override the test.
  2470. else
  2471. ac_prog_rejected=no
  2472. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2473. for as_dir in $PATH
  2474. do
  2475. IFS=$as_save_IFS
  2476. test -z "$as_dir" && as_dir=.
  2477. for ac_exec_ext in '' $ac_executable_extensions; do
  2478. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2479. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  2480. ac_prog_rejected=yes
  2481. continue
  2482. fi
  2483. ac_cv_prog_CC="cc"
  2484. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2485. break 2
  2486. fi
  2487. done
  2488. done
  2489. IFS=$as_save_IFS
  2490. if test $ac_prog_rejected = yes; then
  2491. # We found a bogon in the path, so make sure we never use it.
  2492. set dummy $ac_cv_prog_CC
  2493. shift
  2494. if test $# != 0; then
  2495. # We chose a different compiler from the bogus one.
  2496. # However, it has the same basename, so the bogon will be chosen
  2497. # first if we set CC to just the basename; use the full file name.
  2498. shift
  2499. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  2500. fi
  2501. fi
  2502. fi
  2503. fi
  2504. CC=$ac_cv_prog_CC
  2505. if test -n "$CC"; then
  2506. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2507. $as_echo "$CC" >&6; }
  2508. else
  2509. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2510. $as_echo "no" >&6; }
  2511. fi
  2512. fi
  2513. if test -z "$CC"; then
  2514. if test -n "$ac_tool_prefix"; then
  2515. for ac_prog in cl.exe
  2516. do
  2517. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  2518. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  2519. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2520. $as_echo_n "checking for $ac_word... " >&6; }
  2521. if ${ac_cv_prog_CC+:} false; then :
  2522. $as_echo_n "(cached) " >&6
  2523. else
  2524. if test -n "$CC"; then
  2525. ac_cv_prog_CC="$CC" # Let the user override the test.
  2526. else
  2527. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2528. for as_dir in $PATH
  2529. do
  2530. IFS=$as_save_IFS
  2531. test -z "$as_dir" && as_dir=.
  2532. for ac_exec_ext in '' $ac_executable_extensions; do
  2533. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2534. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  2535. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2536. break 2
  2537. fi
  2538. done
  2539. done
  2540. IFS=$as_save_IFS
  2541. fi
  2542. fi
  2543. CC=$ac_cv_prog_CC
  2544. if test -n "$CC"; then
  2545. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2546. $as_echo "$CC" >&6; }
  2547. else
  2548. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2549. $as_echo "no" >&6; }
  2550. fi
  2551. test -n "$CC" && break
  2552. done
  2553. fi
  2554. if test -z "$CC"; then
  2555. ac_ct_CC=$CC
  2556. for ac_prog in cl.exe
  2557. do
  2558. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2559. set dummy $ac_prog; ac_word=$2
  2560. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2561. $as_echo_n "checking for $ac_word... " >&6; }
  2562. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  2563. $as_echo_n "(cached) " >&6
  2564. else
  2565. if test -n "$ac_ct_CC"; then
  2566. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2567. else
  2568. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2569. for as_dir in $PATH
  2570. do
  2571. IFS=$as_save_IFS
  2572. test -z "$as_dir" && as_dir=.
  2573. for ac_exec_ext in '' $ac_executable_extensions; do
  2574. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2575. ac_cv_prog_ac_ct_CC="$ac_prog"
  2576. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2577. break 2
  2578. fi
  2579. done
  2580. done
  2581. IFS=$as_save_IFS
  2582. fi
  2583. fi
  2584. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2585. if test -n "$ac_ct_CC"; then
  2586. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  2587. $as_echo "$ac_ct_CC" >&6; }
  2588. else
  2589. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2590. $as_echo "no" >&6; }
  2591. fi
  2592. test -n "$ac_ct_CC" && break
  2593. done
  2594. if test "x$ac_ct_CC" = x; then
  2595. CC=""
  2596. else
  2597. case $cross_compiling:$ac_tool_warned in
  2598. yes:)
  2599. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2600. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2601. ac_tool_warned=yes ;;
  2602. esac
  2603. CC=$ac_ct_CC
  2604. fi
  2605. fi
  2606. fi
  2607. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2608. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2609. as_fn_error $? "no acceptable C compiler found in \$PATH
  2610. See \`config.log' for more details" "$LINENO" 5; }
  2611. # Provide some information about the compiler.
  2612. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  2613. set X $ac_compile
  2614. ac_compiler=$2
  2615. for ac_option in --version -v -V -qversion; do
  2616. { { ac_try="$ac_compiler $ac_option >&5"
  2617. case "(($ac_try" in
  2618. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2619. *) ac_try_echo=$ac_try;;
  2620. esac
  2621. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2622. $as_echo "$ac_try_echo"; } >&5
  2623. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  2624. ac_status=$?
  2625. if test -s conftest.err; then
  2626. sed '10a\
  2627. ... rest of stderr output deleted ...
  2628. 10q' conftest.err >conftest.er1
  2629. cat conftest.er1 >&5
  2630. fi
  2631. rm -f conftest.er1 conftest.err
  2632. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2633. test $ac_status = 0; }
  2634. done
  2635. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2636. /* end confdefs.h. */
  2637. int
  2638. main ()
  2639. {
  2640. ;
  2641. return 0;
  2642. }
  2643. _ACEOF
  2644. ac_clean_files_save=$ac_clean_files
  2645. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  2646. # Try to create an executable without -o first, disregard a.out.
  2647. # It will help us diagnose broken compilers, and finding out an intuition
  2648. # of exeext.
  2649. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
  2650. $as_echo_n "checking whether the C compiler works... " >&6; }
  2651. ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  2652. # The possible output files:
  2653. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  2654. ac_rmfiles=
  2655. for ac_file in $ac_files
  2656. do
  2657. case $ac_file in
  2658. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  2659. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  2660. esac
  2661. done
  2662. rm -f $ac_rmfiles
  2663. if { { ac_try="$ac_link_default"
  2664. case "(($ac_try" in
  2665. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2666. *) ac_try_echo=$ac_try;;
  2667. esac
  2668. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2669. $as_echo "$ac_try_echo"; } >&5
  2670. (eval "$ac_link_default") 2>&5
  2671. ac_status=$?
  2672. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2673. test $ac_status = 0; }; then :
  2674. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  2675. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  2676. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  2677. # so that the user can short-circuit this test for compilers unknown to
  2678. # Autoconf.
  2679. for ac_file in $ac_files ''
  2680. do
  2681. test -f "$ac_file" || continue
  2682. case $ac_file in
  2683. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  2684. ;;
  2685. [ab].out )
  2686. # We found the default executable, but exeext='' is most
  2687. # certainly right.
  2688. break;;
  2689. *.* )
  2690. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  2691. then :; else
  2692. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2693. fi
  2694. # We set ac_cv_exeext here because the later test for it is not
  2695. # safe: cross compilers may not add the suffix if given an `-o'
  2696. # argument, so we may need to know it at that point already.
  2697. # Even if this section looks crufty: it has the advantage of
  2698. # actually working.
  2699. break;;
  2700. * )
  2701. break;;
  2702. esac
  2703. done
  2704. test "$ac_cv_exeext" = no && ac_cv_exeext=
  2705. else
  2706. ac_file=''
  2707. fi
  2708. if test -z "$ac_file"; then :
  2709. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2710. $as_echo "no" >&6; }
  2711. $as_echo "$as_me: failed program was:" >&5
  2712. sed 's/^/| /' conftest.$ac_ext >&5
  2713. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2714. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2715. as_fn_error 77 "C compiler cannot create executables
  2716. See \`config.log' for more details" "$LINENO" 5; }
  2717. else
  2718. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2719. $as_echo "yes" >&6; }
  2720. fi
  2721. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
  2722. $as_echo_n "checking for C compiler default output file name... " >&6; }
  2723. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  2724. $as_echo "$ac_file" >&6; }
  2725. ac_exeext=$ac_cv_exeext
  2726. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  2727. ac_clean_files=$ac_clean_files_save
  2728. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  2729. $as_echo_n "checking for suffix of executables... " >&6; }
  2730. if { { ac_try="$ac_link"
  2731. case "(($ac_try" in
  2732. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2733. *) ac_try_echo=$ac_try;;
  2734. esac
  2735. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2736. $as_echo "$ac_try_echo"; } >&5
  2737. (eval "$ac_link") 2>&5
  2738. ac_status=$?
  2739. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2740. test $ac_status = 0; }; then :
  2741. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  2742. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  2743. # work properly (i.e., refer to `conftest.exe'), while it won't with
  2744. # `rm'.
  2745. for ac_file in conftest.exe conftest conftest.*; do
  2746. test -f "$ac_file" || continue
  2747. case $ac_file in
  2748. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  2749. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2750. break;;
  2751. * ) break;;
  2752. esac
  2753. done
  2754. else
  2755. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2756. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2757. as_fn_error $? "cannot compute suffix of executables: cannot compile and link
  2758. See \`config.log' for more details" "$LINENO" 5; }
  2759. fi
  2760. rm -f conftest conftest$ac_cv_exeext
  2761. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  2762. $as_echo "$ac_cv_exeext" >&6; }
  2763. rm -f conftest.$ac_ext
  2764. EXEEXT=$ac_cv_exeext
  2765. ac_exeext=$EXEEXT
  2766. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2767. /* end confdefs.h. */
  2768. #include <stdio.h>
  2769. int
  2770. main ()
  2771. {
  2772. FILE *f = fopen ("conftest.out", "w");
  2773. return ferror (f) || fclose (f) != 0;
  2774. ;
  2775. return 0;
  2776. }
  2777. _ACEOF
  2778. ac_clean_files="$ac_clean_files conftest.out"
  2779. # Check that the compiler produces executables we can run. If not, either
  2780. # the compiler is broken, or we cross compile.
  2781. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  2782. $as_echo_n "checking whether we are cross compiling... " >&6; }
  2783. if test "$cross_compiling" != yes; then
  2784. { { ac_try="$ac_link"
  2785. case "(($ac_try" in
  2786. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2787. *) ac_try_echo=$ac_try;;
  2788. esac
  2789. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2790. $as_echo "$ac_try_echo"; } >&5
  2791. (eval "$ac_link") 2>&5
  2792. ac_status=$?
  2793. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2794. test $ac_status = 0; }
  2795. if { ac_try='./conftest$ac_cv_exeext'
  2796. { { case "(($ac_try" in
  2797. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2798. *) ac_try_echo=$ac_try;;
  2799. esac
  2800. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2801. $as_echo "$ac_try_echo"; } >&5
  2802. (eval "$ac_try") 2>&5
  2803. ac_status=$?
  2804. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2805. test $ac_status = 0; }; }; then
  2806. cross_compiling=no
  2807. else
  2808. if test "$cross_compiling" = maybe; then
  2809. cross_compiling=yes
  2810. else
  2811. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2812. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2813. as_fn_error $? "cannot run C compiled programs.
  2814. If you meant to cross compile, use \`--host'.
  2815. See \`config.log' for more details" "$LINENO" 5; }
  2816. fi
  2817. fi
  2818. fi
  2819. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  2820. $as_echo "$cross_compiling" >&6; }
  2821. rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
  2822. ac_clean_files=$ac_clean_files_save
  2823. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  2824. $as_echo_n "checking for suffix of object files... " >&6; }
  2825. if ${ac_cv_objext+:} false; then :
  2826. $as_echo_n "(cached) " >&6
  2827. else
  2828. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2829. /* end confdefs.h. */
  2830. int
  2831. main ()
  2832. {
  2833. ;
  2834. return 0;
  2835. }
  2836. _ACEOF
  2837. rm -f conftest.o conftest.obj
  2838. if { { ac_try="$ac_compile"
  2839. case "(($ac_try" in
  2840. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2841. *) ac_try_echo=$ac_try;;
  2842. esac
  2843. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2844. $as_echo "$ac_try_echo"; } >&5
  2845. (eval "$ac_compile") 2>&5
  2846. ac_status=$?
  2847. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2848. test $ac_status = 0; }; then :
  2849. for ac_file in conftest.o conftest.obj conftest.*; do
  2850. test -f "$ac_file" || continue;
  2851. case $ac_file in
  2852. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  2853. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  2854. break;;
  2855. esac
  2856. done
  2857. else
  2858. $as_echo "$as_me: failed program was:" >&5
  2859. sed 's/^/| /' conftest.$ac_ext >&5
  2860. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2861. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2862. as_fn_error $? "cannot compute suffix of object files: cannot compile
  2863. See \`config.log' for more details" "$LINENO" 5; }
  2864. fi
  2865. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  2866. fi
  2867. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  2868. $as_echo "$ac_cv_objext" >&6; }
  2869. OBJEXT=$ac_cv_objext
  2870. ac_objext=$OBJEXT
  2871. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  2872. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  2873. if ${ac_cv_c_compiler_gnu+:} false; then :
  2874. $as_echo_n "(cached) " >&6
  2875. else
  2876. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2877. /* end confdefs.h. */
  2878. int
  2879. main ()
  2880. {
  2881. #ifndef __GNUC__
  2882. choke me
  2883. #endif
  2884. ;
  2885. return 0;
  2886. }
  2887. _ACEOF
  2888. if ac_fn_c_try_compile "$LINENO"; then :
  2889. ac_compiler_gnu=yes
  2890. else
  2891. ac_compiler_gnu=no
  2892. fi
  2893. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2894. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  2895. fi
  2896. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  2897. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  2898. if test $ac_compiler_gnu = yes; then
  2899. GCC=yes
  2900. else
  2901. GCC=
  2902. fi
  2903. ac_test_CFLAGS=${CFLAGS+set}
  2904. ac_save_CFLAGS=$CFLAGS
  2905. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  2906. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  2907. if ${ac_cv_prog_cc_g+:} false; then :
  2908. $as_echo_n "(cached) " >&6
  2909. else
  2910. ac_save_c_werror_flag=$ac_c_werror_flag
  2911. ac_c_werror_flag=yes
  2912. ac_cv_prog_cc_g=no
  2913. CFLAGS="-g"
  2914. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2915. /* end confdefs.h. */
  2916. int
  2917. main ()
  2918. {
  2919. ;
  2920. return 0;
  2921. }
  2922. _ACEOF
  2923. if ac_fn_c_try_compile "$LINENO"; then :
  2924. ac_cv_prog_cc_g=yes
  2925. else
  2926. CFLAGS=""
  2927. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2928. /* end confdefs.h. */
  2929. int
  2930. main ()
  2931. {
  2932. ;
  2933. return 0;
  2934. }
  2935. _ACEOF
  2936. if ac_fn_c_try_compile "$LINENO"; then :
  2937. else
  2938. ac_c_werror_flag=$ac_save_c_werror_flag
  2939. CFLAGS="-g"
  2940. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2941. /* end confdefs.h. */
  2942. int
  2943. main ()
  2944. {
  2945. ;
  2946. return 0;
  2947. }
  2948. _ACEOF
  2949. if ac_fn_c_try_compile "$LINENO"; then :
  2950. ac_cv_prog_cc_g=yes
  2951. fi
  2952. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2953. fi
  2954. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2955. fi
  2956. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2957. ac_c_werror_flag=$ac_save_c_werror_flag
  2958. fi
  2959. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  2960. $as_echo "$ac_cv_prog_cc_g" >&6; }
  2961. if test "$ac_test_CFLAGS" = set; then
  2962. CFLAGS=$ac_save_CFLAGS
  2963. elif test $ac_cv_prog_cc_g = yes; then
  2964. if test "$GCC" = yes; then
  2965. CFLAGS="-g -O2"
  2966. else
  2967. CFLAGS="-g"
  2968. fi
  2969. else
  2970. if test "$GCC" = yes; then
  2971. CFLAGS="-O2"
  2972. else
  2973. CFLAGS=
  2974. fi
  2975. fi
  2976. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  2977. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  2978. if ${ac_cv_prog_cc_c89+:} false; then :
  2979. $as_echo_n "(cached) " >&6
  2980. else
  2981. ac_cv_prog_cc_c89=no
  2982. ac_save_CC=$CC
  2983. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2984. /* end confdefs.h. */
  2985. #include <stdarg.h>
  2986. #include <stdio.h>
  2987. #include <sys/types.h>
  2988. #include <sys/stat.h>
  2989. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  2990. struct buf { int x; };
  2991. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  2992. static char *e (p, i)
  2993. char **p;
  2994. int i;
  2995. {
  2996. return p[i];
  2997. }
  2998. static char *f (char * (*g) (char **, int), char **p, ...)
  2999. {
  3000. char *s;
  3001. va_list v;
  3002. va_start (v,p);
  3003. s = g (p, va_arg (v,int));
  3004. va_end (v);
  3005. return s;
  3006. }
  3007. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  3008. function prototypes and stuff, but not '\xHH' hex character constants.
  3009. These don't provoke an error unfortunately, instead are silently treated
  3010. as 'x'. The following induces an error, until -std is added to get
  3011. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  3012. array size at least. It's necessary to write '\x00'==0 to get something
  3013. that's true only with -std. */
  3014. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  3015. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  3016. inside strings and character constants. */
  3017. #define FOO(x) 'x'
  3018. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  3019. int test (int i, double x);
  3020. struct s1 {int (*f) (int a);};
  3021. struct s2 {int (*f) (double a);};
  3022. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  3023. int argc;
  3024. char **argv;
  3025. int
  3026. main ()
  3027. {
  3028. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  3029. ;
  3030. return 0;
  3031. }
  3032. _ACEOF
  3033. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  3034. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  3035. do
  3036. CC="$ac_save_CC $ac_arg"
  3037. if ac_fn_c_try_compile "$LINENO"; then :
  3038. ac_cv_prog_cc_c89=$ac_arg
  3039. fi
  3040. rm -f core conftest.err conftest.$ac_objext
  3041. test "x$ac_cv_prog_cc_c89" != "xno" && break
  3042. done
  3043. rm -f conftest.$ac_ext
  3044. CC=$ac_save_CC
  3045. fi
  3046. # AC_CACHE_VAL
  3047. case "x$ac_cv_prog_cc_c89" in
  3048. x)
  3049. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  3050. $as_echo "none needed" >&6; } ;;
  3051. xno)
  3052. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  3053. $as_echo "unsupported" >&6; } ;;
  3054. *)
  3055. CC="$CC $ac_cv_prog_cc_c89"
  3056. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  3057. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  3058. esac
  3059. if test "x$ac_cv_prog_cc_c89" != xno; then :
  3060. fi
  3061. ac_ext=c
  3062. ac_cpp='$CPP $CPPFLAGS'
  3063. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3064. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3065. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3066. ac_ext=cpp
  3067. ac_cpp='$CXXCPP $CPPFLAGS'
  3068. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3069. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3070. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  3071. if test -z "$CXX"; then
  3072. if test -n "$CCC"; then
  3073. CXX=$CCC
  3074. else
  3075. if test -n "$ac_tool_prefix"; then
  3076. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  3077. do
  3078. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  3079. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  3080. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3081. $as_echo_n "checking for $ac_word... " >&6; }
  3082. if ${ac_cv_prog_CXX+:} false; then :
  3083. $as_echo_n "(cached) " >&6
  3084. else
  3085. if test -n "$CXX"; then
  3086. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  3087. else
  3088. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3089. for as_dir in $PATH
  3090. do
  3091. IFS=$as_save_IFS
  3092. test -z "$as_dir" && as_dir=.
  3093. for ac_exec_ext in '' $ac_executable_extensions; do
  3094. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3095. ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  3096. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3097. break 2
  3098. fi
  3099. done
  3100. done
  3101. IFS=$as_save_IFS
  3102. fi
  3103. fi
  3104. CXX=$ac_cv_prog_CXX
  3105. if test -n "$CXX"; then
  3106. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
  3107. $as_echo "$CXX" >&6; }
  3108. else
  3109. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3110. $as_echo "no" >&6; }
  3111. fi
  3112. test -n "$CXX" && break
  3113. done
  3114. fi
  3115. if test -z "$CXX"; then
  3116. ac_ct_CXX=$CXX
  3117. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  3118. do
  3119. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3120. set dummy $ac_prog; ac_word=$2
  3121. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3122. $as_echo_n "checking for $ac_word... " >&6; }
  3123. if ${ac_cv_prog_ac_ct_CXX+:} false; then :
  3124. $as_echo_n "(cached) " >&6
  3125. else
  3126. if test -n "$ac_ct_CXX"; then
  3127. ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  3128. else
  3129. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3130. for as_dir in $PATH
  3131. do
  3132. IFS=$as_save_IFS
  3133. test -z "$as_dir" && as_dir=.
  3134. for ac_exec_ext in '' $ac_executable_extensions; do
  3135. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3136. ac_cv_prog_ac_ct_CXX="$ac_prog"
  3137. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3138. break 2
  3139. fi
  3140. done
  3141. done
  3142. IFS=$as_save_IFS
  3143. fi
  3144. fi
  3145. ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  3146. if test -n "$ac_ct_CXX"; then
  3147. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
  3148. $as_echo "$ac_ct_CXX" >&6; }
  3149. else
  3150. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3151. $as_echo "no" >&6; }
  3152. fi
  3153. test -n "$ac_ct_CXX" && break
  3154. done
  3155. if test "x$ac_ct_CXX" = x; then
  3156. CXX="g++"
  3157. else
  3158. case $cross_compiling:$ac_tool_warned in
  3159. yes:)
  3160. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3161. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3162. ac_tool_warned=yes ;;
  3163. esac
  3164. CXX=$ac_ct_CXX
  3165. fi
  3166. fi
  3167. fi
  3168. fi
  3169. # Provide some information about the compiler.
  3170. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
  3171. set X $ac_compile
  3172. ac_compiler=$2
  3173. for ac_option in --version -v -V -qversion; do
  3174. { { ac_try="$ac_compiler $ac_option >&5"
  3175. case "(($ac_try" in
  3176. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3177. *) ac_try_echo=$ac_try;;
  3178. esac
  3179. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3180. $as_echo "$ac_try_echo"; } >&5
  3181. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  3182. ac_status=$?
  3183. if test -s conftest.err; then
  3184. sed '10a\
  3185. ... rest of stderr output deleted ...
  3186. 10q' conftest.err >conftest.er1
  3187. cat conftest.er1 >&5
  3188. fi
  3189. rm -f conftest.er1 conftest.err
  3190. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3191. test $ac_status = 0; }
  3192. done
  3193. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
  3194. $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
  3195. if ${ac_cv_cxx_compiler_gnu+:} false; then :
  3196. $as_echo_n "(cached) " >&6
  3197. else
  3198. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3199. /* end confdefs.h. */
  3200. int
  3201. main ()
  3202. {
  3203. #ifndef __GNUC__
  3204. choke me
  3205. #endif
  3206. ;
  3207. return 0;
  3208. }
  3209. _ACEOF
  3210. if ac_fn_cxx_try_compile "$LINENO"; then :
  3211. ac_compiler_gnu=yes
  3212. else
  3213. ac_compiler_gnu=no
  3214. fi
  3215. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3216. ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  3217. fi
  3218. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
  3219. $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
  3220. if test $ac_compiler_gnu = yes; then
  3221. GXX=yes
  3222. else
  3223. GXX=
  3224. fi
  3225. ac_test_CXXFLAGS=${CXXFLAGS+set}
  3226. ac_save_CXXFLAGS=$CXXFLAGS
  3227. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
  3228. $as_echo_n "checking whether $CXX accepts -g... " >&6; }
  3229. if ${ac_cv_prog_cxx_g+:} false; then :
  3230. $as_echo_n "(cached) " >&6
  3231. else
  3232. ac_save_cxx_werror_flag=$ac_cxx_werror_flag
  3233. ac_cxx_werror_flag=yes
  3234. ac_cv_prog_cxx_g=no
  3235. CXXFLAGS="-g"
  3236. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3237. /* end confdefs.h. */
  3238. int
  3239. main ()
  3240. {
  3241. ;
  3242. return 0;
  3243. }
  3244. _ACEOF
  3245. if ac_fn_cxx_try_compile "$LINENO"; then :
  3246. ac_cv_prog_cxx_g=yes
  3247. else
  3248. CXXFLAGS=""
  3249. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3250. /* end confdefs.h. */
  3251. int
  3252. main ()
  3253. {
  3254. ;
  3255. return 0;
  3256. }
  3257. _ACEOF
  3258. if ac_fn_cxx_try_compile "$LINENO"; then :
  3259. else
  3260. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  3261. CXXFLAGS="-g"
  3262. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3263. /* end confdefs.h. */
  3264. int
  3265. main ()
  3266. {
  3267. ;
  3268. return 0;
  3269. }
  3270. _ACEOF
  3271. if ac_fn_cxx_try_compile "$LINENO"; then :
  3272. ac_cv_prog_cxx_g=yes
  3273. fi
  3274. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3275. fi
  3276. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3277. fi
  3278. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3279. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  3280. fi
  3281. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
  3282. $as_echo "$ac_cv_prog_cxx_g" >&6; }
  3283. if test "$ac_test_CXXFLAGS" = set; then
  3284. CXXFLAGS=$ac_save_CXXFLAGS
  3285. elif test $ac_cv_prog_cxx_g = yes; then
  3286. if test "$GXX" = yes; then
  3287. CXXFLAGS="-g -O2"
  3288. else
  3289. CXXFLAGS="-g"
  3290. fi
  3291. else
  3292. if test "$GXX" = yes; then
  3293. CXXFLAGS="-O2"
  3294. else
  3295. CXXFLAGS=
  3296. fi
  3297. fi
  3298. ac_ext=c
  3299. ac_cpp='$CPP $CPPFLAGS'
  3300. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3301. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3302. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3303. # Make sure we can run config.sub.
  3304. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  3305. as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
  3306. { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
  3307. $as_echo_n "checking build system type... " >&6; }
  3308. if ${ac_cv_build+:} false; then :
  3309. $as_echo_n "(cached) " >&6
  3310. else
  3311. ac_build_alias=$build_alias
  3312. test "x$ac_build_alias" = x &&
  3313. ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  3314. test "x$ac_build_alias" = x &&
  3315. as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
  3316. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  3317. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
  3318. fi
  3319. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
  3320. $as_echo "$ac_cv_build" >&6; }
  3321. case $ac_cv_build in
  3322. *-*-*) ;;
  3323. *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
  3324. esac
  3325. build=$ac_cv_build
  3326. ac_save_IFS=$IFS; IFS='-'
  3327. set x $ac_cv_build
  3328. shift
  3329. build_cpu=$1
  3330. build_vendor=$2
  3331. shift; shift
  3332. # Remember, the first character of IFS is used to create $*,
  3333. # except with old shells:
  3334. build_os=$*
  3335. IFS=$ac_save_IFS
  3336. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  3337. { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
  3338. $as_echo_n "checking host system type... " >&6; }
  3339. if ${ac_cv_host+:} false; then :
  3340. $as_echo_n "(cached) " >&6
  3341. else
  3342. if test "x$host_alias" = x; then
  3343. ac_cv_host=$ac_cv_build
  3344. else
  3345. ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  3346. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
  3347. fi
  3348. fi
  3349. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
  3350. $as_echo "$ac_cv_host" >&6; }
  3351. case $ac_cv_host in
  3352. *-*-*) ;;
  3353. *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
  3354. esac
  3355. host=$ac_cv_host
  3356. ac_save_IFS=$IFS; IFS='-'
  3357. set x $ac_cv_host
  3358. shift
  3359. host_cpu=$1
  3360. host_vendor=$2
  3361. shift; shift
  3362. # Remember, the first character of IFS is used to create $*,
  3363. # except with old shells:
  3364. host_os=$*
  3365. IFS=$ac_save_IFS
  3366. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  3367. enable_win32_dll=yes
  3368. case $host in
  3369. *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
  3370. if test -n "$ac_tool_prefix"; then
  3371. # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
  3372. set dummy ${ac_tool_prefix}as; ac_word=$2
  3373. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3374. $as_echo_n "checking for $ac_word... " >&6; }
  3375. if ${ac_cv_prog_AS+:} false; then :
  3376. $as_echo_n "(cached) " >&6
  3377. else
  3378. if test -n "$AS"; then
  3379. ac_cv_prog_AS="$AS" # Let the user override the test.
  3380. else
  3381. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3382. for as_dir in $PATH
  3383. do
  3384. IFS=$as_save_IFS
  3385. test -z "$as_dir" && as_dir=.
  3386. for ac_exec_ext in '' $ac_executable_extensions; do
  3387. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3388. ac_cv_prog_AS="${ac_tool_prefix}as"
  3389. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3390. break 2
  3391. fi
  3392. done
  3393. done
  3394. IFS=$as_save_IFS
  3395. fi
  3396. fi
  3397. AS=$ac_cv_prog_AS
  3398. if test -n "$AS"; then
  3399. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
  3400. $as_echo "$AS" >&6; }
  3401. else
  3402. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3403. $as_echo "no" >&6; }
  3404. fi
  3405. fi
  3406. if test -z "$ac_cv_prog_AS"; then
  3407. ac_ct_AS=$AS
  3408. # Extract the first word of "as", so it can be a program name with args.
  3409. set dummy as; ac_word=$2
  3410. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3411. $as_echo_n "checking for $ac_word... " >&6; }
  3412. if ${ac_cv_prog_ac_ct_AS+:} false; then :
  3413. $as_echo_n "(cached) " >&6
  3414. else
  3415. if test -n "$ac_ct_AS"; then
  3416. ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
  3417. else
  3418. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3419. for as_dir in $PATH
  3420. do
  3421. IFS=$as_save_IFS
  3422. test -z "$as_dir" && as_dir=.
  3423. for ac_exec_ext in '' $ac_executable_extensions; do
  3424. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3425. ac_cv_prog_ac_ct_AS="as"
  3426. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3427. break 2
  3428. fi
  3429. done
  3430. done
  3431. IFS=$as_save_IFS
  3432. fi
  3433. fi
  3434. ac_ct_AS=$ac_cv_prog_ac_ct_AS
  3435. if test -n "$ac_ct_AS"; then
  3436. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
  3437. $as_echo "$ac_ct_AS" >&6; }
  3438. else
  3439. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3440. $as_echo "no" >&6; }
  3441. fi
  3442. if test "x$ac_ct_AS" = x; then
  3443. AS="false"
  3444. else
  3445. case $cross_compiling:$ac_tool_warned in
  3446. yes:)
  3447. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3448. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3449. ac_tool_warned=yes ;;
  3450. esac
  3451. AS=$ac_ct_AS
  3452. fi
  3453. else
  3454. AS="$ac_cv_prog_AS"
  3455. fi
  3456. if test -n "$ac_tool_prefix"; then
  3457. # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
  3458. set dummy ${ac_tool_prefix}dlltool; ac_word=$2
  3459. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3460. $as_echo_n "checking for $ac_word... " >&6; }
  3461. if ${ac_cv_prog_DLLTOOL+:} false; then :
  3462. $as_echo_n "(cached) " >&6
  3463. else
  3464. if test -n "$DLLTOOL"; then
  3465. ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
  3466. else
  3467. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3468. for as_dir in $PATH
  3469. do
  3470. IFS=$as_save_IFS
  3471. test -z "$as_dir" && as_dir=.
  3472. for ac_exec_ext in '' $ac_executable_extensions; do
  3473. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3474. ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
  3475. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3476. break 2
  3477. fi
  3478. done
  3479. done
  3480. IFS=$as_save_IFS
  3481. fi
  3482. fi
  3483. DLLTOOL=$ac_cv_prog_DLLTOOL
  3484. if test -n "$DLLTOOL"; then
  3485. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
  3486. $as_echo "$DLLTOOL" >&6; }
  3487. else
  3488. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3489. $as_echo "no" >&6; }
  3490. fi
  3491. fi
  3492. if test -z "$ac_cv_prog_DLLTOOL"; then
  3493. ac_ct_DLLTOOL=$DLLTOOL
  3494. # Extract the first word of "dlltool", so it can be a program name with args.
  3495. set dummy dlltool; ac_word=$2
  3496. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3497. $as_echo_n "checking for $ac_word... " >&6; }
  3498. if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
  3499. $as_echo_n "(cached) " >&6
  3500. else
  3501. if test -n "$ac_ct_DLLTOOL"; then
  3502. ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
  3503. else
  3504. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3505. for as_dir in $PATH
  3506. do
  3507. IFS=$as_save_IFS
  3508. test -z "$as_dir" && as_dir=.
  3509. for ac_exec_ext in '' $ac_executable_extensions; do
  3510. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3511. ac_cv_prog_ac_ct_DLLTOOL="dlltool"
  3512. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3513. break 2
  3514. fi
  3515. done
  3516. done
  3517. IFS=$as_save_IFS
  3518. fi
  3519. fi
  3520. ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
  3521. if test -n "$ac_ct_DLLTOOL"; then
  3522. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
  3523. $as_echo "$ac_ct_DLLTOOL" >&6; }
  3524. else
  3525. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3526. $as_echo "no" >&6; }
  3527. fi
  3528. if test "x$ac_ct_DLLTOOL" = x; then
  3529. DLLTOOL="false"
  3530. else
  3531. case $cross_compiling:$ac_tool_warned in
  3532. yes:)
  3533. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3534. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3535. ac_tool_warned=yes ;;
  3536. esac
  3537. DLLTOOL=$ac_ct_DLLTOOL
  3538. fi
  3539. else
  3540. DLLTOOL="$ac_cv_prog_DLLTOOL"
  3541. fi
  3542. if test -n "$ac_tool_prefix"; then
  3543. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  3544. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  3545. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3546. $as_echo_n "checking for $ac_word... " >&6; }
  3547. if ${ac_cv_prog_OBJDUMP+:} false; then :
  3548. $as_echo_n "(cached) " >&6
  3549. else
  3550. if test -n "$OBJDUMP"; then
  3551. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  3552. else
  3553. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3554. for as_dir in $PATH
  3555. do
  3556. IFS=$as_save_IFS
  3557. test -z "$as_dir" && as_dir=.
  3558. for ac_exec_ext in '' $ac_executable_extensions; do
  3559. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3560. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  3561. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3562. break 2
  3563. fi
  3564. done
  3565. done
  3566. IFS=$as_save_IFS
  3567. fi
  3568. fi
  3569. OBJDUMP=$ac_cv_prog_OBJDUMP
  3570. if test -n "$OBJDUMP"; then
  3571. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  3572. $as_echo "$OBJDUMP" >&6; }
  3573. else
  3574. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3575. $as_echo "no" >&6; }
  3576. fi
  3577. fi
  3578. if test -z "$ac_cv_prog_OBJDUMP"; then
  3579. ac_ct_OBJDUMP=$OBJDUMP
  3580. # Extract the first word of "objdump", so it can be a program name with args.
  3581. set dummy objdump; ac_word=$2
  3582. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3583. $as_echo_n "checking for $ac_word... " >&6; }
  3584. if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
  3585. $as_echo_n "(cached) " >&6
  3586. else
  3587. if test -n "$ac_ct_OBJDUMP"; then
  3588. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  3589. else
  3590. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3591. for as_dir in $PATH
  3592. do
  3593. IFS=$as_save_IFS
  3594. test -z "$as_dir" && as_dir=.
  3595. for ac_exec_ext in '' $ac_executable_extensions; do
  3596. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3597. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  3598. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3599. break 2
  3600. fi
  3601. done
  3602. done
  3603. IFS=$as_save_IFS
  3604. fi
  3605. fi
  3606. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  3607. if test -n "$ac_ct_OBJDUMP"; then
  3608. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  3609. $as_echo "$ac_ct_OBJDUMP" >&6; }
  3610. else
  3611. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3612. $as_echo "no" >&6; }
  3613. fi
  3614. if test "x$ac_ct_OBJDUMP" = x; then
  3615. OBJDUMP="false"
  3616. else
  3617. case $cross_compiling:$ac_tool_warned in
  3618. yes:)
  3619. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3620. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3621. ac_tool_warned=yes ;;
  3622. esac
  3623. OBJDUMP=$ac_ct_OBJDUMP
  3624. fi
  3625. else
  3626. OBJDUMP="$ac_cv_prog_OBJDUMP"
  3627. fi
  3628. ;;
  3629. esac
  3630. test -z "$AS" && AS=as
  3631. test -z "$DLLTOOL" && DLLTOOL=dlltool
  3632. test -z "$OBJDUMP" && OBJDUMP=objdump
  3633. case `pwd` in
  3634. *\ * | *\ *)
  3635. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
  3636. $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
  3637. esac
  3638. macro_version='2.4.2'
  3639. macro_revision='1.3337'
  3640. ltmain="$ac_aux_dir/ltmain.sh"
  3641. # Backslashify metacharacters that are still active within
  3642. # double-quoted strings.
  3643. sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
  3644. # Same as above, but do not quote variable references.
  3645. double_quote_subst='s/\(["`\\]\)/\\\1/g'
  3646. # Sed substitution to delay expansion of an escaped shell variable in a
  3647. # double_quote_subst'ed string.
  3648. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  3649. # Sed substitution to delay expansion of an escaped single quote.
  3650. delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
  3651. # Sed substitution to avoid accidental globbing in evaled expressions
  3652. no_glob_subst='s/\*/\\\*/g'
  3653. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  3654. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
  3655. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
  3656. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
  3657. $as_echo_n "checking how to print strings... " >&6; }
  3658. # Test print first, because it will be a builtin if present.
  3659. if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
  3660. test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
  3661. ECHO='print -r --'
  3662. elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
  3663. ECHO='printf %s\n'
  3664. else
  3665. # Use this function as a fallback that always works.
  3666. func_fallback_echo ()
  3667. {
  3668. eval 'cat <<_LTECHO_EOF
  3669. $1
  3670. _LTECHO_EOF'
  3671. }
  3672. ECHO='func_fallback_echo'
  3673. fi
  3674. # func_echo_all arg...
  3675. # Invoke $ECHO with all args, space-separated.
  3676. func_echo_all ()
  3677. {
  3678. $ECHO ""
  3679. }
  3680. case "$ECHO" in
  3681. printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
  3682. $as_echo "printf" >&6; } ;;
  3683. print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
  3684. $as_echo "print -r" >&6; } ;;
  3685. *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
  3686. $as_echo "cat" >&6; } ;;
  3687. esac
  3688. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
  3689. $as_echo_n "checking for a sed that does not truncate output... " >&6; }
  3690. if ${ac_cv_path_SED+:} false; then :
  3691. $as_echo_n "(cached) " >&6
  3692. else
  3693. ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  3694. for ac_i in 1 2 3 4 5 6 7; do
  3695. ac_script="$ac_script$as_nl$ac_script"
  3696. done
  3697. echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
  3698. { ac_script=; unset ac_script;}
  3699. if test -z "$SED"; then
  3700. ac_path_SED_found=false
  3701. # Loop through the user's path and test for each of PROGNAME-LIST
  3702. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3703. for as_dir in $PATH
  3704. do
  3705. IFS=$as_save_IFS
  3706. test -z "$as_dir" && as_dir=.
  3707. for ac_prog in sed gsed; do
  3708. for ac_exec_ext in '' $ac_executable_extensions; do
  3709. ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
  3710. { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
  3711. # Check for GNU ac_path_SED and select it if it is found.
  3712. # Check for GNU $ac_path_SED
  3713. case `"$ac_path_SED" --version 2>&1` in
  3714. *GNU*)
  3715. ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  3716. *)
  3717. ac_count=0
  3718. $as_echo_n 0123456789 >"conftest.in"
  3719. while :
  3720. do
  3721. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3722. mv "conftest.tmp" "conftest.in"
  3723. cp "conftest.in" "conftest.nl"
  3724. $as_echo '' >> "conftest.nl"
  3725. "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3726. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3727. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3728. if test $ac_count -gt ${ac_path_SED_max-0}; then
  3729. # Best one so far, save it but keep looking for a better one
  3730. ac_cv_path_SED="$ac_path_SED"
  3731. ac_path_SED_max=$ac_count
  3732. fi
  3733. # 10*(2^10) chars as input seems more than enough
  3734. test $ac_count -gt 10 && break
  3735. done
  3736. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3737. esac
  3738. $ac_path_SED_found && break 3
  3739. done
  3740. done
  3741. done
  3742. IFS=$as_save_IFS
  3743. if test -z "$ac_cv_path_SED"; then
  3744. as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
  3745. fi
  3746. else
  3747. ac_cv_path_SED=$SED
  3748. fi
  3749. fi
  3750. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
  3751. $as_echo "$ac_cv_path_SED" >&6; }
  3752. SED="$ac_cv_path_SED"
  3753. rm -f conftest.sed
  3754. test -z "$SED" && SED=sed
  3755. Xsed="$SED -e 1s/^X//"
  3756. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
  3757. $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
  3758. if ${ac_cv_path_GREP+:} false; then :
  3759. $as_echo_n "(cached) " >&6
  3760. else
  3761. if test -z "$GREP"; then
  3762. ac_path_GREP_found=false
  3763. # Loop through the user's path and test for each of PROGNAME-LIST
  3764. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3765. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3766. do
  3767. IFS=$as_save_IFS
  3768. test -z "$as_dir" && as_dir=.
  3769. for ac_prog in grep ggrep; do
  3770. for ac_exec_ext in '' $ac_executable_extensions; do
  3771. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  3772. { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
  3773. # Check for GNU ac_path_GREP and select it if it is found.
  3774. # Check for GNU $ac_path_GREP
  3775. case `"$ac_path_GREP" --version 2>&1` in
  3776. *GNU*)
  3777. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  3778. *)
  3779. ac_count=0
  3780. $as_echo_n 0123456789 >"conftest.in"
  3781. while :
  3782. do
  3783. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3784. mv "conftest.tmp" "conftest.in"
  3785. cp "conftest.in" "conftest.nl"
  3786. $as_echo 'GREP' >> "conftest.nl"
  3787. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3788. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3789. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3790. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  3791. # Best one so far, save it but keep looking for a better one
  3792. ac_cv_path_GREP="$ac_path_GREP"
  3793. ac_path_GREP_max=$ac_count
  3794. fi
  3795. # 10*(2^10) chars as input seems more than enough
  3796. test $ac_count -gt 10 && break
  3797. done
  3798. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3799. esac
  3800. $ac_path_GREP_found && break 3
  3801. done
  3802. done
  3803. done
  3804. IFS=$as_save_IFS
  3805. if test -z "$ac_cv_path_GREP"; then
  3806. as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  3807. fi
  3808. else
  3809. ac_cv_path_GREP=$GREP
  3810. fi
  3811. fi
  3812. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
  3813. $as_echo "$ac_cv_path_GREP" >&6; }
  3814. GREP="$ac_cv_path_GREP"
  3815. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  3816. $as_echo_n "checking for egrep... " >&6; }
  3817. if ${ac_cv_path_EGREP+:} false; then :
  3818. $as_echo_n "(cached) " >&6
  3819. else
  3820. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  3821. then ac_cv_path_EGREP="$GREP -E"
  3822. else
  3823. if test -z "$EGREP"; then
  3824. ac_path_EGREP_found=false
  3825. # Loop through the user's path and test for each of PROGNAME-LIST
  3826. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3827. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3828. do
  3829. IFS=$as_save_IFS
  3830. test -z "$as_dir" && as_dir=.
  3831. for ac_prog in egrep; do
  3832. for ac_exec_ext in '' $ac_executable_extensions; do
  3833. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  3834. { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
  3835. # Check for GNU ac_path_EGREP and select it if it is found.
  3836. # Check for GNU $ac_path_EGREP
  3837. case `"$ac_path_EGREP" --version 2>&1` in
  3838. *GNU*)
  3839. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  3840. *)
  3841. ac_count=0
  3842. $as_echo_n 0123456789 >"conftest.in"
  3843. while :
  3844. do
  3845. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3846. mv "conftest.tmp" "conftest.in"
  3847. cp "conftest.in" "conftest.nl"
  3848. $as_echo 'EGREP' >> "conftest.nl"
  3849. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3850. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3851. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3852. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  3853. # Best one so far, save it but keep looking for a better one
  3854. ac_cv_path_EGREP="$ac_path_EGREP"
  3855. ac_path_EGREP_max=$ac_count
  3856. fi
  3857. # 10*(2^10) chars as input seems more than enough
  3858. test $ac_count -gt 10 && break
  3859. done
  3860. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3861. esac
  3862. $ac_path_EGREP_found && break 3
  3863. done
  3864. done
  3865. done
  3866. IFS=$as_save_IFS
  3867. if test -z "$ac_cv_path_EGREP"; then
  3868. as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  3869. fi
  3870. else
  3871. ac_cv_path_EGREP=$EGREP
  3872. fi
  3873. fi
  3874. fi
  3875. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  3876. $as_echo "$ac_cv_path_EGREP" >&6; }
  3877. EGREP="$ac_cv_path_EGREP"
  3878. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
  3879. $as_echo_n "checking for fgrep... " >&6; }
  3880. if ${ac_cv_path_FGREP+:} false; then :
  3881. $as_echo_n "(cached) " >&6
  3882. else
  3883. if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
  3884. then ac_cv_path_FGREP="$GREP -F"
  3885. else
  3886. if test -z "$FGREP"; then
  3887. ac_path_FGREP_found=false
  3888. # Loop through the user's path and test for each of PROGNAME-LIST
  3889. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3890. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3891. do
  3892. IFS=$as_save_IFS
  3893. test -z "$as_dir" && as_dir=.
  3894. for ac_prog in fgrep; do
  3895. for ac_exec_ext in '' $ac_executable_extensions; do
  3896. ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
  3897. { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
  3898. # Check for GNU ac_path_FGREP and select it if it is found.
  3899. # Check for GNU $ac_path_FGREP
  3900. case `"$ac_path_FGREP" --version 2>&1` in
  3901. *GNU*)
  3902. ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
  3903. *)
  3904. ac_count=0
  3905. $as_echo_n 0123456789 >"conftest.in"
  3906. while :
  3907. do
  3908. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3909. mv "conftest.tmp" "conftest.in"
  3910. cp "conftest.in" "conftest.nl"
  3911. $as_echo 'FGREP' >> "conftest.nl"
  3912. "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3913. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3914. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3915. if test $ac_count -gt ${ac_path_FGREP_max-0}; then
  3916. # Best one so far, save it but keep looking for a better one
  3917. ac_cv_path_FGREP="$ac_path_FGREP"
  3918. ac_path_FGREP_max=$ac_count
  3919. fi
  3920. # 10*(2^10) chars as input seems more than enough
  3921. test $ac_count -gt 10 && break
  3922. done
  3923. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3924. esac
  3925. $ac_path_FGREP_found && break 3
  3926. done
  3927. done
  3928. done
  3929. IFS=$as_save_IFS
  3930. if test -z "$ac_cv_path_FGREP"; then
  3931. as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  3932. fi
  3933. else
  3934. ac_cv_path_FGREP=$FGREP
  3935. fi
  3936. fi
  3937. fi
  3938. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
  3939. $as_echo "$ac_cv_path_FGREP" >&6; }
  3940. FGREP="$ac_cv_path_FGREP"
  3941. test -z "$GREP" && GREP=grep
  3942. # Check whether --with-gnu-ld was given.
  3943. if test "${with_gnu_ld+set}" = set; then :
  3944. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  3945. else
  3946. with_gnu_ld=no
  3947. fi
  3948. ac_prog=ld
  3949. if test "$GCC" = yes; then
  3950. # Check if gcc -print-prog-name=ld gives a path.
  3951. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  3952. $as_echo_n "checking for ld used by $CC... " >&6; }
  3953. case $host in
  3954. *-*-mingw*)
  3955. # gcc leaves a trailing carriage return which upsets mingw
  3956. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  3957. *)
  3958. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  3959. esac
  3960. case $ac_prog in
  3961. # Accept absolute paths.
  3962. [\\/]* | ?:[\\/]*)
  3963. re_direlt='/[^/][^/]*/\.\./'
  3964. # Canonicalize the pathname of ld
  3965. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  3966. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  3967. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  3968. done
  3969. test -z "$LD" && LD="$ac_prog"
  3970. ;;
  3971. "")
  3972. # If it fails, then pretend we aren't using GCC.
  3973. ac_prog=ld
  3974. ;;
  3975. *)
  3976. # If it is relative, then search for the first ld in PATH.
  3977. with_gnu_ld=unknown
  3978. ;;
  3979. esac
  3980. elif test "$with_gnu_ld" = yes; then
  3981. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  3982. $as_echo_n "checking for GNU ld... " >&6; }
  3983. else
  3984. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  3985. $as_echo_n "checking for non-GNU ld... " >&6; }
  3986. fi
  3987. if ${lt_cv_path_LD+:} false; then :
  3988. $as_echo_n "(cached) " >&6
  3989. else
  3990. if test -z "$LD"; then
  3991. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  3992. for ac_dir in $PATH; do
  3993. IFS="$lt_save_ifs"
  3994. test -z "$ac_dir" && ac_dir=.
  3995. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  3996. lt_cv_path_LD="$ac_dir/$ac_prog"
  3997. # Check to see if the program is GNU ld. I'd rather use --version,
  3998. # but apparently some variants of GNU ld only accept -v.
  3999. # Break only if it was the GNU/non-GNU ld that we prefer.
  4000. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  4001. *GNU* | *'with BFD'*)
  4002. test "$with_gnu_ld" != no && break
  4003. ;;
  4004. *)
  4005. test "$with_gnu_ld" != yes && break
  4006. ;;
  4007. esac
  4008. fi
  4009. done
  4010. IFS="$lt_save_ifs"
  4011. else
  4012. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  4013. fi
  4014. fi
  4015. LD="$lt_cv_path_LD"
  4016. if test -n "$LD"; then
  4017. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  4018. $as_echo "$LD" >&6; }
  4019. else
  4020. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4021. $as_echo "no" >&6; }
  4022. fi
  4023. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  4024. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  4025. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  4026. if ${lt_cv_prog_gnu_ld+:} false; then :
  4027. $as_echo_n "(cached) " >&6
  4028. else
  4029. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  4030. case `$LD -v 2>&1 </dev/null` in
  4031. *GNU* | *'with BFD'*)
  4032. lt_cv_prog_gnu_ld=yes
  4033. ;;
  4034. *)
  4035. lt_cv_prog_gnu_ld=no
  4036. ;;
  4037. esac
  4038. fi
  4039. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  4040. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  4041. with_gnu_ld=$lt_cv_prog_gnu_ld
  4042. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
  4043. $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
  4044. if ${lt_cv_path_NM+:} false; then :
  4045. $as_echo_n "(cached) " >&6
  4046. else
  4047. if test -n "$NM"; then
  4048. # Let the user override the test.
  4049. lt_cv_path_NM="$NM"
  4050. else
  4051. lt_nm_to_check="${ac_tool_prefix}nm"
  4052. if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
  4053. lt_nm_to_check="$lt_nm_to_check nm"
  4054. fi
  4055. for lt_tmp_nm in $lt_nm_to_check; do
  4056. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  4057. for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
  4058. IFS="$lt_save_ifs"
  4059. test -z "$ac_dir" && ac_dir=.
  4060. tmp_nm="$ac_dir/$lt_tmp_nm"
  4061. if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
  4062. # Check to see if the nm accepts a BSD-compat flag.
  4063. # Adding the `sed 1q' prevents false positives on HP-UX, which says:
  4064. # nm: unknown option "B" ignored
  4065. # Tru64's nm complains that /dev/null is an invalid object file
  4066. case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
  4067. */dev/null* | *'Invalid file or object type'*)
  4068. lt_cv_path_NM="$tmp_nm -B"
  4069. break
  4070. ;;
  4071. *)
  4072. case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  4073. */dev/null*)
  4074. lt_cv_path_NM="$tmp_nm -p"
  4075. break
  4076. ;;
  4077. *)
  4078. lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  4079. continue # so that we can try to find one that supports BSD flags
  4080. ;;
  4081. esac
  4082. ;;
  4083. esac
  4084. fi
  4085. done
  4086. IFS="$lt_save_ifs"
  4087. done
  4088. : ${lt_cv_path_NM=no}
  4089. fi
  4090. fi
  4091. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
  4092. $as_echo "$lt_cv_path_NM" >&6; }
  4093. if test "$lt_cv_path_NM" != "no"; then
  4094. NM="$lt_cv_path_NM"
  4095. else
  4096. # Didn't find any BSD compatible name lister, look for dumpbin.
  4097. if test -n "$DUMPBIN"; then :
  4098. # Let the user override the test.
  4099. else
  4100. if test -n "$ac_tool_prefix"; then
  4101. for ac_prog in dumpbin "link -dump"
  4102. do
  4103. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  4104. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  4105. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4106. $as_echo_n "checking for $ac_word... " >&6; }
  4107. if ${ac_cv_prog_DUMPBIN+:} false; then :
  4108. $as_echo_n "(cached) " >&6
  4109. else
  4110. if test -n "$DUMPBIN"; then
  4111. ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
  4112. else
  4113. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4114. for as_dir in $PATH
  4115. do
  4116. IFS=$as_save_IFS
  4117. test -z "$as_dir" && as_dir=.
  4118. for ac_exec_ext in '' $ac_executable_extensions; do
  4119. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4120. ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
  4121. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4122. break 2
  4123. fi
  4124. done
  4125. done
  4126. IFS=$as_save_IFS
  4127. fi
  4128. fi
  4129. DUMPBIN=$ac_cv_prog_DUMPBIN
  4130. if test -n "$DUMPBIN"; then
  4131. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
  4132. $as_echo "$DUMPBIN" >&6; }
  4133. else
  4134. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4135. $as_echo "no" >&6; }
  4136. fi
  4137. test -n "$DUMPBIN" && break
  4138. done
  4139. fi
  4140. if test -z "$DUMPBIN"; then
  4141. ac_ct_DUMPBIN=$DUMPBIN
  4142. for ac_prog in dumpbin "link -dump"
  4143. do
  4144. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4145. set dummy $ac_prog; ac_word=$2
  4146. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4147. $as_echo_n "checking for $ac_word... " >&6; }
  4148. if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
  4149. $as_echo_n "(cached) " >&6
  4150. else
  4151. if test -n "$ac_ct_DUMPBIN"; then
  4152. ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
  4153. else
  4154. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4155. for as_dir in $PATH
  4156. do
  4157. IFS=$as_save_IFS
  4158. test -z "$as_dir" && as_dir=.
  4159. for ac_exec_ext in '' $ac_executable_extensions; do
  4160. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4161. ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
  4162. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4163. break 2
  4164. fi
  4165. done
  4166. done
  4167. IFS=$as_save_IFS
  4168. fi
  4169. fi
  4170. ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
  4171. if test -n "$ac_ct_DUMPBIN"; then
  4172. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
  4173. $as_echo "$ac_ct_DUMPBIN" >&6; }
  4174. else
  4175. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4176. $as_echo "no" >&6; }
  4177. fi
  4178. test -n "$ac_ct_DUMPBIN" && break
  4179. done
  4180. if test "x$ac_ct_DUMPBIN" = x; then
  4181. DUMPBIN=":"
  4182. else
  4183. case $cross_compiling:$ac_tool_warned in
  4184. yes:)
  4185. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4186. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4187. ac_tool_warned=yes ;;
  4188. esac
  4189. DUMPBIN=$ac_ct_DUMPBIN
  4190. fi
  4191. fi
  4192. case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
  4193. *COFF*)
  4194. DUMPBIN="$DUMPBIN -symbols"
  4195. ;;
  4196. *)
  4197. DUMPBIN=:
  4198. ;;
  4199. esac
  4200. fi
  4201. if test "$DUMPBIN" != ":"; then
  4202. NM="$DUMPBIN"
  4203. fi
  4204. fi
  4205. test -z "$NM" && NM=nm
  4206. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
  4207. $as_echo_n "checking the name lister ($NM) interface... " >&6; }
  4208. if ${lt_cv_nm_interface+:} false; then :
  4209. $as_echo_n "(cached) " >&6
  4210. else
  4211. lt_cv_nm_interface="BSD nm"
  4212. echo "int some_variable = 0;" > conftest.$ac_ext
  4213. (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
  4214. (eval "$ac_compile" 2>conftest.err)
  4215. cat conftest.err >&5
  4216. (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
  4217. (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
  4218. cat conftest.err >&5
  4219. (eval echo "\"\$as_me:$LINENO: output\"" >&5)
  4220. cat conftest.out >&5
  4221. if $GREP 'External.*some_variable' conftest.out > /dev/null; then
  4222. lt_cv_nm_interface="MS dumpbin"
  4223. fi
  4224. rm -f conftest*
  4225. fi
  4226. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
  4227. $as_echo "$lt_cv_nm_interface" >&6; }
  4228. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
  4229. $as_echo_n "checking whether ln -s works... " >&6; }
  4230. LN_S=$as_ln_s
  4231. if test "$LN_S" = "ln -s"; then
  4232. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4233. $as_echo "yes" >&6; }
  4234. else
  4235. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
  4236. $as_echo "no, using $LN_S" >&6; }
  4237. fi
  4238. # find the maximum length of command line arguments
  4239. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
  4240. $as_echo_n "checking the maximum length of command line arguments... " >&6; }
  4241. if ${lt_cv_sys_max_cmd_len+:} false; then :
  4242. $as_echo_n "(cached) " >&6
  4243. else
  4244. i=0
  4245. teststring="ABCD"
  4246. case $build_os in
  4247. msdosdjgpp*)
  4248. # On DJGPP, this test can blow up pretty badly due to problems in libc
  4249. # (any single argument exceeding 2000 bytes causes a buffer overrun
  4250. # during glob expansion). Even if it were fixed, the result of this
  4251. # check would be larger than it should be.
  4252. lt_cv_sys_max_cmd_len=12288; # 12K is about right
  4253. ;;
  4254. gnu*)
  4255. # Under GNU Hurd, this test is not required because there is
  4256. # no limit to the length of command line arguments.
  4257. # Libtool will interpret -1 as no limit whatsoever
  4258. lt_cv_sys_max_cmd_len=-1;
  4259. ;;
  4260. cygwin* | mingw* | cegcc*)
  4261. # On Win9x/ME, this test blows up -- it succeeds, but takes
  4262. # about 5 minutes as the teststring grows exponentially.
  4263. # Worse, since 9x/ME are not pre-emptively multitasking,
  4264. # you end up with a "frozen" computer, even though with patience
  4265. # the test eventually succeeds (with a max line length of 256k).
  4266. # Instead, let's just punt: use the minimum linelength reported by
  4267. # all of the supported platforms: 8192 (on NT/2K/XP).
  4268. lt_cv_sys_max_cmd_len=8192;
  4269. ;;
  4270. mint*)
  4271. # On MiNT this can take a long time and run out of memory.
  4272. lt_cv_sys_max_cmd_len=8192;
  4273. ;;
  4274. amigaos*)
  4275. # On AmigaOS with pdksh, this test takes hours, literally.
  4276. # So we just punt and use a minimum line length of 8192.
  4277. lt_cv_sys_max_cmd_len=8192;
  4278. ;;
  4279. netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
  4280. # This has been around since 386BSD, at least. Likely further.
  4281. if test -x /sbin/sysctl; then
  4282. lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  4283. elif test -x /usr/sbin/sysctl; then
  4284. lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  4285. else
  4286. lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  4287. fi
  4288. # And add a safety zone
  4289. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  4290. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  4291. ;;
  4292. interix*)
  4293. # We know the value 262144 and hardcode it with a safety zone (like BSD)
  4294. lt_cv_sys_max_cmd_len=196608
  4295. ;;
  4296. os2*)
  4297. # The test takes a long time on OS/2.
  4298. lt_cv_sys_max_cmd_len=8192
  4299. ;;
  4300. osf*)
  4301. # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  4302. # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  4303. # nice to cause kernel panics so lets avoid the loop below.
  4304. # First set a reasonable default.
  4305. lt_cv_sys_max_cmd_len=16384
  4306. #
  4307. if test -x /sbin/sysconfig; then
  4308. case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  4309. *1*) lt_cv_sys_max_cmd_len=-1 ;;
  4310. esac
  4311. fi
  4312. ;;
  4313. sco3.2v5*)
  4314. lt_cv_sys_max_cmd_len=102400
  4315. ;;
  4316. sysv5* | sco5v6* | sysv4.2uw2*)
  4317. kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  4318. if test -n "$kargmax"; then
  4319. lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
  4320. else
  4321. lt_cv_sys_max_cmd_len=32768
  4322. fi
  4323. ;;
  4324. *)
  4325. lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
  4326. if test -n "$lt_cv_sys_max_cmd_len"; then
  4327. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  4328. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  4329. else
  4330. # Make teststring a little bigger before we do anything with it.
  4331. # a 1K string should be a reasonable start.
  4332. for i in 1 2 3 4 5 6 7 8 ; do
  4333. teststring=$teststring$teststring
  4334. done
  4335. SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  4336. # If test is not a shell built-in, we'll probably end up computing a
  4337. # maximum length that is only half of the actual maximum length, but
  4338. # we can't tell.
  4339. while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
  4340. = "X$teststring$teststring"; } >/dev/null 2>&1 &&
  4341. test $i != 17 # 1/2 MB should be enough
  4342. do
  4343. i=`expr $i + 1`
  4344. teststring=$teststring$teststring
  4345. done
  4346. # Only check the string length outside the loop.
  4347. lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
  4348. teststring=
  4349. # Add a significant safety factor because C++ compilers can tack on
  4350. # massive amounts of additional arguments before passing them to the
  4351. # linker. It appears as though 1/2 is a usable value.
  4352. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  4353. fi
  4354. ;;
  4355. esac
  4356. fi
  4357. if test -n $lt_cv_sys_max_cmd_len ; then
  4358. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
  4359. $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
  4360. else
  4361. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
  4362. $as_echo "none" >&6; }
  4363. fi
  4364. max_cmd_len=$lt_cv_sys_max_cmd_len
  4365. : ${CP="cp -f"}
  4366. : ${MV="mv -f"}
  4367. : ${RM="rm -f"}
  4368. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
  4369. $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
  4370. # Try some XSI features
  4371. xsi_shell=no
  4372. ( _lt_dummy="a/b/c"
  4373. test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
  4374. = c,a/b,b/c, \
  4375. && eval 'test $(( 1 + 1 )) -eq 2 \
  4376. && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
  4377. && xsi_shell=yes
  4378. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
  4379. $as_echo "$xsi_shell" >&6; }
  4380. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
  4381. $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
  4382. lt_shell_append=no
  4383. ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
  4384. >/dev/null 2>&1 \
  4385. && lt_shell_append=yes
  4386. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
  4387. $as_echo "$lt_shell_append" >&6; }
  4388. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  4389. lt_unset=unset
  4390. else
  4391. lt_unset=false
  4392. fi
  4393. # test EBCDIC or ASCII
  4394. case `echo X|tr X '\101'` in
  4395. A) # ASCII based system
  4396. # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
  4397. lt_SP2NL='tr \040 \012'
  4398. lt_NL2SP='tr \015\012 \040\040'
  4399. ;;
  4400. *) # EBCDIC based system
  4401. lt_SP2NL='tr \100 \n'
  4402. lt_NL2SP='tr \r\n \100\100'
  4403. ;;
  4404. esac
  4405. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
  4406. $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
  4407. if ${lt_cv_to_host_file_cmd+:} false; then :
  4408. $as_echo_n "(cached) " >&6
  4409. else
  4410. case $host in
  4411. *-*-mingw* )
  4412. case $build in
  4413. *-*-mingw* ) # actually msys
  4414. lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
  4415. ;;
  4416. *-*-cygwin* )
  4417. lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
  4418. ;;
  4419. * ) # otherwise, assume *nix
  4420. lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
  4421. ;;
  4422. esac
  4423. ;;
  4424. *-*-cygwin* )
  4425. case $build in
  4426. *-*-mingw* ) # actually msys
  4427. lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
  4428. ;;
  4429. *-*-cygwin* )
  4430. lt_cv_to_host_file_cmd=func_convert_file_noop
  4431. ;;
  4432. * ) # otherwise, assume *nix
  4433. lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
  4434. ;;
  4435. esac
  4436. ;;
  4437. * ) # unhandled hosts (and "normal" native builds)
  4438. lt_cv_to_host_file_cmd=func_convert_file_noop
  4439. ;;
  4440. esac
  4441. fi
  4442. to_host_file_cmd=$lt_cv_to_host_file_cmd
  4443. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
  4444. $as_echo "$lt_cv_to_host_file_cmd" >&6; }
  4445. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
  4446. $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
  4447. if ${lt_cv_to_tool_file_cmd+:} false; then :
  4448. $as_echo_n "(cached) " >&6
  4449. else
  4450. #assume ordinary cross tools, or native build.
  4451. lt_cv_to_tool_file_cmd=func_convert_file_noop
  4452. case $host in
  4453. *-*-mingw* )
  4454. case $build in
  4455. *-*-mingw* ) # actually msys
  4456. lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
  4457. ;;
  4458. esac
  4459. ;;
  4460. esac
  4461. fi
  4462. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  4463. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
  4464. $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
  4465. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
  4466. $as_echo_n "checking for $LD option to reload object files... " >&6; }
  4467. if ${lt_cv_ld_reload_flag+:} false; then :
  4468. $as_echo_n "(cached) " >&6
  4469. else
  4470. lt_cv_ld_reload_flag='-r'
  4471. fi
  4472. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
  4473. $as_echo "$lt_cv_ld_reload_flag" >&6; }
  4474. reload_flag=$lt_cv_ld_reload_flag
  4475. case $reload_flag in
  4476. "" | " "*) ;;
  4477. *) reload_flag=" $reload_flag" ;;
  4478. esac
  4479. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  4480. case $host_os in
  4481. cygwin* | mingw* | pw32* | cegcc*)
  4482. if test "$GCC" != yes; then
  4483. reload_cmds=false
  4484. fi
  4485. ;;
  4486. darwin*)
  4487. if test "$GCC" = yes; then
  4488. reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
  4489. else
  4490. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  4491. fi
  4492. ;;
  4493. esac
  4494. if test -n "$ac_tool_prefix"; then
  4495. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  4496. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  4497. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4498. $as_echo_n "checking for $ac_word... " >&6; }
  4499. if ${ac_cv_prog_OBJDUMP+:} false; then :
  4500. $as_echo_n "(cached) " >&6
  4501. else
  4502. if test -n "$OBJDUMP"; then
  4503. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  4504. else
  4505. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4506. for as_dir in $PATH
  4507. do
  4508. IFS=$as_save_IFS
  4509. test -z "$as_dir" && as_dir=.
  4510. for ac_exec_ext in '' $ac_executable_extensions; do
  4511. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4512. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  4513. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4514. break 2
  4515. fi
  4516. done
  4517. done
  4518. IFS=$as_save_IFS
  4519. fi
  4520. fi
  4521. OBJDUMP=$ac_cv_prog_OBJDUMP
  4522. if test -n "$OBJDUMP"; then
  4523. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  4524. $as_echo "$OBJDUMP" >&6; }
  4525. else
  4526. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4527. $as_echo "no" >&6; }
  4528. fi
  4529. fi
  4530. if test -z "$ac_cv_prog_OBJDUMP"; then
  4531. ac_ct_OBJDUMP=$OBJDUMP
  4532. # Extract the first word of "objdump", so it can be a program name with args.
  4533. set dummy objdump; ac_word=$2
  4534. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4535. $as_echo_n "checking for $ac_word... " >&6; }
  4536. if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
  4537. $as_echo_n "(cached) " >&6
  4538. else
  4539. if test -n "$ac_ct_OBJDUMP"; then
  4540. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  4541. else
  4542. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4543. for as_dir in $PATH
  4544. do
  4545. IFS=$as_save_IFS
  4546. test -z "$as_dir" && as_dir=.
  4547. for ac_exec_ext in '' $ac_executable_extensions; do
  4548. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4549. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  4550. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4551. break 2
  4552. fi
  4553. done
  4554. done
  4555. IFS=$as_save_IFS
  4556. fi
  4557. fi
  4558. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  4559. if test -n "$ac_ct_OBJDUMP"; then
  4560. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  4561. $as_echo "$ac_ct_OBJDUMP" >&6; }
  4562. else
  4563. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4564. $as_echo "no" >&6; }
  4565. fi
  4566. if test "x$ac_ct_OBJDUMP" = x; then
  4567. OBJDUMP="false"
  4568. else
  4569. case $cross_compiling:$ac_tool_warned in
  4570. yes:)
  4571. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4572. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4573. ac_tool_warned=yes ;;
  4574. esac
  4575. OBJDUMP=$ac_ct_OBJDUMP
  4576. fi
  4577. else
  4578. OBJDUMP="$ac_cv_prog_OBJDUMP"
  4579. fi
  4580. test -z "$OBJDUMP" && OBJDUMP=objdump
  4581. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
  4582. $as_echo_n "checking how to recognize dependent libraries... " >&6; }
  4583. if ${lt_cv_deplibs_check_method+:} false; then :
  4584. $as_echo_n "(cached) " >&6
  4585. else
  4586. lt_cv_file_magic_cmd='$MAGIC_CMD'
  4587. lt_cv_file_magic_test_file=
  4588. lt_cv_deplibs_check_method='unknown'
  4589. # Need to set the preceding variable on all platforms that support
  4590. # interlibrary dependencies.
  4591. # 'none' -- dependencies not supported.
  4592. # `unknown' -- same as none, but documents that we really don't know.
  4593. # 'pass_all' -- all dependencies passed with no checks.
  4594. # 'test_compile' -- check by making test program.
  4595. # 'file_magic [[regex]]' -- check by looking for files in library path
  4596. # which responds to the $file_magic_cmd with a given extended regex.
  4597. # If you have `file' or equivalent on your system and you're not sure
  4598. # whether `pass_all' will *always* work, you probably want this one.
  4599. case $host_os in
  4600. aix[4-9]*)
  4601. lt_cv_deplibs_check_method=pass_all
  4602. ;;
  4603. beos*)
  4604. lt_cv_deplibs_check_method=pass_all
  4605. ;;
  4606. bsdi[45]*)
  4607. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  4608. lt_cv_file_magic_cmd='/usr/bin/file -L'
  4609. lt_cv_file_magic_test_file=/shlib/libc.so
  4610. ;;
  4611. cygwin*)
  4612. # func_win32_libid is a shell function defined in ltmain.sh
  4613. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  4614. lt_cv_file_magic_cmd='func_win32_libid'
  4615. ;;
  4616. mingw* | pw32*)
  4617. # Base MSYS/MinGW do not provide the 'file' command needed by
  4618. # func_win32_libid shell function, so use a weaker test based on 'objdump',
  4619. # unless we find 'file', for example because we are cross-compiling.
  4620. # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
  4621. if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
  4622. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  4623. lt_cv_file_magic_cmd='func_win32_libid'
  4624. else
  4625. # Keep this pattern in sync with the one in func_win32_libid.
  4626. lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
  4627. lt_cv_file_magic_cmd='$OBJDUMP -f'
  4628. fi
  4629. ;;
  4630. cegcc*)
  4631. # use the weaker test based on 'objdump'. See mingw*.
  4632. lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
  4633. lt_cv_file_magic_cmd='$OBJDUMP -f'
  4634. ;;
  4635. darwin* | rhapsody*)
  4636. lt_cv_deplibs_check_method=pass_all
  4637. ;;
  4638. freebsd* | dragonfly*)
  4639. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  4640. case $host_cpu in
  4641. i*86 )
  4642. # Not sure whether the presence of OpenBSD here was a mistake.
  4643. # Let's accept both of them until this is cleared up.
  4644. lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
  4645. lt_cv_file_magic_cmd=/usr/bin/file
  4646. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  4647. ;;
  4648. esac
  4649. else
  4650. lt_cv_deplibs_check_method=pass_all
  4651. fi
  4652. ;;
  4653. gnu*)
  4654. lt_cv_deplibs_check_method=pass_all
  4655. ;;
  4656. haiku*)
  4657. lt_cv_deplibs_check_method=pass_all
  4658. ;;
  4659. hpux10.20* | hpux11*)
  4660. lt_cv_file_magic_cmd=/usr/bin/file
  4661. case $host_cpu in
  4662. ia64*)
  4663. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
  4664. lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  4665. ;;
  4666. hppa*64*)
  4667. 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]'
  4668. lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  4669. ;;
  4670. *)
  4671. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
  4672. lt_cv_file_magic_test_file=/usr/lib/libc.sl
  4673. ;;
  4674. esac
  4675. ;;
  4676. interix[3-9]*)
  4677. # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  4678. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
  4679. ;;
  4680. irix5* | irix6* | nonstopux*)
  4681. case $LD in
  4682. *-32|*"-32 ") libmagic=32-bit;;
  4683. *-n32|*"-n32 ") libmagic=N32;;
  4684. *-64|*"-64 ") libmagic=64-bit;;
  4685. *) libmagic=never-match;;
  4686. esac
  4687. lt_cv_deplibs_check_method=pass_all
  4688. ;;
  4689. # This must be glibc/ELF.
  4690. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  4691. lt_cv_deplibs_check_method=pass_all
  4692. ;;
  4693. netbsd*)
  4694. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  4695. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  4696. else
  4697. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
  4698. fi
  4699. ;;
  4700. newos6*)
  4701. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  4702. lt_cv_file_magic_cmd=/usr/bin/file
  4703. lt_cv_file_magic_test_file=/usr/lib/libnls.so
  4704. ;;
  4705. *nto* | *qnx*)
  4706. lt_cv_deplibs_check_method=pass_all
  4707. ;;
  4708. openbsd*)
  4709. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  4710. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
  4711. else
  4712. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  4713. fi
  4714. ;;
  4715. osf3* | osf4* | osf5*)
  4716. lt_cv_deplibs_check_method=pass_all
  4717. ;;
  4718. rdos*)
  4719. lt_cv_deplibs_check_method=pass_all
  4720. ;;
  4721. solaris*)
  4722. lt_cv_deplibs_check_method=pass_all
  4723. ;;
  4724. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  4725. lt_cv_deplibs_check_method=pass_all
  4726. ;;
  4727. sysv4 | sysv4.3*)
  4728. case $host_vendor in
  4729. motorola)
  4730. 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]'
  4731. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  4732. ;;
  4733. ncr)
  4734. lt_cv_deplibs_check_method=pass_all
  4735. ;;
  4736. sequent)
  4737. lt_cv_file_magic_cmd='/bin/file'
  4738. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
  4739. ;;
  4740. sni)
  4741. lt_cv_file_magic_cmd='/bin/file'
  4742. lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
  4743. lt_cv_file_magic_test_file=/lib/libc.so
  4744. ;;
  4745. siemens)
  4746. lt_cv_deplibs_check_method=pass_all
  4747. ;;
  4748. pc)
  4749. lt_cv_deplibs_check_method=pass_all
  4750. ;;
  4751. esac
  4752. ;;
  4753. tpf*)
  4754. lt_cv_deplibs_check_method=pass_all
  4755. ;;
  4756. esac
  4757. fi
  4758. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
  4759. $as_echo "$lt_cv_deplibs_check_method" >&6; }
  4760. file_magic_glob=
  4761. want_nocaseglob=no
  4762. if test "$build" = "$host"; then
  4763. case $host_os in
  4764. mingw* | pw32*)
  4765. if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
  4766. want_nocaseglob=yes
  4767. else
  4768. file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
  4769. fi
  4770. ;;
  4771. esac
  4772. fi
  4773. file_magic_cmd=$lt_cv_file_magic_cmd
  4774. deplibs_check_method=$lt_cv_deplibs_check_method
  4775. test -z "$deplibs_check_method" && deplibs_check_method=unknown
  4776. if test -n "$ac_tool_prefix"; then
  4777. # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
  4778. set dummy ${ac_tool_prefix}dlltool; ac_word=$2
  4779. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4780. $as_echo_n "checking for $ac_word... " >&6; }
  4781. if ${ac_cv_prog_DLLTOOL+:} false; then :
  4782. $as_echo_n "(cached) " >&6
  4783. else
  4784. if test -n "$DLLTOOL"; then
  4785. ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
  4786. else
  4787. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4788. for as_dir in $PATH
  4789. do
  4790. IFS=$as_save_IFS
  4791. test -z "$as_dir" && as_dir=.
  4792. for ac_exec_ext in '' $ac_executable_extensions; do
  4793. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4794. ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
  4795. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4796. break 2
  4797. fi
  4798. done
  4799. done
  4800. IFS=$as_save_IFS
  4801. fi
  4802. fi
  4803. DLLTOOL=$ac_cv_prog_DLLTOOL
  4804. if test -n "$DLLTOOL"; then
  4805. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
  4806. $as_echo "$DLLTOOL" >&6; }
  4807. else
  4808. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4809. $as_echo "no" >&6; }
  4810. fi
  4811. fi
  4812. if test -z "$ac_cv_prog_DLLTOOL"; then
  4813. ac_ct_DLLTOOL=$DLLTOOL
  4814. # Extract the first word of "dlltool", so it can be a program name with args.
  4815. set dummy dlltool; ac_word=$2
  4816. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4817. $as_echo_n "checking for $ac_word... " >&6; }
  4818. if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
  4819. $as_echo_n "(cached) " >&6
  4820. else
  4821. if test -n "$ac_ct_DLLTOOL"; then
  4822. ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
  4823. else
  4824. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4825. for as_dir in $PATH
  4826. do
  4827. IFS=$as_save_IFS
  4828. test -z "$as_dir" && as_dir=.
  4829. for ac_exec_ext in '' $ac_executable_extensions; do
  4830. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4831. ac_cv_prog_ac_ct_DLLTOOL="dlltool"
  4832. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4833. break 2
  4834. fi
  4835. done
  4836. done
  4837. IFS=$as_save_IFS
  4838. fi
  4839. fi
  4840. ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
  4841. if test -n "$ac_ct_DLLTOOL"; then
  4842. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
  4843. $as_echo "$ac_ct_DLLTOOL" >&6; }
  4844. else
  4845. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4846. $as_echo "no" >&6; }
  4847. fi
  4848. if test "x$ac_ct_DLLTOOL" = x; then
  4849. DLLTOOL="false"
  4850. else
  4851. case $cross_compiling:$ac_tool_warned in
  4852. yes:)
  4853. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4854. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4855. ac_tool_warned=yes ;;
  4856. esac
  4857. DLLTOOL=$ac_ct_DLLTOOL
  4858. fi
  4859. else
  4860. DLLTOOL="$ac_cv_prog_DLLTOOL"
  4861. fi
  4862. test -z "$DLLTOOL" && DLLTOOL=dlltool
  4863. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
  4864. $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
  4865. if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
  4866. $as_echo_n "(cached) " >&6
  4867. else
  4868. lt_cv_sharedlib_from_linklib_cmd='unknown'
  4869. case $host_os in
  4870. cygwin* | mingw* | pw32* | cegcc*)
  4871. # two different shell functions defined in ltmain.sh
  4872. # decide which to use based on capabilities of $DLLTOOL
  4873. case `$DLLTOOL --help 2>&1` in
  4874. *--identify-strict*)
  4875. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
  4876. ;;
  4877. *)
  4878. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
  4879. ;;
  4880. esac
  4881. ;;
  4882. *)
  4883. # fallback: assume linklib IS sharedlib
  4884. lt_cv_sharedlib_from_linklib_cmd="$ECHO"
  4885. ;;
  4886. esac
  4887. fi
  4888. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
  4889. $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
  4890. sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
  4891. test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
  4892. if test -n "$ac_tool_prefix"; then
  4893. for ac_prog in ar
  4894. do
  4895. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  4896. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  4897. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4898. $as_echo_n "checking for $ac_word... " >&6; }
  4899. if ${ac_cv_prog_AR+:} false; then :
  4900. $as_echo_n "(cached) " >&6
  4901. else
  4902. if test -n "$AR"; then
  4903. ac_cv_prog_AR="$AR" # Let the user override the test.
  4904. else
  4905. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4906. for as_dir in $PATH
  4907. do
  4908. IFS=$as_save_IFS
  4909. test -z "$as_dir" && as_dir=.
  4910. for ac_exec_ext in '' $ac_executable_extensions; do
  4911. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4912. ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
  4913. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4914. break 2
  4915. fi
  4916. done
  4917. done
  4918. IFS=$as_save_IFS
  4919. fi
  4920. fi
  4921. AR=$ac_cv_prog_AR
  4922. if test -n "$AR"; then
  4923. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  4924. $as_echo "$AR" >&6; }
  4925. else
  4926. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4927. $as_echo "no" >&6; }
  4928. fi
  4929. test -n "$AR" && break
  4930. done
  4931. fi
  4932. if test -z "$AR"; then
  4933. ac_ct_AR=$AR
  4934. for ac_prog in ar
  4935. do
  4936. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4937. set dummy $ac_prog; ac_word=$2
  4938. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4939. $as_echo_n "checking for $ac_word... " >&6; }
  4940. if ${ac_cv_prog_ac_ct_AR+:} false; then :
  4941. $as_echo_n "(cached) " >&6
  4942. else
  4943. if test -n "$ac_ct_AR"; then
  4944. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  4945. else
  4946. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4947. for as_dir in $PATH
  4948. do
  4949. IFS=$as_save_IFS
  4950. test -z "$as_dir" && as_dir=.
  4951. for ac_exec_ext in '' $ac_executable_extensions; do
  4952. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4953. ac_cv_prog_ac_ct_AR="$ac_prog"
  4954. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4955. break 2
  4956. fi
  4957. done
  4958. done
  4959. IFS=$as_save_IFS
  4960. fi
  4961. fi
  4962. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  4963. if test -n "$ac_ct_AR"; then
  4964. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
  4965. $as_echo "$ac_ct_AR" >&6; }
  4966. else
  4967. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4968. $as_echo "no" >&6; }
  4969. fi
  4970. test -n "$ac_ct_AR" && break
  4971. done
  4972. if test "x$ac_ct_AR" = x; then
  4973. AR="false"
  4974. else
  4975. case $cross_compiling:$ac_tool_warned in
  4976. yes:)
  4977. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4978. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4979. ac_tool_warned=yes ;;
  4980. esac
  4981. AR=$ac_ct_AR
  4982. fi
  4983. fi
  4984. : ${AR=ar}
  4985. : ${AR_FLAGS=cru}
  4986. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
  4987. $as_echo_n "checking for archiver @FILE support... " >&6; }
  4988. if ${lt_cv_ar_at_file+:} false; then :
  4989. $as_echo_n "(cached) " >&6
  4990. else
  4991. lt_cv_ar_at_file=no
  4992. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4993. /* end confdefs.h. */
  4994. int
  4995. main ()
  4996. {
  4997. ;
  4998. return 0;
  4999. }
  5000. _ACEOF
  5001. if ac_fn_c_try_compile "$LINENO"; then :
  5002. echo conftest.$ac_objext > conftest.lst
  5003. lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
  5004. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  5005. (eval $lt_ar_try) 2>&5
  5006. ac_status=$?
  5007. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5008. test $ac_status = 0; }
  5009. if test "$ac_status" -eq 0; then
  5010. # Ensure the archiver fails upon bogus file names.
  5011. rm -f conftest.$ac_objext libconftest.a
  5012. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  5013. (eval $lt_ar_try) 2>&5
  5014. ac_status=$?
  5015. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5016. test $ac_status = 0; }
  5017. if test "$ac_status" -ne 0; then
  5018. lt_cv_ar_at_file=@
  5019. fi
  5020. fi
  5021. rm -f conftest.* libconftest.a
  5022. fi
  5023. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5024. fi
  5025. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
  5026. $as_echo "$lt_cv_ar_at_file" >&6; }
  5027. if test "x$lt_cv_ar_at_file" = xno; then
  5028. archiver_list_spec=
  5029. else
  5030. archiver_list_spec=$lt_cv_ar_at_file
  5031. fi
  5032. if test -n "$ac_tool_prefix"; then
  5033. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  5034. set dummy ${ac_tool_prefix}strip; ac_word=$2
  5035. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5036. $as_echo_n "checking for $ac_word... " >&6; }
  5037. if ${ac_cv_prog_STRIP+:} false; then :
  5038. $as_echo_n "(cached) " >&6
  5039. else
  5040. if test -n "$STRIP"; then
  5041. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  5042. else
  5043. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5044. for as_dir in $PATH
  5045. do
  5046. IFS=$as_save_IFS
  5047. test -z "$as_dir" && as_dir=.
  5048. for ac_exec_ext in '' $ac_executable_extensions; do
  5049. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5050. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  5051. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5052. break 2
  5053. fi
  5054. done
  5055. done
  5056. IFS=$as_save_IFS
  5057. fi
  5058. fi
  5059. STRIP=$ac_cv_prog_STRIP
  5060. if test -n "$STRIP"; then
  5061. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  5062. $as_echo "$STRIP" >&6; }
  5063. else
  5064. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5065. $as_echo "no" >&6; }
  5066. fi
  5067. fi
  5068. if test -z "$ac_cv_prog_STRIP"; then
  5069. ac_ct_STRIP=$STRIP
  5070. # Extract the first word of "strip", so it can be a program name with args.
  5071. set dummy strip; ac_word=$2
  5072. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5073. $as_echo_n "checking for $ac_word... " >&6; }
  5074. if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
  5075. $as_echo_n "(cached) " >&6
  5076. else
  5077. if test -n "$ac_ct_STRIP"; then
  5078. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  5079. else
  5080. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5081. for as_dir in $PATH
  5082. do
  5083. IFS=$as_save_IFS
  5084. test -z "$as_dir" && as_dir=.
  5085. for ac_exec_ext in '' $ac_executable_extensions; do
  5086. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5087. ac_cv_prog_ac_ct_STRIP="strip"
  5088. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5089. break 2
  5090. fi
  5091. done
  5092. done
  5093. IFS=$as_save_IFS
  5094. fi
  5095. fi
  5096. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  5097. if test -n "$ac_ct_STRIP"; then
  5098. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  5099. $as_echo "$ac_ct_STRIP" >&6; }
  5100. else
  5101. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5102. $as_echo "no" >&6; }
  5103. fi
  5104. if test "x$ac_ct_STRIP" = x; then
  5105. STRIP=":"
  5106. else
  5107. case $cross_compiling:$ac_tool_warned in
  5108. yes:)
  5109. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5110. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5111. ac_tool_warned=yes ;;
  5112. esac
  5113. STRIP=$ac_ct_STRIP
  5114. fi
  5115. else
  5116. STRIP="$ac_cv_prog_STRIP"
  5117. fi
  5118. test -z "$STRIP" && STRIP=:
  5119. if test -n "$ac_tool_prefix"; then
  5120. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  5121. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  5122. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5123. $as_echo_n "checking for $ac_word... " >&6; }
  5124. if ${ac_cv_prog_RANLIB+:} false; then :
  5125. $as_echo_n "(cached) " >&6
  5126. else
  5127. if test -n "$RANLIB"; then
  5128. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  5129. else
  5130. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5131. for as_dir in $PATH
  5132. do
  5133. IFS=$as_save_IFS
  5134. test -z "$as_dir" && as_dir=.
  5135. for ac_exec_ext in '' $ac_executable_extensions; do
  5136. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5137. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  5138. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5139. break 2
  5140. fi
  5141. done
  5142. done
  5143. IFS=$as_save_IFS
  5144. fi
  5145. fi
  5146. RANLIB=$ac_cv_prog_RANLIB
  5147. if test -n "$RANLIB"; then
  5148. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  5149. $as_echo "$RANLIB" >&6; }
  5150. else
  5151. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5152. $as_echo "no" >&6; }
  5153. fi
  5154. fi
  5155. if test -z "$ac_cv_prog_RANLIB"; then
  5156. ac_ct_RANLIB=$RANLIB
  5157. # Extract the first word of "ranlib", so it can be a program name with args.
  5158. set dummy ranlib; 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_ac_ct_RANLIB+:} false; then :
  5162. $as_echo_n "(cached) " >&6
  5163. else
  5164. if test -n "$ac_ct_RANLIB"; then
  5165. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # 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 { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5174. ac_cv_prog_ac_ct_RANLIB="ranlib"
  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. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  5184. if test -n "$ac_ct_RANLIB"; then
  5185. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  5186. $as_echo "$ac_ct_RANLIB" >&6; }
  5187. else
  5188. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5189. $as_echo "no" >&6; }
  5190. fi
  5191. if test "x$ac_ct_RANLIB" = x; then
  5192. RANLIB=":"
  5193. else
  5194. case $cross_compiling:$ac_tool_warned in
  5195. yes:)
  5196. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5197. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5198. ac_tool_warned=yes ;;
  5199. esac
  5200. RANLIB=$ac_ct_RANLIB
  5201. fi
  5202. else
  5203. RANLIB="$ac_cv_prog_RANLIB"
  5204. fi
  5205. test -z "$RANLIB" && RANLIB=:
  5206. # Determine commands to create old-style static archives.
  5207. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
  5208. old_postinstall_cmds='chmod 644 $oldlib'
  5209. old_postuninstall_cmds=
  5210. if test -n "$RANLIB"; then
  5211. case $host_os in
  5212. openbsd*)
  5213. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
  5214. ;;
  5215. *)
  5216. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
  5217. ;;
  5218. esac
  5219. old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
  5220. fi
  5221. case $host_os in
  5222. darwin*)
  5223. lock_old_archive_extraction=yes ;;
  5224. *)
  5225. lock_old_archive_extraction=no ;;
  5226. esac
  5227. for ac_prog in gawk mawk nawk awk
  5228. do
  5229. # Extract the first word of "$ac_prog", so it can be a program name with args.
  5230. set dummy $ac_prog; ac_word=$2
  5231. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5232. $as_echo_n "checking for $ac_word... " >&6; }
  5233. if ${ac_cv_prog_AWK+:} false; then :
  5234. $as_echo_n "(cached) " >&6
  5235. else
  5236. if test -n "$AWK"; then
  5237. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  5238. else
  5239. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5240. for as_dir in $PATH
  5241. do
  5242. IFS=$as_save_IFS
  5243. test -z "$as_dir" && as_dir=.
  5244. for ac_exec_ext in '' $ac_executable_extensions; do
  5245. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5246. ac_cv_prog_AWK="$ac_prog"
  5247. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5248. break 2
  5249. fi
  5250. done
  5251. done
  5252. IFS=$as_save_IFS
  5253. fi
  5254. fi
  5255. AWK=$ac_cv_prog_AWK
  5256. if test -n "$AWK"; then
  5257. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  5258. $as_echo "$AWK" >&6; }
  5259. else
  5260. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5261. $as_echo "no" >&6; }
  5262. fi
  5263. test -n "$AWK" && break
  5264. done
  5265. # If no C compiler was specified, use CC.
  5266. LTCC=${LTCC-"$CC"}
  5267. # If no C compiler flags were specified, use CFLAGS.
  5268. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  5269. # Allow CC to be a program name with arguments.
  5270. compiler=$CC
  5271. # Check for command to grab the raw symbol name followed by C symbol from nm.
  5272. { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
  5273. $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
  5274. if ${lt_cv_sys_global_symbol_pipe+:} false; then :
  5275. $as_echo_n "(cached) " >&6
  5276. else
  5277. # These are sane defaults that work on at least a few old systems.
  5278. # [They come from Ultrix. What could be older than Ultrix?!! ;)]
  5279. # Character class describing NM global symbol codes.
  5280. symcode='[BCDEGRST]'
  5281. # Regexp to match symbols that can be accessed directly from C.
  5282. sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
  5283. # Define system-specific variables.
  5284. case $host_os in
  5285. aix*)
  5286. symcode='[BCDT]'
  5287. ;;
  5288. cygwin* | mingw* | pw32* | cegcc*)
  5289. symcode='[ABCDGISTW]'
  5290. ;;
  5291. hpux*)
  5292. if test "$host_cpu" = ia64; then
  5293. symcode='[ABCDEGRST]'
  5294. fi
  5295. ;;
  5296. irix* | nonstopux*)
  5297. symcode='[BCDEGRST]'
  5298. ;;
  5299. osf*)
  5300. symcode='[BCDEGQRST]'
  5301. ;;
  5302. solaris*)
  5303. symcode='[BDRT]'
  5304. ;;
  5305. sco3.2v5*)
  5306. symcode='[DT]'
  5307. ;;
  5308. sysv4.2uw2*)
  5309. symcode='[DT]'
  5310. ;;
  5311. sysv5* | sco5v6* | unixware* | OpenUNIX*)
  5312. symcode='[ABDT]'
  5313. ;;
  5314. sysv4)
  5315. symcode='[DFNSTU]'
  5316. ;;
  5317. esac
  5318. # If we're using GNU nm, then use its standard symbol codes.
  5319. case `$NM -V 2>&1` in
  5320. *GNU* | *'with BFD'*)
  5321. symcode='[ABCDGIRSTW]' ;;
  5322. esac
  5323. # Transform an extracted symbol line into a proper C declaration.
  5324. # Some systems (esp. on ia64) link data and code symbols differently,
  5325. # so use this general approach.
  5326. lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  5327. # Transform an extracted symbol line into symbol name and symbol address
  5328. lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
  5329. 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'"
  5330. # Handle CRLF in mingw tool chain
  5331. opt_cr=
  5332. case $build_os in
  5333. mingw*)
  5334. opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  5335. ;;
  5336. esac
  5337. # Try without a prefix underscore, then with it.
  5338. for ac_symprfx in "" "_"; do
  5339. # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  5340. symxfrm="\\1 $ac_symprfx\\2 \\2"
  5341. # Write the raw and C identifiers.
  5342. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  5343. # Fake it for dumpbin and say T for any non-static function
  5344. # and D for any global variable.
  5345. # Also find C++ and __fastcall symbols from MSVC++,
  5346. # which start with @ or ?.
  5347. lt_cv_sys_global_symbol_pipe="$AWK '"\
  5348. " {last_section=section; section=\$ 3};"\
  5349. " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
  5350. " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
  5351. " \$ 0!~/External *\|/{next};"\
  5352. " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
  5353. " {if(hide[section]) next};"\
  5354. " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
  5355. " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
  5356. " s[1]~/^[@?]/{print s[1], s[1]; next};"\
  5357. " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
  5358. " ' prfx=^$ac_symprfx"
  5359. else
  5360. lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  5361. fi
  5362. lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
  5363. # Check to see that the pipe works correctly.
  5364. pipe_works=no
  5365. rm -f conftest*
  5366. cat > conftest.$ac_ext <<_LT_EOF
  5367. #ifdef __cplusplus
  5368. extern "C" {
  5369. #endif
  5370. char nm_test_var;
  5371. void nm_test_func(void);
  5372. void nm_test_func(void){}
  5373. #ifdef __cplusplus
  5374. }
  5375. #endif
  5376. int main(){nm_test_var='a';nm_test_func();return(0);}
  5377. _LT_EOF
  5378. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5379. (eval $ac_compile) 2>&5
  5380. ac_status=$?
  5381. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5382. test $ac_status = 0; }; then
  5383. # Now try to grab the symbols.
  5384. nlist=conftest.nm
  5385. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
  5386. (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
  5387. ac_status=$?
  5388. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5389. test $ac_status = 0; } && test -s "$nlist"; then
  5390. # Try sorting and uniquifying the output.
  5391. if sort "$nlist" | uniq > "$nlist"T; then
  5392. mv -f "$nlist"T "$nlist"
  5393. else
  5394. rm -f "$nlist"T
  5395. fi
  5396. # Make sure that we snagged all the symbols we need.
  5397. if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
  5398. if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
  5399. cat <<_LT_EOF > conftest.$ac_ext
  5400. /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
  5401. #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
  5402. /* DATA imports from DLLs on WIN32 con't be const, because runtime
  5403. relocations are performed -- see ld's documentation on pseudo-relocs. */
  5404. # define LT_DLSYM_CONST
  5405. #elif defined(__osf__)
  5406. /* This system does not cope well with relocations in const data. */
  5407. # define LT_DLSYM_CONST
  5408. #else
  5409. # define LT_DLSYM_CONST const
  5410. #endif
  5411. #ifdef __cplusplus
  5412. extern "C" {
  5413. #endif
  5414. _LT_EOF
  5415. # Now generate the symbol file.
  5416. eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
  5417. cat <<_LT_EOF >> conftest.$ac_ext
  5418. /* The mapping between symbol names and symbols. */
  5419. LT_DLSYM_CONST struct {
  5420. const char *name;
  5421. void *address;
  5422. }
  5423. lt__PROGRAM__LTX_preloaded_symbols[] =
  5424. {
  5425. { "@PROGRAM@", (void *) 0 },
  5426. _LT_EOF
  5427. $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
  5428. cat <<\_LT_EOF >> conftest.$ac_ext
  5429. {0, (void *) 0}
  5430. };
  5431. /* This works around a problem in FreeBSD linker */
  5432. #ifdef FREEBSD_WORKAROUND
  5433. static const void *lt_preloaded_setup() {
  5434. return lt__PROGRAM__LTX_preloaded_symbols;
  5435. }
  5436. #endif
  5437. #ifdef __cplusplus
  5438. }
  5439. #endif
  5440. _LT_EOF
  5441. # Now try linking the two files.
  5442. mv conftest.$ac_objext conftstm.$ac_objext
  5443. lt_globsym_save_LIBS=$LIBS
  5444. lt_globsym_save_CFLAGS=$CFLAGS
  5445. LIBS="conftstm.$ac_objext"
  5446. CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
  5447. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  5448. (eval $ac_link) 2>&5
  5449. ac_status=$?
  5450. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5451. test $ac_status = 0; } && test -s conftest${ac_exeext}; then
  5452. pipe_works=yes
  5453. fi
  5454. LIBS=$lt_globsym_save_LIBS
  5455. CFLAGS=$lt_globsym_save_CFLAGS
  5456. else
  5457. echo "cannot find nm_test_func in $nlist" >&5
  5458. fi
  5459. else
  5460. echo "cannot find nm_test_var in $nlist" >&5
  5461. fi
  5462. else
  5463. echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
  5464. fi
  5465. else
  5466. echo "$progname: failed program was:" >&5
  5467. cat conftest.$ac_ext >&5
  5468. fi
  5469. rm -rf conftest* conftst*
  5470. # Do not use the global_symbol_pipe unless it works.
  5471. if test "$pipe_works" = yes; then
  5472. break
  5473. else
  5474. lt_cv_sys_global_symbol_pipe=
  5475. fi
  5476. done
  5477. fi
  5478. if test -z "$lt_cv_sys_global_symbol_pipe"; then
  5479. lt_cv_sys_global_symbol_to_cdecl=
  5480. fi
  5481. if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  5482. { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
  5483. $as_echo "failed" >&6; }
  5484. else
  5485. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
  5486. $as_echo "ok" >&6; }
  5487. fi
  5488. # Response file support.
  5489. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  5490. nm_file_list_spec='@'
  5491. elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
  5492. nm_file_list_spec='@'
  5493. fi
  5494. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
  5495. $as_echo_n "checking for sysroot... " >&6; }
  5496. # Check whether --with-sysroot was given.
  5497. if test "${with_sysroot+set}" = set; then :
  5498. withval=$with_sysroot;
  5499. else
  5500. with_sysroot=no
  5501. fi
  5502. lt_sysroot=
  5503. case ${with_sysroot} in #(
  5504. yes)
  5505. if test "$GCC" = yes; then
  5506. lt_sysroot=`$CC --print-sysroot 2>/dev/null`
  5507. fi
  5508. ;; #(
  5509. /*)
  5510. lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
  5511. ;; #(
  5512. no|'')
  5513. ;; #(
  5514. *)
  5515. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
  5516. $as_echo "${with_sysroot}" >&6; }
  5517. as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
  5518. ;;
  5519. esac
  5520. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
  5521. $as_echo "${lt_sysroot:-no}" >&6; }
  5522. # Check whether --enable-libtool-lock was given.
  5523. if test "${enable_libtool_lock+set}" = set; then :
  5524. enableval=$enable_libtool_lock;
  5525. fi
  5526. test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  5527. # Some flags need to be propagated to the compiler or linker for good
  5528. # libtool support.
  5529. case $host in
  5530. ia64-*-hpux*)
  5531. # Find out which ABI we are using.
  5532. echo 'int i;' > conftest.$ac_ext
  5533. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5534. (eval $ac_compile) 2>&5
  5535. ac_status=$?
  5536. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5537. test $ac_status = 0; }; then
  5538. case `/usr/bin/file conftest.$ac_objext` in
  5539. *ELF-32*)
  5540. HPUX_IA64_MODE="32"
  5541. ;;
  5542. *ELF-64*)
  5543. HPUX_IA64_MODE="64"
  5544. ;;
  5545. esac
  5546. fi
  5547. rm -rf conftest*
  5548. ;;
  5549. *-*-irix6*)
  5550. # Find out which ABI we are using.
  5551. echo '#line '$LINENO' "configure"' > conftest.$ac_ext
  5552. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5553. (eval $ac_compile) 2>&5
  5554. ac_status=$?
  5555. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5556. test $ac_status = 0; }; then
  5557. if test "$lt_cv_prog_gnu_ld" = yes; then
  5558. case `/usr/bin/file conftest.$ac_objext` in
  5559. *32-bit*)
  5560. LD="${LD-ld} -melf32bsmip"
  5561. ;;
  5562. *N32*)
  5563. LD="${LD-ld} -melf32bmipn32"
  5564. ;;
  5565. *64-bit*)
  5566. LD="${LD-ld} -melf64bmip"
  5567. ;;
  5568. esac
  5569. else
  5570. case `/usr/bin/file conftest.$ac_objext` in
  5571. *32-bit*)
  5572. LD="${LD-ld} -32"
  5573. ;;
  5574. *N32*)
  5575. LD="${LD-ld} -n32"
  5576. ;;
  5577. *64-bit*)
  5578. LD="${LD-ld} -64"
  5579. ;;
  5580. esac
  5581. fi
  5582. fi
  5583. rm -rf conftest*
  5584. ;;
  5585. x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
  5586. s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
  5587. # Find out which ABI we are using.
  5588. echo 'int i;' > conftest.$ac_ext
  5589. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5590. (eval $ac_compile) 2>&5
  5591. ac_status=$?
  5592. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5593. test $ac_status = 0; }; then
  5594. case `/usr/bin/file conftest.o` in
  5595. *32-bit*)
  5596. case $host in
  5597. x86_64-*kfreebsd*-gnu)
  5598. LD="${LD-ld} -m elf_i386_fbsd"
  5599. ;;
  5600. x86_64-*linux*)
  5601. LD="${LD-ld} -m elf_i386"
  5602. ;;
  5603. ppc64-*linux*|powerpc64-*linux*)
  5604. LD="${LD-ld} -m elf32ppclinux"
  5605. ;;
  5606. s390x-*linux*)
  5607. LD="${LD-ld} -m elf_s390"
  5608. ;;
  5609. sparc64-*linux*)
  5610. LD="${LD-ld} -m elf32_sparc"
  5611. ;;
  5612. esac
  5613. ;;
  5614. *64-bit*)
  5615. case $host in
  5616. x86_64-*kfreebsd*-gnu)
  5617. LD="${LD-ld} -m elf_x86_64_fbsd"
  5618. ;;
  5619. x86_64-*linux*)
  5620. LD="${LD-ld} -m elf_x86_64"
  5621. ;;
  5622. ppc*-*linux*|powerpc*-*linux*)
  5623. LD="${LD-ld} -m elf64ppc"
  5624. ;;
  5625. s390*-*linux*|s390*-*tpf*)
  5626. LD="${LD-ld} -m elf64_s390"
  5627. ;;
  5628. sparc*-*linux*)
  5629. LD="${LD-ld} -m elf64_sparc"
  5630. ;;
  5631. esac
  5632. ;;
  5633. esac
  5634. fi
  5635. rm -rf conftest*
  5636. ;;
  5637. *-*-sco3.2v5*)
  5638. # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  5639. SAVE_CFLAGS="$CFLAGS"
  5640. CFLAGS="$CFLAGS -belf"
  5641. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
  5642. $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
  5643. if ${lt_cv_cc_needs_belf+:} false; then :
  5644. $as_echo_n "(cached) " >&6
  5645. else
  5646. ac_ext=c
  5647. ac_cpp='$CPP $CPPFLAGS'
  5648. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5649. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5650. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5651. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5652. /* end confdefs.h. */
  5653. int
  5654. main ()
  5655. {
  5656. ;
  5657. return 0;
  5658. }
  5659. _ACEOF
  5660. if ac_fn_c_try_link "$LINENO"; then :
  5661. lt_cv_cc_needs_belf=yes
  5662. else
  5663. lt_cv_cc_needs_belf=no
  5664. fi
  5665. rm -f core conftest.err conftest.$ac_objext \
  5666. conftest$ac_exeext conftest.$ac_ext
  5667. ac_ext=c
  5668. ac_cpp='$CPP $CPPFLAGS'
  5669. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5670. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5671. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5672. fi
  5673. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
  5674. $as_echo "$lt_cv_cc_needs_belf" >&6; }
  5675. if test x"$lt_cv_cc_needs_belf" != x"yes"; then
  5676. # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  5677. CFLAGS="$SAVE_CFLAGS"
  5678. fi
  5679. ;;
  5680. *-*solaris*)
  5681. # Find out which ABI we are using.
  5682. echo 'int i;' > conftest.$ac_ext
  5683. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5684. (eval $ac_compile) 2>&5
  5685. ac_status=$?
  5686. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5687. test $ac_status = 0; }; then
  5688. case `/usr/bin/file conftest.o` in
  5689. *64-bit*)
  5690. case $lt_cv_prog_gnu_ld in
  5691. yes*)
  5692. case $host in
  5693. i?86-*-solaris*)
  5694. LD="${LD-ld} -m elf_x86_64"
  5695. ;;
  5696. sparc*-*-solaris*)
  5697. LD="${LD-ld} -m elf64_sparc"
  5698. ;;
  5699. esac
  5700. # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
  5701. if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
  5702. LD="${LD-ld}_sol2"
  5703. fi
  5704. ;;
  5705. *)
  5706. if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
  5707. LD="${LD-ld} -64"
  5708. fi
  5709. ;;
  5710. esac
  5711. ;;
  5712. esac
  5713. fi
  5714. rm -rf conftest*
  5715. ;;
  5716. esac
  5717. need_locks="$enable_libtool_lock"
  5718. if test -n "$ac_tool_prefix"; then
  5719. # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
  5720. set dummy ${ac_tool_prefix}mt; ac_word=$2
  5721. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5722. $as_echo_n "checking for $ac_word... " >&6; }
  5723. if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
  5724. $as_echo_n "(cached) " >&6
  5725. else
  5726. if test -n "$MANIFEST_TOOL"; then
  5727. ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
  5728. else
  5729. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5730. for as_dir in $PATH
  5731. do
  5732. IFS=$as_save_IFS
  5733. test -z "$as_dir" && as_dir=.
  5734. for ac_exec_ext in '' $ac_executable_extensions; do
  5735. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5736. ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
  5737. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5738. break 2
  5739. fi
  5740. done
  5741. done
  5742. IFS=$as_save_IFS
  5743. fi
  5744. fi
  5745. MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
  5746. if test -n "$MANIFEST_TOOL"; then
  5747. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
  5748. $as_echo "$MANIFEST_TOOL" >&6; }
  5749. else
  5750. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5751. $as_echo "no" >&6; }
  5752. fi
  5753. fi
  5754. if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
  5755. ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
  5756. # Extract the first word of "mt", so it can be a program name with args.
  5757. set dummy mt; ac_word=$2
  5758. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5759. $as_echo_n "checking for $ac_word... " >&6; }
  5760. if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
  5761. $as_echo_n "(cached) " >&6
  5762. else
  5763. if test -n "$ac_ct_MANIFEST_TOOL"; then
  5764. ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
  5765. else
  5766. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5767. for as_dir in $PATH
  5768. do
  5769. IFS=$as_save_IFS
  5770. test -z "$as_dir" && as_dir=.
  5771. for ac_exec_ext in '' $ac_executable_extensions; do
  5772. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5773. ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
  5774. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5775. break 2
  5776. fi
  5777. done
  5778. done
  5779. IFS=$as_save_IFS
  5780. fi
  5781. fi
  5782. ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
  5783. if test -n "$ac_ct_MANIFEST_TOOL"; then
  5784. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
  5785. $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
  5786. else
  5787. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5788. $as_echo "no" >&6; }
  5789. fi
  5790. if test "x$ac_ct_MANIFEST_TOOL" = x; then
  5791. MANIFEST_TOOL=":"
  5792. else
  5793. case $cross_compiling:$ac_tool_warned in
  5794. yes:)
  5795. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5796. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5797. ac_tool_warned=yes ;;
  5798. esac
  5799. MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
  5800. fi
  5801. else
  5802. MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
  5803. fi
  5804. test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
  5805. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
  5806. $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
  5807. if ${lt_cv_path_mainfest_tool+:} false; then :
  5808. $as_echo_n "(cached) " >&6
  5809. else
  5810. lt_cv_path_mainfest_tool=no
  5811. echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
  5812. $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
  5813. cat conftest.err >&5
  5814. if $GREP 'Manifest Tool' conftest.out > /dev/null; then
  5815. lt_cv_path_mainfest_tool=yes
  5816. fi
  5817. rm -f conftest*
  5818. fi
  5819. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
  5820. $as_echo "$lt_cv_path_mainfest_tool" >&6; }
  5821. if test "x$lt_cv_path_mainfest_tool" != xyes; then
  5822. MANIFEST_TOOL=:
  5823. fi
  5824. case $host_os in
  5825. rhapsody* | darwin*)
  5826. if test -n "$ac_tool_prefix"; then
  5827. # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
  5828. set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
  5829. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5830. $as_echo_n "checking for $ac_word... " >&6; }
  5831. if ${ac_cv_prog_DSYMUTIL+:} false; then :
  5832. $as_echo_n "(cached) " >&6
  5833. else
  5834. if test -n "$DSYMUTIL"; then
  5835. ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
  5836. else
  5837. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5838. for as_dir in $PATH
  5839. do
  5840. IFS=$as_save_IFS
  5841. test -z "$as_dir" && as_dir=.
  5842. for ac_exec_ext in '' $ac_executable_extensions; do
  5843. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5844. ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
  5845. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5846. break 2
  5847. fi
  5848. done
  5849. done
  5850. IFS=$as_save_IFS
  5851. fi
  5852. fi
  5853. DSYMUTIL=$ac_cv_prog_DSYMUTIL
  5854. if test -n "$DSYMUTIL"; then
  5855. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
  5856. $as_echo "$DSYMUTIL" >&6; }
  5857. else
  5858. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5859. $as_echo "no" >&6; }
  5860. fi
  5861. fi
  5862. if test -z "$ac_cv_prog_DSYMUTIL"; then
  5863. ac_ct_DSYMUTIL=$DSYMUTIL
  5864. # Extract the first word of "dsymutil", so it can be a program name with args.
  5865. set dummy dsymutil; ac_word=$2
  5866. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5867. $as_echo_n "checking for $ac_word... " >&6; }
  5868. if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
  5869. $as_echo_n "(cached) " >&6
  5870. else
  5871. if test -n "$ac_ct_DSYMUTIL"; then
  5872. ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
  5873. else
  5874. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5875. for as_dir in $PATH
  5876. do
  5877. IFS=$as_save_IFS
  5878. test -z "$as_dir" && as_dir=.
  5879. for ac_exec_ext in '' $ac_executable_extensions; do
  5880. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5881. ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
  5882. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5883. break 2
  5884. fi
  5885. done
  5886. done
  5887. IFS=$as_save_IFS
  5888. fi
  5889. fi
  5890. ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
  5891. if test -n "$ac_ct_DSYMUTIL"; then
  5892. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
  5893. $as_echo "$ac_ct_DSYMUTIL" >&6; }
  5894. else
  5895. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5896. $as_echo "no" >&6; }
  5897. fi
  5898. if test "x$ac_ct_DSYMUTIL" = x; then
  5899. DSYMUTIL=":"
  5900. else
  5901. case $cross_compiling:$ac_tool_warned in
  5902. yes:)
  5903. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5904. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5905. ac_tool_warned=yes ;;
  5906. esac
  5907. DSYMUTIL=$ac_ct_DSYMUTIL
  5908. fi
  5909. else
  5910. DSYMUTIL="$ac_cv_prog_DSYMUTIL"
  5911. fi
  5912. if test -n "$ac_tool_prefix"; then
  5913. # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
  5914. set dummy ${ac_tool_prefix}nmedit; ac_word=$2
  5915. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5916. $as_echo_n "checking for $ac_word... " >&6; }
  5917. if ${ac_cv_prog_NMEDIT+:} false; then :
  5918. $as_echo_n "(cached) " >&6
  5919. else
  5920. if test -n "$NMEDIT"; then
  5921. ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
  5922. else
  5923. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5924. for as_dir in $PATH
  5925. do
  5926. IFS=$as_save_IFS
  5927. test -z "$as_dir" && as_dir=.
  5928. for ac_exec_ext in '' $ac_executable_extensions; do
  5929. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5930. ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
  5931. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5932. break 2
  5933. fi
  5934. done
  5935. done
  5936. IFS=$as_save_IFS
  5937. fi
  5938. fi
  5939. NMEDIT=$ac_cv_prog_NMEDIT
  5940. if test -n "$NMEDIT"; then
  5941. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
  5942. $as_echo "$NMEDIT" >&6; }
  5943. else
  5944. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5945. $as_echo "no" >&6; }
  5946. fi
  5947. fi
  5948. if test -z "$ac_cv_prog_NMEDIT"; then
  5949. ac_ct_NMEDIT=$NMEDIT
  5950. # Extract the first word of "nmedit", so it can be a program name with args.
  5951. set dummy nmedit; ac_word=$2
  5952. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5953. $as_echo_n "checking for $ac_word... " >&6; }
  5954. if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
  5955. $as_echo_n "(cached) " >&6
  5956. else
  5957. if test -n "$ac_ct_NMEDIT"; then
  5958. ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
  5959. else
  5960. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5961. for as_dir in $PATH
  5962. do
  5963. IFS=$as_save_IFS
  5964. test -z "$as_dir" && as_dir=.
  5965. for ac_exec_ext in '' $ac_executable_extensions; do
  5966. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5967. ac_cv_prog_ac_ct_NMEDIT="nmedit"
  5968. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5969. break 2
  5970. fi
  5971. done
  5972. done
  5973. IFS=$as_save_IFS
  5974. fi
  5975. fi
  5976. ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
  5977. if test -n "$ac_ct_NMEDIT"; then
  5978. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
  5979. $as_echo "$ac_ct_NMEDIT" >&6; }
  5980. else
  5981. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5982. $as_echo "no" >&6; }
  5983. fi
  5984. if test "x$ac_ct_NMEDIT" = x; then
  5985. NMEDIT=":"
  5986. else
  5987. case $cross_compiling:$ac_tool_warned in
  5988. yes:)
  5989. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5990. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5991. ac_tool_warned=yes ;;
  5992. esac
  5993. NMEDIT=$ac_ct_NMEDIT
  5994. fi
  5995. else
  5996. NMEDIT="$ac_cv_prog_NMEDIT"
  5997. fi
  5998. if test -n "$ac_tool_prefix"; then
  5999. # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
  6000. set dummy ${ac_tool_prefix}lipo; ac_word=$2
  6001. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6002. $as_echo_n "checking for $ac_word... " >&6; }
  6003. if ${ac_cv_prog_LIPO+:} false; then :
  6004. $as_echo_n "(cached) " >&6
  6005. else
  6006. if test -n "$LIPO"; then
  6007. ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
  6008. else
  6009. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6010. for as_dir in $PATH
  6011. do
  6012. IFS=$as_save_IFS
  6013. test -z "$as_dir" && as_dir=.
  6014. for ac_exec_ext in '' $ac_executable_extensions; do
  6015. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6016. ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
  6017. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6018. break 2
  6019. fi
  6020. done
  6021. done
  6022. IFS=$as_save_IFS
  6023. fi
  6024. fi
  6025. LIPO=$ac_cv_prog_LIPO
  6026. if test -n "$LIPO"; then
  6027. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
  6028. $as_echo "$LIPO" >&6; }
  6029. else
  6030. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6031. $as_echo "no" >&6; }
  6032. fi
  6033. fi
  6034. if test -z "$ac_cv_prog_LIPO"; then
  6035. ac_ct_LIPO=$LIPO
  6036. # Extract the first word of "lipo", so it can be a program name with args.
  6037. set dummy lipo; ac_word=$2
  6038. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6039. $as_echo_n "checking for $ac_word... " >&6; }
  6040. if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
  6041. $as_echo_n "(cached) " >&6
  6042. else
  6043. if test -n "$ac_ct_LIPO"; then
  6044. ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
  6045. else
  6046. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6047. for as_dir in $PATH
  6048. do
  6049. IFS=$as_save_IFS
  6050. test -z "$as_dir" && as_dir=.
  6051. for ac_exec_ext in '' $ac_executable_extensions; do
  6052. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6053. ac_cv_prog_ac_ct_LIPO="lipo"
  6054. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6055. break 2
  6056. fi
  6057. done
  6058. done
  6059. IFS=$as_save_IFS
  6060. fi
  6061. fi
  6062. ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
  6063. if test -n "$ac_ct_LIPO"; then
  6064. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
  6065. $as_echo "$ac_ct_LIPO" >&6; }
  6066. else
  6067. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6068. $as_echo "no" >&6; }
  6069. fi
  6070. if test "x$ac_ct_LIPO" = x; then
  6071. LIPO=":"
  6072. else
  6073. case $cross_compiling:$ac_tool_warned in
  6074. yes:)
  6075. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6076. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6077. ac_tool_warned=yes ;;
  6078. esac
  6079. LIPO=$ac_ct_LIPO
  6080. fi
  6081. else
  6082. LIPO="$ac_cv_prog_LIPO"
  6083. fi
  6084. if test -n "$ac_tool_prefix"; then
  6085. # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
  6086. set dummy ${ac_tool_prefix}otool; ac_word=$2
  6087. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6088. $as_echo_n "checking for $ac_word... " >&6; }
  6089. if ${ac_cv_prog_OTOOL+:} false; then :
  6090. $as_echo_n "(cached) " >&6
  6091. else
  6092. if test -n "$OTOOL"; then
  6093. ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
  6094. else
  6095. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6096. for as_dir in $PATH
  6097. do
  6098. IFS=$as_save_IFS
  6099. test -z "$as_dir" && as_dir=.
  6100. for ac_exec_ext in '' $ac_executable_extensions; do
  6101. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6102. ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
  6103. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6104. break 2
  6105. fi
  6106. done
  6107. done
  6108. IFS=$as_save_IFS
  6109. fi
  6110. fi
  6111. OTOOL=$ac_cv_prog_OTOOL
  6112. if test -n "$OTOOL"; then
  6113. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
  6114. $as_echo "$OTOOL" >&6; }
  6115. else
  6116. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6117. $as_echo "no" >&6; }
  6118. fi
  6119. fi
  6120. if test -z "$ac_cv_prog_OTOOL"; then
  6121. ac_ct_OTOOL=$OTOOL
  6122. # Extract the first word of "otool", so it can be a program name with args.
  6123. set dummy otool; ac_word=$2
  6124. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6125. $as_echo_n "checking for $ac_word... " >&6; }
  6126. if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
  6127. $as_echo_n "(cached) " >&6
  6128. else
  6129. if test -n "$ac_ct_OTOOL"; then
  6130. ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
  6131. else
  6132. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6133. for as_dir in $PATH
  6134. do
  6135. IFS=$as_save_IFS
  6136. test -z "$as_dir" && as_dir=.
  6137. for ac_exec_ext in '' $ac_executable_extensions; do
  6138. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6139. ac_cv_prog_ac_ct_OTOOL="otool"
  6140. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6141. break 2
  6142. fi
  6143. done
  6144. done
  6145. IFS=$as_save_IFS
  6146. fi
  6147. fi
  6148. ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
  6149. if test -n "$ac_ct_OTOOL"; then
  6150. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
  6151. $as_echo "$ac_ct_OTOOL" >&6; }
  6152. else
  6153. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6154. $as_echo "no" >&6; }
  6155. fi
  6156. if test "x$ac_ct_OTOOL" = x; then
  6157. OTOOL=":"
  6158. else
  6159. case $cross_compiling:$ac_tool_warned in
  6160. yes:)
  6161. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6162. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6163. ac_tool_warned=yes ;;
  6164. esac
  6165. OTOOL=$ac_ct_OTOOL
  6166. fi
  6167. else
  6168. OTOOL="$ac_cv_prog_OTOOL"
  6169. fi
  6170. if test -n "$ac_tool_prefix"; then
  6171. # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
  6172. set dummy ${ac_tool_prefix}otool64; ac_word=$2
  6173. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6174. $as_echo_n "checking for $ac_word... " >&6; }
  6175. if ${ac_cv_prog_OTOOL64+:} false; then :
  6176. $as_echo_n "(cached) " >&6
  6177. else
  6178. if test -n "$OTOOL64"; then
  6179. ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
  6180. else
  6181. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6182. for as_dir in $PATH
  6183. do
  6184. IFS=$as_save_IFS
  6185. test -z "$as_dir" && as_dir=.
  6186. for ac_exec_ext in '' $ac_executable_extensions; do
  6187. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6188. ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
  6189. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6190. break 2
  6191. fi
  6192. done
  6193. done
  6194. IFS=$as_save_IFS
  6195. fi
  6196. fi
  6197. OTOOL64=$ac_cv_prog_OTOOL64
  6198. if test -n "$OTOOL64"; then
  6199. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
  6200. $as_echo "$OTOOL64" >&6; }
  6201. else
  6202. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6203. $as_echo "no" >&6; }
  6204. fi
  6205. fi
  6206. if test -z "$ac_cv_prog_OTOOL64"; then
  6207. ac_ct_OTOOL64=$OTOOL64
  6208. # Extract the first word of "otool64", so it can be a program name with args.
  6209. set dummy otool64; ac_word=$2
  6210. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6211. $as_echo_n "checking for $ac_word... " >&6; }
  6212. if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
  6213. $as_echo_n "(cached) " >&6
  6214. else
  6215. if test -n "$ac_ct_OTOOL64"; then
  6216. ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
  6217. else
  6218. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6219. for as_dir in $PATH
  6220. do
  6221. IFS=$as_save_IFS
  6222. test -z "$as_dir" && as_dir=.
  6223. for ac_exec_ext in '' $ac_executable_extensions; do
  6224. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6225. ac_cv_prog_ac_ct_OTOOL64="otool64"
  6226. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6227. break 2
  6228. fi
  6229. done
  6230. done
  6231. IFS=$as_save_IFS
  6232. fi
  6233. fi
  6234. ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
  6235. if test -n "$ac_ct_OTOOL64"; then
  6236. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
  6237. $as_echo "$ac_ct_OTOOL64" >&6; }
  6238. else
  6239. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6240. $as_echo "no" >&6; }
  6241. fi
  6242. if test "x$ac_ct_OTOOL64" = x; then
  6243. OTOOL64=":"
  6244. else
  6245. case $cross_compiling:$ac_tool_warned in
  6246. yes:)
  6247. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6248. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6249. ac_tool_warned=yes ;;
  6250. esac
  6251. OTOOL64=$ac_ct_OTOOL64
  6252. fi
  6253. else
  6254. OTOOL64="$ac_cv_prog_OTOOL64"
  6255. fi
  6256. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
  6257. $as_echo_n "checking for -single_module linker flag... " >&6; }
  6258. if ${lt_cv_apple_cc_single_mod+:} false; then :
  6259. $as_echo_n "(cached) " >&6
  6260. else
  6261. lt_cv_apple_cc_single_mod=no
  6262. if test -z "${LT_MULTI_MODULE}"; then
  6263. # By default we will add the -single_module flag. You can override
  6264. # by either setting the environment variable LT_MULTI_MODULE
  6265. # non-empty at configure time, or by adding -multi_module to the
  6266. # link flags.
  6267. rm -rf libconftest.dylib*
  6268. echo "int foo(void){return 1;}" > conftest.c
  6269. echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  6270. -dynamiclib -Wl,-single_module conftest.c" >&5
  6271. $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  6272. -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
  6273. _lt_result=$?
  6274. # If there is a non-empty error log, and "single_module"
  6275. # appears in it, assume the flag caused a linker warning
  6276. if test -s conftest.err && $GREP single_module conftest.err; then
  6277. cat conftest.err >&5
  6278. # Otherwise, if the output was created with a 0 exit code from
  6279. # the compiler, it worked.
  6280. elif test -f libconftest.dylib && test $_lt_result -eq 0; then
  6281. lt_cv_apple_cc_single_mod=yes
  6282. else
  6283. cat conftest.err >&5
  6284. fi
  6285. rm -rf libconftest.dylib*
  6286. rm -f conftest.*
  6287. fi
  6288. fi
  6289. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
  6290. $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
  6291. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
  6292. $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
  6293. if ${lt_cv_ld_exported_symbols_list+:} false; then :
  6294. $as_echo_n "(cached) " >&6
  6295. else
  6296. lt_cv_ld_exported_symbols_list=no
  6297. save_LDFLAGS=$LDFLAGS
  6298. echo "_main" > conftest.sym
  6299. LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
  6300. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6301. /* end confdefs.h. */
  6302. int
  6303. main ()
  6304. {
  6305. ;
  6306. return 0;
  6307. }
  6308. _ACEOF
  6309. if ac_fn_c_try_link "$LINENO"; then :
  6310. lt_cv_ld_exported_symbols_list=yes
  6311. else
  6312. lt_cv_ld_exported_symbols_list=no
  6313. fi
  6314. rm -f core conftest.err conftest.$ac_objext \
  6315. conftest$ac_exeext conftest.$ac_ext
  6316. LDFLAGS="$save_LDFLAGS"
  6317. fi
  6318. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
  6319. $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
  6320. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
  6321. $as_echo_n "checking for -force_load linker flag... " >&6; }
  6322. if ${lt_cv_ld_force_load+:} false; then :
  6323. $as_echo_n "(cached) " >&6
  6324. else
  6325. lt_cv_ld_force_load=no
  6326. cat > conftest.c << _LT_EOF
  6327. int forced_loaded() { return 2;}
  6328. _LT_EOF
  6329. echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
  6330. $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
  6331. echo "$AR cru libconftest.a conftest.o" >&5
  6332. $AR cru libconftest.a conftest.o 2>&5
  6333. echo "$RANLIB libconftest.a" >&5
  6334. $RANLIB libconftest.a 2>&5
  6335. cat > conftest.c << _LT_EOF
  6336. int main() { return 0;}
  6337. _LT_EOF
  6338. echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
  6339. $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
  6340. _lt_result=$?
  6341. if test -s conftest.err && $GREP force_load conftest.err; then
  6342. cat conftest.err >&5
  6343. elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
  6344. lt_cv_ld_force_load=yes
  6345. else
  6346. cat conftest.err >&5
  6347. fi
  6348. rm -f conftest.err libconftest.a conftest conftest.c
  6349. rm -rf conftest.dSYM
  6350. fi
  6351. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
  6352. $as_echo "$lt_cv_ld_force_load" >&6; }
  6353. case $host_os in
  6354. rhapsody* | darwin1.[012])
  6355. _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
  6356. darwin1.*)
  6357. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  6358. darwin*) # darwin 5.x on
  6359. # if running on 10.5 or later, the deployment target defaults
  6360. # to the OS version, if on x86, and 10.4, the deployment
  6361. # target defaults to 10.4. Don't you love it?
  6362. case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
  6363. 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
  6364. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  6365. 10.[012]*)
  6366. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  6367. 10.*)
  6368. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  6369. esac
  6370. ;;
  6371. esac
  6372. if test "$lt_cv_apple_cc_single_mod" = "yes"; then
  6373. _lt_dar_single_mod='$single_module'
  6374. fi
  6375. if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
  6376. _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
  6377. else
  6378. _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
  6379. fi
  6380. if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
  6381. _lt_dsymutil='~$DSYMUTIL $lib || :'
  6382. else
  6383. _lt_dsymutil=
  6384. fi
  6385. ;;
  6386. esac
  6387. ac_ext=c
  6388. ac_cpp='$CPP $CPPFLAGS'
  6389. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6390. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6391. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6392. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
  6393. $as_echo_n "checking how to run the C preprocessor... " >&6; }
  6394. # On Suns, sometimes $CPP names a directory.
  6395. if test -n "$CPP" && test -d "$CPP"; then
  6396. CPP=
  6397. fi
  6398. if test -z "$CPP"; then
  6399. if ${ac_cv_prog_CPP+:} false; then :
  6400. $as_echo_n "(cached) " >&6
  6401. else
  6402. # Double quotes because CPP needs to be expanded
  6403. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  6404. do
  6405. ac_preproc_ok=false
  6406. for ac_c_preproc_warn_flag in '' yes
  6407. do
  6408. # Use a header file that comes with gcc, so configuring glibc
  6409. # with a fresh cross-compiler works.
  6410. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  6411. # <limits.h> exists even on freestanding compilers.
  6412. # On the NeXT, cc -E runs the code through the compiler's parser,
  6413. # not just through cpp. "Syntax error" is here to catch this case.
  6414. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6415. /* end confdefs.h. */
  6416. #ifdef __STDC__
  6417. # include <limits.h>
  6418. #else
  6419. # include <assert.h>
  6420. #endif
  6421. Syntax error
  6422. _ACEOF
  6423. if ac_fn_c_try_cpp "$LINENO"; then :
  6424. else
  6425. # Broken: fails on valid input.
  6426. continue
  6427. fi
  6428. rm -f conftest.err conftest.i conftest.$ac_ext
  6429. # OK, works on sane cases. Now check whether nonexistent headers
  6430. # can be detected and how.
  6431. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6432. /* end confdefs.h. */
  6433. #include <ac_nonexistent.h>
  6434. _ACEOF
  6435. if ac_fn_c_try_cpp "$LINENO"; then :
  6436. # Broken: success on invalid input.
  6437. continue
  6438. else
  6439. # Passes both tests.
  6440. ac_preproc_ok=:
  6441. break
  6442. fi
  6443. rm -f conftest.err conftest.i conftest.$ac_ext
  6444. done
  6445. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  6446. rm -f conftest.i conftest.err conftest.$ac_ext
  6447. if $ac_preproc_ok; then :
  6448. break
  6449. fi
  6450. done
  6451. ac_cv_prog_CPP=$CPP
  6452. fi
  6453. CPP=$ac_cv_prog_CPP
  6454. else
  6455. ac_cv_prog_CPP=$CPP
  6456. fi
  6457. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
  6458. $as_echo "$CPP" >&6; }
  6459. ac_preproc_ok=false
  6460. for ac_c_preproc_warn_flag in '' yes
  6461. do
  6462. # Use a header file that comes with gcc, so configuring glibc
  6463. # with a fresh cross-compiler works.
  6464. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  6465. # <limits.h> exists even on freestanding compilers.
  6466. # On the NeXT, cc -E runs the code through the compiler's parser,
  6467. # not just through cpp. "Syntax error" is here to catch this case.
  6468. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6469. /* end confdefs.h. */
  6470. #ifdef __STDC__
  6471. # include <limits.h>
  6472. #else
  6473. # include <assert.h>
  6474. #endif
  6475. Syntax error
  6476. _ACEOF
  6477. if ac_fn_c_try_cpp "$LINENO"; then :
  6478. else
  6479. # Broken: fails on valid input.
  6480. continue
  6481. fi
  6482. rm -f conftest.err conftest.i conftest.$ac_ext
  6483. # OK, works on sane cases. Now check whether nonexistent headers
  6484. # can be detected and how.
  6485. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6486. /* end confdefs.h. */
  6487. #include <ac_nonexistent.h>
  6488. _ACEOF
  6489. if ac_fn_c_try_cpp "$LINENO"; then :
  6490. # Broken: success on invalid input.
  6491. continue
  6492. else
  6493. # Passes both tests.
  6494. ac_preproc_ok=:
  6495. break
  6496. fi
  6497. rm -f conftest.err conftest.i conftest.$ac_ext
  6498. done
  6499. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  6500. rm -f conftest.i conftest.err conftest.$ac_ext
  6501. if $ac_preproc_ok; then :
  6502. else
  6503. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  6504. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  6505. as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
  6506. See \`config.log' for more details" "$LINENO" 5; }
  6507. fi
  6508. ac_ext=c
  6509. ac_cpp='$CPP $CPPFLAGS'
  6510. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6511. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6512. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6513. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  6514. $as_echo_n "checking for ANSI C header files... " >&6; }
  6515. if ${ac_cv_header_stdc+:} false; then :
  6516. $as_echo_n "(cached) " >&6
  6517. else
  6518. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6519. /* end confdefs.h. */
  6520. #include <stdlib.h>
  6521. #include <stdarg.h>
  6522. #include <string.h>
  6523. #include <float.h>
  6524. int
  6525. main ()
  6526. {
  6527. ;
  6528. return 0;
  6529. }
  6530. _ACEOF
  6531. if ac_fn_c_try_compile "$LINENO"; then :
  6532. ac_cv_header_stdc=yes
  6533. else
  6534. ac_cv_header_stdc=no
  6535. fi
  6536. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6537. if test $ac_cv_header_stdc = yes; then
  6538. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  6539. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6540. /* end confdefs.h. */
  6541. #include <string.h>
  6542. _ACEOF
  6543. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6544. $EGREP "memchr" >/dev/null 2>&1; then :
  6545. else
  6546. ac_cv_header_stdc=no
  6547. fi
  6548. rm -f conftest*
  6549. fi
  6550. if test $ac_cv_header_stdc = yes; then
  6551. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  6552. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6553. /* end confdefs.h. */
  6554. #include <stdlib.h>
  6555. _ACEOF
  6556. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6557. $EGREP "free" >/dev/null 2>&1; then :
  6558. else
  6559. ac_cv_header_stdc=no
  6560. fi
  6561. rm -f conftest*
  6562. fi
  6563. if test $ac_cv_header_stdc = yes; then
  6564. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  6565. if test "$cross_compiling" = yes; then :
  6566. :
  6567. else
  6568. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6569. /* end confdefs.h. */
  6570. #include <ctype.h>
  6571. #include <stdlib.h>
  6572. #if ((' ' & 0x0FF) == 0x020)
  6573. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  6574. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  6575. #else
  6576. # define ISLOWER(c) \
  6577. (('a' <= (c) && (c) <= 'i') \
  6578. || ('j' <= (c) && (c) <= 'r') \
  6579. || ('s' <= (c) && (c) <= 'z'))
  6580. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  6581. #endif
  6582. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  6583. int
  6584. main ()
  6585. {
  6586. int i;
  6587. for (i = 0; i < 256; i++)
  6588. if (XOR (islower (i), ISLOWER (i))
  6589. || toupper (i) != TOUPPER (i))
  6590. return 2;
  6591. return 0;
  6592. }
  6593. _ACEOF
  6594. if ac_fn_c_try_run "$LINENO"; then :
  6595. else
  6596. ac_cv_header_stdc=no
  6597. fi
  6598. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  6599. conftest.$ac_objext conftest.beam conftest.$ac_ext
  6600. fi
  6601. fi
  6602. fi
  6603. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  6604. $as_echo "$ac_cv_header_stdc" >&6; }
  6605. if test $ac_cv_header_stdc = yes; then
  6606. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  6607. fi
  6608. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  6609. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  6610. inttypes.h stdint.h unistd.h
  6611. do :
  6612. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  6613. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  6614. "
  6615. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  6616. cat >>confdefs.h <<_ACEOF
  6617. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  6618. _ACEOF
  6619. fi
  6620. done
  6621. for ac_header in dlfcn.h
  6622. do :
  6623. ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
  6624. "
  6625. if test "x$ac_cv_header_dlfcn_h" = xyes; then :
  6626. cat >>confdefs.h <<_ACEOF
  6627. #define HAVE_DLFCN_H 1
  6628. _ACEOF
  6629. fi
  6630. done
  6631. func_stripname_cnf ()
  6632. {
  6633. case ${2} in
  6634. .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
  6635. *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
  6636. esac
  6637. } # func_stripname_cnf
  6638. # Set options
  6639. enable_dlopen=no
  6640. # Check whether --enable-shared was given.
  6641. if test "${enable_shared+set}" = set; then :
  6642. enableval=$enable_shared; p=${PACKAGE-default}
  6643. case $enableval in
  6644. yes) enable_shared=yes ;;
  6645. no) enable_shared=no ;;
  6646. *)
  6647. enable_shared=no
  6648. # Look at the argument we got. We use all the common list separators.
  6649. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  6650. for pkg in $enableval; do
  6651. IFS="$lt_save_ifs"
  6652. if test "X$pkg" = "X$p"; then
  6653. enable_shared=yes
  6654. fi
  6655. done
  6656. IFS="$lt_save_ifs"
  6657. ;;
  6658. esac
  6659. else
  6660. enable_shared=yes
  6661. fi
  6662. # Check whether --enable-static was given.
  6663. if test "${enable_static+set}" = set; then :
  6664. enableval=$enable_static; p=${PACKAGE-default}
  6665. case $enableval in
  6666. yes) enable_static=yes ;;
  6667. no) enable_static=no ;;
  6668. *)
  6669. enable_static=no
  6670. # Look at the argument we got. We use all the common list separators.
  6671. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  6672. for pkg in $enableval; do
  6673. IFS="$lt_save_ifs"
  6674. if test "X$pkg" = "X$p"; then
  6675. enable_static=yes
  6676. fi
  6677. done
  6678. IFS="$lt_save_ifs"
  6679. ;;
  6680. esac
  6681. else
  6682. enable_static=yes
  6683. fi
  6684. # Check whether --with-pic was given.
  6685. if test "${with_pic+set}" = set; then :
  6686. withval=$with_pic; lt_p=${PACKAGE-default}
  6687. case $withval in
  6688. yes|no) pic_mode=$withval ;;
  6689. *)
  6690. pic_mode=default
  6691. # Look at the argument we got. We use all the common list separators.
  6692. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  6693. for lt_pkg in $withval; do
  6694. IFS="$lt_save_ifs"
  6695. if test "X$lt_pkg" = "X$lt_p"; then
  6696. pic_mode=yes
  6697. fi
  6698. done
  6699. IFS="$lt_save_ifs"
  6700. ;;
  6701. esac
  6702. else
  6703. pic_mode=default
  6704. fi
  6705. test -z "$pic_mode" && pic_mode=default
  6706. # Check whether --enable-fast-install was given.
  6707. if test "${enable_fast_install+set}" = set; then :
  6708. enableval=$enable_fast_install; p=${PACKAGE-default}
  6709. case $enableval in
  6710. yes) enable_fast_install=yes ;;
  6711. no) enable_fast_install=no ;;
  6712. *)
  6713. enable_fast_install=no
  6714. # Look at the argument we got. We use all the common list separators.
  6715. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  6716. for pkg in $enableval; do
  6717. IFS="$lt_save_ifs"
  6718. if test "X$pkg" = "X$p"; then
  6719. enable_fast_install=yes
  6720. fi
  6721. done
  6722. IFS="$lt_save_ifs"
  6723. ;;
  6724. esac
  6725. else
  6726. enable_fast_install=yes
  6727. fi
  6728. # This can be used to rebuild libtool when needed
  6729. LIBTOOL_DEPS="$ltmain"
  6730. # Always use our own libtool.
  6731. LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  6732. test -z "$LN_S" && LN_S="ln -s"
  6733. if test -n "${ZSH_VERSION+set}" ; then
  6734. setopt NO_GLOB_SUBST
  6735. fi
  6736. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
  6737. $as_echo_n "checking for objdir... " >&6; }
  6738. if ${lt_cv_objdir+:} false; then :
  6739. $as_echo_n "(cached) " >&6
  6740. else
  6741. rm -f .libs 2>/dev/null
  6742. mkdir .libs 2>/dev/null
  6743. if test -d .libs; then
  6744. lt_cv_objdir=.libs
  6745. else
  6746. # MS-DOS does not allow filenames that begin with a dot.
  6747. lt_cv_objdir=_libs
  6748. fi
  6749. rmdir .libs 2>/dev/null
  6750. fi
  6751. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
  6752. $as_echo "$lt_cv_objdir" >&6; }
  6753. objdir=$lt_cv_objdir
  6754. cat >>confdefs.h <<_ACEOF
  6755. #define LT_OBJDIR "$lt_cv_objdir/"
  6756. _ACEOF
  6757. case $host_os in
  6758. aix3*)
  6759. # AIX sometimes has problems with the GCC collect2 program. For some
  6760. # reason, if we set the COLLECT_NAMES environment variable, the problems
  6761. # vanish in a puff of smoke.
  6762. if test "X${COLLECT_NAMES+set}" != Xset; then
  6763. COLLECT_NAMES=
  6764. export COLLECT_NAMES
  6765. fi
  6766. ;;
  6767. esac
  6768. # Global variables:
  6769. ofile=libtool
  6770. can_build_shared=yes
  6771. # All known linkers require a `.a' archive for static linking (except MSVC,
  6772. # which needs '.lib').
  6773. libext=a
  6774. with_gnu_ld="$lt_cv_prog_gnu_ld"
  6775. old_CC="$CC"
  6776. old_CFLAGS="$CFLAGS"
  6777. # Set sane defaults for various variables
  6778. test -z "$CC" && CC=cc
  6779. test -z "$LTCC" && LTCC=$CC
  6780. test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  6781. test -z "$LD" && LD=ld
  6782. test -z "$ac_objext" && ac_objext=o
  6783. for cc_temp in $compiler""; do
  6784. case $cc_temp in
  6785. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  6786. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  6787. \-*) ;;
  6788. *) break;;
  6789. esac
  6790. done
  6791. cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  6792. # Only perform the check for file, if the check method requires it
  6793. test -z "$MAGIC_CMD" && MAGIC_CMD=file
  6794. case $deplibs_check_method in
  6795. file_magic*)
  6796. if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  6797. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
  6798. $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
  6799. if ${lt_cv_path_MAGIC_CMD+:} false; then :
  6800. $as_echo_n "(cached) " >&6
  6801. else
  6802. case $MAGIC_CMD in
  6803. [\\/*] | ?:[\\/]*)
  6804. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  6805. ;;
  6806. *)
  6807. lt_save_MAGIC_CMD="$MAGIC_CMD"
  6808. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  6809. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  6810. for ac_dir in $ac_dummy; do
  6811. IFS="$lt_save_ifs"
  6812. test -z "$ac_dir" && ac_dir=.
  6813. if test -f $ac_dir/${ac_tool_prefix}file; then
  6814. lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
  6815. if test -n "$file_magic_test_file"; then
  6816. case $deplibs_check_method in
  6817. "file_magic "*)
  6818. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  6819. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6820. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  6821. $EGREP "$file_magic_regex" > /dev/null; then
  6822. :
  6823. else
  6824. cat <<_LT_EOF 1>&2
  6825. *** Warning: the command libtool uses to detect shared libraries,
  6826. *** $file_magic_cmd, produces output that libtool cannot recognize.
  6827. *** The result is that libtool may fail to recognize shared libraries
  6828. *** as such. This will affect the creation of libtool libraries that
  6829. *** depend on shared libraries, but programs linked with such libtool
  6830. *** libraries will work regardless of this problem. Nevertheless, you
  6831. *** may want to report the problem to your system manager and/or to
  6832. *** bug-libtool@gnu.org
  6833. _LT_EOF
  6834. fi ;;
  6835. esac
  6836. fi
  6837. break
  6838. fi
  6839. done
  6840. IFS="$lt_save_ifs"
  6841. MAGIC_CMD="$lt_save_MAGIC_CMD"
  6842. ;;
  6843. esac
  6844. fi
  6845. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6846. if test -n "$MAGIC_CMD"; then
  6847. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  6848. $as_echo "$MAGIC_CMD" >&6; }
  6849. else
  6850. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6851. $as_echo "no" >&6; }
  6852. fi
  6853. if test -z "$lt_cv_path_MAGIC_CMD"; then
  6854. if test -n "$ac_tool_prefix"; then
  6855. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
  6856. $as_echo_n "checking for file... " >&6; }
  6857. if ${lt_cv_path_MAGIC_CMD+:} false; then :
  6858. $as_echo_n "(cached) " >&6
  6859. else
  6860. case $MAGIC_CMD in
  6861. [\\/*] | ?:[\\/]*)
  6862. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  6863. ;;
  6864. *)
  6865. lt_save_MAGIC_CMD="$MAGIC_CMD"
  6866. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  6867. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  6868. for ac_dir in $ac_dummy; do
  6869. IFS="$lt_save_ifs"
  6870. test -z "$ac_dir" && ac_dir=.
  6871. if test -f $ac_dir/file; then
  6872. lt_cv_path_MAGIC_CMD="$ac_dir/file"
  6873. if test -n "$file_magic_test_file"; then
  6874. case $deplibs_check_method in
  6875. "file_magic "*)
  6876. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  6877. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6878. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  6879. $EGREP "$file_magic_regex" > /dev/null; then
  6880. :
  6881. else
  6882. cat <<_LT_EOF 1>&2
  6883. *** Warning: the command libtool uses to detect shared libraries,
  6884. *** $file_magic_cmd, produces output that libtool cannot recognize.
  6885. *** The result is that libtool may fail to recognize shared libraries
  6886. *** as such. This will affect the creation of libtool libraries that
  6887. *** depend on shared libraries, but programs linked with such libtool
  6888. *** libraries will work regardless of this problem. Nevertheless, you
  6889. *** may want to report the problem to your system manager and/or to
  6890. *** bug-libtool@gnu.org
  6891. _LT_EOF
  6892. fi ;;
  6893. esac
  6894. fi
  6895. break
  6896. fi
  6897. done
  6898. IFS="$lt_save_ifs"
  6899. MAGIC_CMD="$lt_save_MAGIC_CMD"
  6900. ;;
  6901. esac
  6902. fi
  6903. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6904. if test -n "$MAGIC_CMD"; then
  6905. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  6906. $as_echo "$MAGIC_CMD" >&6; }
  6907. else
  6908. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6909. $as_echo "no" >&6; }
  6910. fi
  6911. else
  6912. MAGIC_CMD=:
  6913. fi
  6914. fi
  6915. fi
  6916. ;;
  6917. esac
  6918. # Use C for the default configuration in the libtool script
  6919. lt_save_CC="$CC"
  6920. ac_ext=c
  6921. ac_cpp='$CPP $CPPFLAGS'
  6922. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6923. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6924. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6925. # Source file extension for C test sources.
  6926. ac_ext=c
  6927. # Object file extension for compiled C test sources.
  6928. objext=o
  6929. objext=$objext
  6930. # Code to be used in simple compile tests
  6931. lt_simple_compile_test_code="int some_variable = 0;"
  6932. # Code to be used in simple link tests
  6933. lt_simple_link_test_code='int main(){return(0);}'
  6934. # If no C compiler was specified, use CC.
  6935. LTCC=${LTCC-"$CC"}
  6936. # If no C compiler flags were specified, use CFLAGS.
  6937. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  6938. # Allow CC to be a program name with arguments.
  6939. compiler=$CC
  6940. # Save the default compiler, since it gets overwritten when the other
  6941. # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
  6942. compiler_DEFAULT=$CC
  6943. # save warnings/boilerplate of simple test code
  6944. ac_outfile=conftest.$ac_objext
  6945. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  6946. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  6947. _lt_compiler_boilerplate=`cat conftest.err`
  6948. $RM conftest*
  6949. ac_outfile=conftest.$ac_objext
  6950. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  6951. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  6952. _lt_linker_boilerplate=`cat conftest.err`
  6953. $RM -r conftest*
  6954. if test -n "$compiler"; then
  6955. lt_prog_compiler_no_builtin_flag=
  6956. if test "$GCC" = yes; then
  6957. case $cc_basename in
  6958. nvcc*)
  6959. lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
  6960. *)
  6961. lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
  6962. esac
  6963. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  6964. $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
  6965. if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
  6966. $as_echo_n "(cached) " >&6
  6967. else
  6968. lt_cv_prog_compiler_rtti_exceptions=no
  6969. ac_outfile=conftest.$ac_objext
  6970. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  6971. lt_compiler_flag="-fno-rtti -fno-exceptions"
  6972. # Insert the option either (1) after the last *FLAGS variable, or
  6973. # (2) before a word containing "conftest.", or (3) at the end.
  6974. # Note that $ac_compile itself does not contain backslashes and begins
  6975. # with a dollar sign (not a hyphen), so the echo should work correctly.
  6976. # The option is referenced via a variable to avoid confusing sed.
  6977. lt_compile=`echo "$ac_compile" | $SED \
  6978. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  6979. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  6980. -e 's:$: $lt_compiler_flag:'`
  6981. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  6982. (eval "$lt_compile" 2>conftest.err)
  6983. ac_status=$?
  6984. cat conftest.err >&5
  6985. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6986. if (exit $ac_status) && test -s "$ac_outfile"; then
  6987. # The compiler can only warn and ignore the option if not recognized
  6988. # So say no if there are warnings other than the usual output.
  6989. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  6990. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  6991. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  6992. lt_cv_prog_compiler_rtti_exceptions=yes
  6993. fi
  6994. fi
  6995. $RM conftest*
  6996. fi
  6997. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  6998. $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
  6999. if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
  7000. lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
  7001. else
  7002. :
  7003. fi
  7004. fi
  7005. lt_prog_compiler_wl=
  7006. lt_prog_compiler_pic=
  7007. lt_prog_compiler_static=
  7008. if test "$GCC" = yes; then
  7009. lt_prog_compiler_wl='-Wl,'
  7010. lt_prog_compiler_static='-static'
  7011. case $host_os in
  7012. aix*)
  7013. # All AIX code is PIC.
  7014. if test "$host_cpu" = ia64; then
  7015. # AIX 5 now supports IA64 processor
  7016. lt_prog_compiler_static='-Bstatic'
  7017. fi
  7018. ;;
  7019. amigaos*)
  7020. case $host_cpu in
  7021. powerpc)
  7022. # see comment about AmigaOS4 .so support
  7023. lt_prog_compiler_pic='-fPIC'
  7024. ;;
  7025. m68k)
  7026. # FIXME: we need at least 68020 code to build shared libraries, but
  7027. # adding the `-m68020' flag to GCC prevents building anything better,
  7028. # like `-m68040'.
  7029. lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
  7030. ;;
  7031. esac
  7032. ;;
  7033. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  7034. # PIC is the default for these OSes.
  7035. ;;
  7036. mingw* | cygwin* | pw32* | os2* | cegcc*)
  7037. # This hack is so that the source file can tell whether it is being
  7038. # built for inclusion in a dll (and should export symbols for example).
  7039. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  7040. # (--disable-auto-import) libraries
  7041. lt_prog_compiler_pic='-DDLL_EXPORT'
  7042. ;;
  7043. darwin* | rhapsody*)
  7044. # PIC is the default on this platform
  7045. # Common symbols not allowed in MH_DYLIB files
  7046. lt_prog_compiler_pic='-fno-common'
  7047. ;;
  7048. haiku*)
  7049. # PIC is the default for Haiku.
  7050. # The "-static" flag exists, but is broken.
  7051. lt_prog_compiler_static=
  7052. ;;
  7053. hpux*)
  7054. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  7055. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  7056. # sets the default TLS model and affects inlining.
  7057. case $host_cpu in
  7058. hppa*64*)
  7059. # +Z the default
  7060. ;;
  7061. *)
  7062. lt_prog_compiler_pic='-fPIC'
  7063. ;;
  7064. esac
  7065. ;;
  7066. interix[3-9]*)
  7067. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  7068. # Instead, we relocate shared libraries at runtime.
  7069. ;;
  7070. msdosdjgpp*)
  7071. # Just because we use GCC doesn't mean we suddenly get shared libraries
  7072. # on systems that don't support them.
  7073. lt_prog_compiler_can_build_shared=no
  7074. enable_shared=no
  7075. ;;
  7076. *nto* | *qnx*)
  7077. # QNX uses GNU C++, but need to define -shared option too, otherwise
  7078. # it will coredump.
  7079. lt_prog_compiler_pic='-fPIC -shared'
  7080. ;;
  7081. sysv4*MP*)
  7082. if test -d /usr/nec; then
  7083. lt_prog_compiler_pic=-Kconform_pic
  7084. fi
  7085. ;;
  7086. *)
  7087. lt_prog_compiler_pic='-fPIC'
  7088. ;;
  7089. esac
  7090. case $cc_basename in
  7091. nvcc*) # Cuda Compiler Driver 2.2
  7092. lt_prog_compiler_wl='-Xlinker '
  7093. if test -n "$lt_prog_compiler_pic"; then
  7094. lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
  7095. fi
  7096. ;;
  7097. esac
  7098. else
  7099. # PORTME Check for flag to pass linker flags through the system compiler.
  7100. case $host_os in
  7101. aix*)
  7102. lt_prog_compiler_wl='-Wl,'
  7103. if test "$host_cpu" = ia64; then
  7104. # AIX 5 now supports IA64 processor
  7105. lt_prog_compiler_static='-Bstatic'
  7106. else
  7107. lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
  7108. fi
  7109. ;;
  7110. mingw* | cygwin* | pw32* | os2* | cegcc*)
  7111. # This hack is so that the source file can tell whether it is being
  7112. # built for inclusion in a dll (and should export symbols for example).
  7113. lt_prog_compiler_pic='-DDLL_EXPORT'
  7114. ;;
  7115. hpux9* | hpux10* | hpux11*)
  7116. lt_prog_compiler_wl='-Wl,'
  7117. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  7118. # not for PA HP-UX.
  7119. case $host_cpu in
  7120. hppa*64*|ia64*)
  7121. # +Z the default
  7122. ;;
  7123. *)
  7124. lt_prog_compiler_pic='+Z'
  7125. ;;
  7126. esac
  7127. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  7128. lt_prog_compiler_static='${wl}-a ${wl}archive'
  7129. ;;
  7130. irix5* | irix6* | nonstopux*)
  7131. lt_prog_compiler_wl='-Wl,'
  7132. # PIC (with -KPIC) is the default.
  7133. lt_prog_compiler_static='-non_shared'
  7134. ;;
  7135. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  7136. case $cc_basename in
  7137. # old Intel for x86_64 which still supported -KPIC.
  7138. ecc*)
  7139. lt_prog_compiler_wl='-Wl,'
  7140. lt_prog_compiler_pic='-KPIC'
  7141. lt_prog_compiler_static='-static'
  7142. ;;
  7143. # icc used to be incompatible with GCC.
  7144. # ICC 10 doesn't accept -KPIC any more.
  7145. icc* | ifort*)
  7146. lt_prog_compiler_wl='-Wl,'
  7147. lt_prog_compiler_pic='-fPIC'
  7148. lt_prog_compiler_static='-static'
  7149. ;;
  7150. # Lahey Fortran 8.1.
  7151. lf95*)
  7152. lt_prog_compiler_wl='-Wl,'
  7153. lt_prog_compiler_pic='--shared'
  7154. lt_prog_compiler_static='--static'
  7155. ;;
  7156. nagfor*)
  7157. # NAG Fortran compiler
  7158. lt_prog_compiler_wl='-Wl,-Wl,,'
  7159. lt_prog_compiler_pic='-PIC'
  7160. lt_prog_compiler_static='-Bstatic'
  7161. ;;
  7162. pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
  7163. # Portland Group compilers (*not* the Pentium gcc compiler,
  7164. # which looks to be a dead project)
  7165. lt_prog_compiler_wl='-Wl,'
  7166. lt_prog_compiler_pic='-fpic'
  7167. lt_prog_compiler_static='-Bstatic'
  7168. ;;
  7169. ccc*)
  7170. lt_prog_compiler_wl='-Wl,'
  7171. # All Alpha code is PIC.
  7172. lt_prog_compiler_static='-non_shared'
  7173. ;;
  7174. xl* | bgxl* | bgf* | mpixl*)
  7175. # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
  7176. lt_prog_compiler_wl='-Wl,'
  7177. lt_prog_compiler_pic='-qpic'
  7178. lt_prog_compiler_static='-qstaticlink'
  7179. ;;
  7180. *)
  7181. case `$CC -V 2>&1 | sed 5q` in
  7182. *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
  7183. # Sun Fortran 8.3 passes all unrecognized flags to the linker
  7184. lt_prog_compiler_pic='-KPIC'
  7185. lt_prog_compiler_static='-Bstatic'
  7186. lt_prog_compiler_wl=''
  7187. ;;
  7188. *Sun\ F* | *Sun*Fortran*)
  7189. lt_prog_compiler_pic='-KPIC'
  7190. lt_prog_compiler_static='-Bstatic'
  7191. lt_prog_compiler_wl='-Qoption ld '
  7192. ;;
  7193. *Sun\ C*)
  7194. # Sun C 5.9
  7195. lt_prog_compiler_pic='-KPIC'
  7196. lt_prog_compiler_static='-Bstatic'
  7197. lt_prog_compiler_wl='-Wl,'
  7198. ;;
  7199. *Intel*\ [CF]*Compiler*)
  7200. lt_prog_compiler_wl='-Wl,'
  7201. lt_prog_compiler_pic='-fPIC'
  7202. lt_prog_compiler_static='-static'
  7203. ;;
  7204. *Portland\ Group*)
  7205. lt_prog_compiler_wl='-Wl,'
  7206. lt_prog_compiler_pic='-fpic'
  7207. lt_prog_compiler_static='-Bstatic'
  7208. ;;
  7209. esac
  7210. ;;
  7211. esac
  7212. ;;
  7213. newsos6)
  7214. lt_prog_compiler_pic='-KPIC'
  7215. lt_prog_compiler_static='-Bstatic'
  7216. ;;
  7217. *nto* | *qnx*)
  7218. # QNX uses GNU C++, but need to define -shared option too, otherwise
  7219. # it will coredump.
  7220. lt_prog_compiler_pic='-fPIC -shared'
  7221. ;;
  7222. osf3* | osf4* | osf5*)
  7223. lt_prog_compiler_wl='-Wl,'
  7224. # All OSF/1 code is PIC.
  7225. lt_prog_compiler_static='-non_shared'
  7226. ;;
  7227. rdos*)
  7228. lt_prog_compiler_static='-non_shared'
  7229. ;;
  7230. solaris*)
  7231. lt_prog_compiler_pic='-KPIC'
  7232. lt_prog_compiler_static='-Bstatic'
  7233. case $cc_basename in
  7234. f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
  7235. lt_prog_compiler_wl='-Qoption ld ';;
  7236. *)
  7237. lt_prog_compiler_wl='-Wl,';;
  7238. esac
  7239. ;;
  7240. sunos4*)
  7241. lt_prog_compiler_wl='-Qoption ld '
  7242. lt_prog_compiler_pic='-PIC'
  7243. lt_prog_compiler_static='-Bstatic'
  7244. ;;
  7245. sysv4 | sysv4.2uw2* | sysv4.3*)
  7246. lt_prog_compiler_wl='-Wl,'
  7247. lt_prog_compiler_pic='-KPIC'
  7248. lt_prog_compiler_static='-Bstatic'
  7249. ;;
  7250. sysv4*MP*)
  7251. if test -d /usr/nec ;then
  7252. lt_prog_compiler_pic='-Kconform_pic'
  7253. lt_prog_compiler_static='-Bstatic'
  7254. fi
  7255. ;;
  7256. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  7257. lt_prog_compiler_wl='-Wl,'
  7258. lt_prog_compiler_pic='-KPIC'
  7259. lt_prog_compiler_static='-Bstatic'
  7260. ;;
  7261. unicos*)
  7262. lt_prog_compiler_wl='-Wl,'
  7263. lt_prog_compiler_can_build_shared=no
  7264. ;;
  7265. uts4*)
  7266. lt_prog_compiler_pic='-pic'
  7267. lt_prog_compiler_static='-Bstatic'
  7268. ;;
  7269. *)
  7270. lt_prog_compiler_can_build_shared=no
  7271. ;;
  7272. esac
  7273. fi
  7274. case $host_os in
  7275. # For platforms which do not support PIC, -DPIC is meaningless:
  7276. *djgpp*)
  7277. lt_prog_compiler_pic=
  7278. ;;
  7279. *)
  7280. lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
  7281. ;;
  7282. esac
  7283. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  7284. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  7285. if ${lt_cv_prog_compiler_pic+:} false; then :
  7286. $as_echo_n "(cached) " >&6
  7287. else
  7288. lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
  7289. fi
  7290. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
  7291. $as_echo "$lt_cv_prog_compiler_pic" >&6; }
  7292. lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
  7293. #
  7294. # Check to make sure the PIC flag actually works.
  7295. #
  7296. if test -n "$lt_prog_compiler_pic"; then
  7297. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
  7298. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
  7299. if ${lt_cv_prog_compiler_pic_works+:} false; then :
  7300. $as_echo_n "(cached) " >&6
  7301. else
  7302. lt_cv_prog_compiler_pic_works=no
  7303. ac_outfile=conftest.$ac_objext
  7304. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7305. lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
  7306. # Insert the option either (1) after the last *FLAGS variable, or
  7307. # (2) before a word containing "conftest.", or (3) at the end.
  7308. # Note that $ac_compile itself does not contain backslashes and begins
  7309. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7310. # The option is referenced via a variable to avoid confusing sed.
  7311. lt_compile=`echo "$ac_compile" | $SED \
  7312. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7313. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7314. -e 's:$: $lt_compiler_flag:'`
  7315. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7316. (eval "$lt_compile" 2>conftest.err)
  7317. ac_status=$?
  7318. cat conftest.err >&5
  7319. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7320. if (exit $ac_status) && test -s "$ac_outfile"; then
  7321. # The compiler can only warn and ignore the option if not recognized
  7322. # So say no if there are warnings other than the usual output.
  7323. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  7324. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7325. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  7326. lt_cv_prog_compiler_pic_works=yes
  7327. fi
  7328. fi
  7329. $RM conftest*
  7330. fi
  7331. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
  7332. $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
  7333. if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
  7334. case $lt_prog_compiler_pic in
  7335. "" | " "*) ;;
  7336. *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
  7337. esac
  7338. else
  7339. lt_prog_compiler_pic=
  7340. lt_prog_compiler_can_build_shared=no
  7341. fi
  7342. fi
  7343. #
  7344. # Check to make sure the static flag actually works.
  7345. #
  7346. wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
  7347. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  7348. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  7349. if ${lt_cv_prog_compiler_static_works+:} false; then :
  7350. $as_echo_n "(cached) " >&6
  7351. else
  7352. lt_cv_prog_compiler_static_works=no
  7353. save_LDFLAGS="$LDFLAGS"
  7354. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  7355. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  7356. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  7357. # The linker can only warn and ignore the option if not recognized
  7358. # So say no if there are warnings
  7359. if test -s conftest.err; then
  7360. # Append any errors to the config.log.
  7361. cat conftest.err 1>&5
  7362. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  7363. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7364. if diff conftest.exp conftest.er2 >/dev/null; then
  7365. lt_cv_prog_compiler_static_works=yes
  7366. fi
  7367. else
  7368. lt_cv_prog_compiler_static_works=yes
  7369. fi
  7370. fi
  7371. $RM -r conftest*
  7372. LDFLAGS="$save_LDFLAGS"
  7373. fi
  7374. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
  7375. $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
  7376. if test x"$lt_cv_prog_compiler_static_works" = xyes; then
  7377. :
  7378. else
  7379. lt_prog_compiler_static=
  7380. fi
  7381. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  7382. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  7383. if ${lt_cv_prog_compiler_c_o+:} false; then :
  7384. $as_echo_n "(cached) " >&6
  7385. else
  7386. lt_cv_prog_compiler_c_o=no
  7387. $RM -r conftest 2>/dev/null
  7388. mkdir conftest
  7389. cd conftest
  7390. mkdir out
  7391. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7392. lt_compiler_flag="-o out/conftest2.$ac_objext"
  7393. # Insert the option either (1) after the last *FLAGS variable, or
  7394. # (2) before a word containing "conftest.", or (3) at the end.
  7395. # Note that $ac_compile itself does not contain backslashes and begins
  7396. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7397. lt_compile=`echo "$ac_compile" | $SED \
  7398. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7399. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7400. -e 's:$: $lt_compiler_flag:'`
  7401. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7402. (eval "$lt_compile" 2>out/conftest.err)
  7403. ac_status=$?
  7404. cat out/conftest.err >&5
  7405. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7406. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  7407. then
  7408. # The compiler can only warn and ignore the option if not recognized
  7409. # So say no if there are warnings
  7410. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  7411. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  7412. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  7413. lt_cv_prog_compiler_c_o=yes
  7414. fi
  7415. fi
  7416. chmod u+w . 2>&5
  7417. $RM conftest*
  7418. # SGI C++ compiler will create directory out/ii_files/ for
  7419. # template instantiation
  7420. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  7421. $RM out/* && rmdir out
  7422. cd ..
  7423. $RM -r conftest
  7424. $RM conftest*
  7425. fi
  7426. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  7427. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  7428. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  7429. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  7430. if ${lt_cv_prog_compiler_c_o+:} false; then :
  7431. $as_echo_n "(cached) " >&6
  7432. else
  7433. lt_cv_prog_compiler_c_o=no
  7434. $RM -r conftest 2>/dev/null
  7435. mkdir conftest
  7436. cd conftest
  7437. mkdir out
  7438. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7439. lt_compiler_flag="-o out/conftest2.$ac_objext"
  7440. # Insert the option either (1) after the last *FLAGS variable, or
  7441. # (2) before a word containing "conftest.", or (3) at the end.
  7442. # Note that $ac_compile itself does not contain backslashes and begins
  7443. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7444. lt_compile=`echo "$ac_compile" | $SED \
  7445. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7446. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7447. -e 's:$: $lt_compiler_flag:'`
  7448. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7449. (eval "$lt_compile" 2>out/conftest.err)
  7450. ac_status=$?
  7451. cat out/conftest.err >&5
  7452. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7453. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  7454. then
  7455. # The compiler can only warn and ignore the option if not recognized
  7456. # So say no if there are warnings
  7457. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  7458. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  7459. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  7460. lt_cv_prog_compiler_c_o=yes
  7461. fi
  7462. fi
  7463. chmod u+w . 2>&5
  7464. $RM conftest*
  7465. # SGI C++ compiler will create directory out/ii_files/ for
  7466. # template instantiation
  7467. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  7468. $RM out/* && rmdir out
  7469. cd ..
  7470. $RM -r conftest
  7471. $RM conftest*
  7472. fi
  7473. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  7474. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  7475. hard_links="nottested"
  7476. if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
  7477. # do not overwrite the value of need_locks provided by the user
  7478. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  7479. $as_echo_n "checking if we can lock with hard links... " >&6; }
  7480. hard_links=yes
  7481. $RM conftest*
  7482. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  7483. touch conftest.a
  7484. ln conftest.a conftest.b 2>&5 || hard_links=no
  7485. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  7486. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  7487. $as_echo "$hard_links" >&6; }
  7488. if test "$hard_links" = no; then
  7489. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  7490. $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  7491. need_locks=warn
  7492. fi
  7493. else
  7494. need_locks=no
  7495. fi
  7496. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  7497. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  7498. runpath_var=
  7499. allow_undefined_flag=
  7500. always_export_symbols=no
  7501. archive_cmds=
  7502. archive_expsym_cmds=
  7503. compiler_needs_object=no
  7504. enable_shared_with_static_runtimes=no
  7505. export_dynamic_flag_spec=
  7506. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  7507. hardcode_automatic=no
  7508. hardcode_direct=no
  7509. hardcode_direct_absolute=no
  7510. hardcode_libdir_flag_spec=
  7511. hardcode_libdir_separator=
  7512. hardcode_minus_L=no
  7513. hardcode_shlibpath_var=unsupported
  7514. inherit_rpath=no
  7515. link_all_deplibs=unknown
  7516. module_cmds=
  7517. module_expsym_cmds=
  7518. old_archive_from_new_cmds=
  7519. old_archive_from_expsyms_cmds=
  7520. thread_safe_flag_spec=
  7521. whole_archive_flag_spec=
  7522. # include_expsyms should be a list of space-separated symbols to be *always*
  7523. # included in the symbol list
  7524. include_expsyms=
  7525. # exclude_expsyms can be an extended regexp of symbols to exclude
  7526. # it will be wrapped by ` (' and `)$', so one must not match beginning or
  7527. # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  7528. # as well as any symbol that contains `d'.
  7529. exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  7530. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  7531. # platforms (ab)use it in PIC code, but their linkers get confused if
  7532. # the symbol is explicitly referenced. Since portable code cannot
  7533. # rely on this symbol name, it's probably fine to never include it in
  7534. # preloaded symbol tables.
  7535. # Exclude shared library initialization/finalization symbols.
  7536. extract_expsyms_cmds=
  7537. case $host_os in
  7538. cygwin* | mingw* | pw32* | cegcc*)
  7539. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  7540. # When not using gcc, we currently assume that we are using
  7541. # Microsoft Visual C++.
  7542. if test "$GCC" != yes; then
  7543. with_gnu_ld=no
  7544. fi
  7545. ;;
  7546. interix*)
  7547. # we just hope/assume this is gcc and not c89 (= MSVC++)
  7548. with_gnu_ld=yes
  7549. ;;
  7550. openbsd*)
  7551. with_gnu_ld=no
  7552. ;;
  7553. esac
  7554. ld_shlibs=yes
  7555. # On some targets, GNU ld is compatible enough with the native linker
  7556. # that we're better off using the native interface for both.
  7557. lt_use_gnu_ld_interface=no
  7558. if test "$with_gnu_ld" = yes; then
  7559. case $host_os in
  7560. aix*)
  7561. # The AIX port of GNU ld has always aspired to compatibility
  7562. # with the native linker. However, as the warning in the GNU ld
  7563. # block says, versions before 2.19.5* couldn't really create working
  7564. # shared libraries, regardless of the interface used.
  7565. case `$LD -v 2>&1` in
  7566. *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
  7567. *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
  7568. *\ \(GNU\ Binutils\)\ [3-9]*) ;;
  7569. *)
  7570. lt_use_gnu_ld_interface=yes
  7571. ;;
  7572. esac
  7573. ;;
  7574. *)
  7575. lt_use_gnu_ld_interface=yes
  7576. ;;
  7577. esac
  7578. fi
  7579. if test "$lt_use_gnu_ld_interface" = yes; then
  7580. # If archive_cmds runs LD, not CC, wlarc should be empty
  7581. wlarc='${wl}'
  7582. # Set some defaults for GNU ld with shared library support. These
  7583. # are reset later if shared libraries are not supported. Putting them
  7584. # here allows them to be overridden if necessary.
  7585. runpath_var=LD_RUN_PATH
  7586. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7587. export_dynamic_flag_spec='${wl}--export-dynamic'
  7588. # ancient GNU ld didn't support --whole-archive et. al.
  7589. if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
  7590. whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  7591. else
  7592. whole_archive_flag_spec=
  7593. fi
  7594. supports_anon_versioning=no
  7595. case `$LD -v 2>&1` in
  7596. *GNU\ gold*) supports_anon_versioning=yes ;;
  7597. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  7598. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  7599. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  7600. *\ 2.11.*) ;; # other 2.11 versions
  7601. *) supports_anon_versioning=yes ;;
  7602. esac
  7603. # See if GNU ld supports shared libraries.
  7604. case $host_os in
  7605. aix[3-9]*)
  7606. # On AIX/PPC, the GNU linker is very broken
  7607. if test "$host_cpu" != ia64; then
  7608. ld_shlibs=no
  7609. cat <<_LT_EOF 1>&2
  7610. *** Warning: the GNU linker, at least up to release 2.19, is reported
  7611. *** to be unable to reliably create shared libraries on AIX.
  7612. *** Therefore, libtool is disabling shared libraries support. If you
  7613. *** really care for shared libraries, you may want to install binutils
  7614. *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
  7615. *** You will then need to restart the configuration process.
  7616. _LT_EOF
  7617. fi
  7618. ;;
  7619. amigaos*)
  7620. case $host_cpu in
  7621. powerpc)
  7622. # see comment about AmigaOS4 .so support
  7623. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7624. archive_expsym_cmds=''
  7625. ;;
  7626. m68k)
  7627. 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)'
  7628. hardcode_libdir_flag_spec='-L$libdir'
  7629. hardcode_minus_L=yes
  7630. ;;
  7631. esac
  7632. ;;
  7633. beos*)
  7634. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7635. allow_undefined_flag=unsupported
  7636. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  7637. # support --undefined. This deserves some investigation. FIXME
  7638. archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7639. else
  7640. ld_shlibs=no
  7641. fi
  7642. ;;
  7643. cygwin* | mingw* | pw32* | cegcc*)
  7644. # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
  7645. # as there is no search path for DLLs.
  7646. hardcode_libdir_flag_spec='-L$libdir'
  7647. export_dynamic_flag_spec='${wl}--export-all-symbols'
  7648. allow_undefined_flag=unsupported
  7649. always_export_symbols=no
  7650. enable_shared_with_static_runtimes=yes
  7651. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
  7652. exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
  7653. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  7654. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  7655. # If the export-symbols file already is a .def file (1st line
  7656. # is EXPORTS), use it as is; otherwise, prepend...
  7657. archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  7658. cp $export_symbols $output_objdir/$soname.def;
  7659. else
  7660. echo EXPORTS > $output_objdir/$soname.def;
  7661. cat $export_symbols >> $output_objdir/$soname.def;
  7662. fi~
  7663. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  7664. else
  7665. ld_shlibs=no
  7666. fi
  7667. ;;
  7668. haiku*)
  7669. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7670. link_all_deplibs=yes
  7671. ;;
  7672. interix[3-9]*)
  7673. hardcode_direct=no
  7674. hardcode_shlibpath_var=no
  7675. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  7676. export_dynamic_flag_spec='${wl}-E'
  7677. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  7678. # Instead, shared libraries are loaded at an image base (0x10000000 by
  7679. # default) and relocated if they conflict, which is a slow very memory
  7680. # consuming and fragmenting process. To avoid this, we pick a random,
  7681. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  7682. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  7683. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  7684. 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'
  7685. ;;
  7686. gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
  7687. tmp_diet=no
  7688. if test "$host_os" = linux-dietlibc; then
  7689. case $cc_basename in
  7690. diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
  7691. esac
  7692. fi
  7693. if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
  7694. && test "$tmp_diet" = no
  7695. then
  7696. tmp_addflag=' $pic_flag'
  7697. tmp_sharedflag='-shared'
  7698. case $cc_basename,$host_cpu in
  7699. pgcc*) # Portland Group C compiler
  7700. 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'
  7701. tmp_addflag=' $pic_flag'
  7702. ;;
  7703. pgf77* | pgf90* | pgf95* | pgfortran*)
  7704. # Portland Group f77 and f90 compilers
  7705. 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'
  7706. tmp_addflag=' $pic_flag -Mnomain' ;;
  7707. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  7708. tmp_addflag=' -i_dynamic' ;;
  7709. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  7710. tmp_addflag=' -i_dynamic -nofor_main' ;;
  7711. ifc* | ifort*) # Intel Fortran compiler
  7712. tmp_addflag=' -nofor_main' ;;
  7713. lf95*) # Lahey Fortran 8.1
  7714. whole_archive_flag_spec=
  7715. tmp_sharedflag='--shared' ;;
  7716. xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
  7717. tmp_sharedflag='-qmkshrobj'
  7718. tmp_addflag= ;;
  7719. nvcc*) # Cuda Compiler Driver 2.2
  7720. 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'
  7721. compiler_needs_object=yes
  7722. ;;
  7723. esac
  7724. case `$CC -V 2>&1 | sed 5q` in
  7725. *Sun\ C*) # Sun C 5.9
  7726. 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'
  7727. compiler_needs_object=yes
  7728. tmp_sharedflag='-G' ;;
  7729. *Sun\ F*) # Sun Fortran 8.3
  7730. tmp_sharedflag='-G' ;;
  7731. esac
  7732. archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7733. if test "x$supports_anon_versioning" = xyes; then
  7734. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  7735. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  7736. echo "local: *; };" >> $output_objdir/$libname.ver~
  7737. $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  7738. fi
  7739. case $cc_basename in
  7740. xlf* | bgf* | bgxlf* | mpixlf*)
  7741. # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
  7742. whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
  7743. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7744. archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
  7745. if test "x$supports_anon_versioning" = xyes; then
  7746. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  7747. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  7748. echo "local: *; };" >> $output_objdir/$libname.ver~
  7749. $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
  7750. fi
  7751. ;;
  7752. esac
  7753. else
  7754. ld_shlibs=no
  7755. fi
  7756. ;;
  7757. netbsd*)
  7758. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  7759. archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  7760. wlarc=
  7761. else
  7762. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7763. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7764. fi
  7765. ;;
  7766. solaris*)
  7767. if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
  7768. ld_shlibs=no
  7769. cat <<_LT_EOF 1>&2
  7770. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  7771. *** create shared libraries on Solaris systems. Therefore, libtool
  7772. *** is disabling shared libraries support. We urge you to upgrade GNU
  7773. *** binutils to release 2.9.1 or newer. Another option is to modify
  7774. *** your PATH or compiler configuration so that the native linker is
  7775. *** used, and then restart.
  7776. _LT_EOF
  7777. elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7778. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7779. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7780. else
  7781. ld_shlibs=no
  7782. fi
  7783. ;;
  7784. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  7785. case `$LD -v 2>&1` in
  7786. *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  7787. ld_shlibs=no
  7788. cat <<_LT_EOF 1>&2
  7789. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  7790. *** reliably create shared libraries on SCO systems. Therefore, libtool
  7791. *** is disabling shared libraries support. We urge you to upgrade GNU
  7792. *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  7793. *** your PATH or compiler configuration so that the native linker is
  7794. *** used, and then restart.
  7795. _LT_EOF
  7796. ;;
  7797. *)
  7798. # For security reasons, it is highly recommended that you always
  7799. # use absolute paths for naming shared libraries, and exclude the
  7800. # DT_RUNPATH tag from executables and libraries. But doing so
  7801. # requires that you compile everything twice, which is a pain.
  7802. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7803. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7804. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7805. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7806. else
  7807. ld_shlibs=no
  7808. fi
  7809. ;;
  7810. esac
  7811. ;;
  7812. sunos4*)
  7813. archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  7814. wlarc=
  7815. hardcode_direct=yes
  7816. hardcode_shlibpath_var=no
  7817. ;;
  7818. *)
  7819. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7820. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7821. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7822. else
  7823. ld_shlibs=no
  7824. fi
  7825. ;;
  7826. esac
  7827. if test "$ld_shlibs" = no; then
  7828. runpath_var=
  7829. hardcode_libdir_flag_spec=
  7830. export_dynamic_flag_spec=
  7831. whole_archive_flag_spec=
  7832. fi
  7833. else
  7834. # PORTME fill in a description of your system's linker (not GNU ld)
  7835. case $host_os in
  7836. aix3*)
  7837. allow_undefined_flag=unsupported
  7838. always_export_symbols=yes
  7839. 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'
  7840. # Note: this linker hardcodes the directories in LIBPATH if there
  7841. # are no directories specified by -L.
  7842. hardcode_minus_L=yes
  7843. if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  7844. # Neither direct hardcoding nor static linking is supported with a
  7845. # broken collect2.
  7846. hardcode_direct=unsupported
  7847. fi
  7848. ;;
  7849. aix[4-9]*)
  7850. if test "$host_cpu" = ia64; then
  7851. # On IA64, the linker does run time linking by default, so we don't
  7852. # have to do anything special.
  7853. aix_use_runtimelinking=no
  7854. exp_sym_flag='-Bexport'
  7855. no_entry_flag=""
  7856. else
  7857. # If we're using GNU nm, then we don't want the "-C" option.
  7858. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  7859. # Also, AIX nm treats weak defined symbols like other global
  7860. # defined symbols, whereas GNU nm marks them as "W".
  7861. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  7862. 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'
  7863. else
  7864. export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
  7865. fi
  7866. aix_use_runtimelinking=no
  7867. # Test if we are trying to use run time linking or normal
  7868. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  7869. # need to do runtime linking.
  7870. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  7871. for ld_flag in $LDFLAGS; do
  7872. if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  7873. aix_use_runtimelinking=yes
  7874. break
  7875. fi
  7876. done
  7877. ;;
  7878. esac
  7879. exp_sym_flag='-bexport'
  7880. no_entry_flag='-bnoentry'
  7881. fi
  7882. # When large executables or shared objects are built, AIX ld can
  7883. # have problems creating the table of contents. If linking a library
  7884. # or program results in "error TOC overflow" add -mminimal-toc to
  7885. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  7886. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  7887. archive_cmds=''
  7888. hardcode_direct=yes
  7889. hardcode_direct_absolute=yes
  7890. hardcode_libdir_separator=':'
  7891. link_all_deplibs=yes
  7892. file_list_spec='${wl}-f,'
  7893. if test "$GCC" = yes; then
  7894. case $host_os in aix4.[012]|aix4.[012].*)
  7895. # We only want to do this on AIX 4.2 and lower, the check
  7896. # below for broken collect2 doesn't work under 4.3+
  7897. collect2name=`${CC} -print-prog-name=collect2`
  7898. if test -f "$collect2name" &&
  7899. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  7900. then
  7901. # We have reworked collect2
  7902. :
  7903. else
  7904. # We have old collect2
  7905. hardcode_direct=unsupported
  7906. # It fails to find uninstalled libraries when the uninstalled
  7907. # path is not listed in the libpath. Setting hardcode_minus_L
  7908. # to unsupported forces relinking
  7909. hardcode_minus_L=yes
  7910. hardcode_libdir_flag_spec='-L$libdir'
  7911. hardcode_libdir_separator=
  7912. fi
  7913. ;;
  7914. esac
  7915. shared_flag='-shared'
  7916. if test "$aix_use_runtimelinking" = yes; then
  7917. shared_flag="$shared_flag "'${wl}-G'
  7918. fi
  7919. else
  7920. # not using gcc
  7921. if test "$host_cpu" = ia64; then
  7922. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  7923. # chokes on -Wl,-G. The following line is correct:
  7924. shared_flag='-G'
  7925. else
  7926. if test "$aix_use_runtimelinking" = yes; then
  7927. shared_flag='${wl}-G'
  7928. else
  7929. shared_flag='${wl}-bM:SRE'
  7930. fi
  7931. fi
  7932. fi
  7933. export_dynamic_flag_spec='${wl}-bexpall'
  7934. # It seems that -bexpall does not export symbols beginning with
  7935. # underscore (_), so it is better to generate a list of symbols to export.
  7936. always_export_symbols=yes
  7937. if test "$aix_use_runtimelinking" = yes; then
  7938. # Warning - without using the other runtime loading flags (-brtl),
  7939. # -berok will link without error, but may produce a broken library.
  7940. allow_undefined_flag='-berok'
  7941. # Determine the default libpath from the value encoded in an
  7942. # empty executable.
  7943. if test "${lt_cv_aix_libpath+set}" = set; then
  7944. aix_libpath=$lt_cv_aix_libpath
  7945. else
  7946. if ${lt_cv_aix_libpath_+:} false; then :
  7947. $as_echo_n "(cached) " >&6
  7948. else
  7949. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7950. /* end confdefs.h. */
  7951. int
  7952. main ()
  7953. {
  7954. ;
  7955. return 0;
  7956. }
  7957. _ACEOF
  7958. if ac_fn_c_try_link "$LINENO"; then :
  7959. lt_aix_libpath_sed='
  7960. /Import File Strings/,/^$/ {
  7961. /^0/ {
  7962. s/^0 *\([^ ]*\) *$/\1/
  7963. p
  7964. }
  7965. }'
  7966. lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  7967. # Check for a 64-bit object if we didn't find anything.
  7968. if test -z "$lt_cv_aix_libpath_"; then
  7969. lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  7970. fi
  7971. fi
  7972. rm -f core conftest.err conftest.$ac_objext \
  7973. conftest$ac_exeext conftest.$ac_ext
  7974. if test -z "$lt_cv_aix_libpath_"; then
  7975. lt_cv_aix_libpath_="/usr/lib:/lib"
  7976. fi
  7977. fi
  7978. aix_libpath=$lt_cv_aix_libpath_
  7979. fi
  7980. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  7981. 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"
  7982. else
  7983. if test "$host_cpu" = ia64; then
  7984. hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
  7985. allow_undefined_flag="-z nodefs"
  7986. 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"
  7987. else
  7988. # Determine the default libpath from the value encoded in an
  7989. # empty executable.
  7990. if test "${lt_cv_aix_libpath+set}" = set; then
  7991. aix_libpath=$lt_cv_aix_libpath
  7992. else
  7993. if ${lt_cv_aix_libpath_+:} false; then :
  7994. $as_echo_n "(cached) " >&6
  7995. else
  7996. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7997. /* end confdefs.h. */
  7998. int
  7999. main ()
  8000. {
  8001. ;
  8002. return 0;
  8003. }
  8004. _ACEOF
  8005. if ac_fn_c_try_link "$LINENO"; then :
  8006. lt_aix_libpath_sed='
  8007. /Import File Strings/,/^$/ {
  8008. /^0/ {
  8009. s/^0 *\([^ ]*\) *$/\1/
  8010. p
  8011. }
  8012. }'
  8013. lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8014. # Check for a 64-bit object if we didn't find anything.
  8015. if test -z "$lt_cv_aix_libpath_"; then
  8016. lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8017. fi
  8018. fi
  8019. rm -f core conftest.err conftest.$ac_objext \
  8020. conftest$ac_exeext conftest.$ac_ext
  8021. if test -z "$lt_cv_aix_libpath_"; then
  8022. lt_cv_aix_libpath_="/usr/lib:/lib"
  8023. fi
  8024. fi
  8025. aix_libpath=$lt_cv_aix_libpath_
  8026. fi
  8027. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  8028. # Warning - without using the other run time loading flags,
  8029. # -berok will link without error, but may produce a broken library.
  8030. no_undefined_flag=' ${wl}-bernotok'
  8031. allow_undefined_flag=' ${wl}-berok'
  8032. if test "$with_gnu_ld" = yes; then
  8033. # We only use this code for GNU lds that support --whole-archive.
  8034. whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  8035. else
  8036. # Exported symbols can be pulled into shared objects from archives
  8037. whole_archive_flag_spec='$convenience'
  8038. fi
  8039. archive_cmds_need_lc=yes
  8040. # This is similar to how AIX traditionally builds its shared libraries.
  8041. 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'
  8042. fi
  8043. fi
  8044. ;;
  8045. amigaos*)
  8046. case $host_cpu in
  8047. powerpc)
  8048. # see comment about AmigaOS4 .so support
  8049. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8050. archive_expsym_cmds=''
  8051. ;;
  8052. m68k)
  8053. 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)'
  8054. hardcode_libdir_flag_spec='-L$libdir'
  8055. hardcode_minus_L=yes
  8056. ;;
  8057. esac
  8058. ;;
  8059. bsdi[45]*)
  8060. export_dynamic_flag_spec=-rdynamic
  8061. ;;
  8062. cygwin* | mingw* | pw32* | cegcc*)
  8063. # When not using gcc, we currently assume that we are using
  8064. # Microsoft Visual C++.
  8065. # hardcode_libdir_flag_spec is actually meaningless, as there is
  8066. # no search path for DLLs.
  8067. case $cc_basename in
  8068. cl*)
  8069. # Native MSVC
  8070. hardcode_libdir_flag_spec=' '
  8071. allow_undefined_flag=unsupported
  8072. always_export_symbols=yes
  8073. file_list_spec='@'
  8074. # Tell ltmain to make .lib files, not .a files.
  8075. libext=lib
  8076. # Tell ltmain to make .dll files, not .so files.
  8077. shrext_cmds=".dll"
  8078. # FIXME: Setting linknames here is a bad hack.
  8079. archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
  8080. archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  8081. sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
  8082. else
  8083. sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
  8084. fi~
  8085. $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
  8086. linknames='
  8087. # The linker will not automatically build a static lib if we build a DLL.
  8088. # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
  8089. enable_shared_with_static_runtimes=yes
  8090. exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
  8091. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
  8092. # Don't use ranlib
  8093. old_postinstall_cmds='chmod 644 $oldlib'
  8094. postlink_cmds='lt_outputfile="@OUTPUT@"~
  8095. lt_tool_outputfile="@TOOL_OUTPUT@"~
  8096. case $lt_outputfile in
  8097. *.exe|*.EXE) ;;
  8098. *)
  8099. lt_outputfile="$lt_outputfile.exe"
  8100. lt_tool_outputfile="$lt_tool_outputfile.exe"
  8101. ;;
  8102. esac~
  8103. if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
  8104. $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
  8105. $RM "$lt_outputfile.manifest";
  8106. fi'
  8107. ;;
  8108. *)
  8109. # Assume MSVC wrapper
  8110. hardcode_libdir_flag_spec=' '
  8111. allow_undefined_flag=unsupported
  8112. # Tell ltmain to make .lib files, not .a files.
  8113. libext=lib
  8114. # Tell ltmain to make .dll files, not .so files.
  8115. shrext_cmds=".dll"
  8116. # FIXME: Setting linknames here is a bad hack.
  8117. archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
  8118. # The linker will automatically build a .lib file if we build a DLL.
  8119. old_archive_from_new_cmds='true'
  8120. # FIXME: Should let the user specify the lib program.
  8121. old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
  8122. enable_shared_with_static_runtimes=yes
  8123. ;;
  8124. esac
  8125. ;;
  8126. darwin* | rhapsody*)
  8127. archive_cmds_need_lc=no
  8128. hardcode_direct=no
  8129. hardcode_automatic=yes
  8130. hardcode_shlibpath_var=unsupported
  8131. if test "$lt_cv_ld_force_load" = "yes"; then
  8132. 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\"`'
  8133. else
  8134. whole_archive_flag_spec=''
  8135. fi
  8136. link_all_deplibs=yes
  8137. allow_undefined_flag="$_lt_dar_allow_undefined"
  8138. case $cc_basename in
  8139. ifort*) _lt_dar_can_shared=yes ;;
  8140. *) _lt_dar_can_shared=$GCC ;;
  8141. esac
  8142. if test "$_lt_dar_can_shared" = "yes"; then
  8143. output_verbose_link_cmd=func_echo_all
  8144. archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
  8145. module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  8146. 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}"
  8147. 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}"
  8148. else
  8149. ld_shlibs=no
  8150. fi
  8151. ;;
  8152. dgux*)
  8153. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8154. hardcode_libdir_flag_spec='-L$libdir'
  8155. hardcode_shlibpath_var=no
  8156. ;;
  8157. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  8158. # support. Future versions do this automatically, but an explicit c++rt0.o
  8159. # does not break anything, and helps significantly (at the cost of a little
  8160. # extra space).
  8161. freebsd2.2*)
  8162. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  8163. hardcode_libdir_flag_spec='-R$libdir'
  8164. hardcode_direct=yes
  8165. hardcode_shlibpath_var=no
  8166. ;;
  8167. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  8168. freebsd2.*)
  8169. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8170. hardcode_direct=yes
  8171. hardcode_minus_L=yes
  8172. hardcode_shlibpath_var=no
  8173. ;;
  8174. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  8175. freebsd* | dragonfly*)
  8176. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8177. hardcode_libdir_flag_spec='-R$libdir'
  8178. hardcode_direct=yes
  8179. hardcode_shlibpath_var=no
  8180. ;;
  8181. hpux9*)
  8182. if test "$GCC" = yes; then
  8183. archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  8184. else
  8185. 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'
  8186. fi
  8187. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8188. hardcode_libdir_separator=:
  8189. hardcode_direct=yes
  8190. # hardcode_minus_L: Not really in the search PATH,
  8191. # but as the default location of the library.
  8192. hardcode_minus_L=yes
  8193. export_dynamic_flag_spec='${wl}-E'
  8194. ;;
  8195. hpux10*)
  8196. if test "$GCC" = yes && test "$with_gnu_ld" = no; then
  8197. archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8198. else
  8199. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  8200. fi
  8201. if test "$with_gnu_ld" = no; then
  8202. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8203. hardcode_libdir_separator=:
  8204. hardcode_direct=yes
  8205. hardcode_direct_absolute=yes
  8206. export_dynamic_flag_spec='${wl}-E'
  8207. # hardcode_minus_L: Not really in the search PATH,
  8208. # but as the default location of the library.
  8209. hardcode_minus_L=yes
  8210. fi
  8211. ;;
  8212. hpux11*)
  8213. if test "$GCC" = yes && test "$with_gnu_ld" = no; then
  8214. case $host_cpu in
  8215. hppa*64*)
  8216. archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8217. ;;
  8218. ia64*)
  8219. archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  8220. ;;
  8221. *)
  8222. archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8223. ;;
  8224. esac
  8225. else
  8226. case $host_cpu in
  8227. hppa*64*)
  8228. archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8229. ;;
  8230. ia64*)
  8231. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  8232. ;;
  8233. *)
  8234. # Older versions of the 11.00 compiler do not understand -b yet
  8235. # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
  8236. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
  8237. $as_echo_n "checking if $CC understands -b... " >&6; }
  8238. if ${lt_cv_prog_compiler__b+:} false; then :
  8239. $as_echo_n "(cached) " >&6
  8240. else
  8241. lt_cv_prog_compiler__b=no
  8242. save_LDFLAGS="$LDFLAGS"
  8243. LDFLAGS="$LDFLAGS -b"
  8244. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  8245. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  8246. # The linker can only warn and ignore the option if not recognized
  8247. # So say no if there are warnings
  8248. if test -s conftest.err; then
  8249. # Append any errors to the config.log.
  8250. cat conftest.err 1>&5
  8251. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  8252. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  8253. if diff conftest.exp conftest.er2 >/dev/null; then
  8254. lt_cv_prog_compiler__b=yes
  8255. fi
  8256. else
  8257. lt_cv_prog_compiler__b=yes
  8258. fi
  8259. fi
  8260. $RM -r conftest*
  8261. LDFLAGS="$save_LDFLAGS"
  8262. fi
  8263. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
  8264. $as_echo "$lt_cv_prog_compiler__b" >&6; }
  8265. if test x"$lt_cv_prog_compiler__b" = xyes; then
  8266. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8267. else
  8268. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  8269. fi
  8270. ;;
  8271. esac
  8272. fi
  8273. if test "$with_gnu_ld" = no; then
  8274. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8275. hardcode_libdir_separator=:
  8276. case $host_cpu in
  8277. hppa*64*|ia64*)
  8278. hardcode_direct=no
  8279. hardcode_shlibpath_var=no
  8280. ;;
  8281. *)
  8282. hardcode_direct=yes
  8283. hardcode_direct_absolute=yes
  8284. export_dynamic_flag_spec='${wl}-E'
  8285. # hardcode_minus_L: Not really in the search PATH,
  8286. # but as the default location of the library.
  8287. hardcode_minus_L=yes
  8288. ;;
  8289. esac
  8290. fi
  8291. ;;
  8292. irix5* | irix6* | nonstopux*)
  8293. if test "$GCC" = yes; then
  8294. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  8295. # Try to use the -exported_symbol ld option, if it does not
  8296. # work, assume that -exports_file does not work either and
  8297. # implicitly export all symbols.
  8298. # This should be the same for all languages, so no per-tag cache variable.
  8299. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
  8300. $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
  8301. if ${lt_cv_irix_exported_symbol+:} false; then :
  8302. $as_echo_n "(cached) " >&6
  8303. else
  8304. save_LDFLAGS="$LDFLAGS"
  8305. LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
  8306. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8307. /* end confdefs.h. */
  8308. int foo (void) { return 0; }
  8309. _ACEOF
  8310. if ac_fn_c_try_link "$LINENO"; then :
  8311. lt_cv_irix_exported_symbol=yes
  8312. else
  8313. lt_cv_irix_exported_symbol=no
  8314. fi
  8315. rm -f core conftest.err conftest.$ac_objext \
  8316. conftest$ac_exeext conftest.$ac_ext
  8317. LDFLAGS="$save_LDFLAGS"
  8318. fi
  8319. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
  8320. $as_echo "$lt_cv_irix_exported_symbol" >&6; }
  8321. if test "$lt_cv_irix_exported_symbol" = yes; then
  8322. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
  8323. fi
  8324. else
  8325. 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'
  8326. 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'
  8327. fi
  8328. archive_cmds_need_lc='no'
  8329. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8330. hardcode_libdir_separator=:
  8331. inherit_rpath=yes
  8332. link_all_deplibs=yes
  8333. ;;
  8334. netbsd*)
  8335. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  8336. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  8337. else
  8338. archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  8339. fi
  8340. hardcode_libdir_flag_spec='-R$libdir'
  8341. hardcode_direct=yes
  8342. hardcode_shlibpath_var=no
  8343. ;;
  8344. newsos6)
  8345. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8346. hardcode_direct=yes
  8347. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8348. hardcode_libdir_separator=:
  8349. hardcode_shlibpath_var=no
  8350. ;;
  8351. *nto* | *qnx*)
  8352. ;;
  8353. openbsd*)
  8354. if test -f /usr/libexec/ld.so; then
  8355. hardcode_direct=yes
  8356. hardcode_shlibpath_var=no
  8357. hardcode_direct_absolute=yes
  8358. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  8359. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8360. archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  8361. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  8362. export_dynamic_flag_spec='${wl}-E'
  8363. else
  8364. case $host_os in
  8365. openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  8366. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8367. hardcode_libdir_flag_spec='-R$libdir'
  8368. ;;
  8369. *)
  8370. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8371. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  8372. ;;
  8373. esac
  8374. fi
  8375. else
  8376. ld_shlibs=no
  8377. fi
  8378. ;;
  8379. os2*)
  8380. hardcode_libdir_flag_spec='-L$libdir'
  8381. hardcode_minus_L=yes
  8382. allow_undefined_flag=unsupported
  8383. 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'
  8384. old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  8385. ;;
  8386. osf3*)
  8387. if test "$GCC" = yes; then
  8388. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  8389. 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'
  8390. else
  8391. allow_undefined_flag=' -expect_unresolved \*'
  8392. 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'
  8393. fi
  8394. archive_cmds_need_lc='no'
  8395. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8396. hardcode_libdir_separator=:
  8397. ;;
  8398. osf4* | osf5*) # as osf3* with the addition of -msym flag
  8399. if test "$GCC" = yes; then
  8400. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  8401. archive_cmds='$CC -shared${allow_undefined_flag} $pic_flag $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  8402. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8403. else
  8404. allow_undefined_flag=' -expect_unresolved \*'
  8405. 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'
  8406. 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~
  8407. $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'
  8408. # Both c and cxx compiler support -rpath directly
  8409. hardcode_libdir_flag_spec='-rpath $libdir'
  8410. fi
  8411. archive_cmds_need_lc='no'
  8412. hardcode_libdir_separator=:
  8413. ;;
  8414. solaris*)
  8415. no_undefined_flag=' -z defs'
  8416. if test "$GCC" = yes; then
  8417. wlarc='${wl}'
  8418. archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8419. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8420. $CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  8421. else
  8422. case `$CC -V 2>&1` in
  8423. *"Compilers 5.0"*)
  8424. wlarc=''
  8425. archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8426. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8427. $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
  8428. ;;
  8429. *)
  8430. wlarc='${wl}'
  8431. archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
  8432. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8433. $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  8434. ;;
  8435. esac
  8436. fi
  8437. hardcode_libdir_flag_spec='-R$libdir'
  8438. hardcode_shlibpath_var=no
  8439. case $host_os in
  8440. solaris2.[0-5] | solaris2.[0-5].*) ;;
  8441. *)
  8442. # The compiler driver will combine and reorder linker options,
  8443. # but understands `-z linker_flag'. GCC discards it without `$wl',
  8444. # but is careful enough not to reorder.
  8445. # Supported since Solaris 2.6 (maybe 2.5.1?)
  8446. if test "$GCC" = yes; then
  8447. whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  8448. else
  8449. whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
  8450. fi
  8451. ;;
  8452. esac
  8453. link_all_deplibs=yes
  8454. ;;
  8455. sunos4*)
  8456. if test "x$host_vendor" = xsequent; then
  8457. # Use $CC to link under sequent, because it throws in some extra .o
  8458. # files that make .init and .fini sections work.
  8459. archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  8460. else
  8461. archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  8462. fi
  8463. hardcode_libdir_flag_spec='-L$libdir'
  8464. hardcode_direct=yes
  8465. hardcode_minus_L=yes
  8466. hardcode_shlibpath_var=no
  8467. ;;
  8468. sysv4)
  8469. case $host_vendor in
  8470. sni)
  8471. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8472. hardcode_direct=yes # is this really true???
  8473. ;;
  8474. siemens)
  8475. ## LD is ld it makes a PLAMLIB
  8476. ## CC just makes a GrossModule.
  8477. archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  8478. reload_cmds='$CC -r -o $output$reload_objs'
  8479. hardcode_direct=no
  8480. ;;
  8481. motorola)
  8482. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8483. hardcode_direct=no #Motorola manual says yes, but my tests say they lie
  8484. ;;
  8485. esac
  8486. runpath_var='LD_RUN_PATH'
  8487. hardcode_shlibpath_var=no
  8488. ;;
  8489. sysv4.3*)
  8490. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8491. hardcode_shlibpath_var=no
  8492. export_dynamic_flag_spec='-Bexport'
  8493. ;;
  8494. sysv4*MP*)
  8495. if test -d /usr/nec; then
  8496. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8497. hardcode_shlibpath_var=no
  8498. runpath_var=LD_RUN_PATH
  8499. hardcode_runpath_var=yes
  8500. ld_shlibs=yes
  8501. fi
  8502. ;;
  8503. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  8504. no_undefined_flag='${wl}-z,text'
  8505. archive_cmds_need_lc=no
  8506. hardcode_shlibpath_var=no
  8507. runpath_var='LD_RUN_PATH'
  8508. if test "$GCC" = yes; then
  8509. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8510. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8511. else
  8512. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8513. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8514. fi
  8515. ;;
  8516. sysv5* | sco3.2v5* | sco5v6*)
  8517. # Note: We can NOT use -z defs as we might desire, because we do not
  8518. # link with -lc, and that would cause any symbols used from libc to
  8519. # always be unresolved, which means just about no library would
  8520. # ever link correctly. If we're not using GNU ld we use -z text
  8521. # though, which does catch some bad symbols but isn't as heavy-handed
  8522. # as -z defs.
  8523. no_undefined_flag='${wl}-z,text'
  8524. allow_undefined_flag='${wl}-z,nodefs'
  8525. archive_cmds_need_lc=no
  8526. hardcode_shlibpath_var=no
  8527. hardcode_libdir_flag_spec='${wl}-R,$libdir'
  8528. hardcode_libdir_separator=':'
  8529. link_all_deplibs=yes
  8530. export_dynamic_flag_spec='${wl}-Bexport'
  8531. runpath_var='LD_RUN_PATH'
  8532. if test "$GCC" = yes; then
  8533. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8534. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8535. else
  8536. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8537. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8538. fi
  8539. ;;
  8540. uts4*)
  8541. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8542. hardcode_libdir_flag_spec='-L$libdir'
  8543. hardcode_shlibpath_var=no
  8544. ;;
  8545. *)
  8546. ld_shlibs=no
  8547. ;;
  8548. esac
  8549. if test x$host_vendor = xsni; then
  8550. case $host in
  8551. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  8552. export_dynamic_flag_spec='${wl}-Blargedynsym'
  8553. ;;
  8554. esac
  8555. fi
  8556. fi
  8557. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
  8558. $as_echo "$ld_shlibs" >&6; }
  8559. test "$ld_shlibs" = no && can_build_shared=no
  8560. with_gnu_ld=$with_gnu_ld
  8561. #
  8562. # Do we need to explicitly link libc?
  8563. #
  8564. case "x$archive_cmds_need_lc" in
  8565. x|xyes)
  8566. # Assume -lc should be added
  8567. archive_cmds_need_lc=yes
  8568. if test "$enable_shared" = yes && test "$GCC" = yes; then
  8569. case $archive_cmds in
  8570. *'~'*)
  8571. # FIXME: we may have to deal with multi-command sequences.
  8572. ;;
  8573. '$CC '*)
  8574. # Test whether the compiler implicitly links with -lc since on some
  8575. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  8576. # to ld, don't add -lc before -lgcc.
  8577. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  8578. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  8579. if ${lt_cv_archive_cmds_need_lc+:} false; then :
  8580. $as_echo_n "(cached) " >&6
  8581. else
  8582. $RM conftest*
  8583. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8584. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  8585. (eval $ac_compile) 2>&5
  8586. ac_status=$?
  8587. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  8588. test $ac_status = 0; } 2>conftest.err; then
  8589. soname=conftest
  8590. lib=conftest
  8591. libobjs=conftest.$ac_objext
  8592. deplibs=
  8593. wl=$lt_prog_compiler_wl
  8594. pic_flag=$lt_prog_compiler_pic
  8595. compiler_flags=-v
  8596. linker_flags=-v
  8597. verstring=
  8598. output_objdir=.
  8599. libname=conftest
  8600. lt_save_allow_undefined_flag=$allow_undefined_flag
  8601. allow_undefined_flag=
  8602. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  8603. (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  8604. ac_status=$?
  8605. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  8606. test $ac_status = 0; }
  8607. then
  8608. lt_cv_archive_cmds_need_lc=no
  8609. else
  8610. lt_cv_archive_cmds_need_lc=yes
  8611. fi
  8612. allow_undefined_flag=$lt_save_allow_undefined_flag
  8613. else
  8614. cat conftest.err 1>&5
  8615. fi
  8616. $RM conftest*
  8617. fi
  8618. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
  8619. $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
  8620. archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
  8621. ;;
  8622. esac
  8623. fi
  8624. ;;
  8625. esac
  8626. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  8627. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  8628. if test "$GCC" = yes; then
  8629. case $host_os in
  8630. darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
  8631. *) lt_awk_arg="/^libraries:/" ;;
  8632. esac
  8633. case $host_os in
  8634. mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
  8635. *) lt_sed_strip_eq="s,=/,/,g" ;;
  8636. esac
  8637. lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
  8638. case $lt_search_path_spec in
  8639. *\;*)
  8640. # if the path contains ";" then we assume it to be the separator
  8641. # otherwise default to the standard path separator (i.e. ":") - it is
  8642. # assumed that no part of a normal pathname contains ";" but that should
  8643. # okay in the real world where ";" in dirpaths is itself problematic.
  8644. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
  8645. ;;
  8646. *)
  8647. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
  8648. ;;
  8649. esac
  8650. # Ok, now we have the path, separated by spaces, we can step through it
  8651. # and add multilib dir if necessary.
  8652. lt_tmp_lt_search_path_spec=
  8653. lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
  8654. for lt_sys_path in $lt_search_path_spec; do
  8655. if test -d "$lt_sys_path/$lt_multi_os_dir"; then
  8656. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
  8657. else
  8658. test -d "$lt_sys_path" && \
  8659. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
  8660. fi
  8661. done
  8662. lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
  8663. BEGIN {RS=" "; FS="/|\n";} {
  8664. lt_foo="";
  8665. lt_count=0;
  8666. for (lt_i = NF; lt_i > 0; lt_i--) {
  8667. if ($lt_i != "" && $lt_i != ".") {
  8668. if ($lt_i == "..") {
  8669. lt_count++;
  8670. } else {
  8671. if (lt_count == 0) {
  8672. lt_foo="/" $lt_i lt_foo;
  8673. } else {
  8674. lt_count--;
  8675. }
  8676. }
  8677. }
  8678. }
  8679. if (lt_foo != "") { lt_freq[lt_foo]++; }
  8680. if (lt_freq[lt_foo] == 1) { print lt_foo; }
  8681. }'`
  8682. # AWK program above erroneously prepends '/' to C:/dos/paths
  8683. # for these hosts.
  8684. case $host_os in
  8685. mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
  8686. $SED 's,/\([A-Za-z]:\),\1,g'` ;;
  8687. esac
  8688. sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
  8689. else
  8690. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  8691. fi
  8692. library_names_spec=
  8693. libname_spec='lib$name'
  8694. soname_spec=
  8695. shrext_cmds=".so"
  8696. postinstall_cmds=
  8697. postuninstall_cmds=
  8698. finish_cmds=
  8699. finish_eval=
  8700. shlibpath_var=
  8701. shlibpath_overrides_runpath=unknown
  8702. version_type=none
  8703. dynamic_linker="$host_os ld.so"
  8704. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  8705. need_lib_prefix=unknown
  8706. hardcode_into_libs=no
  8707. # when you set need_version to no, make sure it does not cause -set_version
  8708. # flags to be left without arguments
  8709. need_version=unknown
  8710. case $host_os in
  8711. aix3*)
  8712. version_type=linux # correct to gnu/linux during the next big refactor
  8713. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  8714. shlibpath_var=LIBPATH
  8715. # AIX 3 has no versioning support, so we append a major version to the name.
  8716. soname_spec='${libname}${release}${shared_ext}$major'
  8717. ;;
  8718. aix[4-9]*)
  8719. version_type=linux # correct to gnu/linux during the next big refactor
  8720. need_lib_prefix=no
  8721. need_version=no
  8722. hardcode_into_libs=yes
  8723. if test "$host_cpu" = ia64; then
  8724. # AIX 5 supports IA64
  8725. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  8726. shlibpath_var=LD_LIBRARY_PATH
  8727. else
  8728. # With GCC up to 2.95.x, collect2 would create an import file
  8729. # for dependence libraries. The import file would start with
  8730. # the line `#! .'. This would cause the generated library to
  8731. # depend on `.', always an invalid library. This was fixed in
  8732. # development snapshots of GCC prior to 3.0.
  8733. case $host_os in
  8734. aix4 | aix4.[01] | aix4.[01].*)
  8735. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  8736. echo ' yes '
  8737. echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  8738. :
  8739. else
  8740. can_build_shared=no
  8741. fi
  8742. ;;
  8743. esac
  8744. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  8745. # soname into executable. Probably we can add versioning support to
  8746. # collect2, so additional links can be useful in future.
  8747. if test "$aix_use_runtimelinking" = yes; then
  8748. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  8749. # instead of lib<name>.a to let people know that these are not
  8750. # typical AIX shared libraries.
  8751. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8752. else
  8753. # We preserve .a as extension for shared libraries through AIX4.2
  8754. # and later when we are not doing run time linking.
  8755. library_names_spec='${libname}${release}.a $libname.a'
  8756. soname_spec='${libname}${release}${shared_ext}$major'
  8757. fi
  8758. shlibpath_var=LIBPATH
  8759. fi
  8760. ;;
  8761. amigaos*)
  8762. case $host_cpu in
  8763. powerpc)
  8764. # Since July 2007 AmigaOS4 officially supports .so libraries.
  8765. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  8766. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8767. ;;
  8768. m68k)
  8769. library_names_spec='$libname.ixlibrary $libname.a'
  8770. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  8771. 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'
  8772. ;;
  8773. esac
  8774. ;;
  8775. beos*)
  8776. library_names_spec='${libname}${shared_ext}'
  8777. dynamic_linker="$host_os ld.so"
  8778. shlibpath_var=LIBRARY_PATH
  8779. ;;
  8780. bsdi[45]*)
  8781. version_type=linux # correct to gnu/linux during the next big refactor
  8782. need_version=no
  8783. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8784. soname_spec='${libname}${release}${shared_ext}$major'
  8785. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  8786. shlibpath_var=LD_LIBRARY_PATH
  8787. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  8788. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  8789. # the default ld.so.conf also contains /usr/contrib/lib and
  8790. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  8791. # libtool to hard-code these into programs
  8792. ;;
  8793. cygwin* | mingw* | pw32* | cegcc*)
  8794. version_type=windows
  8795. shrext_cmds=".dll"
  8796. need_version=no
  8797. need_lib_prefix=no
  8798. case $GCC,$cc_basename in
  8799. yes,*)
  8800. # gcc
  8801. library_names_spec='$libname.dll.a'
  8802. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  8803. postinstall_cmds='base_file=`basename \${file}`~
  8804. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  8805. dldir=$destdir/`dirname \$dlpath`~
  8806. test -d \$dldir || mkdir -p \$dldir~
  8807. $install_prog $dir/$dlname \$dldir/$dlname~
  8808. chmod a+x \$dldir/$dlname~
  8809. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  8810. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  8811. fi'
  8812. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  8813. dlpath=$dir/\$dldll~
  8814. $RM \$dlpath'
  8815. shlibpath_overrides_runpath=yes
  8816. case $host_os in
  8817. cygwin*)
  8818. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  8819. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  8820. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
  8821. ;;
  8822. mingw* | cegcc*)
  8823. # MinGW DLLs use traditional 'lib' prefix
  8824. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  8825. ;;
  8826. pw32*)
  8827. # pw32 DLLs use 'pw' prefix rather than 'lib'
  8828. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  8829. ;;
  8830. esac
  8831. dynamic_linker='Win32 ld.exe'
  8832. ;;
  8833. *,cl*)
  8834. # Native MSVC
  8835. libname_spec='$name'
  8836. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  8837. library_names_spec='${libname}.dll.lib'
  8838. case $build_os in
  8839. mingw*)
  8840. sys_lib_search_path_spec=
  8841. lt_save_ifs=$IFS
  8842. IFS=';'
  8843. for lt_path in $LIB
  8844. do
  8845. IFS=$lt_save_ifs
  8846. # Let DOS variable expansion print the short 8.3 style file name.
  8847. lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
  8848. sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
  8849. done
  8850. IFS=$lt_save_ifs
  8851. # Convert to MSYS style.
  8852. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
  8853. ;;
  8854. cygwin*)
  8855. # Convert to unix form, then to dos form, then back to unix form
  8856. # but this time dos style (no spaces!) so that the unix form looks
  8857. # like /cygdrive/c/PROGRA~1:/cygdr...
  8858. sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
  8859. sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
  8860. sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  8861. ;;
  8862. *)
  8863. sys_lib_search_path_spec="$LIB"
  8864. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  8865. # It is most probably a Windows format PATH.
  8866. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  8867. else
  8868. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  8869. fi
  8870. # FIXME: find the short name or the path components, as spaces are
  8871. # common. (e.g. "Program Files" -> "PROGRA~1")
  8872. ;;
  8873. esac
  8874. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  8875. postinstall_cmds='base_file=`basename \${file}`~
  8876. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  8877. dldir=$destdir/`dirname \$dlpath`~
  8878. test -d \$dldir || mkdir -p \$dldir~
  8879. $install_prog $dir/$dlname \$dldir/$dlname'
  8880. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  8881. dlpath=$dir/\$dldll~
  8882. $RM \$dlpath'
  8883. shlibpath_overrides_runpath=yes
  8884. dynamic_linker='Win32 link.exe'
  8885. ;;
  8886. *)
  8887. # Assume MSVC wrapper
  8888. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  8889. dynamic_linker='Win32 ld.exe'
  8890. ;;
  8891. esac
  8892. # FIXME: first we should search . and the directory the executable is in
  8893. shlibpath_var=PATH
  8894. ;;
  8895. darwin* | rhapsody*)
  8896. dynamic_linker="$host_os dyld"
  8897. version_type=darwin
  8898. need_lib_prefix=no
  8899. need_version=no
  8900. library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  8901. soname_spec='${libname}${release}${major}$shared_ext'
  8902. shlibpath_overrides_runpath=yes
  8903. shlibpath_var=DYLD_LIBRARY_PATH
  8904. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  8905. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
  8906. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  8907. ;;
  8908. dgux*)
  8909. version_type=linux # correct to gnu/linux during the next big refactor
  8910. need_lib_prefix=no
  8911. need_version=no
  8912. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  8913. soname_spec='${libname}${release}${shared_ext}$major'
  8914. shlibpath_var=LD_LIBRARY_PATH
  8915. ;;
  8916. freebsd* | dragonfly*)
  8917. # DragonFly does not have aout. When/if they implement a new
  8918. # versioning mechanism, adjust this.
  8919. if test -x /usr/bin/objformat; then
  8920. objformat=`/usr/bin/objformat`
  8921. else
  8922. case $host_os in
  8923. freebsd[23].*) objformat=aout ;;
  8924. *) objformat=elf ;;
  8925. esac
  8926. fi
  8927. version_type=freebsd-$objformat
  8928. case $version_type in
  8929. freebsd-elf*)
  8930. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  8931. need_version=no
  8932. need_lib_prefix=no
  8933. ;;
  8934. freebsd-*)
  8935. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  8936. need_version=yes
  8937. ;;
  8938. esac
  8939. shlibpath_var=LD_LIBRARY_PATH
  8940. case $host_os in
  8941. freebsd2.*)
  8942. shlibpath_overrides_runpath=yes
  8943. ;;
  8944. freebsd3.[01]* | freebsdelf3.[01]*)
  8945. shlibpath_overrides_runpath=yes
  8946. hardcode_into_libs=yes
  8947. ;;
  8948. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  8949. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  8950. shlibpath_overrides_runpath=no
  8951. hardcode_into_libs=yes
  8952. ;;
  8953. *) # from 4.6 on, and DragonFly
  8954. shlibpath_overrides_runpath=yes
  8955. hardcode_into_libs=yes
  8956. ;;
  8957. esac
  8958. ;;
  8959. gnu*)
  8960. version_type=linux # correct to gnu/linux during the next big refactor
  8961. need_lib_prefix=no
  8962. need_version=no
  8963. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  8964. soname_spec='${libname}${release}${shared_ext}$major'
  8965. shlibpath_var=LD_LIBRARY_PATH
  8966. shlibpath_overrides_runpath=no
  8967. hardcode_into_libs=yes
  8968. ;;
  8969. haiku*)
  8970. version_type=linux # correct to gnu/linux during the next big refactor
  8971. need_lib_prefix=no
  8972. need_version=no
  8973. dynamic_linker="$host_os runtime_loader"
  8974. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  8975. soname_spec='${libname}${release}${shared_ext}$major'
  8976. shlibpath_var=LIBRARY_PATH
  8977. shlibpath_overrides_runpath=yes
  8978. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
  8979. hardcode_into_libs=yes
  8980. ;;
  8981. hpux9* | hpux10* | hpux11*)
  8982. # Give a soname corresponding to the major version so that dld.sl refuses to
  8983. # link against other versions.
  8984. version_type=sunos
  8985. need_lib_prefix=no
  8986. need_version=no
  8987. case $host_cpu in
  8988. ia64*)
  8989. shrext_cmds='.so'
  8990. hardcode_into_libs=yes
  8991. dynamic_linker="$host_os dld.so"
  8992. shlibpath_var=LD_LIBRARY_PATH
  8993. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  8994. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8995. soname_spec='${libname}${release}${shared_ext}$major'
  8996. if test "X$HPUX_IA64_MODE" = X32; then
  8997. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  8998. else
  8999. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  9000. fi
  9001. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  9002. ;;
  9003. hppa*64*)
  9004. shrext_cmds='.sl'
  9005. hardcode_into_libs=yes
  9006. dynamic_linker="$host_os dld.sl"
  9007. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  9008. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  9009. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9010. soname_spec='${libname}${release}${shared_ext}$major'
  9011. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  9012. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  9013. ;;
  9014. *)
  9015. shrext_cmds='.sl'
  9016. dynamic_linker="$host_os dld.sl"
  9017. shlibpath_var=SHLIB_PATH
  9018. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  9019. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9020. soname_spec='${libname}${release}${shared_ext}$major'
  9021. ;;
  9022. esac
  9023. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  9024. postinstall_cmds='chmod 555 $lib'
  9025. # or fails outright, so override atomically:
  9026. install_override_mode=555
  9027. ;;
  9028. interix[3-9]*)
  9029. version_type=linux # correct to gnu/linux during the next big refactor
  9030. need_lib_prefix=no
  9031. need_version=no
  9032. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  9033. soname_spec='${libname}${release}${shared_ext}$major'
  9034. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  9035. shlibpath_var=LD_LIBRARY_PATH
  9036. shlibpath_overrides_runpath=no
  9037. hardcode_into_libs=yes
  9038. ;;
  9039. irix5* | irix6* | nonstopux*)
  9040. case $host_os in
  9041. nonstopux*) version_type=nonstopux ;;
  9042. *)
  9043. if test "$lt_cv_prog_gnu_ld" = yes; then
  9044. version_type=linux # correct to gnu/linux during the next big refactor
  9045. else
  9046. version_type=irix
  9047. fi ;;
  9048. esac
  9049. need_lib_prefix=no
  9050. need_version=no
  9051. soname_spec='${libname}${release}${shared_ext}$major'
  9052. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  9053. case $host_os in
  9054. irix5* | nonstopux*)
  9055. libsuff= shlibsuff=
  9056. ;;
  9057. *)
  9058. case $LD in # libtool.m4 will add one of these switches to LD
  9059. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  9060. libsuff= shlibsuff= libmagic=32-bit;;
  9061. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  9062. libsuff=32 shlibsuff=N32 libmagic=N32;;
  9063. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  9064. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  9065. *) libsuff= shlibsuff= libmagic=never-match;;
  9066. esac
  9067. ;;
  9068. esac
  9069. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  9070. shlibpath_overrides_runpath=no
  9071. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  9072. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  9073. hardcode_into_libs=yes
  9074. ;;
  9075. # No shared lib support for Linux oldld, aout, or coff.
  9076. linux*oldld* | linux*aout* | linux*coff*)
  9077. dynamic_linker=no
  9078. ;;
  9079. # This must be glibc/ELF.
  9080. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  9081. version_type=linux # correct to gnu/linux during the next big refactor
  9082. need_lib_prefix=no
  9083. need_version=no
  9084. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9085. soname_spec='${libname}${release}${shared_ext}$major'
  9086. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  9087. shlibpath_var=LD_LIBRARY_PATH
  9088. shlibpath_overrides_runpath=no
  9089. # Some binutils ld are patched to set DT_RUNPATH
  9090. if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
  9091. $as_echo_n "(cached) " >&6
  9092. else
  9093. lt_cv_shlibpath_overrides_runpath=no
  9094. save_LDFLAGS=$LDFLAGS
  9095. save_libdir=$libdir
  9096. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
  9097. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
  9098. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9099. /* end confdefs.h. */
  9100. int
  9101. main ()
  9102. {
  9103. ;
  9104. return 0;
  9105. }
  9106. _ACEOF
  9107. if ac_fn_c_try_link "$LINENO"; then :
  9108. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  9109. lt_cv_shlibpath_overrides_runpath=yes
  9110. fi
  9111. fi
  9112. rm -f core conftest.err conftest.$ac_objext \
  9113. conftest$ac_exeext conftest.$ac_ext
  9114. LDFLAGS=$save_LDFLAGS
  9115. libdir=$save_libdir
  9116. fi
  9117. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  9118. # This implies no fast_install, which is unacceptable.
  9119. # Some rework will be needed to allow for fast_install
  9120. # before this can be enabled.
  9121. hardcode_into_libs=yes
  9122. # Append ld.so.conf contents to the search path
  9123. if test -f /etc/ld.so.conf; then
  9124. 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' ' '`
  9125. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  9126. fi
  9127. # We used to test for /lib/ld.so.1 and disable shared libraries on
  9128. # powerpc, because MkLinux only supported shared libraries with the
  9129. # GNU dynamic linker. Since this was broken with cross compilers,
  9130. # most powerpc-linux boxes support dynamic linking these days and
  9131. # people can always --disable-shared, the test was removed, and we
  9132. # assume the GNU/Linux dynamic linker is in use.
  9133. dynamic_linker='GNU/Linux ld.so'
  9134. ;;
  9135. netbsd*)
  9136. version_type=sunos
  9137. need_lib_prefix=no
  9138. need_version=no
  9139. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  9140. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9141. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  9142. dynamic_linker='NetBSD (a.out) ld.so'
  9143. else
  9144. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  9145. soname_spec='${libname}${release}${shared_ext}$major'
  9146. dynamic_linker='NetBSD ld.elf_so'
  9147. fi
  9148. shlibpath_var=LD_LIBRARY_PATH
  9149. shlibpath_overrides_runpath=yes
  9150. hardcode_into_libs=yes
  9151. ;;
  9152. newsos6)
  9153. version_type=linux # correct to gnu/linux during the next big refactor
  9154. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9155. shlibpath_var=LD_LIBRARY_PATH
  9156. shlibpath_overrides_runpath=yes
  9157. ;;
  9158. *nto* | *qnx*)
  9159. version_type=qnx
  9160. need_lib_prefix=no
  9161. need_version=no
  9162. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9163. soname_spec='${libname}${release}${shared_ext}$major'
  9164. shlibpath_var=LD_LIBRARY_PATH
  9165. shlibpath_overrides_runpath=no
  9166. hardcode_into_libs=yes
  9167. dynamic_linker='ldqnx.so'
  9168. ;;
  9169. openbsd*)
  9170. version_type=sunos
  9171. sys_lib_dlsearch_path_spec="/usr/lib"
  9172. need_lib_prefix=no
  9173. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  9174. case $host_os in
  9175. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  9176. *) need_version=no ;;
  9177. esac
  9178. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9179. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  9180. shlibpath_var=LD_LIBRARY_PATH
  9181. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  9182. case $host_os in
  9183. openbsd2.[89] | openbsd2.[89].*)
  9184. shlibpath_overrides_runpath=no
  9185. ;;
  9186. *)
  9187. shlibpath_overrides_runpath=yes
  9188. ;;
  9189. esac
  9190. else
  9191. shlibpath_overrides_runpath=yes
  9192. fi
  9193. ;;
  9194. os2*)
  9195. libname_spec='$name'
  9196. shrext_cmds=".dll"
  9197. need_lib_prefix=no
  9198. library_names_spec='$libname${shared_ext} $libname.a'
  9199. dynamic_linker='OS/2 ld.exe'
  9200. shlibpath_var=LIBPATH
  9201. ;;
  9202. osf3* | osf4* | osf5*)
  9203. version_type=osf
  9204. need_lib_prefix=no
  9205. need_version=no
  9206. soname_spec='${libname}${release}${shared_ext}$major'
  9207. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9208. shlibpath_var=LD_LIBRARY_PATH
  9209. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  9210. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  9211. ;;
  9212. rdos*)
  9213. dynamic_linker=no
  9214. ;;
  9215. solaris*)
  9216. version_type=linux # correct to gnu/linux during the next big refactor
  9217. need_lib_prefix=no
  9218. need_version=no
  9219. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9220. soname_spec='${libname}${release}${shared_ext}$major'
  9221. shlibpath_var=LD_LIBRARY_PATH
  9222. shlibpath_overrides_runpath=yes
  9223. hardcode_into_libs=yes
  9224. # ldd complains unless libraries are executable
  9225. postinstall_cmds='chmod +x $lib'
  9226. ;;
  9227. sunos4*)
  9228. version_type=sunos
  9229. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9230. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  9231. shlibpath_var=LD_LIBRARY_PATH
  9232. shlibpath_overrides_runpath=yes
  9233. if test "$with_gnu_ld" = yes; then
  9234. need_lib_prefix=no
  9235. fi
  9236. need_version=yes
  9237. ;;
  9238. sysv4 | sysv4.3*)
  9239. version_type=linux # correct to gnu/linux during the next big refactor
  9240. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9241. soname_spec='${libname}${release}${shared_ext}$major'
  9242. shlibpath_var=LD_LIBRARY_PATH
  9243. case $host_vendor in
  9244. sni)
  9245. shlibpath_overrides_runpath=no
  9246. need_lib_prefix=no
  9247. runpath_var=LD_RUN_PATH
  9248. ;;
  9249. siemens)
  9250. need_lib_prefix=no
  9251. ;;
  9252. motorola)
  9253. need_lib_prefix=no
  9254. need_version=no
  9255. shlibpath_overrides_runpath=no
  9256. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  9257. ;;
  9258. esac
  9259. ;;
  9260. sysv4*MP*)
  9261. if test -d /usr/nec ;then
  9262. version_type=linux # correct to gnu/linux during the next big refactor
  9263. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  9264. soname_spec='$libname${shared_ext}.$major'
  9265. shlibpath_var=LD_LIBRARY_PATH
  9266. fi
  9267. ;;
  9268. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  9269. version_type=freebsd-elf
  9270. need_lib_prefix=no
  9271. need_version=no
  9272. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  9273. soname_spec='${libname}${release}${shared_ext}$major'
  9274. shlibpath_var=LD_LIBRARY_PATH
  9275. shlibpath_overrides_runpath=yes
  9276. hardcode_into_libs=yes
  9277. if test "$with_gnu_ld" = yes; then
  9278. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  9279. else
  9280. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  9281. case $host_os in
  9282. sco3.2v5*)
  9283. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  9284. ;;
  9285. esac
  9286. fi
  9287. sys_lib_dlsearch_path_spec='/usr/lib'
  9288. ;;
  9289. tpf*)
  9290. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  9291. version_type=linux # correct to gnu/linux during the next big refactor
  9292. need_lib_prefix=no
  9293. need_version=no
  9294. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9295. shlibpath_var=LD_LIBRARY_PATH
  9296. shlibpath_overrides_runpath=no
  9297. hardcode_into_libs=yes
  9298. ;;
  9299. uts4*)
  9300. version_type=linux # correct to gnu/linux during the next big refactor
  9301. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9302. soname_spec='${libname}${release}${shared_ext}$major'
  9303. shlibpath_var=LD_LIBRARY_PATH
  9304. ;;
  9305. *)
  9306. dynamic_linker=no
  9307. ;;
  9308. esac
  9309. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  9310. $as_echo "$dynamic_linker" >&6; }
  9311. test "$dynamic_linker" = no && can_build_shared=no
  9312. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  9313. if test "$GCC" = yes; then
  9314. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  9315. fi
  9316. if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  9317. sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  9318. fi
  9319. if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  9320. sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  9321. fi
  9322. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  9323. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  9324. hardcode_action=
  9325. if test -n "$hardcode_libdir_flag_spec" ||
  9326. test -n "$runpath_var" ||
  9327. test "X$hardcode_automatic" = "Xyes" ; then
  9328. # We can hardcode non-existent directories.
  9329. if test "$hardcode_direct" != no &&
  9330. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  9331. # have to relink, otherwise we might link with an installed library
  9332. # when we should be linking with a yet-to-be-installed one
  9333. ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
  9334. test "$hardcode_minus_L" != no; then
  9335. # Linking always hardcodes the temporary library directory.
  9336. hardcode_action=relink
  9337. else
  9338. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  9339. hardcode_action=immediate
  9340. fi
  9341. else
  9342. # We cannot hardcode anything, or else we can only hardcode existing
  9343. # directories.
  9344. hardcode_action=unsupported
  9345. fi
  9346. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
  9347. $as_echo "$hardcode_action" >&6; }
  9348. if test "$hardcode_action" = relink ||
  9349. test "$inherit_rpath" = yes; then
  9350. # Fast installation is not supported
  9351. enable_fast_install=no
  9352. elif test "$shlibpath_overrides_runpath" = yes ||
  9353. test "$enable_shared" = no; then
  9354. # Fast installation is not necessary
  9355. enable_fast_install=needless
  9356. fi
  9357. if test "x$enable_dlopen" != xyes; then
  9358. enable_dlopen=unknown
  9359. enable_dlopen_self=unknown
  9360. enable_dlopen_self_static=unknown
  9361. else
  9362. lt_cv_dlopen=no
  9363. lt_cv_dlopen_libs=
  9364. case $host_os in
  9365. beos*)
  9366. lt_cv_dlopen="load_add_on"
  9367. lt_cv_dlopen_libs=
  9368. lt_cv_dlopen_self=yes
  9369. ;;
  9370. mingw* | pw32* | cegcc*)
  9371. lt_cv_dlopen="LoadLibrary"
  9372. lt_cv_dlopen_libs=
  9373. ;;
  9374. cygwin*)
  9375. lt_cv_dlopen="dlopen"
  9376. lt_cv_dlopen_libs=
  9377. ;;
  9378. darwin*)
  9379. # if libdl is installed we need to link against it
  9380. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  9381. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  9382. if ${ac_cv_lib_dl_dlopen+:} false; then :
  9383. $as_echo_n "(cached) " >&6
  9384. else
  9385. ac_check_lib_save_LIBS=$LIBS
  9386. LIBS="-ldl $LIBS"
  9387. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9388. /* end confdefs.h. */
  9389. /* Override any GCC internal prototype to avoid an error.
  9390. Use char because int might match the return type of a GCC
  9391. builtin and then its argument prototype would still apply. */
  9392. #ifdef __cplusplus
  9393. extern "C"
  9394. #endif
  9395. char dlopen ();
  9396. int
  9397. main ()
  9398. {
  9399. return dlopen ();
  9400. ;
  9401. return 0;
  9402. }
  9403. _ACEOF
  9404. if ac_fn_c_try_link "$LINENO"; then :
  9405. ac_cv_lib_dl_dlopen=yes
  9406. else
  9407. ac_cv_lib_dl_dlopen=no
  9408. fi
  9409. rm -f core conftest.err conftest.$ac_objext \
  9410. conftest$ac_exeext conftest.$ac_ext
  9411. LIBS=$ac_check_lib_save_LIBS
  9412. fi
  9413. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  9414. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  9415. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  9416. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  9417. else
  9418. lt_cv_dlopen="dyld"
  9419. lt_cv_dlopen_libs=
  9420. lt_cv_dlopen_self=yes
  9421. fi
  9422. ;;
  9423. *)
  9424. ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
  9425. if test "x$ac_cv_func_shl_load" = xyes; then :
  9426. lt_cv_dlopen="shl_load"
  9427. else
  9428. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
  9429. $as_echo_n "checking for shl_load in -ldld... " >&6; }
  9430. if ${ac_cv_lib_dld_shl_load+:} false; then :
  9431. $as_echo_n "(cached) " >&6
  9432. else
  9433. ac_check_lib_save_LIBS=$LIBS
  9434. LIBS="-ldld $LIBS"
  9435. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9436. /* end confdefs.h. */
  9437. /* Override any GCC internal prototype to avoid an error.
  9438. Use char because int might match the return type of a GCC
  9439. builtin and then its argument prototype would still apply. */
  9440. #ifdef __cplusplus
  9441. extern "C"
  9442. #endif
  9443. char shl_load ();
  9444. int
  9445. main ()
  9446. {
  9447. return shl_load ();
  9448. ;
  9449. return 0;
  9450. }
  9451. _ACEOF
  9452. if ac_fn_c_try_link "$LINENO"; then :
  9453. ac_cv_lib_dld_shl_load=yes
  9454. else
  9455. ac_cv_lib_dld_shl_load=no
  9456. fi
  9457. rm -f core conftest.err conftest.$ac_objext \
  9458. conftest$ac_exeext conftest.$ac_ext
  9459. LIBS=$ac_check_lib_save_LIBS
  9460. fi
  9461. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
  9462. $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
  9463. if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
  9464. lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
  9465. else
  9466. ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
  9467. if test "x$ac_cv_func_dlopen" = xyes; then :
  9468. lt_cv_dlopen="dlopen"
  9469. else
  9470. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  9471. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  9472. if ${ac_cv_lib_dl_dlopen+:} false; then :
  9473. $as_echo_n "(cached) " >&6
  9474. else
  9475. ac_check_lib_save_LIBS=$LIBS
  9476. LIBS="-ldl $LIBS"
  9477. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9478. /* end confdefs.h. */
  9479. /* Override any GCC internal prototype to avoid an error.
  9480. Use char because int might match the return type of a GCC
  9481. builtin and then its argument prototype would still apply. */
  9482. #ifdef __cplusplus
  9483. extern "C"
  9484. #endif
  9485. char dlopen ();
  9486. int
  9487. main ()
  9488. {
  9489. return dlopen ();
  9490. ;
  9491. return 0;
  9492. }
  9493. _ACEOF
  9494. if ac_fn_c_try_link "$LINENO"; then :
  9495. ac_cv_lib_dl_dlopen=yes
  9496. else
  9497. ac_cv_lib_dl_dlopen=no
  9498. fi
  9499. rm -f core conftest.err conftest.$ac_objext \
  9500. conftest$ac_exeext conftest.$ac_ext
  9501. LIBS=$ac_check_lib_save_LIBS
  9502. fi
  9503. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  9504. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  9505. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  9506. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  9507. else
  9508. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
  9509. $as_echo_n "checking for dlopen in -lsvld... " >&6; }
  9510. if ${ac_cv_lib_svld_dlopen+:} false; then :
  9511. $as_echo_n "(cached) " >&6
  9512. else
  9513. ac_check_lib_save_LIBS=$LIBS
  9514. LIBS="-lsvld $LIBS"
  9515. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9516. /* end confdefs.h. */
  9517. /* Override any GCC internal prototype to avoid an error.
  9518. Use char because int might match the return type of a GCC
  9519. builtin and then its argument prototype would still apply. */
  9520. #ifdef __cplusplus
  9521. extern "C"
  9522. #endif
  9523. char dlopen ();
  9524. int
  9525. main ()
  9526. {
  9527. return dlopen ();
  9528. ;
  9529. return 0;
  9530. }
  9531. _ACEOF
  9532. if ac_fn_c_try_link "$LINENO"; then :
  9533. ac_cv_lib_svld_dlopen=yes
  9534. else
  9535. ac_cv_lib_svld_dlopen=no
  9536. fi
  9537. rm -f core conftest.err conftest.$ac_objext \
  9538. conftest$ac_exeext conftest.$ac_ext
  9539. LIBS=$ac_check_lib_save_LIBS
  9540. fi
  9541. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
  9542. $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
  9543. if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
  9544. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
  9545. else
  9546. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
  9547. $as_echo_n "checking for dld_link in -ldld... " >&6; }
  9548. if ${ac_cv_lib_dld_dld_link+:} false; then :
  9549. $as_echo_n "(cached) " >&6
  9550. else
  9551. ac_check_lib_save_LIBS=$LIBS
  9552. LIBS="-ldld $LIBS"
  9553. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9554. /* end confdefs.h. */
  9555. /* Override any GCC internal prototype to avoid an error.
  9556. Use char because int might match the return type of a GCC
  9557. builtin and then its argument prototype would still apply. */
  9558. #ifdef __cplusplus
  9559. extern "C"
  9560. #endif
  9561. char dld_link ();
  9562. int
  9563. main ()
  9564. {
  9565. return dld_link ();
  9566. ;
  9567. return 0;
  9568. }
  9569. _ACEOF
  9570. if ac_fn_c_try_link "$LINENO"; then :
  9571. ac_cv_lib_dld_dld_link=yes
  9572. else
  9573. ac_cv_lib_dld_dld_link=no
  9574. fi
  9575. rm -f core conftest.err conftest.$ac_objext \
  9576. conftest$ac_exeext conftest.$ac_ext
  9577. LIBS=$ac_check_lib_save_LIBS
  9578. fi
  9579. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
  9580. $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
  9581. if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
  9582. lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
  9583. fi
  9584. fi
  9585. fi
  9586. fi
  9587. fi
  9588. fi
  9589. ;;
  9590. esac
  9591. if test "x$lt_cv_dlopen" != xno; then
  9592. enable_dlopen=yes
  9593. else
  9594. enable_dlopen=no
  9595. fi
  9596. case $lt_cv_dlopen in
  9597. dlopen)
  9598. save_CPPFLAGS="$CPPFLAGS"
  9599. test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  9600. save_LDFLAGS="$LDFLAGS"
  9601. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  9602. save_LIBS="$LIBS"
  9603. LIBS="$lt_cv_dlopen_libs $LIBS"
  9604. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
  9605. $as_echo_n "checking whether a program can dlopen itself... " >&6; }
  9606. if ${lt_cv_dlopen_self+:} false; then :
  9607. $as_echo_n "(cached) " >&6
  9608. else
  9609. if test "$cross_compiling" = yes; then :
  9610. lt_cv_dlopen_self=cross
  9611. else
  9612. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  9613. lt_status=$lt_dlunknown
  9614. cat > conftest.$ac_ext <<_LT_EOF
  9615. #line $LINENO "configure"
  9616. #include "confdefs.h"
  9617. #if HAVE_DLFCN_H
  9618. #include <dlfcn.h>
  9619. #endif
  9620. #include <stdio.h>
  9621. #ifdef RTLD_GLOBAL
  9622. # define LT_DLGLOBAL RTLD_GLOBAL
  9623. #else
  9624. # ifdef DL_GLOBAL
  9625. # define LT_DLGLOBAL DL_GLOBAL
  9626. # else
  9627. # define LT_DLGLOBAL 0
  9628. # endif
  9629. #endif
  9630. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  9631. find out it does not work in some platform. */
  9632. #ifndef LT_DLLAZY_OR_NOW
  9633. # ifdef RTLD_LAZY
  9634. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  9635. # else
  9636. # ifdef DL_LAZY
  9637. # define LT_DLLAZY_OR_NOW DL_LAZY
  9638. # else
  9639. # ifdef RTLD_NOW
  9640. # define LT_DLLAZY_OR_NOW RTLD_NOW
  9641. # else
  9642. # ifdef DL_NOW
  9643. # define LT_DLLAZY_OR_NOW DL_NOW
  9644. # else
  9645. # define LT_DLLAZY_OR_NOW 0
  9646. # endif
  9647. # endif
  9648. # endif
  9649. # endif
  9650. #endif
  9651. /* When -fvisbility=hidden is used, assume the code has been annotated
  9652. correspondingly for the symbols needed. */
  9653. #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  9654. int fnord () __attribute__((visibility("default")));
  9655. #endif
  9656. int fnord () { return 42; }
  9657. int main ()
  9658. {
  9659. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  9660. int status = $lt_dlunknown;
  9661. if (self)
  9662. {
  9663. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  9664. else
  9665. {
  9666. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  9667. else puts (dlerror ());
  9668. }
  9669. /* dlclose (self); */
  9670. }
  9671. else
  9672. puts (dlerror ());
  9673. return status;
  9674. }
  9675. _LT_EOF
  9676. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  9677. (eval $ac_link) 2>&5
  9678. ac_status=$?
  9679. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9680. test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  9681. (./conftest; exit; ) >&5 2>/dev/null
  9682. lt_status=$?
  9683. case x$lt_status in
  9684. x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  9685. x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  9686. x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
  9687. esac
  9688. else :
  9689. # compilation failed
  9690. lt_cv_dlopen_self=no
  9691. fi
  9692. fi
  9693. rm -fr conftest*
  9694. fi
  9695. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
  9696. $as_echo "$lt_cv_dlopen_self" >&6; }
  9697. if test "x$lt_cv_dlopen_self" = xyes; then
  9698. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  9699. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
  9700. $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
  9701. if ${lt_cv_dlopen_self_static+:} false; then :
  9702. $as_echo_n "(cached) " >&6
  9703. else
  9704. if test "$cross_compiling" = yes; then :
  9705. lt_cv_dlopen_self_static=cross
  9706. else
  9707. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  9708. lt_status=$lt_dlunknown
  9709. cat > conftest.$ac_ext <<_LT_EOF
  9710. #line $LINENO "configure"
  9711. #include "confdefs.h"
  9712. #if HAVE_DLFCN_H
  9713. #include <dlfcn.h>
  9714. #endif
  9715. #include <stdio.h>
  9716. #ifdef RTLD_GLOBAL
  9717. # define LT_DLGLOBAL RTLD_GLOBAL
  9718. #else
  9719. # ifdef DL_GLOBAL
  9720. # define LT_DLGLOBAL DL_GLOBAL
  9721. # else
  9722. # define LT_DLGLOBAL 0
  9723. # endif
  9724. #endif
  9725. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  9726. find out it does not work in some platform. */
  9727. #ifndef LT_DLLAZY_OR_NOW
  9728. # ifdef RTLD_LAZY
  9729. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  9730. # else
  9731. # ifdef DL_LAZY
  9732. # define LT_DLLAZY_OR_NOW DL_LAZY
  9733. # else
  9734. # ifdef RTLD_NOW
  9735. # define LT_DLLAZY_OR_NOW RTLD_NOW
  9736. # else
  9737. # ifdef DL_NOW
  9738. # define LT_DLLAZY_OR_NOW DL_NOW
  9739. # else
  9740. # define LT_DLLAZY_OR_NOW 0
  9741. # endif
  9742. # endif
  9743. # endif
  9744. # endif
  9745. #endif
  9746. /* When -fvisbility=hidden is used, assume the code has been annotated
  9747. correspondingly for the symbols needed. */
  9748. #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  9749. int fnord () __attribute__((visibility("default")));
  9750. #endif
  9751. int fnord () { return 42; }
  9752. int main ()
  9753. {
  9754. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  9755. int status = $lt_dlunknown;
  9756. if (self)
  9757. {
  9758. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  9759. else
  9760. {
  9761. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  9762. else puts (dlerror ());
  9763. }
  9764. /* dlclose (self); */
  9765. }
  9766. else
  9767. puts (dlerror ());
  9768. return status;
  9769. }
  9770. _LT_EOF
  9771. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  9772. (eval $ac_link) 2>&5
  9773. ac_status=$?
  9774. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9775. test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  9776. (./conftest; exit; ) >&5 2>/dev/null
  9777. lt_status=$?
  9778. case x$lt_status in
  9779. x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  9780. x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  9781. x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
  9782. esac
  9783. else :
  9784. # compilation failed
  9785. lt_cv_dlopen_self_static=no
  9786. fi
  9787. fi
  9788. rm -fr conftest*
  9789. fi
  9790. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
  9791. $as_echo "$lt_cv_dlopen_self_static" >&6; }
  9792. fi
  9793. CPPFLAGS="$save_CPPFLAGS"
  9794. LDFLAGS="$save_LDFLAGS"
  9795. LIBS="$save_LIBS"
  9796. ;;
  9797. esac
  9798. case $lt_cv_dlopen_self in
  9799. yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  9800. *) enable_dlopen_self=unknown ;;
  9801. esac
  9802. case $lt_cv_dlopen_self_static in
  9803. yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  9804. *) enable_dlopen_self_static=unknown ;;
  9805. esac
  9806. fi
  9807. striplib=
  9808. old_striplib=
  9809. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
  9810. $as_echo_n "checking whether stripping libraries is possible... " >&6; }
  9811. if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
  9812. test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  9813. test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  9814. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  9815. $as_echo "yes" >&6; }
  9816. else
  9817. # FIXME - insert some real tests, host_os isn't really good enough
  9818. case $host_os in
  9819. darwin*)
  9820. if test -n "$STRIP" ; then
  9821. striplib="$STRIP -x"
  9822. old_striplib="$STRIP -S"
  9823. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  9824. $as_echo "yes" >&6; }
  9825. else
  9826. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9827. $as_echo "no" >&6; }
  9828. fi
  9829. ;;
  9830. *)
  9831. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9832. $as_echo "no" >&6; }
  9833. ;;
  9834. esac
  9835. fi
  9836. # Report which library types will actually be built
  9837. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
  9838. $as_echo_n "checking if libtool supports shared libraries... " >&6; }
  9839. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
  9840. $as_echo "$can_build_shared" >&6; }
  9841. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
  9842. $as_echo_n "checking whether to build shared libraries... " >&6; }
  9843. test "$can_build_shared" = "no" && enable_shared=no
  9844. # On AIX, shared libraries and static libraries use the same namespace, and
  9845. # are all built from PIC.
  9846. case $host_os in
  9847. aix3*)
  9848. test "$enable_shared" = yes && enable_static=no
  9849. if test -n "$RANLIB"; then
  9850. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  9851. postinstall_cmds='$RANLIB $lib'
  9852. fi
  9853. ;;
  9854. aix[4-9]*)
  9855. if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  9856. test "$enable_shared" = yes && enable_static=no
  9857. fi
  9858. ;;
  9859. esac
  9860. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
  9861. $as_echo "$enable_shared" >&6; }
  9862. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
  9863. $as_echo_n "checking whether to build static libraries... " >&6; }
  9864. # Make sure either enable_shared or enable_static is yes.
  9865. test "$enable_shared" = yes || enable_static=yes
  9866. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
  9867. $as_echo "$enable_static" >&6; }
  9868. fi
  9869. ac_ext=c
  9870. ac_cpp='$CPP $CPPFLAGS'
  9871. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  9872. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  9873. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  9874. CC="$lt_save_CC"
  9875. if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
  9876. ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
  9877. (test "X$CXX" != "Xg++"))) ; then
  9878. ac_ext=cpp
  9879. ac_cpp='$CXXCPP $CPPFLAGS'
  9880. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  9881. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  9882. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  9883. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
  9884. $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
  9885. if test -z "$CXXCPP"; then
  9886. if ${ac_cv_prog_CXXCPP+:} false; then :
  9887. $as_echo_n "(cached) " >&6
  9888. else
  9889. # Double quotes because CXXCPP needs to be expanded
  9890. for CXXCPP in "$CXX -E" "/lib/cpp"
  9891. do
  9892. ac_preproc_ok=false
  9893. for ac_cxx_preproc_warn_flag in '' yes
  9894. do
  9895. # Use a header file that comes with gcc, so configuring glibc
  9896. # with a fresh cross-compiler works.
  9897. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  9898. # <limits.h> exists even on freestanding compilers.
  9899. # On the NeXT, cc -E runs the code through the compiler's parser,
  9900. # not just through cpp. "Syntax error" is here to catch this case.
  9901. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9902. /* end confdefs.h. */
  9903. #ifdef __STDC__
  9904. # include <limits.h>
  9905. #else
  9906. # include <assert.h>
  9907. #endif
  9908. Syntax error
  9909. _ACEOF
  9910. if ac_fn_cxx_try_cpp "$LINENO"; then :
  9911. else
  9912. # Broken: fails on valid input.
  9913. continue
  9914. fi
  9915. rm -f conftest.err conftest.i conftest.$ac_ext
  9916. # OK, works on sane cases. Now check whether nonexistent headers
  9917. # can be detected and how.
  9918. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9919. /* end confdefs.h. */
  9920. #include <ac_nonexistent.h>
  9921. _ACEOF
  9922. if ac_fn_cxx_try_cpp "$LINENO"; then :
  9923. # Broken: success on invalid input.
  9924. continue
  9925. else
  9926. # Passes both tests.
  9927. ac_preproc_ok=:
  9928. break
  9929. fi
  9930. rm -f conftest.err conftest.i conftest.$ac_ext
  9931. done
  9932. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  9933. rm -f conftest.i conftest.err conftest.$ac_ext
  9934. if $ac_preproc_ok; then :
  9935. break
  9936. fi
  9937. done
  9938. ac_cv_prog_CXXCPP=$CXXCPP
  9939. fi
  9940. CXXCPP=$ac_cv_prog_CXXCPP
  9941. else
  9942. ac_cv_prog_CXXCPP=$CXXCPP
  9943. fi
  9944. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
  9945. $as_echo "$CXXCPP" >&6; }
  9946. ac_preproc_ok=false
  9947. for ac_cxx_preproc_warn_flag in '' yes
  9948. do
  9949. # Use a header file that comes with gcc, so configuring glibc
  9950. # with a fresh cross-compiler works.
  9951. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  9952. # <limits.h> exists even on freestanding compilers.
  9953. # On the NeXT, cc -E runs the code through the compiler's parser,
  9954. # not just through cpp. "Syntax error" is here to catch this case.
  9955. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9956. /* end confdefs.h. */
  9957. #ifdef __STDC__
  9958. # include <limits.h>
  9959. #else
  9960. # include <assert.h>
  9961. #endif
  9962. Syntax error
  9963. _ACEOF
  9964. if ac_fn_cxx_try_cpp "$LINENO"; then :
  9965. else
  9966. # Broken: fails on valid input.
  9967. continue
  9968. fi
  9969. rm -f conftest.err conftest.i conftest.$ac_ext
  9970. # OK, works on sane cases. Now check whether nonexistent headers
  9971. # can be detected and how.
  9972. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9973. /* end confdefs.h. */
  9974. #include <ac_nonexistent.h>
  9975. _ACEOF
  9976. if ac_fn_cxx_try_cpp "$LINENO"; then :
  9977. # Broken: success on invalid input.
  9978. continue
  9979. else
  9980. # Passes both tests.
  9981. ac_preproc_ok=:
  9982. break
  9983. fi
  9984. rm -f conftest.err conftest.i conftest.$ac_ext
  9985. done
  9986. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  9987. rm -f conftest.i conftest.err conftest.$ac_ext
  9988. if $ac_preproc_ok; then :
  9989. else
  9990. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  9991. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  9992. as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
  9993. See \`config.log' for more details" "$LINENO" 5; }
  9994. fi
  9995. ac_ext=c
  9996. ac_cpp='$CPP $CPPFLAGS'
  9997. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  9998. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  9999. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  10000. else
  10001. _lt_caught_CXX_error=yes
  10002. fi
  10003. ac_ext=cpp
  10004. ac_cpp='$CXXCPP $CPPFLAGS'
  10005. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10006. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10007. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  10008. archive_cmds_need_lc_CXX=no
  10009. allow_undefined_flag_CXX=
  10010. always_export_symbols_CXX=no
  10011. archive_expsym_cmds_CXX=
  10012. compiler_needs_object_CXX=no
  10013. export_dynamic_flag_spec_CXX=
  10014. hardcode_direct_CXX=no
  10015. hardcode_direct_absolute_CXX=no
  10016. hardcode_libdir_flag_spec_CXX=
  10017. hardcode_libdir_separator_CXX=
  10018. hardcode_minus_L_CXX=no
  10019. hardcode_shlibpath_var_CXX=unsupported
  10020. hardcode_automatic_CXX=no
  10021. inherit_rpath_CXX=no
  10022. module_cmds_CXX=
  10023. module_expsym_cmds_CXX=
  10024. link_all_deplibs_CXX=unknown
  10025. old_archive_cmds_CXX=$old_archive_cmds
  10026. reload_flag_CXX=$reload_flag
  10027. reload_cmds_CXX=$reload_cmds
  10028. no_undefined_flag_CXX=
  10029. whole_archive_flag_spec_CXX=
  10030. enable_shared_with_static_runtimes_CXX=no
  10031. # Source file extension for C++ test sources.
  10032. ac_ext=cpp
  10033. # Object file extension for compiled C++ test sources.
  10034. objext=o
  10035. objext_CXX=$objext
  10036. # No sense in running all these tests if we already determined that
  10037. # the CXX compiler isn't working. Some variables (like enable_shared)
  10038. # are currently assumed to apply to all compilers on this platform,
  10039. # and will be corrupted by setting them based on a non-working compiler.
  10040. if test "$_lt_caught_CXX_error" != yes; then
  10041. # Code to be used in simple compile tests
  10042. lt_simple_compile_test_code="int some_variable = 0;"
  10043. # Code to be used in simple link tests
  10044. lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
  10045. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  10046. # If no C compiler was specified, use CC.
  10047. LTCC=${LTCC-"$CC"}
  10048. # If no C compiler flags were specified, use CFLAGS.
  10049. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  10050. # Allow CC to be a program name with arguments.
  10051. compiler=$CC
  10052. # save warnings/boilerplate of simple test code
  10053. ac_outfile=conftest.$ac_objext
  10054. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  10055. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  10056. _lt_compiler_boilerplate=`cat conftest.err`
  10057. $RM conftest*
  10058. ac_outfile=conftest.$ac_objext
  10059. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  10060. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  10061. _lt_linker_boilerplate=`cat conftest.err`
  10062. $RM -r conftest*
  10063. # Allow CC to be a program name with arguments.
  10064. lt_save_CC=$CC
  10065. lt_save_CFLAGS=$CFLAGS
  10066. lt_save_LD=$LD
  10067. lt_save_GCC=$GCC
  10068. GCC=$GXX
  10069. lt_save_with_gnu_ld=$with_gnu_ld
  10070. lt_save_path_LD=$lt_cv_path_LD
  10071. if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
  10072. lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
  10073. else
  10074. $as_unset lt_cv_prog_gnu_ld
  10075. fi
  10076. if test -n "${lt_cv_path_LDCXX+set}"; then
  10077. lt_cv_path_LD=$lt_cv_path_LDCXX
  10078. else
  10079. $as_unset lt_cv_path_LD
  10080. fi
  10081. test -z "${LDCXX+set}" || LD=$LDCXX
  10082. CC=${CXX-"c++"}
  10083. CFLAGS=$CXXFLAGS
  10084. compiler=$CC
  10085. compiler_CXX=$CC
  10086. for cc_temp in $compiler""; do
  10087. case $cc_temp in
  10088. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  10089. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  10090. \-*) ;;
  10091. *) break;;
  10092. esac
  10093. done
  10094. cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  10095. if test -n "$compiler"; then
  10096. # We don't want -fno-exception when compiling C++ code, so set the
  10097. # no_builtin_flag separately
  10098. if test "$GXX" = yes; then
  10099. lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
  10100. else
  10101. lt_prog_compiler_no_builtin_flag_CXX=
  10102. fi
  10103. if test "$GXX" = yes; then
  10104. # Set up default GNU C++ configuration
  10105. # Check whether --with-gnu-ld was given.
  10106. if test "${with_gnu_ld+set}" = set; then :
  10107. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  10108. else
  10109. with_gnu_ld=no
  10110. fi
  10111. ac_prog=ld
  10112. if test "$GCC" = yes; then
  10113. # Check if gcc -print-prog-name=ld gives a path.
  10114. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  10115. $as_echo_n "checking for ld used by $CC... " >&6; }
  10116. case $host in
  10117. *-*-mingw*)
  10118. # gcc leaves a trailing carriage return which upsets mingw
  10119. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  10120. *)
  10121. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  10122. esac
  10123. case $ac_prog in
  10124. # Accept absolute paths.
  10125. [\\/]* | ?:[\\/]*)
  10126. re_direlt='/[^/][^/]*/\.\./'
  10127. # Canonicalize the pathname of ld
  10128. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  10129. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  10130. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  10131. done
  10132. test -z "$LD" && LD="$ac_prog"
  10133. ;;
  10134. "")
  10135. # If it fails, then pretend we aren't using GCC.
  10136. ac_prog=ld
  10137. ;;
  10138. *)
  10139. # If it is relative, then search for the first ld in PATH.
  10140. with_gnu_ld=unknown
  10141. ;;
  10142. esac
  10143. elif test "$with_gnu_ld" = yes; then
  10144. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  10145. $as_echo_n "checking for GNU ld... " >&6; }
  10146. else
  10147. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  10148. $as_echo_n "checking for non-GNU ld... " >&6; }
  10149. fi
  10150. if ${lt_cv_path_LD+:} false; then :
  10151. $as_echo_n "(cached) " >&6
  10152. else
  10153. if test -z "$LD"; then
  10154. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  10155. for ac_dir in $PATH; do
  10156. IFS="$lt_save_ifs"
  10157. test -z "$ac_dir" && ac_dir=.
  10158. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  10159. lt_cv_path_LD="$ac_dir/$ac_prog"
  10160. # Check to see if the program is GNU ld. I'd rather use --version,
  10161. # but apparently some variants of GNU ld only accept -v.
  10162. # Break only if it was the GNU/non-GNU ld that we prefer.
  10163. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  10164. *GNU* | *'with BFD'*)
  10165. test "$with_gnu_ld" != no && break
  10166. ;;
  10167. *)
  10168. test "$with_gnu_ld" != yes && break
  10169. ;;
  10170. esac
  10171. fi
  10172. done
  10173. IFS="$lt_save_ifs"
  10174. else
  10175. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  10176. fi
  10177. fi
  10178. LD="$lt_cv_path_LD"
  10179. if test -n "$LD"; then
  10180. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  10181. $as_echo "$LD" >&6; }
  10182. else
  10183. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10184. $as_echo "no" >&6; }
  10185. fi
  10186. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  10187. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  10188. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  10189. if ${lt_cv_prog_gnu_ld+:} false; then :
  10190. $as_echo_n "(cached) " >&6
  10191. else
  10192. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  10193. case `$LD -v 2>&1 </dev/null` in
  10194. *GNU* | *'with BFD'*)
  10195. lt_cv_prog_gnu_ld=yes
  10196. ;;
  10197. *)
  10198. lt_cv_prog_gnu_ld=no
  10199. ;;
  10200. esac
  10201. fi
  10202. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  10203. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  10204. with_gnu_ld=$lt_cv_prog_gnu_ld
  10205. # Check if GNU C++ uses GNU ld as the underlying linker, since the
  10206. # archiving commands below assume that GNU ld is being used.
  10207. if test "$with_gnu_ld" = yes; then
  10208. archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  10209. archive_expsym_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  10210. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  10211. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  10212. # If archive_cmds runs LD, not CC, wlarc should be empty
  10213. # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
  10214. # investigate it a little bit more. (MM)
  10215. wlarc='${wl}'
  10216. # ancient GNU ld didn't support --whole-archive et. al.
  10217. if eval "`$CC -print-prog-name=ld` --help 2>&1" |
  10218. $GREP 'no-whole-archive' > /dev/null; then
  10219. whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  10220. else
  10221. whole_archive_flag_spec_CXX=
  10222. fi
  10223. else
  10224. with_gnu_ld=no
  10225. wlarc=
  10226. # A generic and very simple default shared library creation
  10227. # command for GNU C++ for the case where it uses the native
  10228. # linker, instead of GNU ld. If possible, this setting should
  10229. # overridden to take advantage of the native linker features on
  10230. # the platform it is being used on.
  10231. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  10232. fi
  10233. # Commands to make compiler produce verbose output that lists
  10234. # what "hidden" libraries, object files and flags are used when
  10235. # linking a shared library.
  10236. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  10237. else
  10238. GXX=no
  10239. with_gnu_ld=no
  10240. wlarc=
  10241. fi
  10242. # PORTME: fill in a description of your system's C++ link characteristics
  10243. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  10244. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  10245. ld_shlibs_CXX=yes
  10246. case $host_os in
  10247. aix3*)
  10248. # FIXME: insert proper C++ library support
  10249. ld_shlibs_CXX=no
  10250. ;;
  10251. aix[4-9]*)
  10252. if test "$host_cpu" = ia64; then
  10253. # On IA64, the linker does run time linking by default, so we don't
  10254. # have to do anything special.
  10255. aix_use_runtimelinking=no
  10256. exp_sym_flag='-Bexport'
  10257. no_entry_flag=""
  10258. else
  10259. aix_use_runtimelinking=no
  10260. # Test if we are trying to use run time linking or normal
  10261. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  10262. # need to do runtime linking.
  10263. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  10264. for ld_flag in $LDFLAGS; do
  10265. case $ld_flag in
  10266. *-brtl*)
  10267. aix_use_runtimelinking=yes
  10268. break
  10269. ;;
  10270. esac
  10271. done
  10272. ;;
  10273. esac
  10274. exp_sym_flag='-bexport'
  10275. no_entry_flag='-bnoentry'
  10276. fi
  10277. # When large executables or shared objects are built, AIX ld can
  10278. # have problems creating the table of contents. If linking a library
  10279. # or program results in "error TOC overflow" add -mminimal-toc to
  10280. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  10281. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  10282. archive_cmds_CXX=''
  10283. hardcode_direct_CXX=yes
  10284. hardcode_direct_absolute_CXX=yes
  10285. hardcode_libdir_separator_CXX=':'
  10286. link_all_deplibs_CXX=yes
  10287. file_list_spec_CXX='${wl}-f,'
  10288. if test "$GXX" = yes; then
  10289. case $host_os in aix4.[012]|aix4.[012].*)
  10290. # We only want to do this on AIX 4.2 and lower, the check
  10291. # below for broken collect2 doesn't work under 4.3+
  10292. collect2name=`${CC} -print-prog-name=collect2`
  10293. if test -f "$collect2name" &&
  10294. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  10295. then
  10296. # We have reworked collect2
  10297. :
  10298. else
  10299. # We have old collect2
  10300. hardcode_direct_CXX=unsupported
  10301. # It fails to find uninstalled libraries when the uninstalled
  10302. # path is not listed in the libpath. Setting hardcode_minus_L
  10303. # to unsupported forces relinking
  10304. hardcode_minus_L_CXX=yes
  10305. hardcode_libdir_flag_spec_CXX='-L$libdir'
  10306. hardcode_libdir_separator_CXX=
  10307. fi
  10308. esac
  10309. shared_flag='-shared'
  10310. if test "$aix_use_runtimelinking" = yes; then
  10311. shared_flag="$shared_flag "'${wl}-G'
  10312. fi
  10313. else
  10314. # not using gcc
  10315. if test "$host_cpu" = ia64; then
  10316. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  10317. # chokes on -Wl,-G. The following line is correct:
  10318. shared_flag='-G'
  10319. else
  10320. if test "$aix_use_runtimelinking" = yes; then
  10321. shared_flag='${wl}-G'
  10322. else
  10323. shared_flag='${wl}-bM:SRE'
  10324. fi
  10325. fi
  10326. fi
  10327. export_dynamic_flag_spec_CXX='${wl}-bexpall'
  10328. # It seems that -bexpall does not export symbols beginning with
  10329. # underscore (_), so it is better to generate a list of symbols to
  10330. # export.
  10331. always_export_symbols_CXX=yes
  10332. if test "$aix_use_runtimelinking" = yes; then
  10333. # Warning - without using the other runtime loading flags (-brtl),
  10334. # -berok will link without error, but may produce a broken library.
  10335. allow_undefined_flag_CXX='-berok'
  10336. # Determine the default libpath from the value encoded in an empty
  10337. # executable.
  10338. if test "${lt_cv_aix_libpath+set}" = set; then
  10339. aix_libpath=$lt_cv_aix_libpath
  10340. else
  10341. if ${lt_cv_aix_libpath__CXX+:} false; then :
  10342. $as_echo_n "(cached) " >&6
  10343. else
  10344. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10345. /* end confdefs.h. */
  10346. int
  10347. main ()
  10348. {
  10349. ;
  10350. return 0;
  10351. }
  10352. _ACEOF
  10353. if ac_fn_cxx_try_link "$LINENO"; then :
  10354. lt_aix_libpath_sed='
  10355. /Import File Strings/,/^$/ {
  10356. /^0/ {
  10357. s/^0 *\([^ ]*\) *$/\1/
  10358. p
  10359. }
  10360. }'
  10361. lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  10362. # Check for a 64-bit object if we didn't find anything.
  10363. if test -z "$lt_cv_aix_libpath__CXX"; then
  10364. lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  10365. fi
  10366. fi
  10367. rm -f core conftest.err conftest.$ac_objext \
  10368. conftest$ac_exeext conftest.$ac_ext
  10369. if test -z "$lt_cv_aix_libpath__CXX"; then
  10370. lt_cv_aix_libpath__CXX="/usr/lib:/lib"
  10371. fi
  10372. fi
  10373. aix_libpath=$lt_cv_aix_libpath__CXX
  10374. fi
  10375. hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
  10376. archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
  10377. else
  10378. if test "$host_cpu" = ia64; then
  10379. hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
  10380. allow_undefined_flag_CXX="-z nodefs"
  10381. archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
  10382. else
  10383. # Determine the default libpath from the value encoded in an
  10384. # empty executable.
  10385. if test "${lt_cv_aix_libpath+set}" = set; then
  10386. aix_libpath=$lt_cv_aix_libpath
  10387. else
  10388. if ${lt_cv_aix_libpath__CXX+:} false; then :
  10389. $as_echo_n "(cached) " >&6
  10390. else
  10391. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10392. /* end confdefs.h. */
  10393. int
  10394. main ()
  10395. {
  10396. ;
  10397. return 0;
  10398. }
  10399. _ACEOF
  10400. if ac_fn_cxx_try_link "$LINENO"; then :
  10401. lt_aix_libpath_sed='
  10402. /Import File Strings/,/^$/ {
  10403. /^0/ {
  10404. s/^0 *\([^ ]*\) *$/\1/
  10405. p
  10406. }
  10407. }'
  10408. lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  10409. # Check for a 64-bit object if we didn't find anything.
  10410. if test -z "$lt_cv_aix_libpath__CXX"; then
  10411. lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  10412. fi
  10413. fi
  10414. rm -f core conftest.err conftest.$ac_objext \
  10415. conftest$ac_exeext conftest.$ac_ext
  10416. if test -z "$lt_cv_aix_libpath__CXX"; then
  10417. lt_cv_aix_libpath__CXX="/usr/lib:/lib"
  10418. fi
  10419. fi
  10420. aix_libpath=$lt_cv_aix_libpath__CXX
  10421. fi
  10422. hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
  10423. # Warning - without using the other run time loading flags,
  10424. # -berok will link without error, but may produce a broken library.
  10425. no_undefined_flag_CXX=' ${wl}-bernotok'
  10426. allow_undefined_flag_CXX=' ${wl}-berok'
  10427. if test "$with_gnu_ld" = yes; then
  10428. # We only use this code for GNU lds that support --whole-archive.
  10429. whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  10430. else
  10431. # Exported symbols can be pulled into shared objects from archives
  10432. whole_archive_flag_spec_CXX='$convenience'
  10433. fi
  10434. archive_cmds_need_lc_CXX=yes
  10435. # This is similar to how AIX traditionally builds its shared
  10436. # libraries.
  10437. archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
  10438. fi
  10439. fi
  10440. ;;
  10441. beos*)
  10442. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  10443. allow_undefined_flag_CXX=unsupported
  10444. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  10445. # support --undefined. This deserves some investigation. FIXME
  10446. archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  10447. else
  10448. ld_shlibs_CXX=no
  10449. fi
  10450. ;;
  10451. chorus*)
  10452. case $cc_basename in
  10453. *)
  10454. # FIXME: insert proper C++ library support
  10455. ld_shlibs_CXX=no
  10456. ;;
  10457. esac
  10458. ;;
  10459. cygwin* | mingw* | pw32* | cegcc*)
  10460. case $GXX,$cc_basename in
  10461. ,cl* | no,cl*)
  10462. # Native MSVC
  10463. # hardcode_libdir_flag_spec is actually meaningless, as there is
  10464. # no search path for DLLs.
  10465. hardcode_libdir_flag_spec_CXX=' '
  10466. allow_undefined_flag_CXX=unsupported
  10467. always_export_symbols_CXX=yes
  10468. file_list_spec_CXX='@'
  10469. # Tell ltmain to make .lib files, not .a files.
  10470. libext=lib
  10471. # Tell ltmain to make .dll files, not .so files.
  10472. shrext_cmds=".dll"
  10473. # FIXME: Setting linknames here is a bad hack.
  10474. archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
  10475. archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  10476. $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
  10477. else
  10478. $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
  10479. fi~
  10480. $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
  10481. linknames='
  10482. # The linker will not automatically build a static lib if we build a DLL.
  10483. # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
  10484. enable_shared_with_static_runtimes_CXX=yes
  10485. # Don't use ranlib
  10486. old_postinstall_cmds_CXX='chmod 644 $oldlib'
  10487. postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
  10488. lt_tool_outputfile="@TOOL_OUTPUT@"~
  10489. case $lt_outputfile in
  10490. *.exe|*.EXE) ;;
  10491. *)
  10492. lt_outputfile="$lt_outputfile.exe"
  10493. lt_tool_outputfile="$lt_tool_outputfile.exe"
  10494. ;;
  10495. esac~
  10496. func_to_tool_file "$lt_outputfile"~
  10497. if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
  10498. $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
  10499. $RM "$lt_outputfile.manifest";
  10500. fi'
  10501. ;;
  10502. *)
  10503. # g++
  10504. # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
  10505. # as there is no search path for DLLs.
  10506. hardcode_libdir_flag_spec_CXX='-L$libdir'
  10507. export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
  10508. allow_undefined_flag_CXX=unsupported
  10509. always_export_symbols_CXX=no
  10510. enable_shared_with_static_runtimes_CXX=yes
  10511. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  10512. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  10513. # If the export-symbols file already is a .def file (1st line
  10514. # is EXPORTS), use it as is; otherwise, prepend...
  10515. archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  10516. cp $export_symbols $output_objdir/$soname.def;
  10517. else
  10518. echo EXPORTS > $output_objdir/$soname.def;
  10519. cat $export_symbols >> $output_objdir/$soname.def;
  10520. fi~
  10521. $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  10522. else
  10523. ld_shlibs_CXX=no
  10524. fi
  10525. ;;
  10526. esac
  10527. ;;
  10528. darwin* | rhapsody*)
  10529. archive_cmds_need_lc_CXX=no
  10530. hardcode_direct_CXX=no
  10531. hardcode_automatic_CXX=yes
  10532. hardcode_shlibpath_var_CXX=unsupported
  10533. if test "$lt_cv_ld_force_load" = "yes"; then
  10534. whole_archive_flag_spec_CXX='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
  10535. else
  10536. whole_archive_flag_spec_CXX=''
  10537. fi
  10538. link_all_deplibs_CXX=yes
  10539. allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
  10540. case $cc_basename in
  10541. ifort*) _lt_dar_can_shared=yes ;;
  10542. *) _lt_dar_can_shared=$GCC ;;
  10543. esac
  10544. if test "$_lt_dar_can_shared" = "yes"; then
  10545. output_verbose_link_cmd=func_echo_all
  10546. archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
  10547. module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  10548. archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
  10549. module_expsym_cmds_CXX="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
  10550. if test "$lt_cv_apple_cc_single_mod" != "yes"; then
  10551. archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}"
  10552. archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}"
  10553. fi
  10554. else
  10555. ld_shlibs_CXX=no
  10556. fi
  10557. ;;
  10558. dgux*)
  10559. case $cc_basename in
  10560. ec++*)
  10561. # FIXME: insert proper C++ library support
  10562. ld_shlibs_CXX=no
  10563. ;;
  10564. ghcx*)
  10565. # Green Hills C++ Compiler
  10566. # FIXME: insert proper C++ library support
  10567. ld_shlibs_CXX=no
  10568. ;;
  10569. *)
  10570. # FIXME: insert proper C++ library support
  10571. ld_shlibs_CXX=no
  10572. ;;
  10573. esac
  10574. ;;
  10575. freebsd2.*)
  10576. # C++ shared libraries reported to be fairly broken before
  10577. # switch to ELF
  10578. ld_shlibs_CXX=no
  10579. ;;
  10580. freebsd-elf*)
  10581. archive_cmds_need_lc_CXX=no
  10582. ;;
  10583. freebsd* | dragonfly*)
  10584. # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
  10585. # conventions
  10586. ld_shlibs_CXX=yes
  10587. ;;
  10588. gnu*)
  10589. ;;
  10590. haiku*)
  10591. archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  10592. link_all_deplibs_CXX=yes
  10593. ;;
  10594. hpux9*)
  10595. hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
  10596. hardcode_libdir_separator_CXX=:
  10597. export_dynamic_flag_spec_CXX='${wl}-E'
  10598. hardcode_direct_CXX=yes
  10599. hardcode_minus_L_CXX=yes # Not in the search PATH,
  10600. # but as the default
  10601. # location of the library.
  10602. case $cc_basename in
  10603. CC*)
  10604. # FIXME: insert proper C++ library support
  10605. ld_shlibs_CXX=no
  10606. ;;
  10607. aCC*)
  10608. archive_cmds_CXX='$RM $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  10609. # Commands to make compiler produce verbose output that lists
  10610. # what "hidden" libraries, object files and flags are used when
  10611. # linking a shared library.
  10612. #
  10613. # There doesn't appear to be a way to prevent this compiler from
  10614. # explicitly linking system object files so we need to strip them
  10615. # from the output so that they don't get included in the library
  10616. # dependencies.
  10617. output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
  10618. ;;
  10619. *)
  10620. if test "$GXX" = yes; then
  10621. archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  10622. else
  10623. # FIXME: insert proper C++ library support
  10624. ld_shlibs_CXX=no
  10625. fi
  10626. ;;
  10627. esac
  10628. ;;
  10629. hpux10*|hpux11*)
  10630. if test $with_gnu_ld = no; then
  10631. hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
  10632. hardcode_libdir_separator_CXX=:
  10633. case $host_cpu in
  10634. hppa*64*|ia64*)
  10635. ;;
  10636. *)
  10637. export_dynamic_flag_spec_CXX='${wl}-E'
  10638. ;;
  10639. esac
  10640. fi
  10641. case $host_cpu in
  10642. hppa*64*|ia64*)
  10643. hardcode_direct_CXX=no
  10644. hardcode_shlibpath_var_CXX=no
  10645. ;;
  10646. *)
  10647. hardcode_direct_CXX=yes
  10648. hardcode_direct_absolute_CXX=yes
  10649. hardcode_minus_L_CXX=yes # Not in the search PATH,
  10650. # but as the default
  10651. # location of the library.
  10652. ;;
  10653. esac
  10654. case $cc_basename in
  10655. CC*)
  10656. # FIXME: insert proper C++ library support
  10657. ld_shlibs_CXX=no
  10658. ;;
  10659. aCC*)
  10660. case $host_cpu in
  10661. hppa*64*)
  10662. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  10663. ;;
  10664. ia64*)
  10665. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  10666. ;;
  10667. *)
  10668. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  10669. ;;
  10670. esac
  10671. # Commands to make compiler produce verbose output that lists
  10672. # what "hidden" libraries, object files and flags are used when
  10673. # linking a shared library.
  10674. #
  10675. # There doesn't appear to be a way to prevent this compiler from
  10676. # explicitly linking system object files so we need to strip them
  10677. # from the output so that they don't get included in the library
  10678. # dependencies.
  10679. output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
  10680. ;;
  10681. *)
  10682. if test "$GXX" = yes; then
  10683. if test $with_gnu_ld = no; then
  10684. case $host_cpu in
  10685. hppa*64*)
  10686. archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  10687. ;;
  10688. ia64*)
  10689. archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  10690. ;;
  10691. *)
  10692. archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  10693. ;;
  10694. esac
  10695. fi
  10696. else
  10697. # FIXME: insert proper C++ library support
  10698. ld_shlibs_CXX=no
  10699. fi
  10700. ;;
  10701. esac
  10702. ;;
  10703. interix[3-9]*)
  10704. hardcode_direct_CXX=no
  10705. hardcode_shlibpath_var_CXX=no
  10706. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  10707. export_dynamic_flag_spec_CXX='${wl}-E'
  10708. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  10709. # Instead, shared libraries are loaded at an image base (0x10000000 by
  10710. # default) and relocated if they conflict, which is a slow very memory
  10711. # consuming and fragmenting process. To avoid this, we pick a random,
  10712. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  10713. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  10714. archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  10715. archive_expsym_cmds_CXX='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  10716. ;;
  10717. irix5* | irix6*)
  10718. case $cc_basename in
  10719. CC*)
  10720. # SGI C++
  10721. archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
  10722. # Archives containing C++ object files must be created using
  10723. # "CC -ar", where "CC" is the IRIX C++ compiler. This is
  10724. # necessary to make sure instantiated templates are included
  10725. # in the archive.
  10726. old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
  10727. ;;
  10728. *)
  10729. if test "$GXX" = yes; then
  10730. if test "$with_gnu_ld" = no; then
  10731. archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  10732. else
  10733. archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` -o $lib'
  10734. fi
  10735. fi
  10736. link_all_deplibs_CXX=yes
  10737. ;;
  10738. esac
  10739. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  10740. hardcode_libdir_separator_CXX=:
  10741. inherit_rpath_CXX=yes
  10742. ;;
  10743. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  10744. case $cc_basename in
  10745. KCC*)
  10746. # Kuck and Associates, Inc. (KAI) C++ Compiler
  10747. # KCC will only create a shared library if the output file
  10748. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  10749. # to its proper name (with version) after linking.
  10750. archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
  10751. archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
  10752. # Commands to make compiler produce verbose output that lists
  10753. # what "hidden" libraries, object files and flags are used when
  10754. # linking a shared library.
  10755. #
  10756. # There doesn't appear to be a way to prevent this compiler from
  10757. # explicitly linking system object files so we need to strip them
  10758. # from the output so that they don't get included in the library
  10759. # dependencies.
  10760. output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
  10761. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  10762. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  10763. # Archives containing C++ object files must be created using
  10764. # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  10765. old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
  10766. ;;
  10767. icpc* | ecpc* )
  10768. # Intel C++
  10769. with_gnu_ld=yes
  10770. # version 8.0 and above of icpc choke on multiply defined symbols
  10771. # if we add $predep_objects and $postdep_objects, however 7.1 and
  10772. # earlier do not add the objects themselves.
  10773. case `$CC -V 2>&1` in
  10774. *"Version 7."*)
  10775. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  10776. archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  10777. ;;
  10778. *) # Version 8.0 or newer
  10779. tmp_idyn=
  10780. case $host_cpu in
  10781. ia64*) tmp_idyn=' -i_dynamic';;
  10782. esac
  10783. archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  10784. archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  10785. ;;
  10786. esac
  10787. archive_cmds_need_lc_CXX=no
  10788. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  10789. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  10790. whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  10791. ;;
  10792. pgCC* | pgcpp*)
  10793. # Portland Group C++ compiler
  10794. case `$CC -V` in
  10795. *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
  10796. prelink_cmds_CXX='tpldir=Template.dir~
  10797. rm -rf $tpldir~
  10798. $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
  10799. compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
  10800. old_archive_cmds_CXX='tpldir=Template.dir~
  10801. rm -rf $tpldir~
  10802. $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
  10803. $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
  10804. $RANLIB $oldlib'
  10805. archive_cmds_CXX='tpldir=Template.dir~
  10806. rm -rf $tpldir~
  10807. $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  10808. $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  10809. archive_expsym_cmds_CXX='tpldir=Template.dir~
  10810. rm -rf $tpldir~
  10811. $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  10812. $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
  10813. ;;
  10814. *) # Version 6 and above use weak symbols
  10815. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  10816. archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
  10817. ;;
  10818. esac
  10819. hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
  10820. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  10821. whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
  10822. ;;
  10823. cxx*)
  10824. # Compaq C++
  10825. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  10826. archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
  10827. runpath_var=LD_RUN_PATH
  10828. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  10829. hardcode_libdir_separator_CXX=:
  10830. # Commands to make compiler produce verbose output that lists
  10831. # what "hidden" libraries, object files and flags are used when
  10832. # linking a shared library.
  10833. #
  10834. # There doesn't appear to be a way to prevent this compiler from
  10835. # explicitly linking system object files so we need to strip them
  10836. # from the output so that they don't get included in the library
  10837. # dependencies.
  10838. output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "X$list" | $Xsed'
  10839. ;;
  10840. xl* | mpixl* | bgxl*)
  10841. # IBM XL 8.0 on PPC, with GNU ld
  10842. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  10843. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  10844. archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  10845. if test "x$supports_anon_versioning" = xyes; then
  10846. archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
  10847. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  10848. echo "local: *; };" >> $output_objdir/$libname.ver~
  10849. $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  10850. fi
  10851. ;;
  10852. *)
  10853. case `$CC -V 2>&1 | sed 5q` in
  10854. *Sun\ C*)
  10855. # Sun C++ 5.9
  10856. no_undefined_flag_CXX=' -zdefs'
  10857. archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  10858. archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
  10859. hardcode_libdir_flag_spec_CXX='-R$libdir'
  10860. whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
  10861. compiler_needs_object_CXX=yes
  10862. # Not sure whether something based on
  10863. # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
  10864. # would be better.
  10865. output_verbose_link_cmd='func_echo_all'
  10866. # Archives containing C++ object files must be created using
  10867. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  10868. # necessary to make sure instantiated templates are included
  10869. # in the archive.
  10870. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  10871. ;;
  10872. esac
  10873. ;;
  10874. esac
  10875. ;;
  10876. lynxos*)
  10877. # FIXME: insert proper C++ library support
  10878. ld_shlibs_CXX=no
  10879. ;;
  10880. m88k*)
  10881. # FIXME: insert proper C++ library support
  10882. ld_shlibs_CXX=no
  10883. ;;
  10884. mvs*)
  10885. case $cc_basename in
  10886. cxx*)
  10887. # FIXME: insert proper C++ library support
  10888. ld_shlibs_CXX=no
  10889. ;;
  10890. *)
  10891. # FIXME: insert proper C++ library support
  10892. ld_shlibs_CXX=no
  10893. ;;
  10894. esac
  10895. ;;
  10896. netbsd*)
  10897. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  10898. archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
  10899. wlarc=
  10900. hardcode_libdir_flag_spec_CXX='-R$libdir'
  10901. hardcode_direct_CXX=yes
  10902. hardcode_shlibpath_var_CXX=no
  10903. fi
  10904. # Workaround some broken pre-1.5 toolchains
  10905. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
  10906. ;;
  10907. *nto* | *qnx*)
  10908. ld_shlibs_CXX=yes
  10909. ;;
  10910. openbsd2*)
  10911. # C++ shared libraries are fairly broken
  10912. ld_shlibs_CXX=no
  10913. ;;
  10914. openbsd*)
  10915. if test -f /usr/libexec/ld.so; then
  10916. hardcode_direct_CXX=yes
  10917. hardcode_shlibpath_var_CXX=no
  10918. hardcode_direct_absolute_CXX=yes
  10919. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  10920. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  10921. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  10922. archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
  10923. export_dynamic_flag_spec_CXX='${wl}-E'
  10924. whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  10925. fi
  10926. output_verbose_link_cmd=func_echo_all
  10927. else
  10928. ld_shlibs_CXX=no
  10929. fi
  10930. ;;
  10931. osf3* | osf4* | osf5*)
  10932. case $cc_basename in
  10933. KCC*)
  10934. # Kuck and Associates, Inc. (KAI) C++ Compiler
  10935. # KCC will only create a shared library if the output file
  10936. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  10937. # to its proper name (with version) after linking.
  10938. archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
  10939. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  10940. hardcode_libdir_separator_CXX=:
  10941. # Archives containing C++ object files must be created using
  10942. # the KAI C++ compiler.
  10943. case $host in
  10944. osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
  10945. *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
  10946. esac
  10947. ;;
  10948. RCC*)
  10949. # Rational C++ 2.4.1
  10950. # FIXME: insert proper C++ library support
  10951. ld_shlibs_CXX=no
  10952. ;;
  10953. cxx*)
  10954. case $host in
  10955. osf3*)
  10956. allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  10957. archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && func_echo_all "${wl}-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
  10958. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  10959. ;;
  10960. *)
  10961. allow_undefined_flag_CXX=' -expect_unresolved \*'
  10962. archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
  10963. archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
  10964. echo "-hidden">> $lib.exp~
  10965. $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname ${wl}-input ${wl}$lib.exp `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~
  10966. $RM $lib.exp'
  10967. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  10968. ;;
  10969. esac
  10970. hardcode_libdir_separator_CXX=:
  10971. # Commands to make compiler produce verbose output that lists
  10972. # what "hidden" libraries, object files and flags are used when
  10973. # linking a shared library.
  10974. #
  10975. # There doesn't appear to be a way to prevent this compiler from
  10976. # explicitly linking system object files so we need to strip them
  10977. # from the output so that they don't get included in the library
  10978. # dependencies.
  10979. output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
  10980. ;;
  10981. *)
  10982. if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  10983. allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  10984. case $host in
  10985. osf3*)
  10986. archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  10987. ;;
  10988. *)
  10989. archive_cmds_CXX='$CC -shared $pic_flag -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  10990. ;;
  10991. esac
  10992. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  10993. hardcode_libdir_separator_CXX=:
  10994. # Commands to make compiler produce verbose output that lists
  10995. # what "hidden" libraries, object files and flags are used when
  10996. # linking a shared library.
  10997. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  10998. else
  10999. # FIXME: insert proper C++ library support
  11000. ld_shlibs_CXX=no
  11001. fi
  11002. ;;
  11003. esac
  11004. ;;
  11005. psos*)
  11006. # FIXME: insert proper C++ library support
  11007. ld_shlibs_CXX=no
  11008. ;;
  11009. sunos4*)
  11010. case $cc_basename in
  11011. CC*)
  11012. # Sun C++ 4.x
  11013. # FIXME: insert proper C++ library support
  11014. ld_shlibs_CXX=no
  11015. ;;
  11016. lcc*)
  11017. # Lucid
  11018. # FIXME: insert proper C++ library support
  11019. ld_shlibs_CXX=no
  11020. ;;
  11021. *)
  11022. # FIXME: insert proper C++ library support
  11023. ld_shlibs_CXX=no
  11024. ;;
  11025. esac
  11026. ;;
  11027. solaris*)
  11028. case $cc_basename in
  11029. CC* | sunCC*)
  11030. # Sun C++ 4.2, 5.x and Centerline C++
  11031. archive_cmds_need_lc_CXX=yes
  11032. no_undefined_flag_CXX=' -zdefs'
  11033. archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11034. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  11035. $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  11036. hardcode_libdir_flag_spec_CXX='-R$libdir'
  11037. hardcode_shlibpath_var_CXX=no
  11038. case $host_os in
  11039. solaris2.[0-5] | solaris2.[0-5].*) ;;
  11040. *)
  11041. # The compiler driver will combine and reorder linker options,
  11042. # but understands `-z linker_flag'.
  11043. # Supported since Solaris 2.6 (maybe 2.5.1?)
  11044. whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
  11045. ;;
  11046. esac
  11047. link_all_deplibs_CXX=yes
  11048. output_verbose_link_cmd='func_echo_all'
  11049. # Archives containing C++ object files must be created using
  11050. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  11051. # necessary to make sure instantiated templates are included
  11052. # in the archive.
  11053. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  11054. ;;
  11055. gcx*)
  11056. # Green Hills C++ Compiler
  11057. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  11058. # The C++ compiler must be used to create the archive.
  11059. old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
  11060. ;;
  11061. *)
  11062. # GNU C++ compiler with Solaris linker
  11063. if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  11064. no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
  11065. if $CC --version | $GREP -v '^2\.7' > /dev/null; then
  11066. archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  11067. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  11068. $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  11069. # Commands to make compiler produce verbose output that lists
  11070. # what "hidden" libraries, object files and flags are used when
  11071. # linking a shared library.
  11072. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  11073. else
  11074. # g++ 2.7 appears to require `-G' NOT `-shared' on this
  11075. # platform.
  11076. archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  11077. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  11078. $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  11079. # Commands to make compiler produce verbose output that lists
  11080. # what "hidden" libraries, object files and flags are used when
  11081. # linking a shared library.
  11082. output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  11083. fi
  11084. hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
  11085. case $host_os in
  11086. solaris2.[0-5] | solaris2.[0-5].*) ;;
  11087. *)
  11088. whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  11089. ;;
  11090. esac
  11091. fi
  11092. ;;
  11093. esac
  11094. ;;
  11095. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  11096. no_undefined_flag_CXX='${wl}-z,text'
  11097. archive_cmds_need_lc_CXX=no
  11098. hardcode_shlibpath_var_CXX=no
  11099. runpath_var='LD_RUN_PATH'
  11100. case $cc_basename in
  11101. CC*)
  11102. archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11103. archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11104. ;;
  11105. *)
  11106. archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11107. archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11108. ;;
  11109. esac
  11110. ;;
  11111. sysv5* | sco3.2v5* | sco5v6*)
  11112. # Note: We can NOT use -z defs as we might desire, because we do not
  11113. # link with -lc, and that would cause any symbols used from libc to
  11114. # always be unresolved, which means just about no library would
  11115. # ever link correctly. If we're not using GNU ld we use -z text
  11116. # though, which does catch some bad symbols but isn't as heavy-handed
  11117. # as -z defs.
  11118. no_undefined_flag_CXX='${wl}-z,text'
  11119. allow_undefined_flag_CXX='${wl}-z,nodefs'
  11120. archive_cmds_need_lc_CXX=no
  11121. hardcode_shlibpath_var_CXX=no
  11122. hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
  11123. hardcode_libdir_separator_CXX=':'
  11124. link_all_deplibs_CXX=yes
  11125. export_dynamic_flag_spec_CXX='${wl}-Bexport'
  11126. runpath_var='LD_RUN_PATH'
  11127. case $cc_basename in
  11128. CC*)
  11129. archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11130. archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11131. old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
  11132. '"$old_archive_cmds_CXX"
  11133. reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
  11134. '"$reload_cmds_CXX"
  11135. ;;
  11136. *)
  11137. archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11138. archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11139. ;;
  11140. esac
  11141. ;;
  11142. tandem*)
  11143. case $cc_basename in
  11144. NCC*)
  11145. # NonStop-UX NCC 3.20
  11146. # FIXME: insert proper C++ library support
  11147. ld_shlibs_CXX=no
  11148. ;;
  11149. *)
  11150. # FIXME: insert proper C++ library support
  11151. ld_shlibs_CXX=no
  11152. ;;
  11153. esac
  11154. ;;
  11155. vxworks*)
  11156. # FIXME: insert proper C++ library support
  11157. ld_shlibs_CXX=no
  11158. ;;
  11159. *)
  11160. # FIXME: insert proper C++ library support
  11161. ld_shlibs_CXX=no
  11162. ;;
  11163. esac
  11164. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
  11165. $as_echo "$ld_shlibs_CXX" >&6; }
  11166. test "$ld_shlibs_CXX" = no && can_build_shared=no
  11167. GCC_CXX="$GXX"
  11168. LD_CXX="$LD"
  11169. ## CAVEAT EMPTOR:
  11170. ## There is no encapsulation within the following macros, do not change
  11171. ## the running order or otherwise move them around unless you know exactly
  11172. ## what you are doing...
  11173. # Dependencies to place before and after the object being linked:
  11174. predep_objects_CXX=
  11175. postdep_objects_CXX=
  11176. predeps_CXX=
  11177. postdeps_CXX=
  11178. compiler_lib_search_path_CXX=
  11179. cat > conftest.$ac_ext <<_LT_EOF
  11180. class Foo
  11181. {
  11182. public:
  11183. Foo (void) { a = 0; }
  11184. private:
  11185. int a;
  11186. };
  11187. _LT_EOF
  11188. _lt_libdeps_save_CFLAGS=$CFLAGS
  11189. case "$CC $CFLAGS " in #(
  11190. *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
  11191. *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
  11192. *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
  11193. esac
  11194. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  11195. (eval $ac_compile) 2>&5
  11196. ac_status=$?
  11197. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11198. test $ac_status = 0; }; then
  11199. # Parse the compiler output and extract the necessary
  11200. # objects, libraries and library flags.
  11201. # Sentinel used to keep track of whether or not we are before
  11202. # the conftest object file.
  11203. pre_test_object_deps_done=no
  11204. for p in `eval "$output_verbose_link_cmd"`; do
  11205. case ${prev}${p} in
  11206. -L* | -R* | -l*)
  11207. # Some compilers place space between "-{L,R}" and the path.
  11208. # Remove the space.
  11209. if test $p = "-L" ||
  11210. test $p = "-R"; then
  11211. prev=$p
  11212. continue
  11213. fi
  11214. # Expand the sysroot to ease extracting the directories later.
  11215. if test -z "$prev"; then
  11216. case $p in
  11217. -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
  11218. -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
  11219. -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
  11220. esac
  11221. fi
  11222. case $p in
  11223. =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
  11224. esac
  11225. if test "$pre_test_object_deps_done" = no; then
  11226. case ${prev} in
  11227. -L | -R)
  11228. # Internal compiler library paths should come after those
  11229. # provided the user. The postdeps already come after the
  11230. # user supplied libs so there is no need to process them.
  11231. if test -z "$compiler_lib_search_path_CXX"; then
  11232. compiler_lib_search_path_CXX="${prev}${p}"
  11233. else
  11234. compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
  11235. fi
  11236. ;;
  11237. # The "-l" case would never come before the object being
  11238. # linked, so don't bother handling this case.
  11239. esac
  11240. else
  11241. if test -z "$postdeps_CXX"; then
  11242. postdeps_CXX="${prev}${p}"
  11243. else
  11244. postdeps_CXX="${postdeps_CXX} ${prev}${p}"
  11245. fi
  11246. fi
  11247. prev=
  11248. ;;
  11249. *.lto.$objext) ;; # Ignore GCC LTO objects
  11250. *.$objext)
  11251. # This assumes that the test object file only shows up
  11252. # once in the compiler output.
  11253. if test "$p" = "conftest.$objext"; then
  11254. pre_test_object_deps_done=yes
  11255. continue
  11256. fi
  11257. if test "$pre_test_object_deps_done" = no; then
  11258. if test -z "$predep_objects_CXX"; then
  11259. predep_objects_CXX="$p"
  11260. else
  11261. predep_objects_CXX="$predep_objects_CXX $p"
  11262. fi
  11263. else
  11264. if test -z "$postdep_objects_CXX"; then
  11265. postdep_objects_CXX="$p"
  11266. else
  11267. postdep_objects_CXX="$postdep_objects_CXX $p"
  11268. fi
  11269. fi
  11270. ;;
  11271. *) ;; # Ignore the rest.
  11272. esac
  11273. done
  11274. # Clean up.
  11275. rm -f a.out a.exe
  11276. else
  11277. echo "libtool.m4: error: problem compiling CXX test program"
  11278. fi
  11279. $RM -f confest.$objext
  11280. CFLAGS=$_lt_libdeps_save_CFLAGS
  11281. # PORTME: override above test on systems where it is broken
  11282. case $host_os in
  11283. interix[3-9]*)
  11284. # Interix 3.5 installs completely hosed .la files for C++, so rather than
  11285. # hack all around it, let's just trust "g++" to DTRT.
  11286. predep_objects_CXX=
  11287. postdep_objects_CXX=
  11288. postdeps_CXX=
  11289. ;;
  11290. linux*)
  11291. case `$CC -V 2>&1 | sed 5q` in
  11292. *Sun\ C*)
  11293. # Sun C++ 5.9
  11294. # The more standards-conforming stlport4 library is
  11295. # incompatible with the Cstd library. Avoid specifying
  11296. # it if it's in CXXFLAGS. Ignore libCrun as
  11297. # -library=stlport4 depends on it.
  11298. case " $CXX $CXXFLAGS " in
  11299. *" -library=stlport4 "*)
  11300. solaris_use_stlport4=yes
  11301. ;;
  11302. esac
  11303. if test "$solaris_use_stlport4" != yes; then
  11304. postdeps_CXX='-library=Cstd -library=Crun'
  11305. fi
  11306. ;;
  11307. esac
  11308. ;;
  11309. solaris*)
  11310. case $cc_basename in
  11311. CC* | sunCC*)
  11312. # The more standards-conforming stlport4 library is
  11313. # incompatible with the Cstd library. Avoid specifying
  11314. # it if it's in CXXFLAGS. Ignore libCrun as
  11315. # -library=stlport4 depends on it.
  11316. case " $CXX $CXXFLAGS " in
  11317. *" -library=stlport4 "*)
  11318. solaris_use_stlport4=yes
  11319. ;;
  11320. esac
  11321. # Adding this requires a known-good setup of shared libraries for
  11322. # Sun compiler versions before 5.6, else PIC objects from an old
  11323. # archive will be linked into the output, leading to subtle bugs.
  11324. if test "$solaris_use_stlport4" != yes; then
  11325. postdeps_CXX='-library=Cstd -library=Crun'
  11326. fi
  11327. ;;
  11328. esac
  11329. ;;
  11330. esac
  11331. case " $postdeps_CXX " in
  11332. *" -lc "*) archive_cmds_need_lc_CXX=no ;;
  11333. esac
  11334. compiler_lib_search_dirs_CXX=
  11335. if test -n "${compiler_lib_search_path_CXX}"; then
  11336. compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
  11337. fi
  11338. lt_prog_compiler_wl_CXX=
  11339. lt_prog_compiler_pic_CXX=
  11340. lt_prog_compiler_static_CXX=
  11341. # C++ specific cases for pic, static, wl, etc.
  11342. if test "$GXX" = yes; then
  11343. lt_prog_compiler_wl_CXX='-Wl,'
  11344. lt_prog_compiler_static_CXX='-static'
  11345. case $host_os in
  11346. aix*)
  11347. # All AIX code is PIC.
  11348. if test "$host_cpu" = ia64; then
  11349. # AIX 5 now supports IA64 processor
  11350. lt_prog_compiler_static_CXX='-Bstatic'
  11351. fi
  11352. ;;
  11353. amigaos*)
  11354. case $host_cpu in
  11355. powerpc)
  11356. # see comment about AmigaOS4 .so support
  11357. lt_prog_compiler_pic_CXX='-fPIC'
  11358. ;;
  11359. m68k)
  11360. # FIXME: we need at least 68020 code to build shared libraries, but
  11361. # adding the `-m68020' flag to GCC prevents building anything better,
  11362. # like `-m68040'.
  11363. lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
  11364. ;;
  11365. esac
  11366. ;;
  11367. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  11368. # PIC is the default for these OSes.
  11369. ;;
  11370. mingw* | cygwin* | os2* | pw32* | cegcc*)
  11371. # This hack is so that the source file can tell whether it is being
  11372. # built for inclusion in a dll (and should export symbols for example).
  11373. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  11374. # (--disable-auto-import) libraries
  11375. lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
  11376. ;;
  11377. darwin* | rhapsody*)
  11378. # PIC is the default on this platform
  11379. # Common symbols not allowed in MH_DYLIB files
  11380. lt_prog_compiler_pic_CXX='-fno-common'
  11381. ;;
  11382. *djgpp*)
  11383. # DJGPP does not support shared libraries at all
  11384. lt_prog_compiler_pic_CXX=
  11385. ;;
  11386. haiku*)
  11387. # PIC is the default for Haiku.
  11388. # The "-static" flag exists, but is broken.
  11389. lt_prog_compiler_static_CXX=
  11390. ;;
  11391. interix[3-9]*)
  11392. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  11393. # Instead, we relocate shared libraries at runtime.
  11394. ;;
  11395. sysv4*MP*)
  11396. if test -d /usr/nec; then
  11397. lt_prog_compiler_pic_CXX=-Kconform_pic
  11398. fi
  11399. ;;
  11400. hpux*)
  11401. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  11402. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  11403. # sets the default TLS model and affects inlining.
  11404. case $host_cpu in
  11405. hppa*64*)
  11406. ;;
  11407. *)
  11408. lt_prog_compiler_pic_CXX='-fPIC'
  11409. ;;
  11410. esac
  11411. ;;
  11412. *qnx* | *nto*)
  11413. # QNX uses GNU C++, but need to define -shared option too, otherwise
  11414. # it will coredump.
  11415. lt_prog_compiler_pic_CXX='-fPIC -shared'
  11416. ;;
  11417. *)
  11418. lt_prog_compiler_pic_CXX='-fPIC'
  11419. ;;
  11420. esac
  11421. else
  11422. case $host_os in
  11423. aix[4-9]*)
  11424. # All AIX code is PIC.
  11425. if test "$host_cpu" = ia64; then
  11426. # AIX 5 now supports IA64 processor
  11427. lt_prog_compiler_static_CXX='-Bstatic'
  11428. else
  11429. lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
  11430. fi
  11431. ;;
  11432. chorus*)
  11433. case $cc_basename in
  11434. cxch68*)
  11435. # Green Hills C++ Compiler
  11436. # _LT_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
  11437. ;;
  11438. esac
  11439. ;;
  11440. mingw* | cygwin* | os2* | pw32* | cegcc*)
  11441. # This hack is so that the source file can tell whether it is being
  11442. # built for inclusion in a dll (and should export symbols for example).
  11443. lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
  11444. ;;
  11445. dgux*)
  11446. case $cc_basename in
  11447. ec++*)
  11448. lt_prog_compiler_pic_CXX='-KPIC'
  11449. ;;
  11450. ghcx*)
  11451. # Green Hills C++ Compiler
  11452. lt_prog_compiler_pic_CXX='-pic'
  11453. ;;
  11454. *)
  11455. ;;
  11456. esac
  11457. ;;
  11458. freebsd* | dragonfly*)
  11459. # FreeBSD uses GNU C++
  11460. ;;
  11461. hpux9* | hpux10* | hpux11*)
  11462. case $cc_basename in
  11463. CC*)
  11464. lt_prog_compiler_wl_CXX='-Wl,'
  11465. lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
  11466. if test "$host_cpu" != ia64; then
  11467. lt_prog_compiler_pic_CXX='+Z'
  11468. fi
  11469. ;;
  11470. aCC*)
  11471. lt_prog_compiler_wl_CXX='-Wl,'
  11472. lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
  11473. case $host_cpu in
  11474. hppa*64*|ia64*)
  11475. # +Z the default
  11476. ;;
  11477. *)
  11478. lt_prog_compiler_pic_CXX='+Z'
  11479. ;;
  11480. esac
  11481. ;;
  11482. *)
  11483. ;;
  11484. esac
  11485. ;;
  11486. interix*)
  11487. # This is c89, which is MS Visual C++ (no shared libs)
  11488. # Anyone wants to do a port?
  11489. ;;
  11490. irix5* | irix6* | nonstopux*)
  11491. case $cc_basename in
  11492. CC*)
  11493. lt_prog_compiler_wl_CXX='-Wl,'
  11494. lt_prog_compiler_static_CXX='-non_shared'
  11495. # CC pic flag -KPIC is the default.
  11496. ;;
  11497. *)
  11498. ;;
  11499. esac
  11500. ;;
  11501. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  11502. case $cc_basename in
  11503. KCC*)
  11504. # KAI C++ Compiler
  11505. lt_prog_compiler_wl_CXX='--backend -Wl,'
  11506. lt_prog_compiler_pic_CXX='-fPIC'
  11507. ;;
  11508. ecpc* )
  11509. # old Intel C++ for x86_64 which still supported -KPIC.
  11510. lt_prog_compiler_wl_CXX='-Wl,'
  11511. lt_prog_compiler_pic_CXX='-KPIC'
  11512. lt_prog_compiler_static_CXX='-static'
  11513. ;;
  11514. icpc* )
  11515. # Intel C++, used to be incompatible with GCC.
  11516. # ICC 10 doesn't accept -KPIC any more.
  11517. lt_prog_compiler_wl_CXX='-Wl,'
  11518. lt_prog_compiler_pic_CXX='-fPIC'
  11519. lt_prog_compiler_static_CXX='-static'
  11520. ;;
  11521. pgCC* | pgcpp*)
  11522. # Portland Group C++ compiler
  11523. lt_prog_compiler_wl_CXX='-Wl,'
  11524. lt_prog_compiler_pic_CXX='-fpic'
  11525. lt_prog_compiler_static_CXX='-Bstatic'
  11526. ;;
  11527. cxx*)
  11528. # Compaq C++
  11529. # Make sure the PIC flag is empty. It appears that all Alpha
  11530. # Linux and Compaq Tru64 Unix objects are PIC.
  11531. lt_prog_compiler_pic_CXX=
  11532. lt_prog_compiler_static_CXX='-non_shared'
  11533. ;;
  11534. xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
  11535. # IBM XL 8.0, 9.0 on PPC and BlueGene
  11536. lt_prog_compiler_wl_CXX='-Wl,'
  11537. lt_prog_compiler_pic_CXX='-qpic'
  11538. lt_prog_compiler_static_CXX='-qstaticlink'
  11539. ;;
  11540. *)
  11541. case `$CC -V 2>&1 | sed 5q` in
  11542. *Sun\ C*)
  11543. # Sun C++ 5.9
  11544. lt_prog_compiler_pic_CXX='-KPIC'
  11545. lt_prog_compiler_static_CXX='-Bstatic'
  11546. lt_prog_compiler_wl_CXX='-Qoption ld '
  11547. ;;
  11548. esac
  11549. ;;
  11550. esac
  11551. ;;
  11552. lynxos*)
  11553. ;;
  11554. m88k*)
  11555. ;;
  11556. mvs*)
  11557. case $cc_basename in
  11558. cxx*)
  11559. lt_prog_compiler_pic_CXX='-W c,exportall'
  11560. ;;
  11561. *)
  11562. ;;
  11563. esac
  11564. ;;
  11565. netbsd*)
  11566. ;;
  11567. *qnx* | *nto*)
  11568. # QNX uses GNU C++, but need to define -shared option too, otherwise
  11569. # it will coredump.
  11570. lt_prog_compiler_pic_CXX='-fPIC -shared'
  11571. ;;
  11572. osf3* | osf4* | osf5*)
  11573. case $cc_basename in
  11574. KCC*)
  11575. lt_prog_compiler_wl_CXX='--backend -Wl,'
  11576. ;;
  11577. RCC*)
  11578. # Rational C++ 2.4.1
  11579. lt_prog_compiler_pic_CXX='-pic'
  11580. ;;
  11581. cxx*)
  11582. # Digital/Compaq C++
  11583. lt_prog_compiler_wl_CXX='-Wl,'
  11584. # Make sure the PIC flag is empty. It appears that all Alpha
  11585. # Linux and Compaq Tru64 Unix objects are PIC.
  11586. lt_prog_compiler_pic_CXX=
  11587. lt_prog_compiler_static_CXX='-non_shared'
  11588. ;;
  11589. *)
  11590. ;;
  11591. esac
  11592. ;;
  11593. psos*)
  11594. ;;
  11595. solaris*)
  11596. case $cc_basename in
  11597. CC* | sunCC*)
  11598. # Sun C++ 4.2, 5.x and Centerline C++
  11599. lt_prog_compiler_pic_CXX='-KPIC'
  11600. lt_prog_compiler_static_CXX='-Bstatic'
  11601. lt_prog_compiler_wl_CXX='-Qoption ld '
  11602. ;;
  11603. gcx*)
  11604. # Green Hills C++ Compiler
  11605. lt_prog_compiler_pic_CXX='-PIC'
  11606. ;;
  11607. *)
  11608. ;;
  11609. esac
  11610. ;;
  11611. sunos4*)
  11612. case $cc_basename in
  11613. CC*)
  11614. # Sun C++ 4.x
  11615. lt_prog_compiler_pic_CXX='-pic'
  11616. lt_prog_compiler_static_CXX='-Bstatic'
  11617. ;;
  11618. lcc*)
  11619. # Lucid
  11620. lt_prog_compiler_pic_CXX='-pic'
  11621. ;;
  11622. *)
  11623. ;;
  11624. esac
  11625. ;;
  11626. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  11627. case $cc_basename in
  11628. CC*)
  11629. lt_prog_compiler_wl_CXX='-Wl,'
  11630. lt_prog_compiler_pic_CXX='-KPIC'
  11631. lt_prog_compiler_static_CXX='-Bstatic'
  11632. ;;
  11633. esac
  11634. ;;
  11635. tandem*)
  11636. case $cc_basename in
  11637. NCC*)
  11638. # NonStop-UX NCC 3.20
  11639. lt_prog_compiler_pic_CXX='-KPIC'
  11640. ;;
  11641. *)
  11642. ;;
  11643. esac
  11644. ;;
  11645. vxworks*)
  11646. ;;
  11647. *)
  11648. lt_prog_compiler_can_build_shared_CXX=no
  11649. ;;
  11650. esac
  11651. fi
  11652. case $host_os in
  11653. # For platforms which do not support PIC, -DPIC is meaningless:
  11654. *djgpp*)
  11655. lt_prog_compiler_pic_CXX=
  11656. ;;
  11657. *)
  11658. lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
  11659. ;;
  11660. esac
  11661. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  11662. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  11663. if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
  11664. $as_echo_n "(cached) " >&6
  11665. else
  11666. lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
  11667. fi
  11668. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
  11669. $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
  11670. lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
  11671. #
  11672. # Check to make sure the PIC flag actually works.
  11673. #
  11674. if test -n "$lt_prog_compiler_pic_CXX"; then
  11675. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
  11676. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
  11677. if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
  11678. $as_echo_n "(cached) " >&6
  11679. else
  11680. lt_cv_prog_compiler_pic_works_CXX=no
  11681. ac_outfile=conftest.$ac_objext
  11682. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  11683. lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
  11684. # Insert the option either (1) after the last *FLAGS variable, or
  11685. # (2) before a word containing "conftest.", or (3) at the end.
  11686. # Note that $ac_compile itself does not contain backslashes and begins
  11687. # with a dollar sign (not a hyphen), so the echo should work correctly.
  11688. # The option is referenced via a variable to avoid confusing sed.
  11689. lt_compile=`echo "$ac_compile" | $SED \
  11690. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  11691. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  11692. -e 's:$: $lt_compiler_flag:'`
  11693. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  11694. (eval "$lt_compile" 2>conftest.err)
  11695. ac_status=$?
  11696. cat conftest.err >&5
  11697. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11698. if (exit $ac_status) && test -s "$ac_outfile"; then
  11699. # The compiler can only warn and ignore the option if not recognized
  11700. # So say no if there are warnings other than the usual output.
  11701. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  11702. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  11703. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  11704. lt_cv_prog_compiler_pic_works_CXX=yes
  11705. fi
  11706. fi
  11707. $RM conftest*
  11708. fi
  11709. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
  11710. $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
  11711. if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
  11712. case $lt_prog_compiler_pic_CXX in
  11713. "" | " "*) ;;
  11714. *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
  11715. esac
  11716. else
  11717. lt_prog_compiler_pic_CXX=
  11718. lt_prog_compiler_can_build_shared_CXX=no
  11719. fi
  11720. fi
  11721. #
  11722. # Check to make sure the static flag actually works.
  11723. #
  11724. wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
  11725. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  11726. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  11727. if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
  11728. $as_echo_n "(cached) " >&6
  11729. else
  11730. lt_cv_prog_compiler_static_works_CXX=no
  11731. save_LDFLAGS="$LDFLAGS"
  11732. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  11733. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  11734. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  11735. # The linker can only warn and ignore the option if not recognized
  11736. # So say no if there are warnings
  11737. if test -s conftest.err; then
  11738. # Append any errors to the config.log.
  11739. cat conftest.err 1>&5
  11740. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  11741. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  11742. if diff conftest.exp conftest.er2 >/dev/null; then
  11743. lt_cv_prog_compiler_static_works_CXX=yes
  11744. fi
  11745. else
  11746. lt_cv_prog_compiler_static_works_CXX=yes
  11747. fi
  11748. fi
  11749. $RM -r conftest*
  11750. LDFLAGS="$save_LDFLAGS"
  11751. fi
  11752. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
  11753. $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
  11754. if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
  11755. :
  11756. else
  11757. lt_prog_compiler_static_CXX=
  11758. fi
  11759. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  11760. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  11761. if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
  11762. $as_echo_n "(cached) " >&6
  11763. else
  11764. lt_cv_prog_compiler_c_o_CXX=no
  11765. $RM -r conftest 2>/dev/null
  11766. mkdir conftest
  11767. cd conftest
  11768. mkdir out
  11769. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  11770. lt_compiler_flag="-o out/conftest2.$ac_objext"
  11771. # Insert the option either (1) after the last *FLAGS variable, or
  11772. # (2) before a word containing "conftest.", or (3) at the end.
  11773. # Note that $ac_compile itself does not contain backslashes and begins
  11774. # with a dollar sign (not a hyphen), so the echo should work correctly.
  11775. lt_compile=`echo "$ac_compile" | $SED \
  11776. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  11777. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  11778. -e 's:$: $lt_compiler_flag:'`
  11779. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  11780. (eval "$lt_compile" 2>out/conftest.err)
  11781. ac_status=$?
  11782. cat out/conftest.err >&5
  11783. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11784. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  11785. then
  11786. # The compiler can only warn and ignore the option if not recognized
  11787. # So say no if there are warnings
  11788. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  11789. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  11790. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  11791. lt_cv_prog_compiler_c_o_CXX=yes
  11792. fi
  11793. fi
  11794. chmod u+w . 2>&5
  11795. $RM conftest*
  11796. # SGI C++ compiler will create directory out/ii_files/ for
  11797. # template instantiation
  11798. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  11799. $RM out/* && rmdir out
  11800. cd ..
  11801. $RM -r conftest
  11802. $RM conftest*
  11803. fi
  11804. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  11805. $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
  11806. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  11807. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  11808. if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
  11809. $as_echo_n "(cached) " >&6
  11810. else
  11811. lt_cv_prog_compiler_c_o_CXX=no
  11812. $RM -r conftest 2>/dev/null
  11813. mkdir conftest
  11814. cd conftest
  11815. mkdir out
  11816. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  11817. lt_compiler_flag="-o out/conftest2.$ac_objext"
  11818. # Insert the option either (1) after the last *FLAGS variable, or
  11819. # (2) before a word containing "conftest.", or (3) at the end.
  11820. # Note that $ac_compile itself does not contain backslashes and begins
  11821. # with a dollar sign (not a hyphen), so the echo should work correctly.
  11822. lt_compile=`echo "$ac_compile" | $SED \
  11823. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  11824. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  11825. -e 's:$: $lt_compiler_flag:'`
  11826. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  11827. (eval "$lt_compile" 2>out/conftest.err)
  11828. ac_status=$?
  11829. cat out/conftest.err >&5
  11830. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11831. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  11832. then
  11833. # The compiler can only warn and ignore the option if not recognized
  11834. # So say no if there are warnings
  11835. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  11836. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  11837. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  11838. lt_cv_prog_compiler_c_o_CXX=yes
  11839. fi
  11840. fi
  11841. chmod u+w . 2>&5
  11842. $RM conftest*
  11843. # SGI C++ compiler will create directory out/ii_files/ for
  11844. # template instantiation
  11845. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  11846. $RM out/* && rmdir out
  11847. cd ..
  11848. $RM -r conftest
  11849. $RM conftest*
  11850. fi
  11851. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  11852. $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
  11853. hard_links="nottested"
  11854. if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
  11855. # do not overwrite the value of need_locks provided by the user
  11856. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  11857. $as_echo_n "checking if we can lock with hard links... " >&6; }
  11858. hard_links=yes
  11859. $RM conftest*
  11860. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  11861. touch conftest.a
  11862. ln conftest.a conftest.b 2>&5 || hard_links=no
  11863. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  11864. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  11865. $as_echo "$hard_links" >&6; }
  11866. if test "$hard_links" = no; then
  11867. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  11868. $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  11869. need_locks=warn
  11870. fi
  11871. else
  11872. need_locks=no
  11873. fi
  11874. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  11875. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  11876. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  11877. exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  11878. case $host_os in
  11879. aix[4-9]*)
  11880. # If we're using GNU nm, then we don't want the "-C" option.
  11881. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  11882. # Also, AIX nm treats weak defined symbols like other global defined
  11883. # symbols, whereas GNU nm marks them as "W".
  11884. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  11885. export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
  11886. else
  11887. export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
  11888. fi
  11889. ;;
  11890. pw32*)
  11891. export_symbols_cmds_CXX="$ltdll_cmds"
  11892. ;;
  11893. cygwin* | mingw* | cegcc*)
  11894. case $cc_basename in
  11895. cl*)
  11896. exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
  11897. ;;
  11898. *)
  11899. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
  11900. exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
  11901. ;;
  11902. esac
  11903. ;;
  11904. *)
  11905. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  11906. ;;
  11907. esac
  11908. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
  11909. $as_echo "$ld_shlibs_CXX" >&6; }
  11910. test "$ld_shlibs_CXX" = no && can_build_shared=no
  11911. with_gnu_ld_CXX=$with_gnu_ld
  11912. #
  11913. # Do we need to explicitly link libc?
  11914. #
  11915. case "x$archive_cmds_need_lc_CXX" in
  11916. x|xyes)
  11917. # Assume -lc should be added
  11918. archive_cmds_need_lc_CXX=yes
  11919. if test "$enable_shared" = yes && test "$GCC" = yes; then
  11920. case $archive_cmds_CXX in
  11921. *'~'*)
  11922. # FIXME: we may have to deal with multi-command sequences.
  11923. ;;
  11924. '$CC '*)
  11925. # Test whether the compiler implicitly links with -lc since on some
  11926. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  11927. # to ld, don't add -lc before -lgcc.
  11928. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  11929. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  11930. if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
  11931. $as_echo_n "(cached) " >&6
  11932. else
  11933. $RM conftest*
  11934. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  11935. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  11936. (eval $ac_compile) 2>&5
  11937. ac_status=$?
  11938. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11939. test $ac_status = 0; } 2>conftest.err; then
  11940. soname=conftest
  11941. lib=conftest
  11942. libobjs=conftest.$ac_objext
  11943. deplibs=
  11944. wl=$lt_prog_compiler_wl_CXX
  11945. pic_flag=$lt_prog_compiler_pic_CXX
  11946. compiler_flags=-v
  11947. linker_flags=-v
  11948. verstring=
  11949. output_objdir=.
  11950. libname=conftest
  11951. lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
  11952. allow_undefined_flag_CXX=
  11953. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  11954. (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  11955. ac_status=$?
  11956. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11957. test $ac_status = 0; }
  11958. then
  11959. lt_cv_archive_cmds_need_lc_CXX=no
  11960. else
  11961. lt_cv_archive_cmds_need_lc_CXX=yes
  11962. fi
  11963. allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
  11964. else
  11965. cat conftest.err 1>&5
  11966. fi
  11967. $RM conftest*
  11968. fi
  11969. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
  11970. $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
  11971. archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
  11972. ;;
  11973. esac
  11974. fi
  11975. ;;
  11976. esac
  11977. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  11978. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  11979. library_names_spec=
  11980. libname_spec='lib$name'
  11981. soname_spec=
  11982. shrext_cmds=".so"
  11983. postinstall_cmds=
  11984. postuninstall_cmds=
  11985. finish_cmds=
  11986. finish_eval=
  11987. shlibpath_var=
  11988. shlibpath_overrides_runpath=unknown
  11989. version_type=none
  11990. dynamic_linker="$host_os ld.so"
  11991. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  11992. need_lib_prefix=unknown
  11993. hardcode_into_libs=no
  11994. # when you set need_version to no, make sure it does not cause -set_version
  11995. # flags to be left without arguments
  11996. need_version=unknown
  11997. case $host_os in
  11998. aix3*)
  11999. version_type=linux # correct to gnu/linux during the next big refactor
  12000. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  12001. shlibpath_var=LIBPATH
  12002. # AIX 3 has no versioning support, so we append a major version to the name.
  12003. soname_spec='${libname}${release}${shared_ext}$major'
  12004. ;;
  12005. aix[4-9]*)
  12006. version_type=linux # correct to gnu/linux during the next big refactor
  12007. need_lib_prefix=no
  12008. need_version=no
  12009. hardcode_into_libs=yes
  12010. if test "$host_cpu" = ia64; then
  12011. # AIX 5 supports IA64
  12012. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  12013. shlibpath_var=LD_LIBRARY_PATH
  12014. else
  12015. # With GCC up to 2.95.x, collect2 would create an import file
  12016. # for dependence libraries. The import file would start with
  12017. # the line `#! .'. This would cause the generated library to
  12018. # depend on `.', always an invalid library. This was fixed in
  12019. # development snapshots of GCC prior to 3.0.
  12020. case $host_os in
  12021. aix4 | aix4.[01] | aix4.[01].*)
  12022. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  12023. echo ' yes '
  12024. echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  12025. :
  12026. else
  12027. can_build_shared=no
  12028. fi
  12029. ;;
  12030. esac
  12031. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  12032. # soname into executable. Probably we can add versioning support to
  12033. # collect2, so additional links can be useful in future.
  12034. if test "$aix_use_runtimelinking" = yes; then
  12035. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  12036. # instead of lib<name>.a to let people know that these are not
  12037. # typical AIX shared libraries.
  12038. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12039. else
  12040. # We preserve .a as extension for shared libraries through AIX4.2
  12041. # and later when we are not doing run time linking.
  12042. library_names_spec='${libname}${release}.a $libname.a'
  12043. soname_spec='${libname}${release}${shared_ext}$major'
  12044. fi
  12045. shlibpath_var=LIBPATH
  12046. fi
  12047. ;;
  12048. amigaos*)
  12049. case $host_cpu in
  12050. powerpc)
  12051. # Since July 2007 AmigaOS4 officially supports .so libraries.
  12052. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  12053. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12054. ;;
  12055. m68k)
  12056. library_names_spec='$libname.ixlibrary $libname.a'
  12057. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  12058. 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'
  12059. ;;
  12060. esac
  12061. ;;
  12062. beos*)
  12063. library_names_spec='${libname}${shared_ext}'
  12064. dynamic_linker="$host_os ld.so"
  12065. shlibpath_var=LIBRARY_PATH
  12066. ;;
  12067. bsdi[45]*)
  12068. version_type=linux # correct to gnu/linux during the next big refactor
  12069. need_version=no
  12070. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12071. soname_spec='${libname}${release}${shared_ext}$major'
  12072. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  12073. shlibpath_var=LD_LIBRARY_PATH
  12074. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  12075. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  12076. # the default ld.so.conf also contains /usr/contrib/lib and
  12077. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  12078. # libtool to hard-code these into programs
  12079. ;;
  12080. cygwin* | mingw* | pw32* | cegcc*)
  12081. version_type=windows
  12082. shrext_cmds=".dll"
  12083. need_version=no
  12084. need_lib_prefix=no
  12085. case $GCC,$cc_basename in
  12086. yes,*)
  12087. # gcc
  12088. library_names_spec='$libname.dll.a'
  12089. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  12090. postinstall_cmds='base_file=`basename \${file}`~
  12091. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  12092. dldir=$destdir/`dirname \$dlpath`~
  12093. test -d \$dldir || mkdir -p \$dldir~
  12094. $install_prog $dir/$dlname \$dldir/$dlname~
  12095. chmod a+x \$dldir/$dlname~
  12096. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  12097. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  12098. fi'
  12099. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  12100. dlpath=$dir/\$dldll~
  12101. $RM \$dlpath'
  12102. shlibpath_overrides_runpath=yes
  12103. case $host_os in
  12104. cygwin*)
  12105. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  12106. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  12107. ;;
  12108. mingw* | cegcc*)
  12109. # MinGW DLLs use traditional 'lib' prefix
  12110. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  12111. ;;
  12112. pw32*)
  12113. # pw32 DLLs use 'pw' prefix rather than 'lib'
  12114. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  12115. ;;
  12116. esac
  12117. dynamic_linker='Win32 ld.exe'
  12118. ;;
  12119. *,cl*)
  12120. # Native MSVC
  12121. libname_spec='$name'
  12122. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  12123. library_names_spec='${libname}.dll.lib'
  12124. case $build_os in
  12125. mingw*)
  12126. sys_lib_search_path_spec=
  12127. lt_save_ifs=$IFS
  12128. IFS=';'
  12129. for lt_path in $LIB
  12130. do
  12131. IFS=$lt_save_ifs
  12132. # Let DOS variable expansion print the short 8.3 style file name.
  12133. lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
  12134. sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
  12135. done
  12136. IFS=$lt_save_ifs
  12137. # Convert to MSYS style.
  12138. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
  12139. ;;
  12140. cygwin*)
  12141. # Convert to unix form, then to dos form, then back to unix form
  12142. # but this time dos style (no spaces!) so that the unix form looks
  12143. # like /cygdrive/c/PROGRA~1:/cygdr...
  12144. sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
  12145. sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
  12146. sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  12147. ;;
  12148. *)
  12149. sys_lib_search_path_spec="$LIB"
  12150. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  12151. # It is most probably a Windows format PATH.
  12152. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  12153. else
  12154. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  12155. fi
  12156. # FIXME: find the short name or the path components, as spaces are
  12157. # common. (e.g. "Program Files" -> "PROGRA~1")
  12158. ;;
  12159. esac
  12160. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  12161. postinstall_cmds='base_file=`basename \${file}`~
  12162. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  12163. dldir=$destdir/`dirname \$dlpath`~
  12164. test -d \$dldir || mkdir -p \$dldir~
  12165. $install_prog $dir/$dlname \$dldir/$dlname'
  12166. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  12167. dlpath=$dir/\$dldll~
  12168. $RM \$dlpath'
  12169. shlibpath_overrides_runpath=yes
  12170. dynamic_linker='Win32 link.exe'
  12171. ;;
  12172. *)
  12173. # Assume MSVC wrapper
  12174. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  12175. dynamic_linker='Win32 ld.exe'
  12176. ;;
  12177. esac
  12178. # FIXME: first we should search . and the directory the executable is in
  12179. shlibpath_var=PATH
  12180. ;;
  12181. darwin* | rhapsody*)
  12182. dynamic_linker="$host_os dyld"
  12183. version_type=darwin
  12184. need_lib_prefix=no
  12185. need_version=no
  12186. library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  12187. soname_spec='${libname}${release}${major}$shared_ext'
  12188. shlibpath_overrides_runpath=yes
  12189. shlibpath_var=DYLD_LIBRARY_PATH
  12190. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  12191. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  12192. ;;
  12193. dgux*)
  12194. version_type=linux # correct to gnu/linux during the next big refactor
  12195. need_lib_prefix=no
  12196. need_version=no
  12197. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  12198. soname_spec='${libname}${release}${shared_ext}$major'
  12199. shlibpath_var=LD_LIBRARY_PATH
  12200. ;;
  12201. freebsd* | dragonfly*)
  12202. # DragonFly does not have aout. When/if they implement a new
  12203. # versioning mechanism, adjust this.
  12204. if test -x /usr/bin/objformat; then
  12205. objformat=`/usr/bin/objformat`
  12206. else
  12207. case $host_os in
  12208. freebsd[23].*) objformat=aout ;;
  12209. *) objformat=elf ;;
  12210. esac
  12211. fi
  12212. version_type=freebsd-$objformat
  12213. case $version_type in
  12214. freebsd-elf*)
  12215. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  12216. need_version=no
  12217. need_lib_prefix=no
  12218. ;;
  12219. freebsd-*)
  12220. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  12221. need_version=yes
  12222. ;;
  12223. esac
  12224. shlibpath_var=LD_LIBRARY_PATH
  12225. case $host_os in
  12226. freebsd2.*)
  12227. shlibpath_overrides_runpath=yes
  12228. ;;
  12229. freebsd3.[01]* | freebsdelf3.[01]*)
  12230. shlibpath_overrides_runpath=yes
  12231. hardcode_into_libs=yes
  12232. ;;
  12233. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  12234. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  12235. shlibpath_overrides_runpath=no
  12236. hardcode_into_libs=yes
  12237. ;;
  12238. *) # from 4.6 on, and DragonFly
  12239. shlibpath_overrides_runpath=yes
  12240. hardcode_into_libs=yes
  12241. ;;
  12242. esac
  12243. ;;
  12244. gnu*)
  12245. version_type=linux # correct to gnu/linux during the next big refactor
  12246. need_lib_prefix=no
  12247. need_version=no
  12248. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  12249. soname_spec='${libname}${release}${shared_ext}$major'
  12250. shlibpath_var=LD_LIBRARY_PATH
  12251. shlibpath_overrides_runpath=no
  12252. hardcode_into_libs=yes
  12253. ;;
  12254. haiku*)
  12255. version_type=linux # correct to gnu/linux during the next big refactor
  12256. need_lib_prefix=no
  12257. need_version=no
  12258. dynamic_linker="$host_os runtime_loader"
  12259. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  12260. soname_spec='${libname}${release}${shared_ext}$major'
  12261. shlibpath_var=LIBRARY_PATH
  12262. shlibpath_overrides_runpath=yes
  12263. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
  12264. hardcode_into_libs=yes
  12265. ;;
  12266. hpux9* | hpux10* | hpux11*)
  12267. # Give a soname corresponding to the major version so that dld.sl refuses to
  12268. # link against other versions.
  12269. version_type=sunos
  12270. need_lib_prefix=no
  12271. need_version=no
  12272. case $host_cpu in
  12273. ia64*)
  12274. shrext_cmds='.so'
  12275. hardcode_into_libs=yes
  12276. dynamic_linker="$host_os dld.so"
  12277. shlibpath_var=LD_LIBRARY_PATH
  12278. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  12279. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12280. soname_spec='${libname}${release}${shared_ext}$major'
  12281. if test "X$HPUX_IA64_MODE" = X32; then
  12282. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  12283. else
  12284. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  12285. fi
  12286. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  12287. ;;
  12288. hppa*64*)
  12289. shrext_cmds='.sl'
  12290. hardcode_into_libs=yes
  12291. dynamic_linker="$host_os dld.sl"
  12292. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  12293. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  12294. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12295. soname_spec='${libname}${release}${shared_ext}$major'
  12296. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  12297. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  12298. ;;
  12299. *)
  12300. shrext_cmds='.sl'
  12301. dynamic_linker="$host_os dld.sl"
  12302. shlibpath_var=SHLIB_PATH
  12303. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  12304. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12305. soname_spec='${libname}${release}${shared_ext}$major'
  12306. ;;
  12307. esac
  12308. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  12309. postinstall_cmds='chmod 555 $lib'
  12310. # or fails outright, so override atomically:
  12311. install_override_mode=555
  12312. ;;
  12313. interix[3-9]*)
  12314. version_type=linux # correct to gnu/linux during the next big refactor
  12315. need_lib_prefix=no
  12316. need_version=no
  12317. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  12318. soname_spec='${libname}${release}${shared_ext}$major'
  12319. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  12320. shlibpath_var=LD_LIBRARY_PATH
  12321. shlibpath_overrides_runpath=no
  12322. hardcode_into_libs=yes
  12323. ;;
  12324. irix5* | irix6* | nonstopux*)
  12325. case $host_os in
  12326. nonstopux*) version_type=nonstopux ;;
  12327. *)
  12328. if test "$lt_cv_prog_gnu_ld" = yes; then
  12329. version_type=linux # correct to gnu/linux during the next big refactor
  12330. else
  12331. version_type=irix
  12332. fi ;;
  12333. esac
  12334. need_lib_prefix=no
  12335. need_version=no
  12336. soname_spec='${libname}${release}${shared_ext}$major'
  12337. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  12338. case $host_os in
  12339. irix5* | nonstopux*)
  12340. libsuff= shlibsuff=
  12341. ;;
  12342. *)
  12343. case $LD in # libtool.m4 will add one of these switches to LD
  12344. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  12345. libsuff= shlibsuff= libmagic=32-bit;;
  12346. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  12347. libsuff=32 shlibsuff=N32 libmagic=N32;;
  12348. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  12349. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  12350. *) libsuff= shlibsuff= libmagic=never-match;;
  12351. esac
  12352. ;;
  12353. esac
  12354. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  12355. shlibpath_overrides_runpath=no
  12356. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  12357. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  12358. hardcode_into_libs=yes
  12359. ;;
  12360. # No shared lib support for Linux oldld, aout, or coff.
  12361. linux*oldld* | linux*aout* | linux*coff*)
  12362. dynamic_linker=no
  12363. ;;
  12364. # This must be glibc/ELF.
  12365. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  12366. version_type=linux # correct to gnu/linux during the next big refactor
  12367. need_lib_prefix=no
  12368. need_version=no
  12369. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12370. soname_spec='${libname}${release}${shared_ext}$major'
  12371. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  12372. shlibpath_var=LD_LIBRARY_PATH
  12373. shlibpath_overrides_runpath=no
  12374. # Some binutils ld are patched to set DT_RUNPATH
  12375. if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
  12376. $as_echo_n "(cached) " >&6
  12377. else
  12378. lt_cv_shlibpath_overrides_runpath=no
  12379. save_LDFLAGS=$LDFLAGS
  12380. save_libdir=$libdir
  12381. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
  12382. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
  12383. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12384. /* end confdefs.h. */
  12385. int
  12386. main ()
  12387. {
  12388. ;
  12389. return 0;
  12390. }
  12391. _ACEOF
  12392. if ac_fn_cxx_try_link "$LINENO"; then :
  12393. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  12394. lt_cv_shlibpath_overrides_runpath=yes
  12395. fi
  12396. fi
  12397. rm -f core conftest.err conftest.$ac_objext \
  12398. conftest$ac_exeext conftest.$ac_ext
  12399. LDFLAGS=$save_LDFLAGS
  12400. libdir=$save_libdir
  12401. fi
  12402. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  12403. # This implies no fast_install, which is unacceptable.
  12404. # Some rework will be needed to allow for fast_install
  12405. # before this can be enabled.
  12406. hardcode_into_libs=yes
  12407. # Append ld.so.conf contents to the search path
  12408. if test -f /etc/ld.so.conf; then
  12409. 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' ' '`
  12410. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  12411. fi
  12412. # We used to test for /lib/ld.so.1 and disable shared libraries on
  12413. # powerpc, because MkLinux only supported shared libraries with the
  12414. # GNU dynamic linker. Since this was broken with cross compilers,
  12415. # most powerpc-linux boxes support dynamic linking these days and
  12416. # people can always --disable-shared, the test was removed, and we
  12417. # assume the GNU/Linux dynamic linker is in use.
  12418. dynamic_linker='GNU/Linux ld.so'
  12419. ;;
  12420. netbsd*)
  12421. version_type=sunos
  12422. need_lib_prefix=no
  12423. need_version=no
  12424. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  12425. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  12426. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  12427. dynamic_linker='NetBSD (a.out) ld.so'
  12428. else
  12429. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  12430. soname_spec='${libname}${release}${shared_ext}$major'
  12431. dynamic_linker='NetBSD ld.elf_so'
  12432. fi
  12433. shlibpath_var=LD_LIBRARY_PATH
  12434. shlibpath_overrides_runpath=yes
  12435. hardcode_into_libs=yes
  12436. ;;
  12437. newsos6)
  12438. version_type=linux # correct to gnu/linux during the next big refactor
  12439. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12440. shlibpath_var=LD_LIBRARY_PATH
  12441. shlibpath_overrides_runpath=yes
  12442. ;;
  12443. *nto* | *qnx*)
  12444. version_type=qnx
  12445. need_lib_prefix=no
  12446. need_version=no
  12447. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12448. soname_spec='${libname}${release}${shared_ext}$major'
  12449. shlibpath_var=LD_LIBRARY_PATH
  12450. shlibpath_overrides_runpath=no
  12451. hardcode_into_libs=yes
  12452. dynamic_linker='ldqnx.so'
  12453. ;;
  12454. openbsd*)
  12455. version_type=sunos
  12456. sys_lib_dlsearch_path_spec="/usr/lib"
  12457. need_lib_prefix=no
  12458. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  12459. case $host_os in
  12460. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  12461. *) need_version=no ;;
  12462. esac
  12463. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  12464. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  12465. shlibpath_var=LD_LIBRARY_PATH
  12466. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  12467. case $host_os in
  12468. openbsd2.[89] | openbsd2.[89].*)
  12469. shlibpath_overrides_runpath=no
  12470. ;;
  12471. *)
  12472. shlibpath_overrides_runpath=yes
  12473. ;;
  12474. esac
  12475. else
  12476. shlibpath_overrides_runpath=yes
  12477. fi
  12478. ;;
  12479. os2*)
  12480. libname_spec='$name'
  12481. shrext_cmds=".dll"
  12482. need_lib_prefix=no
  12483. library_names_spec='$libname${shared_ext} $libname.a'
  12484. dynamic_linker='OS/2 ld.exe'
  12485. shlibpath_var=LIBPATH
  12486. ;;
  12487. osf3* | osf4* | osf5*)
  12488. version_type=osf
  12489. need_lib_prefix=no
  12490. need_version=no
  12491. soname_spec='${libname}${release}${shared_ext}$major'
  12492. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12493. shlibpath_var=LD_LIBRARY_PATH
  12494. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  12495. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  12496. ;;
  12497. rdos*)
  12498. dynamic_linker=no
  12499. ;;
  12500. solaris*)
  12501. version_type=linux # correct to gnu/linux during the next big refactor
  12502. need_lib_prefix=no
  12503. need_version=no
  12504. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12505. soname_spec='${libname}${release}${shared_ext}$major'
  12506. shlibpath_var=LD_LIBRARY_PATH
  12507. shlibpath_overrides_runpath=yes
  12508. hardcode_into_libs=yes
  12509. # ldd complains unless libraries are executable
  12510. postinstall_cmds='chmod +x $lib'
  12511. ;;
  12512. sunos4*)
  12513. version_type=sunos
  12514. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  12515. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  12516. shlibpath_var=LD_LIBRARY_PATH
  12517. shlibpath_overrides_runpath=yes
  12518. if test "$with_gnu_ld" = yes; then
  12519. need_lib_prefix=no
  12520. fi
  12521. need_version=yes
  12522. ;;
  12523. sysv4 | sysv4.3*)
  12524. version_type=linux # correct to gnu/linux during the next big refactor
  12525. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12526. soname_spec='${libname}${release}${shared_ext}$major'
  12527. shlibpath_var=LD_LIBRARY_PATH
  12528. case $host_vendor in
  12529. sni)
  12530. shlibpath_overrides_runpath=no
  12531. need_lib_prefix=no
  12532. runpath_var=LD_RUN_PATH
  12533. ;;
  12534. siemens)
  12535. need_lib_prefix=no
  12536. ;;
  12537. motorola)
  12538. need_lib_prefix=no
  12539. need_version=no
  12540. shlibpath_overrides_runpath=no
  12541. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  12542. ;;
  12543. esac
  12544. ;;
  12545. sysv4*MP*)
  12546. if test -d /usr/nec ;then
  12547. version_type=linux # correct to gnu/linux during the next big refactor
  12548. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  12549. soname_spec='$libname${shared_ext}.$major'
  12550. shlibpath_var=LD_LIBRARY_PATH
  12551. fi
  12552. ;;
  12553. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  12554. version_type=freebsd-elf
  12555. need_lib_prefix=no
  12556. need_version=no
  12557. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  12558. soname_spec='${libname}${release}${shared_ext}$major'
  12559. shlibpath_var=LD_LIBRARY_PATH
  12560. shlibpath_overrides_runpath=yes
  12561. hardcode_into_libs=yes
  12562. if test "$with_gnu_ld" = yes; then
  12563. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  12564. else
  12565. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  12566. case $host_os in
  12567. sco3.2v5*)
  12568. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  12569. ;;
  12570. esac
  12571. fi
  12572. sys_lib_dlsearch_path_spec='/usr/lib'
  12573. ;;
  12574. tpf*)
  12575. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  12576. version_type=linux # correct to gnu/linux during the next big refactor
  12577. need_lib_prefix=no
  12578. need_version=no
  12579. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12580. shlibpath_var=LD_LIBRARY_PATH
  12581. shlibpath_overrides_runpath=no
  12582. hardcode_into_libs=yes
  12583. ;;
  12584. uts4*)
  12585. version_type=linux # correct to gnu/linux during the next big refactor
  12586. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12587. soname_spec='${libname}${release}${shared_ext}$major'
  12588. shlibpath_var=LD_LIBRARY_PATH
  12589. ;;
  12590. *)
  12591. dynamic_linker=no
  12592. ;;
  12593. esac
  12594. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  12595. $as_echo "$dynamic_linker" >&6; }
  12596. test "$dynamic_linker" = no && can_build_shared=no
  12597. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  12598. if test "$GCC" = yes; then
  12599. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  12600. fi
  12601. if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  12602. sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  12603. fi
  12604. if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  12605. sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  12606. fi
  12607. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  12608. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  12609. hardcode_action_CXX=
  12610. if test -n "$hardcode_libdir_flag_spec_CXX" ||
  12611. test -n "$runpath_var_CXX" ||
  12612. test "X$hardcode_automatic_CXX" = "Xyes" ; then
  12613. # We can hardcode non-existent directories.
  12614. if test "$hardcode_direct_CXX" != no &&
  12615. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  12616. # have to relink, otherwise we might link with an installed library
  12617. # when we should be linking with a yet-to-be-installed one
  12618. ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
  12619. test "$hardcode_minus_L_CXX" != no; then
  12620. # Linking always hardcodes the temporary library directory.
  12621. hardcode_action_CXX=relink
  12622. else
  12623. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  12624. hardcode_action_CXX=immediate
  12625. fi
  12626. else
  12627. # We cannot hardcode anything, or else we can only hardcode existing
  12628. # directories.
  12629. hardcode_action_CXX=unsupported
  12630. fi
  12631. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
  12632. $as_echo "$hardcode_action_CXX" >&6; }
  12633. if test "$hardcode_action_CXX" = relink ||
  12634. test "$inherit_rpath_CXX" = yes; then
  12635. # Fast installation is not supported
  12636. enable_fast_install=no
  12637. elif test "$shlibpath_overrides_runpath" = yes ||
  12638. test "$enable_shared" = no; then
  12639. # Fast installation is not necessary
  12640. enable_fast_install=needless
  12641. fi
  12642. fi # test -n "$compiler"
  12643. CC=$lt_save_CC
  12644. CFLAGS=$lt_save_CFLAGS
  12645. LDCXX=$LD
  12646. LD=$lt_save_LD
  12647. GCC=$lt_save_GCC
  12648. with_gnu_ld=$lt_save_with_gnu_ld
  12649. lt_cv_path_LDCXX=$lt_cv_path_LD
  12650. lt_cv_path_LD=$lt_save_path_LD
  12651. lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
  12652. lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
  12653. fi # test "$_lt_caught_CXX_error" != yes
  12654. ac_ext=c
  12655. ac_cpp='$CPP $CPPFLAGS'
  12656. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  12657. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  12658. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  12659. ac_config_commands="$ac_config_commands libtool"
  12660. # Only expand once:
  12661. ac_config_headers="$ac_config_headers config.h"
  12662. am__api_version='1.11'
  12663. # Find a good install program. We prefer a C program (faster),
  12664. # so one script is as good as another. But avoid the broken or
  12665. # incompatible versions:
  12666. # SysV /etc/install, /usr/sbin/install
  12667. # SunOS /usr/etc/install
  12668. # IRIX /sbin/install
  12669. # AIX /bin/install
  12670. # AmigaOS /C/install, which installs bootblocks on floppy discs
  12671. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  12672. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  12673. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  12674. # OS/2's system install, which has a completely different semantic
  12675. # ./install, which can be erroneously created by make from ./install.sh.
  12676. # Reject install programs that cannot install multiple files.
  12677. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
  12678. $as_echo_n "checking for a BSD-compatible install... " >&6; }
  12679. if test -z "$INSTALL"; then
  12680. if ${ac_cv_path_install+:} false; then :
  12681. $as_echo_n "(cached) " >&6
  12682. else
  12683. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  12684. for as_dir in $PATH
  12685. do
  12686. IFS=$as_save_IFS
  12687. test -z "$as_dir" && as_dir=.
  12688. # Account for people who put trailing slashes in PATH elements.
  12689. case $as_dir/ in #((
  12690. ./ | .// | /[cC]/* | \
  12691. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  12692. ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
  12693. /usr/ucb/* ) ;;
  12694. *)
  12695. # OSF1 and SCO ODT 3.0 have their own names for install.
  12696. # Don't use installbsd from OSF since it installs stuff as root
  12697. # by default.
  12698. for ac_prog in ginstall scoinst install; do
  12699. for ac_exec_ext in '' $ac_executable_extensions; do
  12700. if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
  12701. if test $ac_prog = install &&
  12702. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  12703. # AIX install. It has an incompatible calling convention.
  12704. :
  12705. elif test $ac_prog = install &&
  12706. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  12707. # program-specific install script used by HP pwplus--don't use.
  12708. :
  12709. else
  12710. rm -rf conftest.one conftest.two conftest.dir
  12711. echo one > conftest.one
  12712. echo two > conftest.two
  12713. mkdir conftest.dir
  12714. if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
  12715. test -s conftest.one && test -s conftest.two &&
  12716. test -s conftest.dir/conftest.one &&
  12717. test -s conftest.dir/conftest.two
  12718. then
  12719. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  12720. break 3
  12721. fi
  12722. fi
  12723. fi
  12724. done
  12725. done
  12726. ;;
  12727. esac
  12728. done
  12729. IFS=$as_save_IFS
  12730. rm -rf conftest.one conftest.two conftest.dir
  12731. fi
  12732. if test "${ac_cv_path_install+set}" = set; then
  12733. INSTALL=$ac_cv_path_install
  12734. else
  12735. # As a last resort, use the slow shell script. Don't cache a
  12736. # value for INSTALL within a source directory, because that will
  12737. # break other packages using the cache if that directory is
  12738. # removed, or if the value is a relative name.
  12739. INSTALL=$ac_install_sh
  12740. fi
  12741. fi
  12742. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
  12743. $as_echo "$INSTALL" >&6; }
  12744. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  12745. # It thinks the first close brace ends the variable substitution.
  12746. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  12747. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  12748. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  12749. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
  12750. $as_echo_n "checking whether build environment is sane... " >&6; }
  12751. # Just in case
  12752. sleep 1
  12753. echo timestamp > conftest.file
  12754. # Reject unsafe characters in $srcdir or the absolute working directory
  12755. # name. Accept space and tab only in the latter.
  12756. am_lf='
  12757. '
  12758. case `pwd` in
  12759. *[\\\"\#\$\&\'\`$am_lf]*)
  12760. as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
  12761. esac
  12762. case $srcdir in
  12763. *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
  12764. as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
  12765. esac
  12766. # Do `set' in a subshell so we don't clobber the current shell's
  12767. # arguments. Must try -L first in case configure is actually a
  12768. # symlink; some systems play weird games with the mod time of symlinks
  12769. # (eg FreeBSD returns the mod time of the symlink's containing
  12770. # directory).
  12771. if (
  12772. set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
  12773. if test "$*" = "X"; then
  12774. # -L didn't work.
  12775. set X `ls -t "$srcdir/configure" conftest.file`
  12776. fi
  12777. rm -f conftest.file
  12778. if test "$*" != "X $srcdir/configure conftest.file" \
  12779. && test "$*" != "X conftest.file $srcdir/configure"; then
  12780. # If neither matched, then we have a broken ls. This can happen
  12781. # if, for instance, CONFIG_SHELL is bash and it inherits a
  12782. # broken ls alias from the environment. This has actually
  12783. # happened. Such a system could not be considered "sane".
  12784. as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
  12785. alias in your environment" "$LINENO" 5
  12786. fi
  12787. test "$2" = conftest.file
  12788. )
  12789. then
  12790. # Ok.
  12791. :
  12792. else
  12793. as_fn_error $? "newly created file is older than distributed files!
  12794. Check your system clock" "$LINENO" 5
  12795. fi
  12796. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  12797. $as_echo "yes" >&6; }
  12798. test "$program_prefix" != NONE &&
  12799. program_transform_name="s&^&$program_prefix&;$program_transform_name"
  12800. # Use a double $ so make ignores it.
  12801. test "$program_suffix" != NONE &&
  12802. program_transform_name="s&\$&$program_suffix&;$program_transform_name"
  12803. # Double any \ or $.
  12804. # By default was `s,x,x', remove it if useless.
  12805. ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
  12806. program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
  12807. # expand $ac_aux_dir to an absolute path
  12808. am_aux_dir=`cd $ac_aux_dir && pwd`
  12809. if test x"${MISSING+set}" != xset; then
  12810. case $am_aux_dir in
  12811. *\ * | *\ *)
  12812. MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
  12813. *)
  12814. MISSING="\${SHELL} $am_aux_dir/missing" ;;
  12815. esac
  12816. fi
  12817. # Use eval to expand $SHELL
  12818. if eval "$MISSING --run true"; then
  12819. am_missing_run="$MISSING --run "
  12820. else
  12821. am_missing_run=
  12822. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
  12823. $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
  12824. fi
  12825. if test x"${install_sh}" != xset; then
  12826. case $am_aux_dir in
  12827. *\ * | *\ *)
  12828. install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
  12829. *)
  12830. install_sh="\${SHELL} $am_aux_dir/install-sh"
  12831. esac
  12832. fi
  12833. # Installed binaries are usually stripped using `strip' when the user
  12834. # run `make install-strip'. However `strip' might not be the right
  12835. # tool to use in cross-compilation environments, therefore Automake
  12836. # will honor the `STRIP' environment variable to overrule this program.
  12837. if test "$cross_compiling" != no; then
  12838. if test -n "$ac_tool_prefix"; then
  12839. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  12840. set dummy ${ac_tool_prefix}strip; ac_word=$2
  12841. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  12842. $as_echo_n "checking for $ac_word... " >&6; }
  12843. if ${ac_cv_prog_STRIP+:} false; then :
  12844. $as_echo_n "(cached) " >&6
  12845. else
  12846. if test -n "$STRIP"; then
  12847. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  12848. else
  12849. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  12850. for as_dir in $PATH
  12851. do
  12852. IFS=$as_save_IFS
  12853. test -z "$as_dir" && as_dir=.
  12854. for ac_exec_ext in '' $ac_executable_extensions; do
  12855. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  12856. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  12857. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  12858. break 2
  12859. fi
  12860. done
  12861. done
  12862. IFS=$as_save_IFS
  12863. fi
  12864. fi
  12865. STRIP=$ac_cv_prog_STRIP
  12866. if test -n "$STRIP"; then
  12867. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  12868. $as_echo "$STRIP" >&6; }
  12869. else
  12870. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12871. $as_echo "no" >&6; }
  12872. fi
  12873. fi
  12874. if test -z "$ac_cv_prog_STRIP"; then
  12875. ac_ct_STRIP=$STRIP
  12876. # Extract the first word of "strip", so it can be a program name with args.
  12877. set dummy strip; ac_word=$2
  12878. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  12879. $as_echo_n "checking for $ac_word... " >&6; }
  12880. if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
  12881. $as_echo_n "(cached) " >&6
  12882. else
  12883. if test -n "$ac_ct_STRIP"; then
  12884. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  12885. else
  12886. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  12887. for as_dir in $PATH
  12888. do
  12889. IFS=$as_save_IFS
  12890. test -z "$as_dir" && as_dir=.
  12891. for ac_exec_ext in '' $ac_executable_extensions; do
  12892. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  12893. ac_cv_prog_ac_ct_STRIP="strip"
  12894. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  12895. break 2
  12896. fi
  12897. done
  12898. done
  12899. IFS=$as_save_IFS
  12900. fi
  12901. fi
  12902. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  12903. if test -n "$ac_ct_STRIP"; then
  12904. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  12905. $as_echo "$ac_ct_STRIP" >&6; }
  12906. else
  12907. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12908. $as_echo "no" >&6; }
  12909. fi
  12910. if test "x$ac_ct_STRIP" = x; then
  12911. STRIP=":"
  12912. else
  12913. case $cross_compiling:$ac_tool_warned in
  12914. yes:)
  12915. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  12916. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  12917. ac_tool_warned=yes ;;
  12918. esac
  12919. STRIP=$ac_ct_STRIP
  12920. fi
  12921. else
  12922. STRIP="$ac_cv_prog_STRIP"
  12923. fi
  12924. fi
  12925. INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
  12926. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
  12927. $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
  12928. if test -z "$MKDIR_P"; then
  12929. if ${ac_cv_path_mkdir+:} false; then :
  12930. $as_echo_n "(cached) " >&6
  12931. else
  12932. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  12933. for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
  12934. do
  12935. IFS=$as_save_IFS
  12936. test -z "$as_dir" && as_dir=.
  12937. for ac_prog in mkdir gmkdir; do
  12938. for ac_exec_ext in '' $ac_executable_extensions; do
  12939. { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
  12940. case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
  12941. 'mkdir (GNU coreutils) '* | \
  12942. 'mkdir (coreutils) '* | \
  12943. 'mkdir (fileutils) '4.1*)
  12944. ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
  12945. break 3;;
  12946. esac
  12947. done
  12948. done
  12949. done
  12950. IFS=$as_save_IFS
  12951. fi
  12952. test -d ./--version && rmdir ./--version
  12953. if test "${ac_cv_path_mkdir+set}" = set; then
  12954. MKDIR_P="$ac_cv_path_mkdir -p"
  12955. else
  12956. # As a last resort, use the slow shell script. Don't cache a
  12957. # value for MKDIR_P within a source directory, because that will
  12958. # break other packages using the cache if that directory is
  12959. # removed, or if the value is a relative name.
  12960. MKDIR_P="$ac_install_sh -d"
  12961. fi
  12962. fi
  12963. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
  12964. $as_echo "$MKDIR_P" >&6; }
  12965. mkdir_p="$MKDIR_P"
  12966. case $mkdir_p in
  12967. [\\/$]* | ?:[\\/]*) ;;
  12968. */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
  12969. esac
  12970. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  12971. $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  12972. set x ${MAKE-make}
  12973. ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  12974. if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
  12975. $as_echo_n "(cached) " >&6
  12976. else
  12977. cat >conftest.make <<\_ACEOF
  12978. SHELL = /bin/sh
  12979. all:
  12980. @echo '@@@%%%=$(MAKE)=@@@%%%'
  12981. _ACEOF
  12982. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  12983. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  12984. *@@@%%%=?*=@@@%%%*)
  12985. eval ac_cv_prog_make_${ac_make}_set=yes;;
  12986. *)
  12987. eval ac_cv_prog_make_${ac_make}_set=no;;
  12988. esac
  12989. rm -f conftest.make
  12990. fi
  12991. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  12992. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  12993. $as_echo "yes" >&6; }
  12994. SET_MAKE=
  12995. else
  12996. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12997. $as_echo "no" >&6; }
  12998. SET_MAKE="MAKE=${MAKE-make}"
  12999. fi
  13000. rm -rf .tst 2>/dev/null
  13001. mkdir .tst 2>/dev/null
  13002. if test -d .tst; then
  13003. am__leading_dot=.
  13004. else
  13005. am__leading_dot=_
  13006. fi
  13007. rmdir .tst 2>/dev/null
  13008. DEPDIR="${am__leading_dot}deps"
  13009. ac_config_commands="$ac_config_commands depfiles"
  13010. am_make=${MAKE-make}
  13011. cat > confinc << 'END'
  13012. am__doit:
  13013. @echo this is the am__doit target
  13014. .PHONY: am__doit
  13015. END
  13016. # If we don't find an include directive, just comment out the code.
  13017. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
  13018. $as_echo_n "checking for style of include used by $am_make... " >&6; }
  13019. am__include="#"
  13020. am__quote=
  13021. _am_result=none
  13022. # First try GNU make style include.
  13023. echo "include confinc" > confmf
  13024. # Ignore all kinds of additional output from `make'.
  13025. case `$am_make -s -f confmf 2> /dev/null` in #(
  13026. *the\ am__doit\ target*)
  13027. am__include=include
  13028. am__quote=
  13029. _am_result=GNU
  13030. ;;
  13031. esac
  13032. # Now try BSD make style include.
  13033. if test "$am__include" = "#"; then
  13034. echo '.include "confinc"' > confmf
  13035. case `$am_make -s -f confmf 2> /dev/null` in #(
  13036. *the\ am__doit\ target*)
  13037. am__include=.include
  13038. am__quote="\""
  13039. _am_result=BSD
  13040. ;;
  13041. esac
  13042. fi
  13043. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
  13044. $as_echo "$_am_result" >&6; }
  13045. rm -f confinc confmf
  13046. # Check whether --enable-dependency-tracking was given.
  13047. if test "${enable_dependency_tracking+set}" = set; then :
  13048. enableval=$enable_dependency_tracking;
  13049. fi
  13050. if test "x$enable_dependency_tracking" != xno; then
  13051. am_depcomp="$ac_aux_dir/depcomp"
  13052. AMDEPBACKSLASH='\'
  13053. am__nodep='_no'
  13054. fi
  13055. if test "x$enable_dependency_tracking" != xno; then
  13056. AMDEP_TRUE=
  13057. AMDEP_FALSE='#'
  13058. else
  13059. AMDEP_TRUE='#'
  13060. AMDEP_FALSE=
  13061. fi
  13062. if test "`cd $srcdir && pwd`" != "`pwd`"; then
  13063. # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
  13064. # is not polluted with repeated "-I."
  13065. am__isrc=' -I$(srcdir)'
  13066. # test to see if srcdir already configured
  13067. if test -f $srcdir/config.status; then
  13068. as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
  13069. fi
  13070. fi
  13071. # test whether we have cygpath
  13072. if test -z "$CYGPATH_W"; then
  13073. if (cygpath --version) >/dev/null 2>/dev/null; then
  13074. CYGPATH_W='cygpath -w'
  13075. else
  13076. CYGPATH_W=echo
  13077. fi
  13078. fi
  13079. # Define the identity of the package.
  13080. PACKAGE='klish'
  13081. VERSION='1.5.3'
  13082. cat >>confdefs.h <<_ACEOF
  13083. #define PACKAGE "$PACKAGE"
  13084. _ACEOF
  13085. cat >>confdefs.h <<_ACEOF
  13086. #define VERSION "$VERSION"
  13087. _ACEOF
  13088. # Some tools Automake needs.
  13089. ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
  13090. AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
  13091. AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
  13092. AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
  13093. MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
  13094. # We need awk for the "check" target. The system "awk" is bad on
  13095. # some platforms.
  13096. # Always define AMTAR for backward compatibility.
  13097. AMTAR=${AMTAR-"${am_missing_run}tar"}
  13098. am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
  13099. depcc="$CC" am_compiler_list=
  13100. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  13101. $as_echo_n "checking dependency style of $depcc... " >&6; }
  13102. if ${am_cv_CC_dependencies_compiler_type+:} false; then :
  13103. $as_echo_n "(cached) " >&6
  13104. else
  13105. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  13106. # We make a subdir and do the tests there. Otherwise we can end up
  13107. # making bogus files that we don't know about and never remove. For
  13108. # instance it was reported that on HP-UX the gcc test will end up
  13109. # making a dummy file named `D' -- because `-MD' means `put the output
  13110. # in D'.
  13111. rm -rf conftest.dir
  13112. mkdir conftest.dir
  13113. # Copy depcomp to subdir because otherwise we won't find it if we're
  13114. # using a relative directory.
  13115. cp "$am_depcomp" conftest.dir
  13116. cd conftest.dir
  13117. # We will build objects and dependencies in a subdirectory because
  13118. # it helps to detect inapplicable dependency modes. For instance
  13119. # both Tru64's cc and ICC support -MD to output dependencies as a
  13120. # side effect of compilation, but ICC will put the dependencies in
  13121. # the current directory while Tru64 will put them in the object
  13122. # directory.
  13123. mkdir sub
  13124. am_cv_CC_dependencies_compiler_type=none
  13125. if test "$am_compiler_list" = ""; then
  13126. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  13127. fi
  13128. am__universal=false
  13129. case " $depcc " in #(
  13130. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  13131. esac
  13132. for depmode in $am_compiler_list; do
  13133. # Setup a source with many dependencies, because some compilers
  13134. # like to wrap large dependency lists on column 80 (with \), and
  13135. # we should not choose a depcomp mode which is confused by this.
  13136. #
  13137. # We need to recreate these files for each test, as the compiler may
  13138. # overwrite some of them when testing with obscure command lines.
  13139. # This happens at least with the AIX C compiler.
  13140. : > sub/conftest.c
  13141. for i in 1 2 3 4 5 6; do
  13142. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  13143. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  13144. # Solaris 8's {/usr,}/bin/sh.
  13145. touch sub/conftst$i.h
  13146. done
  13147. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  13148. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  13149. # mode. It turns out that the SunPro C++ compiler does not properly
  13150. # handle `-M -o', and we need to detect this. Also, some Intel
  13151. # versions had trouble with output in subdirs
  13152. am__obj=sub/conftest.${OBJEXT-o}
  13153. am__minus_obj="-o $am__obj"
  13154. case $depmode in
  13155. gcc)
  13156. # This depmode causes a compiler race in universal mode.
  13157. test "$am__universal" = false || continue
  13158. ;;
  13159. nosideeffect)
  13160. # after this tag, mechanisms are not by side-effect, so they'll
  13161. # only be used when explicitly requested
  13162. if test "x$enable_dependency_tracking" = xyes; then
  13163. continue
  13164. else
  13165. break
  13166. fi
  13167. ;;
  13168. msvc7 | msvc7msys | msvisualcpp | msvcmsys)
  13169. # This compiler won't grok `-c -o', but also, the minuso test has
  13170. # not run yet. These depmodes are late enough in the game, and
  13171. # so weak that their functioning should not be impacted.
  13172. am__obj=conftest.${OBJEXT-o}
  13173. am__minus_obj=
  13174. ;;
  13175. none) break ;;
  13176. esac
  13177. if depmode=$depmode \
  13178. source=sub/conftest.c object=$am__obj \
  13179. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  13180. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  13181. >/dev/null 2>conftest.err &&
  13182. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  13183. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  13184. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  13185. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  13186. # icc doesn't choke on unknown options, it will just issue warnings
  13187. # or remarks (even with -Werror). So we grep stderr for any message
  13188. # that says an option was ignored or not supported.
  13189. # When given -MP, icc 7.0 and 7.1 complain thusly:
  13190. # icc: Command line warning: ignoring option '-M'; no argument required
  13191. # The diagnosis changed in icc 8.0:
  13192. # icc: Command line remark: option '-MP' not supported
  13193. if (grep 'ignoring option' conftest.err ||
  13194. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  13195. am_cv_CC_dependencies_compiler_type=$depmode
  13196. break
  13197. fi
  13198. fi
  13199. done
  13200. cd ..
  13201. rm -rf conftest.dir
  13202. else
  13203. am_cv_CC_dependencies_compiler_type=none
  13204. fi
  13205. fi
  13206. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
  13207. $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
  13208. CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  13209. if
  13210. test "x$enable_dependency_tracking" != xno \
  13211. && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  13212. am__fastdepCC_TRUE=
  13213. am__fastdepCC_FALSE='#'
  13214. else
  13215. am__fastdepCC_TRUE='#'
  13216. am__fastdepCC_FALSE=
  13217. fi
  13218. depcc="$CXX" am_compiler_list=
  13219. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  13220. $as_echo_n "checking dependency style of $depcc... " >&6; }
  13221. if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
  13222. $as_echo_n "(cached) " >&6
  13223. else
  13224. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  13225. # We make a subdir and do the tests there. Otherwise we can end up
  13226. # making bogus files that we don't know about and never remove. For
  13227. # instance it was reported that on HP-UX the gcc test will end up
  13228. # making a dummy file named `D' -- because `-MD' means `put the output
  13229. # in D'.
  13230. rm -rf conftest.dir
  13231. mkdir conftest.dir
  13232. # Copy depcomp to subdir because otherwise we won't find it if we're
  13233. # using a relative directory.
  13234. cp "$am_depcomp" conftest.dir
  13235. cd conftest.dir
  13236. # We will build objects and dependencies in a subdirectory because
  13237. # it helps to detect inapplicable dependency modes. For instance
  13238. # both Tru64's cc and ICC support -MD to output dependencies as a
  13239. # side effect of compilation, but ICC will put the dependencies in
  13240. # the current directory while Tru64 will put them in the object
  13241. # directory.
  13242. mkdir sub
  13243. am_cv_CXX_dependencies_compiler_type=none
  13244. if test "$am_compiler_list" = ""; then
  13245. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  13246. fi
  13247. am__universal=false
  13248. case " $depcc " in #(
  13249. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  13250. esac
  13251. for depmode in $am_compiler_list; do
  13252. # Setup a source with many dependencies, because some compilers
  13253. # like to wrap large dependency lists on column 80 (with \), and
  13254. # we should not choose a depcomp mode which is confused by this.
  13255. #
  13256. # We need to recreate these files for each test, as the compiler may
  13257. # overwrite some of them when testing with obscure command lines.
  13258. # This happens at least with the AIX C compiler.
  13259. : > sub/conftest.c
  13260. for i in 1 2 3 4 5 6; do
  13261. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  13262. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  13263. # Solaris 8's {/usr,}/bin/sh.
  13264. touch sub/conftst$i.h
  13265. done
  13266. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  13267. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  13268. # mode. It turns out that the SunPro C++ compiler does not properly
  13269. # handle `-M -o', and we need to detect this. Also, some Intel
  13270. # versions had trouble with output in subdirs
  13271. am__obj=sub/conftest.${OBJEXT-o}
  13272. am__minus_obj="-o $am__obj"
  13273. case $depmode in
  13274. gcc)
  13275. # This depmode causes a compiler race in universal mode.
  13276. test "$am__universal" = false || continue
  13277. ;;
  13278. nosideeffect)
  13279. # after this tag, mechanisms are not by side-effect, so they'll
  13280. # only be used when explicitly requested
  13281. if test "x$enable_dependency_tracking" = xyes; then
  13282. continue
  13283. else
  13284. break
  13285. fi
  13286. ;;
  13287. msvc7 | msvc7msys | msvisualcpp | msvcmsys)
  13288. # This compiler won't grok `-c -o', but also, the minuso test has
  13289. # not run yet. These depmodes are late enough in the game, and
  13290. # so weak that their functioning should not be impacted.
  13291. am__obj=conftest.${OBJEXT-o}
  13292. am__minus_obj=
  13293. ;;
  13294. none) break ;;
  13295. esac
  13296. if depmode=$depmode \
  13297. source=sub/conftest.c object=$am__obj \
  13298. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  13299. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  13300. >/dev/null 2>conftest.err &&
  13301. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  13302. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  13303. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  13304. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  13305. # icc doesn't choke on unknown options, it will just issue warnings
  13306. # or remarks (even with -Werror). So we grep stderr for any message
  13307. # that says an option was ignored or not supported.
  13308. # When given -MP, icc 7.0 and 7.1 complain thusly:
  13309. # icc: Command line warning: ignoring option '-M'; no argument required
  13310. # The diagnosis changed in icc 8.0:
  13311. # icc: Command line remark: option '-MP' not supported
  13312. if (grep 'ignoring option' conftest.err ||
  13313. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  13314. am_cv_CXX_dependencies_compiler_type=$depmode
  13315. break
  13316. fi
  13317. fi
  13318. done
  13319. cd ..
  13320. rm -rf conftest.dir
  13321. else
  13322. am_cv_CXX_dependencies_compiler_type=none
  13323. fi
  13324. fi
  13325. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
  13326. $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
  13327. CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
  13328. if
  13329. test "x$enable_dependency_tracking" != xno \
  13330. && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
  13331. am__fastdepCXX_TRUE=
  13332. am__fastdepCXX_FALSE='#'
  13333. else
  13334. am__fastdepCXX_TRUE='#'
  13335. am__fastdepCXX_FALSE=
  13336. fi
  13337. if test "x$CC" != xcc; then
  13338. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
  13339. $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
  13340. else
  13341. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
  13342. $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
  13343. fi
  13344. set dummy $CC; ac_cc=`$as_echo "$2" |
  13345. sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
  13346. if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
  13347. $as_echo_n "(cached) " >&6
  13348. else
  13349. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13350. /* end confdefs.h. */
  13351. int
  13352. main ()
  13353. {
  13354. ;
  13355. return 0;
  13356. }
  13357. _ACEOF
  13358. # Make sure it works both with $CC and with simple cc.
  13359. # We do the test twice because some compilers refuse to overwrite an
  13360. # existing .o file with -o, though they will create one.
  13361. ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
  13362. rm -f conftest2.*
  13363. if { { case "(($ac_try" in
  13364. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13365. *) ac_try_echo=$ac_try;;
  13366. esac
  13367. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  13368. $as_echo "$ac_try_echo"; } >&5
  13369. (eval "$ac_try") 2>&5
  13370. ac_status=$?
  13371. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  13372. test $ac_status = 0; } &&
  13373. test -f conftest2.$ac_objext && { { case "(($ac_try" in
  13374. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13375. *) ac_try_echo=$ac_try;;
  13376. esac
  13377. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  13378. $as_echo "$ac_try_echo"; } >&5
  13379. (eval "$ac_try") 2>&5
  13380. ac_status=$?
  13381. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  13382. test $ac_status = 0; };
  13383. then
  13384. eval ac_cv_prog_cc_${ac_cc}_c_o=yes
  13385. if test "x$CC" != xcc; then
  13386. # Test first that cc exists at all.
  13387. if { ac_try='cc -c conftest.$ac_ext >&5'
  13388. { { case "(($ac_try" in
  13389. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13390. *) ac_try_echo=$ac_try;;
  13391. esac
  13392. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  13393. $as_echo "$ac_try_echo"; } >&5
  13394. (eval "$ac_try") 2>&5
  13395. ac_status=$?
  13396. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  13397. test $ac_status = 0; }; }; then
  13398. ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
  13399. rm -f conftest2.*
  13400. if { { case "(($ac_try" in
  13401. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13402. *) ac_try_echo=$ac_try;;
  13403. esac
  13404. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  13405. $as_echo "$ac_try_echo"; } >&5
  13406. (eval "$ac_try") 2>&5
  13407. ac_status=$?
  13408. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  13409. test $ac_status = 0; } &&
  13410. test -f conftest2.$ac_objext && { { case "(($ac_try" in
  13411. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13412. *) ac_try_echo=$ac_try;;
  13413. esac
  13414. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  13415. $as_echo "$ac_try_echo"; } >&5
  13416. (eval "$ac_try") 2>&5
  13417. ac_status=$?
  13418. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  13419. test $ac_status = 0; };
  13420. then
  13421. # cc works too.
  13422. :
  13423. else
  13424. # cc exists but doesn't like -o.
  13425. eval ac_cv_prog_cc_${ac_cc}_c_o=no
  13426. fi
  13427. fi
  13428. fi
  13429. else
  13430. eval ac_cv_prog_cc_${ac_cc}_c_o=no
  13431. fi
  13432. rm -f core conftest*
  13433. fi
  13434. if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
  13435. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  13436. $as_echo "yes" >&6; }
  13437. else
  13438. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13439. $as_echo "no" >&6; }
  13440. $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
  13441. fi
  13442. # FIXME: we rely on the cache variable name because
  13443. # there is no other way.
  13444. set dummy $CC
  13445. am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
  13446. eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
  13447. if test "$am_t" != yes; then
  13448. # Losing compiler, so override with the script.
  13449. # FIXME: It is wrong to rewrite CC.
  13450. # But if we don't then we get into trouble of one sort or another.
  13451. # A longer-term fix would be to have automake use am__CC in this case,
  13452. # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
  13453. CC="$am_aux_dir/compile $CC"
  13454. fi
  13455. # needed to handle 64-bit architecture
  13456. # The cast to long int works around a bug in the HP C Compiler
  13457. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  13458. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  13459. # This bug is HP SR number 8606223364.
  13460. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
  13461. $as_echo_n "checking size of int... " >&6; }
  13462. if ${ac_cv_sizeof_int+:} false; then :
  13463. $as_echo_n "(cached) " >&6
  13464. else
  13465. if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
  13466. else
  13467. if test "$ac_cv_type_int" = yes; then
  13468. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  13469. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  13470. as_fn_error 77 "cannot compute sizeof (int)
  13471. See \`config.log' for more details" "$LINENO" 5; }
  13472. else
  13473. ac_cv_sizeof_int=0
  13474. fi
  13475. fi
  13476. fi
  13477. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
  13478. $as_echo "$ac_cv_sizeof_int" >&6; }
  13479. cat >>confdefs.h <<_ACEOF
  13480. #define SIZEOF_INT $ac_cv_sizeof_int
  13481. _ACEOF
  13482. # The cast to long int works around a bug in the HP C Compiler
  13483. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  13484. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  13485. # This bug is HP SR number 8606223364.
  13486. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
  13487. $as_echo_n "checking size of long... " >&6; }
  13488. if ${ac_cv_sizeof_long+:} false; then :
  13489. $as_echo_n "(cached) " >&6
  13490. else
  13491. if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
  13492. else
  13493. if test "$ac_cv_type_long" = yes; then
  13494. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  13495. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  13496. as_fn_error 77 "cannot compute sizeof (long)
  13497. See \`config.log' for more details" "$LINENO" 5; }
  13498. else
  13499. ac_cv_sizeof_long=0
  13500. fi
  13501. fi
  13502. fi
  13503. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
  13504. $as_echo "$ac_cv_sizeof_long" >&6; }
  13505. cat >>confdefs.h <<_ACEOF
  13506. #define SIZEOF_LONG $ac_cv_sizeof_long
  13507. _ACEOF
  13508. # The cast to long int works around a bug in the HP C Compiler
  13509. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  13510. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  13511. # This bug is HP SR number 8606223364.
  13512. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
  13513. $as_echo_n "checking size of size_t... " >&6; }
  13514. if ${ac_cv_sizeof_size_t+:} false; then :
  13515. $as_echo_n "(cached) " >&6
  13516. else
  13517. if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (size_t))" "ac_cv_sizeof_size_t" "$ac_includes_default"; then :
  13518. else
  13519. if test "$ac_cv_type_size_t" = yes; then
  13520. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  13521. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  13522. as_fn_error 77 "cannot compute sizeof (size_t)
  13523. See \`config.log' for more details" "$LINENO" 5; }
  13524. else
  13525. ac_cv_sizeof_size_t=0
  13526. fi
  13527. fi
  13528. fi
  13529. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
  13530. $as_echo "$ac_cv_sizeof_size_t" >&6; }
  13531. cat >>confdefs.h <<_ACEOF
  13532. #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
  13533. _ACEOF
  13534. #------------------------------------------------------------------------
  13535. # Handle the --prefix=... option
  13536. #------------------------------------------------------------------------
  13537. if test "${prefix}" = "NONE"; then
  13538. prefix=/usr/local
  13539. fi
  13540. if test "${exec_prefix}" = "NONE"; then
  13541. exec_prefix=$prefix
  13542. fi
  13543. # libdir must be a fully qualified path (not ${exec_prefix}/lib)
  13544. eval libdir="$libdir"
  13545. ################################
  13546. # Deal with debugging options
  13547. ################################
  13548. # Check whether --enable-debug was given.
  13549. if test "${enable_debug+set}" = set; then :
  13550. enableval=$enable_debug;
  13551. else
  13552. enable_debug=no
  13553. fi
  13554. if test x$enable_debug = xyes; then
  13555. DEBUG_TRUE=
  13556. DEBUG_FALSE='#'
  13557. else
  13558. DEBUG_TRUE='#'
  13559. DEBUG_FALSE=
  13560. fi
  13561. ################################
  13562. # Check for the LUB library
  13563. ################################
  13564. LUB_LIBS="-llub"
  13565. LUB_CFLAGS=""
  13566. if test "x$LUB_LIBS" = "x"; then
  13567. as_fn_error $? "Cannot find the \"Little Useful Bits\" library" "$LINENO" 5
  13568. fi
  13569. ################################
  13570. # Check for the KONF library
  13571. ################################
  13572. KONF_LIBS="-lkonf"
  13573. KONF_CFLAGS=""
  13574. if test "x$KONF_LIBS" = "x"; then
  13575. as_fn_error $? "Cannot find the \"CLI config\" library" "$LINENO" 5
  13576. fi
  13577. ################################
  13578. # Check for the TINYRL library
  13579. ################################
  13580. TINYRL_LIBS="-ltinyrl"
  13581. TINYRL_CFLAGS=""
  13582. if test "x$TINYRL_LIBS" = "x"; then
  13583. as_fn_error $? "Cannot find the \"Tiny Readline\" library" "$LINENO" 5
  13584. fi
  13585. ################################
  13586. # Check for the TINYXML library
  13587. ################################
  13588. TINYXML_LIBS="-ltinyxml"
  13589. TINYXML_CXXFLAGS="-std=gnu++98"
  13590. if test "x$TINYXML_LIBS" = "x"; then
  13591. as_fn_error $? "Cannot find the \"Tiny XML\" library" "$LINENO" 5
  13592. fi
  13593. ################################
  13594. # Check for the PTHREAD library
  13595. ################################
  13596. # Check whether --with-pthread was given.
  13597. if test "${with_pthread+set}" = set; then :
  13598. withval=$with_pthread;
  13599. fi
  13600. for ac_header in pthread.h
  13601. do :
  13602. ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
  13603. if test "x$ac_cv_header_pthread_h" = xyes; then :
  13604. cat >>confdefs.h <<_ACEOF
  13605. #define HAVE_PTHREAD_H 1
  13606. _ACEOF
  13607. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
  13608. $as_echo_n "checking for pthread_create in -lpthread... " >&6; }
  13609. if ${ac_cv_lib_pthread_pthread_create+:} false; then :
  13610. $as_echo_n "(cached) " >&6
  13611. else
  13612. ac_check_lib_save_LIBS=$LIBS
  13613. LIBS="-lpthread $LIBS"
  13614. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13615. /* end confdefs.h. */
  13616. /* Override any GCC internal prototype to avoid an error.
  13617. Use char because int might match the return type of a GCC
  13618. builtin and then its argument prototype would still apply. */
  13619. #ifdef __cplusplus
  13620. extern "C"
  13621. #endif
  13622. char pthread_create ();
  13623. int
  13624. main ()
  13625. {
  13626. return pthread_create ();
  13627. ;
  13628. return 0;
  13629. }
  13630. _ACEOF
  13631. if ac_fn_c_try_link "$LINENO"; then :
  13632. ac_cv_lib_pthread_pthread_create=yes
  13633. else
  13634. ac_cv_lib_pthread_pthread_create=no
  13635. fi
  13636. rm -f core conftest.err conftest.$ac_objext \
  13637. conftest$ac_exeext conftest.$ac_ext
  13638. LIBS=$ac_check_lib_save_LIBS
  13639. fi
  13640. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
  13641. $as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
  13642. if test "x$ac_cv_lib_pthread_pthread_create" = xyes; then :
  13643. $as_echo "#define HAVE_LIBPTHREAD /**/" >>confdefs.h
  13644. if test "x$with_pthread" = "x"; then
  13645. PTHREAD_LIBS="-lpthread"
  13646. else
  13647. PTHREAD_CFLAGS="-I$with_pthread/include"
  13648. PTHREAD_LIBS="-L$with_pthread/lib -lpthread"
  13649. fi
  13650. fi
  13651. fi
  13652. done
  13653. if test "x$PTHREAD_LIBS" = "x"; then
  13654. as_fn_error $? "Cannot find the POSIX threads library" "$LINENO" 5
  13655. fi
  13656. ################################
  13657. # Check for the RT library
  13658. ################################
  13659. # Check whether --with-rt was given.
  13660. if test "${with_rt+set}" = set; then :
  13661. withval=$with_rt;
  13662. fi
  13663. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
  13664. $as_echo_n "checking for clock_gettime in -lrt... " >&6; }
  13665. if ${ac_cv_lib_rt_clock_gettime+:} false; then :
  13666. $as_echo_n "(cached) " >&6
  13667. else
  13668. ac_check_lib_save_LIBS=$LIBS
  13669. LIBS="-lrt $LIBS"
  13670. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13671. /* end confdefs.h. */
  13672. /* Override any GCC internal prototype to avoid an error.
  13673. Use char because int might match the return type of a GCC
  13674. builtin and then its argument prototype would still apply. */
  13675. #ifdef __cplusplus
  13676. extern "C"
  13677. #endif
  13678. char clock_gettime ();
  13679. int
  13680. main ()
  13681. {
  13682. return clock_gettime ();
  13683. ;
  13684. return 0;
  13685. }
  13686. _ACEOF
  13687. if ac_fn_c_try_link "$LINENO"; then :
  13688. ac_cv_lib_rt_clock_gettime=yes
  13689. else
  13690. ac_cv_lib_rt_clock_gettime=no
  13691. fi
  13692. rm -f core conftest.err conftest.$ac_objext \
  13693. conftest$ac_exeext conftest.$ac_ext
  13694. LIBS=$ac_check_lib_save_LIBS
  13695. fi
  13696. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
  13697. $as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
  13698. if test "x$ac_cv_lib_rt_clock_gettime" = xyes; then :
  13699. $as_echo "#define HAVE_LIBRT /**/" >>confdefs.h
  13700. if test "x$with_rt" = "x"; then
  13701. RT_LIBS="-lrt"
  13702. else
  13703. RT_CFLAGS="-I$with_rt/include"
  13704. RT_LIBS="-L$with_rt/lib -lrt"
  13705. fi
  13706. fi
  13707. ################################
  13708. # Check for the TCL library
  13709. ################################
  13710. TCL_CONFIG=${libdir}/tclConfig.sh
  13711. # Check whether --with-tcl was given.
  13712. if test "${with_tcl+set}" = set; then :
  13713. withval=$with_tcl; if test -e $TCL_CONFIG; then
  13714. source ${TCL_CONFIG} # get TCL_VERSION
  13715. if test "${with_tcl}" = "yes"; then
  13716. TCL_CFLAGS="${TCL_INCLUDE_SPEC}"
  13717. TCL_LIBS="${TCL_LIB_SPEC}"
  13718. else
  13719. TCL_CFLAGS="-I${with_tcl}/include"
  13720. TCL_LIBS="-L${with_tcl}/lib -ltcl"
  13721. fi
  13722. CPPFLAGS="$CPPFLAGS $TCL_CFLAGS"
  13723. for ac_header in tcl.h
  13724. do :
  13725. ac_fn_c_check_header_mongrel "$LINENO" "tcl.h" "ac_cv_header_tcl_h" "$ac_includes_default"
  13726. if test "x$ac_cv_header_tcl_h" = xyes; then :
  13727. cat >>confdefs.h <<_ACEOF
  13728. #define HAVE_TCL_H 1
  13729. _ACEOF
  13730. as_ac_Lib=`$as_echo "ac_cv_lib_tcl${TCL_VERSION}''_Tcl_CreateInterp" | $as_tr_sh`
  13731. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tcl_CreateInterp in -ltcl${TCL_VERSION}" >&5
  13732. $as_echo_n "checking for Tcl_CreateInterp in -ltcl${TCL_VERSION}... " >&6; }
  13733. if eval \${$as_ac_Lib+:} false; then :
  13734. $as_echo_n "(cached) " >&6
  13735. else
  13736. ac_check_lib_save_LIBS=$LIBS
  13737. LIBS="-ltcl${TCL_VERSION} $LIBS"
  13738. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13739. /* end confdefs.h. */
  13740. /* Override any GCC internal prototype to avoid an error.
  13741. Use char because int might match the return type of a GCC
  13742. builtin and then its argument prototype would still apply. */
  13743. #ifdef __cplusplus
  13744. extern "C"
  13745. #endif
  13746. char Tcl_CreateInterp ();
  13747. int
  13748. main ()
  13749. {
  13750. return Tcl_CreateInterp ();
  13751. ;
  13752. return 0;
  13753. }
  13754. _ACEOF
  13755. if ac_fn_c_try_link "$LINENO"; then :
  13756. eval "$as_ac_Lib=yes"
  13757. else
  13758. eval "$as_ac_Lib=no"
  13759. fi
  13760. rm -f core conftest.err conftest.$ac_objext \
  13761. conftest$ac_exeext conftest.$ac_ext
  13762. LIBS=$ac_check_lib_save_LIBS
  13763. fi
  13764. eval ac_res=\$$as_ac_Lib
  13765. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  13766. $as_echo "$ac_res" >&6; }
  13767. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  13768. $as_echo "#define HAVE_LIBTCL /**/" >>confdefs.h
  13769. have_tcl="yes"
  13770. fi
  13771. fi
  13772. done
  13773. fi
  13774. fi
  13775. if test "x${have_tcl}" = "xyes"; then
  13776. TCL_TRUE=
  13777. TCL_FALSE='#'
  13778. else
  13779. TCL_TRUE='#'
  13780. TCL_FALSE=
  13781. fi
  13782. ################################
  13783. # Check for inclusion of lub_heap
  13784. ################################
  13785. # Check whether --enable-lubheap was given.
  13786. if test "${enable_lubheap+set}" = set; then :
  13787. enableval=$enable_lubheap;
  13788. else
  13789. enable_lubheap=no
  13790. fi
  13791. if test "x$enable_lubheap" = "xyes"; then
  13792. LUBHEAP_TRUE=
  13793. LUBHEAP_FALSE='#'
  13794. else
  13795. LUBHEAP_TRUE='#'
  13796. LUBHEAP_FALSE=
  13797. fi
  13798. if test "x$enable_lubheap" = "xyes"; then
  13799. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Replacing standard memory libraries with lubheap" >&5
  13800. $as_echo "$as_me: WARNING: Replacing standard memory libraries with lubheap" >&2;}
  13801. LUBHEAP_LIBS="-llubheap"
  13802. LUBHEAP_CFLAGS=""
  13803. if test "x$LUBHEAP_LIBS" = "x"; then
  13804. as_fn_error $? "Cannot find the \"Little Useful Bits Heap\" library" "$LINENO" 5
  13805. fi
  13806. fi
  13807. ################################
  13808. # Check for linkage with GPL libraries
  13809. ################################
  13810. # Check whether --enable-gpl was given.
  13811. if test "${enable_gpl+set}" = set; then :
  13812. enableval=$enable_gpl;
  13813. else
  13814. enable_gpl=yes
  13815. fi
  13816. if test "x$enable_gpl" = "xyes"; then
  13817. ################################
  13818. # Check for BFD library
  13819. ################################
  13820. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Linking with GPL licence libraries" >&5
  13821. $as_echo "$as_me: WARNING: Linking with GPL licence libraries" >&2;}
  13822. for ac_header in bfd.h
  13823. do :
  13824. ac_fn_c_check_header_mongrel "$LINENO" "bfd.h" "ac_cv_header_bfd_h" "$ac_includes_default"
  13825. if test "x$ac_cv_header_bfd_h" = xyes; then :
  13826. cat >>confdefs.h <<_ACEOF
  13827. #define HAVE_BFD_H 1
  13828. _ACEOF
  13829. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bfd_init in -lbfd" >&5
  13830. $as_echo_n "checking for bfd_init in -lbfd... " >&6; }
  13831. if ${ac_cv_lib_bfd_bfd_init+:} false; then :
  13832. $as_echo_n "(cached) " >&6
  13833. else
  13834. ac_check_lib_save_LIBS=$LIBS
  13835. LIBS="-lbfd $LIBS"
  13836. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13837. /* end confdefs.h. */
  13838. /* Override any GCC internal prototype to avoid an error.
  13839. Use char because int might match the return type of a GCC
  13840. builtin and then its argument prototype would still apply. */
  13841. #ifdef __cplusplus
  13842. extern "C"
  13843. #endif
  13844. char bfd_init ();
  13845. int
  13846. main ()
  13847. {
  13848. return bfd_init ();
  13849. ;
  13850. return 0;
  13851. }
  13852. _ACEOF
  13853. if ac_fn_c_try_link "$LINENO"; then :
  13854. ac_cv_lib_bfd_bfd_init=yes
  13855. else
  13856. ac_cv_lib_bfd_bfd_init=no
  13857. fi
  13858. rm -f core conftest.err conftest.$ac_objext \
  13859. conftest$ac_exeext conftest.$ac_ext
  13860. LIBS=$ac_check_lib_save_LIBS
  13861. fi
  13862. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bfd_bfd_init" >&5
  13863. $as_echo "$ac_cv_lib_bfd_bfd_init" >&6; }
  13864. if test "x$ac_cv_lib_bfd_bfd_init" = xyes; then :
  13865. $as_echo "#define HAVE_LIBBFD /**/" >>confdefs.h
  13866. BFD_LIBS="-lbfd -liberty"
  13867. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libintl_dgettext in -lintl" >&5
  13868. $as_echo_n "checking for libintl_dgettext in -lintl... " >&6; }
  13869. if ${ac_cv_lib_intl_libintl_dgettext+:} false; then :
  13870. $as_echo_n "(cached) " >&6
  13871. else
  13872. ac_check_lib_save_LIBS=$LIBS
  13873. LIBS="-lintl $LIBS"
  13874. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13875. /* end confdefs.h. */
  13876. /* Override any GCC internal prototype to avoid an error.
  13877. Use char because int might match the return type of a GCC
  13878. builtin and then its argument prototype would still apply. */
  13879. #ifdef __cplusplus
  13880. extern "C"
  13881. #endif
  13882. char libintl_dgettext ();
  13883. int
  13884. main ()
  13885. {
  13886. return libintl_dgettext ();
  13887. ;
  13888. return 0;
  13889. }
  13890. _ACEOF
  13891. if ac_fn_c_try_link "$LINENO"; then :
  13892. ac_cv_lib_intl_libintl_dgettext=yes
  13893. else
  13894. ac_cv_lib_intl_libintl_dgettext=no
  13895. fi
  13896. rm -f core conftest.err conftest.$ac_objext \
  13897. conftest$ac_exeext conftest.$ac_ext
  13898. LIBS=$ac_check_lib_save_LIBS
  13899. fi
  13900. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_libintl_dgettext" >&5
  13901. $as_echo "$ac_cv_lib_intl_libintl_dgettext" >&6; }
  13902. if test "x$ac_cv_lib_intl_libintl_dgettext" = xyes; then :
  13903. $as_echo "#define HAVE_LIBINTL /**/" >>confdefs.h
  13904. BFD_LIBS="$BFD_LIBS -lintl"
  13905. fi
  13906. fi
  13907. fi
  13908. done
  13909. else
  13910. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Skipping BFD library checks because of GPL Licence" >&5
  13911. $as_echo "$as_me: WARNING: Skipping BFD library checks because of GPL Licence" >&2;}
  13912. fi
  13913. ################################
  13914. # Check for regex.h
  13915. ################################
  13916. for ac_header in regex.h
  13917. do :
  13918. ac_fn_c_check_header_mongrel "$LINENO" "regex.h" "ac_cv_header_regex_h" "$ac_includes_default"
  13919. if test "x$ac_cv_header_regex_h" = xyes; then :
  13920. cat >>confdefs.h <<_ACEOF
  13921. #define HAVE_REGEX_H 1
  13922. _ACEOF
  13923. else
  13924. as_fn_error $? "regex.h not found: regular expressions are not supported" "$LINENO" 5
  13925. fi
  13926. done
  13927. ################################
  13928. # Check for getopt_long()
  13929. ################################
  13930. for ac_header in getopt.h
  13931. do :
  13932. ac_fn_c_check_header_mongrel "$LINENO" "getopt.h" "ac_cv_header_getopt_h" "$ac_includes_default"
  13933. if test "x$ac_cv_header_getopt_h" = xyes; then :
  13934. cat >>confdefs.h <<_ACEOF
  13935. #define HAVE_GETOPT_H 1
  13936. _ACEOF
  13937. else
  13938. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: getopt.h not found: only short parameters can be used on command line" >&5
  13939. $as_echo "$as_me: WARNING: getopt.h not found: only short parameters can be used on command line" >&2;}
  13940. fi
  13941. done
  13942. ################################
  13943. # Check for locale.h
  13944. ################################
  13945. for ac_header in locale.h
  13946. do :
  13947. ac_fn_c_check_header_mongrel "$LINENO" "locale.h" "ac_cv_header_locale_h" "$ac_includes_default"
  13948. if test "x$ac_cv_header_locale_h" = xyes; then :
  13949. cat >>confdefs.h <<_ACEOF
  13950. #define HAVE_LOCALE_H 1
  13951. _ACEOF
  13952. else
  13953. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: locale.h not found: the locales is not supported" >&5
  13954. $as_echo "$as_me: WARNING: locale.h not found: the locales is not supported" >&2;}
  13955. fi
  13956. done
  13957. ################################
  13958. # Check for CODESET within nl_langinfo
  13959. ################################
  13960. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
  13961. $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
  13962. if ${am_cv_langinfo_codeset+:} false; then :
  13963. $as_echo_n "(cached) " >&6
  13964. else
  13965. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13966. /* end confdefs.h. */
  13967. #include <langinfo.h>
  13968. int
  13969. main ()
  13970. {
  13971. char* cs = nl_langinfo(CODESET); return !cs;
  13972. ;
  13973. return 0;
  13974. }
  13975. _ACEOF
  13976. if ac_fn_c_try_link "$LINENO"; then :
  13977. am_cv_langinfo_codeset=yes
  13978. else
  13979. am_cv_langinfo_codeset=no
  13980. fi
  13981. rm -f core conftest.err conftest.$ac_objext \
  13982. conftest$ac_exeext conftest.$ac_ext
  13983. fi
  13984. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
  13985. $as_echo "$am_cv_langinfo_codeset" >&6; }
  13986. if test $am_cv_langinfo_codeset = yes; then
  13987. $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
  13988. fi
  13989. ################################
  13990. # Check for pwd.h and grp.h
  13991. ################################
  13992. for ac_header in pwd.h
  13993. do :
  13994. ac_fn_c_check_header_mongrel "$LINENO" "pwd.h" "ac_cv_header_pwd_h" "$ac_includes_default"
  13995. if test "x$ac_cv_header_pwd_h" = xyes; then :
  13996. cat >>confdefs.h <<_ACEOF
  13997. #define HAVE_PWD_H 1
  13998. _ACEOF
  13999. else
  14000. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: pwd.h not found: the pwd operations is not supported" >&5
  14001. $as_echo "$as_me: WARNING: pwd.h not found: the pwd operations is not supported" >&2;}
  14002. fi
  14003. done
  14004. for ac_header in grp.h
  14005. do :
  14006. ac_fn_c_check_header_mongrel "$LINENO" "grp.h" "ac_cv_header_grp_h" "$ac_includes_default"
  14007. if test "x$ac_cv_header_grp_h" = xyes; then :
  14008. cat >>confdefs.h <<_ACEOF
  14009. #define HAVE_GRP_H 1
  14010. _ACEOF
  14011. else
  14012. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: grp.h not found: the grp operations is not supported" >&5
  14013. $as_echo "$as_me: WARNING: grp.h not found: the grp operations is not supported" >&2;}
  14014. fi
  14015. done
  14016. ################################
  14017. # Check for chroot
  14018. ################################
  14019. for ac_func in chroot
  14020. do :
  14021. ac_fn_c_check_func "$LINENO" "chroot" "ac_cv_func_chroot"
  14022. if test "x$ac_cv_func_chroot" = xyes; then :
  14023. cat >>confdefs.h <<_ACEOF
  14024. #define HAVE_CHROOT 1
  14025. _ACEOF
  14026. else
  14027. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: chroot() not found: the choot is not supported" >&5
  14028. $as_echo "$as_me: WARNING: chroot() not found: the choot is not supported" >&2;}
  14029. fi
  14030. done
  14031. ac_config_files="$ac_config_files Makefile"
  14032. cat >confcache <<\_ACEOF
  14033. # This file is a shell script that caches the results of configure
  14034. # tests run on this system so they can be shared between configure
  14035. # scripts and configure runs, see configure's option --config-cache.
  14036. # It is not useful on other systems. If it contains results you don't
  14037. # want to keep, you may remove or edit it.
  14038. #
  14039. # config.status only pays attention to the cache file if you give it
  14040. # the --recheck option to rerun configure.
  14041. #
  14042. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  14043. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  14044. # following values.
  14045. _ACEOF
  14046. # The following way of writing the cache mishandles newlines in values,
  14047. # but we know of no workaround that is simple, portable, and efficient.
  14048. # So, we kill variables containing newlines.
  14049. # Ultrix sh set writes to stderr and can't be redirected directly,
  14050. # and sets the high bit in the cache file unless we assign to the vars.
  14051. (
  14052. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  14053. eval ac_val=\$$ac_var
  14054. case $ac_val in #(
  14055. *${as_nl}*)
  14056. case $ac_var in #(
  14057. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  14058. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  14059. esac
  14060. case $ac_var in #(
  14061. _ | IFS | as_nl) ;; #(
  14062. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  14063. *) { eval $ac_var=; unset $ac_var;} ;;
  14064. esac ;;
  14065. esac
  14066. done
  14067. (set) 2>&1 |
  14068. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  14069. *${as_nl}ac_space=\ *)
  14070. # `set' does not quote correctly, so add quotes: double-quote
  14071. # substitution turns \\\\ into \\, and sed turns \\ into \.
  14072. sed -n \
  14073. "s/'/'\\\\''/g;
  14074. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  14075. ;; #(
  14076. *)
  14077. # `set' quotes correctly as required by POSIX, so do not add quotes.
  14078. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  14079. ;;
  14080. esac |
  14081. sort
  14082. ) |
  14083. sed '
  14084. /^ac_cv_env_/b end
  14085. t clear
  14086. :clear
  14087. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  14088. t end
  14089. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  14090. :end' >>confcache
  14091. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  14092. if test -w "$cache_file"; then
  14093. if test "x$cache_file" != "x/dev/null"; then
  14094. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  14095. $as_echo "$as_me: updating cache $cache_file" >&6;}
  14096. if test ! -f "$cache_file" || test -h "$cache_file"; then
  14097. cat confcache >"$cache_file"
  14098. else
  14099. case $cache_file in #(
  14100. */* | ?:*)
  14101. mv -f confcache "$cache_file"$$ &&
  14102. mv -f "$cache_file"$$ "$cache_file" ;; #(
  14103. *)
  14104. mv -f confcache "$cache_file" ;;
  14105. esac
  14106. fi
  14107. fi
  14108. else
  14109. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  14110. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  14111. fi
  14112. fi
  14113. rm -f confcache
  14114. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  14115. # Let make expand exec_prefix.
  14116. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  14117. DEFS=-DHAVE_CONFIG_H
  14118. ac_libobjs=
  14119. ac_ltlibobjs=
  14120. U=
  14121. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  14122. # 1. Remove the extension, and $U if already installed.
  14123. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  14124. ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  14125. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  14126. # will be set to the directory where LIBOBJS objects are built.
  14127. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  14128. as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  14129. done
  14130. LIBOBJS=$ac_libobjs
  14131. LTLIBOBJS=$ac_ltlibobjs
  14132. if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
  14133. as_fn_error $? "conditional \"AMDEP\" was never defined.
  14134. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  14135. fi
  14136. if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  14137. as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
  14138. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  14139. fi
  14140. if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
  14141. as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
  14142. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  14143. fi
  14144. if test -n "$EXEEXT"; then
  14145. am__EXEEXT_TRUE=
  14146. am__EXEEXT_FALSE='#'
  14147. else
  14148. am__EXEEXT_TRUE='#'
  14149. am__EXEEXT_FALSE=
  14150. fi
  14151. if test -z "${DEBUG_TRUE}" && test -z "${DEBUG_FALSE}"; then
  14152. as_fn_error $? "conditional \"DEBUG\" was never defined.
  14153. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  14154. fi
  14155. if test -z "${TCL_TRUE}" && test -z "${TCL_FALSE}"; then
  14156. as_fn_error $? "conditional \"TCL\" was never defined.
  14157. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  14158. fi
  14159. if test -z "${LUBHEAP_TRUE}" && test -z "${LUBHEAP_FALSE}"; then
  14160. as_fn_error $? "conditional \"LUBHEAP\" was never defined.
  14161. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  14162. fi
  14163. : "${CONFIG_STATUS=./config.status}"
  14164. ac_write_fail=0
  14165. ac_clean_files_save=$ac_clean_files
  14166. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  14167. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  14168. $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  14169. as_write_fail=0
  14170. cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  14171. #! $SHELL
  14172. # Generated by $as_me.
  14173. # Run this file to recreate the current configuration.
  14174. # Compiler output produced by configure, useful for debugging
  14175. # configure, is in config.log if it exists.
  14176. debug=false
  14177. ac_cs_recheck=false
  14178. ac_cs_silent=false
  14179. SHELL=\${CONFIG_SHELL-$SHELL}
  14180. export SHELL
  14181. _ASEOF
  14182. cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  14183. ## -------------------- ##
  14184. ## M4sh Initialization. ##
  14185. ## -------------------- ##
  14186. # Be more Bourne compatible
  14187. DUALCASE=1; export DUALCASE # for MKS sh
  14188. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  14189. emulate sh
  14190. NULLCMD=:
  14191. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  14192. # is contrary to our usage. Disable this feature.
  14193. alias -g '${1+"$@"}'='"$@"'
  14194. setopt NO_GLOB_SUBST
  14195. else
  14196. case `(set -o) 2>/dev/null` in #(
  14197. *posix*) :
  14198. set -o posix ;; #(
  14199. *) :
  14200. ;;
  14201. esac
  14202. fi
  14203. as_nl='
  14204. '
  14205. export as_nl
  14206. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  14207. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  14208. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  14209. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  14210. # Prefer a ksh shell builtin over an external printf program on Solaris,
  14211. # but without wasting forks for bash or zsh.
  14212. if test -z "$BASH_VERSION$ZSH_VERSION" \
  14213. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  14214. as_echo='print -r --'
  14215. as_echo_n='print -rn --'
  14216. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  14217. as_echo='printf %s\n'
  14218. as_echo_n='printf %s'
  14219. else
  14220. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  14221. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  14222. as_echo_n='/usr/ucb/echo -n'
  14223. else
  14224. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  14225. as_echo_n_body='eval
  14226. arg=$1;
  14227. case $arg in #(
  14228. *"$as_nl"*)
  14229. expr "X$arg" : "X\\(.*\\)$as_nl";
  14230. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  14231. esac;
  14232. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  14233. '
  14234. export as_echo_n_body
  14235. as_echo_n='sh -c $as_echo_n_body as_echo'
  14236. fi
  14237. export as_echo_body
  14238. as_echo='sh -c $as_echo_body as_echo'
  14239. fi
  14240. # The user is always right.
  14241. if test "${PATH_SEPARATOR+set}" != set; then
  14242. PATH_SEPARATOR=:
  14243. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  14244. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  14245. PATH_SEPARATOR=';'
  14246. }
  14247. fi
  14248. # IFS
  14249. # We need space, tab and new line, in precisely that order. Quoting is
  14250. # there to prevent editors from complaining about space-tab.
  14251. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  14252. # splitting by setting IFS to empty value.)
  14253. IFS=" "" $as_nl"
  14254. # Find who we are. Look in the path if we contain no directory separator.
  14255. as_myself=
  14256. case $0 in #((
  14257. *[\\/]* ) as_myself=$0 ;;
  14258. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  14259. for as_dir in $PATH
  14260. do
  14261. IFS=$as_save_IFS
  14262. test -z "$as_dir" && as_dir=.
  14263. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  14264. done
  14265. IFS=$as_save_IFS
  14266. ;;
  14267. esac
  14268. # We did not find ourselves, most probably we were run as `sh COMMAND'
  14269. # in which case we are not to be found in the path.
  14270. if test "x$as_myself" = x; then
  14271. as_myself=$0
  14272. fi
  14273. if test ! -f "$as_myself"; then
  14274. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  14275. exit 1
  14276. fi
  14277. # Unset variables that we do not need and which cause bugs (e.g. in
  14278. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  14279. # suppresses any "Segmentation fault" message there. '((' could
  14280. # trigger a bug in pdksh 5.2.14.
  14281. for as_var in BASH_ENV ENV MAIL MAILPATH
  14282. do eval test x\${$as_var+set} = xset \
  14283. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  14284. done
  14285. PS1='$ '
  14286. PS2='> '
  14287. PS4='+ '
  14288. # NLS nuisances.
  14289. LC_ALL=C
  14290. export LC_ALL
  14291. LANGUAGE=C
  14292. export LANGUAGE
  14293. # CDPATH.
  14294. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  14295. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  14296. # ----------------------------------------
  14297. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  14298. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  14299. # script with STATUS, using 1 if that was 0.
  14300. as_fn_error ()
  14301. {
  14302. as_status=$1; test $as_status -eq 0 && as_status=1
  14303. if test "$4"; then
  14304. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  14305. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  14306. fi
  14307. $as_echo "$as_me: error: $2" >&2
  14308. as_fn_exit $as_status
  14309. } # as_fn_error
  14310. # as_fn_set_status STATUS
  14311. # -----------------------
  14312. # Set $? to STATUS, without forking.
  14313. as_fn_set_status ()
  14314. {
  14315. return $1
  14316. } # as_fn_set_status
  14317. # as_fn_exit STATUS
  14318. # -----------------
  14319. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  14320. as_fn_exit ()
  14321. {
  14322. set +e
  14323. as_fn_set_status $1
  14324. exit $1
  14325. } # as_fn_exit
  14326. # as_fn_unset VAR
  14327. # ---------------
  14328. # Portably unset VAR.
  14329. as_fn_unset ()
  14330. {
  14331. { eval $1=; unset $1;}
  14332. }
  14333. as_unset=as_fn_unset
  14334. # as_fn_append VAR VALUE
  14335. # ----------------------
  14336. # Append the text in VALUE to the end of the definition contained in VAR. Take
  14337. # advantage of any shell optimizations that allow amortized linear growth over
  14338. # repeated appends, instead of the typical quadratic growth present in naive
  14339. # implementations.
  14340. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  14341. eval 'as_fn_append ()
  14342. {
  14343. eval $1+=\$2
  14344. }'
  14345. else
  14346. as_fn_append ()
  14347. {
  14348. eval $1=\$$1\$2
  14349. }
  14350. fi # as_fn_append
  14351. # as_fn_arith ARG...
  14352. # ------------------
  14353. # Perform arithmetic evaluation on the ARGs, and store the result in the
  14354. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  14355. # must be portable across $(()) and expr.
  14356. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  14357. eval 'as_fn_arith ()
  14358. {
  14359. as_val=$(( $* ))
  14360. }'
  14361. else
  14362. as_fn_arith ()
  14363. {
  14364. as_val=`expr "$@" || test $? -eq 1`
  14365. }
  14366. fi # as_fn_arith
  14367. if expr a : '\(a\)' >/dev/null 2>&1 &&
  14368. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  14369. as_expr=expr
  14370. else
  14371. as_expr=false
  14372. fi
  14373. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  14374. as_basename=basename
  14375. else
  14376. as_basename=false
  14377. fi
  14378. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  14379. as_dirname=dirname
  14380. else
  14381. as_dirname=false
  14382. fi
  14383. as_me=`$as_basename -- "$0" ||
  14384. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  14385. X"$0" : 'X\(//\)$' \| \
  14386. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  14387. $as_echo X/"$0" |
  14388. sed '/^.*\/\([^/][^/]*\)\/*$/{
  14389. s//\1/
  14390. q
  14391. }
  14392. /^X\/\(\/\/\)$/{
  14393. s//\1/
  14394. q
  14395. }
  14396. /^X\/\(\/\).*/{
  14397. s//\1/
  14398. q
  14399. }
  14400. s/.*/./; q'`
  14401. # Avoid depending upon Character Ranges.
  14402. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  14403. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  14404. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  14405. as_cr_digits='0123456789'
  14406. as_cr_alnum=$as_cr_Letters$as_cr_digits
  14407. ECHO_C= ECHO_N= ECHO_T=
  14408. case `echo -n x` in #(((((
  14409. -n*)
  14410. case `echo 'xy\c'` in
  14411. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  14412. xy) ECHO_C='\c';;
  14413. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  14414. ECHO_T=' ';;
  14415. esac;;
  14416. *)
  14417. ECHO_N='-n';;
  14418. esac
  14419. rm -f conf$$ conf$$.exe conf$$.file
  14420. if test -d conf$$.dir; then
  14421. rm -f conf$$.dir/conf$$.file
  14422. else
  14423. rm -f conf$$.dir
  14424. mkdir conf$$.dir 2>/dev/null
  14425. fi
  14426. if (echo >conf$$.file) 2>/dev/null; then
  14427. if ln -s conf$$.file conf$$ 2>/dev/null; then
  14428. as_ln_s='ln -s'
  14429. # ... but there are two gotchas:
  14430. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  14431. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  14432. # In both cases, we have to default to `cp -p'.
  14433. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  14434. as_ln_s='cp -p'
  14435. elif ln conf$$.file conf$$ 2>/dev/null; then
  14436. as_ln_s=ln
  14437. else
  14438. as_ln_s='cp -p'
  14439. fi
  14440. else
  14441. as_ln_s='cp -p'
  14442. fi
  14443. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  14444. rmdir conf$$.dir 2>/dev/null
  14445. # as_fn_mkdir_p
  14446. # -------------
  14447. # Create "$as_dir" as a directory, including parents if necessary.
  14448. as_fn_mkdir_p ()
  14449. {
  14450. case $as_dir in #(
  14451. -*) as_dir=./$as_dir;;
  14452. esac
  14453. test -d "$as_dir" || eval $as_mkdir_p || {
  14454. as_dirs=
  14455. while :; do
  14456. case $as_dir in #(
  14457. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  14458. *) as_qdir=$as_dir;;
  14459. esac
  14460. as_dirs="'$as_qdir' $as_dirs"
  14461. as_dir=`$as_dirname -- "$as_dir" ||
  14462. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  14463. X"$as_dir" : 'X\(//\)[^/]' \| \
  14464. X"$as_dir" : 'X\(//\)$' \| \
  14465. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  14466. $as_echo X"$as_dir" |
  14467. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  14468. s//\1/
  14469. q
  14470. }
  14471. /^X\(\/\/\)[^/].*/{
  14472. s//\1/
  14473. q
  14474. }
  14475. /^X\(\/\/\)$/{
  14476. s//\1/
  14477. q
  14478. }
  14479. /^X\(\/\).*/{
  14480. s//\1/
  14481. q
  14482. }
  14483. s/.*/./; q'`
  14484. test -d "$as_dir" && break
  14485. done
  14486. test -z "$as_dirs" || eval "mkdir $as_dirs"
  14487. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  14488. } # as_fn_mkdir_p
  14489. if mkdir -p . 2>/dev/null; then
  14490. as_mkdir_p='mkdir -p "$as_dir"'
  14491. else
  14492. test -d ./-p && rmdir ./-p
  14493. as_mkdir_p=false
  14494. fi
  14495. if test -x / >/dev/null 2>&1; then
  14496. as_test_x='test -x'
  14497. else
  14498. if ls -dL / >/dev/null 2>&1; then
  14499. as_ls_L_option=L
  14500. else
  14501. as_ls_L_option=
  14502. fi
  14503. as_test_x='
  14504. eval sh -c '\''
  14505. if test -d "$1"; then
  14506. test -d "$1/.";
  14507. else
  14508. case $1 in #(
  14509. -*)set "./$1";;
  14510. esac;
  14511. case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
  14512. ???[sx]*):;;*)false;;esac;fi
  14513. '\'' sh
  14514. '
  14515. fi
  14516. as_executable_p=$as_test_x
  14517. # Sed expression to map a string onto a valid CPP name.
  14518. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  14519. # Sed expression to map a string onto a valid variable name.
  14520. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  14521. exec 6>&1
  14522. ## ----------------------------------- ##
  14523. ## Main body of $CONFIG_STATUS script. ##
  14524. ## ----------------------------------- ##
  14525. _ASEOF
  14526. test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  14527. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14528. # Save the log message, to keep $0 and so on meaningful, and to
  14529. # report actual input values of CONFIG_FILES etc. instead of their
  14530. # values after options handling.
  14531. ac_log="
  14532. This file was extended by klish $as_me 1.5.3, which was
  14533. generated by GNU Autoconf 2.68. Invocation command line was
  14534. CONFIG_FILES = $CONFIG_FILES
  14535. CONFIG_HEADERS = $CONFIG_HEADERS
  14536. CONFIG_LINKS = $CONFIG_LINKS
  14537. CONFIG_COMMANDS = $CONFIG_COMMANDS
  14538. $ $0 $@
  14539. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  14540. "
  14541. _ACEOF
  14542. case $ac_config_files in *"
  14543. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  14544. esac
  14545. case $ac_config_headers in *"
  14546. "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
  14547. esac
  14548. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  14549. # Files that config.status was made for.
  14550. config_files="$ac_config_files"
  14551. config_headers="$ac_config_headers"
  14552. config_commands="$ac_config_commands"
  14553. _ACEOF
  14554. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14555. ac_cs_usage="\
  14556. \`$as_me' instantiates files and other configuration actions
  14557. from templates according to the current configuration. Unless the files
  14558. and actions are specified as TAGs, all are instantiated by default.
  14559. Usage: $0 [OPTION]... [TAG]...
  14560. -h, --help print this help, then exit
  14561. -V, --version print version number and configuration settings, then exit
  14562. --config print configuration, then exit
  14563. -q, --quiet, --silent
  14564. do not print progress messages
  14565. -d, --debug don't remove temporary files
  14566. --recheck update $as_me by reconfiguring in the same conditions
  14567. --file=FILE[:TEMPLATE]
  14568. instantiate the configuration file FILE
  14569. --header=FILE[:TEMPLATE]
  14570. instantiate the configuration header FILE
  14571. Configuration files:
  14572. $config_files
  14573. Configuration headers:
  14574. $config_headers
  14575. Configuration commands:
  14576. $config_commands
  14577. Report bugs to <serj.kalichev at gmail dot com>."
  14578. _ACEOF
  14579. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  14580. ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
  14581. ac_cs_version="\\
  14582. klish config.status 1.5.3
  14583. configured by $0, generated by GNU Autoconf 2.68,
  14584. with options \\"\$ac_cs_config\\"
  14585. Copyright (C) 2010 Free Software Foundation, Inc.
  14586. This config.status script is free software; the Free Software Foundation
  14587. gives unlimited permission to copy, distribute and modify it."
  14588. ac_pwd='$ac_pwd'
  14589. srcdir='$srcdir'
  14590. INSTALL='$INSTALL'
  14591. MKDIR_P='$MKDIR_P'
  14592. AWK='$AWK'
  14593. test -n "\$AWK" || AWK=awk
  14594. _ACEOF
  14595. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14596. # The default lists apply if the user does not specify any file.
  14597. ac_need_defaults=:
  14598. while test $# != 0
  14599. do
  14600. case $1 in
  14601. --*=?*)
  14602. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  14603. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  14604. ac_shift=:
  14605. ;;
  14606. --*=)
  14607. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  14608. ac_optarg=
  14609. ac_shift=:
  14610. ;;
  14611. *)
  14612. ac_option=$1
  14613. ac_optarg=$2
  14614. ac_shift=shift
  14615. ;;
  14616. esac
  14617. case $ac_option in
  14618. # Handling of the options.
  14619. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  14620. ac_cs_recheck=: ;;
  14621. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  14622. $as_echo "$ac_cs_version"; exit ;;
  14623. --config | --confi | --conf | --con | --co | --c )
  14624. $as_echo "$ac_cs_config"; exit ;;
  14625. --debug | --debu | --deb | --de | --d | -d )
  14626. debug=: ;;
  14627. --file | --fil | --fi | --f )
  14628. $ac_shift
  14629. case $ac_optarg in
  14630. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  14631. '') as_fn_error $? "missing file argument" ;;
  14632. esac
  14633. as_fn_append CONFIG_FILES " '$ac_optarg'"
  14634. ac_need_defaults=false;;
  14635. --header | --heade | --head | --hea )
  14636. $ac_shift
  14637. case $ac_optarg in
  14638. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  14639. esac
  14640. as_fn_append CONFIG_HEADERS " '$ac_optarg'"
  14641. ac_need_defaults=false;;
  14642. --he | --h)
  14643. # Conflict between --help and --header
  14644. as_fn_error $? "ambiguous option: \`$1'
  14645. Try \`$0 --help' for more information.";;
  14646. --help | --hel | -h )
  14647. $as_echo "$ac_cs_usage"; exit ;;
  14648. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  14649. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  14650. ac_cs_silent=: ;;
  14651. # This is an error.
  14652. -*) as_fn_error $? "unrecognized option: \`$1'
  14653. Try \`$0 --help' for more information." ;;
  14654. *) as_fn_append ac_config_targets " $1"
  14655. ac_need_defaults=false ;;
  14656. esac
  14657. shift
  14658. done
  14659. ac_configure_extra_args=
  14660. if $ac_cs_silent; then
  14661. exec 6>/dev/null
  14662. ac_configure_extra_args="$ac_configure_extra_args --silent"
  14663. fi
  14664. _ACEOF
  14665. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  14666. if \$ac_cs_recheck; then
  14667. set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  14668. shift
  14669. \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  14670. CONFIG_SHELL='$SHELL'
  14671. export CONFIG_SHELL
  14672. exec "\$@"
  14673. fi
  14674. _ACEOF
  14675. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14676. exec 5>>config.log
  14677. {
  14678. echo
  14679. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  14680. ## Running $as_me. ##
  14681. _ASBOX
  14682. $as_echo "$ac_log"
  14683. } >&5
  14684. _ACEOF
  14685. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  14686. #
  14687. # INIT-COMMANDS
  14688. #
  14689. # The HP-UX ksh and POSIX shell print the target directory to stdout
  14690. # if CDPATH is set.
  14691. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  14692. sed_quote_subst='$sed_quote_subst'
  14693. double_quote_subst='$double_quote_subst'
  14694. delay_variable_subst='$delay_variable_subst'
  14695. AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
  14696. DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
  14697. OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
  14698. macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
  14699. macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
  14700. enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
  14701. enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
  14702. pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
  14703. enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
  14704. SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
  14705. ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
  14706. PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
  14707. host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
  14708. host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
  14709. host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
  14710. build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
  14711. build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
  14712. build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
  14713. SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
  14714. Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
  14715. GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
  14716. EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
  14717. FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
  14718. LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
  14719. NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
  14720. LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
  14721. max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
  14722. ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
  14723. exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
  14724. lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
  14725. lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
  14726. lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
  14727. lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
  14728. lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
  14729. reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
  14730. reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
  14731. deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
  14732. file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
  14733. file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
  14734. want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
  14735. sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
  14736. AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
  14737. AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
  14738. archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
  14739. STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
  14740. RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
  14741. old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  14742. old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  14743. old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
  14744. lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
  14745. CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
  14746. CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
  14747. compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
  14748. GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
  14749. lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
  14750. lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
  14751. lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
  14752. 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"`'
  14753. nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
  14754. lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
  14755. objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
  14756. MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
  14757. lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
  14758. lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
  14759. lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
  14760. lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
  14761. lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
  14762. need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
  14763. MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
  14764. DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
  14765. NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
  14766. LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
  14767. OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
  14768. OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
  14769. libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
  14770. shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
  14771. extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  14772. archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
  14773. enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
  14774. export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
  14775. whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
  14776. compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
  14777. old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
  14778. old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  14779. archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
  14780. archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  14781. module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
  14782. module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  14783. with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
  14784. allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
  14785. no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
  14786. hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
  14787. hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
  14788. hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
  14789. hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
  14790. hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
  14791. hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
  14792. hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
  14793. inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
  14794. link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
  14795. always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
  14796. export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
  14797. exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
  14798. include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
  14799. prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
  14800. postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
  14801. file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
  14802. variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
  14803. need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
  14804. need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
  14805. version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
  14806. runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
  14807. shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
  14808. shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
  14809. libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
  14810. library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
  14811. soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
  14812. install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
  14813. postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  14814. postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  14815. finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
  14816. finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
  14817. hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
  14818. sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
  14819. sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
  14820. hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
  14821. enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
  14822. enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
  14823. enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
  14824. old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
  14825. striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
  14826. compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
  14827. predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
  14828. postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
  14829. predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
  14830. postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
  14831. compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
  14832. LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
  14833. reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
  14834. reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  14835. old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  14836. compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
  14837. GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
  14838. lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
  14839. lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
  14840. lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
  14841. lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
  14842. lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
  14843. archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
  14844. enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
  14845. export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  14846. whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  14847. compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
  14848. old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  14849. old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  14850. archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  14851. archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  14852. module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  14853. module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  14854. with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
  14855. allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
  14856. no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
  14857. hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  14858. hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
  14859. hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
  14860. hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
  14861. hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
  14862. hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
  14863. hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
  14864. inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
  14865. link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
  14866. always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
  14867. export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  14868. exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
  14869. include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
  14870. prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  14871. postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  14872. file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
  14873. hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
  14874. compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
  14875. predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
  14876. postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
  14877. predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
  14878. postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
  14879. compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
  14880. LTCC='$LTCC'
  14881. LTCFLAGS='$LTCFLAGS'
  14882. compiler='$compiler_DEFAULT'
  14883. # A function that is used when there is no print builtin or printf.
  14884. func_fallback_echo ()
  14885. {
  14886. eval 'cat <<_LTECHO_EOF
  14887. \$1
  14888. _LTECHO_EOF'
  14889. }
  14890. # Quote evaled strings.
  14891. for var in AS \
  14892. DLLTOOL \
  14893. OBJDUMP \
  14894. SHELL \
  14895. ECHO \
  14896. PATH_SEPARATOR \
  14897. SED \
  14898. GREP \
  14899. EGREP \
  14900. FGREP \
  14901. LD \
  14902. NM \
  14903. LN_S \
  14904. lt_SP2NL \
  14905. lt_NL2SP \
  14906. reload_flag \
  14907. deplibs_check_method \
  14908. file_magic_cmd \
  14909. file_magic_glob \
  14910. want_nocaseglob \
  14911. sharedlib_from_linklib_cmd \
  14912. AR \
  14913. AR_FLAGS \
  14914. archiver_list_spec \
  14915. STRIP \
  14916. RANLIB \
  14917. CC \
  14918. CFLAGS \
  14919. compiler \
  14920. lt_cv_sys_global_symbol_pipe \
  14921. lt_cv_sys_global_symbol_to_cdecl \
  14922. lt_cv_sys_global_symbol_to_c_name_address \
  14923. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
  14924. nm_file_list_spec \
  14925. lt_prog_compiler_no_builtin_flag \
  14926. lt_prog_compiler_pic \
  14927. lt_prog_compiler_wl \
  14928. lt_prog_compiler_static \
  14929. lt_cv_prog_compiler_c_o \
  14930. need_locks \
  14931. MANIFEST_TOOL \
  14932. DSYMUTIL \
  14933. NMEDIT \
  14934. LIPO \
  14935. OTOOL \
  14936. OTOOL64 \
  14937. shrext_cmds \
  14938. export_dynamic_flag_spec \
  14939. whole_archive_flag_spec \
  14940. compiler_needs_object \
  14941. with_gnu_ld \
  14942. allow_undefined_flag \
  14943. no_undefined_flag \
  14944. hardcode_libdir_flag_spec \
  14945. hardcode_libdir_separator \
  14946. exclude_expsyms \
  14947. include_expsyms \
  14948. file_list_spec \
  14949. variables_saved_for_relink \
  14950. libname_spec \
  14951. library_names_spec \
  14952. soname_spec \
  14953. install_override_mode \
  14954. finish_eval \
  14955. old_striplib \
  14956. striplib \
  14957. compiler_lib_search_dirs \
  14958. predep_objects \
  14959. postdep_objects \
  14960. predeps \
  14961. postdeps \
  14962. compiler_lib_search_path \
  14963. LD_CXX \
  14964. reload_flag_CXX \
  14965. compiler_CXX \
  14966. lt_prog_compiler_no_builtin_flag_CXX \
  14967. lt_prog_compiler_pic_CXX \
  14968. lt_prog_compiler_wl_CXX \
  14969. lt_prog_compiler_static_CXX \
  14970. lt_cv_prog_compiler_c_o_CXX \
  14971. export_dynamic_flag_spec_CXX \
  14972. whole_archive_flag_spec_CXX \
  14973. compiler_needs_object_CXX \
  14974. with_gnu_ld_CXX \
  14975. allow_undefined_flag_CXX \
  14976. no_undefined_flag_CXX \
  14977. hardcode_libdir_flag_spec_CXX \
  14978. hardcode_libdir_separator_CXX \
  14979. exclude_expsyms_CXX \
  14980. include_expsyms_CXX \
  14981. file_list_spec_CXX \
  14982. compiler_lib_search_dirs_CXX \
  14983. predep_objects_CXX \
  14984. postdep_objects_CXX \
  14985. predeps_CXX \
  14986. postdeps_CXX \
  14987. compiler_lib_search_path_CXX; do
  14988. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  14989. *[\\\\\\\`\\"\\\$]*)
  14990. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
  14991. ;;
  14992. *)
  14993. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  14994. ;;
  14995. esac
  14996. done
  14997. # Double-quote double-evaled strings.
  14998. for var in reload_cmds \
  14999. old_postinstall_cmds \
  15000. old_postuninstall_cmds \
  15001. old_archive_cmds \
  15002. extract_expsyms_cmds \
  15003. old_archive_from_new_cmds \
  15004. old_archive_from_expsyms_cmds \
  15005. archive_cmds \
  15006. archive_expsym_cmds \
  15007. module_cmds \
  15008. module_expsym_cmds \
  15009. export_symbols_cmds \
  15010. prelink_cmds \
  15011. postlink_cmds \
  15012. postinstall_cmds \
  15013. postuninstall_cmds \
  15014. finish_cmds \
  15015. sys_lib_search_path_spec \
  15016. sys_lib_dlsearch_path_spec \
  15017. reload_cmds_CXX \
  15018. old_archive_cmds_CXX \
  15019. old_archive_from_new_cmds_CXX \
  15020. old_archive_from_expsyms_cmds_CXX \
  15021. archive_cmds_CXX \
  15022. archive_expsym_cmds_CXX \
  15023. module_cmds_CXX \
  15024. module_expsym_cmds_CXX \
  15025. export_symbols_cmds_CXX \
  15026. prelink_cmds_CXX \
  15027. postlink_cmds_CXX; do
  15028. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  15029. *[\\\\\\\`\\"\\\$]*)
  15030. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
  15031. ;;
  15032. *)
  15033. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  15034. ;;
  15035. esac
  15036. done
  15037. ac_aux_dir='$ac_aux_dir'
  15038. xsi_shell='$xsi_shell'
  15039. lt_shell_append='$lt_shell_append'
  15040. # See if we are running on zsh, and set the options which allow our
  15041. # commands through without removal of \ escapes INIT.
  15042. if test -n "\${ZSH_VERSION+set}" ; then
  15043. setopt NO_GLOB_SUBST
  15044. fi
  15045. PACKAGE='$PACKAGE'
  15046. VERSION='$VERSION'
  15047. TIMESTAMP='$TIMESTAMP'
  15048. RM='$RM'
  15049. ofile='$ofile'
  15050. AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
  15051. _ACEOF
  15052. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  15053. # Handling of arguments.
  15054. for ac_config_target in $ac_config_targets
  15055. do
  15056. case $ac_config_target in
  15057. "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
  15058. "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
  15059. "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
  15060. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  15061. *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  15062. esac
  15063. done
  15064. # If the user did not use the arguments to specify the items to instantiate,
  15065. # then the envvar interface is used. Set only those that are not.
  15066. # We use the long form for the default assignment because of an extremely
  15067. # bizarre bug on SunOS 4.1.3.
  15068. if $ac_need_defaults; then
  15069. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  15070. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  15071. test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  15072. fi
  15073. # Have a temporary directory for convenience. Make it in the build tree
  15074. # simply because there is no reason against having it here, and in addition,
  15075. # creating and moving files from /tmp can sometimes cause problems.
  15076. # Hook for its removal unless debugging.
  15077. # Note that there is a small window in which the directory will not be cleaned:
  15078. # after its creation but before its name has been assigned to `$tmp'.
  15079. $debug ||
  15080. {
  15081. tmp= ac_tmp=
  15082. trap 'exit_status=$?
  15083. : "${ac_tmp:=$tmp}"
  15084. { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
  15085. ' 0
  15086. trap 'as_fn_exit 1' 1 2 13 15
  15087. }
  15088. # Create a (secure) tmp directory for tmp files.
  15089. {
  15090. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  15091. test -d "$tmp"
  15092. } ||
  15093. {
  15094. tmp=./conf$$-$RANDOM
  15095. (umask 077 && mkdir "$tmp")
  15096. } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
  15097. ac_tmp=$tmp
  15098. # Set up the scripts for CONFIG_FILES section.
  15099. # No need to generate them if there are no CONFIG_FILES.
  15100. # This happens for instance with `./config.status config.h'.
  15101. if test -n "$CONFIG_FILES"; then
  15102. ac_cr=`echo X | tr X '\015'`
  15103. # On cygwin, bash can eat \r inside `` if the user requested igncr.
  15104. # But we know of no other shell where ac_cr would be empty at this
  15105. # point, so we can use a bashism as a fallback.
  15106. if test "x$ac_cr" = x; then
  15107. eval ac_cr=\$\'\\r\'
  15108. fi
  15109. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  15110. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  15111. ac_cs_awk_cr='\\r'
  15112. else
  15113. ac_cs_awk_cr=$ac_cr
  15114. fi
  15115. echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
  15116. _ACEOF
  15117. {
  15118. echo "cat >conf$$subs.awk <<_ACEOF" &&
  15119. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  15120. echo "_ACEOF"
  15121. } >conf$$subs.sh ||
  15122. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  15123. ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
  15124. ac_delim='%!_!# '
  15125. for ac_last_try in false false false false false :; do
  15126. . ./conf$$subs.sh ||
  15127. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  15128. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  15129. if test $ac_delim_n = $ac_delim_num; then
  15130. break
  15131. elif $ac_last_try; then
  15132. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  15133. else
  15134. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  15135. fi
  15136. done
  15137. rm -f conf$$subs.sh
  15138. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  15139. cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
  15140. _ACEOF
  15141. sed -n '
  15142. h
  15143. s/^/S["/; s/!.*/"]=/
  15144. p
  15145. g
  15146. s/^[^!]*!//
  15147. :repl
  15148. t repl
  15149. s/'"$ac_delim"'$//
  15150. t delim
  15151. :nl
  15152. h
  15153. s/\(.\{148\}\)..*/\1/
  15154. t more1
  15155. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  15156. p
  15157. n
  15158. b repl
  15159. :more1
  15160. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  15161. p
  15162. g
  15163. s/.\{148\}//
  15164. t nl
  15165. :delim
  15166. h
  15167. s/\(.\{148\}\)..*/\1/
  15168. t more2
  15169. s/["\\]/\\&/g; s/^/"/; s/$/"/
  15170. p
  15171. b
  15172. :more2
  15173. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  15174. p
  15175. g
  15176. s/.\{148\}//
  15177. t delim
  15178. ' <conf$$subs.awk | sed '
  15179. /^[^""]/{
  15180. N
  15181. s/\n//
  15182. }
  15183. ' >>$CONFIG_STATUS || ac_write_fail=1
  15184. rm -f conf$$subs.awk
  15185. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  15186. _ACAWK
  15187. cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
  15188. for (key in S) S_is_set[key] = 1
  15189. FS = ""
  15190. }
  15191. {
  15192. line = $ 0
  15193. nfields = split(line, field, "@")
  15194. substed = 0
  15195. len = length(field[1])
  15196. for (i = 2; i < nfields; i++) {
  15197. key = field[i]
  15198. keylen = length(key)
  15199. if (S_is_set[key]) {
  15200. value = S[key]
  15201. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  15202. len += length(value) + length(field[++i])
  15203. substed = 1
  15204. } else
  15205. len += 1 + keylen
  15206. }
  15207. print line
  15208. }
  15209. _ACAWK
  15210. _ACEOF
  15211. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  15212. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  15213. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  15214. else
  15215. cat
  15216. fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
  15217. || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
  15218. _ACEOF
  15219. # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
  15220. # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
  15221. # trailing colons and then remove the whole line if VPATH becomes empty
  15222. # (actually we leave an empty line to preserve line numbers).
  15223. if test "x$srcdir" = x.; then
  15224. ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
  15225. h
  15226. s///
  15227. s/^/:/
  15228. s/[ ]*$/:/
  15229. s/:\$(srcdir):/:/g
  15230. s/:\${srcdir}:/:/g
  15231. s/:@srcdir@:/:/g
  15232. s/^:*//
  15233. s/:*$//
  15234. x
  15235. s/\(=[ ]*\).*/\1/
  15236. G
  15237. s/\n//
  15238. s/^[^=]*=[ ]*$//
  15239. }'
  15240. fi
  15241. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  15242. fi # test -n "$CONFIG_FILES"
  15243. # Set up the scripts for CONFIG_HEADERS section.
  15244. # No need to generate them if there are no CONFIG_HEADERS.
  15245. # This happens for instance with `./config.status Makefile'.
  15246. if test -n "$CONFIG_HEADERS"; then
  15247. cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
  15248. BEGIN {
  15249. _ACEOF
  15250. # Transform confdefs.h into an awk script `defines.awk', embedded as
  15251. # here-document in config.status, that substitutes the proper values into
  15252. # config.h.in to produce config.h.
  15253. # Create a delimiter string that does not exist in confdefs.h, to ease
  15254. # handling of long lines.
  15255. ac_delim='%!_!# '
  15256. for ac_last_try in false false :; do
  15257. ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
  15258. if test -z "$ac_tt"; then
  15259. break
  15260. elif $ac_last_try; then
  15261. as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
  15262. else
  15263. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  15264. fi
  15265. done
  15266. # For the awk script, D is an array of macro values keyed by name,
  15267. # likewise P contains macro parameters if any. Preserve backslash
  15268. # newline sequences.
  15269. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  15270. sed -n '
  15271. s/.\{148\}/&'"$ac_delim"'/g
  15272. t rset
  15273. :rset
  15274. s/^[ ]*#[ ]*define[ ][ ]*/ /
  15275. t def
  15276. d
  15277. :def
  15278. s/\\$//
  15279. t bsnl
  15280. s/["\\]/\\&/g
  15281. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  15282. D["\1"]=" \3"/p
  15283. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
  15284. d
  15285. :bsnl
  15286. s/["\\]/\\&/g
  15287. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  15288. D["\1"]=" \3\\\\\\n"\\/p
  15289. t cont
  15290. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
  15291. t cont
  15292. d
  15293. :cont
  15294. n
  15295. s/.\{148\}/&'"$ac_delim"'/g
  15296. t clear
  15297. :clear
  15298. s/\\$//
  15299. t bsnlc
  15300. s/["\\]/\\&/g; s/^/"/; s/$/"/p
  15301. d
  15302. :bsnlc
  15303. s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
  15304. b cont
  15305. ' <confdefs.h | sed '
  15306. s/'"$ac_delim"'/"\\\
  15307. "/g' >>$CONFIG_STATUS || ac_write_fail=1
  15308. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  15309. for (key in D) D_is_set[key] = 1
  15310. FS = ""
  15311. }
  15312. /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  15313. line = \$ 0
  15314. split(line, arg, " ")
  15315. if (arg[1] == "#") {
  15316. defundef = arg[2]
  15317. mac1 = arg[3]
  15318. } else {
  15319. defundef = substr(arg[1], 2)
  15320. mac1 = arg[2]
  15321. }
  15322. split(mac1, mac2, "(") #)
  15323. macro = mac2[1]
  15324. prefix = substr(line, 1, index(line, defundef) - 1)
  15325. if (D_is_set[macro]) {
  15326. # Preserve the white space surrounding the "#".
  15327. print prefix "define", macro P[macro] D[macro]
  15328. next
  15329. } else {
  15330. # Replace #undef with comments. This is necessary, for example,
  15331. # in the case of _POSIX_SOURCE, which is predefined and required
  15332. # on some systems where configure will not decide to define it.
  15333. if (defundef == "undef") {
  15334. print "/*", prefix defundef, macro, "*/"
  15335. next
  15336. }
  15337. }
  15338. }
  15339. { print }
  15340. _ACAWK
  15341. _ACEOF
  15342. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  15343. as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
  15344. fi # test -n "$CONFIG_HEADERS"
  15345. eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
  15346. shift
  15347. for ac_tag
  15348. do
  15349. case $ac_tag in
  15350. :[FHLC]) ac_mode=$ac_tag; continue;;
  15351. esac
  15352. case $ac_mode$ac_tag in
  15353. :[FHL]*:*);;
  15354. :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
  15355. :[FH]-) ac_tag=-:-;;
  15356. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  15357. esac
  15358. ac_save_IFS=$IFS
  15359. IFS=:
  15360. set x $ac_tag
  15361. IFS=$ac_save_IFS
  15362. shift
  15363. ac_file=$1
  15364. shift
  15365. case $ac_mode in
  15366. :L) ac_source=$1;;
  15367. :[FH])
  15368. ac_file_inputs=
  15369. for ac_f
  15370. do
  15371. case $ac_f in
  15372. -) ac_f="$ac_tmp/stdin";;
  15373. *) # Look for the file first in the build tree, then in the source tree
  15374. # (if the path is not absolute). The absolute path cannot be DOS-style,
  15375. # because $ac_f cannot contain `:'.
  15376. test -f "$ac_f" ||
  15377. case $ac_f in
  15378. [\\/$]*) false;;
  15379. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  15380. esac ||
  15381. as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
  15382. esac
  15383. case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  15384. as_fn_append ac_file_inputs " '$ac_f'"
  15385. done
  15386. # Let's still pretend it is `configure' which instantiates (i.e., don't
  15387. # use $as_me), people would be surprised to read:
  15388. # /* config.h. Generated by config.status. */
  15389. configure_input='Generated from '`
  15390. $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  15391. `' by configure.'
  15392. if test x"$ac_file" != x-; then
  15393. configure_input="$ac_file. $configure_input"
  15394. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  15395. $as_echo "$as_me: creating $ac_file" >&6;}
  15396. fi
  15397. # Neutralize special characters interpreted by sed in replacement strings.
  15398. case $configure_input in #(
  15399. *\&* | *\|* | *\\* )
  15400. ac_sed_conf_input=`$as_echo "$configure_input" |
  15401. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  15402. *) ac_sed_conf_input=$configure_input;;
  15403. esac
  15404. case $ac_tag in
  15405. *:-:* | *:-) cat >"$ac_tmp/stdin" \
  15406. || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
  15407. esac
  15408. ;;
  15409. esac
  15410. ac_dir=`$as_dirname -- "$ac_file" ||
  15411. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  15412. X"$ac_file" : 'X\(//\)[^/]' \| \
  15413. X"$ac_file" : 'X\(//\)$' \| \
  15414. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  15415. $as_echo X"$ac_file" |
  15416. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  15417. s//\1/
  15418. q
  15419. }
  15420. /^X\(\/\/\)[^/].*/{
  15421. s//\1/
  15422. q
  15423. }
  15424. /^X\(\/\/\)$/{
  15425. s//\1/
  15426. q
  15427. }
  15428. /^X\(\/\).*/{
  15429. s//\1/
  15430. q
  15431. }
  15432. s/.*/./; q'`
  15433. as_dir="$ac_dir"; as_fn_mkdir_p
  15434. ac_builddir=.
  15435. case "$ac_dir" in
  15436. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  15437. *)
  15438. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  15439. # A ".." for each directory in $ac_dir_suffix.
  15440. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  15441. case $ac_top_builddir_sub in
  15442. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  15443. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  15444. esac ;;
  15445. esac
  15446. ac_abs_top_builddir=$ac_pwd
  15447. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  15448. # for backward compatibility:
  15449. ac_top_builddir=$ac_top_build_prefix
  15450. case $srcdir in
  15451. .) # We are building in place.
  15452. ac_srcdir=.
  15453. ac_top_srcdir=$ac_top_builddir_sub
  15454. ac_abs_top_srcdir=$ac_pwd ;;
  15455. [\\/]* | ?:[\\/]* ) # Absolute name.
  15456. ac_srcdir=$srcdir$ac_dir_suffix;
  15457. ac_top_srcdir=$srcdir
  15458. ac_abs_top_srcdir=$srcdir ;;
  15459. *) # Relative name.
  15460. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  15461. ac_top_srcdir=$ac_top_build_prefix$srcdir
  15462. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  15463. esac
  15464. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  15465. case $ac_mode in
  15466. :F)
  15467. #
  15468. # CONFIG_FILE
  15469. #
  15470. case $INSTALL in
  15471. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  15472. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  15473. esac
  15474. ac_MKDIR_P=$MKDIR_P
  15475. case $MKDIR_P in
  15476. [\\/$]* | ?:[\\/]* ) ;;
  15477. */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
  15478. esac
  15479. _ACEOF
  15480. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  15481. # If the template does not know about datarootdir, expand it.
  15482. # FIXME: This hack should be removed a few years after 2.60.
  15483. ac_datarootdir_hack=; ac_datarootdir_seen=
  15484. ac_sed_dataroot='
  15485. /datarootdir/ {
  15486. p
  15487. q
  15488. }
  15489. /@datadir@/p
  15490. /@docdir@/p
  15491. /@infodir@/p
  15492. /@localedir@/p
  15493. /@mandir@/p'
  15494. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  15495. *datarootdir*) ac_datarootdir_seen=yes;;
  15496. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  15497. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  15498. $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  15499. _ACEOF
  15500. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  15501. ac_datarootdir_hack='
  15502. s&@datadir@&$datadir&g
  15503. s&@docdir@&$docdir&g
  15504. s&@infodir@&$infodir&g
  15505. s&@localedir@&$localedir&g
  15506. s&@mandir@&$mandir&g
  15507. s&\\\${datarootdir}&$datarootdir&g' ;;
  15508. esac
  15509. _ACEOF
  15510. # Neutralize VPATH when `$srcdir' = `.'.
  15511. # Shell code in configure.ac might set extrasub.
  15512. # FIXME: do we really want to maintain this feature?
  15513. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  15514. ac_sed_extra="$ac_vpsub
  15515. $extrasub
  15516. _ACEOF
  15517. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  15518. :t
  15519. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  15520. s|@configure_input@|$ac_sed_conf_input|;t t
  15521. s&@top_builddir@&$ac_top_builddir_sub&;t t
  15522. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  15523. s&@srcdir@&$ac_srcdir&;t t
  15524. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  15525. s&@top_srcdir@&$ac_top_srcdir&;t t
  15526. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  15527. s&@builddir@&$ac_builddir&;t t
  15528. s&@abs_builddir@&$ac_abs_builddir&;t t
  15529. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  15530. s&@INSTALL@&$ac_INSTALL&;t t
  15531. s&@MKDIR_P@&$ac_MKDIR_P&;t t
  15532. $ac_datarootdir_hack
  15533. "
  15534. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
  15535. >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  15536. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  15537. { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
  15538. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
  15539. "$ac_tmp/out"`; test -z "$ac_out"; } &&
  15540. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  15541. which seems to be undefined. Please make sure it is defined" >&5
  15542. $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  15543. which seems to be undefined. Please make sure it is defined" >&2;}
  15544. rm -f "$ac_tmp/stdin"
  15545. case $ac_file in
  15546. -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
  15547. *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
  15548. esac \
  15549. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  15550. ;;
  15551. :H)
  15552. #
  15553. # CONFIG_HEADER
  15554. #
  15555. if test x"$ac_file" != x-; then
  15556. {
  15557. $as_echo "/* $configure_input */" \
  15558. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
  15559. } >"$ac_tmp/config.h" \
  15560. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  15561. if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
  15562. { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
  15563. $as_echo "$as_me: $ac_file is unchanged" >&6;}
  15564. else
  15565. rm -f "$ac_file"
  15566. mv "$ac_tmp/config.h" "$ac_file" \
  15567. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  15568. fi
  15569. else
  15570. $as_echo "/* $configure_input */" \
  15571. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
  15572. || as_fn_error $? "could not create -" "$LINENO" 5
  15573. fi
  15574. # Compute "$ac_file"'s index in $config_headers.
  15575. _am_arg="$ac_file"
  15576. _am_stamp_count=1
  15577. for _am_header in $config_headers :; do
  15578. case $_am_header in
  15579. $_am_arg | $_am_arg:* )
  15580. break ;;
  15581. * )
  15582. _am_stamp_count=`expr $_am_stamp_count + 1` ;;
  15583. esac
  15584. done
  15585. echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
  15586. $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  15587. X"$_am_arg" : 'X\(//\)[^/]' \| \
  15588. X"$_am_arg" : 'X\(//\)$' \| \
  15589. X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
  15590. $as_echo X"$_am_arg" |
  15591. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  15592. s//\1/
  15593. q
  15594. }
  15595. /^X\(\/\/\)[^/].*/{
  15596. s//\1/
  15597. q
  15598. }
  15599. /^X\(\/\/\)$/{
  15600. s//\1/
  15601. q
  15602. }
  15603. /^X\(\/\).*/{
  15604. s//\1/
  15605. q
  15606. }
  15607. s/.*/./; q'`/stamp-h$_am_stamp_count
  15608. ;;
  15609. :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
  15610. $as_echo "$as_me: executing $ac_file commands" >&6;}
  15611. ;;
  15612. esac
  15613. case $ac_file$ac_mode in
  15614. "libtool":C)
  15615. # See if we are running on zsh, and set the options which allow our
  15616. # commands through without removal of \ escapes.
  15617. if test -n "${ZSH_VERSION+set}" ; then
  15618. setopt NO_GLOB_SUBST
  15619. fi
  15620. cfgfile="${ofile}T"
  15621. trap "$RM \"$cfgfile\"; exit 1" 1 2 15
  15622. $RM "$cfgfile"
  15623. cat <<_LT_EOF >> "$cfgfile"
  15624. #! $SHELL
  15625. # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
  15626. # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
  15627. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  15628. # NOTE: Changes made to this file will be lost: look at ltmain.sh.
  15629. #
  15630. # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
  15631. # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
  15632. # Foundation, Inc.
  15633. # Written by Gordon Matzigkeit, 1996
  15634. #
  15635. # This file is part of GNU Libtool.
  15636. #
  15637. # GNU Libtool is free software; you can redistribute it and/or
  15638. # modify it under the terms of the GNU General Public License as
  15639. # published by the Free Software Foundation; either version 2 of
  15640. # the License, or (at your option) any later version.
  15641. #
  15642. # As a special exception to the GNU General Public License,
  15643. # if you distribute this file as part of a program or library that
  15644. # is built using GNU Libtool, you may include this file under the
  15645. # same distribution terms that you use for the rest of that program.
  15646. #
  15647. # GNU Libtool is distributed in the hope that it will be useful,
  15648. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  15649. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  15650. # GNU General Public License for more details.
  15651. #
  15652. # You should have received a copy of the GNU General Public License
  15653. # along with GNU Libtool; see the file COPYING. If not, a copy
  15654. # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
  15655. # obtained by writing to the Free Software Foundation, Inc.,
  15656. # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  15657. # The names of the tagged configurations supported by this script.
  15658. available_tags="CXX "
  15659. # ### BEGIN LIBTOOL CONFIG
  15660. # Assembler program.
  15661. AS=$lt_AS
  15662. # DLL creation program.
  15663. DLLTOOL=$lt_DLLTOOL
  15664. # Object dumper program.
  15665. OBJDUMP=$lt_OBJDUMP
  15666. # Which release of libtool.m4 was used?
  15667. macro_version=$macro_version
  15668. macro_revision=$macro_revision
  15669. # Whether or not to build shared libraries.
  15670. build_libtool_libs=$enable_shared
  15671. # Whether or not to build static libraries.
  15672. build_old_libs=$enable_static
  15673. # What type of objects to build.
  15674. pic_mode=$pic_mode
  15675. # Whether or not to optimize for fast installation.
  15676. fast_install=$enable_fast_install
  15677. # Shell to use when invoking shell scripts.
  15678. SHELL=$lt_SHELL
  15679. # An echo program that protects backslashes.
  15680. ECHO=$lt_ECHO
  15681. # The PATH separator for the build system.
  15682. PATH_SEPARATOR=$lt_PATH_SEPARATOR
  15683. # The host system.
  15684. host_alias=$host_alias
  15685. host=$host
  15686. host_os=$host_os
  15687. # The build system.
  15688. build_alias=$build_alias
  15689. build=$build
  15690. build_os=$build_os
  15691. # A sed program that does not truncate output.
  15692. SED=$lt_SED
  15693. # Sed that helps us avoid accidentally triggering echo(1) options like -n.
  15694. Xsed="\$SED -e 1s/^X//"
  15695. # A grep program that handles long lines.
  15696. GREP=$lt_GREP
  15697. # An ERE matcher.
  15698. EGREP=$lt_EGREP
  15699. # A literal string matcher.
  15700. FGREP=$lt_FGREP
  15701. # A BSD- or MS-compatible name lister.
  15702. NM=$lt_NM
  15703. # Whether we need soft or hard links.
  15704. LN_S=$lt_LN_S
  15705. # What is the maximum length of a command?
  15706. max_cmd_len=$max_cmd_len
  15707. # Object file suffix (normally "o").
  15708. objext=$ac_objext
  15709. # Executable file suffix (normally "").
  15710. exeext=$exeext
  15711. # whether the shell understands "unset".
  15712. lt_unset=$lt_unset
  15713. # turn spaces into newlines.
  15714. SP2NL=$lt_lt_SP2NL
  15715. # turn newlines into spaces.
  15716. NL2SP=$lt_lt_NL2SP
  15717. # convert \$build file names to \$host format.
  15718. to_host_file_cmd=$lt_cv_to_host_file_cmd
  15719. # convert \$build files to toolchain format.
  15720. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  15721. # Method to check whether dependent libraries are shared objects.
  15722. deplibs_check_method=$lt_deplibs_check_method
  15723. # Command to use when deplibs_check_method = "file_magic".
  15724. file_magic_cmd=$lt_file_magic_cmd
  15725. # How to find potential files when deplibs_check_method = "file_magic".
  15726. file_magic_glob=$lt_file_magic_glob
  15727. # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
  15728. want_nocaseglob=$lt_want_nocaseglob
  15729. # Command to associate shared and link libraries.
  15730. sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
  15731. # The archiver.
  15732. AR=$lt_AR
  15733. # Flags to create an archive.
  15734. AR_FLAGS=$lt_AR_FLAGS
  15735. # How to feed a file listing to the archiver.
  15736. archiver_list_spec=$lt_archiver_list_spec
  15737. # A symbol stripping program.
  15738. STRIP=$lt_STRIP
  15739. # Commands used to install an old-style archive.
  15740. RANLIB=$lt_RANLIB
  15741. old_postinstall_cmds=$lt_old_postinstall_cmds
  15742. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  15743. # Whether to use a lock for old archive extraction.
  15744. lock_old_archive_extraction=$lock_old_archive_extraction
  15745. # A C compiler.
  15746. LTCC=$lt_CC
  15747. # LTCC compiler flags.
  15748. LTCFLAGS=$lt_CFLAGS
  15749. # Take the output of nm and produce a listing of raw symbols and C names.
  15750. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  15751. # Transform the output of nm in a proper C declaration.
  15752. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  15753. # Transform the output of nm in a C name address pair.
  15754. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  15755. # Transform the output of nm in a C name address pair when lib prefix is needed.
  15756. global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
  15757. # Specify filename containing input files for \$NM.
  15758. nm_file_list_spec=$lt_nm_file_list_spec
  15759. # The root where to search for dependent libraries,and in which our libraries should be installed.
  15760. lt_sysroot=$lt_sysroot
  15761. # The name of the directory that contains temporary libtool files.
  15762. objdir=$objdir
  15763. # Used to examine libraries when file_magic_cmd begins with "file".
  15764. MAGIC_CMD=$MAGIC_CMD
  15765. # Must we lock files when doing compilation?
  15766. need_locks=$lt_need_locks
  15767. # Manifest tool.
  15768. MANIFEST_TOOL=$lt_MANIFEST_TOOL
  15769. # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
  15770. DSYMUTIL=$lt_DSYMUTIL
  15771. # Tool to change global to local symbols on Mac OS X.
  15772. NMEDIT=$lt_NMEDIT
  15773. # Tool to manipulate fat objects and archives on Mac OS X.
  15774. LIPO=$lt_LIPO
  15775. # ldd/readelf like tool for Mach-O binaries on Mac OS X.
  15776. OTOOL=$lt_OTOOL
  15777. # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
  15778. OTOOL64=$lt_OTOOL64
  15779. # Old archive suffix (normally "a").
  15780. libext=$libext
  15781. # Shared library suffix (normally ".so").
  15782. shrext_cmds=$lt_shrext_cmds
  15783. # The commands to extract the exported symbol list from a shared archive.
  15784. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  15785. # Variables whose values should be saved in libtool wrapper scripts and
  15786. # restored at link time.
  15787. variables_saved_for_relink=$lt_variables_saved_for_relink
  15788. # Do we need the "lib" prefix for modules?
  15789. need_lib_prefix=$need_lib_prefix
  15790. # Do we need a version for libraries?
  15791. need_version=$need_version
  15792. # Library versioning type.
  15793. version_type=$version_type
  15794. # Shared library runtime path variable.
  15795. runpath_var=$runpath_var
  15796. # Shared library path variable.
  15797. shlibpath_var=$shlibpath_var
  15798. # Is shlibpath searched before the hard-coded library search path?
  15799. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  15800. # Format of library name prefix.
  15801. libname_spec=$lt_libname_spec
  15802. # List of archive names. First name is the real one, the rest are links.
  15803. # The last name is the one that the linker finds with -lNAME
  15804. library_names_spec=$lt_library_names_spec
  15805. # The coded name of the library, if different from the real name.
  15806. soname_spec=$lt_soname_spec
  15807. # Permission mode override for installation of shared libraries.
  15808. install_override_mode=$lt_install_override_mode
  15809. # Command to use after installation of a shared archive.
  15810. postinstall_cmds=$lt_postinstall_cmds
  15811. # Command to use after uninstallation of a shared archive.
  15812. postuninstall_cmds=$lt_postuninstall_cmds
  15813. # Commands used to finish a libtool library installation in a directory.
  15814. finish_cmds=$lt_finish_cmds
  15815. # As "finish_cmds", except a single script fragment to be evaled but
  15816. # not shown.
  15817. finish_eval=$lt_finish_eval
  15818. # Whether we should hardcode library paths into libraries.
  15819. hardcode_into_libs=$hardcode_into_libs
  15820. # Compile-time system search path for libraries.
  15821. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  15822. # Run-time system search path for libraries.
  15823. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  15824. # Whether dlopen is supported.
  15825. dlopen_support=$enable_dlopen
  15826. # Whether dlopen of programs is supported.
  15827. dlopen_self=$enable_dlopen_self
  15828. # Whether dlopen of statically linked programs is supported.
  15829. dlopen_self_static=$enable_dlopen_self_static
  15830. # Commands to strip libraries.
  15831. old_striplib=$lt_old_striplib
  15832. striplib=$lt_striplib
  15833. # The linker used to build libraries.
  15834. LD=$lt_LD
  15835. # How to create reloadable object files.
  15836. reload_flag=$lt_reload_flag
  15837. reload_cmds=$lt_reload_cmds
  15838. # Commands used to build an old-style archive.
  15839. old_archive_cmds=$lt_old_archive_cmds
  15840. # A language specific compiler.
  15841. CC=$lt_compiler
  15842. # Is the compiler the GNU compiler?
  15843. with_gcc=$GCC
  15844. # Compiler flag to turn off builtin functions.
  15845. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
  15846. # Additional compiler flags for building library objects.
  15847. pic_flag=$lt_lt_prog_compiler_pic
  15848. # How to pass a linker flag through the compiler.
  15849. wl=$lt_lt_prog_compiler_wl
  15850. # Compiler flag to prevent dynamic linking.
  15851. link_static_flag=$lt_lt_prog_compiler_static
  15852. # Does compiler simultaneously support -c and -o options?
  15853. compiler_c_o=$lt_lt_cv_prog_compiler_c_o
  15854. # Whether or not to add -lc for building shared libraries.
  15855. build_libtool_need_lc=$archive_cmds_need_lc
  15856. # Whether or not to disallow shared libs when runtime libs are static.
  15857. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
  15858. # Compiler flag to allow reflexive dlopens.
  15859. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
  15860. # Compiler flag to generate shared objects directly from archives.
  15861. whole_archive_flag_spec=$lt_whole_archive_flag_spec
  15862. # Whether the compiler copes with passing no objects directly.
  15863. compiler_needs_object=$lt_compiler_needs_object
  15864. # Create an old-style archive from a shared archive.
  15865. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
  15866. # Create a temporary old-style archive to link instead of a shared archive.
  15867. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
  15868. # Commands used to build a shared archive.
  15869. archive_cmds=$lt_archive_cmds
  15870. archive_expsym_cmds=$lt_archive_expsym_cmds
  15871. # Commands used to build a loadable module if different from building
  15872. # a shared archive.
  15873. module_cmds=$lt_module_cmds
  15874. module_expsym_cmds=$lt_module_expsym_cmds
  15875. # Whether we are building with GNU ld or not.
  15876. with_gnu_ld=$lt_with_gnu_ld
  15877. # Flag that allows shared libraries with undefined symbols to be built.
  15878. allow_undefined_flag=$lt_allow_undefined_flag
  15879. # Flag that enforces no undefined symbols.
  15880. no_undefined_flag=$lt_no_undefined_flag
  15881. # Flag to hardcode \$libdir into a binary during linking.
  15882. # This must work even if \$libdir does not exist
  15883. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
  15884. # Whether we need a single "-rpath" flag with a separated argument.
  15885. hardcode_libdir_separator=$lt_hardcode_libdir_separator
  15886. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  15887. # DIR into the resulting binary.
  15888. hardcode_direct=$hardcode_direct
  15889. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  15890. # DIR into the resulting binary and the resulting library dependency is
  15891. # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
  15892. # library is relocated.
  15893. hardcode_direct_absolute=$hardcode_direct_absolute
  15894. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  15895. # into the resulting binary.
  15896. hardcode_minus_L=$hardcode_minus_L
  15897. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  15898. # into the resulting binary.
  15899. hardcode_shlibpath_var=$hardcode_shlibpath_var
  15900. # Set to "yes" if building a shared library automatically hardcodes DIR
  15901. # into the library and all subsequent libraries and executables linked
  15902. # against it.
  15903. hardcode_automatic=$hardcode_automatic
  15904. # Set to yes if linker adds runtime paths of dependent libraries
  15905. # to runtime path list.
  15906. inherit_rpath=$inherit_rpath
  15907. # Whether libtool must link a program against all its dependency libraries.
  15908. link_all_deplibs=$link_all_deplibs
  15909. # Set to "yes" if exported symbols are required.
  15910. always_export_symbols=$always_export_symbols
  15911. # The commands to list exported symbols.
  15912. export_symbols_cmds=$lt_export_symbols_cmds
  15913. # Symbols that should not be listed in the preloaded symbols.
  15914. exclude_expsyms=$lt_exclude_expsyms
  15915. # Symbols that must always be exported.
  15916. include_expsyms=$lt_include_expsyms
  15917. # Commands necessary for linking programs (against libraries) with templates.
  15918. prelink_cmds=$lt_prelink_cmds
  15919. # Commands necessary for finishing linking programs.
  15920. postlink_cmds=$lt_postlink_cmds
  15921. # Specify filename containing input files.
  15922. file_list_spec=$lt_file_list_spec
  15923. # How to hardcode a shared library path into an executable.
  15924. hardcode_action=$hardcode_action
  15925. # The directories searched by this compiler when creating a shared library.
  15926. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
  15927. # Dependencies to place before and after the objects being linked to
  15928. # create a shared library.
  15929. predep_objects=$lt_predep_objects
  15930. postdep_objects=$lt_postdep_objects
  15931. predeps=$lt_predeps
  15932. postdeps=$lt_postdeps
  15933. # The library search path used internally by the compiler when linking
  15934. # a shared library.
  15935. compiler_lib_search_path=$lt_compiler_lib_search_path
  15936. # ### END LIBTOOL CONFIG
  15937. _LT_EOF
  15938. case $host_os in
  15939. aix3*)
  15940. cat <<\_LT_EOF >> "$cfgfile"
  15941. # AIX sometimes has problems with the GCC collect2 program. For some
  15942. # reason, if we set the COLLECT_NAMES environment variable, the problems
  15943. # vanish in a puff of smoke.
  15944. if test "X${COLLECT_NAMES+set}" != Xset; then
  15945. COLLECT_NAMES=
  15946. export COLLECT_NAMES
  15947. fi
  15948. _LT_EOF
  15949. ;;
  15950. esac
  15951. ltmain="$ac_aux_dir/ltmain.sh"
  15952. # We use sed instead of cat because bash on DJGPP gets confused if
  15953. # if finds mixed CR/LF and LF-only lines. Since sed operates in
  15954. # text mode, it properly converts lines to CR/LF. This bash problem
  15955. # is reportedly fixed, but why not run on old versions too?
  15956. sed '$q' "$ltmain" >> "$cfgfile" \
  15957. || (rm -f "$cfgfile"; exit 1)
  15958. if test x"$xsi_shell" = xyes; then
  15959. sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
  15960. func_dirname ()\
  15961. {\
  15962. \ case ${1} in\
  15963. \ */*) func_dirname_result="${1%/*}${2}" ;;\
  15964. \ * ) func_dirname_result="${3}" ;;\
  15965. \ esac\
  15966. } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
  15967. && mv -f "$cfgfile.tmp" "$cfgfile" \
  15968. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  15969. test 0 -eq $? || _lt_function_replace_fail=:
  15970. sed -e '/^func_basename ()$/,/^} # func_basename /c\
  15971. func_basename ()\
  15972. {\
  15973. \ func_basename_result="${1##*/}"\
  15974. } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
  15975. && mv -f "$cfgfile.tmp" "$cfgfile" \
  15976. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  15977. test 0 -eq $? || _lt_function_replace_fail=:
  15978. sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
  15979. func_dirname_and_basename ()\
  15980. {\
  15981. \ case ${1} in\
  15982. \ */*) func_dirname_result="${1%/*}${2}" ;;\
  15983. \ * ) func_dirname_result="${3}" ;;\
  15984. \ esac\
  15985. \ func_basename_result="${1##*/}"\
  15986. } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
  15987. && mv -f "$cfgfile.tmp" "$cfgfile" \
  15988. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  15989. test 0 -eq $? || _lt_function_replace_fail=:
  15990. sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
  15991. func_stripname ()\
  15992. {\
  15993. \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
  15994. \ # positional parameters, so assign one to ordinary parameter first.\
  15995. \ func_stripname_result=${3}\
  15996. \ func_stripname_result=${func_stripname_result#"${1}"}\
  15997. \ func_stripname_result=${func_stripname_result%"${2}"}\
  15998. } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
  15999. && mv -f "$cfgfile.tmp" "$cfgfile" \
  16000. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  16001. test 0 -eq $? || _lt_function_replace_fail=:
  16002. sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
  16003. func_split_long_opt ()\
  16004. {\
  16005. \ func_split_long_opt_name=${1%%=*}\
  16006. \ func_split_long_opt_arg=${1#*=}\
  16007. } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
  16008. && mv -f "$cfgfile.tmp" "$cfgfile" \
  16009. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  16010. test 0 -eq $? || _lt_function_replace_fail=:
  16011. sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
  16012. func_split_short_opt ()\
  16013. {\
  16014. \ func_split_short_opt_arg=${1#??}\
  16015. \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
  16016. } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
  16017. && mv -f "$cfgfile.tmp" "$cfgfile" \
  16018. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  16019. test 0 -eq $? || _lt_function_replace_fail=:
  16020. sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
  16021. func_lo2o ()\
  16022. {\
  16023. \ case ${1} in\
  16024. \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
  16025. \ *) func_lo2o_result=${1} ;;\
  16026. \ esac\
  16027. } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
  16028. && mv -f "$cfgfile.tmp" "$cfgfile" \
  16029. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  16030. test 0 -eq $? || _lt_function_replace_fail=:
  16031. sed -e '/^func_xform ()$/,/^} # func_xform /c\
  16032. func_xform ()\
  16033. {\
  16034. func_xform_result=${1%.*}.lo\
  16035. } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
  16036. && mv -f "$cfgfile.tmp" "$cfgfile" \
  16037. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  16038. test 0 -eq $? || _lt_function_replace_fail=:
  16039. sed -e '/^func_arith ()$/,/^} # func_arith /c\
  16040. func_arith ()\
  16041. {\
  16042. func_arith_result=$(( $* ))\
  16043. } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
  16044. && mv -f "$cfgfile.tmp" "$cfgfile" \
  16045. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  16046. test 0 -eq $? || _lt_function_replace_fail=:
  16047. sed -e '/^func_len ()$/,/^} # func_len /c\
  16048. func_len ()\
  16049. {\
  16050. func_len_result=${#1}\
  16051. } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
  16052. && mv -f "$cfgfile.tmp" "$cfgfile" \
  16053. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  16054. test 0 -eq $? || _lt_function_replace_fail=:
  16055. fi
  16056. if test x"$lt_shell_append" = xyes; then
  16057. sed -e '/^func_append ()$/,/^} # func_append /c\
  16058. func_append ()\
  16059. {\
  16060. eval "${1}+=\\${2}"\
  16061. } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
  16062. && mv -f "$cfgfile.tmp" "$cfgfile" \
  16063. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  16064. test 0 -eq $? || _lt_function_replace_fail=:
  16065. sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
  16066. func_append_quoted ()\
  16067. {\
  16068. \ func_quote_for_eval "${2}"\
  16069. \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
  16070. } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
  16071. && mv -f "$cfgfile.tmp" "$cfgfile" \
  16072. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  16073. test 0 -eq $? || _lt_function_replace_fail=:
  16074. # Save a `func_append' function call where possible by direct use of '+='
  16075. sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
  16076. && mv -f "$cfgfile.tmp" "$cfgfile" \
  16077. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  16078. test 0 -eq $? || _lt_function_replace_fail=:
  16079. else
  16080. # Save a `func_append' function call even when '+=' is not available
  16081. sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
  16082. && mv -f "$cfgfile.tmp" "$cfgfile" \
  16083. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  16084. test 0 -eq $? || _lt_function_replace_fail=:
  16085. fi
  16086. if test x"$_lt_function_replace_fail" = x":"; then
  16087. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
  16088. $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
  16089. fi
  16090. mv -f "$cfgfile" "$ofile" ||
  16091. (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  16092. chmod +x "$ofile"
  16093. cat <<_LT_EOF >> "$ofile"
  16094. # ### BEGIN LIBTOOL TAG CONFIG: CXX
  16095. # The linker used to build libraries.
  16096. LD=$lt_LD_CXX
  16097. # How to create reloadable object files.
  16098. reload_flag=$lt_reload_flag_CXX
  16099. reload_cmds=$lt_reload_cmds_CXX
  16100. # Commands used to build an old-style archive.
  16101. old_archive_cmds=$lt_old_archive_cmds_CXX
  16102. # A language specific compiler.
  16103. CC=$lt_compiler_CXX
  16104. # Is the compiler the GNU compiler?
  16105. with_gcc=$GCC_CXX
  16106. # Compiler flag to turn off builtin functions.
  16107. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
  16108. # Additional compiler flags for building library objects.
  16109. pic_flag=$lt_lt_prog_compiler_pic_CXX
  16110. # How to pass a linker flag through the compiler.
  16111. wl=$lt_lt_prog_compiler_wl_CXX
  16112. # Compiler flag to prevent dynamic linking.
  16113. link_static_flag=$lt_lt_prog_compiler_static_CXX
  16114. # Does compiler simultaneously support -c and -o options?
  16115. compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
  16116. # Whether or not to add -lc for building shared libraries.
  16117. build_libtool_need_lc=$archive_cmds_need_lc_CXX
  16118. # Whether or not to disallow shared libs when runtime libs are static.
  16119. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
  16120. # Compiler flag to allow reflexive dlopens.
  16121. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
  16122. # Compiler flag to generate shared objects directly from archives.
  16123. whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
  16124. # Whether the compiler copes with passing no objects directly.
  16125. compiler_needs_object=$lt_compiler_needs_object_CXX
  16126. # Create an old-style archive from a shared archive.
  16127. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
  16128. # Create a temporary old-style archive to link instead of a shared archive.
  16129. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
  16130. # Commands used to build a shared archive.
  16131. archive_cmds=$lt_archive_cmds_CXX
  16132. archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
  16133. # Commands used to build a loadable module if different from building
  16134. # a shared archive.
  16135. module_cmds=$lt_module_cmds_CXX
  16136. module_expsym_cmds=$lt_module_expsym_cmds_CXX
  16137. # Whether we are building with GNU ld or not.
  16138. with_gnu_ld=$lt_with_gnu_ld_CXX
  16139. # Flag that allows shared libraries with undefined symbols to be built.
  16140. allow_undefined_flag=$lt_allow_undefined_flag_CXX
  16141. # Flag that enforces no undefined symbols.
  16142. no_undefined_flag=$lt_no_undefined_flag_CXX
  16143. # Flag to hardcode \$libdir into a binary during linking.
  16144. # This must work even if \$libdir does not exist
  16145. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
  16146. # Whether we need a single "-rpath" flag with a separated argument.
  16147. hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
  16148. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  16149. # DIR into the resulting binary.
  16150. hardcode_direct=$hardcode_direct_CXX
  16151. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  16152. # DIR into the resulting binary and the resulting library dependency is
  16153. # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
  16154. # library is relocated.
  16155. hardcode_direct_absolute=$hardcode_direct_absolute_CXX
  16156. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  16157. # into the resulting binary.
  16158. hardcode_minus_L=$hardcode_minus_L_CXX
  16159. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  16160. # into the resulting binary.
  16161. hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
  16162. # Set to "yes" if building a shared library automatically hardcodes DIR
  16163. # into the library and all subsequent libraries and executables linked
  16164. # against it.
  16165. hardcode_automatic=$hardcode_automatic_CXX
  16166. # Set to yes if linker adds runtime paths of dependent libraries
  16167. # to runtime path list.
  16168. inherit_rpath=$inherit_rpath_CXX
  16169. # Whether libtool must link a program against all its dependency libraries.
  16170. link_all_deplibs=$link_all_deplibs_CXX
  16171. # Set to "yes" if exported symbols are required.
  16172. always_export_symbols=$always_export_symbols_CXX
  16173. # The commands to list exported symbols.
  16174. export_symbols_cmds=$lt_export_symbols_cmds_CXX
  16175. # Symbols that should not be listed in the preloaded symbols.
  16176. exclude_expsyms=$lt_exclude_expsyms_CXX
  16177. # Symbols that must always be exported.
  16178. include_expsyms=$lt_include_expsyms_CXX
  16179. # Commands necessary for linking programs (against libraries) with templates.
  16180. prelink_cmds=$lt_prelink_cmds_CXX
  16181. # Commands necessary for finishing linking programs.
  16182. postlink_cmds=$lt_postlink_cmds_CXX
  16183. # Specify filename containing input files.
  16184. file_list_spec=$lt_file_list_spec_CXX
  16185. # How to hardcode a shared library path into an executable.
  16186. hardcode_action=$hardcode_action_CXX
  16187. # The directories searched by this compiler when creating a shared library.
  16188. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
  16189. # Dependencies to place before and after the objects being linked to
  16190. # create a shared library.
  16191. predep_objects=$lt_predep_objects_CXX
  16192. postdep_objects=$lt_postdep_objects_CXX
  16193. predeps=$lt_predeps_CXX
  16194. postdeps=$lt_postdeps_CXX
  16195. # The library search path used internally by the compiler when linking
  16196. # a shared library.
  16197. compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
  16198. # ### END LIBTOOL TAG CONFIG: CXX
  16199. _LT_EOF
  16200. ;;
  16201. "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
  16202. # Autoconf 2.62 quotes --file arguments for eval, but not when files
  16203. # are listed without --file. Let's play safe and only enable the eval
  16204. # if we detect the quoting.
  16205. case $CONFIG_FILES in
  16206. *\'*) eval set x "$CONFIG_FILES" ;;
  16207. *) set x $CONFIG_FILES ;;
  16208. esac
  16209. shift
  16210. for mf
  16211. do
  16212. # Strip MF so we end up with the name of the file.
  16213. mf=`echo "$mf" | sed -e 's/:.*$//'`
  16214. # Check whether this is an Automake generated Makefile or not.
  16215. # We used to match only the files named `Makefile.in', but
  16216. # some people rename them; so instead we look at the file content.
  16217. # Grep'ing the first line is not enough: some people post-process
  16218. # each Makefile.in and add a new line on top of each file to say so.
  16219. # Grep'ing the whole file is not good either: AIX grep has a line
  16220. # limit of 2048, but all sed's we know have understand at least 4000.
  16221. if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
  16222. dirpart=`$as_dirname -- "$mf" ||
  16223. $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  16224. X"$mf" : 'X\(//\)[^/]' \| \
  16225. X"$mf" : 'X\(//\)$' \| \
  16226. X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
  16227. $as_echo X"$mf" |
  16228. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  16229. s//\1/
  16230. q
  16231. }
  16232. /^X\(\/\/\)[^/].*/{
  16233. s//\1/
  16234. q
  16235. }
  16236. /^X\(\/\/\)$/{
  16237. s//\1/
  16238. q
  16239. }
  16240. /^X\(\/\).*/{
  16241. s//\1/
  16242. q
  16243. }
  16244. s/.*/./; q'`
  16245. else
  16246. continue
  16247. fi
  16248. # Extract the definition of DEPDIR, am__include, and am__quote
  16249. # from the Makefile without running `make'.
  16250. DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
  16251. test -z "$DEPDIR" && continue
  16252. am__include=`sed -n 's/^am__include = //p' < "$mf"`
  16253. test -z "am__include" && continue
  16254. am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
  16255. # When using ansi2knr, U may be empty or an underscore; expand it
  16256. U=`sed -n 's/^U = //p' < "$mf"`
  16257. # Find all dependency output files, they are included files with
  16258. # $(DEPDIR) in their names. We invoke sed twice because it is the
  16259. # simplest approach to changing $(DEPDIR) to its actual value in the
  16260. # expansion.
  16261. for file in `sed -n "
  16262. s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
  16263. sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
  16264. # Make sure the directory exists.
  16265. test -f "$dirpart/$file" && continue
  16266. fdir=`$as_dirname -- "$file" ||
  16267. $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  16268. X"$file" : 'X\(//\)[^/]' \| \
  16269. X"$file" : 'X\(//\)$' \| \
  16270. X"$file" : 'X\(/\)' \| . 2>/dev/null ||
  16271. $as_echo X"$file" |
  16272. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  16273. s//\1/
  16274. q
  16275. }
  16276. /^X\(\/\/\)[^/].*/{
  16277. s//\1/
  16278. q
  16279. }
  16280. /^X\(\/\/\)$/{
  16281. s//\1/
  16282. q
  16283. }
  16284. /^X\(\/\).*/{
  16285. s//\1/
  16286. q
  16287. }
  16288. s/.*/./; q'`
  16289. as_dir=$dirpart/$fdir; as_fn_mkdir_p
  16290. # echo "creating $dirpart/$file"
  16291. echo '# dummy' > "$dirpart/$file"
  16292. done
  16293. done
  16294. }
  16295. ;;
  16296. esac
  16297. done # for ac_tag
  16298. as_fn_exit 0
  16299. _ACEOF
  16300. ac_clean_files=$ac_clean_files_save
  16301. test $ac_write_fail = 0 ||
  16302. as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
  16303. # configure is writing to config.log, and then calls config.status.
  16304. # config.status does its own redirection, appending to config.log.
  16305. # Unfortunately, on DOS this fails, as config.log is still kept open
  16306. # by configure, so config.status won't be able to write to it; its
  16307. # output is simply discarded. So we exec the FD to /dev/null,
  16308. # effectively closing config.log, so it can be properly (re)opened and
  16309. # appended to by config.status. When coming back to configure, we
  16310. # need to make the FD available again.
  16311. if test "$no_create" != yes; then
  16312. ac_cs_success=:
  16313. ac_config_status_args=
  16314. test "$silent" = yes &&
  16315. ac_config_status_args="$ac_config_status_args --quiet"
  16316. exec 5>/dev/null
  16317. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  16318. exec 5>>config.log
  16319. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  16320. # would make configure fail if this is the last instruction.
  16321. $ac_cs_success || as_fn_exit 1
  16322. fi
  16323. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  16324. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  16325. $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  16326. fi