configure 685 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342123431234412345123461234712348123491235012351123521235312354123551235612357123581235912360123611236212363123641236512366123671236812369123701237112372123731237412375123761237712378123791238012381123821238312384123851238612387123881238912390123911239212393123941239512396123971239812399124001240112402124031240412405124061240712408124091241012411124121241312414124151241612417124181241912420124211242212423124241242512426124271242812429124301243112432124331243412435124361243712438124391244012441124421244312444124451244612447124481244912450124511245212453124541245512456124571245812459124601246112462124631246412465124661246712468124691247012471124721247312474124751247612477124781247912480124811248212483124841248512486124871248812489124901249112492124931249412495124961249712498124991250012501125021250312504125051250612507125081250912510125111251212513125141251512516125171251812519125201252112522125231252412525125261252712528125291253012531125321253312534125351253612537125381253912540125411254212543125441254512546125471254812549125501255112552125531255412555125561255712558125591256012561125621256312564125651256612567125681256912570125711257212573125741257512576125771257812579125801258112582125831258412585125861258712588125891259012591125921259312594125951259612597125981259912600126011260212603126041260512606126071260812609126101261112612126131261412615126161261712618126191262012621126221262312624126251262612627126281262912630126311263212633126341263512636126371263812639126401264112642126431264412645126461264712648126491265012651126521265312654126551265612657126581265912660126611266212663126641266512666126671266812669126701267112672126731267412675126761267712678126791268012681126821268312684126851268612687126881268912690126911269212693126941269512696126971269812699127001270112702127031270412705127061270712708127091271012711127121271312714127151271612717127181271912720127211272212723127241272512726127271272812729127301273112732127331273412735127361273712738127391274012741127421274312744127451274612747127481274912750127511275212753127541275512756127571275812759127601276112762127631276412765127661276712768127691277012771127721277312774127751277612777127781277912780127811278212783127841278512786127871278812789127901279112792127931279412795127961279712798127991280012801128021280312804128051280612807128081280912810128111281212813128141281512816128171281812819128201282112822128231282412825128261282712828128291283012831128321283312834128351283612837128381283912840128411284212843128441284512846128471284812849128501285112852128531285412855128561285712858128591286012861128621286312864128651286612867128681286912870128711287212873128741287512876128771287812879128801288112882128831288412885128861288712888128891289012891128921289312894128951289612897128981289912900129011290212903129041290512906129071290812909129101291112912129131291412915129161291712918129191292012921129221292312924129251292612927129281292912930129311293212933129341293512936129371293812939129401294112942129431294412945129461294712948129491295012951129521295312954129551295612957129581295912960129611296212963129641296512966129671296812969129701297112972129731297412975129761297712978129791298012981129821298312984129851298612987129881298912990129911299212993129941299512996129971299812999130001300113002130031300413005130061300713008130091301013011130121301313014130151301613017130181301913020130211302213023130241302513026130271302813029130301303113032130331303413035130361303713038130391304013041130421304313044130451304613047130481304913050130511305213053130541305513056130571305813059130601306113062130631306413065130661306713068130691307013071130721307313074130751307613077130781307913080130811308213083130841308513086130871308813089130901309113092130931309413095130961309713098130991310013101131021310313104131051310613107131081310913110131111311213113131141311513116131171311813119131201312113122131231312413125131261312713128131291313013131131321313313134131351313613137131381313913140131411314213143131441314513146131471314813149131501315113152131531315413155131561315713158131591316013161131621316313164131651316613167131681316913170131711317213173131741317513176131771317813179131801318113182131831318413185131861318713188131891319013191131921319313194131951319613197131981319913200132011320213203132041320513206132071320813209132101321113212132131321413215132161321713218132191322013221132221322313224132251322613227132281322913230132311323213233132341323513236132371323813239132401324113242132431324413245132461324713248132491325013251132521325313254132551325613257132581325913260132611326213263132641326513266132671326813269132701327113272132731327413275132761327713278132791328013281132821328313284132851328613287132881328913290132911329213293132941329513296132971329813299133001330113302133031330413305133061330713308133091331013311133121331313314133151331613317133181331913320133211332213323133241332513326133271332813329133301333113332133331333413335133361333713338133391334013341133421334313344133451334613347133481334913350133511335213353133541335513356133571335813359133601336113362133631336413365133661336713368133691337013371133721337313374133751337613377133781337913380133811338213383133841338513386133871338813389133901339113392133931339413395133961339713398133991340013401134021340313404134051340613407134081340913410134111341213413134141341513416134171341813419134201342113422134231342413425134261342713428134291343013431134321343313434134351343613437134381343913440134411344213443134441344513446134471344813449134501345113452134531345413455134561345713458134591346013461134621346313464134651346613467134681346913470134711347213473134741347513476134771347813479134801348113482134831348413485134861348713488134891349013491134921349313494134951349613497134981349913500135011350213503135041350513506135071350813509135101351113512135131351413515135161351713518135191352013521135221352313524135251352613527135281352913530135311353213533135341353513536135371353813539135401354113542135431354413545135461354713548135491355013551135521355313554135551355613557135581355913560135611356213563135641356513566135671356813569135701357113572135731357413575135761357713578135791358013581135821358313584135851358613587135881358913590135911359213593135941359513596135971359813599136001360113602136031360413605136061360713608136091361013611136121361313614136151361613617136181361913620136211362213623136241362513626136271362813629136301363113632136331363413635136361363713638136391364013641136421364313644136451364613647136481364913650136511365213653136541365513656136571365813659136601366113662136631366413665136661366713668136691367013671136721367313674136751367613677136781367913680136811368213683136841368513686136871368813689136901369113692136931369413695136961369713698136991370013701137021370313704137051370613707137081370913710137111371213713137141371513716137171371813719137201372113722137231372413725137261372713728137291373013731137321373313734137351373613737137381373913740137411374213743137441374513746137471374813749137501375113752137531375413755137561375713758137591376013761137621376313764137651376613767137681376913770137711377213773137741377513776137771377813779137801378113782137831378413785137861378713788137891379013791137921379313794137951379613797137981379913800138011380213803138041380513806138071380813809138101381113812138131381413815138161381713818138191382013821138221382313824138251382613827138281382913830138311383213833138341383513836138371383813839138401384113842138431384413845138461384713848138491385013851138521385313854138551385613857138581385913860138611386213863138641386513866138671386813869138701387113872138731387413875138761387713878138791388013881138821388313884138851388613887138881388913890138911389213893138941389513896138971389813899139001390113902139031390413905139061390713908139091391013911139121391313914139151391613917139181391913920139211392213923139241392513926139271392813929139301393113932139331393413935139361393713938139391394013941139421394313944139451394613947139481394913950139511395213953139541395513956139571395813959139601396113962139631396413965139661396713968139691397013971139721397313974139751397613977139781397913980139811398213983139841398513986139871398813989139901399113992139931399413995139961399713998139991400014001140021400314004140051400614007140081400914010140111401214013140141401514016140171401814019140201402114022140231402414025140261402714028140291403014031140321403314034140351403614037140381403914040140411404214043140441404514046140471404814049140501405114052140531405414055140561405714058140591406014061140621406314064140651406614067140681406914070140711407214073140741407514076140771407814079140801408114082140831408414085140861408714088140891409014091140921409314094140951409614097140981409914100141011410214103141041410514106141071410814109141101411114112141131411414115141161411714118141191412014121141221412314124141251412614127141281412914130141311413214133141341413514136141371413814139141401414114142141431414414145141461414714148141491415014151141521415314154141551415614157141581415914160141611416214163141641416514166141671416814169141701417114172141731417414175141761417714178141791418014181141821418314184141851418614187141881418914190141911419214193141941419514196141971419814199142001420114202142031420414205142061420714208142091421014211142121421314214142151421614217142181421914220142211422214223142241422514226142271422814229142301423114232142331423414235142361423714238142391424014241142421424314244142451424614247142481424914250142511425214253142541425514256142571425814259142601426114262142631426414265142661426714268142691427014271142721427314274142751427614277142781427914280142811428214283142841428514286142871428814289142901429114292142931429414295142961429714298142991430014301143021430314304143051430614307143081430914310143111431214313143141431514316143171431814319143201432114322143231432414325143261432714328143291433014331143321433314334143351433614337143381433914340143411434214343143441434514346143471434814349143501435114352143531435414355143561435714358143591436014361143621436314364143651436614367143681436914370143711437214373143741437514376143771437814379143801438114382143831438414385143861438714388143891439014391143921439314394143951439614397143981439914400144011440214403144041440514406144071440814409144101441114412144131441414415144161441714418144191442014421144221442314424144251442614427144281442914430144311443214433144341443514436144371443814439144401444114442144431444414445144461444714448144491445014451144521445314454144551445614457144581445914460144611446214463144641446514466144671446814469144701447114472144731447414475144761447714478144791448014481144821448314484144851448614487144881448914490144911449214493144941449514496144971449814499145001450114502145031450414505145061450714508145091451014511145121451314514145151451614517145181451914520145211452214523145241452514526145271452814529145301453114532145331453414535145361453714538145391454014541145421454314544145451454614547145481454914550145511455214553145541455514556145571455814559145601456114562145631456414565145661456714568145691457014571145721457314574145751457614577145781457914580145811458214583145841458514586145871458814589145901459114592145931459414595145961459714598145991460014601146021460314604146051460614607146081460914610146111461214613146141461514616146171461814619146201462114622146231462414625146261462714628146291463014631146321463314634146351463614637146381463914640146411464214643146441464514646146471464814649146501465114652146531465414655146561465714658146591466014661146621466314664146651466614667146681466914670146711467214673146741467514676146771467814679146801468114682146831468414685146861468714688146891469014691146921469314694146951469614697146981469914700147011470214703147041470514706147071470814709147101471114712147131471414715147161471714718147191472014721147221472314724147251472614727147281472914730147311473214733147341473514736147371473814739147401474114742147431474414745147461474714748147491475014751147521475314754147551475614757147581475914760147611476214763147641476514766147671476814769147701477114772147731477414775147761477714778147791478014781147821478314784147851478614787147881478914790147911479214793147941479514796147971479814799148001480114802148031480414805148061480714808148091481014811148121481314814148151481614817148181481914820148211482214823148241482514826148271482814829148301483114832148331483414835148361483714838148391484014841148421484314844148451484614847148481484914850148511485214853148541485514856148571485814859148601486114862148631486414865148661486714868148691487014871148721487314874148751487614877148781487914880148811488214883148841488514886148871488814889148901489114892148931489414895148961489714898148991490014901149021490314904149051490614907149081490914910149111491214913149141491514916149171491814919149201492114922149231492414925149261492714928149291493014931149321493314934149351493614937149381493914940149411494214943149441494514946149471494814949149501495114952149531495414955149561495714958149591496014961149621496314964149651496614967149681496914970149711497214973149741497514976149771497814979149801498114982149831498414985149861498714988149891499014991149921499314994149951499614997149981499915000150011500215003150041500515006150071500815009150101501115012150131501415015150161501715018150191502015021150221502315024150251502615027150281502915030150311503215033150341503515036150371503815039150401504115042150431504415045150461504715048150491505015051150521505315054150551505615057150581505915060150611506215063150641506515066150671506815069150701507115072150731507415075150761507715078150791508015081150821508315084150851508615087150881508915090150911509215093150941509515096150971509815099151001510115102151031510415105151061510715108151091511015111151121511315114151151511615117151181511915120151211512215123151241512515126151271512815129151301513115132151331513415135151361513715138151391514015141151421514315144151451514615147151481514915150151511515215153151541515515156151571515815159151601516115162151631516415165151661516715168151691517015171151721517315174151751517615177151781517915180151811518215183151841518515186151871518815189151901519115192151931519415195151961519715198151991520015201152021520315204152051520615207152081520915210152111521215213152141521515216152171521815219152201522115222152231522415225152261522715228152291523015231152321523315234152351523615237152381523915240152411524215243152441524515246152471524815249152501525115252152531525415255152561525715258152591526015261152621526315264152651526615267152681526915270152711527215273152741527515276152771527815279152801528115282152831528415285152861528715288152891529015291152921529315294152951529615297152981529915300153011530215303153041530515306153071530815309153101531115312153131531415315153161531715318153191532015321153221532315324153251532615327153281532915330153311533215333153341533515336153371533815339153401534115342153431534415345153461534715348153491535015351153521535315354153551535615357153581535915360153611536215363153641536515366153671536815369153701537115372153731537415375153761537715378153791538015381153821538315384153851538615387153881538915390153911539215393153941539515396153971539815399154001540115402154031540415405154061540715408154091541015411154121541315414154151541615417154181541915420154211542215423154241542515426154271542815429154301543115432154331543415435154361543715438154391544015441154421544315444154451544615447154481544915450154511545215453154541545515456154571545815459154601546115462154631546415465154661546715468154691547015471154721547315474154751547615477154781547915480154811548215483154841548515486154871548815489154901549115492154931549415495154961549715498154991550015501155021550315504155051550615507155081550915510155111551215513155141551515516155171551815519155201552115522155231552415525155261552715528155291553015531155321553315534155351553615537155381553915540155411554215543155441554515546155471554815549155501555115552155531555415555155561555715558155591556015561155621556315564155651556615567155681556915570155711557215573155741557515576155771557815579155801558115582155831558415585155861558715588155891559015591155921559315594155951559615597155981559915600156011560215603156041560515606156071560815609156101561115612156131561415615156161561715618156191562015621156221562315624156251562615627156281562915630156311563215633156341563515636156371563815639156401564115642156431564415645156461564715648156491565015651156521565315654156551565615657156581565915660156611566215663156641566515666156671566815669156701567115672156731567415675156761567715678156791568015681156821568315684156851568615687156881568915690156911569215693156941569515696156971569815699157001570115702157031570415705157061570715708157091571015711157121571315714157151571615717157181571915720157211572215723157241572515726157271572815729157301573115732157331573415735157361573715738157391574015741157421574315744157451574615747157481574915750157511575215753157541575515756157571575815759157601576115762157631576415765157661576715768157691577015771157721577315774157751577615777157781577915780157811578215783157841578515786157871578815789157901579115792157931579415795157961579715798157991580015801158021580315804158051580615807158081580915810158111581215813158141581515816158171581815819158201582115822158231582415825158261582715828158291583015831158321583315834158351583615837158381583915840158411584215843158441584515846158471584815849158501585115852158531585415855158561585715858158591586015861158621586315864158651586615867158681586915870158711587215873158741587515876158771587815879158801588115882158831588415885158861588715888158891589015891158921589315894158951589615897158981589915900159011590215903159041590515906159071590815909159101591115912159131591415915159161591715918159191592015921159221592315924159251592615927159281592915930159311593215933159341593515936159371593815939159401594115942159431594415945159461594715948159491595015951159521595315954159551595615957159581595915960159611596215963159641596515966159671596815969159701597115972159731597415975159761597715978159791598015981159821598315984159851598615987159881598915990159911599215993159941599515996159971599815999160001600116002160031600416005160061600716008160091601016011160121601316014160151601616017160181601916020160211602216023160241602516026160271602816029160301603116032160331603416035160361603716038160391604016041160421604316044160451604616047160481604916050160511605216053160541605516056160571605816059160601606116062160631606416065160661606716068160691607016071160721607316074160751607616077160781607916080160811608216083160841608516086160871608816089160901609116092160931609416095160961609716098160991610016101161021610316104161051610616107161081610916110161111611216113161141611516116161171611816119161201612116122161231612416125161261612716128161291613016131161321613316134161351613616137161381613916140161411614216143161441614516146161471614816149161501615116152161531615416155161561615716158161591616016161161621616316164161651616616167161681616916170161711617216173161741617516176161771617816179161801618116182161831618416185161861618716188161891619016191161921619316194161951619616197161981619916200162011620216203162041620516206162071620816209162101621116212162131621416215162161621716218162191622016221162221622316224162251622616227162281622916230162311623216233162341623516236162371623816239162401624116242162431624416245162461624716248162491625016251162521625316254162551625616257162581625916260162611626216263162641626516266162671626816269162701627116272162731627416275162761627716278162791628016281162821628316284162851628616287162881628916290162911629216293162941629516296162971629816299163001630116302163031630416305163061630716308163091631016311163121631316314163151631616317163181631916320163211632216323163241632516326163271632816329163301633116332163331633416335163361633716338163391634016341163421634316344163451634616347163481634916350163511635216353163541635516356163571635816359163601636116362163631636416365163661636716368163691637016371163721637316374163751637616377163781637916380163811638216383163841638516386163871638816389163901639116392163931639416395163961639716398163991640016401164021640316404164051640616407164081640916410164111641216413164141641516416164171641816419164201642116422164231642416425164261642716428164291643016431164321643316434164351643616437164381643916440164411644216443164441644516446164471644816449164501645116452164531645416455164561645716458164591646016461164621646316464164651646616467164681646916470164711647216473164741647516476164771647816479164801648116482164831648416485164861648716488164891649016491164921649316494164951649616497164981649916500165011650216503165041650516506165071650816509165101651116512165131651416515165161651716518165191652016521165221652316524165251652616527165281652916530165311653216533165341653516536165371653816539165401654116542165431654416545165461654716548165491655016551165521655316554165551655616557165581655916560165611656216563165641656516566165671656816569165701657116572165731657416575165761657716578165791658016581165821658316584165851658616587165881658916590165911659216593165941659516596165971659816599166001660116602166031660416605166061660716608166091661016611166121661316614166151661616617166181661916620166211662216623166241662516626166271662816629166301663116632166331663416635166361663716638166391664016641166421664316644166451664616647166481664916650166511665216653166541665516656166571665816659166601666116662166631666416665166661666716668166691667016671166721667316674166751667616677166781667916680166811668216683166841668516686166871668816689166901669116692166931669416695166961669716698166991670016701167021670316704167051670616707167081670916710167111671216713167141671516716167171671816719167201672116722167231672416725167261672716728167291673016731167321673316734167351673616737167381673916740167411674216743167441674516746167471674816749167501675116752167531675416755167561675716758167591676016761167621676316764167651676616767167681676916770167711677216773167741677516776167771677816779167801678116782167831678416785167861678716788167891679016791167921679316794167951679616797167981679916800168011680216803168041680516806168071680816809168101681116812168131681416815168161681716818168191682016821168221682316824168251682616827168281682916830168311683216833168341683516836168371683816839168401684116842168431684416845168461684716848168491685016851168521685316854168551685616857168581685916860168611686216863168641686516866168671686816869168701687116872168731687416875168761687716878168791688016881168821688316884168851688616887168881688916890168911689216893168941689516896168971689816899169001690116902169031690416905169061690716908169091691016911169121691316914169151691616917169181691916920169211692216923169241692516926169271692816929169301693116932169331693416935169361693716938169391694016941169421694316944169451694616947169481694916950169511695216953169541695516956169571695816959169601696116962169631696416965169661696716968169691697016971169721697316974169751697616977169781697916980169811698216983169841698516986169871698816989169901699116992169931699416995169961699716998169991700017001170021700317004170051700617007170081700917010170111701217013170141701517016170171701817019170201702117022170231702417025170261702717028170291703017031170321703317034170351703617037170381703917040170411704217043170441704517046170471704817049170501705117052170531705417055170561705717058170591706017061170621706317064170651706617067170681706917070170711707217073170741707517076170771707817079170801708117082170831708417085170861708717088170891709017091170921709317094170951709617097170981709917100171011710217103171041710517106171071710817109171101711117112171131711417115171161711717118171191712017121171221712317124171251712617127171281712917130171311713217133171341713517136171371713817139171401714117142171431714417145171461714717148171491715017151171521715317154171551715617157171581715917160171611716217163171641716517166171671716817169171701717117172171731717417175171761717717178171791718017181171821718317184171851718617187171881718917190171911719217193171941719517196171971719817199172001720117202172031720417205172061720717208172091721017211172121721317214172151721617217172181721917220172211722217223172241722517226172271722817229172301723117232172331723417235172361723717238172391724017241172421724317244172451724617247172481724917250172511725217253172541725517256172571725817259172601726117262172631726417265172661726717268172691727017271172721727317274172751727617277172781727917280172811728217283172841728517286172871728817289172901729117292172931729417295172961729717298172991730017301173021730317304173051730617307173081730917310173111731217313173141731517316173171731817319173201732117322173231732417325173261732717328173291733017331173321733317334173351733617337173381733917340173411734217343173441734517346173471734817349173501735117352173531735417355173561735717358173591736017361173621736317364173651736617367173681736917370173711737217373173741737517376173771737817379173801738117382173831738417385173861738717388173891739017391173921739317394173951739617397173981739917400174011740217403174041740517406174071740817409174101741117412174131741417415174161741717418174191742017421174221742317424174251742617427174281742917430174311743217433174341743517436174371743817439174401744117442174431744417445174461744717448174491745017451174521745317454174551745617457174581745917460174611746217463174641746517466174671746817469174701747117472174731747417475174761747717478174791748017481174821748317484174851748617487174881748917490174911749217493174941749517496174971749817499175001750117502175031750417505175061750717508175091751017511175121751317514175151751617517175181751917520175211752217523175241752517526175271752817529175301753117532175331753417535175361753717538175391754017541175421754317544175451754617547175481754917550175511755217553175541755517556175571755817559175601756117562175631756417565175661756717568175691757017571175721757317574175751757617577175781757917580175811758217583175841758517586175871758817589175901759117592175931759417595175961759717598175991760017601176021760317604176051760617607176081760917610176111761217613176141761517616176171761817619176201762117622176231762417625176261762717628176291763017631176321763317634176351763617637176381763917640176411764217643176441764517646176471764817649176501765117652176531765417655176561765717658176591766017661176621766317664176651766617667176681766917670176711767217673176741767517676176771767817679176801768117682176831768417685176861768717688176891769017691176921769317694176951769617697176981769917700177011770217703177041770517706177071770817709177101771117712177131771417715177161771717718177191772017721177221772317724177251772617727177281772917730177311773217733177341773517736177371773817739177401774117742177431774417745177461774717748177491775017751177521775317754177551775617757177581775917760177611776217763177641776517766177671776817769177701777117772177731777417775177761777717778177791778017781177821778317784177851778617787177881778917790177911779217793177941779517796177971779817799178001780117802178031780417805178061780717808178091781017811178121781317814178151781617817178181781917820178211782217823178241782517826178271782817829178301783117832178331783417835178361783717838178391784017841178421784317844178451784617847178481784917850178511785217853178541785517856178571785817859178601786117862178631786417865178661786717868178691787017871178721787317874178751787617877178781787917880178811788217883178841788517886178871788817889178901789117892178931789417895178961789717898178991790017901179021790317904179051790617907179081790917910179111791217913179141791517916179171791817919179201792117922179231792417925179261792717928179291793017931179321793317934179351793617937179381793917940179411794217943179441794517946179471794817949179501795117952179531795417955179561795717958179591796017961179621796317964179651796617967179681796917970179711797217973179741797517976179771797817979179801798117982179831798417985179861798717988179891799017991179921799317994179951799617997179981799918000180011800218003180041800518006180071800818009180101801118012180131801418015180161801718018180191802018021180221802318024180251802618027180281802918030180311803218033180341803518036180371803818039180401804118042180431804418045180461804718048180491805018051180521805318054180551805618057180581805918060180611806218063180641806518066180671806818069180701807118072180731807418075180761807718078180791808018081180821808318084180851808618087180881808918090180911809218093180941809518096180971809818099181001810118102181031810418105181061810718108181091811018111181121811318114181151811618117181181811918120181211812218123181241812518126181271812818129181301813118132181331813418135181361813718138181391814018141181421814318144181451814618147181481814918150181511815218153181541815518156181571815818159181601816118162181631816418165181661816718168181691817018171181721817318174181751817618177181781817918180181811818218183181841818518186181871818818189181901819118192181931819418195181961819718198181991820018201182021820318204182051820618207182081820918210182111821218213182141821518216182171821818219182201822118222182231822418225182261822718228182291823018231182321823318234182351823618237182381823918240182411824218243182441824518246182471824818249182501825118252182531825418255182561825718258182591826018261182621826318264182651826618267182681826918270182711827218273182741827518276182771827818279182801828118282182831828418285182861828718288182891829018291182921829318294182951829618297182981829918300183011830218303183041830518306183071830818309183101831118312183131831418315183161831718318183191832018321183221832318324183251832618327183281832918330183311833218333183341833518336183371833818339183401834118342183431834418345183461834718348183491835018351183521835318354183551835618357183581835918360183611836218363183641836518366183671836818369183701837118372183731837418375183761837718378183791838018381183821838318384183851838618387183881838918390183911839218393183941839518396183971839818399184001840118402184031840418405184061840718408184091841018411184121841318414184151841618417184181841918420184211842218423184241842518426184271842818429184301843118432184331843418435184361843718438184391844018441184421844318444184451844618447184481844918450184511845218453184541845518456184571845818459184601846118462184631846418465184661846718468184691847018471184721847318474184751847618477184781847918480184811848218483184841848518486184871848818489184901849118492184931849418495184961849718498184991850018501185021850318504185051850618507185081850918510185111851218513185141851518516185171851818519185201852118522185231852418525185261852718528185291853018531185321853318534185351853618537185381853918540185411854218543185441854518546185471854818549185501855118552185531855418555185561855718558185591856018561185621856318564185651856618567185681856918570185711857218573185741857518576185771857818579185801858118582185831858418585185861858718588185891859018591185921859318594185951859618597185981859918600186011860218603186041860518606186071860818609186101861118612186131861418615186161861718618186191862018621186221862318624186251862618627186281862918630186311863218633186341863518636186371863818639186401864118642186431864418645186461864718648186491865018651186521865318654186551865618657186581865918660186611866218663186641866518666186671866818669186701867118672186731867418675186761867718678186791868018681186821868318684186851868618687186881868918690186911869218693186941869518696186971869818699187001870118702187031870418705187061870718708187091871018711187121871318714187151871618717187181871918720187211872218723187241872518726187271872818729187301873118732187331873418735187361873718738187391874018741187421874318744187451874618747187481874918750187511875218753187541875518756187571875818759187601876118762187631876418765187661876718768187691877018771187721877318774187751877618777187781877918780187811878218783187841878518786187871878818789187901879118792187931879418795187961879718798187991880018801188021880318804188051880618807188081880918810188111881218813188141881518816188171881818819188201882118822188231882418825188261882718828188291883018831188321883318834188351883618837188381883918840188411884218843188441884518846188471884818849188501885118852188531885418855188561885718858188591886018861188621886318864188651886618867188681886918870188711887218873188741887518876188771887818879188801888118882188831888418885188861888718888188891889018891188921889318894188951889618897188981889918900189011890218903189041890518906189071890818909189101891118912189131891418915189161891718918189191892018921189221892318924189251892618927189281892918930189311893218933189341893518936189371893818939189401894118942189431894418945189461894718948189491895018951189521895318954189551895618957189581895918960189611896218963189641896518966189671896818969189701897118972189731897418975189761897718978189791898018981189821898318984189851898618987189881898918990189911899218993189941899518996189971899818999190001900119002190031900419005190061900719008190091901019011190121901319014190151901619017190181901919020190211902219023190241902519026190271902819029190301903119032190331903419035190361903719038190391904019041190421904319044190451904619047190481904919050190511905219053190541905519056190571905819059190601906119062190631906419065190661906719068190691907019071190721907319074190751907619077190781907919080190811908219083190841908519086190871908819089190901909119092190931909419095190961909719098190991910019101191021910319104191051910619107191081910919110191111911219113191141911519116191171911819119191201912119122191231912419125191261912719128191291913019131191321913319134191351913619137191381913919140191411914219143191441914519146191471914819149191501915119152191531915419155191561915719158191591916019161191621916319164191651916619167191681916919170191711917219173191741917519176191771917819179191801918119182191831918419185191861918719188191891919019191191921919319194191951919619197191981919919200192011920219203192041920519206192071920819209192101921119212192131921419215192161921719218192191922019221192221922319224192251922619227192281922919230192311923219233192341923519236192371923819239192401924119242192431924419245192461924719248192491925019251192521925319254192551925619257192581925919260192611926219263192641926519266192671926819269192701927119272192731927419275192761927719278192791928019281192821928319284192851928619287192881928919290192911929219293192941929519296192971929819299193001930119302193031930419305193061930719308193091931019311193121931319314193151931619317193181931919320193211932219323193241932519326193271932819329193301933119332193331933419335193361933719338193391934019341193421934319344193451934619347193481934919350193511935219353193541935519356193571935819359193601936119362193631936419365193661936719368193691937019371193721937319374193751937619377193781937919380193811938219383193841938519386193871938819389193901939119392193931939419395193961939719398193991940019401194021940319404194051940619407194081940919410194111941219413194141941519416194171941819419194201942119422194231942419425194261942719428194291943019431194321943319434194351943619437194381943919440194411944219443194441944519446194471944819449194501945119452194531945419455194561945719458194591946019461194621946319464194651946619467194681946919470194711947219473194741947519476194771947819479194801948119482194831948419485194861948719488194891949019491194921949319494194951949619497194981949919500195011950219503195041950519506195071950819509195101951119512195131951419515195161951719518195191952019521195221952319524195251952619527195281952919530195311953219533195341953519536195371953819539195401954119542195431954419545195461954719548195491955019551195521955319554195551955619557195581955919560195611956219563195641956519566195671956819569195701957119572195731957419575195761957719578195791958019581195821958319584195851958619587195881958919590195911959219593195941959519596195971959819599196001960119602196031960419605196061960719608196091961019611196121961319614196151961619617196181961919620196211962219623196241962519626196271962819629196301963119632196331963419635196361963719638196391964019641196421964319644196451964619647196481964919650196511965219653196541965519656196571965819659196601966119662196631966419665196661966719668196691967019671196721967319674196751967619677196781967919680196811968219683196841968519686196871968819689196901969119692196931969419695196961969719698196991970019701197021970319704197051970619707197081970919710197111971219713197141971519716197171971819719197201972119722197231972419725197261972719728197291973019731197321973319734197351973619737197381973919740197411974219743197441974519746197471974819749197501975119752197531975419755197561975719758197591976019761197621976319764197651976619767197681976919770197711977219773197741977519776197771977819779197801978119782197831978419785197861978719788197891979019791197921979319794197951979619797197981979919800198011980219803198041980519806198071980819809198101981119812198131981419815198161981719818198191982019821198221982319824198251982619827198281982919830198311983219833198341983519836198371983819839198401984119842198431984419845198461984719848198491985019851198521985319854198551985619857198581985919860198611986219863198641986519866198671986819869198701987119872198731987419875198761987719878198791988019881198821988319884198851988619887198881988919890198911989219893198941989519896198971989819899199001990119902199031990419905199061990719908199091991019911199121991319914199151991619917199181991919920199211992219923199241992519926199271992819929199301993119932199331993419935199361993719938199391994019941199421994319944199451994619947199481994919950199511995219953199541995519956199571995819959199601996119962199631996419965199661996719968199691997019971199721997319974199751997619977199781997919980199811998219983199841998519986199871998819989199901999119992199931999419995199961999719998199992000020001200022000320004200052000620007200082000920010200112001220013200142001520016200172001820019200202002120022200232002420025200262002720028200292003020031200322003320034200352003620037200382003920040200412004220043200442004520046200472004820049200502005120052200532005420055200562005720058200592006020061200622006320064200652006620067200682006920070200712007220073200742007520076200772007820079200802008120082200832008420085200862008720088200892009020091200922009320094200952009620097200982009920100201012010220103201042010520106201072010820109201102011120112201132011420115201162011720118201192012020121201222012320124201252012620127201282012920130201312013220133201342013520136201372013820139201402014120142201432014420145201462014720148201492015020151201522015320154201552015620157201582015920160201612016220163201642016520166201672016820169201702017120172201732017420175201762017720178201792018020181201822018320184201852018620187201882018920190201912019220193201942019520196201972019820199202002020120202202032020420205202062020720208202092021020211202122021320214202152021620217202182021920220202212022220223202242022520226202272022820229202302023120232202332023420235202362023720238202392024020241202422024320244202452024620247202482024920250202512025220253202542025520256202572025820259202602026120262202632026420265202662026720268202692027020271202722027320274202752027620277202782027920280202812028220283202842028520286202872028820289202902029120292202932029420295202962029720298202992030020301203022030320304203052030620307203082030920310203112031220313203142031520316203172031820319203202032120322203232032420325203262032720328203292033020331203322033320334203352033620337203382033920340203412034220343203442034520346203472034820349203502035120352203532035420355203562035720358203592036020361203622036320364203652036620367203682036920370203712037220373203742037520376203772037820379203802038120382203832038420385203862038720388203892039020391203922039320394203952039620397203982039920400204012040220403204042040520406204072040820409204102041120412204132041420415204162041720418204192042020421204222042320424204252042620427204282042920430204312043220433204342043520436204372043820439204402044120442204432044420445204462044720448204492045020451204522045320454204552045620457204582045920460204612046220463204642046520466204672046820469204702047120472204732047420475204762047720478204792048020481204822048320484204852048620487204882048920490204912049220493204942049520496204972049820499205002050120502205032050420505205062050720508205092051020511205122051320514205152051620517205182051920520205212052220523205242052520526205272052820529205302053120532205332053420535205362053720538205392054020541205422054320544205452054620547205482054920550205512055220553205542055520556205572055820559205602056120562205632056420565205662056720568205692057020571205722057320574205752057620577205782057920580205812058220583205842058520586205872058820589205902059120592205932059420595205962059720598205992060020601206022060320604206052060620607206082060920610206112061220613206142061520616206172061820619206202062120622206232062420625206262062720628206292063020631206322063320634206352063620637206382063920640206412064220643206442064520646206472064820649206502065120652206532065420655206562065720658206592066020661206622066320664206652066620667206682066920670206712067220673206742067520676206772067820679206802068120682206832068420685206862068720688206892069020691206922069320694206952069620697206982069920700207012070220703207042070520706207072070820709207102071120712207132071420715207162071720718207192072020721207222072320724207252072620727207282072920730207312073220733207342073520736207372073820739207402074120742207432074420745207462074720748207492075020751207522075320754207552075620757207582075920760207612076220763207642076520766207672076820769207702077120772207732077420775207762077720778207792078020781207822078320784207852078620787207882078920790207912079220793207942079520796207972079820799208002080120802208032080420805208062080720808208092081020811208122081320814208152081620817208182081920820208212082220823208242082520826208272082820829208302083120832208332083420835208362083720838208392084020841208422084320844208452084620847208482084920850208512085220853208542085520856208572085820859208602086120862208632086420865208662086720868208692087020871208722087320874208752087620877208782087920880208812088220883208842088520886208872088820889208902089120892208932089420895208962089720898208992090020901209022090320904209052090620907209082090920910209112091220913209142091520916209172091820919209202092120922209232092420925209262092720928209292093020931209322093320934209352093620937209382093920940209412094220943209442094520946209472094820949209502095120952209532095420955209562095720958209592096020961209622096320964209652096620967209682096920970209712097220973209742097520976209772097820979209802098120982209832098420985209862098720988209892099020991209922099320994209952099620997209982099921000210012100221003210042100521006210072100821009210102101121012210132101421015210162101721018210192102021021210222102321024210252102621027210282102921030210312103221033210342103521036210372103821039210402104121042210432104421045210462104721048210492105021051210522105321054210552105621057210582105921060210612106221063210642106521066210672106821069210702107121072210732107421075210762107721078210792108021081210822108321084210852108621087210882108921090210912109221093210942109521096210972109821099211002110121102211032110421105211062110721108211092111021111211122111321114211152111621117211182111921120211212112221123211242112521126211272112821129211302113121132211332113421135211362113721138211392114021141211422114321144211452114621147211482114921150211512115221153211542115521156211572115821159211602116121162211632116421165211662116721168211692117021171211722117321174211752117621177211782117921180211812118221183211842118521186211872118821189211902119121192211932119421195211962119721198211992120021201212022120321204212052120621207212082120921210212112121221213212142121521216212172121821219212202122121222212232122421225212262122721228212292123021231212322123321234212352123621237212382123921240212412124221243212442124521246212472124821249212502125121252212532125421255212562125721258212592126021261212622126321264212652126621267212682126921270212712127221273212742127521276212772127821279212802128121282212832128421285212862128721288212892129021291212922129321294212952129621297212982129921300213012130221303213042130521306213072130821309213102131121312213132131421315213162131721318213192132021321213222132321324213252132621327213282132921330213312133221333213342133521336213372133821339213402134121342213432134421345213462134721348213492135021351213522135321354213552135621357213582135921360213612136221363213642136521366213672136821369213702137121372213732137421375213762137721378213792138021381213822138321384213852138621387213882138921390213912139221393213942139521396213972139821399214002140121402214032140421405214062140721408214092141021411214122141321414214152141621417214182141921420214212142221423214242142521426214272142821429214302143121432214332143421435214362143721438214392144021441214422144321444214452144621447214482144921450214512145221453214542145521456214572145821459214602146121462214632146421465214662146721468214692147021471214722147321474214752147621477214782147921480214812148221483214842148521486214872148821489214902149121492214932149421495214962149721498214992150021501215022150321504215052150621507215082150921510215112151221513215142151521516215172151821519215202152121522215232152421525215262152721528215292153021531215322153321534215352153621537215382153921540215412154221543215442154521546215472154821549215502155121552215532155421555215562155721558215592156021561215622156321564215652156621567215682156921570215712157221573215742157521576215772157821579215802158121582215832158421585215862158721588215892159021591215922159321594215952159621597215982159921600216012160221603216042160521606216072160821609216102161121612216132161421615216162161721618216192162021621216222162321624216252162621627216282162921630216312163221633216342163521636216372163821639216402164121642216432164421645216462164721648216492165021651216522165321654216552165621657216582165921660216612166221663216642166521666216672166821669216702167121672216732167421675216762167721678216792168021681216822168321684216852168621687216882168921690216912169221693216942169521696216972169821699217002170121702217032170421705217062170721708217092171021711217122171321714217152171621717217182171921720217212172221723217242172521726217272172821729217302173121732217332173421735217362173721738217392174021741217422174321744217452174621747217482174921750217512175221753217542175521756217572175821759217602176121762217632176421765217662176721768217692177021771217722177321774217752177621777217782177921780217812178221783217842178521786217872178821789217902179121792217932179421795217962179721798217992180021801218022180321804218052180621807218082180921810218112181221813218142181521816218172181821819218202182121822218232182421825218262182721828218292183021831218322183321834218352183621837218382183921840218412184221843218442184521846218472184821849218502185121852218532185421855218562185721858218592186021861218622186321864218652186621867218682186921870218712187221873218742187521876218772187821879218802188121882218832188421885218862188721888218892189021891218922189321894218952189621897218982189921900219012190221903219042190521906219072190821909219102191121912219132191421915219162191721918219192192021921219222192321924219252192621927219282192921930219312193221933219342193521936219372193821939219402194121942219432194421945219462194721948219492195021951219522195321954219552195621957219582195921960219612196221963219642196521966219672196821969219702197121972219732197421975219762197721978219792198021981219822198321984219852198621987219882198921990219912199221993219942199521996219972199821999220002200122002220032200422005220062200722008220092201022011220122201322014220152201622017220182201922020220212202222023220242202522026220272202822029220302203122032220332203422035220362203722038220392204022041220422204322044220452204622047220482204922050220512205222053220542205522056220572205822059220602206122062220632206422065220662206722068220692207022071220722207322074220752207622077220782207922080220812208222083220842208522086220872208822089220902209122092220932209422095220962209722098220992210022101221022210322104221052210622107221082210922110221112211222113221142211522116221172211822119221202212122122221232212422125221262212722128221292213022131221322213322134221352213622137221382213922140221412214222143221442214522146221472214822149221502215122152221532215422155221562215722158221592216022161221622216322164221652216622167221682216922170221712217222173221742217522176221772217822179221802218122182221832218422185221862218722188221892219022191221922219322194221952219622197221982219922200222012220222203222042220522206222072220822209222102221122212222132221422215222162221722218222192222022221222222222322224222252222622227222282222922230222312223222233222342223522236222372223822239222402224122242222432224422245222462224722248222492225022251222522225322254222552225622257222582225922260222612226222263222642226522266222672226822269222702227122272222732227422275222762227722278222792228022281222822228322284222852228622287222882228922290222912229222293222942229522296222972229822299223002230122302223032230422305223062230722308223092231022311223122231322314223152231622317223182231922320223212232222323223242232522326223272232822329223302233122332223332233422335223362233722338223392234022341223422234322344223452234622347223482234922350223512235222353223542235522356223572235822359223602236122362223632236422365223662236722368223692237022371223722237322374223752237622377223782237922380223812238222383223842238522386223872238822389223902239122392223932239422395223962239722398223992240022401224022240322404224052240622407224082240922410224112241222413224142241522416224172241822419224202242122422224232242422425224262242722428224292243022431224322243322434224352243622437224382243922440224412244222443224442244522446224472244822449224502245122452224532245422455224562245722458224592246022461224622246322464224652246622467224682246922470224712247222473224742247522476224772247822479224802248122482224832248422485224862248722488224892249022491224922249322494224952249622497224982249922500225012250222503225042250522506225072250822509225102251122512225132251422515225162251722518225192252022521225222252322524225252252622527225282252922530225312253222533225342253522536225372253822539225402254122542225432254422545225462254722548225492255022551225522255322554225552255622557225582255922560225612256222563225642256522566225672256822569225702257122572225732257422575225762257722578225792258022581225822258322584225852258622587225882258922590225912259222593225942259522596225972259822599226002260122602226032260422605226062260722608226092261022611226122261322614226152261622617226182261922620226212262222623226242262522626226272262822629226302263122632226332263422635226362263722638226392264022641226422264322644226452264622647226482264922650226512265222653226542265522656226572265822659226602266122662226632266422665226662266722668226692267022671226722267322674
  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.69 for gperftools 2.9.1.
  4. #
  5. # Report bugs to <gperftools@googlegroups.com>.
  6. #
  7. #
  8. # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
  9. #
  10. #
  11. # This configure script is free software; the Free Software Foundation
  12. # gives unlimited permission to copy, distribute and modify it.
  13. ## -------------------- ##
  14. ## M4sh Initialization. ##
  15. ## -------------------- ##
  16. # Be more Bourne compatible
  17. DUALCASE=1; export DUALCASE # for MKS sh
  18. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  19. emulate sh
  20. NULLCMD=:
  21. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  22. # is contrary to our usage. Disable this feature.
  23. alias -g '${1+"$@"}'='"$@"'
  24. setopt NO_GLOB_SUBST
  25. else
  26. case `(set -o) 2>/dev/null` in #(
  27. *posix*) :
  28. set -o posix ;; #(
  29. *) :
  30. ;;
  31. esac
  32. fi
  33. as_nl='
  34. '
  35. export as_nl
  36. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  37. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  38. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  39. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  40. # Prefer a ksh shell builtin over an external printf program on Solaris,
  41. # but without wasting forks for bash or zsh.
  42. if test -z "$BASH_VERSION$ZSH_VERSION" \
  43. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  44. as_echo='print -r --'
  45. as_echo_n='print -rn --'
  46. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  47. as_echo='printf %s\n'
  48. as_echo_n='printf %s'
  49. else
  50. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  51. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  52. as_echo_n='/usr/ucb/echo -n'
  53. else
  54. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  55. as_echo_n_body='eval
  56. arg=$1;
  57. case $arg in #(
  58. *"$as_nl"*)
  59. expr "X$arg" : "X\\(.*\\)$as_nl";
  60. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  61. esac;
  62. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  63. '
  64. export as_echo_n_body
  65. as_echo_n='sh -c $as_echo_n_body as_echo'
  66. fi
  67. export as_echo_body
  68. as_echo='sh -c $as_echo_body as_echo'
  69. fi
  70. # The user is always right.
  71. if test "${PATH_SEPARATOR+set}" != set; then
  72. PATH_SEPARATOR=:
  73. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  74. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  75. PATH_SEPARATOR=';'
  76. }
  77. fi
  78. # IFS
  79. # We need space, tab and new line, in precisely that order. Quoting is
  80. # there to prevent editors from complaining about space-tab.
  81. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  82. # splitting by setting IFS to empty value.)
  83. IFS=" "" $as_nl"
  84. # Find who we are. Look in the path if we contain no directory separator.
  85. as_myself=
  86. case $0 in #((
  87. *[\\/]* ) as_myself=$0 ;;
  88. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  89. for as_dir in $PATH
  90. do
  91. IFS=$as_save_IFS
  92. test -z "$as_dir" && as_dir=.
  93. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  94. done
  95. IFS=$as_save_IFS
  96. ;;
  97. esac
  98. # We did not find ourselves, most probably we were run as `sh COMMAND'
  99. # in which case we are not to be found in the path.
  100. if test "x$as_myself" = x; then
  101. as_myself=$0
  102. fi
  103. if test ! -f "$as_myself"; then
  104. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  105. exit 1
  106. fi
  107. # Unset variables that we do not need and which cause bugs (e.g. in
  108. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  109. # suppresses any "Segmentation fault" message there. '((' could
  110. # trigger a bug in pdksh 5.2.14.
  111. for as_var in BASH_ENV ENV MAIL MAILPATH
  112. do eval test x\${$as_var+set} = xset \
  113. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  114. done
  115. PS1='$ '
  116. PS2='> '
  117. PS4='+ '
  118. # NLS nuisances.
  119. LC_ALL=C
  120. export LC_ALL
  121. LANGUAGE=C
  122. export LANGUAGE
  123. # CDPATH.
  124. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  125. # Use a proper internal environment variable to ensure we don't fall
  126. # into an infinite loop, continuously re-executing ourselves.
  127. if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
  128. _as_can_reexec=no; export _as_can_reexec;
  129. # We cannot yet assume a decent shell, so we have to provide a
  130. # neutralization value for shells without unset; and this also
  131. # works around shells that cannot unset nonexistent variables.
  132. # Preserve -v and -x to the replacement shell.
  133. BASH_ENV=/dev/null
  134. ENV=/dev/null
  135. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  136. case $- in # ((((
  137. *v*x* | *x*v* ) as_opts=-vx ;;
  138. *v* ) as_opts=-v ;;
  139. *x* ) as_opts=-x ;;
  140. * ) as_opts= ;;
  141. esac
  142. exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
  143. # Admittedly, this is quite paranoid, since all the known shells bail
  144. # out after a failed `exec'.
  145. $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
  146. as_fn_exit 255
  147. fi
  148. # We don't want this to propagate to other subprocesses.
  149. { _as_can_reexec=; unset _as_can_reexec;}
  150. if test "x$CONFIG_SHELL" = x; then
  151. as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
  152. emulate sh
  153. NULLCMD=:
  154. # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
  155. # is contrary to our usage. Disable this feature.
  156. alias -g '\${1+\"\$@\"}'='\"\$@\"'
  157. setopt NO_GLOB_SUBST
  158. else
  159. case \`(set -o) 2>/dev/null\` in #(
  160. *posix*) :
  161. set -o posix ;; #(
  162. *) :
  163. ;;
  164. esac
  165. fi
  166. "
  167. as_required="as_fn_return () { (exit \$1); }
  168. as_fn_success () { as_fn_return 0; }
  169. as_fn_failure () { as_fn_return 1; }
  170. as_fn_ret_success () { return 0; }
  171. as_fn_ret_failure () { return 1; }
  172. exitcode=0
  173. as_fn_success || { exitcode=1; echo as_fn_success failed.; }
  174. as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
  175. as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
  176. as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
  177. if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
  178. else
  179. exitcode=1; echo positional parameters were not saved.
  180. fi
  181. test x\$exitcode = x0 || exit 1
  182. test -x / || exit 1"
  183. as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
  184. as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
  185. eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
  186. test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
  187. test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
  188. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  189. ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
  190. ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
  191. PATH=/empty FPATH=/empty; export PATH FPATH
  192. test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
  193. || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
  194. test \$(( 1 + 1 )) = 2 || exit 1"
  195. if (eval "$as_required") 2>/dev/null; then :
  196. as_have_required=yes
  197. else
  198. as_have_required=no
  199. fi
  200. if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
  201. else
  202. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  203. as_found=false
  204. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  205. do
  206. IFS=$as_save_IFS
  207. test -z "$as_dir" && as_dir=.
  208. as_found=:
  209. case $as_dir in #(
  210. /*)
  211. for as_base in sh bash ksh sh5; do
  212. # Try only shells that exist, to save several forks.
  213. as_shell=$as_dir/$as_base
  214. if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
  215. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
  216. CONFIG_SHELL=$as_shell as_have_required=yes
  217. if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
  218. break 2
  219. fi
  220. fi
  221. done;;
  222. esac
  223. as_found=false
  224. done
  225. $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
  226. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
  227. CONFIG_SHELL=$SHELL as_have_required=yes
  228. fi; }
  229. IFS=$as_save_IFS
  230. if test "x$CONFIG_SHELL" != x; then :
  231. export CONFIG_SHELL
  232. # We cannot yet assume a decent shell, so we have to provide a
  233. # neutralization value for shells without unset; and this also
  234. # works around shells that cannot unset nonexistent variables.
  235. # Preserve -v and -x to the replacement shell.
  236. BASH_ENV=/dev/null
  237. ENV=/dev/null
  238. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  239. case $- in # ((((
  240. *v*x* | *x*v* ) as_opts=-vx ;;
  241. *v* ) as_opts=-v ;;
  242. *x* ) as_opts=-x ;;
  243. * ) as_opts= ;;
  244. esac
  245. exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
  246. # Admittedly, this is quite paranoid, since all the known shells bail
  247. # out after a failed `exec'.
  248. $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
  249. exit 255
  250. fi
  251. if test x$as_have_required = xno; then :
  252. $as_echo "$0: This script requires a shell more modern than all"
  253. $as_echo "$0: the shells that I found on your system."
  254. if test x${ZSH_VERSION+set} = xset ; then
  255. $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
  256. $as_echo "$0: be upgraded to zsh 4.3.4 or later."
  257. else
  258. $as_echo "$0: Please tell bug-autoconf@gnu.org and
  259. $0: gperftools@googlegroups.com about your system,
  260. $0: including any error possibly output before this
  261. $0: message. Then install a modern shell, or manually run
  262. $0: the script under such a shell if you do have one."
  263. fi
  264. exit 1
  265. fi
  266. fi
  267. fi
  268. SHELL=${CONFIG_SHELL-/bin/sh}
  269. export SHELL
  270. # Unset more variables known to interfere with behavior of common tools.
  271. CLICOLOR_FORCE= GREP_OPTIONS=
  272. unset CLICOLOR_FORCE GREP_OPTIONS
  273. ## --------------------- ##
  274. ## M4sh Shell Functions. ##
  275. ## --------------------- ##
  276. # as_fn_unset VAR
  277. # ---------------
  278. # Portably unset VAR.
  279. as_fn_unset ()
  280. {
  281. { eval $1=; unset $1;}
  282. }
  283. as_unset=as_fn_unset
  284. # as_fn_set_status STATUS
  285. # -----------------------
  286. # Set $? to STATUS, without forking.
  287. as_fn_set_status ()
  288. {
  289. return $1
  290. } # as_fn_set_status
  291. # as_fn_exit STATUS
  292. # -----------------
  293. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  294. as_fn_exit ()
  295. {
  296. set +e
  297. as_fn_set_status $1
  298. exit $1
  299. } # as_fn_exit
  300. # as_fn_mkdir_p
  301. # -------------
  302. # Create "$as_dir" as a directory, including parents if necessary.
  303. as_fn_mkdir_p ()
  304. {
  305. case $as_dir in #(
  306. -*) as_dir=./$as_dir;;
  307. esac
  308. test -d "$as_dir" || eval $as_mkdir_p || {
  309. as_dirs=
  310. while :; do
  311. case $as_dir in #(
  312. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  313. *) as_qdir=$as_dir;;
  314. esac
  315. as_dirs="'$as_qdir' $as_dirs"
  316. as_dir=`$as_dirname -- "$as_dir" ||
  317. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  318. X"$as_dir" : 'X\(//\)[^/]' \| \
  319. X"$as_dir" : 'X\(//\)$' \| \
  320. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  321. $as_echo X"$as_dir" |
  322. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  323. s//\1/
  324. q
  325. }
  326. /^X\(\/\/\)[^/].*/{
  327. s//\1/
  328. q
  329. }
  330. /^X\(\/\/\)$/{
  331. s//\1/
  332. q
  333. }
  334. /^X\(\/\).*/{
  335. s//\1/
  336. q
  337. }
  338. s/.*/./; q'`
  339. test -d "$as_dir" && break
  340. done
  341. test -z "$as_dirs" || eval "mkdir $as_dirs"
  342. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  343. } # as_fn_mkdir_p
  344. # as_fn_executable_p FILE
  345. # -----------------------
  346. # Test if FILE is an executable regular file.
  347. as_fn_executable_p ()
  348. {
  349. test -f "$1" && test -x "$1"
  350. } # as_fn_executable_p
  351. # as_fn_append VAR VALUE
  352. # ----------------------
  353. # Append the text in VALUE to the end of the definition contained in VAR. Take
  354. # advantage of any shell optimizations that allow amortized linear growth over
  355. # repeated appends, instead of the typical quadratic growth present in naive
  356. # implementations.
  357. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  358. eval 'as_fn_append ()
  359. {
  360. eval $1+=\$2
  361. }'
  362. else
  363. as_fn_append ()
  364. {
  365. eval $1=\$$1\$2
  366. }
  367. fi # as_fn_append
  368. # as_fn_arith ARG...
  369. # ------------------
  370. # Perform arithmetic evaluation on the ARGs, and store the result in the
  371. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  372. # must be portable across $(()) and expr.
  373. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  374. eval 'as_fn_arith ()
  375. {
  376. as_val=$(( $* ))
  377. }'
  378. else
  379. as_fn_arith ()
  380. {
  381. as_val=`expr "$@" || test $? -eq 1`
  382. }
  383. fi # as_fn_arith
  384. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  385. # ----------------------------------------
  386. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  387. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  388. # script with STATUS, using 1 if that was 0.
  389. as_fn_error ()
  390. {
  391. as_status=$1; test $as_status -eq 0 && as_status=1
  392. if test "$4"; then
  393. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  394. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  395. fi
  396. $as_echo "$as_me: error: $2" >&2
  397. as_fn_exit $as_status
  398. } # as_fn_error
  399. if expr a : '\(a\)' >/dev/null 2>&1 &&
  400. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  401. as_expr=expr
  402. else
  403. as_expr=false
  404. fi
  405. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  406. as_basename=basename
  407. else
  408. as_basename=false
  409. fi
  410. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  411. as_dirname=dirname
  412. else
  413. as_dirname=false
  414. fi
  415. as_me=`$as_basename -- "$0" ||
  416. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  417. X"$0" : 'X\(//\)$' \| \
  418. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  419. $as_echo X/"$0" |
  420. sed '/^.*\/\([^/][^/]*\)\/*$/{
  421. s//\1/
  422. q
  423. }
  424. /^X\/\(\/\/\)$/{
  425. s//\1/
  426. q
  427. }
  428. /^X\/\(\/\).*/{
  429. s//\1/
  430. q
  431. }
  432. s/.*/./; q'`
  433. # Avoid depending upon Character Ranges.
  434. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  435. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  436. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  437. as_cr_digits='0123456789'
  438. as_cr_alnum=$as_cr_Letters$as_cr_digits
  439. as_lineno_1=$LINENO as_lineno_1a=$LINENO
  440. as_lineno_2=$LINENO as_lineno_2a=$LINENO
  441. eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
  442. test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
  443. # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
  444. sed -n '
  445. p
  446. /[$]LINENO/=
  447. ' <$as_myself |
  448. sed '
  449. s/[$]LINENO.*/&-/
  450. t lineno
  451. b
  452. :lineno
  453. N
  454. :loop
  455. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  456. t loop
  457. s/-\n.*//
  458. ' >$as_me.lineno &&
  459. chmod +x "$as_me.lineno" ||
  460. { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
  461. # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
  462. # already done that, so ensure we don't try to do so again and fall
  463. # in an infinite loop. This has already happened in practice.
  464. _as_can_reexec=no; export _as_can_reexec
  465. # Don't try to exec as it changes $[0], causing all sort of problems
  466. # (the dirname of $[0] is not the place where we might find the
  467. # original and so on. Autoconf is especially sensitive to this).
  468. . "./$as_me.lineno"
  469. # Exit status is that of the last command.
  470. exit
  471. }
  472. ECHO_C= ECHO_N= ECHO_T=
  473. case `echo -n x` in #(((((
  474. -n*)
  475. case `echo 'xy\c'` in
  476. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  477. xy) ECHO_C='\c';;
  478. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  479. ECHO_T=' ';;
  480. esac;;
  481. *)
  482. ECHO_N='-n';;
  483. esac
  484. rm -f conf$$ conf$$.exe conf$$.file
  485. if test -d conf$$.dir; then
  486. rm -f conf$$.dir/conf$$.file
  487. else
  488. rm -f conf$$.dir
  489. mkdir conf$$.dir 2>/dev/null
  490. fi
  491. if (echo >conf$$.file) 2>/dev/null; then
  492. if ln -s conf$$.file conf$$ 2>/dev/null; then
  493. as_ln_s='ln -s'
  494. # ... but there are two gotchas:
  495. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  496. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  497. # In both cases, we have to default to `cp -pR'.
  498. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  499. as_ln_s='cp -pR'
  500. elif ln conf$$.file conf$$ 2>/dev/null; then
  501. as_ln_s=ln
  502. else
  503. as_ln_s='cp -pR'
  504. fi
  505. else
  506. as_ln_s='cp -pR'
  507. fi
  508. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  509. rmdir conf$$.dir 2>/dev/null
  510. if mkdir -p . 2>/dev/null; then
  511. as_mkdir_p='mkdir -p "$as_dir"'
  512. else
  513. test -d ./-p && rmdir ./-p
  514. as_mkdir_p=false
  515. fi
  516. as_test_x='test -x'
  517. as_executable_p=as_fn_executable_p
  518. # Sed expression to map a string onto a valid CPP name.
  519. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  520. # Sed expression to map a string onto a valid variable name.
  521. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  522. SHELL=${CONFIG_SHELL-/bin/sh}
  523. test -n "$DJDIR" || exec 7<&0 </dev/null
  524. exec 6>&1
  525. # Name of the host.
  526. # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
  527. # so uname gets run too.
  528. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  529. #
  530. # Initializations.
  531. #
  532. ac_default_prefix=/usr/local
  533. ac_clean_files=
  534. ac_config_libobj_dir=.
  535. LIBOBJS=
  536. cross_compiling=no
  537. subdirs=
  538. MFLAGS=
  539. MAKEFLAGS=
  540. # Identity of this package.
  541. PACKAGE_NAME='gperftools'
  542. PACKAGE_TARNAME='gperftools'
  543. PACKAGE_VERSION='2.9.1'
  544. PACKAGE_STRING='gperftools 2.9.1'
  545. PACKAGE_BUGREPORT='gperftools@googlegroups.com'
  546. PACKAGE_URL=''
  547. ac_unique_file="README"
  548. # Factoring default headers for most tests.
  549. ac_includes_default="\
  550. #include <stdio.h>
  551. #ifdef HAVE_SYS_TYPES_H
  552. # include <sys/types.h>
  553. #endif
  554. #ifdef HAVE_SYS_STAT_H
  555. # include <sys/stat.h>
  556. #endif
  557. #ifdef STDC_HEADERS
  558. # include <stdlib.h>
  559. # include <stddef.h>
  560. #else
  561. # ifdef HAVE_STDLIB_H
  562. # include <stdlib.h>
  563. # endif
  564. #endif
  565. #ifdef HAVE_STRING_H
  566. # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
  567. # include <memory.h>
  568. # endif
  569. # include <string.h>
  570. #endif
  571. #ifdef HAVE_STRINGS_H
  572. # include <strings.h>
  573. #endif
  574. #ifdef HAVE_INTTYPES_H
  575. # include <inttypes.h>
  576. #endif
  577. #ifdef HAVE_STDINT_H
  578. # include <stdint.h>
  579. #endif
  580. #ifdef HAVE_UNISTD_H
  581. # include <unistd.h>
  582. #endif"
  583. ac_subst_vars='am__EXEEXT_FALSE
  584. am__EXEEXT_TRUE
  585. LTLIBOBJS
  586. LIBOBJS
  587. WITH_STACK_TRACE_FALSE
  588. WITH_STACK_TRACE_TRUE
  589. WITH_HEAP_PROFILER_OR_CHECKER_FALSE
  590. WITH_HEAP_PROFILER_OR_CHECKER_TRUE
  591. WITH_DEBUGALLOC_FALSE
  592. WITH_DEBUGALLOC_TRUE
  593. WITH_HEAP_CHECKER_FALSE
  594. WITH_HEAP_CHECKER_TRUE
  595. WITH_HEAP_PROFILER_FALSE
  596. WITH_HEAP_PROFILER_TRUE
  597. WITH_CPU_PROFILER_FALSE
  598. WITH_CPU_PROFILER_TRUE
  599. OSX_FALSE
  600. OSX_TRUE
  601. MINGW_FALSE
  602. MINGW_TRUE
  603. HAVE_PTHREAD_DESPITE_ASKING_FOR_FALSE
  604. HAVE_PTHREAD_DESPITE_ASKING_FOR_TRUE
  605. PTHREAD_CFLAGS
  606. PTHREAD_LIBS
  607. PTHREAD_CC
  608. acx_pthread_config
  609. LIBSTDCXX_LA_LINKER_FLAG
  610. NANOSLEEP_LIBS
  611. BUILD_EMERGENCY_MALLOC_FALSE
  612. BUILD_EMERGENCY_MALLOC_TRUE
  613. ac_cv_have_std_align_val_t
  614. HAVE_F_ALIGNED_NEW_FALSE
  615. HAVE_F_ALIGNED_NEW_TRUE
  616. HAVE_SIZED_DEALLOCATION_FALSE
  617. HAVE_SIZED_DEALLOCATION_TRUE
  618. INSTALL_PPROF_FALSE
  619. INSTALL_PPROF_TRUE
  620. HAVE_W_NO_UNUSED_RESULT_FALSE
  621. HAVE_W_NO_UNUSED_RESULT_TRUE
  622. I386_FALSE
  623. I386_TRUE
  624. OMIT_FP_BY_DEFAULT_FALSE
  625. OMIT_FP_BY_DEFAULT_TRUE
  626. ENABLE_FRAME_POINTERS_FALSE
  627. ENABLE_FRAME_POINTERS_TRUE
  628. UNWIND_LIBS
  629. ENABLE_STATIC_FALSE
  630. ENABLE_STATIC_TRUE
  631. ac_cv_have_struct_mallinfo
  632. CXXCPP
  633. LT_SYS_LIBRARY_PATH
  634. OTOOL64
  635. OTOOL
  636. LIPO
  637. NMEDIT
  638. DSYMUTIL
  639. MANIFEST_TOOL
  640. RANLIB
  641. ac_ct_AR
  642. AR
  643. DLLTOOL
  644. OBJDUMP
  645. LN_S
  646. NM
  647. ac_ct_DUMPBIN
  648. DUMPBIN
  649. LD
  650. FGREP
  651. EGREP
  652. GREP
  653. SED
  654. LIBTOOL
  655. HAVE_OBJCOPY_WEAKEN_FALSE
  656. HAVE_OBJCOPY_WEAKEN_TRUE
  657. OBJCOPY
  658. HAVE_CXX11
  659. GCC_FALSE
  660. GCC_TRUE
  661. CPP
  662. am__fastdepCXX_FALSE
  663. am__fastdepCXX_TRUE
  664. CXXDEPMODE
  665. ac_ct_CXX
  666. CXXFLAGS
  667. CXX
  668. am__fastdepCC_FALSE
  669. am__fastdepCC_TRUE
  670. CCDEPMODE
  671. am__nodep
  672. AMDEPBACKSLASH
  673. AMDEP_FALSE
  674. AMDEP_TRUE
  675. am__include
  676. DEPDIR
  677. OBJEXT
  678. EXEEXT
  679. ac_ct_CC
  680. CPPFLAGS
  681. LDFLAGS
  682. CFLAGS
  683. CC
  684. GENERATE_CHANGELOG_RULES
  685. GIT
  686. TC_VERSION_PATCH
  687. TC_VERSION_MINOR
  688. TC_VERSION_MAJOR
  689. MAINT
  690. MAINTAINER_MODE_FALSE
  691. MAINTAINER_MODE_TRUE
  692. AM_BACKSLASH
  693. AM_DEFAULT_VERBOSITY
  694. AM_DEFAULT_V
  695. AM_V
  696. am__untar
  697. am__tar
  698. AMTAR
  699. am__leading_dot
  700. SET_MAKE
  701. AWK
  702. mkdir_p
  703. MKDIR_P
  704. INSTALL_STRIP_PROGRAM
  705. STRIP
  706. install_sh
  707. MAKEINFO
  708. AUTOHEADER
  709. AUTOMAKE
  710. AUTOCONF
  711. ACLOCAL
  712. VERSION
  713. PACKAGE
  714. CYGPATH_W
  715. am__isrc
  716. INSTALL_DATA
  717. INSTALL_SCRIPT
  718. INSTALL_PROGRAM
  719. host_os
  720. host_vendor
  721. host_cpu
  722. host
  723. build_os
  724. build_vendor
  725. build_cpu
  726. build
  727. TCMALLOC_AND_PROFILER_SO_VERSION
  728. PROFILER_SO_VERSION
  729. TCMALLOC_SO_VERSION
  730. target_alias
  731. host_alias
  732. build_alias
  733. LIBS
  734. ECHO_T
  735. ECHO_N
  736. ECHO_C
  737. DEFS
  738. mandir
  739. localedir
  740. libdir
  741. psdir
  742. pdfdir
  743. dvidir
  744. htmldir
  745. infodir
  746. docdir
  747. oldincludedir
  748. includedir
  749. runstatedir
  750. localstatedir
  751. sharedstatedir
  752. sysconfdir
  753. datadir
  754. datarootdir
  755. libexecdir
  756. sbindir
  757. bindir
  758. program_transform_name
  759. prefix
  760. exec_prefix
  761. PACKAGE_URL
  762. PACKAGE_BUGREPORT
  763. PACKAGE_STRING
  764. PACKAGE_VERSION
  765. PACKAGE_TARNAME
  766. PACKAGE_NAME
  767. PATH_SEPARATOR
  768. SHELL
  769. am__quote'
  770. ac_subst_files=''
  771. ac_user_opts='
  772. enable_option_checking
  773. enable_silent_rules
  774. enable_maintainer_mode
  775. enable_dependency_tracking
  776. enable_cpu_profiler
  777. enable_heap_profiler
  778. enable_heap_checker
  779. enable_debugalloc
  780. enable_minimal
  781. enable_stacktrace_via_backtrace
  782. enable_libunwind
  783. with_tcmalloc_pagesize
  784. with_tcmalloc_alignment
  785. enable_shared
  786. enable_static
  787. with_pic
  788. enable_fast_install
  789. with_aix_soname
  790. with_gnu_ld
  791. with_sysroot
  792. enable_libtool_lock
  793. enable_frame_pointers
  794. enable_deprecated_pprof
  795. enable_dynamic_sized_delete_support
  796. enable_sized_delete
  797. enable_emergency_malloc
  798. enable_large_alloc_report
  799. enable_aggressive_decommit_by_default
  800. '
  801. ac_precious_vars='build_alias
  802. host_alias
  803. target_alias
  804. CC
  805. CFLAGS
  806. LDFLAGS
  807. LIBS
  808. CPPFLAGS
  809. CXX
  810. CXXFLAGS
  811. CCC
  812. CPP
  813. LT_SYS_LIBRARY_PATH
  814. CXXCPP'
  815. # Initialize some variables set by options.
  816. ac_init_help=
  817. ac_init_version=false
  818. ac_unrecognized_opts=
  819. ac_unrecognized_sep=
  820. # The variables have the same names as the options, with
  821. # dashes changed to underlines.
  822. cache_file=/dev/null
  823. exec_prefix=NONE
  824. no_create=
  825. no_recursion=
  826. prefix=NONE
  827. program_prefix=NONE
  828. program_suffix=NONE
  829. program_transform_name=s,x,x,
  830. silent=
  831. site=
  832. srcdir=
  833. verbose=
  834. x_includes=NONE
  835. x_libraries=NONE
  836. # Installation directory options.
  837. # These are left unexpanded so users can "make install exec_prefix=/foo"
  838. # and all the variables that are supposed to be based on exec_prefix
  839. # by default will actually change.
  840. # Use braces instead of parens because sh, perl, etc. also accept them.
  841. # (The list follows the same order as the GNU Coding Standards.)
  842. bindir='${exec_prefix}/bin'
  843. sbindir='${exec_prefix}/sbin'
  844. libexecdir='${exec_prefix}/libexec'
  845. datarootdir='${prefix}/share'
  846. datadir='${datarootdir}'
  847. sysconfdir='${prefix}/etc'
  848. sharedstatedir='${prefix}/com'
  849. localstatedir='${prefix}/var'
  850. runstatedir='${localstatedir}/run'
  851. includedir='${prefix}/include'
  852. oldincludedir='/usr/include'
  853. docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
  854. infodir='${datarootdir}/info'
  855. htmldir='${docdir}'
  856. dvidir='${docdir}'
  857. pdfdir='${docdir}'
  858. psdir='${docdir}'
  859. libdir='${exec_prefix}/lib'
  860. localedir='${datarootdir}/locale'
  861. mandir='${datarootdir}/man'
  862. ac_prev=
  863. ac_dashdash=
  864. for ac_option
  865. do
  866. # If the previous option needs an argument, assign it.
  867. if test -n "$ac_prev"; then
  868. eval $ac_prev=\$ac_option
  869. ac_prev=
  870. continue
  871. fi
  872. case $ac_option in
  873. *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  874. *=) ac_optarg= ;;
  875. *) ac_optarg=yes ;;
  876. esac
  877. # Accept the important Cygnus configure options, so we can diagnose typos.
  878. case $ac_dashdash$ac_option in
  879. --)
  880. ac_dashdash=yes ;;
  881. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  882. ac_prev=bindir ;;
  883. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  884. bindir=$ac_optarg ;;
  885. -build | --build | --buil | --bui | --bu)
  886. ac_prev=build_alias ;;
  887. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  888. build_alias=$ac_optarg ;;
  889. -cache-file | --cache-file | --cache-fil | --cache-fi \
  890. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  891. ac_prev=cache_file ;;
  892. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  893. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  894. cache_file=$ac_optarg ;;
  895. --config-cache | -C)
  896. cache_file=config.cache ;;
  897. -datadir | --datadir | --datadi | --datad)
  898. ac_prev=datadir ;;
  899. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  900. datadir=$ac_optarg ;;
  901. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  902. | --dataroo | --dataro | --datar)
  903. ac_prev=datarootdir ;;
  904. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  905. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  906. datarootdir=$ac_optarg ;;
  907. -disable-* | --disable-*)
  908. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  909. # Reject names that are not valid shell variable names.
  910. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  911. as_fn_error $? "invalid feature name: $ac_useropt"
  912. ac_useropt_orig=$ac_useropt
  913. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  914. case $ac_user_opts in
  915. *"
  916. "enable_$ac_useropt"
  917. "*) ;;
  918. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  919. ac_unrecognized_sep=', ';;
  920. esac
  921. eval enable_$ac_useropt=no ;;
  922. -docdir | --docdir | --docdi | --doc | --do)
  923. ac_prev=docdir ;;
  924. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  925. docdir=$ac_optarg ;;
  926. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  927. ac_prev=dvidir ;;
  928. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  929. dvidir=$ac_optarg ;;
  930. -enable-* | --enable-*)
  931. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  932. # Reject names that are not valid shell variable names.
  933. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  934. as_fn_error $? "invalid feature name: $ac_useropt"
  935. ac_useropt_orig=$ac_useropt
  936. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  937. case $ac_user_opts in
  938. *"
  939. "enable_$ac_useropt"
  940. "*) ;;
  941. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  942. ac_unrecognized_sep=', ';;
  943. esac
  944. eval enable_$ac_useropt=\$ac_optarg ;;
  945. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  946. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  947. | --exec | --exe | --ex)
  948. ac_prev=exec_prefix ;;
  949. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  950. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  951. | --exec=* | --exe=* | --ex=*)
  952. exec_prefix=$ac_optarg ;;
  953. -gas | --gas | --ga | --g)
  954. # Obsolete; use --with-gas.
  955. with_gas=yes ;;
  956. -help | --help | --hel | --he | -h)
  957. ac_init_help=long ;;
  958. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  959. ac_init_help=recursive ;;
  960. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  961. ac_init_help=short ;;
  962. -host | --host | --hos | --ho)
  963. ac_prev=host_alias ;;
  964. -host=* | --host=* | --hos=* | --ho=*)
  965. host_alias=$ac_optarg ;;
  966. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  967. ac_prev=htmldir ;;
  968. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  969. | --ht=*)
  970. htmldir=$ac_optarg ;;
  971. -includedir | --includedir | --includedi | --included | --include \
  972. | --includ | --inclu | --incl | --inc)
  973. ac_prev=includedir ;;
  974. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  975. | --includ=* | --inclu=* | --incl=* | --inc=*)
  976. includedir=$ac_optarg ;;
  977. -infodir | --infodir | --infodi | --infod | --info | --inf)
  978. ac_prev=infodir ;;
  979. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  980. infodir=$ac_optarg ;;
  981. -libdir | --libdir | --libdi | --libd)
  982. ac_prev=libdir ;;
  983. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  984. libdir=$ac_optarg ;;
  985. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  986. | --libexe | --libex | --libe)
  987. ac_prev=libexecdir ;;
  988. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  989. | --libexe=* | --libex=* | --libe=*)
  990. libexecdir=$ac_optarg ;;
  991. -localedir | --localedir | --localedi | --localed | --locale)
  992. ac_prev=localedir ;;
  993. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  994. localedir=$ac_optarg ;;
  995. -localstatedir | --localstatedir | --localstatedi | --localstated \
  996. | --localstate | --localstat | --localsta | --localst | --locals)
  997. ac_prev=localstatedir ;;
  998. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  999. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  1000. localstatedir=$ac_optarg ;;
  1001. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  1002. ac_prev=mandir ;;
  1003. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  1004. mandir=$ac_optarg ;;
  1005. -nfp | --nfp | --nf)
  1006. # Obsolete; use --without-fp.
  1007. with_fp=no ;;
  1008. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  1009. | --no-cr | --no-c | -n)
  1010. no_create=yes ;;
  1011. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  1012. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  1013. no_recursion=yes ;;
  1014. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  1015. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  1016. | --oldin | --oldi | --old | --ol | --o)
  1017. ac_prev=oldincludedir ;;
  1018. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  1019. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  1020. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  1021. oldincludedir=$ac_optarg ;;
  1022. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  1023. ac_prev=prefix ;;
  1024. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  1025. prefix=$ac_optarg ;;
  1026. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  1027. | --program-pre | --program-pr | --program-p)
  1028. ac_prev=program_prefix ;;
  1029. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  1030. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  1031. program_prefix=$ac_optarg ;;
  1032. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  1033. | --program-suf | --program-su | --program-s)
  1034. ac_prev=program_suffix ;;
  1035. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  1036. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  1037. program_suffix=$ac_optarg ;;
  1038. -program-transform-name | --program-transform-name \
  1039. | --program-transform-nam | --program-transform-na \
  1040. | --program-transform-n | --program-transform- \
  1041. | --program-transform | --program-transfor \
  1042. | --program-transfo | --program-transf \
  1043. | --program-trans | --program-tran \
  1044. | --progr-tra | --program-tr | --program-t)
  1045. ac_prev=program_transform_name ;;
  1046. -program-transform-name=* | --program-transform-name=* \
  1047. | --program-transform-nam=* | --program-transform-na=* \
  1048. | --program-transform-n=* | --program-transform-=* \
  1049. | --program-transform=* | --program-transfor=* \
  1050. | --program-transfo=* | --program-transf=* \
  1051. | --program-trans=* | --program-tran=* \
  1052. | --progr-tra=* | --program-tr=* | --program-t=*)
  1053. program_transform_name=$ac_optarg ;;
  1054. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  1055. ac_prev=pdfdir ;;
  1056. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  1057. pdfdir=$ac_optarg ;;
  1058. -psdir | --psdir | --psdi | --psd | --ps)
  1059. ac_prev=psdir ;;
  1060. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  1061. psdir=$ac_optarg ;;
  1062. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1063. | -silent | --silent | --silen | --sile | --sil)
  1064. silent=yes ;;
  1065. -runstatedir | --runstatedir | --runstatedi | --runstated \
  1066. | --runstate | --runstat | --runsta | --runst | --runs \
  1067. | --run | --ru | --r)
  1068. ac_prev=runstatedir ;;
  1069. -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
  1070. | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
  1071. | --run=* | --ru=* | --r=*)
  1072. runstatedir=$ac_optarg ;;
  1073. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  1074. ac_prev=sbindir ;;
  1075. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  1076. | --sbi=* | --sb=*)
  1077. sbindir=$ac_optarg ;;
  1078. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  1079. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  1080. | --sharedst | --shareds | --shared | --share | --shar \
  1081. | --sha | --sh)
  1082. ac_prev=sharedstatedir ;;
  1083. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  1084. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  1085. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  1086. | --sha=* | --sh=*)
  1087. sharedstatedir=$ac_optarg ;;
  1088. -site | --site | --sit)
  1089. ac_prev=site ;;
  1090. -site=* | --site=* | --sit=*)
  1091. site=$ac_optarg ;;
  1092. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  1093. ac_prev=srcdir ;;
  1094. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1095. srcdir=$ac_optarg ;;
  1096. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  1097. | --syscon | --sysco | --sysc | --sys | --sy)
  1098. ac_prev=sysconfdir ;;
  1099. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  1100. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  1101. sysconfdir=$ac_optarg ;;
  1102. -target | --target | --targe | --targ | --tar | --ta | --t)
  1103. ac_prev=target_alias ;;
  1104. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  1105. target_alias=$ac_optarg ;;
  1106. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  1107. verbose=yes ;;
  1108. -version | --version | --versio | --versi | --vers | -V)
  1109. ac_init_version=: ;;
  1110. -with-* | --with-*)
  1111. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1112. # Reject names that are not valid shell variable names.
  1113. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1114. as_fn_error $? "invalid package name: $ac_useropt"
  1115. ac_useropt_orig=$ac_useropt
  1116. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1117. case $ac_user_opts in
  1118. *"
  1119. "with_$ac_useropt"
  1120. "*) ;;
  1121. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  1122. ac_unrecognized_sep=', ';;
  1123. esac
  1124. eval with_$ac_useropt=\$ac_optarg ;;
  1125. -without-* | --without-*)
  1126. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1127. # Reject names that are not valid shell variable names.
  1128. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1129. as_fn_error $? "invalid package name: $ac_useropt"
  1130. ac_useropt_orig=$ac_useropt
  1131. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1132. case $ac_user_opts in
  1133. *"
  1134. "with_$ac_useropt"
  1135. "*) ;;
  1136. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  1137. ac_unrecognized_sep=', ';;
  1138. esac
  1139. eval with_$ac_useropt=no ;;
  1140. --x)
  1141. # Obsolete; use --with-x.
  1142. with_x=yes ;;
  1143. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1144. | --x-incl | --x-inc | --x-in | --x-i)
  1145. ac_prev=x_includes ;;
  1146. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1147. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1148. x_includes=$ac_optarg ;;
  1149. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1150. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1151. ac_prev=x_libraries ;;
  1152. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1153. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1154. x_libraries=$ac_optarg ;;
  1155. -*) as_fn_error $? "unrecognized option: \`$ac_option'
  1156. Try \`$0 --help' for more information"
  1157. ;;
  1158. *=*)
  1159. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1160. # Reject names that are not valid shell variable names.
  1161. case $ac_envvar in #(
  1162. '' | [0-9]* | *[!_$as_cr_alnum]* )
  1163. as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
  1164. esac
  1165. eval $ac_envvar=\$ac_optarg
  1166. export $ac_envvar ;;
  1167. *)
  1168. # FIXME: should be removed in autoconf 3.0.
  1169. $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1170. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1171. $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1172. : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
  1173. ;;
  1174. esac
  1175. done
  1176. if test -n "$ac_prev"; then
  1177. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1178. as_fn_error $? "missing argument to $ac_option"
  1179. fi
  1180. if test -n "$ac_unrecognized_opts"; then
  1181. case $enable_option_checking in
  1182. no) ;;
  1183. fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
  1184. *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1185. esac
  1186. fi
  1187. # Check all directory arguments for consistency.
  1188. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1189. datadir sysconfdir sharedstatedir localstatedir includedir \
  1190. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1191. libdir localedir mandir runstatedir
  1192. do
  1193. eval ac_val=\$$ac_var
  1194. # Remove trailing slashes.
  1195. case $ac_val in
  1196. */ )
  1197. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1198. eval $ac_var=\$ac_val;;
  1199. esac
  1200. # Be sure to have absolute directory names.
  1201. case $ac_val in
  1202. [\\/$]* | ?:[\\/]* ) continue;;
  1203. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1204. esac
  1205. as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
  1206. done
  1207. # There might be people who depend on the old broken behavior: `$host'
  1208. # used to hold the argument of --host etc.
  1209. # FIXME: To remove some day.
  1210. build=$build_alias
  1211. host=$host_alias
  1212. target=$target_alias
  1213. # FIXME: To remove some day.
  1214. if test "x$host_alias" != x; then
  1215. if test "x$build_alias" = x; then
  1216. cross_compiling=maybe
  1217. elif test "x$build_alias" != "x$host_alias"; then
  1218. cross_compiling=yes
  1219. fi
  1220. fi
  1221. ac_tool_prefix=
  1222. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1223. test "$silent" = yes && exec 6>/dev/null
  1224. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1225. ac_ls_di=`ls -di .` &&
  1226. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1227. as_fn_error $? "working directory cannot be determined"
  1228. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1229. as_fn_error $? "pwd does not report name of working directory"
  1230. # Find the source files, if location was not specified.
  1231. if test -z "$srcdir"; then
  1232. ac_srcdir_defaulted=yes
  1233. # Try the directory containing this script, then the parent directory.
  1234. ac_confdir=`$as_dirname -- "$as_myself" ||
  1235. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1236. X"$as_myself" : 'X\(//\)[^/]' \| \
  1237. X"$as_myself" : 'X\(//\)$' \| \
  1238. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1239. $as_echo X"$as_myself" |
  1240. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1241. s//\1/
  1242. q
  1243. }
  1244. /^X\(\/\/\)[^/].*/{
  1245. s//\1/
  1246. q
  1247. }
  1248. /^X\(\/\/\)$/{
  1249. s//\1/
  1250. q
  1251. }
  1252. /^X\(\/\).*/{
  1253. s//\1/
  1254. q
  1255. }
  1256. s/.*/./; q'`
  1257. srcdir=$ac_confdir
  1258. if test ! -r "$srcdir/$ac_unique_file"; then
  1259. srcdir=..
  1260. fi
  1261. else
  1262. ac_srcdir_defaulted=no
  1263. fi
  1264. if test ! -r "$srcdir/$ac_unique_file"; then
  1265. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1266. as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
  1267. fi
  1268. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1269. ac_abs_confdir=`(
  1270. cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
  1271. pwd)`
  1272. # When building in place, set srcdir=.
  1273. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1274. srcdir=.
  1275. fi
  1276. # Remove unnecessary trailing slashes from srcdir.
  1277. # Double slashes in file names in object file debugging info
  1278. # mess up M-x gdb in Emacs.
  1279. case $srcdir in
  1280. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1281. esac
  1282. for ac_var in $ac_precious_vars; do
  1283. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1284. eval ac_env_${ac_var}_value=\$${ac_var}
  1285. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1286. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1287. done
  1288. #
  1289. # Report the --help message.
  1290. #
  1291. if test "$ac_init_help" = "long"; then
  1292. # Omit some internal or obsolete options to make the list less imposing.
  1293. # This message is too long to be a string in the A/UX 3.1 sh.
  1294. cat <<_ACEOF
  1295. \`configure' configures gperftools 2.9.1 to adapt to many kinds of systems.
  1296. Usage: $0 [OPTION]... [VAR=VALUE]...
  1297. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1298. VAR=VALUE. See below for descriptions of some of the useful variables.
  1299. Defaults for the options are specified in brackets.
  1300. Configuration:
  1301. -h, --help display this help and exit
  1302. --help=short display options specific to this package
  1303. --help=recursive display the short help of all the included packages
  1304. -V, --version display version information and exit
  1305. -q, --quiet, --silent do not print \`checking ...' messages
  1306. --cache-file=FILE cache test results in FILE [disabled]
  1307. -C, --config-cache alias for \`--cache-file=config.cache'
  1308. -n, --no-create do not create output files
  1309. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1310. Installation directories:
  1311. --prefix=PREFIX install architecture-independent files in PREFIX
  1312. [$ac_default_prefix]
  1313. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1314. [PREFIX]
  1315. By default, \`make install' will install all the files in
  1316. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1317. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1318. for instance \`--prefix=\$HOME'.
  1319. For better control, use the options below.
  1320. Fine tuning of the installation directories:
  1321. --bindir=DIR user executables [EPREFIX/bin]
  1322. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1323. --libexecdir=DIR program executables [EPREFIX/libexec]
  1324. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1325. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1326. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1327. --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
  1328. --libdir=DIR object code libraries [EPREFIX/lib]
  1329. --includedir=DIR C header files [PREFIX/include]
  1330. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1331. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1332. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1333. --infodir=DIR info documentation [DATAROOTDIR/info]
  1334. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1335. --mandir=DIR man documentation [DATAROOTDIR/man]
  1336. --docdir=DIR documentation root [DATAROOTDIR/doc/gperftools]
  1337. --htmldir=DIR html documentation [DOCDIR]
  1338. --dvidir=DIR dvi documentation [DOCDIR]
  1339. --pdfdir=DIR pdf documentation [DOCDIR]
  1340. --psdir=DIR ps documentation [DOCDIR]
  1341. _ACEOF
  1342. cat <<\_ACEOF
  1343. Program names:
  1344. --program-prefix=PREFIX prepend PREFIX to installed program names
  1345. --program-suffix=SUFFIX append SUFFIX to installed program names
  1346. --program-transform-name=PROGRAM run sed PROGRAM on installed program names
  1347. System types:
  1348. --build=BUILD configure for building on BUILD [guessed]
  1349. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1350. _ACEOF
  1351. fi
  1352. if test -n "$ac_init_help"; then
  1353. case $ac_init_help in
  1354. short | recursive ) echo "Configuration of gperftools 2.9.1:";;
  1355. esac
  1356. cat <<\_ACEOF
  1357. Optional Features:
  1358. --disable-option-checking ignore unrecognized --enable/--with options
  1359. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1360. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1361. --enable-silent-rules less verbose build output (undo: "make V=1")
  1362. --disable-silent-rules verbose build output (undo: "make V=0")
  1363. --enable-maintainer-mode
  1364. enable make rules and dependencies not useful (and
  1365. sometimes confusing) to the casual installer
  1366. --enable-dependency-tracking
  1367. do not reject slow dependency extractors
  1368. --disable-dependency-tracking
  1369. speeds up one-time build
  1370. --disable-cpu-profiler do not build the cpu profiler
  1371. --disable-heap-profiler do not build the heap profiler
  1372. --disable-heap-checker do not build the heap checker
  1373. --disable-debugalloc do not build versions of libs with debugalloc
  1374. --enable-minimal build only tcmalloc-minimal (and maybe
  1375. tcmalloc-minimal-debug)
  1376. --enable-stacktrace-via-backtrace
  1377. enable use of backtrace() for stacktrace capturing
  1378. (may deadlock)
  1379. --enable-libunwind enable libunwind linking
  1380. --enable-shared[=PKGS] build shared libraries [default=yes]
  1381. --enable-static[=PKGS] build static libraries [default=yes]
  1382. --enable-fast-install[=PKGS]
  1383. optimize for fast installation [default=yes]
  1384. --disable-libtool-lock avoid locking (might break parallel builds)
  1385. --enable-frame-pointers On x86_64 systems, compile with
  1386. -fno-omit-frame-pointer (see INSTALL)
  1387. --disable-deprecated-pprof
  1388. do not install old deprecated and unmaintained
  1389. bundled pprof (see github.com/google/pprof for
  1390. supported version)
  1391. --enable-dynamic-sized-delete-support
  1392. try to build run-time switch for sized delete
  1393. operator
  1394. --enable-sized-delete build sized delete operator
  1395. --enable-emergency-malloc
  1396. build emergency malloc feature
  1397. --enable-large-alloc-report
  1398. report very large allocations to stderr
  1399. --enable-aggressive-decommit-by-default
  1400. enable aggressive decommit by default
  1401. Optional Packages:
  1402. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1403. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1404. --with-tcmalloc-pagesize
  1405. Set the tcmalloc internal page size to 4K, 8K, 16K,
  1406. 32K, 64K, 128K or 256K
  1407. --with-tcmalloc-alignment
  1408. Set the tcmalloc allocation alignment to 8 or 16
  1409. bytes
  1410. --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
  1411. both]
  1412. --with-aix-soname=aix|svr4|both
  1413. shared library versioning (aka "SONAME") variant to
  1414. provide on AIX, [default=aix].
  1415. --with-gnu-ld assume the C compiler uses GNU ld [default=no]
  1416. --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
  1417. compiler's sysroot if not specified).
  1418. Some influential environment variables:
  1419. CC C compiler command
  1420. CFLAGS C compiler flags
  1421. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1422. nonstandard directory <lib dir>
  1423. LIBS libraries to pass to the linker, e.g. -l<library>
  1424. CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
  1425. you have headers in a nonstandard directory <include dir>
  1426. CXX C++ compiler command
  1427. CXXFLAGS C++ compiler flags
  1428. CPP C preprocessor
  1429. LT_SYS_LIBRARY_PATH
  1430. User-defined run-time library search path.
  1431. CXXCPP C++ preprocessor
  1432. Use these variables to override the choices made by `configure' or to help
  1433. it to find libraries and programs with nonstandard names/locations.
  1434. Report bugs to <gperftools@googlegroups.com>.
  1435. _ACEOF
  1436. ac_status=$?
  1437. fi
  1438. if test "$ac_init_help" = "recursive"; then
  1439. # If there are subdirs, report their specific --help.
  1440. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1441. test -d "$ac_dir" ||
  1442. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1443. continue
  1444. ac_builddir=.
  1445. case "$ac_dir" in
  1446. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1447. *)
  1448. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  1449. # A ".." for each directory in $ac_dir_suffix.
  1450. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1451. case $ac_top_builddir_sub in
  1452. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1453. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1454. esac ;;
  1455. esac
  1456. ac_abs_top_builddir=$ac_pwd
  1457. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1458. # for backward compatibility:
  1459. ac_top_builddir=$ac_top_build_prefix
  1460. case $srcdir in
  1461. .) # We are building in place.
  1462. ac_srcdir=.
  1463. ac_top_srcdir=$ac_top_builddir_sub
  1464. ac_abs_top_srcdir=$ac_pwd ;;
  1465. [\\/]* | ?:[\\/]* ) # Absolute name.
  1466. ac_srcdir=$srcdir$ac_dir_suffix;
  1467. ac_top_srcdir=$srcdir
  1468. ac_abs_top_srcdir=$srcdir ;;
  1469. *) # Relative name.
  1470. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1471. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1472. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1473. esac
  1474. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1475. cd "$ac_dir" || { ac_status=$?; continue; }
  1476. # Check for guested configure.
  1477. if test -f "$ac_srcdir/configure.gnu"; then
  1478. echo &&
  1479. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1480. elif test -f "$ac_srcdir/configure"; then
  1481. echo &&
  1482. $SHELL "$ac_srcdir/configure" --help=recursive
  1483. else
  1484. $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1485. fi || ac_status=$?
  1486. cd "$ac_pwd" || { ac_status=$?; break; }
  1487. done
  1488. fi
  1489. test -n "$ac_init_help" && exit $ac_status
  1490. if $ac_init_version; then
  1491. cat <<\_ACEOF
  1492. gperftools configure 2.9.1
  1493. generated by GNU Autoconf 2.69
  1494. Copyright (C) 2012 Free Software Foundation, Inc.
  1495. This configure script is free software; the Free Software Foundation
  1496. gives unlimited permission to copy, distribute and modify it.
  1497. _ACEOF
  1498. exit
  1499. fi
  1500. ## ------------------------ ##
  1501. ## Autoconf initialization. ##
  1502. ## ------------------------ ##
  1503. # ac_fn_c_try_compile LINENO
  1504. # --------------------------
  1505. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1506. ac_fn_c_try_compile ()
  1507. {
  1508. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1509. rm -f conftest.$ac_objext
  1510. if { { ac_try="$ac_compile"
  1511. case "(($ac_try" in
  1512. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1513. *) ac_try_echo=$ac_try;;
  1514. esac
  1515. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1516. $as_echo "$ac_try_echo"; } >&5
  1517. (eval "$ac_compile") 2>conftest.err
  1518. ac_status=$?
  1519. if test -s conftest.err; then
  1520. grep -v '^ *+' conftest.err >conftest.er1
  1521. cat conftest.er1 >&5
  1522. mv -f conftest.er1 conftest.err
  1523. fi
  1524. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1525. test $ac_status = 0; } && {
  1526. test -z "$ac_c_werror_flag" ||
  1527. test ! -s conftest.err
  1528. } && test -s conftest.$ac_objext; then :
  1529. ac_retval=0
  1530. else
  1531. $as_echo "$as_me: failed program was:" >&5
  1532. sed 's/^/| /' conftest.$ac_ext >&5
  1533. ac_retval=1
  1534. fi
  1535. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1536. as_fn_set_status $ac_retval
  1537. } # ac_fn_c_try_compile
  1538. # ac_fn_cxx_try_compile LINENO
  1539. # ----------------------------
  1540. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1541. ac_fn_cxx_try_compile ()
  1542. {
  1543. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1544. rm -f conftest.$ac_objext
  1545. if { { ac_try="$ac_compile"
  1546. case "(($ac_try" in
  1547. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1548. *) ac_try_echo=$ac_try;;
  1549. esac
  1550. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1551. $as_echo "$ac_try_echo"; } >&5
  1552. (eval "$ac_compile") 2>conftest.err
  1553. ac_status=$?
  1554. if test -s conftest.err; then
  1555. grep -v '^ *+' conftest.err >conftest.er1
  1556. cat conftest.er1 >&5
  1557. mv -f conftest.er1 conftest.err
  1558. fi
  1559. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1560. test $ac_status = 0; } && {
  1561. test -z "$ac_cxx_werror_flag" ||
  1562. test ! -s conftest.err
  1563. } && test -s conftest.$ac_objext; then :
  1564. ac_retval=0
  1565. else
  1566. $as_echo "$as_me: failed program was:" >&5
  1567. sed 's/^/| /' conftest.$ac_ext >&5
  1568. ac_retval=1
  1569. fi
  1570. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1571. as_fn_set_status $ac_retval
  1572. } # ac_fn_cxx_try_compile
  1573. # ac_fn_c_try_cpp LINENO
  1574. # ----------------------
  1575. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1576. ac_fn_c_try_cpp ()
  1577. {
  1578. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1579. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1580. case "(($ac_try" in
  1581. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1582. *) ac_try_echo=$ac_try;;
  1583. esac
  1584. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1585. $as_echo "$ac_try_echo"; } >&5
  1586. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1587. ac_status=$?
  1588. if test -s conftest.err; then
  1589. grep -v '^ *+' conftest.err >conftest.er1
  1590. cat conftest.er1 >&5
  1591. mv -f conftest.er1 conftest.err
  1592. fi
  1593. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1594. test $ac_status = 0; } > conftest.i && {
  1595. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  1596. test ! -s conftest.err
  1597. }; then :
  1598. ac_retval=0
  1599. else
  1600. $as_echo "$as_me: failed program was:" >&5
  1601. sed 's/^/| /' conftest.$ac_ext >&5
  1602. ac_retval=1
  1603. fi
  1604. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1605. as_fn_set_status $ac_retval
  1606. } # ac_fn_c_try_cpp
  1607. # ac_fn_c_try_link LINENO
  1608. # -----------------------
  1609. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1610. ac_fn_c_try_link ()
  1611. {
  1612. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1613. rm -f conftest.$ac_objext conftest$ac_exeext
  1614. if { { ac_try="$ac_link"
  1615. case "(($ac_try" in
  1616. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1617. *) ac_try_echo=$ac_try;;
  1618. esac
  1619. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1620. $as_echo "$ac_try_echo"; } >&5
  1621. (eval "$ac_link") 2>conftest.err
  1622. ac_status=$?
  1623. if test -s conftest.err; then
  1624. grep -v '^ *+' conftest.err >conftest.er1
  1625. cat conftest.er1 >&5
  1626. mv -f conftest.er1 conftest.err
  1627. fi
  1628. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1629. test $ac_status = 0; } && {
  1630. test -z "$ac_c_werror_flag" ||
  1631. test ! -s conftest.err
  1632. } && test -s conftest$ac_exeext && {
  1633. test "$cross_compiling" = yes ||
  1634. test -x conftest$ac_exeext
  1635. }; then :
  1636. ac_retval=0
  1637. else
  1638. $as_echo "$as_me: failed program was:" >&5
  1639. sed 's/^/| /' conftest.$ac_ext >&5
  1640. ac_retval=1
  1641. fi
  1642. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1643. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1644. # interfere with the next link command; also delete a directory that is
  1645. # left behind by Apple's compiler. We do this before executing the actions.
  1646. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1647. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1648. as_fn_set_status $ac_retval
  1649. } # ac_fn_c_try_link
  1650. # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
  1651. # -------------------------------------------------------
  1652. # Tests whether HEADER exists and can be compiled using the include files in
  1653. # INCLUDES, setting the cache variable VAR accordingly.
  1654. ac_fn_c_check_header_compile ()
  1655. {
  1656. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1657. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1658. $as_echo_n "checking for $2... " >&6; }
  1659. if eval \${$3+:} false; then :
  1660. $as_echo_n "(cached) " >&6
  1661. else
  1662. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1663. /* end confdefs.h. */
  1664. $4
  1665. #include <$2>
  1666. _ACEOF
  1667. if ac_fn_c_try_compile "$LINENO"; then :
  1668. eval "$3=yes"
  1669. else
  1670. eval "$3=no"
  1671. fi
  1672. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1673. fi
  1674. eval ac_res=\$$3
  1675. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1676. $as_echo "$ac_res" >&6; }
  1677. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1678. } # ac_fn_c_check_header_compile
  1679. # ac_fn_c_try_run LINENO
  1680. # ----------------------
  1681. # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
  1682. # that executables *can* be run.
  1683. ac_fn_c_try_run ()
  1684. {
  1685. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1686. if { { ac_try="$ac_link"
  1687. case "(($ac_try" in
  1688. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1689. *) ac_try_echo=$ac_try;;
  1690. esac
  1691. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1692. $as_echo "$ac_try_echo"; } >&5
  1693. (eval "$ac_link") 2>&5
  1694. ac_status=$?
  1695. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1696. test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  1697. { { case "(($ac_try" in
  1698. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1699. *) ac_try_echo=$ac_try;;
  1700. esac
  1701. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1702. $as_echo "$ac_try_echo"; } >&5
  1703. (eval "$ac_try") 2>&5
  1704. ac_status=$?
  1705. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1706. test $ac_status = 0; }; }; then :
  1707. ac_retval=0
  1708. else
  1709. $as_echo "$as_me: program exited with status $ac_status" >&5
  1710. $as_echo "$as_me: failed program was:" >&5
  1711. sed 's/^/| /' conftest.$ac_ext >&5
  1712. ac_retval=$ac_status
  1713. fi
  1714. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1715. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1716. as_fn_set_status $ac_retval
  1717. } # ac_fn_c_try_run
  1718. # ac_fn_c_check_func LINENO FUNC VAR
  1719. # ----------------------------------
  1720. # Tests whether FUNC exists, setting the cache variable VAR accordingly
  1721. ac_fn_c_check_func ()
  1722. {
  1723. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1724. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1725. $as_echo_n "checking for $2... " >&6; }
  1726. if eval \${$3+:} false; then :
  1727. $as_echo_n "(cached) " >&6
  1728. else
  1729. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1730. /* end confdefs.h. */
  1731. /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
  1732. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  1733. #define $2 innocuous_$2
  1734. /* System header to define __stub macros and hopefully few prototypes,
  1735. which can conflict with char $2 (); below.
  1736. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  1737. <limits.h> exists even on freestanding compilers. */
  1738. #ifdef __STDC__
  1739. # include <limits.h>
  1740. #else
  1741. # include <assert.h>
  1742. #endif
  1743. #undef $2
  1744. /* Override any GCC internal prototype to avoid an error.
  1745. Use char because int might match the return type of a GCC
  1746. builtin and then its argument prototype would still apply. */
  1747. #ifdef __cplusplus
  1748. extern "C"
  1749. #endif
  1750. char $2 ();
  1751. /* The GNU C library defines this for functions which it implements
  1752. to always fail with ENOSYS. Some functions are actually named
  1753. something starting with __ and the normal name is an alias. */
  1754. #if defined __stub_$2 || defined __stub___$2
  1755. choke me
  1756. #endif
  1757. int
  1758. main ()
  1759. {
  1760. return $2 ();
  1761. ;
  1762. return 0;
  1763. }
  1764. _ACEOF
  1765. if ac_fn_c_try_link "$LINENO"; then :
  1766. eval "$3=yes"
  1767. else
  1768. eval "$3=no"
  1769. fi
  1770. rm -f core conftest.err conftest.$ac_objext \
  1771. conftest$ac_exeext conftest.$ac_ext
  1772. fi
  1773. eval ac_res=\$$3
  1774. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1775. $as_echo "$ac_res" >&6; }
  1776. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1777. } # ac_fn_c_check_func
  1778. # ac_fn_cxx_try_cpp LINENO
  1779. # ------------------------
  1780. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1781. ac_fn_cxx_try_cpp ()
  1782. {
  1783. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1784. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1785. case "(($ac_try" in
  1786. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1787. *) ac_try_echo=$ac_try;;
  1788. esac
  1789. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1790. $as_echo "$ac_try_echo"; } >&5
  1791. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1792. ac_status=$?
  1793. if test -s conftest.err; then
  1794. grep -v '^ *+' conftest.err >conftest.er1
  1795. cat conftest.er1 >&5
  1796. mv -f conftest.er1 conftest.err
  1797. fi
  1798. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1799. test $ac_status = 0; } > conftest.i && {
  1800. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  1801. test ! -s conftest.err
  1802. }; then :
  1803. ac_retval=0
  1804. else
  1805. $as_echo "$as_me: failed program was:" >&5
  1806. sed 's/^/| /' conftest.$ac_ext >&5
  1807. ac_retval=1
  1808. fi
  1809. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1810. as_fn_set_status $ac_retval
  1811. } # ac_fn_cxx_try_cpp
  1812. # ac_fn_cxx_try_link LINENO
  1813. # -------------------------
  1814. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1815. ac_fn_cxx_try_link ()
  1816. {
  1817. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1818. rm -f conftest.$ac_objext conftest$ac_exeext
  1819. if { { ac_try="$ac_link"
  1820. case "(($ac_try" in
  1821. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1822. *) ac_try_echo=$ac_try;;
  1823. esac
  1824. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1825. $as_echo "$ac_try_echo"; } >&5
  1826. (eval "$ac_link") 2>conftest.err
  1827. ac_status=$?
  1828. if test -s conftest.err; then
  1829. grep -v '^ *+' conftest.err >conftest.er1
  1830. cat conftest.er1 >&5
  1831. mv -f conftest.er1 conftest.err
  1832. fi
  1833. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1834. test $ac_status = 0; } && {
  1835. test -z "$ac_cxx_werror_flag" ||
  1836. test ! -s conftest.err
  1837. } && test -s conftest$ac_exeext && {
  1838. test "$cross_compiling" = yes ||
  1839. test -x conftest$ac_exeext
  1840. }; then :
  1841. ac_retval=0
  1842. else
  1843. $as_echo "$as_me: failed program was:" >&5
  1844. sed 's/^/| /' conftest.$ac_ext >&5
  1845. ac_retval=1
  1846. fi
  1847. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1848. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1849. # interfere with the next link command; also delete a directory that is
  1850. # left behind by Apple's compiler. We do this before executing the actions.
  1851. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1852. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1853. as_fn_set_status $ac_retval
  1854. } # ac_fn_cxx_try_link
  1855. # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
  1856. # -------------------------------------------
  1857. # Tests whether TYPE exists after having included INCLUDES, setting cache
  1858. # variable VAR accordingly.
  1859. ac_fn_c_check_type ()
  1860. {
  1861. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1862. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1863. $as_echo_n "checking for $2... " >&6; }
  1864. if eval \${$3+:} false; then :
  1865. $as_echo_n "(cached) " >&6
  1866. else
  1867. eval "$3=no"
  1868. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1869. /* end confdefs.h. */
  1870. $4
  1871. int
  1872. main ()
  1873. {
  1874. if (sizeof ($2))
  1875. return 0;
  1876. ;
  1877. return 0;
  1878. }
  1879. _ACEOF
  1880. if ac_fn_c_try_compile "$LINENO"; then :
  1881. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1882. /* end confdefs.h. */
  1883. $4
  1884. int
  1885. main ()
  1886. {
  1887. if (sizeof (($2)))
  1888. return 0;
  1889. ;
  1890. return 0;
  1891. }
  1892. _ACEOF
  1893. if ac_fn_c_try_compile "$LINENO"; then :
  1894. else
  1895. eval "$3=yes"
  1896. fi
  1897. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1898. fi
  1899. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1900. fi
  1901. eval ac_res=\$$3
  1902. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1903. $as_echo "$ac_res" >&6; }
  1904. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1905. } # ac_fn_c_check_type
  1906. # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
  1907. # -------------------------------------------------------
  1908. # Tests whether HEADER exists, giving a warning if it cannot be compiled using
  1909. # the include files in INCLUDES and setting the cache variable VAR
  1910. # accordingly.
  1911. ac_fn_c_check_header_mongrel ()
  1912. {
  1913. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1914. if eval \${$3+:} false; then :
  1915. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1916. $as_echo_n "checking for $2... " >&6; }
  1917. if eval \${$3+:} false; then :
  1918. $as_echo_n "(cached) " >&6
  1919. fi
  1920. eval ac_res=\$$3
  1921. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1922. $as_echo "$ac_res" >&6; }
  1923. else
  1924. # Is the header compilable?
  1925. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
  1926. $as_echo_n "checking $2 usability... " >&6; }
  1927. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1928. /* end confdefs.h. */
  1929. $4
  1930. #include <$2>
  1931. _ACEOF
  1932. if ac_fn_c_try_compile "$LINENO"; then :
  1933. ac_header_compiler=yes
  1934. else
  1935. ac_header_compiler=no
  1936. fi
  1937. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1938. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
  1939. $as_echo "$ac_header_compiler" >&6; }
  1940. # Is the header present?
  1941. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
  1942. $as_echo_n "checking $2 presence... " >&6; }
  1943. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1944. /* end confdefs.h. */
  1945. #include <$2>
  1946. _ACEOF
  1947. if ac_fn_c_try_cpp "$LINENO"; then :
  1948. ac_header_preproc=yes
  1949. else
  1950. ac_header_preproc=no
  1951. fi
  1952. rm -f conftest.err conftest.i conftest.$ac_ext
  1953. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
  1954. $as_echo "$ac_header_preproc" >&6; }
  1955. # So? What about this header?
  1956. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
  1957. yes:no: )
  1958. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
  1959. $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
  1960. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1961. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1962. ;;
  1963. no:yes:* )
  1964. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
  1965. $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
  1966. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
  1967. $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
  1968. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
  1969. $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
  1970. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
  1971. $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
  1972. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1973. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1974. ( $as_echo "## ------------------------------------------ ##
  1975. ## Report this to gperftools@googlegroups.com ##
  1976. ## ------------------------------------------ ##"
  1977. ) | sed "s/^/$as_me: WARNING: /" >&2
  1978. ;;
  1979. esac
  1980. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1981. $as_echo_n "checking for $2... " >&6; }
  1982. if eval \${$3+:} false; then :
  1983. $as_echo_n "(cached) " >&6
  1984. else
  1985. eval "$3=\$ac_header_compiler"
  1986. fi
  1987. eval ac_res=\$$3
  1988. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1989. $as_echo "$ac_res" >&6; }
  1990. fi
  1991. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1992. } # ac_fn_c_check_header_mongrel
  1993. # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
  1994. # ---------------------------------------------
  1995. # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
  1996. # accordingly.
  1997. ac_fn_c_check_decl ()
  1998. {
  1999. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2000. as_decl_name=`echo $2|sed 's/ *(.*//'`
  2001. as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
  2002. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
  2003. $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
  2004. if eval \${$3+:} false; then :
  2005. $as_echo_n "(cached) " >&6
  2006. else
  2007. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2008. /* end confdefs.h. */
  2009. $4
  2010. int
  2011. main ()
  2012. {
  2013. #ifndef $as_decl_name
  2014. #ifdef __cplusplus
  2015. (void) $as_decl_use;
  2016. #else
  2017. (void) $as_decl_name;
  2018. #endif
  2019. #endif
  2020. ;
  2021. return 0;
  2022. }
  2023. _ACEOF
  2024. if ac_fn_c_try_compile "$LINENO"; then :
  2025. eval "$3=yes"
  2026. else
  2027. eval "$3=no"
  2028. fi
  2029. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2030. fi
  2031. eval ac_res=\$$3
  2032. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2033. $as_echo "$ac_res" >&6; }
  2034. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2035. } # ac_fn_c_check_decl
  2036. cat >config.log <<_ACEOF
  2037. This file contains any messages produced by compilers while
  2038. running configure, to aid debugging if configure makes a mistake.
  2039. It was created by gperftools $as_me 2.9.1, which was
  2040. generated by GNU Autoconf 2.69. Invocation command line was
  2041. $ $0 $@
  2042. _ACEOF
  2043. exec 5>>config.log
  2044. {
  2045. cat <<_ASUNAME
  2046. ## --------- ##
  2047. ## Platform. ##
  2048. ## --------- ##
  2049. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  2050. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  2051. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  2052. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  2053. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  2054. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  2055. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  2056. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  2057. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  2058. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  2059. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  2060. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  2061. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  2062. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  2063. _ASUNAME
  2064. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2065. for as_dir in $PATH
  2066. do
  2067. IFS=$as_save_IFS
  2068. test -z "$as_dir" && as_dir=.
  2069. $as_echo "PATH: $as_dir"
  2070. done
  2071. IFS=$as_save_IFS
  2072. } >&5
  2073. cat >&5 <<_ACEOF
  2074. ## ----------- ##
  2075. ## Core tests. ##
  2076. ## ----------- ##
  2077. _ACEOF
  2078. # Keep a trace of the command line.
  2079. # Strip out --no-create and --no-recursion so they do not pile up.
  2080. # Strip out --silent because we don't want to record it for future runs.
  2081. # Also quote any args containing shell meta-characters.
  2082. # Make two passes to allow for proper duplicate-argument suppression.
  2083. ac_configure_args=
  2084. ac_configure_args0=
  2085. ac_configure_args1=
  2086. ac_must_keep_next=false
  2087. for ac_pass in 1 2
  2088. do
  2089. for ac_arg
  2090. do
  2091. case $ac_arg in
  2092. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  2093. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  2094. | -silent | --silent | --silen | --sile | --sil)
  2095. continue ;;
  2096. *\'*)
  2097. ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  2098. esac
  2099. case $ac_pass in
  2100. 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  2101. 2)
  2102. as_fn_append ac_configure_args1 " '$ac_arg'"
  2103. if test $ac_must_keep_next = true; then
  2104. ac_must_keep_next=false # Got value, back to normal.
  2105. else
  2106. case $ac_arg in
  2107. *=* | --config-cache | -C | -disable-* | --disable-* \
  2108. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  2109. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  2110. | -with-* | --with-* | -without-* | --without-* | --x)
  2111. case "$ac_configure_args0 " in
  2112. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  2113. esac
  2114. ;;
  2115. -* ) ac_must_keep_next=true ;;
  2116. esac
  2117. fi
  2118. as_fn_append ac_configure_args " '$ac_arg'"
  2119. ;;
  2120. esac
  2121. done
  2122. done
  2123. { ac_configure_args0=; unset ac_configure_args0;}
  2124. { ac_configure_args1=; unset ac_configure_args1;}
  2125. # When interrupted or exit'd, cleanup temporary files, and complete
  2126. # config.log. We remove comments because anyway the quotes in there
  2127. # would cause problems or look ugly.
  2128. # WARNING: Use '\'' to represent an apostrophe within the trap.
  2129. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  2130. trap 'exit_status=$?
  2131. # Save into config.log some information that might help in debugging.
  2132. {
  2133. echo
  2134. $as_echo "## ---------------- ##
  2135. ## Cache variables. ##
  2136. ## ---------------- ##"
  2137. echo
  2138. # The following way of writing the cache mishandles newlines in values,
  2139. (
  2140. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  2141. eval ac_val=\$$ac_var
  2142. case $ac_val in #(
  2143. *${as_nl}*)
  2144. case $ac_var in #(
  2145. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  2146. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  2147. esac
  2148. case $ac_var in #(
  2149. _ | IFS | as_nl) ;; #(
  2150. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  2151. *) { eval $ac_var=; unset $ac_var;} ;;
  2152. esac ;;
  2153. esac
  2154. done
  2155. (set) 2>&1 |
  2156. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  2157. *${as_nl}ac_space=\ *)
  2158. sed -n \
  2159. "s/'\''/'\''\\\\'\'''\''/g;
  2160. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  2161. ;; #(
  2162. *)
  2163. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  2164. ;;
  2165. esac |
  2166. sort
  2167. )
  2168. echo
  2169. $as_echo "## ----------------- ##
  2170. ## Output variables. ##
  2171. ## ----------------- ##"
  2172. echo
  2173. for ac_var in $ac_subst_vars
  2174. do
  2175. eval ac_val=\$$ac_var
  2176. case $ac_val in
  2177. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2178. esac
  2179. $as_echo "$ac_var='\''$ac_val'\''"
  2180. done | sort
  2181. echo
  2182. if test -n "$ac_subst_files"; then
  2183. $as_echo "## ------------------- ##
  2184. ## File substitutions. ##
  2185. ## ------------------- ##"
  2186. echo
  2187. for ac_var in $ac_subst_files
  2188. do
  2189. eval ac_val=\$$ac_var
  2190. case $ac_val in
  2191. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2192. esac
  2193. $as_echo "$ac_var='\''$ac_val'\''"
  2194. done | sort
  2195. echo
  2196. fi
  2197. if test -s confdefs.h; then
  2198. $as_echo "## ----------- ##
  2199. ## confdefs.h. ##
  2200. ## ----------- ##"
  2201. echo
  2202. cat confdefs.h
  2203. echo
  2204. fi
  2205. test "$ac_signal" != 0 &&
  2206. $as_echo "$as_me: caught signal $ac_signal"
  2207. $as_echo "$as_me: exit $exit_status"
  2208. } >&5
  2209. rm -f core *.core core.conftest.* &&
  2210. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  2211. exit $exit_status
  2212. ' 0
  2213. for ac_signal in 1 2 13 15; do
  2214. trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  2215. done
  2216. ac_signal=0
  2217. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  2218. rm -f -r conftest* confdefs.h
  2219. $as_echo "/* confdefs.h */" > confdefs.h
  2220. # Predefined preprocessor variables.
  2221. cat >>confdefs.h <<_ACEOF
  2222. #define PACKAGE_NAME "$PACKAGE_NAME"
  2223. _ACEOF
  2224. cat >>confdefs.h <<_ACEOF
  2225. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  2226. _ACEOF
  2227. cat >>confdefs.h <<_ACEOF
  2228. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  2229. _ACEOF
  2230. cat >>confdefs.h <<_ACEOF
  2231. #define PACKAGE_STRING "$PACKAGE_STRING"
  2232. _ACEOF
  2233. cat >>confdefs.h <<_ACEOF
  2234. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  2235. _ACEOF
  2236. cat >>confdefs.h <<_ACEOF
  2237. #define PACKAGE_URL "$PACKAGE_URL"
  2238. _ACEOF
  2239. # Let the site file select an alternate cache file if it wants to.
  2240. # Prefer an explicitly selected file to automatically selected ones.
  2241. ac_site_file1=NONE
  2242. ac_site_file2=NONE
  2243. if test -n "$CONFIG_SITE"; then
  2244. # We do not want a PATH search for config.site.
  2245. case $CONFIG_SITE in #((
  2246. -*) ac_site_file1=./$CONFIG_SITE;;
  2247. */*) ac_site_file1=$CONFIG_SITE;;
  2248. *) ac_site_file1=./$CONFIG_SITE;;
  2249. esac
  2250. elif test "x$prefix" != xNONE; then
  2251. ac_site_file1=$prefix/share/config.site
  2252. ac_site_file2=$prefix/etc/config.site
  2253. else
  2254. ac_site_file1=$ac_default_prefix/share/config.site
  2255. ac_site_file2=$ac_default_prefix/etc/config.site
  2256. fi
  2257. for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  2258. do
  2259. test "x$ac_site_file" = xNONE && continue
  2260. if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
  2261. { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  2262. $as_echo "$as_me: loading site script $ac_site_file" >&6;}
  2263. sed 's/^/| /' "$ac_site_file" >&5
  2264. . "$ac_site_file" \
  2265. || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2266. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2267. as_fn_error $? "failed to load site script $ac_site_file
  2268. See \`config.log' for more details" "$LINENO" 5; }
  2269. fi
  2270. done
  2271. if test -r "$cache_file"; then
  2272. # Some versions of bash will fail to source /dev/null (special files
  2273. # actually), so we avoid doing that. DJGPP emulates it as a regular file.
  2274. if test /dev/null != "$cache_file" && test -f "$cache_file"; then
  2275. { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  2276. $as_echo "$as_me: loading cache $cache_file" >&6;}
  2277. case $cache_file in
  2278. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  2279. *) . "./$cache_file";;
  2280. esac
  2281. fi
  2282. else
  2283. { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  2284. $as_echo "$as_me: creating cache $cache_file" >&6;}
  2285. >$cache_file
  2286. fi
  2287. # Check that the precious variables saved in the cache have kept the same
  2288. # value.
  2289. ac_cache_corrupted=false
  2290. for ac_var in $ac_precious_vars; do
  2291. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  2292. eval ac_new_set=\$ac_env_${ac_var}_set
  2293. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  2294. eval ac_new_val=\$ac_env_${ac_var}_value
  2295. case $ac_old_set,$ac_new_set in
  2296. set,)
  2297. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  2298. $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  2299. ac_cache_corrupted=: ;;
  2300. ,set)
  2301. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  2302. $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  2303. ac_cache_corrupted=: ;;
  2304. ,);;
  2305. *)
  2306. if test "x$ac_old_val" != "x$ac_new_val"; then
  2307. # differences in whitespace do not lead to failure.
  2308. ac_old_val_w=`echo x $ac_old_val`
  2309. ac_new_val_w=`echo x $ac_new_val`
  2310. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  2311. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  2312. $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  2313. ac_cache_corrupted=:
  2314. else
  2315. { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  2316. $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  2317. eval $ac_var=\$ac_old_val
  2318. fi
  2319. { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
  2320. $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
  2321. { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
  2322. $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
  2323. fi;;
  2324. esac
  2325. # Pass precious variables to config.status.
  2326. if test "$ac_new_set" = set; then
  2327. case $ac_new_val in
  2328. *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  2329. *) ac_arg=$ac_var=$ac_new_val ;;
  2330. esac
  2331. case " $ac_configure_args " in
  2332. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  2333. *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  2334. esac
  2335. fi
  2336. done
  2337. if $ac_cache_corrupted; then
  2338. { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2339. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2340. { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  2341. $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  2342. as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
  2343. fi
  2344. ## -------------------- ##
  2345. ## Main body of script. ##
  2346. ## -------------------- ##
  2347. ac_ext=c
  2348. ac_cpp='$CPP $CPPFLAGS'
  2349. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2350. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2351. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2352. # Update this value for every release! (A:B:C will map to foo.so.(A-C).C.B)
  2353. # http://www.gnu.org/software/libtool/manual/html_node/Updating-version-info.html
  2354. TCMALLOC_SO_VERSION=9:9:5
  2355. PROFILER_SO_VERSION=5:4:5
  2356. TCMALLOC_AND_PROFILER_SO_VERSION=10:4:6
  2357. # The argument here is just something that should be in the current directory
  2358. # (for sanity checking)
  2359. ac_aux_dir=
  2360. for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
  2361. if test -f "$ac_dir/install-sh"; then
  2362. ac_aux_dir=$ac_dir
  2363. ac_install_sh="$ac_aux_dir/install-sh -c"
  2364. break
  2365. elif test -f "$ac_dir/install.sh"; then
  2366. ac_aux_dir=$ac_dir
  2367. ac_install_sh="$ac_aux_dir/install.sh -c"
  2368. break
  2369. elif test -f "$ac_dir/shtool"; then
  2370. ac_aux_dir=$ac_dir
  2371. ac_install_sh="$ac_aux_dir/shtool install -c"
  2372. break
  2373. fi
  2374. done
  2375. if test -z "$ac_aux_dir"; then
  2376. as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
  2377. fi
  2378. # These three variables are undocumented and unsupported,
  2379. # and are intended to be withdrawn in a future Autoconf release.
  2380. # They can cause serious problems if a builder's source tree is in a directory
  2381. # whose full name contains unusual characters.
  2382. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  2383. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  2384. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  2385. # Make sure we can run config.sub.
  2386. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  2387. as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
  2388. { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
  2389. $as_echo_n "checking build system type... " >&6; }
  2390. if ${ac_cv_build+:} false; then :
  2391. $as_echo_n "(cached) " >&6
  2392. else
  2393. ac_build_alias=$build_alias
  2394. test "x$ac_build_alias" = x &&
  2395. ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  2396. test "x$ac_build_alias" = x &&
  2397. as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
  2398. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  2399. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
  2400. fi
  2401. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
  2402. $as_echo "$ac_cv_build" >&6; }
  2403. case $ac_cv_build in
  2404. *-*-*) ;;
  2405. *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
  2406. esac
  2407. build=$ac_cv_build
  2408. ac_save_IFS=$IFS; IFS='-'
  2409. set x $ac_cv_build
  2410. shift
  2411. build_cpu=$1
  2412. build_vendor=$2
  2413. shift; shift
  2414. # Remember, the first character of IFS is used to create $*,
  2415. # except with old shells:
  2416. build_os=$*
  2417. IFS=$ac_save_IFS
  2418. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  2419. { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
  2420. $as_echo_n "checking host system type... " >&6; }
  2421. if ${ac_cv_host+:} false; then :
  2422. $as_echo_n "(cached) " >&6
  2423. else
  2424. if test "x$host_alias" = x; then
  2425. ac_cv_host=$ac_cv_build
  2426. else
  2427. ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  2428. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
  2429. fi
  2430. fi
  2431. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
  2432. $as_echo "$ac_cv_host" >&6; }
  2433. case $ac_cv_host in
  2434. *-*-*) ;;
  2435. *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
  2436. esac
  2437. host=$ac_cv_host
  2438. ac_save_IFS=$IFS; IFS='-'
  2439. set x $ac_cv_host
  2440. shift
  2441. host_cpu=$1
  2442. host_vendor=$2
  2443. shift; shift
  2444. # Remember, the first character of IFS is used to create $*,
  2445. # except with old shells:
  2446. host_os=$*
  2447. IFS=$ac_save_IFS
  2448. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  2449. am__api_version='1.16'
  2450. # Find a good install program. We prefer a C program (faster),
  2451. # so one script is as good as another. But avoid the broken or
  2452. # incompatible versions:
  2453. # SysV /etc/install, /usr/sbin/install
  2454. # SunOS /usr/etc/install
  2455. # IRIX /sbin/install
  2456. # AIX /bin/install
  2457. # AmigaOS /C/install, which installs bootblocks on floppy discs
  2458. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  2459. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  2460. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  2461. # OS/2's system install, which has a completely different semantic
  2462. # ./install, which can be erroneously created by make from ./install.sh.
  2463. # Reject install programs that cannot install multiple files.
  2464. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
  2465. $as_echo_n "checking for a BSD-compatible install... " >&6; }
  2466. if test -z "$INSTALL"; then
  2467. if ${ac_cv_path_install+:} false; then :
  2468. $as_echo_n "(cached) " >&6
  2469. else
  2470. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2471. for as_dir in $PATH
  2472. do
  2473. IFS=$as_save_IFS
  2474. test -z "$as_dir" && as_dir=.
  2475. # Account for people who put trailing slashes in PATH elements.
  2476. case $as_dir/ in #((
  2477. ./ | .// | /[cC]/* | \
  2478. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  2479. ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
  2480. /usr/ucb/* ) ;;
  2481. *)
  2482. # OSF1 and SCO ODT 3.0 have their own names for install.
  2483. # Don't use installbsd from OSF since it installs stuff as root
  2484. # by default.
  2485. for ac_prog in ginstall scoinst install; do
  2486. for ac_exec_ext in '' $ac_executable_extensions; do
  2487. if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
  2488. if test $ac_prog = install &&
  2489. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2490. # AIX install. It has an incompatible calling convention.
  2491. :
  2492. elif test $ac_prog = install &&
  2493. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2494. # program-specific install script used by HP pwplus--don't use.
  2495. :
  2496. else
  2497. rm -rf conftest.one conftest.two conftest.dir
  2498. echo one > conftest.one
  2499. echo two > conftest.two
  2500. mkdir conftest.dir
  2501. if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
  2502. test -s conftest.one && test -s conftest.two &&
  2503. test -s conftest.dir/conftest.one &&
  2504. test -s conftest.dir/conftest.two
  2505. then
  2506. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  2507. break 3
  2508. fi
  2509. fi
  2510. fi
  2511. done
  2512. done
  2513. ;;
  2514. esac
  2515. done
  2516. IFS=$as_save_IFS
  2517. rm -rf conftest.one conftest.two conftest.dir
  2518. fi
  2519. if test "${ac_cv_path_install+set}" = set; then
  2520. INSTALL=$ac_cv_path_install
  2521. else
  2522. # As a last resort, use the slow shell script. Don't cache a
  2523. # value for INSTALL within a source directory, because that will
  2524. # break other packages using the cache if that directory is
  2525. # removed, or if the value is a relative name.
  2526. INSTALL=$ac_install_sh
  2527. fi
  2528. fi
  2529. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
  2530. $as_echo "$INSTALL" >&6; }
  2531. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  2532. # It thinks the first close brace ends the variable substitution.
  2533. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  2534. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  2535. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  2536. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
  2537. $as_echo_n "checking whether build environment is sane... " >&6; }
  2538. # Reject unsafe characters in $srcdir or the absolute working directory
  2539. # name. Accept space and tab only in the latter.
  2540. am_lf='
  2541. '
  2542. case `pwd` in
  2543. *[\\\"\#\$\&\'\`$am_lf]*)
  2544. as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
  2545. esac
  2546. case $srcdir in
  2547. *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
  2548. as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
  2549. esac
  2550. # Do 'set' in a subshell so we don't clobber the current shell's
  2551. # arguments. Must try -L first in case configure is actually a
  2552. # symlink; some systems play weird games with the mod time of symlinks
  2553. # (eg FreeBSD returns the mod time of the symlink's containing
  2554. # directory).
  2555. if (
  2556. am_has_slept=no
  2557. for am_try in 1 2; do
  2558. echo "timestamp, slept: $am_has_slept" > conftest.file
  2559. set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
  2560. if test "$*" = "X"; then
  2561. # -L didn't work.
  2562. set X `ls -t "$srcdir/configure" conftest.file`
  2563. fi
  2564. if test "$*" != "X $srcdir/configure conftest.file" \
  2565. && test "$*" != "X conftest.file $srcdir/configure"; then
  2566. # If neither matched, then we have a broken ls. This can happen
  2567. # if, for instance, CONFIG_SHELL is bash and it inherits a
  2568. # broken ls alias from the environment. This has actually
  2569. # happened. Such a system could not be considered "sane".
  2570. as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
  2571. alias in your environment" "$LINENO" 5
  2572. fi
  2573. if test "$2" = conftest.file || test $am_try -eq 2; then
  2574. break
  2575. fi
  2576. # Just in case.
  2577. sleep 1
  2578. am_has_slept=yes
  2579. done
  2580. test "$2" = conftest.file
  2581. )
  2582. then
  2583. # Ok.
  2584. :
  2585. else
  2586. as_fn_error $? "newly created file is older than distributed files!
  2587. Check your system clock" "$LINENO" 5
  2588. fi
  2589. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2590. $as_echo "yes" >&6; }
  2591. # If we didn't sleep, we still need to ensure time stamps of config.status and
  2592. # generated files are strictly newer.
  2593. am_sleep_pid=
  2594. if grep 'slept: no' conftest.file >/dev/null 2>&1; then
  2595. ( sleep 1 ) &
  2596. am_sleep_pid=$!
  2597. fi
  2598. rm -f conftest.file
  2599. test "$program_prefix" != NONE &&
  2600. program_transform_name="s&^&$program_prefix&;$program_transform_name"
  2601. # Use a double $ so make ignores it.
  2602. test "$program_suffix" != NONE &&
  2603. program_transform_name="s&\$&$program_suffix&;$program_transform_name"
  2604. # Double any \ or $.
  2605. # By default was `s,x,x', remove it if useless.
  2606. ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
  2607. program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
  2608. # Expand $ac_aux_dir to an absolute path.
  2609. am_aux_dir=`cd "$ac_aux_dir" && pwd`
  2610. if test x"${MISSING+set}" != xset; then
  2611. MISSING="\${SHELL} '$am_aux_dir/missing'"
  2612. fi
  2613. # Use eval to expand $SHELL
  2614. if eval "$MISSING --is-lightweight"; then
  2615. am_missing_run="$MISSING "
  2616. else
  2617. am_missing_run=
  2618. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
  2619. $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
  2620. fi
  2621. if test x"${install_sh+set}" != xset; then
  2622. case $am_aux_dir in
  2623. *\ * | *\ *)
  2624. install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
  2625. *)
  2626. install_sh="\${SHELL} $am_aux_dir/install-sh"
  2627. esac
  2628. fi
  2629. # Installed binaries are usually stripped using 'strip' when the user
  2630. # run "make install-strip". However 'strip' might not be the right
  2631. # tool to use in cross-compilation environments, therefore Automake
  2632. # will honor the 'STRIP' environment variable to overrule this program.
  2633. if test "$cross_compiling" != no; then
  2634. if test -n "$ac_tool_prefix"; then
  2635. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  2636. set dummy ${ac_tool_prefix}strip; ac_word=$2
  2637. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2638. $as_echo_n "checking for $ac_word... " >&6; }
  2639. if ${ac_cv_prog_STRIP+:} false; then :
  2640. $as_echo_n "(cached) " >&6
  2641. else
  2642. if test -n "$STRIP"; then
  2643. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  2644. else
  2645. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2646. for as_dir in $PATH
  2647. do
  2648. IFS=$as_save_IFS
  2649. test -z "$as_dir" && as_dir=.
  2650. for ac_exec_ext in '' $ac_executable_extensions; do
  2651. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2652. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  2653. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2654. break 2
  2655. fi
  2656. done
  2657. done
  2658. IFS=$as_save_IFS
  2659. fi
  2660. fi
  2661. STRIP=$ac_cv_prog_STRIP
  2662. if test -n "$STRIP"; then
  2663. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  2664. $as_echo "$STRIP" >&6; }
  2665. else
  2666. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2667. $as_echo "no" >&6; }
  2668. fi
  2669. fi
  2670. if test -z "$ac_cv_prog_STRIP"; then
  2671. ac_ct_STRIP=$STRIP
  2672. # Extract the first word of "strip", so it can be a program name with args.
  2673. set dummy strip; ac_word=$2
  2674. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2675. $as_echo_n "checking for $ac_word... " >&6; }
  2676. if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
  2677. $as_echo_n "(cached) " >&6
  2678. else
  2679. if test -n "$ac_ct_STRIP"; then
  2680. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  2681. else
  2682. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2683. for as_dir in $PATH
  2684. do
  2685. IFS=$as_save_IFS
  2686. test -z "$as_dir" && as_dir=.
  2687. for ac_exec_ext in '' $ac_executable_extensions; do
  2688. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2689. ac_cv_prog_ac_ct_STRIP="strip"
  2690. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2691. break 2
  2692. fi
  2693. done
  2694. done
  2695. IFS=$as_save_IFS
  2696. fi
  2697. fi
  2698. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  2699. if test -n "$ac_ct_STRIP"; then
  2700. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  2701. $as_echo "$ac_ct_STRIP" >&6; }
  2702. else
  2703. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2704. $as_echo "no" >&6; }
  2705. fi
  2706. if test "x$ac_ct_STRIP" = x; then
  2707. STRIP=":"
  2708. else
  2709. case $cross_compiling:$ac_tool_warned in
  2710. yes:)
  2711. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2712. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2713. ac_tool_warned=yes ;;
  2714. esac
  2715. STRIP=$ac_ct_STRIP
  2716. fi
  2717. else
  2718. STRIP="$ac_cv_prog_STRIP"
  2719. fi
  2720. fi
  2721. INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
  2722. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
  2723. $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
  2724. if test -z "$MKDIR_P"; then
  2725. if ${ac_cv_path_mkdir+:} false; then :
  2726. $as_echo_n "(cached) " >&6
  2727. else
  2728. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2729. for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
  2730. do
  2731. IFS=$as_save_IFS
  2732. test -z "$as_dir" && as_dir=.
  2733. for ac_prog in mkdir gmkdir; do
  2734. for ac_exec_ext in '' $ac_executable_extensions; do
  2735. as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
  2736. case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
  2737. 'mkdir (GNU coreutils) '* | \
  2738. 'mkdir (coreutils) '* | \
  2739. 'mkdir (fileutils) '4.1*)
  2740. ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
  2741. break 3;;
  2742. esac
  2743. done
  2744. done
  2745. done
  2746. IFS=$as_save_IFS
  2747. fi
  2748. test -d ./--version && rmdir ./--version
  2749. if test "${ac_cv_path_mkdir+set}" = set; then
  2750. MKDIR_P="$ac_cv_path_mkdir -p"
  2751. else
  2752. # As a last resort, use the slow shell script. Don't cache a
  2753. # value for MKDIR_P within a source directory, because that will
  2754. # break other packages using the cache if that directory is
  2755. # removed, or if the value is a relative name.
  2756. MKDIR_P="$ac_install_sh -d"
  2757. fi
  2758. fi
  2759. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
  2760. $as_echo "$MKDIR_P" >&6; }
  2761. for ac_prog in gawk mawk nawk awk
  2762. do
  2763. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2764. set dummy $ac_prog; ac_word=$2
  2765. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2766. $as_echo_n "checking for $ac_word... " >&6; }
  2767. if ${ac_cv_prog_AWK+:} false; then :
  2768. $as_echo_n "(cached) " >&6
  2769. else
  2770. if test -n "$AWK"; then
  2771. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  2772. else
  2773. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2774. for as_dir in $PATH
  2775. do
  2776. IFS=$as_save_IFS
  2777. test -z "$as_dir" && as_dir=.
  2778. for ac_exec_ext in '' $ac_executable_extensions; do
  2779. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2780. ac_cv_prog_AWK="$ac_prog"
  2781. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2782. break 2
  2783. fi
  2784. done
  2785. done
  2786. IFS=$as_save_IFS
  2787. fi
  2788. fi
  2789. AWK=$ac_cv_prog_AWK
  2790. if test -n "$AWK"; then
  2791. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  2792. $as_echo "$AWK" >&6; }
  2793. else
  2794. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2795. $as_echo "no" >&6; }
  2796. fi
  2797. test -n "$AWK" && break
  2798. done
  2799. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  2800. $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  2801. set x ${MAKE-make}
  2802. ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  2803. if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
  2804. $as_echo_n "(cached) " >&6
  2805. else
  2806. cat >conftest.make <<\_ACEOF
  2807. SHELL = /bin/sh
  2808. all:
  2809. @echo '@@@%%%=$(MAKE)=@@@%%%'
  2810. _ACEOF
  2811. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  2812. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  2813. *@@@%%%=?*=@@@%%%*)
  2814. eval ac_cv_prog_make_${ac_make}_set=yes;;
  2815. *)
  2816. eval ac_cv_prog_make_${ac_make}_set=no;;
  2817. esac
  2818. rm -f conftest.make
  2819. fi
  2820. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  2821. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2822. $as_echo "yes" >&6; }
  2823. SET_MAKE=
  2824. else
  2825. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2826. $as_echo "no" >&6; }
  2827. SET_MAKE="MAKE=${MAKE-make}"
  2828. fi
  2829. rm -rf .tst 2>/dev/null
  2830. mkdir .tst 2>/dev/null
  2831. if test -d .tst; then
  2832. am__leading_dot=.
  2833. else
  2834. am__leading_dot=_
  2835. fi
  2836. rmdir .tst 2>/dev/null
  2837. # Check whether --enable-silent-rules was given.
  2838. if test "${enable_silent_rules+set}" = set; then :
  2839. enableval=$enable_silent_rules;
  2840. fi
  2841. case $enable_silent_rules in # (((
  2842. yes) AM_DEFAULT_VERBOSITY=0;;
  2843. no) AM_DEFAULT_VERBOSITY=1;;
  2844. *) AM_DEFAULT_VERBOSITY=1;;
  2845. esac
  2846. am_make=${MAKE-make}
  2847. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
  2848. $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
  2849. if ${am_cv_make_support_nested_variables+:} false; then :
  2850. $as_echo_n "(cached) " >&6
  2851. else
  2852. if $as_echo 'TRUE=$(BAR$(V))
  2853. BAR0=false
  2854. BAR1=true
  2855. V=1
  2856. am__doit:
  2857. @$(TRUE)
  2858. .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
  2859. am_cv_make_support_nested_variables=yes
  2860. else
  2861. am_cv_make_support_nested_variables=no
  2862. fi
  2863. fi
  2864. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
  2865. $as_echo "$am_cv_make_support_nested_variables" >&6; }
  2866. if test $am_cv_make_support_nested_variables = yes; then
  2867. AM_V='$(V)'
  2868. AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
  2869. else
  2870. AM_V=$AM_DEFAULT_VERBOSITY
  2871. AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
  2872. fi
  2873. AM_BACKSLASH='\'
  2874. if test "`cd $srcdir && pwd`" != "`pwd`"; then
  2875. # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
  2876. # is not polluted with repeated "-I."
  2877. am__isrc=' -I$(srcdir)'
  2878. # test to see if srcdir already configured
  2879. if test -f $srcdir/config.status; then
  2880. as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
  2881. fi
  2882. fi
  2883. # test whether we have cygpath
  2884. if test -z "$CYGPATH_W"; then
  2885. if (cygpath --version) >/dev/null 2>/dev/null; then
  2886. CYGPATH_W='cygpath -w'
  2887. else
  2888. CYGPATH_W=echo
  2889. fi
  2890. fi
  2891. # Define the identity of the package.
  2892. PACKAGE='gperftools'
  2893. VERSION='2.9.1'
  2894. cat >>confdefs.h <<_ACEOF
  2895. #define PACKAGE "$PACKAGE"
  2896. _ACEOF
  2897. cat >>confdefs.h <<_ACEOF
  2898. #define VERSION "$VERSION"
  2899. _ACEOF
  2900. # Some tools Automake needs.
  2901. ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
  2902. AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
  2903. AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
  2904. AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
  2905. MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
  2906. # For better backward compatibility. To be removed once Automake 1.9.x
  2907. # dies out for good. For more background, see:
  2908. # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
  2909. # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
  2910. mkdir_p='$(MKDIR_P)'
  2911. # We need awk for the "check" target (and possibly the TAP driver). The
  2912. # system "awk" is bad on some platforms.
  2913. # Always define AMTAR for backward compatibility. Yes, it's still used
  2914. # in the wild :-( We should find a proper way to deprecate it ...
  2915. AMTAR='$${TAR-tar}'
  2916. # We'll loop over all known methods to create a tar archive until one works.
  2917. _am_tools='gnutar pax cpio none'
  2918. am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
  2919. # POSIX will say in a future version that running "rm -f" with no argument
  2920. # is OK; and we want to be able to make that assumption in our Makefile
  2921. # recipes. So use an aggressive probe to check that the usage we want is
  2922. # actually supported "in the wild" to an acceptable degree.
  2923. # See automake bug#10828.
  2924. # To make any issue more visible, cause the running configure to be aborted
  2925. # by default if the 'rm' program in use doesn't match our expectations; the
  2926. # user can still override this though.
  2927. if rm -f && rm -fr && rm -rf; then : OK; else
  2928. cat >&2 <<'END'
  2929. Oops!
  2930. Your 'rm' program seems unable to run without file operands specified
  2931. on the command line, even when the '-f' option is present. This is contrary
  2932. to the behaviour of most rm programs out there, and not conforming with
  2933. the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
  2934. Please tell bug-automake@gnu.org about your system, including the value
  2935. of your $PATH and any error possibly output before this message. This
  2936. can help us improve future automake versions.
  2937. END
  2938. if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
  2939. echo 'Configuration will proceed anyway, since you have set the' >&2
  2940. echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
  2941. echo >&2
  2942. else
  2943. cat >&2 <<'END'
  2944. Aborting the configuration process, to ensure you take notice of the issue.
  2945. You can download and install GNU coreutils to get an 'rm' implementation
  2946. that behaves properly: <https://www.gnu.org/software/coreutils/>.
  2947. If you want to complete the configuration process using your problematic
  2948. 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
  2949. to "yes", and re-run configure.
  2950. END
  2951. as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
  2952. fi
  2953. fi
  2954. ac_config_headers="$ac_config_headers src/config.h"
  2955. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
  2956. $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
  2957. # Check whether --enable-maintainer-mode was given.
  2958. if test "${enable_maintainer_mode+set}" = set; then :
  2959. enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
  2960. else
  2961. USE_MAINTAINER_MODE=no
  2962. fi
  2963. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
  2964. $as_echo "$USE_MAINTAINER_MODE" >&6; }
  2965. if test $USE_MAINTAINER_MODE = yes; then
  2966. MAINTAINER_MODE_TRUE=
  2967. MAINTAINER_MODE_FALSE='#'
  2968. else
  2969. MAINTAINER_MODE_TRUE='#'
  2970. MAINTAINER_MODE_FALSE=
  2971. fi
  2972. MAINT=$MAINTAINER_MODE_TRUE
  2973. # Export the version information (for tc_version and friends)
  2974. TC_VERSION_MAJOR=`expr "$PACKAGE_VERSION" : '\([0-9]*\)'`
  2975. TC_VERSION_MINOR=`expr "$PACKAGE_VERSION" : '[0-9]*\.\([0-9]*\)'`
  2976. TC_VERSION_PATCH=`expr "$PACKAGE_VERSION" : '[0-9]*\.[0-9]*\(.*\)$'`
  2977. # Find git, defaulting to the 'missing' script so the user gets a nice
  2978. # message if git is missing, rather than a plain 'command not found'.
  2979. # Extract the first word of "git", so it can be a program name with args.
  2980. set dummy git; ac_word=$2
  2981. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2982. $as_echo_n "checking for $ac_word... " >&6; }
  2983. if ${ac_cv_path_GIT+:} false; then :
  2984. $as_echo_n "(cached) " >&6
  2985. else
  2986. case $GIT in
  2987. [\\/]* | ?:[\\/]*)
  2988. ac_cv_path_GIT="$GIT" # Let the user override the test with a path.
  2989. ;;
  2990. *)
  2991. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2992. for as_dir in $PATH
  2993. do
  2994. IFS=$as_save_IFS
  2995. test -z "$as_dir" && as_dir=.
  2996. for ac_exec_ext in '' $ac_executable_extensions; do
  2997. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2998. ac_cv_path_GIT="$as_dir/$ac_word$ac_exec_ext"
  2999. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3000. break 2
  3001. fi
  3002. done
  3003. done
  3004. IFS=$as_save_IFS
  3005. test -z "$ac_cv_path_GIT" && ac_cv_path_GIT="${am_missing_run}git"
  3006. ;;
  3007. esac
  3008. fi
  3009. GIT=$ac_cv_path_GIT
  3010. if test -n "$GIT"; then
  3011. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GIT" >&5
  3012. $as_echo "$GIT" >&6; }
  3013. else
  3014. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3015. $as_echo "no" >&6; }
  3016. fi
  3017. # Build the ChangeLog rules.
  3018. GENERATE_CHANGELOG_RULES='
  3019. # Generate ChangeLog
  3020. #
  3021. # Optional:
  3022. # - CHANGELOG_START: git commit ID or tag name to output changelogs from
  3023. # (exclusive). (Default: include all commits)
  3024. # - CHANGELOG_GIT_FLAGS: General flags to pass to git-log when generating the
  3025. # ChangeLog. (Default: various)
  3026. # - CHANGELOG_GIT_DIR: .git directory to use. (Default: $(top_srcdir)/.git)
  3027. # git-specific
  3028. CHANGELOG_GIT_FLAGS ?= --stat -M -C --name-status --no-color
  3029. CHANGELOG_GIT_DIR ?= $(top_srcdir)/.git
  3030. ifeq ($(CHANGELOG_START),)
  3031. CHANGELOG_GIT_RANGE =
  3032. else
  3033. CHANGELOG_GIT_RANGE = $(CHANGELOG_START)..
  3034. endif
  3035. # Generate a ChangeLog in $(top_distdir)
  3036. dist-ChangeLog:
  3037. $(AM_V_GEN)if $(GIT) \
  3038. --git-dir=$(CHANGELOG_GIT_DIR) --work-tree=$(top_srcdir) log \
  3039. $(CHANGELOG_GIT_FLAGS) $(CHANGELOG_GIT_RANGE) \
  3040. | fmt --split-only >.ChangeLog.tmp; \
  3041. then mv -f .ChangeLog.tmp "$(top_distdir)/ChangeLog"; \
  3042. else rm -f .ChangeLog.tmp; exit 1; fi
  3043. .PHONY: dist-ChangeLog
  3044. '
  3045. # The user can choose not to compile in the heap-profiler, the
  3046. # heap-checker, or the cpu-profiler. There's also the possibility
  3047. # for a 'fully minimal' compile, which leaves out the stacktrace
  3048. # code as well. By default, we include all of these that the
  3049. # target system supports.
  3050. default_enable_cpu_profiler=yes
  3051. default_enable_heap_profiler=yes
  3052. default_enable_heap_checker=yes
  3053. default_enable_debugalloc=yes
  3054. default_enable_minimal=no
  3055. default_tcmalloc_alignment=16
  3056. need_nanosleep=yes # Used later, to decide if to run ACX_NANOSLEEP
  3057. case "$host" in
  3058. *-mingw*) default_enable_minimal=yes; default_enable_debugalloc=no;
  3059. need_nanosleep=no;;
  3060. *-cygwin*) default_enable_heap_checker=no; default_enable_cpu_profiler=no;;
  3061. *-freebsd*) default_enable_heap_checker=no;;
  3062. *-darwin*) default_enable_heap_checker=no;;
  3063. esac
  3064. # Currently only backtrace works on s390 and OSX.
  3065. DEPDIR="${am__leading_dot}deps"
  3066. ac_config_commands="$ac_config_commands depfiles"
  3067. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
  3068. $as_echo_n "checking whether ${MAKE-make} supports the include directive... " >&6; }
  3069. cat > confinc.mk << 'END'
  3070. am__doit:
  3071. @echo this is the am__doit target >confinc.out
  3072. .PHONY: am__doit
  3073. END
  3074. am__include="#"
  3075. am__quote=
  3076. # BSD make does it like this.
  3077. echo '.include "confinc.mk" # ignored' > confmf.BSD
  3078. # Other make implementations (GNU, Solaris 10, AIX) do it like this.
  3079. echo 'include confinc.mk # ignored' > confmf.GNU
  3080. _am_result=no
  3081. for s in GNU BSD; do
  3082. { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
  3083. (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
  3084. ac_status=$?
  3085. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3086. (exit $ac_status); }
  3087. case $?:`cat confinc.out 2>/dev/null` in #(
  3088. '0:this is the am__doit target') :
  3089. case $s in #(
  3090. BSD) :
  3091. am__include='.include' am__quote='"' ;; #(
  3092. *) :
  3093. am__include='include' am__quote='' ;;
  3094. esac ;; #(
  3095. *) :
  3096. ;;
  3097. esac
  3098. if test "$am__include" != "#"; then
  3099. _am_result="yes ($s style)"
  3100. break
  3101. fi
  3102. done
  3103. rm -f confinc.* confmf.*
  3104. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
  3105. $as_echo "${_am_result}" >&6; }
  3106. # Check whether --enable-dependency-tracking was given.
  3107. if test "${enable_dependency_tracking+set}" = set; then :
  3108. enableval=$enable_dependency_tracking;
  3109. fi
  3110. if test "x$enable_dependency_tracking" != xno; then
  3111. am_depcomp="$ac_aux_dir/depcomp"
  3112. AMDEPBACKSLASH='\'
  3113. am__nodep='_no'
  3114. fi
  3115. if test "x$enable_dependency_tracking" != xno; then
  3116. AMDEP_TRUE=
  3117. AMDEP_FALSE='#'
  3118. else
  3119. AMDEP_TRUE='#'
  3120. AMDEP_FALSE=
  3121. fi
  3122. ac_ext=c
  3123. ac_cpp='$CPP $CPPFLAGS'
  3124. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3125. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3126. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3127. if test -n "$ac_tool_prefix"; then
  3128. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  3129. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  3130. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3131. $as_echo_n "checking for $ac_word... " >&6; }
  3132. if ${ac_cv_prog_CC+:} false; then :
  3133. $as_echo_n "(cached) " >&6
  3134. else
  3135. if test -n "$CC"; then
  3136. ac_cv_prog_CC="$CC" # Let the user override the test.
  3137. else
  3138. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3139. for as_dir in $PATH
  3140. do
  3141. IFS=$as_save_IFS
  3142. test -z "$as_dir" && as_dir=.
  3143. for ac_exec_ext in '' $ac_executable_extensions; do
  3144. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3145. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  3146. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3147. break 2
  3148. fi
  3149. done
  3150. done
  3151. IFS=$as_save_IFS
  3152. fi
  3153. fi
  3154. CC=$ac_cv_prog_CC
  3155. if test -n "$CC"; then
  3156. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3157. $as_echo "$CC" >&6; }
  3158. else
  3159. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3160. $as_echo "no" >&6; }
  3161. fi
  3162. fi
  3163. if test -z "$ac_cv_prog_CC"; then
  3164. ac_ct_CC=$CC
  3165. # Extract the first word of "gcc", so it can be a program name with args.
  3166. set dummy gcc; ac_word=$2
  3167. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3168. $as_echo_n "checking for $ac_word... " >&6; }
  3169. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  3170. $as_echo_n "(cached) " >&6
  3171. else
  3172. if test -n "$ac_ct_CC"; then
  3173. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3174. else
  3175. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3176. for as_dir in $PATH
  3177. do
  3178. IFS=$as_save_IFS
  3179. test -z "$as_dir" && as_dir=.
  3180. for ac_exec_ext in '' $ac_executable_extensions; do
  3181. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3182. ac_cv_prog_ac_ct_CC="gcc"
  3183. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3184. break 2
  3185. fi
  3186. done
  3187. done
  3188. IFS=$as_save_IFS
  3189. fi
  3190. fi
  3191. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3192. if test -n "$ac_ct_CC"; then
  3193. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  3194. $as_echo "$ac_ct_CC" >&6; }
  3195. else
  3196. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3197. $as_echo "no" >&6; }
  3198. fi
  3199. if test "x$ac_ct_CC" = x; then
  3200. CC=""
  3201. else
  3202. case $cross_compiling:$ac_tool_warned in
  3203. yes:)
  3204. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3205. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3206. ac_tool_warned=yes ;;
  3207. esac
  3208. CC=$ac_ct_CC
  3209. fi
  3210. else
  3211. CC="$ac_cv_prog_CC"
  3212. fi
  3213. if test -z "$CC"; then
  3214. if test -n "$ac_tool_prefix"; then
  3215. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  3216. set dummy ${ac_tool_prefix}cc; ac_word=$2
  3217. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3218. $as_echo_n "checking for $ac_word... " >&6; }
  3219. if ${ac_cv_prog_CC+:} false; then :
  3220. $as_echo_n "(cached) " >&6
  3221. else
  3222. if test -n "$CC"; then
  3223. ac_cv_prog_CC="$CC" # Let the user override the test.
  3224. else
  3225. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3226. for as_dir in $PATH
  3227. do
  3228. IFS=$as_save_IFS
  3229. test -z "$as_dir" && as_dir=.
  3230. for ac_exec_ext in '' $ac_executable_extensions; do
  3231. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3232. ac_cv_prog_CC="${ac_tool_prefix}cc"
  3233. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3234. break 2
  3235. fi
  3236. done
  3237. done
  3238. IFS=$as_save_IFS
  3239. fi
  3240. fi
  3241. CC=$ac_cv_prog_CC
  3242. if test -n "$CC"; then
  3243. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3244. $as_echo "$CC" >&6; }
  3245. else
  3246. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3247. $as_echo "no" >&6; }
  3248. fi
  3249. fi
  3250. fi
  3251. if test -z "$CC"; then
  3252. # Extract the first word of "cc", so it can be a program name with args.
  3253. set dummy cc; ac_word=$2
  3254. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3255. $as_echo_n "checking for $ac_word... " >&6; }
  3256. if ${ac_cv_prog_CC+:} false; then :
  3257. $as_echo_n "(cached) " >&6
  3258. else
  3259. if test -n "$CC"; then
  3260. ac_cv_prog_CC="$CC" # Let the user override the test.
  3261. else
  3262. ac_prog_rejected=no
  3263. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3264. for as_dir in $PATH
  3265. do
  3266. IFS=$as_save_IFS
  3267. test -z "$as_dir" && as_dir=.
  3268. for ac_exec_ext in '' $ac_executable_extensions; do
  3269. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3270. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  3271. ac_prog_rejected=yes
  3272. continue
  3273. fi
  3274. ac_cv_prog_CC="cc"
  3275. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3276. break 2
  3277. fi
  3278. done
  3279. done
  3280. IFS=$as_save_IFS
  3281. if test $ac_prog_rejected = yes; then
  3282. # We found a bogon in the path, so make sure we never use it.
  3283. set dummy $ac_cv_prog_CC
  3284. shift
  3285. if test $# != 0; then
  3286. # We chose a different compiler from the bogus one.
  3287. # However, it has the same basename, so the bogon will be chosen
  3288. # first if we set CC to just the basename; use the full file name.
  3289. shift
  3290. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  3291. fi
  3292. fi
  3293. fi
  3294. fi
  3295. CC=$ac_cv_prog_CC
  3296. if test -n "$CC"; then
  3297. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3298. $as_echo "$CC" >&6; }
  3299. else
  3300. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3301. $as_echo "no" >&6; }
  3302. fi
  3303. fi
  3304. if test -z "$CC"; then
  3305. if test -n "$ac_tool_prefix"; then
  3306. for ac_prog in cl.exe
  3307. do
  3308. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  3309. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  3310. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3311. $as_echo_n "checking for $ac_word... " >&6; }
  3312. if ${ac_cv_prog_CC+:} false; then :
  3313. $as_echo_n "(cached) " >&6
  3314. else
  3315. if test -n "$CC"; then
  3316. ac_cv_prog_CC="$CC" # Let the user override the test.
  3317. else
  3318. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3319. for as_dir in $PATH
  3320. do
  3321. IFS=$as_save_IFS
  3322. test -z "$as_dir" && as_dir=.
  3323. for ac_exec_ext in '' $ac_executable_extensions; do
  3324. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3325. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  3326. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3327. break 2
  3328. fi
  3329. done
  3330. done
  3331. IFS=$as_save_IFS
  3332. fi
  3333. fi
  3334. CC=$ac_cv_prog_CC
  3335. if test -n "$CC"; then
  3336. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3337. $as_echo "$CC" >&6; }
  3338. else
  3339. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3340. $as_echo "no" >&6; }
  3341. fi
  3342. test -n "$CC" && break
  3343. done
  3344. fi
  3345. if test -z "$CC"; then
  3346. ac_ct_CC=$CC
  3347. for ac_prog in cl.exe
  3348. do
  3349. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3350. set dummy $ac_prog; ac_word=$2
  3351. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3352. $as_echo_n "checking for $ac_word... " >&6; }
  3353. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  3354. $as_echo_n "(cached) " >&6
  3355. else
  3356. if test -n "$ac_ct_CC"; then
  3357. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3358. else
  3359. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3360. for as_dir in $PATH
  3361. do
  3362. IFS=$as_save_IFS
  3363. test -z "$as_dir" && as_dir=.
  3364. for ac_exec_ext in '' $ac_executable_extensions; do
  3365. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3366. ac_cv_prog_ac_ct_CC="$ac_prog"
  3367. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3368. break 2
  3369. fi
  3370. done
  3371. done
  3372. IFS=$as_save_IFS
  3373. fi
  3374. fi
  3375. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3376. if test -n "$ac_ct_CC"; then
  3377. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  3378. $as_echo "$ac_ct_CC" >&6; }
  3379. else
  3380. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3381. $as_echo "no" >&6; }
  3382. fi
  3383. test -n "$ac_ct_CC" && break
  3384. done
  3385. if test "x$ac_ct_CC" = x; then
  3386. CC=""
  3387. else
  3388. case $cross_compiling:$ac_tool_warned in
  3389. yes:)
  3390. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3391. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3392. ac_tool_warned=yes ;;
  3393. esac
  3394. CC=$ac_ct_CC
  3395. fi
  3396. fi
  3397. fi
  3398. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3399. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3400. as_fn_error $? "no acceptable C compiler found in \$PATH
  3401. See \`config.log' for more details" "$LINENO" 5; }
  3402. # Provide some information about the compiler.
  3403. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  3404. set X $ac_compile
  3405. ac_compiler=$2
  3406. for ac_option in --version -v -V -qversion; do
  3407. { { ac_try="$ac_compiler $ac_option >&5"
  3408. case "(($ac_try" in
  3409. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3410. *) ac_try_echo=$ac_try;;
  3411. esac
  3412. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3413. $as_echo "$ac_try_echo"; } >&5
  3414. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  3415. ac_status=$?
  3416. if test -s conftest.err; then
  3417. sed '10a\
  3418. ... rest of stderr output deleted ...
  3419. 10q' conftest.err >conftest.er1
  3420. cat conftest.er1 >&5
  3421. fi
  3422. rm -f conftest.er1 conftest.err
  3423. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3424. test $ac_status = 0; }
  3425. done
  3426. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3427. /* end confdefs.h. */
  3428. int
  3429. main ()
  3430. {
  3431. ;
  3432. return 0;
  3433. }
  3434. _ACEOF
  3435. ac_clean_files_save=$ac_clean_files
  3436. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  3437. # Try to create an executable without -o first, disregard a.out.
  3438. # It will help us diagnose broken compilers, and finding out an intuition
  3439. # of exeext.
  3440. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
  3441. $as_echo_n "checking whether the C compiler works... " >&6; }
  3442. ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  3443. # The possible output files:
  3444. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  3445. ac_rmfiles=
  3446. for ac_file in $ac_files
  3447. do
  3448. case $ac_file in
  3449. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3450. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  3451. esac
  3452. done
  3453. rm -f $ac_rmfiles
  3454. if { { ac_try="$ac_link_default"
  3455. case "(($ac_try" in
  3456. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3457. *) ac_try_echo=$ac_try;;
  3458. esac
  3459. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3460. $as_echo "$ac_try_echo"; } >&5
  3461. (eval "$ac_link_default") 2>&5
  3462. ac_status=$?
  3463. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3464. test $ac_status = 0; }; then :
  3465. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  3466. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  3467. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  3468. # so that the user can short-circuit this test for compilers unknown to
  3469. # Autoconf.
  3470. for ac_file in $ac_files ''
  3471. do
  3472. test -f "$ac_file" || continue
  3473. case $ac_file in
  3474. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  3475. ;;
  3476. [ab].out )
  3477. # We found the default executable, but exeext='' is most
  3478. # certainly right.
  3479. break;;
  3480. *.* )
  3481. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  3482. then :; else
  3483. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3484. fi
  3485. # We set ac_cv_exeext here because the later test for it is not
  3486. # safe: cross compilers may not add the suffix if given an `-o'
  3487. # argument, so we may need to know it at that point already.
  3488. # Even if this section looks crufty: it has the advantage of
  3489. # actually working.
  3490. break;;
  3491. * )
  3492. break;;
  3493. esac
  3494. done
  3495. test "$ac_cv_exeext" = no && ac_cv_exeext=
  3496. else
  3497. ac_file=''
  3498. fi
  3499. if test -z "$ac_file"; then :
  3500. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3501. $as_echo "no" >&6; }
  3502. $as_echo "$as_me: failed program was:" >&5
  3503. sed 's/^/| /' conftest.$ac_ext >&5
  3504. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3505. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3506. as_fn_error 77 "C compiler cannot create executables
  3507. See \`config.log' for more details" "$LINENO" 5; }
  3508. else
  3509. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3510. $as_echo "yes" >&6; }
  3511. fi
  3512. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
  3513. $as_echo_n "checking for C compiler default output file name... " >&6; }
  3514. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  3515. $as_echo "$ac_file" >&6; }
  3516. ac_exeext=$ac_cv_exeext
  3517. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  3518. ac_clean_files=$ac_clean_files_save
  3519. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  3520. $as_echo_n "checking for suffix of executables... " >&6; }
  3521. if { { ac_try="$ac_link"
  3522. case "(($ac_try" in
  3523. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3524. *) ac_try_echo=$ac_try;;
  3525. esac
  3526. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3527. $as_echo "$ac_try_echo"; } >&5
  3528. (eval "$ac_link") 2>&5
  3529. ac_status=$?
  3530. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3531. test $ac_status = 0; }; then :
  3532. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  3533. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  3534. # work properly (i.e., refer to `conftest.exe'), while it won't with
  3535. # `rm'.
  3536. for ac_file in conftest.exe conftest conftest.*; do
  3537. test -f "$ac_file" || continue
  3538. case $ac_file in
  3539. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3540. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3541. break;;
  3542. * ) break;;
  3543. esac
  3544. done
  3545. else
  3546. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3547. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3548. as_fn_error $? "cannot compute suffix of executables: cannot compile and link
  3549. See \`config.log' for more details" "$LINENO" 5; }
  3550. fi
  3551. rm -f conftest conftest$ac_cv_exeext
  3552. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  3553. $as_echo "$ac_cv_exeext" >&6; }
  3554. rm -f conftest.$ac_ext
  3555. EXEEXT=$ac_cv_exeext
  3556. ac_exeext=$EXEEXT
  3557. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3558. /* end confdefs.h. */
  3559. #include <stdio.h>
  3560. int
  3561. main ()
  3562. {
  3563. FILE *f = fopen ("conftest.out", "w");
  3564. return ferror (f) || fclose (f) != 0;
  3565. ;
  3566. return 0;
  3567. }
  3568. _ACEOF
  3569. ac_clean_files="$ac_clean_files conftest.out"
  3570. # Check that the compiler produces executables we can run. If not, either
  3571. # the compiler is broken, or we cross compile.
  3572. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  3573. $as_echo_n "checking whether we are cross compiling... " >&6; }
  3574. if test "$cross_compiling" != yes; then
  3575. { { ac_try="$ac_link"
  3576. case "(($ac_try" in
  3577. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3578. *) ac_try_echo=$ac_try;;
  3579. esac
  3580. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3581. $as_echo "$ac_try_echo"; } >&5
  3582. (eval "$ac_link") 2>&5
  3583. ac_status=$?
  3584. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3585. test $ac_status = 0; }
  3586. if { ac_try='./conftest$ac_cv_exeext'
  3587. { { case "(($ac_try" in
  3588. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3589. *) ac_try_echo=$ac_try;;
  3590. esac
  3591. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3592. $as_echo "$ac_try_echo"; } >&5
  3593. (eval "$ac_try") 2>&5
  3594. ac_status=$?
  3595. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3596. test $ac_status = 0; }; }; then
  3597. cross_compiling=no
  3598. else
  3599. if test "$cross_compiling" = maybe; then
  3600. cross_compiling=yes
  3601. else
  3602. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3603. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3604. as_fn_error $? "cannot run C compiled programs.
  3605. If you meant to cross compile, use \`--host'.
  3606. See \`config.log' for more details" "$LINENO" 5; }
  3607. fi
  3608. fi
  3609. fi
  3610. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  3611. $as_echo "$cross_compiling" >&6; }
  3612. rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
  3613. ac_clean_files=$ac_clean_files_save
  3614. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  3615. $as_echo_n "checking for suffix of object files... " >&6; }
  3616. if ${ac_cv_objext+:} false; then :
  3617. $as_echo_n "(cached) " >&6
  3618. else
  3619. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3620. /* end confdefs.h. */
  3621. int
  3622. main ()
  3623. {
  3624. ;
  3625. return 0;
  3626. }
  3627. _ACEOF
  3628. rm -f conftest.o conftest.obj
  3629. if { { ac_try="$ac_compile"
  3630. case "(($ac_try" in
  3631. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3632. *) ac_try_echo=$ac_try;;
  3633. esac
  3634. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3635. $as_echo "$ac_try_echo"; } >&5
  3636. (eval "$ac_compile") 2>&5
  3637. ac_status=$?
  3638. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3639. test $ac_status = 0; }; then :
  3640. for ac_file in conftest.o conftest.obj conftest.*; do
  3641. test -f "$ac_file" || continue;
  3642. case $ac_file in
  3643. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  3644. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  3645. break;;
  3646. esac
  3647. done
  3648. else
  3649. $as_echo "$as_me: failed program was:" >&5
  3650. sed 's/^/| /' conftest.$ac_ext >&5
  3651. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3652. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3653. as_fn_error $? "cannot compute suffix of object files: cannot compile
  3654. See \`config.log' for more details" "$LINENO" 5; }
  3655. fi
  3656. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  3657. fi
  3658. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  3659. $as_echo "$ac_cv_objext" >&6; }
  3660. OBJEXT=$ac_cv_objext
  3661. ac_objext=$OBJEXT
  3662. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  3663. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  3664. if ${ac_cv_c_compiler_gnu+:} false; then :
  3665. $as_echo_n "(cached) " >&6
  3666. else
  3667. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3668. /* end confdefs.h. */
  3669. int
  3670. main ()
  3671. {
  3672. #ifndef __GNUC__
  3673. choke me
  3674. #endif
  3675. ;
  3676. return 0;
  3677. }
  3678. _ACEOF
  3679. if ac_fn_c_try_compile "$LINENO"; then :
  3680. ac_compiler_gnu=yes
  3681. else
  3682. ac_compiler_gnu=no
  3683. fi
  3684. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3685. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  3686. fi
  3687. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  3688. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  3689. if test $ac_compiler_gnu = yes; then
  3690. GCC=yes
  3691. else
  3692. GCC=
  3693. fi
  3694. ac_test_CFLAGS=${CFLAGS+set}
  3695. ac_save_CFLAGS=$CFLAGS
  3696. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  3697. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  3698. if ${ac_cv_prog_cc_g+:} false; then :
  3699. $as_echo_n "(cached) " >&6
  3700. else
  3701. ac_save_c_werror_flag=$ac_c_werror_flag
  3702. ac_c_werror_flag=yes
  3703. ac_cv_prog_cc_g=no
  3704. CFLAGS="-g"
  3705. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3706. /* end confdefs.h. */
  3707. int
  3708. main ()
  3709. {
  3710. ;
  3711. return 0;
  3712. }
  3713. _ACEOF
  3714. if ac_fn_c_try_compile "$LINENO"; then :
  3715. ac_cv_prog_cc_g=yes
  3716. else
  3717. CFLAGS=""
  3718. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3719. /* end confdefs.h. */
  3720. int
  3721. main ()
  3722. {
  3723. ;
  3724. return 0;
  3725. }
  3726. _ACEOF
  3727. if ac_fn_c_try_compile "$LINENO"; then :
  3728. else
  3729. ac_c_werror_flag=$ac_save_c_werror_flag
  3730. CFLAGS="-g"
  3731. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3732. /* end confdefs.h. */
  3733. int
  3734. main ()
  3735. {
  3736. ;
  3737. return 0;
  3738. }
  3739. _ACEOF
  3740. if ac_fn_c_try_compile "$LINENO"; then :
  3741. ac_cv_prog_cc_g=yes
  3742. fi
  3743. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3744. fi
  3745. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3746. fi
  3747. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3748. ac_c_werror_flag=$ac_save_c_werror_flag
  3749. fi
  3750. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  3751. $as_echo "$ac_cv_prog_cc_g" >&6; }
  3752. if test "$ac_test_CFLAGS" = set; then
  3753. CFLAGS=$ac_save_CFLAGS
  3754. elif test $ac_cv_prog_cc_g = yes; then
  3755. if test "$GCC" = yes; then
  3756. CFLAGS="-g -O2"
  3757. else
  3758. CFLAGS="-g"
  3759. fi
  3760. else
  3761. if test "$GCC" = yes; then
  3762. CFLAGS="-O2"
  3763. else
  3764. CFLAGS=
  3765. fi
  3766. fi
  3767. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  3768. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  3769. if ${ac_cv_prog_cc_c89+:} false; then :
  3770. $as_echo_n "(cached) " >&6
  3771. else
  3772. ac_cv_prog_cc_c89=no
  3773. ac_save_CC=$CC
  3774. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3775. /* end confdefs.h. */
  3776. #include <stdarg.h>
  3777. #include <stdio.h>
  3778. struct stat;
  3779. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  3780. struct buf { int x; };
  3781. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  3782. static char *e (p, i)
  3783. char **p;
  3784. int i;
  3785. {
  3786. return p[i];
  3787. }
  3788. static char *f (char * (*g) (char **, int), char **p, ...)
  3789. {
  3790. char *s;
  3791. va_list v;
  3792. va_start (v,p);
  3793. s = g (p, va_arg (v,int));
  3794. va_end (v);
  3795. return s;
  3796. }
  3797. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  3798. function prototypes and stuff, but not '\xHH' hex character constants.
  3799. These don't provoke an error unfortunately, instead are silently treated
  3800. as 'x'. The following induces an error, until -std is added to get
  3801. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  3802. array size at least. It's necessary to write '\x00'==0 to get something
  3803. that's true only with -std. */
  3804. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  3805. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  3806. inside strings and character constants. */
  3807. #define FOO(x) 'x'
  3808. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  3809. int test (int i, double x);
  3810. struct s1 {int (*f) (int a);};
  3811. struct s2 {int (*f) (double a);};
  3812. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  3813. int argc;
  3814. char **argv;
  3815. int
  3816. main ()
  3817. {
  3818. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  3819. ;
  3820. return 0;
  3821. }
  3822. _ACEOF
  3823. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  3824. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  3825. do
  3826. CC="$ac_save_CC $ac_arg"
  3827. if ac_fn_c_try_compile "$LINENO"; then :
  3828. ac_cv_prog_cc_c89=$ac_arg
  3829. fi
  3830. rm -f core conftest.err conftest.$ac_objext
  3831. test "x$ac_cv_prog_cc_c89" != "xno" && break
  3832. done
  3833. rm -f conftest.$ac_ext
  3834. CC=$ac_save_CC
  3835. fi
  3836. # AC_CACHE_VAL
  3837. case "x$ac_cv_prog_cc_c89" in
  3838. x)
  3839. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  3840. $as_echo "none needed" >&6; } ;;
  3841. xno)
  3842. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  3843. $as_echo "unsupported" >&6; } ;;
  3844. *)
  3845. CC="$CC $ac_cv_prog_cc_c89"
  3846. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  3847. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  3848. esac
  3849. if test "x$ac_cv_prog_cc_c89" != xno; then :
  3850. fi
  3851. ac_ext=c
  3852. ac_cpp='$CPP $CPPFLAGS'
  3853. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3854. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3855. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3856. ac_ext=c
  3857. ac_cpp='$CPP $CPPFLAGS'
  3858. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3859. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3860. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3861. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
  3862. $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
  3863. if ${am_cv_prog_cc_c_o+:} false; then :
  3864. $as_echo_n "(cached) " >&6
  3865. else
  3866. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3867. /* end confdefs.h. */
  3868. int
  3869. main ()
  3870. {
  3871. ;
  3872. return 0;
  3873. }
  3874. _ACEOF
  3875. # Make sure it works both with $CC and with simple cc.
  3876. # Following AC_PROG_CC_C_O, we do the test twice because some
  3877. # compilers refuse to overwrite an existing .o file with -o,
  3878. # though they will create one.
  3879. am_cv_prog_cc_c_o=yes
  3880. for am_i in 1 2; do
  3881. if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
  3882. ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
  3883. ac_status=$?
  3884. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3885. (exit $ac_status); } \
  3886. && test -f conftest2.$ac_objext; then
  3887. : OK
  3888. else
  3889. am_cv_prog_cc_c_o=no
  3890. break
  3891. fi
  3892. done
  3893. rm -f core conftest*
  3894. unset am_i
  3895. fi
  3896. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
  3897. $as_echo "$am_cv_prog_cc_c_o" >&6; }
  3898. if test "$am_cv_prog_cc_c_o" != yes; then
  3899. # Losing compiler, so override with the script.
  3900. # FIXME: It is wrong to rewrite CC.
  3901. # But if we don't then we get into trouble of one sort or another.
  3902. # A longer-term fix would be to have automake use am__CC in this case,
  3903. # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
  3904. CC="$am_aux_dir/compile $CC"
  3905. fi
  3906. ac_ext=c
  3907. ac_cpp='$CPP $CPPFLAGS'
  3908. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3909. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3910. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3911. depcc="$CC" am_compiler_list=
  3912. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  3913. $as_echo_n "checking dependency style of $depcc... " >&6; }
  3914. if ${am_cv_CC_dependencies_compiler_type+:} false; then :
  3915. $as_echo_n "(cached) " >&6
  3916. else
  3917. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  3918. # We make a subdir and do the tests there. Otherwise we can end up
  3919. # making bogus files that we don't know about and never remove. For
  3920. # instance it was reported that on HP-UX the gcc test will end up
  3921. # making a dummy file named 'D' -- because '-MD' means "put the output
  3922. # in D".
  3923. rm -rf conftest.dir
  3924. mkdir conftest.dir
  3925. # Copy depcomp to subdir because otherwise we won't find it if we're
  3926. # using a relative directory.
  3927. cp "$am_depcomp" conftest.dir
  3928. cd conftest.dir
  3929. # We will build objects and dependencies in a subdirectory because
  3930. # it helps to detect inapplicable dependency modes. For instance
  3931. # both Tru64's cc and ICC support -MD to output dependencies as a
  3932. # side effect of compilation, but ICC will put the dependencies in
  3933. # the current directory while Tru64 will put them in the object
  3934. # directory.
  3935. mkdir sub
  3936. am_cv_CC_dependencies_compiler_type=none
  3937. if test "$am_compiler_list" = ""; then
  3938. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  3939. fi
  3940. am__universal=false
  3941. case " $depcc " in #(
  3942. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  3943. esac
  3944. for depmode in $am_compiler_list; do
  3945. # Setup a source with many dependencies, because some compilers
  3946. # like to wrap large dependency lists on column 80 (with \), and
  3947. # we should not choose a depcomp mode which is confused by this.
  3948. #
  3949. # We need to recreate these files for each test, as the compiler may
  3950. # overwrite some of them when testing with obscure command lines.
  3951. # This happens at least with the AIX C compiler.
  3952. : > sub/conftest.c
  3953. for i in 1 2 3 4 5 6; do
  3954. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  3955. # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
  3956. # Solaris 10 /bin/sh.
  3957. echo '/* dummy */' > sub/conftst$i.h
  3958. done
  3959. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  3960. # We check with '-c' and '-o' for the sake of the "dashmstdout"
  3961. # mode. It turns out that the SunPro C++ compiler does not properly
  3962. # handle '-M -o', and we need to detect this. Also, some Intel
  3963. # versions had trouble with output in subdirs.
  3964. am__obj=sub/conftest.${OBJEXT-o}
  3965. am__minus_obj="-o $am__obj"
  3966. case $depmode in
  3967. gcc)
  3968. # This depmode causes a compiler race in universal mode.
  3969. test "$am__universal" = false || continue
  3970. ;;
  3971. nosideeffect)
  3972. # After this tag, mechanisms are not by side-effect, so they'll
  3973. # only be used when explicitly requested.
  3974. if test "x$enable_dependency_tracking" = xyes; then
  3975. continue
  3976. else
  3977. break
  3978. fi
  3979. ;;
  3980. msvc7 | msvc7msys | msvisualcpp | msvcmsys)
  3981. # This compiler won't grok '-c -o', but also, the minuso test has
  3982. # not run yet. These depmodes are late enough in the game, and
  3983. # so weak that their functioning should not be impacted.
  3984. am__obj=conftest.${OBJEXT-o}
  3985. am__minus_obj=
  3986. ;;
  3987. none) break ;;
  3988. esac
  3989. if depmode=$depmode \
  3990. source=sub/conftest.c object=$am__obj \
  3991. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  3992. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  3993. >/dev/null 2>conftest.err &&
  3994. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  3995. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  3996. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  3997. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  3998. # icc doesn't choke on unknown options, it will just issue warnings
  3999. # or remarks (even with -Werror). So we grep stderr for any message
  4000. # that says an option was ignored or not supported.
  4001. # When given -MP, icc 7.0 and 7.1 complain thusly:
  4002. # icc: Command line warning: ignoring option '-M'; no argument required
  4003. # The diagnosis changed in icc 8.0:
  4004. # icc: Command line remark: option '-MP' not supported
  4005. if (grep 'ignoring option' conftest.err ||
  4006. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  4007. am_cv_CC_dependencies_compiler_type=$depmode
  4008. break
  4009. fi
  4010. fi
  4011. done
  4012. cd ..
  4013. rm -rf conftest.dir
  4014. else
  4015. am_cv_CC_dependencies_compiler_type=none
  4016. fi
  4017. fi
  4018. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
  4019. $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
  4020. CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  4021. if
  4022. test "x$enable_dependency_tracking" != xno \
  4023. && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  4024. am__fastdepCC_TRUE=
  4025. am__fastdepCC_FALSE='#'
  4026. else
  4027. am__fastdepCC_TRUE='#'
  4028. am__fastdepCC_FALSE=
  4029. fi
  4030. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4031. /* end confdefs.h. */
  4032. int
  4033. main ()
  4034. {
  4035. #if !defined(__s390__) && !defined(__APPLE__)
  4036. #error not s390 and not osx
  4037. #endif
  4038. return 1
  4039. ;
  4040. return 0;
  4041. }
  4042. _ACEOF
  4043. if ac_fn_c_try_compile "$LINENO"; then :
  4044. default_enable_libunwind=no
  4045. default_enable_backtrace=yes
  4046. else
  4047. default_enable_libunwind=yes
  4048. default_enable_backtrace=no
  4049. fi
  4050. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4051. # Disable libunwind linking on ppc64 by default.
  4052. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4053. /* end confdefs.h. */
  4054. int
  4055. main ()
  4056. {
  4057. return __PPC64__
  4058. ;
  4059. return 0;
  4060. }
  4061. _ACEOF
  4062. if ac_fn_c_try_compile "$LINENO"; then :
  4063. default_enable_libunwind=no
  4064. default_tcmalloc_pagesize=64
  4065. else
  4066. default_enable_libunwind=yes
  4067. default_tcmalloc_pagesize=8
  4068. fi
  4069. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4070. # Check whether --enable-cpu-profiler was given.
  4071. if test "${enable_cpu_profiler+set}" = set; then :
  4072. enableval=$enable_cpu_profiler;
  4073. else
  4074. enable_cpu_profiler="$default_enable_cpu_profiler"
  4075. fi
  4076. # Check whether --enable-heap-profiler was given.
  4077. if test "${enable_heap_profiler+set}" = set; then :
  4078. enableval=$enable_heap_profiler;
  4079. else
  4080. enable_heap_profiler="$default_enable_heap_profiler"
  4081. fi
  4082. # Check whether --enable-heap-checker was given.
  4083. if test "${enable_heap_checker+set}" = set; then :
  4084. enableval=$enable_heap_checker;
  4085. else
  4086. enable_heap_checker="$default_enable_heap_checker"
  4087. fi
  4088. # Check whether --enable-debugalloc was given.
  4089. if test "${enable_debugalloc+set}" = set; then :
  4090. enableval=$enable_debugalloc;
  4091. else
  4092. enable_debugalloc="$default_enable_debugalloc"
  4093. fi
  4094. # Check whether --enable-minimal was given.
  4095. if test "${enable_minimal+set}" = set; then :
  4096. enableval=$enable_minimal;
  4097. else
  4098. enable_minimal="$default_enable_minimal"
  4099. fi
  4100. if test "$enable_minimal" = yes; then
  4101. enable_cpu_profiler=no
  4102. enable_heap_profiler=no
  4103. enable_heap_checker=no
  4104. fi
  4105. # Check whether --enable-stacktrace-via-backtrace was given.
  4106. if test "${enable_stacktrace_via_backtrace+set}" = set; then :
  4107. enableval=$enable_stacktrace_via_backtrace; enable_backtrace=yes
  4108. else
  4109. enable_backtrace="$default_enable_backtrace"
  4110. fi
  4111. # Check whether --enable-libunwind was given.
  4112. if test "${enable_libunwind+set}" = set; then :
  4113. enableval=$enable_libunwind;
  4114. else
  4115. enable_libunwind="$default_enable_libunwind"
  4116. fi
  4117. # Check whether --with-tcmalloc-pagesize was given.
  4118. if test "${with_tcmalloc_pagesize+set}" = set; then :
  4119. withval=$with_tcmalloc_pagesize;
  4120. else
  4121. with_tcmalloc_pagesize=$default_tcmalloc_pagesize
  4122. fi
  4123. # Check whether --with-tcmalloc-alignment was given.
  4124. if test "${with_tcmalloc_alignment+set}" = set; then :
  4125. withval=$with_tcmalloc_alignment;
  4126. else
  4127. with_tcmalloc_alignment=$default_tcmalloc_alignment
  4128. fi
  4129. case "$with_tcmalloc_pagesize" in
  4130. 4)
  4131. $as_echo "#define TCMALLOC_PAGE_SIZE_SHIFT 12" >>confdefs.h
  4132. ;;
  4133. 8)
  4134. #Default tcmalloc page size.
  4135. ;;
  4136. 16)
  4137. $as_echo "#define TCMALLOC_PAGE_SIZE_SHIFT 14" >>confdefs.h
  4138. ;;
  4139. 32)
  4140. $as_echo "#define TCMALLOC_PAGE_SIZE_SHIFT 15" >>confdefs.h
  4141. ;;
  4142. 64)
  4143. $as_echo "#define TCMALLOC_PAGE_SIZE_SHIFT 16" >>confdefs.h
  4144. ;;
  4145. 128)
  4146. $as_echo "#define TCMALLOC_PAGE_SIZE_SHIFT 17" >>confdefs.h
  4147. ;;
  4148. 256)
  4149. $as_echo "#define TCMALLOC_PAGE_SIZE_SHIFT 18" >>confdefs.h
  4150. ;;
  4151. *)
  4152. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ${with_tcmalloc_pagesize}K size not supported, using default tcmalloc page size." >&5
  4153. $as_echo "$as_me: WARNING: ${with_tcmalloc_pagesize}K size not supported, using default tcmalloc page size." >&2;}
  4154. esac
  4155. case "$with_tcmalloc_alignment" in
  4156. 8)
  4157. $as_echo "#define TCMALLOC_ALIGN_8BYTES 1" >>confdefs.h
  4158. ;;
  4159. 16)
  4160. #Default tcmalloc allocation alignment.
  4161. ;;
  4162. *)
  4163. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ${with_tcmalloc_alignment} bytes not supported, using default tcmalloc allocation alignment." >&5
  4164. $as_echo "$as_me: WARNING: ${with_tcmalloc_alignment} bytes not supported, using default tcmalloc allocation alignment." >&2;}
  4165. esac
  4166. # Checks for programs.
  4167. ac_ext=cpp
  4168. ac_cpp='$CXXCPP $CPPFLAGS'
  4169. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4170. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4171. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  4172. if test -z "$CXX"; then
  4173. if test -n "$CCC"; then
  4174. CXX=$CCC
  4175. else
  4176. if test -n "$ac_tool_prefix"; then
  4177. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  4178. do
  4179. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  4180. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  4181. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4182. $as_echo_n "checking for $ac_word... " >&6; }
  4183. if ${ac_cv_prog_CXX+:} false; then :
  4184. $as_echo_n "(cached) " >&6
  4185. else
  4186. if test -n "$CXX"; then
  4187. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  4188. else
  4189. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4190. for as_dir in $PATH
  4191. do
  4192. IFS=$as_save_IFS
  4193. test -z "$as_dir" && as_dir=.
  4194. for ac_exec_ext in '' $ac_executable_extensions; do
  4195. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4196. ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  4197. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4198. break 2
  4199. fi
  4200. done
  4201. done
  4202. IFS=$as_save_IFS
  4203. fi
  4204. fi
  4205. CXX=$ac_cv_prog_CXX
  4206. if test -n "$CXX"; then
  4207. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
  4208. $as_echo "$CXX" >&6; }
  4209. else
  4210. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4211. $as_echo "no" >&6; }
  4212. fi
  4213. test -n "$CXX" && break
  4214. done
  4215. fi
  4216. if test -z "$CXX"; then
  4217. ac_ct_CXX=$CXX
  4218. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  4219. do
  4220. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4221. set dummy $ac_prog; ac_word=$2
  4222. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4223. $as_echo_n "checking for $ac_word... " >&6; }
  4224. if ${ac_cv_prog_ac_ct_CXX+:} false; then :
  4225. $as_echo_n "(cached) " >&6
  4226. else
  4227. if test -n "$ac_ct_CXX"; then
  4228. ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  4229. else
  4230. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4231. for as_dir in $PATH
  4232. do
  4233. IFS=$as_save_IFS
  4234. test -z "$as_dir" && as_dir=.
  4235. for ac_exec_ext in '' $ac_executable_extensions; do
  4236. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4237. ac_cv_prog_ac_ct_CXX="$ac_prog"
  4238. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4239. break 2
  4240. fi
  4241. done
  4242. done
  4243. IFS=$as_save_IFS
  4244. fi
  4245. fi
  4246. ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  4247. if test -n "$ac_ct_CXX"; then
  4248. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
  4249. $as_echo "$ac_ct_CXX" >&6; }
  4250. else
  4251. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4252. $as_echo "no" >&6; }
  4253. fi
  4254. test -n "$ac_ct_CXX" && break
  4255. done
  4256. if test "x$ac_ct_CXX" = x; then
  4257. CXX="g++"
  4258. else
  4259. case $cross_compiling:$ac_tool_warned in
  4260. yes:)
  4261. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4262. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4263. ac_tool_warned=yes ;;
  4264. esac
  4265. CXX=$ac_ct_CXX
  4266. fi
  4267. fi
  4268. fi
  4269. fi
  4270. # Provide some information about the compiler.
  4271. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
  4272. set X $ac_compile
  4273. ac_compiler=$2
  4274. for ac_option in --version -v -V -qversion; do
  4275. { { ac_try="$ac_compiler $ac_option >&5"
  4276. case "(($ac_try" in
  4277. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4278. *) ac_try_echo=$ac_try;;
  4279. esac
  4280. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  4281. $as_echo "$ac_try_echo"; } >&5
  4282. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  4283. ac_status=$?
  4284. if test -s conftest.err; then
  4285. sed '10a\
  4286. ... rest of stderr output deleted ...
  4287. 10q' conftest.err >conftest.er1
  4288. cat conftest.er1 >&5
  4289. fi
  4290. rm -f conftest.er1 conftest.err
  4291. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4292. test $ac_status = 0; }
  4293. done
  4294. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
  4295. $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
  4296. if ${ac_cv_cxx_compiler_gnu+:} false; then :
  4297. $as_echo_n "(cached) " >&6
  4298. else
  4299. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4300. /* end confdefs.h. */
  4301. int
  4302. main ()
  4303. {
  4304. #ifndef __GNUC__
  4305. choke me
  4306. #endif
  4307. ;
  4308. return 0;
  4309. }
  4310. _ACEOF
  4311. if ac_fn_cxx_try_compile "$LINENO"; then :
  4312. ac_compiler_gnu=yes
  4313. else
  4314. ac_compiler_gnu=no
  4315. fi
  4316. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4317. ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  4318. fi
  4319. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
  4320. $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
  4321. if test $ac_compiler_gnu = yes; then
  4322. GXX=yes
  4323. else
  4324. GXX=
  4325. fi
  4326. ac_test_CXXFLAGS=${CXXFLAGS+set}
  4327. ac_save_CXXFLAGS=$CXXFLAGS
  4328. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
  4329. $as_echo_n "checking whether $CXX accepts -g... " >&6; }
  4330. if ${ac_cv_prog_cxx_g+:} false; then :
  4331. $as_echo_n "(cached) " >&6
  4332. else
  4333. ac_save_cxx_werror_flag=$ac_cxx_werror_flag
  4334. ac_cxx_werror_flag=yes
  4335. ac_cv_prog_cxx_g=no
  4336. CXXFLAGS="-g"
  4337. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4338. /* end confdefs.h. */
  4339. int
  4340. main ()
  4341. {
  4342. ;
  4343. return 0;
  4344. }
  4345. _ACEOF
  4346. if ac_fn_cxx_try_compile "$LINENO"; then :
  4347. ac_cv_prog_cxx_g=yes
  4348. else
  4349. CXXFLAGS=""
  4350. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4351. /* end confdefs.h. */
  4352. int
  4353. main ()
  4354. {
  4355. ;
  4356. return 0;
  4357. }
  4358. _ACEOF
  4359. if ac_fn_cxx_try_compile "$LINENO"; then :
  4360. else
  4361. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  4362. CXXFLAGS="-g"
  4363. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4364. /* end confdefs.h. */
  4365. int
  4366. main ()
  4367. {
  4368. ;
  4369. return 0;
  4370. }
  4371. _ACEOF
  4372. if ac_fn_cxx_try_compile "$LINENO"; then :
  4373. ac_cv_prog_cxx_g=yes
  4374. fi
  4375. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4376. fi
  4377. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4378. fi
  4379. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4380. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  4381. fi
  4382. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
  4383. $as_echo "$ac_cv_prog_cxx_g" >&6; }
  4384. if test "$ac_test_CXXFLAGS" = set; then
  4385. CXXFLAGS=$ac_save_CXXFLAGS
  4386. elif test $ac_cv_prog_cxx_g = yes; then
  4387. if test "$GXX" = yes; then
  4388. CXXFLAGS="-g -O2"
  4389. else
  4390. CXXFLAGS="-g"
  4391. fi
  4392. else
  4393. if test "$GXX" = yes; then
  4394. CXXFLAGS="-O2"
  4395. else
  4396. CXXFLAGS=
  4397. fi
  4398. fi
  4399. ac_ext=c
  4400. ac_cpp='$CPP $CPPFLAGS'
  4401. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4402. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4403. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4404. depcc="$CXX" am_compiler_list=
  4405. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  4406. $as_echo_n "checking dependency style of $depcc... " >&6; }
  4407. if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
  4408. $as_echo_n "(cached) " >&6
  4409. else
  4410. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  4411. # We make a subdir and do the tests there. Otherwise we can end up
  4412. # making bogus files that we don't know about and never remove. For
  4413. # instance it was reported that on HP-UX the gcc test will end up
  4414. # making a dummy file named 'D' -- because '-MD' means "put the output
  4415. # in D".
  4416. rm -rf conftest.dir
  4417. mkdir conftest.dir
  4418. # Copy depcomp to subdir because otherwise we won't find it if we're
  4419. # using a relative directory.
  4420. cp "$am_depcomp" conftest.dir
  4421. cd conftest.dir
  4422. # We will build objects and dependencies in a subdirectory because
  4423. # it helps to detect inapplicable dependency modes. For instance
  4424. # both Tru64's cc and ICC support -MD to output dependencies as a
  4425. # side effect of compilation, but ICC will put the dependencies in
  4426. # the current directory while Tru64 will put them in the object
  4427. # directory.
  4428. mkdir sub
  4429. am_cv_CXX_dependencies_compiler_type=none
  4430. if test "$am_compiler_list" = ""; then
  4431. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  4432. fi
  4433. am__universal=false
  4434. case " $depcc " in #(
  4435. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  4436. esac
  4437. for depmode in $am_compiler_list; do
  4438. # Setup a source with many dependencies, because some compilers
  4439. # like to wrap large dependency lists on column 80 (with \), and
  4440. # we should not choose a depcomp mode which is confused by this.
  4441. #
  4442. # We need to recreate these files for each test, as the compiler may
  4443. # overwrite some of them when testing with obscure command lines.
  4444. # This happens at least with the AIX C compiler.
  4445. : > sub/conftest.c
  4446. for i in 1 2 3 4 5 6; do
  4447. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  4448. # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
  4449. # Solaris 10 /bin/sh.
  4450. echo '/* dummy */' > sub/conftst$i.h
  4451. done
  4452. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  4453. # We check with '-c' and '-o' for the sake of the "dashmstdout"
  4454. # mode. It turns out that the SunPro C++ compiler does not properly
  4455. # handle '-M -o', and we need to detect this. Also, some Intel
  4456. # versions had trouble with output in subdirs.
  4457. am__obj=sub/conftest.${OBJEXT-o}
  4458. am__minus_obj="-o $am__obj"
  4459. case $depmode in
  4460. gcc)
  4461. # This depmode causes a compiler race in universal mode.
  4462. test "$am__universal" = false || continue
  4463. ;;
  4464. nosideeffect)
  4465. # After this tag, mechanisms are not by side-effect, so they'll
  4466. # only be used when explicitly requested.
  4467. if test "x$enable_dependency_tracking" = xyes; then
  4468. continue
  4469. else
  4470. break
  4471. fi
  4472. ;;
  4473. msvc7 | msvc7msys | msvisualcpp | msvcmsys)
  4474. # This compiler won't grok '-c -o', but also, the minuso test has
  4475. # not run yet. These depmodes are late enough in the game, and
  4476. # so weak that their functioning should not be impacted.
  4477. am__obj=conftest.${OBJEXT-o}
  4478. am__minus_obj=
  4479. ;;
  4480. none) break ;;
  4481. esac
  4482. if depmode=$depmode \
  4483. source=sub/conftest.c object=$am__obj \
  4484. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  4485. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  4486. >/dev/null 2>conftest.err &&
  4487. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  4488. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  4489. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  4490. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  4491. # icc doesn't choke on unknown options, it will just issue warnings
  4492. # or remarks (even with -Werror). So we grep stderr for any message
  4493. # that says an option was ignored or not supported.
  4494. # When given -MP, icc 7.0 and 7.1 complain thusly:
  4495. # icc: Command line warning: ignoring option '-M'; no argument required
  4496. # The diagnosis changed in icc 8.0:
  4497. # icc: Command line remark: option '-MP' not supported
  4498. if (grep 'ignoring option' conftest.err ||
  4499. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  4500. am_cv_CXX_dependencies_compiler_type=$depmode
  4501. break
  4502. fi
  4503. fi
  4504. done
  4505. cd ..
  4506. rm -rf conftest.dir
  4507. else
  4508. am_cv_CXX_dependencies_compiler_type=none
  4509. fi
  4510. fi
  4511. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
  4512. $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
  4513. CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
  4514. if
  4515. test "x$enable_dependency_tracking" != xno \
  4516. && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
  4517. am__fastdepCXX_TRUE=
  4518. am__fastdepCXX_FALSE='#'
  4519. else
  4520. am__fastdepCXX_TRUE='#'
  4521. am__fastdepCXX_FALSE=
  4522. fi
  4523. ac_ext=c
  4524. ac_cpp='$CPP $CPPFLAGS'
  4525. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4526. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4527. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4528. if test -n "$ac_tool_prefix"; then
  4529. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  4530. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  4531. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4532. $as_echo_n "checking for $ac_word... " >&6; }
  4533. if ${ac_cv_prog_CC+:} false; then :
  4534. $as_echo_n "(cached) " >&6
  4535. else
  4536. if test -n "$CC"; then
  4537. ac_cv_prog_CC="$CC" # Let the user override the test.
  4538. else
  4539. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4540. for as_dir in $PATH
  4541. do
  4542. IFS=$as_save_IFS
  4543. test -z "$as_dir" && as_dir=.
  4544. for ac_exec_ext in '' $ac_executable_extensions; do
  4545. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4546. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  4547. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4548. break 2
  4549. fi
  4550. done
  4551. done
  4552. IFS=$as_save_IFS
  4553. fi
  4554. fi
  4555. CC=$ac_cv_prog_CC
  4556. if test -n "$CC"; then
  4557. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  4558. $as_echo "$CC" >&6; }
  4559. else
  4560. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4561. $as_echo "no" >&6; }
  4562. fi
  4563. fi
  4564. if test -z "$ac_cv_prog_CC"; then
  4565. ac_ct_CC=$CC
  4566. # Extract the first word of "gcc", so it can be a program name with args.
  4567. set dummy gcc; ac_word=$2
  4568. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4569. $as_echo_n "checking for $ac_word... " >&6; }
  4570. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  4571. $as_echo_n "(cached) " >&6
  4572. else
  4573. if test -n "$ac_ct_CC"; then
  4574. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  4575. else
  4576. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4577. for as_dir in $PATH
  4578. do
  4579. IFS=$as_save_IFS
  4580. test -z "$as_dir" && as_dir=.
  4581. for ac_exec_ext in '' $ac_executable_extensions; do
  4582. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4583. ac_cv_prog_ac_ct_CC="gcc"
  4584. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4585. break 2
  4586. fi
  4587. done
  4588. done
  4589. IFS=$as_save_IFS
  4590. fi
  4591. fi
  4592. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  4593. if test -n "$ac_ct_CC"; then
  4594. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  4595. $as_echo "$ac_ct_CC" >&6; }
  4596. else
  4597. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4598. $as_echo "no" >&6; }
  4599. fi
  4600. if test "x$ac_ct_CC" = x; then
  4601. CC=""
  4602. else
  4603. case $cross_compiling:$ac_tool_warned in
  4604. yes:)
  4605. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4606. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4607. ac_tool_warned=yes ;;
  4608. esac
  4609. CC=$ac_ct_CC
  4610. fi
  4611. else
  4612. CC="$ac_cv_prog_CC"
  4613. fi
  4614. if test -z "$CC"; then
  4615. if test -n "$ac_tool_prefix"; then
  4616. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  4617. set dummy ${ac_tool_prefix}cc; ac_word=$2
  4618. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4619. $as_echo_n "checking for $ac_word... " >&6; }
  4620. if ${ac_cv_prog_CC+:} false; then :
  4621. $as_echo_n "(cached) " >&6
  4622. else
  4623. if test -n "$CC"; then
  4624. ac_cv_prog_CC="$CC" # Let the user override the test.
  4625. else
  4626. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4627. for as_dir in $PATH
  4628. do
  4629. IFS=$as_save_IFS
  4630. test -z "$as_dir" && as_dir=.
  4631. for ac_exec_ext in '' $ac_executable_extensions; do
  4632. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4633. ac_cv_prog_CC="${ac_tool_prefix}cc"
  4634. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4635. break 2
  4636. fi
  4637. done
  4638. done
  4639. IFS=$as_save_IFS
  4640. fi
  4641. fi
  4642. CC=$ac_cv_prog_CC
  4643. if test -n "$CC"; then
  4644. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  4645. $as_echo "$CC" >&6; }
  4646. else
  4647. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4648. $as_echo "no" >&6; }
  4649. fi
  4650. fi
  4651. fi
  4652. if test -z "$CC"; then
  4653. # Extract the first word of "cc", so it can be a program name with args.
  4654. set dummy cc; ac_word=$2
  4655. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4656. $as_echo_n "checking for $ac_word... " >&6; }
  4657. if ${ac_cv_prog_CC+:} false; then :
  4658. $as_echo_n "(cached) " >&6
  4659. else
  4660. if test -n "$CC"; then
  4661. ac_cv_prog_CC="$CC" # Let the user override the test.
  4662. else
  4663. ac_prog_rejected=no
  4664. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4665. for as_dir in $PATH
  4666. do
  4667. IFS=$as_save_IFS
  4668. test -z "$as_dir" && as_dir=.
  4669. for ac_exec_ext in '' $ac_executable_extensions; do
  4670. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4671. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  4672. ac_prog_rejected=yes
  4673. continue
  4674. fi
  4675. ac_cv_prog_CC="cc"
  4676. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4677. break 2
  4678. fi
  4679. done
  4680. done
  4681. IFS=$as_save_IFS
  4682. if test $ac_prog_rejected = yes; then
  4683. # We found a bogon in the path, so make sure we never use it.
  4684. set dummy $ac_cv_prog_CC
  4685. shift
  4686. if test $# != 0; then
  4687. # We chose a different compiler from the bogus one.
  4688. # However, it has the same basename, so the bogon will be chosen
  4689. # first if we set CC to just the basename; use the full file name.
  4690. shift
  4691. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  4692. fi
  4693. fi
  4694. fi
  4695. fi
  4696. CC=$ac_cv_prog_CC
  4697. if test -n "$CC"; then
  4698. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  4699. $as_echo "$CC" >&6; }
  4700. else
  4701. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4702. $as_echo "no" >&6; }
  4703. fi
  4704. fi
  4705. if test -z "$CC"; then
  4706. if test -n "$ac_tool_prefix"; then
  4707. for ac_prog in cl.exe
  4708. do
  4709. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  4710. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  4711. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4712. $as_echo_n "checking for $ac_word... " >&6; }
  4713. if ${ac_cv_prog_CC+:} false; then :
  4714. $as_echo_n "(cached) " >&6
  4715. else
  4716. if test -n "$CC"; then
  4717. ac_cv_prog_CC="$CC" # Let the user override the test.
  4718. else
  4719. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4720. for as_dir in $PATH
  4721. do
  4722. IFS=$as_save_IFS
  4723. test -z "$as_dir" && as_dir=.
  4724. for ac_exec_ext in '' $ac_executable_extensions; do
  4725. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4726. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  4727. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4728. break 2
  4729. fi
  4730. done
  4731. done
  4732. IFS=$as_save_IFS
  4733. fi
  4734. fi
  4735. CC=$ac_cv_prog_CC
  4736. if test -n "$CC"; then
  4737. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  4738. $as_echo "$CC" >&6; }
  4739. else
  4740. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4741. $as_echo "no" >&6; }
  4742. fi
  4743. test -n "$CC" && break
  4744. done
  4745. fi
  4746. if test -z "$CC"; then
  4747. ac_ct_CC=$CC
  4748. for ac_prog in cl.exe
  4749. do
  4750. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4751. set dummy $ac_prog; ac_word=$2
  4752. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4753. $as_echo_n "checking for $ac_word... " >&6; }
  4754. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  4755. $as_echo_n "(cached) " >&6
  4756. else
  4757. if test -n "$ac_ct_CC"; then
  4758. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  4759. else
  4760. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4761. for as_dir in $PATH
  4762. do
  4763. IFS=$as_save_IFS
  4764. test -z "$as_dir" && as_dir=.
  4765. for ac_exec_ext in '' $ac_executable_extensions; do
  4766. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4767. ac_cv_prog_ac_ct_CC="$ac_prog"
  4768. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4769. break 2
  4770. fi
  4771. done
  4772. done
  4773. IFS=$as_save_IFS
  4774. fi
  4775. fi
  4776. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  4777. if test -n "$ac_ct_CC"; then
  4778. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  4779. $as_echo "$ac_ct_CC" >&6; }
  4780. else
  4781. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4782. $as_echo "no" >&6; }
  4783. fi
  4784. test -n "$ac_ct_CC" && break
  4785. done
  4786. if test "x$ac_ct_CC" = x; then
  4787. CC=""
  4788. else
  4789. case $cross_compiling:$ac_tool_warned in
  4790. yes:)
  4791. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4792. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4793. ac_tool_warned=yes ;;
  4794. esac
  4795. CC=$ac_ct_CC
  4796. fi
  4797. fi
  4798. fi
  4799. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  4800. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  4801. as_fn_error $? "no acceptable C compiler found in \$PATH
  4802. See \`config.log' for more details" "$LINENO" 5; }
  4803. # Provide some information about the compiler.
  4804. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  4805. set X $ac_compile
  4806. ac_compiler=$2
  4807. for ac_option in --version -v -V -qversion; do
  4808. { { ac_try="$ac_compiler $ac_option >&5"
  4809. case "(($ac_try" in
  4810. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4811. *) ac_try_echo=$ac_try;;
  4812. esac
  4813. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  4814. $as_echo "$ac_try_echo"; } >&5
  4815. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  4816. ac_status=$?
  4817. if test -s conftest.err; then
  4818. sed '10a\
  4819. ... rest of stderr output deleted ...
  4820. 10q' conftest.err >conftest.er1
  4821. cat conftest.er1 >&5
  4822. fi
  4823. rm -f conftest.er1 conftest.err
  4824. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4825. test $ac_status = 0; }
  4826. done
  4827. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  4828. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  4829. if ${ac_cv_c_compiler_gnu+:} false; then :
  4830. $as_echo_n "(cached) " >&6
  4831. else
  4832. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4833. /* end confdefs.h. */
  4834. int
  4835. main ()
  4836. {
  4837. #ifndef __GNUC__
  4838. choke me
  4839. #endif
  4840. ;
  4841. return 0;
  4842. }
  4843. _ACEOF
  4844. if ac_fn_c_try_compile "$LINENO"; then :
  4845. ac_compiler_gnu=yes
  4846. else
  4847. ac_compiler_gnu=no
  4848. fi
  4849. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4850. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  4851. fi
  4852. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  4853. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  4854. if test $ac_compiler_gnu = yes; then
  4855. GCC=yes
  4856. else
  4857. GCC=
  4858. fi
  4859. ac_test_CFLAGS=${CFLAGS+set}
  4860. ac_save_CFLAGS=$CFLAGS
  4861. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  4862. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  4863. if ${ac_cv_prog_cc_g+:} false; then :
  4864. $as_echo_n "(cached) " >&6
  4865. else
  4866. ac_save_c_werror_flag=$ac_c_werror_flag
  4867. ac_c_werror_flag=yes
  4868. ac_cv_prog_cc_g=no
  4869. CFLAGS="-g"
  4870. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4871. /* end confdefs.h. */
  4872. int
  4873. main ()
  4874. {
  4875. ;
  4876. return 0;
  4877. }
  4878. _ACEOF
  4879. if ac_fn_c_try_compile "$LINENO"; then :
  4880. ac_cv_prog_cc_g=yes
  4881. else
  4882. CFLAGS=""
  4883. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4884. /* end confdefs.h. */
  4885. int
  4886. main ()
  4887. {
  4888. ;
  4889. return 0;
  4890. }
  4891. _ACEOF
  4892. if ac_fn_c_try_compile "$LINENO"; then :
  4893. else
  4894. ac_c_werror_flag=$ac_save_c_werror_flag
  4895. CFLAGS="-g"
  4896. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4897. /* end confdefs.h. */
  4898. int
  4899. main ()
  4900. {
  4901. ;
  4902. return 0;
  4903. }
  4904. _ACEOF
  4905. if ac_fn_c_try_compile "$LINENO"; then :
  4906. ac_cv_prog_cc_g=yes
  4907. fi
  4908. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4909. fi
  4910. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4911. fi
  4912. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4913. ac_c_werror_flag=$ac_save_c_werror_flag
  4914. fi
  4915. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  4916. $as_echo "$ac_cv_prog_cc_g" >&6; }
  4917. if test "$ac_test_CFLAGS" = set; then
  4918. CFLAGS=$ac_save_CFLAGS
  4919. elif test $ac_cv_prog_cc_g = yes; then
  4920. if test "$GCC" = yes; then
  4921. CFLAGS="-g -O2"
  4922. else
  4923. CFLAGS="-g"
  4924. fi
  4925. else
  4926. if test "$GCC" = yes; then
  4927. CFLAGS="-O2"
  4928. else
  4929. CFLAGS=
  4930. fi
  4931. fi
  4932. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  4933. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  4934. if ${ac_cv_prog_cc_c89+:} false; then :
  4935. $as_echo_n "(cached) " >&6
  4936. else
  4937. ac_cv_prog_cc_c89=no
  4938. ac_save_CC=$CC
  4939. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4940. /* end confdefs.h. */
  4941. #include <stdarg.h>
  4942. #include <stdio.h>
  4943. struct stat;
  4944. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  4945. struct buf { int x; };
  4946. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  4947. static char *e (p, i)
  4948. char **p;
  4949. int i;
  4950. {
  4951. return p[i];
  4952. }
  4953. static char *f (char * (*g) (char **, int), char **p, ...)
  4954. {
  4955. char *s;
  4956. va_list v;
  4957. va_start (v,p);
  4958. s = g (p, va_arg (v,int));
  4959. va_end (v);
  4960. return s;
  4961. }
  4962. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  4963. function prototypes and stuff, but not '\xHH' hex character constants.
  4964. These don't provoke an error unfortunately, instead are silently treated
  4965. as 'x'. The following induces an error, until -std is added to get
  4966. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  4967. array size at least. It's necessary to write '\x00'==0 to get something
  4968. that's true only with -std. */
  4969. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  4970. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  4971. inside strings and character constants. */
  4972. #define FOO(x) 'x'
  4973. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  4974. int test (int i, double x);
  4975. struct s1 {int (*f) (int a);};
  4976. struct s2 {int (*f) (double a);};
  4977. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  4978. int argc;
  4979. char **argv;
  4980. int
  4981. main ()
  4982. {
  4983. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  4984. ;
  4985. return 0;
  4986. }
  4987. _ACEOF
  4988. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  4989. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  4990. do
  4991. CC="$ac_save_CC $ac_arg"
  4992. if ac_fn_c_try_compile "$LINENO"; then :
  4993. ac_cv_prog_cc_c89=$ac_arg
  4994. fi
  4995. rm -f core conftest.err conftest.$ac_objext
  4996. test "x$ac_cv_prog_cc_c89" != "xno" && break
  4997. done
  4998. rm -f conftest.$ac_ext
  4999. CC=$ac_save_CC
  5000. fi
  5001. # AC_CACHE_VAL
  5002. case "x$ac_cv_prog_cc_c89" in
  5003. x)
  5004. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  5005. $as_echo "none needed" >&6; } ;;
  5006. xno)
  5007. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  5008. $as_echo "unsupported" >&6; } ;;
  5009. *)
  5010. CC="$CC $ac_cv_prog_cc_c89"
  5011. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  5012. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  5013. esac
  5014. if test "x$ac_cv_prog_cc_c89" != xno; then :
  5015. fi
  5016. ac_ext=c
  5017. ac_cpp='$CPP $CPPFLAGS'
  5018. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5019. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5020. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5021. ac_ext=c
  5022. ac_cpp='$CPP $CPPFLAGS'
  5023. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5024. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5025. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5026. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
  5027. $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
  5028. if ${am_cv_prog_cc_c_o+:} false; then :
  5029. $as_echo_n "(cached) " >&6
  5030. else
  5031. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5032. /* end confdefs.h. */
  5033. int
  5034. main ()
  5035. {
  5036. ;
  5037. return 0;
  5038. }
  5039. _ACEOF
  5040. # Make sure it works both with $CC and with simple cc.
  5041. # Following AC_PROG_CC_C_O, we do the test twice because some
  5042. # compilers refuse to overwrite an existing .o file with -o,
  5043. # though they will create one.
  5044. am_cv_prog_cc_c_o=yes
  5045. for am_i in 1 2; do
  5046. if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
  5047. ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
  5048. ac_status=$?
  5049. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5050. (exit $ac_status); } \
  5051. && test -f conftest2.$ac_objext; then
  5052. : OK
  5053. else
  5054. am_cv_prog_cc_c_o=no
  5055. break
  5056. fi
  5057. done
  5058. rm -f core conftest*
  5059. unset am_i
  5060. fi
  5061. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
  5062. $as_echo "$am_cv_prog_cc_c_o" >&6; }
  5063. if test "$am_cv_prog_cc_c_o" != yes; then
  5064. # Losing compiler, so override with the script.
  5065. # FIXME: It is wrong to rewrite CC.
  5066. # But if we don't then we get into trouble of one sort or another.
  5067. # A longer-term fix would be to have automake use am__CC in this case,
  5068. # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
  5069. CC="$am_aux_dir/compile $CC"
  5070. fi
  5071. ac_ext=c
  5072. ac_cpp='$CPP $CPPFLAGS'
  5073. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5074. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5075. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5076. depcc="$CC" am_compiler_list=
  5077. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  5078. $as_echo_n "checking dependency style of $depcc... " >&6; }
  5079. if ${am_cv_CC_dependencies_compiler_type+:} false; then :
  5080. $as_echo_n "(cached) " >&6
  5081. else
  5082. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  5083. # We make a subdir and do the tests there. Otherwise we can end up
  5084. # making bogus files that we don't know about and never remove. For
  5085. # instance it was reported that on HP-UX the gcc test will end up
  5086. # making a dummy file named 'D' -- because '-MD' means "put the output
  5087. # in D".
  5088. rm -rf conftest.dir
  5089. mkdir conftest.dir
  5090. # Copy depcomp to subdir because otherwise we won't find it if we're
  5091. # using a relative directory.
  5092. cp "$am_depcomp" conftest.dir
  5093. cd conftest.dir
  5094. # We will build objects and dependencies in a subdirectory because
  5095. # it helps to detect inapplicable dependency modes. For instance
  5096. # both Tru64's cc and ICC support -MD to output dependencies as a
  5097. # side effect of compilation, but ICC will put the dependencies in
  5098. # the current directory while Tru64 will put them in the object
  5099. # directory.
  5100. mkdir sub
  5101. am_cv_CC_dependencies_compiler_type=none
  5102. if test "$am_compiler_list" = ""; then
  5103. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  5104. fi
  5105. am__universal=false
  5106. case " $depcc " in #(
  5107. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  5108. esac
  5109. for depmode in $am_compiler_list; do
  5110. # Setup a source with many dependencies, because some compilers
  5111. # like to wrap large dependency lists on column 80 (with \), and
  5112. # we should not choose a depcomp mode which is confused by this.
  5113. #
  5114. # We need to recreate these files for each test, as the compiler may
  5115. # overwrite some of them when testing with obscure command lines.
  5116. # This happens at least with the AIX C compiler.
  5117. : > sub/conftest.c
  5118. for i in 1 2 3 4 5 6; do
  5119. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  5120. # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
  5121. # Solaris 10 /bin/sh.
  5122. echo '/* dummy */' > sub/conftst$i.h
  5123. done
  5124. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  5125. # We check with '-c' and '-o' for the sake of the "dashmstdout"
  5126. # mode. It turns out that the SunPro C++ compiler does not properly
  5127. # handle '-M -o', and we need to detect this. Also, some Intel
  5128. # versions had trouble with output in subdirs.
  5129. am__obj=sub/conftest.${OBJEXT-o}
  5130. am__minus_obj="-o $am__obj"
  5131. case $depmode in
  5132. gcc)
  5133. # This depmode causes a compiler race in universal mode.
  5134. test "$am__universal" = false || continue
  5135. ;;
  5136. nosideeffect)
  5137. # After this tag, mechanisms are not by side-effect, so they'll
  5138. # only be used when explicitly requested.
  5139. if test "x$enable_dependency_tracking" = xyes; then
  5140. continue
  5141. else
  5142. break
  5143. fi
  5144. ;;
  5145. msvc7 | msvc7msys | msvisualcpp | msvcmsys)
  5146. # This compiler won't grok '-c -o', but also, the minuso test has
  5147. # not run yet. These depmodes are late enough in the game, and
  5148. # so weak that their functioning should not be impacted.
  5149. am__obj=conftest.${OBJEXT-o}
  5150. am__minus_obj=
  5151. ;;
  5152. none) break ;;
  5153. esac
  5154. if depmode=$depmode \
  5155. source=sub/conftest.c object=$am__obj \
  5156. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  5157. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  5158. >/dev/null 2>conftest.err &&
  5159. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  5160. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  5161. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  5162. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  5163. # icc doesn't choke on unknown options, it will just issue warnings
  5164. # or remarks (even with -Werror). So we grep stderr for any message
  5165. # that says an option was ignored or not supported.
  5166. # When given -MP, icc 7.0 and 7.1 complain thusly:
  5167. # icc: Command line warning: ignoring option '-M'; no argument required
  5168. # The diagnosis changed in icc 8.0:
  5169. # icc: Command line remark: option '-MP' not supported
  5170. if (grep 'ignoring option' conftest.err ||
  5171. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  5172. am_cv_CC_dependencies_compiler_type=$depmode
  5173. break
  5174. fi
  5175. fi
  5176. done
  5177. cd ..
  5178. rm -rf conftest.dir
  5179. else
  5180. am_cv_CC_dependencies_compiler_type=none
  5181. fi
  5182. fi
  5183. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
  5184. $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
  5185. CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  5186. if
  5187. test "x$enable_dependency_tracking" != xno \
  5188. && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  5189. am__fastdepCC_TRUE=
  5190. am__fastdepCC_FALSE='#'
  5191. else
  5192. am__fastdepCC_TRUE='#'
  5193. am__fastdepCC_FALSE=
  5194. fi
  5195. ac_ext=c
  5196. ac_cpp='$CPP $CPPFLAGS'
  5197. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5198. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5199. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5200. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
  5201. $as_echo_n "checking how to run the C preprocessor... " >&6; }
  5202. # On Suns, sometimes $CPP names a directory.
  5203. if test -n "$CPP" && test -d "$CPP"; then
  5204. CPP=
  5205. fi
  5206. if test -z "$CPP"; then
  5207. if ${ac_cv_prog_CPP+:} false; then :
  5208. $as_echo_n "(cached) " >&6
  5209. else
  5210. # Double quotes because CPP needs to be expanded
  5211. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  5212. do
  5213. ac_preproc_ok=false
  5214. for ac_c_preproc_warn_flag in '' yes
  5215. do
  5216. # Use a header file that comes with gcc, so configuring glibc
  5217. # with a fresh cross-compiler works.
  5218. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  5219. # <limits.h> exists even on freestanding compilers.
  5220. # On the NeXT, cc -E runs the code through the compiler's parser,
  5221. # not just through cpp. "Syntax error" is here to catch this case.
  5222. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5223. /* end confdefs.h. */
  5224. #ifdef __STDC__
  5225. # include <limits.h>
  5226. #else
  5227. # include <assert.h>
  5228. #endif
  5229. Syntax error
  5230. _ACEOF
  5231. if ac_fn_c_try_cpp "$LINENO"; then :
  5232. else
  5233. # Broken: fails on valid input.
  5234. continue
  5235. fi
  5236. rm -f conftest.err conftest.i conftest.$ac_ext
  5237. # OK, works on sane cases. Now check whether nonexistent headers
  5238. # can be detected and how.
  5239. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5240. /* end confdefs.h. */
  5241. #include <ac_nonexistent.h>
  5242. _ACEOF
  5243. if ac_fn_c_try_cpp "$LINENO"; then :
  5244. # Broken: success on invalid input.
  5245. continue
  5246. else
  5247. # Passes both tests.
  5248. ac_preproc_ok=:
  5249. break
  5250. fi
  5251. rm -f conftest.err conftest.i conftest.$ac_ext
  5252. done
  5253. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  5254. rm -f conftest.i conftest.err conftest.$ac_ext
  5255. if $ac_preproc_ok; then :
  5256. break
  5257. fi
  5258. done
  5259. ac_cv_prog_CPP=$CPP
  5260. fi
  5261. CPP=$ac_cv_prog_CPP
  5262. else
  5263. ac_cv_prog_CPP=$CPP
  5264. fi
  5265. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
  5266. $as_echo "$CPP" >&6; }
  5267. ac_preproc_ok=false
  5268. for ac_c_preproc_warn_flag in '' yes
  5269. do
  5270. # Use a header file that comes with gcc, so configuring glibc
  5271. # with a fresh cross-compiler works.
  5272. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  5273. # <limits.h> exists even on freestanding compilers.
  5274. # On the NeXT, cc -E runs the code through the compiler's parser,
  5275. # not just through cpp. "Syntax error" is here to catch this case.
  5276. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5277. /* end confdefs.h. */
  5278. #ifdef __STDC__
  5279. # include <limits.h>
  5280. #else
  5281. # include <assert.h>
  5282. #endif
  5283. Syntax error
  5284. _ACEOF
  5285. if ac_fn_c_try_cpp "$LINENO"; then :
  5286. else
  5287. # Broken: fails on valid input.
  5288. continue
  5289. fi
  5290. rm -f conftest.err conftest.i conftest.$ac_ext
  5291. # OK, works on sane cases. Now check whether nonexistent headers
  5292. # can be detected and how.
  5293. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5294. /* end confdefs.h. */
  5295. #include <ac_nonexistent.h>
  5296. _ACEOF
  5297. if ac_fn_c_try_cpp "$LINENO"; then :
  5298. # Broken: success on invalid input.
  5299. continue
  5300. else
  5301. # Passes both tests.
  5302. ac_preproc_ok=:
  5303. break
  5304. fi
  5305. rm -f conftest.err conftest.i conftest.$ac_ext
  5306. done
  5307. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  5308. rm -f conftest.i conftest.err conftest.$ac_ext
  5309. if $ac_preproc_ok; then :
  5310. else
  5311. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  5312. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  5313. as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
  5314. See \`config.log' for more details" "$LINENO" 5; }
  5315. fi
  5316. ac_ext=c
  5317. ac_cpp='$CPP $CPPFLAGS'
  5318. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5319. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5320. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5321. if test "$GCC" = yes; then
  5322. GCC_TRUE=
  5323. GCC_FALSE='#'
  5324. else
  5325. GCC_TRUE='#'
  5326. GCC_FALSE=
  5327. fi
  5328. # let the Makefile know if we're gcc
  5329. # shrug: autogen.sh suddenly needs this for some reason
  5330. ax_cxx_compile_alternatives="11 0x" ax_cxx_compile_cxx11_required=true
  5331. ac_ext=cpp
  5332. ac_cpp='$CXXCPP $CPPFLAGS'
  5333. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5334. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5335. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  5336. ac_success=no
  5337. if test x$ac_success = xno; then
  5338. for alternative in ${ax_cxx_compile_alternatives}; do
  5339. switch="-std=gnu++${alternative}"
  5340. cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_$switch" | $as_tr_sh`
  5341. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
  5342. $as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
  5343. if eval \${$cachevar+:} false; then :
  5344. $as_echo_n "(cached) " >&6
  5345. else
  5346. ac_save_CXX="$CXX"
  5347. CXX="$CXX $switch"
  5348. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5349. /* end confdefs.h. */
  5350. // If the compiler admits that it is not ready for C++11, why torture it?
  5351. // Hopefully, this will speed up the test.
  5352. #ifndef __cplusplus
  5353. #error "This is not a C++ compiler"
  5354. #elif __cplusplus < 201103L
  5355. #error "This is not a C++11 compiler"
  5356. #else
  5357. namespace cxx11
  5358. {
  5359. namespace test_static_assert
  5360. {
  5361. template <typename T>
  5362. struct check
  5363. {
  5364. static_assert(sizeof(int) <= sizeof(T), "not big enough");
  5365. };
  5366. }
  5367. namespace test_final_override
  5368. {
  5369. struct Base
  5370. {
  5371. virtual void f() {}
  5372. };
  5373. struct Derived : public Base
  5374. {
  5375. virtual void f() override {}
  5376. };
  5377. }
  5378. namespace test_double_right_angle_brackets
  5379. {
  5380. template < typename T >
  5381. struct check {};
  5382. typedef check<void> single_type;
  5383. typedef check<check<void>> double_type;
  5384. typedef check<check<check<void>>> triple_type;
  5385. typedef check<check<check<check<void>>>> quadruple_type;
  5386. }
  5387. namespace test_decltype
  5388. {
  5389. int
  5390. f()
  5391. {
  5392. int a = 1;
  5393. decltype(a) b = 2;
  5394. return a + b;
  5395. }
  5396. }
  5397. namespace test_type_deduction
  5398. {
  5399. template < typename T1, typename T2 >
  5400. struct is_same
  5401. {
  5402. static const bool value = false;
  5403. };
  5404. template < typename T >
  5405. struct is_same<T, T>
  5406. {
  5407. static const bool value = true;
  5408. };
  5409. template < typename T1, typename T2 >
  5410. auto
  5411. add(T1 a1, T2 a2) -> decltype(a1 + a2)
  5412. {
  5413. return a1 + a2;
  5414. }
  5415. int
  5416. test(const int c, volatile int v)
  5417. {
  5418. static_assert(is_same<int, decltype(0)>::value == true, "");
  5419. static_assert(is_same<int, decltype(c)>::value == false, "");
  5420. static_assert(is_same<int, decltype(v)>::value == false, "");
  5421. auto ac = c;
  5422. auto av = v;
  5423. auto sumi = ac + av + 'x';
  5424. auto sumf = ac + av + 1.0;
  5425. static_assert(is_same<int, decltype(ac)>::value == true, "");
  5426. static_assert(is_same<int, decltype(av)>::value == true, "");
  5427. static_assert(is_same<int, decltype(sumi)>::value == true, "");
  5428. static_assert(is_same<int, decltype(sumf)>::value == false, "");
  5429. static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
  5430. return (sumf > 0.0) ? sumi : add(c, v);
  5431. }
  5432. }
  5433. namespace test_noexcept
  5434. {
  5435. int f() { return 0; }
  5436. int g() noexcept { return 0; }
  5437. static_assert(noexcept(f()) == false, "");
  5438. static_assert(noexcept(g()) == true, "");
  5439. }
  5440. namespace test_constexpr
  5441. {
  5442. template < typename CharT >
  5443. unsigned long constexpr
  5444. strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
  5445. {
  5446. return *s ? strlen_c_r(s + 1, acc + 1) : acc;
  5447. }
  5448. template < typename CharT >
  5449. unsigned long constexpr
  5450. strlen_c(const CharT *const s) noexcept
  5451. {
  5452. return strlen_c_r(s, 0UL);
  5453. }
  5454. static_assert(strlen_c("") == 0UL, "");
  5455. static_assert(strlen_c("1") == 1UL, "");
  5456. static_assert(strlen_c("example") == 7UL, "");
  5457. static_assert(strlen_c("another\0example") == 7UL, "");
  5458. }
  5459. namespace test_rvalue_references
  5460. {
  5461. template < int N >
  5462. struct answer
  5463. {
  5464. static constexpr int value = N;
  5465. };
  5466. answer<1> f(int&) { return answer<1>(); }
  5467. answer<2> f(const int&) { return answer<2>(); }
  5468. answer<3> f(int&&) { return answer<3>(); }
  5469. void
  5470. test()
  5471. {
  5472. int i = 0;
  5473. const int c = 0;
  5474. static_assert(decltype(f(i))::value == 1, "");
  5475. static_assert(decltype(f(c))::value == 2, "");
  5476. static_assert(decltype(f(0))::value == 3, "");
  5477. }
  5478. }
  5479. namespace test_uniform_initialization
  5480. {
  5481. struct test
  5482. {
  5483. static const int zero {};
  5484. static const int one {1};
  5485. };
  5486. static_assert(test::zero == 0, "");
  5487. static_assert(test::one == 1, "");
  5488. }
  5489. namespace test_lambdas
  5490. {
  5491. void
  5492. test1()
  5493. {
  5494. auto lambda1 = [](){};
  5495. auto lambda2 = lambda1;
  5496. lambda1();
  5497. lambda2();
  5498. }
  5499. int
  5500. test2()
  5501. {
  5502. auto a = [](int i, int j){ return i + j; }(1, 2);
  5503. auto b = []() -> int { return '0'; }();
  5504. auto c = [=](){ return a + b; }();
  5505. auto d = [&](){ return c; }();
  5506. auto e = [a, &b](int x) mutable {
  5507. const auto identity = [](int y){ return y; };
  5508. for (auto i = 0; i < a; ++i)
  5509. a += b--;
  5510. return x + identity(a + b);
  5511. }(0);
  5512. return a + b + c + d + e;
  5513. }
  5514. int
  5515. test3()
  5516. {
  5517. const auto nullary = [](){ return 0; };
  5518. const auto unary = [](int x){ return x; };
  5519. using nullary_t = decltype(nullary);
  5520. using unary_t = decltype(unary);
  5521. const auto higher1st = [](nullary_t f){ return f(); };
  5522. const auto higher2nd = [unary](nullary_t f1){
  5523. return [unary, f1](unary_t f2){ return f2(unary(f1())); };
  5524. };
  5525. return higher1st(nullary) + higher2nd(nullary)(unary);
  5526. }
  5527. }
  5528. namespace test_variadic_templates
  5529. {
  5530. template <int...>
  5531. struct sum;
  5532. template <int N0, int... N1toN>
  5533. struct sum<N0, N1toN...>
  5534. {
  5535. static constexpr auto value = N0 + sum<N1toN...>::value;
  5536. };
  5537. template <>
  5538. struct sum<>
  5539. {
  5540. static constexpr auto value = 0;
  5541. };
  5542. static_assert(sum<>::value == 0, "");
  5543. static_assert(sum<1>::value == 1, "");
  5544. static_assert(sum<23>::value == 23, "");
  5545. static_assert(sum<1, 2>::value == 3, "");
  5546. static_assert(sum<5, 5, 11>::value == 21, "");
  5547. static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
  5548. }
  5549. // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
  5550. // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
  5551. // because of this.
  5552. namespace test_template_alias_sfinae
  5553. {
  5554. struct foo {};
  5555. template<typename T>
  5556. using member = typename T::member_type;
  5557. template<typename T>
  5558. void func(...) {}
  5559. template<typename T>
  5560. void func(member<T>*) {}
  5561. void test();
  5562. void test() { func<foo>(0); }
  5563. }
  5564. } // namespace cxx11
  5565. #endif // __cplusplus >= 201103L
  5566. _ACEOF
  5567. if ac_fn_cxx_try_compile "$LINENO"; then :
  5568. eval $cachevar=yes
  5569. else
  5570. eval $cachevar=no
  5571. fi
  5572. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5573. CXX="$ac_save_CXX"
  5574. fi
  5575. eval ac_res=\$$cachevar
  5576. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  5577. $as_echo "$ac_res" >&6; }
  5578. if eval test x\$$cachevar = xyes; then
  5579. CXX="$CXX $switch"
  5580. if test -n "$CXXCPP" ; then
  5581. CXXCPP="$CXXCPP $switch"
  5582. fi
  5583. ac_success=yes
  5584. break
  5585. fi
  5586. done
  5587. fi
  5588. ac_ext=c
  5589. ac_cpp='$CPP $CPPFLAGS'
  5590. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5591. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5592. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5593. if test x$ax_cxx_compile_cxx11_required = xtrue; then
  5594. if test x$ac_success = xno; then
  5595. as_fn_error $? "*** A compiler with support for C++11 language features is required." "$LINENO" 5
  5596. fi
  5597. fi
  5598. if test x$ac_success = xno; then
  5599. HAVE_CXX11=0
  5600. { $as_echo "$as_me:${as_lineno-$LINENO}: No compiler with C++11 support was found" >&5
  5601. $as_echo "$as_me: No compiler with C++11 support was found" >&6;}
  5602. else
  5603. HAVE_CXX11=1
  5604. $as_echo "#define HAVE_CXX11 1" >>confdefs.h
  5605. fi
  5606. # Check if we have an objcopy installed that supports -W
  5607. if test -n "$ac_tool_prefix"; then
  5608. # Extract the first word of "${ac_tool_prefix}objcopy", so it can be a program name with args.
  5609. set dummy ${ac_tool_prefix}objcopy; ac_word=$2
  5610. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5611. $as_echo_n "checking for $ac_word... " >&6; }
  5612. if ${ac_cv_prog_OBJCOPY+:} false; then :
  5613. $as_echo_n "(cached) " >&6
  5614. else
  5615. if test -n "$OBJCOPY"; then
  5616. ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
  5617. else
  5618. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5619. for as_dir in $PATH
  5620. do
  5621. IFS=$as_save_IFS
  5622. test -z "$as_dir" && as_dir=.
  5623. for ac_exec_ext in '' $ac_executable_extensions; do
  5624. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5625. ac_cv_prog_OBJCOPY="${ac_tool_prefix}objcopy"
  5626. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5627. break 2
  5628. fi
  5629. done
  5630. done
  5631. IFS=$as_save_IFS
  5632. fi
  5633. fi
  5634. OBJCOPY=$ac_cv_prog_OBJCOPY
  5635. if test -n "$OBJCOPY"; then
  5636. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
  5637. $as_echo "$OBJCOPY" >&6; }
  5638. else
  5639. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5640. $as_echo "no" >&6; }
  5641. fi
  5642. fi
  5643. if test -z "$ac_cv_prog_OBJCOPY"; then
  5644. ac_ct_OBJCOPY=$OBJCOPY
  5645. # Extract the first word of "objcopy", so it can be a program name with args.
  5646. set dummy objcopy; ac_word=$2
  5647. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5648. $as_echo_n "checking for $ac_word... " >&6; }
  5649. if ${ac_cv_prog_ac_ct_OBJCOPY+:} false; then :
  5650. $as_echo_n "(cached) " >&6
  5651. else
  5652. if test -n "$ac_ct_OBJCOPY"; then
  5653. ac_cv_prog_ac_ct_OBJCOPY="$ac_ct_OBJCOPY" # Let the user override the test.
  5654. else
  5655. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5656. for as_dir in $PATH
  5657. do
  5658. IFS=$as_save_IFS
  5659. test -z "$as_dir" && as_dir=.
  5660. for ac_exec_ext in '' $ac_executable_extensions; do
  5661. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5662. ac_cv_prog_ac_ct_OBJCOPY="objcopy"
  5663. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5664. break 2
  5665. fi
  5666. done
  5667. done
  5668. IFS=$as_save_IFS
  5669. fi
  5670. fi
  5671. ac_ct_OBJCOPY=$ac_cv_prog_ac_ct_OBJCOPY
  5672. if test -n "$ac_ct_OBJCOPY"; then
  5673. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJCOPY" >&5
  5674. $as_echo "$ac_ct_OBJCOPY" >&6; }
  5675. else
  5676. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5677. $as_echo "no" >&6; }
  5678. fi
  5679. if test "x$ac_ct_OBJCOPY" = x; then
  5680. OBJCOPY=""
  5681. else
  5682. case $cross_compiling:$ac_tool_warned in
  5683. yes:)
  5684. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5685. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5686. ac_tool_warned=yes ;;
  5687. esac
  5688. OBJCOPY=$ac_ct_OBJCOPY
  5689. fi
  5690. else
  5691. OBJCOPY="$ac_cv_prog_OBJCOPY"
  5692. fi
  5693. if test -n "$OBJCOPY"; then :
  5694. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $OBJCOPY supports -W" >&5
  5695. $as_echo_n "checking if $OBJCOPY supports -W... " >&6; }
  5696. if ${gpt_cv_objcopy_weaken+:} false; then :
  5697. $as_echo_n "(cached) " >&6
  5698. else
  5699. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5700. /* end confdefs.h. */
  5701. void foo() {} int main() {return 0;}
  5702. int
  5703. main ()
  5704. {
  5705. ;
  5706. return 0;
  5707. }
  5708. _ACEOF
  5709. if ac_fn_c_try_link "$LINENO"; then :
  5710. if "$OBJCOPY" -W foo conftest$ac_exeext /dev/null; then :
  5711. gpt_cv_objcopy_weaken=yes
  5712. else
  5713. gpt_cv_objcopy_weaken=no
  5714. fi
  5715. else
  5716. gpt_cv_objcopy_weaken=no
  5717. fi
  5718. rm -f core conftest.err conftest.$ac_objext \
  5719. conftest$ac_exeext conftest.$ac_ext
  5720. fi
  5721. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gpt_cv_objcopy_weaken" >&5
  5722. $as_echo "$gpt_cv_objcopy_weaken" >&6; }
  5723. else
  5724. gpt_cv_objcopy_weaken=no
  5725. fi
  5726. if test $gpt_cv_objcopy_weaken = yes; then
  5727. HAVE_OBJCOPY_WEAKEN_TRUE=
  5728. HAVE_OBJCOPY_WEAKEN_FALSE='#'
  5729. else
  5730. HAVE_OBJCOPY_WEAKEN_TRUE='#'
  5731. HAVE_OBJCOPY_WEAKEN_FALSE=
  5732. fi
  5733. case `pwd` in
  5734. *\ * | *\ *)
  5735. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
  5736. $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
  5737. esac
  5738. macro_version='2.4.6'
  5739. macro_revision='2.4.6'
  5740. ltmain=$ac_aux_dir/ltmain.sh
  5741. # Backslashify metacharacters that are still active within
  5742. # double-quoted strings.
  5743. sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
  5744. # Same as above, but do not quote variable references.
  5745. double_quote_subst='s/\(["`\\]\)/\\\1/g'
  5746. # Sed substitution to delay expansion of an escaped shell variable in a
  5747. # double_quote_subst'ed string.
  5748. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  5749. # Sed substitution to delay expansion of an escaped single quote.
  5750. delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
  5751. # Sed substitution to avoid accidental globbing in evaled expressions
  5752. no_glob_subst='s/\*/\\\*/g'
  5753. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  5754. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
  5755. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
  5756. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
  5757. $as_echo_n "checking how to print strings... " >&6; }
  5758. # Test print first, because it will be a builtin if present.
  5759. if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
  5760. test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
  5761. ECHO='print -r --'
  5762. elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
  5763. ECHO='printf %s\n'
  5764. else
  5765. # Use this function as a fallback that always works.
  5766. func_fallback_echo ()
  5767. {
  5768. eval 'cat <<_LTECHO_EOF
  5769. $1
  5770. _LTECHO_EOF'
  5771. }
  5772. ECHO='func_fallback_echo'
  5773. fi
  5774. # func_echo_all arg...
  5775. # Invoke $ECHO with all args, space-separated.
  5776. func_echo_all ()
  5777. {
  5778. $ECHO ""
  5779. }
  5780. case $ECHO in
  5781. printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
  5782. $as_echo "printf" >&6; } ;;
  5783. print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
  5784. $as_echo "print -r" >&6; } ;;
  5785. *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
  5786. $as_echo "cat" >&6; } ;;
  5787. esac
  5788. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
  5789. $as_echo_n "checking for a sed that does not truncate output... " >&6; }
  5790. if ${ac_cv_path_SED+:} false; then :
  5791. $as_echo_n "(cached) " >&6
  5792. else
  5793. ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  5794. for ac_i in 1 2 3 4 5 6 7; do
  5795. ac_script="$ac_script$as_nl$ac_script"
  5796. done
  5797. echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
  5798. { ac_script=; unset ac_script;}
  5799. if test -z "$SED"; then
  5800. ac_path_SED_found=false
  5801. # Loop through the user's path and test for each of PROGNAME-LIST
  5802. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5803. for as_dir in $PATH
  5804. do
  5805. IFS=$as_save_IFS
  5806. test -z "$as_dir" && as_dir=.
  5807. for ac_prog in sed gsed; do
  5808. for ac_exec_ext in '' $ac_executable_extensions; do
  5809. ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
  5810. as_fn_executable_p "$ac_path_SED" || continue
  5811. # Check for GNU ac_path_SED and select it if it is found.
  5812. # Check for GNU $ac_path_SED
  5813. case `"$ac_path_SED" --version 2>&1` in
  5814. *GNU*)
  5815. ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  5816. *)
  5817. ac_count=0
  5818. $as_echo_n 0123456789 >"conftest.in"
  5819. while :
  5820. do
  5821. cat "conftest.in" "conftest.in" >"conftest.tmp"
  5822. mv "conftest.tmp" "conftest.in"
  5823. cp "conftest.in" "conftest.nl"
  5824. $as_echo '' >> "conftest.nl"
  5825. "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  5826. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  5827. as_fn_arith $ac_count + 1 && ac_count=$as_val
  5828. if test $ac_count -gt ${ac_path_SED_max-0}; then
  5829. # Best one so far, save it but keep looking for a better one
  5830. ac_cv_path_SED="$ac_path_SED"
  5831. ac_path_SED_max=$ac_count
  5832. fi
  5833. # 10*(2^10) chars as input seems more than enough
  5834. test $ac_count -gt 10 && break
  5835. done
  5836. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  5837. esac
  5838. $ac_path_SED_found && break 3
  5839. done
  5840. done
  5841. done
  5842. IFS=$as_save_IFS
  5843. if test -z "$ac_cv_path_SED"; then
  5844. as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
  5845. fi
  5846. else
  5847. ac_cv_path_SED=$SED
  5848. fi
  5849. fi
  5850. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
  5851. $as_echo "$ac_cv_path_SED" >&6; }
  5852. SED="$ac_cv_path_SED"
  5853. rm -f conftest.sed
  5854. test -z "$SED" && SED=sed
  5855. Xsed="$SED -e 1s/^X//"
  5856. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
  5857. $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
  5858. if ${ac_cv_path_GREP+:} false; then :
  5859. $as_echo_n "(cached) " >&6
  5860. else
  5861. if test -z "$GREP"; then
  5862. ac_path_GREP_found=false
  5863. # Loop through the user's path and test for each of PROGNAME-LIST
  5864. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5865. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  5866. do
  5867. IFS=$as_save_IFS
  5868. test -z "$as_dir" && as_dir=.
  5869. for ac_prog in grep ggrep; do
  5870. for ac_exec_ext in '' $ac_executable_extensions; do
  5871. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  5872. as_fn_executable_p "$ac_path_GREP" || continue
  5873. # Check for GNU ac_path_GREP and select it if it is found.
  5874. # Check for GNU $ac_path_GREP
  5875. case `"$ac_path_GREP" --version 2>&1` in
  5876. *GNU*)
  5877. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  5878. *)
  5879. ac_count=0
  5880. $as_echo_n 0123456789 >"conftest.in"
  5881. while :
  5882. do
  5883. cat "conftest.in" "conftest.in" >"conftest.tmp"
  5884. mv "conftest.tmp" "conftest.in"
  5885. cp "conftest.in" "conftest.nl"
  5886. $as_echo 'GREP' >> "conftest.nl"
  5887. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  5888. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  5889. as_fn_arith $ac_count + 1 && ac_count=$as_val
  5890. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  5891. # Best one so far, save it but keep looking for a better one
  5892. ac_cv_path_GREP="$ac_path_GREP"
  5893. ac_path_GREP_max=$ac_count
  5894. fi
  5895. # 10*(2^10) chars as input seems more than enough
  5896. test $ac_count -gt 10 && break
  5897. done
  5898. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  5899. esac
  5900. $ac_path_GREP_found && break 3
  5901. done
  5902. done
  5903. done
  5904. IFS=$as_save_IFS
  5905. if test -z "$ac_cv_path_GREP"; then
  5906. as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  5907. fi
  5908. else
  5909. ac_cv_path_GREP=$GREP
  5910. fi
  5911. fi
  5912. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
  5913. $as_echo "$ac_cv_path_GREP" >&6; }
  5914. GREP="$ac_cv_path_GREP"
  5915. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  5916. $as_echo_n "checking for egrep... " >&6; }
  5917. if ${ac_cv_path_EGREP+:} false; then :
  5918. $as_echo_n "(cached) " >&6
  5919. else
  5920. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  5921. then ac_cv_path_EGREP="$GREP -E"
  5922. else
  5923. if test -z "$EGREP"; then
  5924. ac_path_EGREP_found=false
  5925. # Loop through the user's path and test for each of PROGNAME-LIST
  5926. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5927. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  5928. do
  5929. IFS=$as_save_IFS
  5930. test -z "$as_dir" && as_dir=.
  5931. for ac_prog in egrep; do
  5932. for ac_exec_ext in '' $ac_executable_extensions; do
  5933. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  5934. as_fn_executable_p "$ac_path_EGREP" || continue
  5935. # Check for GNU ac_path_EGREP and select it if it is found.
  5936. # Check for GNU $ac_path_EGREP
  5937. case `"$ac_path_EGREP" --version 2>&1` in
  5938. *GNU*)
  5939. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  5940. *)
  5941. ac_count=0
  5942. $as_echo_n 0123456789 >"conftest.in"
  5943. while :
  5944. do
  5945. cat "conftest.in" "conftest.in" >"conftest.tmp"
  5946. mv "conftest.tmp" "conftest.in"
  5947. cp "conftest.in" "conftest.nl"
  5948. $as_echo 'EGREP' >> "conftest.nl"
  5949. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  5950. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  5951. as_fn_arith $ac_count + 1 && ac_count=$as_val
  5952. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  5953. # Best one so far, save it but keep looking for a better one
  5954. ac_cv_path_EGREP="$ac_path_EGREP"
  5955. ac_path_EGREP_max=$ac_count
  5956. fi
  5957. # 10*(2^10) chars as input seems more than enough
  5958. test $ac_count -gt 10 && break
  5959. done
  5960. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  5961. esac
  5962. $ac_path_EGREP_found && break 3
  5963. done
  5964. done
  5965. done
  5966. IFS=$as_save_IFS
  5967. if test -z "$ac_cv_path_EGREP"; then
  5968. as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  5969. fi
  5970. else
  5971. ac_cv_path_EGREP=$EGREP
  5972. fi
  5973. fi
  5974. fi
  5975. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  5976. $as_echo "$ac_cv_path_EGREP" >&6; }
  5977. EGREP="$ac_cv_path_EGREP"
  5978. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
  5979. $as_echo_n "checking for fgrep... " >&6; }
  5980. if ${ac_cv_path_FGREP+:} false; then :
  5981. $as_echo_n "(cached) " >&6
  5982. else
  5983. if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
  5984. then ac_cv_path_FGREP="$GREP -F"
  5985. else
  5986. if test -z "$FGREP"; then
  5987. ac_path_FGREP_found=false
  5988. # Loop through the user's path and test for each of PROGNAME-LIST
  5989. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5990. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  5991. do
  5992. IFS=$as_save_IFS
  5993. test -z "$as_dir" && as_dir=.
  5994. for ac_prog in fgrep; do
  5995. for ac_exec_ext in '' $ac_executable_extensions; do
  5996. ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
  5997. as_fn_executable_p "$ac_path_FGREP" || continue
  5998. # Check for GNU ac_path_FGREP and select it if it is found.
  5999. # Check for GNU $ac_path_FGREP
  6000. case `"$ac_path_FGREP" --version 2>&1` in
  6001. *GNU*)
  6002. ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
  6003. *)
  6004. ac_count=0
  6005. $as_echo_n 0123456789 >"conftest.in"
  6006. while :
  6007. do
  6008. cat "conftest.in" "conftest.in" >"conftest.tmp"
  6009. mv "conftest.tmp" "conftest.in"
  6010. cp "conftest.in" "conftest.nl"
  6011. $as_echo 'FGREP' >> "conftest.nl"
  6012. "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
  6013. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  6014. as_fn_arith $ac_count + 1 && ac_count=$as_val
  6015. if test $ac_count -gt ${ac_path_FGREP_max-0}; then
  6016. # Best one so far, save it but keep looking for a better one
  6017. ac_cv_path_FGREP="$ac_path_FGREP"
  6018. ac_path_FGREP_max=$ac_count
  6019. fi
  6020. # 10*(2^10) chars as input seems more than enough
  6021. test $ac_count -gt 10 && break
  6022. done
  6023. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  6024. esac
  6025. $ac_path_FGREP_found && break 3
  6026. done
  6027. done
  6028. done
  6029. IFS=$as_save_IFS
  6030. if test -z "$ac_cv_path_FGREP"; then
  6031. as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  6032. fi
  6033. else
  6034. ac_cv_path_FGREP=$FGREP
  6035. fi
  6036. fi
  6037. fi
  6038. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
  6039. $as_echo "$ac_cv_path_FGREP" >&6; }
  6040. FGREP="$ac_cv_path_FGREP"
  6041. test -z "$GREP" && GREP=grep
  6042. # Check whether --with-gnu-ld was given.
  6043. if test "${with_gnu_ld+set}" = set; then :
  6044. withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
  6045. else
  6046. with_gnu_ld=no
  6047. fi
  6048. ac_prog=ld
  6049. if test yes = "$GCC"; then
  6050. # Check if gcc -print-prog-name=ld gives a path.
  6051. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  6052. $as_echo_n "checking for ld used by $CC... " >&6; }
  6053. case $host in
  6054. *-*-mingw*)
  6055. # gcc leaves a trailing carriage return, which upsets mingw
  6056. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  6057. *)
  6058. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  6059. esac
  6060. case $ac_prog in
  6061. # Accept absolute paths.
  6062. [\\/]* | ?:[\\/]*)
  6063. re_direlt='/[^/][^/]*/\.\./'
  6064. # Canonicalize the pathname of ld
  6065. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  6066. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  6067. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  6068. done
  6069. test -z "$LD" && LD=$ac_prog
  6070. ;;
  6071. "")
  6072. # If it fails, then pretend we aren't using GCC.
  6073. ac_prog=ld
  6074. ;;
  6075. *)
  6076. # If it is relative, then search for the first ld in PATH.
  6077. with_gnu_ld=unknown
  6078. ;;
  6079. esac
  6080. elif test yes = "$with_gnu_ld"; then
  6081. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  6082. $as_echo_n "checking for GNU ld... " >&6; }
  6083. else
  6084. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  6085. $as_echo_n "checking for non-GNU ld... " >&6; }
  6086. fi
  6087. if ${lt_cv_path_LD+:} false; then :
  6088. $as_echo_n "(cached) " >&6
  6089. else
  6090. if test -z "$LD"; then
  6091. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  6092. for ac_dir in $PATH; do
  6093. IFS=$lt_save_ifs
  6094. test -z "$ac_dir" && ac_dir=.
  6095. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  6096. lt_cv_path_LD=$ac_dir/$ac_prog
  6097. # Check to see if the program is GNU ld. I'd rather use --version,
  6098. # but apparently some variants of GNU ld only accept -v.
  6099. # Break only if it was the GNU/non-GNU ld that we prefer.
  6100. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  6101. *GNU* | *'with BFD'*)
  6102. test no != "$with_gnu_ld" && break
  6103. ;;
  6104. *)
  6105. test yes != "$with_gnu_ld" && break
  6106. ;;
  6107. esac
  6108. fi
  6109. done
  6110. IFS=$lt_save_ifs
  6111. else
  6112. lt_cv_path_LD=$LD # Let the user override the test with a path.
  6113. fi
  6114. fi
  6115. LD=$lt_cv_path_LD
  6116. if test -n "$LD"; then
  6117. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  6118. $as_echo "$LD" >&6; }
  6119. else
  6120. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6121. $as_echo "no" >&6; }
  6122. fi
  6123. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  6124. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  6125. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  6126. if ${lt_cv_prog_gnu_ld+:} false; then :
  6127. $as_echo_n "(cached) " >&6
  6128. else
  6129. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  6130. case `$LD -v 2>&1 </dev/null` in
  6131. *GNU* | *'with BFD'*)
  6132. lt_cv_prog_gnu_ld=yes
  6133. ;;
  6134. *)
  6135. lt_cv_prog_gnu_ld=no
  6136. ;;
  6137. esac
  6138. fi
  6139. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  6140. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  6141. with_gnu_ld=$lt_cv_prog_gnu_ld
  6142. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
  6143. $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
  6144. if ${lt_cv_path_NM+:} false; then :
  6145. $as_echo_n "(cached) " >&6
  6146. else
  6147. if test -n "$NM"; then
  6148. # Let the user override the test.
  6149. lt_cv_path_NM=$NM
  6150. else
  6151. lt_nm_to_check=${ac_tool_prefix}nm
  6152. if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
  6153. lt_nm_to_check="$lt_nm_to_check nm"
  6154. fi
  6155. for lt_tmp_nm in $lt_nm_to_check; do
  6156. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  6157. for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
  6158. IFS=$lt_save_ifs
  6159. test -z "$ac_dir" && ac_dir=.
  6160. tmp_nm=$ac_dir/$lt_tmp_nm
  6161. if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
  6162. # Check to see if the nm accepts a BSD-compat flag.
  6163. # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
  6164. # nm: unknown option "B" ignored
  6165. # Tru64's nm complains that /dev/null is an invalid object file
  6166. # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
  6167. case $build_os in
  6168. mingw*) lt_bad_file=conftest.nm/nofile ;;
  6169. *) lt_bad_file=/dev/null ;;
  6170. esac
  6171. case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
  6172. *$lt_bad_file* | *'Invalid file or object type'*)
  6173. lt_cv_path_NM="$tmp_nm -B"
  6174. break 2
  6175. ;;
  6176. *)
  6177. case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  6178. */dev/null*)
  6179. lt_cv_path_NM="$tmp_nm -p"
  6180. break 2
  6181. ;;
  6182. *)
  6183. lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  6184. continue # so that we can try to find one that supports BSD flags
  6185. ;;
  6186. esac
  6187. ;;
  6188. esac
  6189. fi
  6190. done
  6191. IFS=$lt_save_ifs
  6192. done
  6193. : ${lt_cv_path_NM=no}
  6194. fi
  6195. fi
  6196. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
  6197. $as_echo "$lt_cv_path_NM" >&6; }
  6198. if test no != "$lt_cv_path_NM"; then
  6199. NM=$lt_cv_path_NM
  6200. else
  6201. # Didn't find any BSD compatible name lister, look for dumpbin.
  6202. if test -n "$DUMPBIN"; then :
  6203. # Let the user override the test.
  6204. else
  6205. if test -n "$ac_tool_prefix"; then
  6206. for ac_prog in dumpbin "link -dump"
  6207. do
  6208. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  6209. set dummy $ac_tool_prefix$ac_prog; 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_DUMPBIN+:} false; then :
  6213. $as_echo_n "(cached) " >&6
  6214. else
  6215. if test -n "$DUMPBIN"; then
  6216. ac_cv_prog_DUMPBIN="$DUMPBIN" # 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 as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6225. ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
  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. DUMPBIN=$ac_cv_prog_DUMPBIN
  6235. if test -n "$DUMPBIN"; then
  6236. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
  6237. $as_echo "$DUMPBIN" >&6; }
  6238. else
  6239. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6240. $as_echo "no" >&6; }
  6241. fi
  6242. test -n "$DUMPBIN" && break
  6243. done
  6244. fi
  6245. if test -z "$DUMPBIN"; then
  6246. ac_ct_DUMPBIN=$DUMPBIN
  6247. for ac_prog in dumpbin "link -dump"
  6248. do
  6249. # Extract the first word of "$ac_prog", so it can be a program name with args.
  6250. set dummy $ac_prog; ac_word=$2
  6251. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6252. $as_echo_n "checking for $ac_word... " >&6; }
  6253. if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
  6254. $as_echo_n "(cached) " >&6
  6255. else
  6256. if test -n "$ac_ct_DUMPBIN"; then
  6257. ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
  6258. else
  6259. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6260. for as_dir in $PATH
  6261. do
  6262. IFS=$as_save_IFS
  6263. test -z "$as_dir" && as_dir=.
  6264. for ac_exec_ext in '' $ac_executable_extensions; do
  6265. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6266. ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
  6267. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6268. break 2
  6269. fi
  6270. done
  6271. done
  6272. IFS=$as_save_IFS
  6273. fi
  6274. fi
  6275. ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
  6276. if test -n "$ac_ct_DUMPBIN"; then
  6277. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
  6278. $as_echo "$ac_ct_DUMPBIN" >&6; }
  6279. else
  6280. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6281. $as_echo "no" >&6; }
  6282. fi
  6283. test -n "$ac_ct_DUMPBIN" && break
  6284. done
  6285. if test "x$ac_ct_DUMPBIN" = x; then
  6286. DUMPBIN=":"
  6287. else
  6288. case $cross_compiling:$ac_tool_warned in
  6289. yes:)
  6290. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6291. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6292. ac_tool_warned=yes ;;
  6293. esac
  6294. DUMPBIN=$ac_ct_DUMPBIN
  6295. fi
  6296. fi
  6297. case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
  6298. *COFF*)
  6299. DUMPBIN="$DUMPBIN -symbols -headers"
  6300. ;;
  6301. *)
  6302. DUMPBIN=:
  6303. ;;
  6304. esac
  6305. fi
  6306. if test : != "$DUMPBIN"; then
  6307. NM=$DUMPBIN
  6308. fi
  6309. fi
  6310. test -z "$NM" && NM=nm
  6311. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
  6312. $as_echo_n "checking the name lister ($NM) interface... " >&6; }
  6313. if ${lt_cv_nm_interface+:} false; then :
  6314. $as_echo_n "(cached) " >&6
  6315. else
  6316. lt_cv_nm_interface="BSD nm"
  6317. echo "int some_variable = 0;" > conftest.$ac_ext
  6318. (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
  6319. (eval "$ac_compile" 2>conftest.err)
  6320. cat conftest.err >&5
  6321. (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
  6322. (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
  6323. cat conftest.err >&5
  6324. (eval echo "\"\$as_me:$LINENO: output\"" >&5)
  6325. cat conftest.out >&5
  6326. if $GREP 'External.*some_variable' conftest.out > /dev/null; then
  6327. lt_cv_nm_interface="MS dumpbin"
  6328. fi
  6329. rm -f conftest*
  6330. fi
  6331. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
  6332. $as_echo "$lt_cv_nm_interface" >&6; }
  6333. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
  6334. $as_echo_n "checking whether ln -s works... " >&6; }
  6335. LN_S=$as_ln_s
  6336. if test "$LN_S" = "ln -s"; then
  6337. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  6338. $as_echo "yes" >&6; }
  6339. else
  6340. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
  6341. $as_echo "no, using $LN_S" >&6; }
  6342. fi
  6343. # find the maximum length of command line arguments
  6344. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
  6345. $as_echo_n "checking the maximum length of command line arguments... " >&6; }
  6346. if ${lt_cv_sys_max_cmd_len+:} false; then :
  6347. $as_echo_n "(cached) " >&6
  6348. else
  6349. i=0
  6350. teststring=ABCD
  6351. case $build_os in
  6352. msdosdjgpp*)
  6353. # On DJGPP, this test can blow up pretty badly due to problems in libc
  6354. # (any single argument exceeding 2000 bytes causes a buffer overrun
  6355. # during glob expansion). Even if it were fixed, the result of this
  6356. # check would be larger than it should be.
  6357. lt_cv_sys_max_cmd_len=12288; # 12K is about right
  6358. ;;
  6359. gnu*)
  6360. # Under GNU Hurd, this test is not required because there is
  6361. # no limit to the length of command line arguments.
  6362. # Libtool will interpret -1 as no limit whatsoever
  6363. lt_cv_sys_max_cmd_len=-1;
  6364. ;;
  6365. cygwin* | mingw* | cegcc*)
  6366. # On Win9x/ME, this test blows up -- it succeeds, but takes
  6367. # about 5 minutes as the teststring grows exponentially.
  6368. # Worse, since 9x/ME are not pre-emptively multitasking,
  6369. # you end up with a "frozen" computer, even though with patience
  6370. # the test eventually succeeds (with a max line length of 256k).
  6371. # Instead, let's just punt: use the minimum linelength reported by
  6372. # all of the supported platforms: 8192 (on NT/2K/XP).
  6373. lt_cv_sys_max_cmd_len=8192;
  6374. ;;
  6375. mint*)
  6376. # On MiNT this can take a long time and run out of memory.
  6377. lt_cv_sys_max_cmd_len=8192;
  6378. ;;
  6379. amigaos*)
  6380. # On AmigaOS with pdksh, this test takes hours, literally.
  6381. # So we just punt and use a minimum line length of 8192.
  6382. lt_cv_sys_max_cmd_len=8192;
  6383. ;;
  6384. bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
  6385. # This has been around since 386BSD, at least. Likely further.
  6386. if test -x /sbin/sysctl; then
  6387. lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  6388. elif test -x /usr/sbin/sysctl; then
  6389. lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  6390. else
  6391. lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  6392. fi
  6393. # And add a safety zone
  6394. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  6395. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  6396. ;;
  6397. interix*)
  6398. # We know the value 262144 and hardcode it with a safety zone (like BSD)
  6399. lt_cv_sys_max_cmd_len=196608
  6400. ;;
  6401. os2*)
  6402. # The test takes a long time on OS/2.
  6403. lt_cv_sys_max_cmd_len=8192
  6404. ;;
  6405. osf*)
  6406. # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  6407. # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  6408. # nice to cause kernel panics so lets avoid the loop below.
  6409. # First set a reasonable default.
  6410. lt_cv_sys_max_cmd_len=16384
  6411. #
  6412. if test -x /sbin/sysconfig; then
  6413. case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  6414. *1*) lt_cv_sys_max_cmd_len=-1 ;;
  6415. esac
  6416. fi
  6417. ;;
  6418. sco3.2v5*)
  6419. lt_cv_sys_max_cmd_len=102400
  6420. ;;
  6421. sysv5* | sco5v6* | sysv4.2uw2*)
  6422. kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  6423. if test -n "$kargmax"; then
  6424. lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
  6425. else
  6426. lt_cv_sys_max_cmd_len=32768
  6427. fi
  6428. ;;
  6429. *)
  6430. lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
  6431. if test -n "$lt_cv_sys_max_cmd_len" && \
  6432. test undefined != "$lt_cv_sys_max_cmd_len"; then
  6433. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  6434. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  6435. else
  6436. # Make teststring a little bigger before we do anything with it.
  6437. # a 1K string should be a reasonable start.
  6438. for i in 1 2 3 4 5 6 7 8; do
  6439. teststring=$teststring$teststring
  6440. done
  6441. SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  6442. # If test is not a shell built-in, we'll probably end up computing a
  6443. # maximum length that is only half of the actual maximum length, but
  6444. # we can't tell.
  6445. while { test X`env echo "$teststring$teststring" 2>/dev/null` \
  6446. = "X$teststring$teststring"; } >/dev/null 2>&1 &&
  6447. test 17 != "$i" # 1/2 MB should be enough
  6448. do
  6449. i=`expr $i + 1`
  6450. teststring=$teststring$teststring
  6451. done
  6452. # Only check the string length outside the loop.
  6453. lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
  6454. teststring=
  6455. # Add a significant safety factor because C++ compilers can tack on
  6456. # massive amounts of additional arguments before passing them to the
  6457. # linker. It appears as though 1/2 is a usable value.
  6458. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  6459. fi
  6460. ;;
  6461. esac
  6462. fi
  6463. if test -n "$lt_cv_sys_max_cmd_len"; then
  6464. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
  6465. $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
  6466. else
  6467. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
  6468. $as_echo "none" >&6; }
  6469. fi
  6470. max_cmd_len=$lt_cv_sys_max_cmd_len
  6471. : ${CP="cp -f"}
  6472. : ${MV="mv -f"}
  6473. : ${RM="rm -f"}
  6474. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  6475. lt_unset=unset
  6476. else
  6477. lt_unset=false
  6478. fi
  6479. # test EBCDIC or ASCII
  6480. case `echo X|tr X '\101'` in
  6481. A) # ASCII based system
  6482. # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
  6483. lt_SP2NL='tr \040 \012'
  6484. lt_NL2SP='tr \015\012 \040\040'
  6485. ;;
  6486. *) # EBCDIC based system
  6487. lt_SP2NL='tr \100 \n'
  6488. lt_NL2SP='tr \r\n \100\100'
  6489. ;;
  6490. esac
  6491. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
  6492. $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
  6493. if ${lt_cv_to_host_file_cmd+:} false; then :
  6494. $as_echo_n "(cached) " >&6
  6495. else
  6496. case $host in
  6497. *-*-mingw* )
  6498. case $build in
  6499. *-*-mingw* ) # actually msys
  6500. lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
  6501. ;;
  6502. *-*-cygwin* )
  6503. lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
  6504. ;;
  6505. * ) # otherwise, assume *nix
  6506. lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
  6507. ;;
  6508. esac
  6509. ;;
  6510. *-*-cygwin* )
  6511. case $build in
  6512. *-*-mingw* ) # actually msys
  6513. lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
  6514. ;;
  6515. *-*-cygwin* )
  6516. lt_cv_to_host_file_cmd=func_convert_file_noop
  6517. ;;
  6518. * ) # otherwise, assume *nix
  6519. lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
  6520. ;;
  6521. esac
  6522. ;;
  6523. * ) # unhandled hosts (and "normal" native builds)
  6524. lt_cv_to_host_file_cmd=func_convert_file_noop
  6525. ;;
  6526. esac
  6527. fi
  6528. to_host_file_cmd=$lt_cv_to_host_file_cmd
  6529. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
  6530. $as_echo "$lt_cv_to_host_file_cmd" >&6; }
  6531. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
  6532. $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
  6533. if ${lt_cv_to_tool_file_cmd+:} false; then :
  6534. $as_echo_n "(cached) " >&6
  6535. else
  6536. #assume ordinary cross tools, or native build.
  6537. lt_cv_to_tool_file_cmd=func_convert_file_noop
  6538. case $host in
  6539. *-*-mingw* )
  6540. case $build in
  6541. *-*-mingw* ) # actually msys
  6542. lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
  6543. ;;
  6544. esac
  6545. ;;
  6546. esac
  6547. fi
  6548. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  6549. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
  6550. $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
  6551. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
  6552. $as_echo_n "checking for $LD option to reload object files... " >&6; }
  6553. if ${lt_cv_ld_reload_flag+:} false; then :
  6554. $as_echo_n "(cached) " >&6
  6555. else
  6556. lt_cv_ld_reload_flag='-r'
  6557. fi
  6558. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
  6559. $as_echo "$lt_cv_ld_reload_flag" >&6; }
  6560. reload_flag=$lt_cv_ld_reload_flag
  6561. case $reload_flag in
  6562. "" | " "*) ;;
  6563. *) reload_flag=" $reload_flag" ;;
  6564. esac
  6565. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  6566. case $host_os in
  6567. cygwin* | mingw* | pw32* | cegcc*)
  6568. if test yes != "$GCC"; then
  6569. reload_cmds=false
  6570. fi
  6571. ;;
  6572. darwin*)
  6573. if test yes = "$GCC"; then
  6574. reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
  6575. else
  6576. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  6577. fi
  6578. ;;
  6579. esac
  6580. if test -n "$ac_tool_prefix"; then
  6581. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  6582. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  6583. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6584. $as_echo_n "checking for $ac_word... " >&6; }
  6585. if ${ac_cv_prog_OBJDUMP+:} false; then :
  6586. $as_echo_n "(cached) " >&6
  6587. else
  6588. if test -n "$OBJDUMP"; then
  6589. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  6590. else
  6591. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6592. for as_dir in $PATH
  6593. do
  6594. IFS=$as_save_IFS
  6595. test -z "$as_dir" && as_dir=.
  6596. for ac_exec_ext in '' $ac_executable_extensions; do
  6597. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6598. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  6599. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6600. break 2
  6601. fi
  6602. done
  6603. done
  6604. IFS=$as_save_IFS
  6605. fi
  6606. fi
  6607. OBJDUMP=$ac_cv_prog_OBJDUMP
  6608. if test -n "$OBJDUMP"; then
  6609. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  6610. $as_echo "$OBJDUMP" >&6; }
  6611. else
  6612. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6613. $as_echo "no" >&6; }
  6614. fi
  6615. fi
  6616. if test -z "$ac_cv_prog_OBJDUMP"; then
  6617. ac_ct_OBJDUMP=$OBJDUMP
  6618. # Extract the first word of "objdump", so it can be a program name with args.
  6619. set dummy objdump; ac_word=$2
  6620. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6621. $as_echo_n "checking for $ac_word... " >&6; }
  6622. if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
  6623. $as_echo_n "(cached) " >&6
  6624. else
  6625. if test -n "$ac_ct_OBJDUMP"; then
  6626. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  6627. else
  6628. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6629. for as_dir in $PATH
  6630. do
  6631. IFS=$as_save_IFS
  6632. test -z "$as_dir" && as_dir=.
  6633. for ac_exec_ext in '' $ac_executable_extensions; do
  6634. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6635. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  6636. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6637. break 2
  6638. fi
  6639. done
  6640. done
  6641. IFS=$as_save_IFS
  6642. fi
  6643. fi
  6644. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  6645. if test -n "$ac_ct_OBJDUMP"; then
  6646. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  6647. $as_echo "$ac_ct_OBJDUMP" >&6; }
  6648. else
  6649. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6650. $as_echo "no" >&6; }
  6651. fi
  6652. if test "x$ac_ct_OBJDUMP" = x; then
  6653. OBJDUMP="false"
  6654. else
  6655. case $cross_compiling:$ac_tool_warned in
  6656. yes:)
  6657. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6658. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6659. ac_tool_warned=yes ;;
  6660. esac
  6661. OBJDUMP=$ac_ct_OBJDUMP
  6662. fi
  6663. else
  6664. OBJDUMP="$ac_cv_prog_OBJDUMP"
  6665. fi
  6666. test -z "$OBJDUMP" && OBJDUMP=objdump
  6667. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
  6668. $as_echo_n "checking how to recognize dependent libraries... " >&6; }
  6669. if ${lt_cv_deplibs_check_method+:} false; then :
  6670. $as_echo_n "(cached) " >&6
  6671. else
  6672. lt_cv_file_magic_cmd='$MAGIC_CMD'
  6673. lt_cv_file_magic_test_file=
  6674. lt_cv_deplibs_check_method='unknown'
  6675. # Need to set the preceding variable on all platforms that support
  6676. # interlibrary dependencies.
  6677. # 'none' -- dependencies not supported.
  6678. # 'unknown' -- same as none, but documents that we really don't know.
  6679. # 'pass_all' -- all dependencies passed with no checks.
  6680. # 'test_compile' -- check by making test program.
  6681. # 'file_magic [[regex]]' -- check by looking for files in library path
  6682. # that responds to the $file_magic_cmd with a given extended regex.
  6683. # If you have 'file' or equivalent on your system and you're not sure
  6684. # whether 'pass_all' will *always* work, you probably want this one.
  6685. case $host_os in
  6686. aix[4-9]*)
  6687. lt_cv_deplibs_check_method=pass_all
  6688. ;;
  6689. beos*)
  6690. lt_cv_deplibs_check_method=pass_all
  6691. ;;
  6692. bsdi[45]*)
  6693. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  6694. lt_cv_file_magic_cmd='/usr/bin/file -L'
  6695. lt_cv_file_magic_test_file=/shlib/libc.so
  6696. ;;
  6697. cygwin*)
  6698. # func_win32_libid is a shell function defined in ltmain.sh
  6699. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  6700. lt_cv_file_magic_cmd='func_win32_libid'
  6701. ;;
  6702. mingw* | pw32*)
  6703. # Base MSYS/MinGW do not provide the 'file' command needed by
  6704. # func_win32_libid shell function, so use a weaker test based on 'objdump',
  6705. # unless we find 'file', for example because we are cross-compiling.
  6706. if ( file / ) >/dev/null 2>&1; then
  6707. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  6708. lt_cv_file_magic_cmd='func_win32_libid'
  6709. else
  6710. # Keep this pattern in sync with the one in func_win32_libid.
  6711. lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
  6712. lt_cv_file_magic_cmd='$OBJDUMP -f'
  6713. fi
  6714. ;;
  6715. cegcc*)
  6716. # use the weaker test based on 'objdump'. See mingw*.
  6717. lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
  6718. lt_cv_file_magic_cmd='$OBJDUMP -f'
  6719. ;;
  6720. darwin* | rhapsody*)
  6721. lt_cv_deplibs_check_method=pass_all
  6722. ;;
  6723. freebsd* | dragonfly*)
  6724. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  6725. case $host_cpu in
  6726. i*86 )
  6727. # Not sure whether the presence of OpenBSD here was a mistake.
  6728. # Let's accept both of them until this is cleared up.
  6729. lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
  6730. lt_cv_file_magic_cmd=/usr/bin/file
  6731. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  6732. ;;
  6733. esac
  6734. else
  6735. lt_cv_deplibs_check_method=pass_all
  6736. fi
  6737. ;;
  6738. haiku*)
  6739. lt_cv_deplibs_check_method=pass_all
  6740. ;;
  6741. hpux10.20* | hpux11*)
  6742. lt_cv_file_magic_cmd=/usr/bin/file
  6743. case $host_cpu in
  6744. ia64*)
  6745. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
  6746. lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  6747. ;;
  6748. hppa*64*)
  6749. 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]'
  6750. lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  6751. ;;
  6752. *)
  6753. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
  6754. lt_cv_file_magic_test_file=/usr/lib/libc.sl
  6755. ;;
  6756. esac
  6757. ;;
  6758. interix[3-9]*)
  6759. # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  6760. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
  6761. ;;
  6762. irix5* | irix6* | nonstopux*)
  6763. case $LD in
  6764. *-32|*"-32 ") libmagic=32-bit;;
  6765. *-n32|*"-n32 ") libmagic=N32;;
  6766. *-64|*"-64 ") libmagic=64-bit;;
  6767. *) libmagic=never-match;;
  6768. esac
  6769. lt_cv_deplibs_check_method=pass_all
  6770. ;;
  6771. # This must be glibc/ELF.
  6772. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  6773. lt_cv_deplibs_check_method=pass_all
  6774. ;;
  6775. netbsd* | netbsdelf*-gnu)
  6776. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  6777. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  6778. else
  6779. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
  6780. fi
  6781. ;;
  6782. newos6*)
  6783. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  6784. lt_cv_file_magic_cmd=/usr/bin/file
  6785. lt_cv_file_magic_test_file=/usr/lib/libnls.so
  6786. ;;
  6787. *nto* | *qnx*)
  6788. lt_cv_deplibs_check_method=pass_all
  6789. ;;
  6790. openbsd* | bitrig*)
  6791. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
  6792. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
  6793. else
  6794. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  6795. fi
  6796. ;;
  6797. osf3* | osf4* | osf5*)
  6798. lt_cv_deplibs_check_method=pass_all
  6799. ;;
  6800. rdos*)
  6801. lt_cv_deplibs_check_method=pass_all
  6802. ;;
  6803. solaris*)
  6804. lt_cv_deplibs_check_method=pass_all
  6805. ;;
  6806. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  6807. lt_cv_deplibs_check_method=pass_all
  6808. ;;
  6809. sysv4 | sysv4.3*)
  6810. case $host_vendor in
  6811. motorola)
  6812. 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]'
  6813. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  6814. ;;
  6815. ncr)
  6816. lt_cv_deplibs_check_method=pass_all
  6817. ;;
  6818. sequent)
  6819. lt_cv_file_magic_cmd='/bin/file'
  6820. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
  6821. ;;
  6822. sni)
  6823. lt_cv_file_magic_cmd='/bin/file'
  6824. lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
  6825. lt_cv_file_magic_test_file=/lib/libc.so
  6826. ;;
  6827. siemens)
  6828. lt_cv_deplibs_check_method=pass_all
  6829. ;;
  6830. pc)
  6831. lt_cv_deplibs_check_method=pass_all
  6832. ;;
  6833. esac
  6834. ;;
  6835. tpf*)
  6836. lt_cv_deplibs_check_method=pass_all
  6837. ;;
  6838. os2*)
  6839. lt_cv_deplibs_check_method=pass_all
  6840. ;;
  6841. esac
  6842. fi
  6843. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
  6844. $as_echo "$lt_cv_deplibs_check_method" >&6; }
  6845. file_magic_glob=
  6846. want_nocaseglob=no
  6847. if test "$build" = "$host"; then
  6848. case $host_os in
  6849. mingw* | pw32*)
  6850. if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
  6851. want_nocaseglob=yes
  6852. else
  6853. file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
  6854. fi
  6855. ;;
  6856. esac
  6857. fi
  6858. file_magic_cmd=$lt_cv_file_magic_cmd
  6859. deplibs_check_method=$lt_cv_deplibs_check_method
  6860. test -z "$deplibs_check_method" && deplibs_check_method=unknown
  6861. if test -n "$ac_tool_prefix"; then
  6862. # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
  6863. set dummy ${ac_tool_prefix}dlltool; ac_word=$2
  6864. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6865. $as_echo_n "checking for $ac_word... " >&6; }
  6866. if ${ac_cv_prog_DLLTOOL+:} false; then :
  6867. $as_echo_n "(cached) " >&6
  6868. else
  6869. if test -n "$DLLTOOL"; then
  6870. ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
  6871. else
  6872. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6873. for as_dir in $PATH
  6874. do
  6875. IFS=$as_save_IFS
  6876. test -z "$as_dir" && as_dir=.
  6877. for ac_exec_ext in '' $ac_executable_extensions; do
  6878. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6879. ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
  6880. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6881. break 2
  6882. fi
  6883. done
  6884. done
  6885. IFS=$as_save_IFS
  6886. fi
  6887. fi
  6888. DLLTOOL=$ac_cv_prog_DLLTOOL
  6889. if test -n "$DLLTOOL"; then
  6890. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
  6891. $as_echo "$DLLTOOL" >&6; }
  6892. else
  6893. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6894. $as_echo "no" >&6; }
  6895. fi
  6896. fi
  6897. if test -z "$ac_cv_prog_DLLTOOL"; then
  6898. ac_ct_DLLTOOL=$DLLTOOL
  6899. # Extract the first word of "dlltool", so it can be a program name with args.
  6900. set dummy dlltool; ac_word=$2
  6901. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6902. $as_echo_n "checking for $ac_word... " >&6; }
  6903. if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
  6904. $as_echo_n "(cached) " >&6
  6905. else
  6906. if test -n "$ac_ct_DLLTOOL"; then
  6907. ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
  6908. else
  6909. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6910. for as_dir in $PATH
  6911. do
  6912. IFS=$as_save_IFS
  6913. test -z "$as_dir" && as_dir=.
  6914. for ac_exec_ext in '' $ac_executable_extensions; do
  6915. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6916. ac_cv_prog_ac_ct_DLLTOOL="dlltool"
  6917. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6918. break 2
  6919. fi
  6920. done
  6921. done
  6922. IFS=$as_save_IFS
  6923. fi
  6924. fi
  6925. ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
  6926. if test -n "$ac_ct_DLLTOOL"; then
  6927. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
  6928. $as_echo "$ac_ct_DLLTOOL" >&6; }
  6929. else
  6930. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6931. $as_echo "no" >&6; }
  6932. fi
  6933. if test "x$ac_ct_DLLTOOL" = x; then
  6934. DLLTOOL="false"
  6935. else
  6936. case $cross_compiling:$ac_tool_warned in
  6937. yes:)
  6938. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6939. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6940. ac_tool_warned=yes ;;
  6941. esac
  6942. DLLTOOL=$ac_ct_DLLTOOL
  6943. fi
  6944. else
  6945. DLLTOOL="$ac_cv_prog_DLLTOOL"
  6946. fi
  6947. test -z "$DLLTOOL" && DLLTOOL=dlltool
  6948. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
  6949. $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
  6950. if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
  6951. $as_echo_n "(cached) " >&6
  6952. else
  6953. lt_cv_sharedlib_from_linklib_cmd='unknown'
  6954. case $host_os in
  6955. cygwin* | mingw* | pw32* | cegcc*)
  6956. # two different shell functions defined in ltmain.sh;
  6957. # decide which one to use based on capabilities of $DLLTOOL
  6958. case `$DLLTOOL --help 2>&1` in
  6959. *--identify-strict*)
  6960. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
  6961. ;;
  6962. *)
  6963. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
  6964. ;;
  6965. esac
  6966. ;;
  6967. *)
  6968. # fallback: assume linklib IS sharedlib
  6969. lt_cv_sharedlib_from_linklib_cmd=$ECHO
  6970. ;;
  6971. esac
  6972. fi
  6973. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
  6974. $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
  6975. sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
  6976. test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
  6977. if test -n "$ac_tool_prefix"; then
  6978. for ac_prog in ar
  6979. do
  6980. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  6981. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  6982. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6983. $as_echo_n "checking for $ac_word... " >&6; }
  6984. if ${ac_cv_prog_AR+:} false; then :
  6985. $as_echo_n "(cached) " >&6
  6986. else
  6987. if test -n "$AR"; then
  6988. ac_cv_prog_AR="$AR" # Let the user override the test.
  6989. else
  6990. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6991. for as_dir in $PATH
  6992. do
  6993. IFS=$as_save_IFS
  6994. test -z "$as_dir" && as_dir=.
  6995. for ac_exec_ext in '' $ac_executable_extensions; do
  6996. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6997. ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
  6998. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6999. break 2
  7000. fi
  7001. done
  7002. done
  7003. IFS=$as_save_IFS
  7004. fi
  7005. fi
  7006. AR=$ac_cv_prog_AR
  7007. if test -n "$AR"; then
  7008. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  7009. $as_echo "$AR" >&6; }
  7010. else
  7011. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7012. $as_echo "no" >&6; }
  7013. fi
  7014. test -n "$AR" && break
  7015. done
  7016. fi
  7017. if test -z "$AR"; then
  7018. ac_ct_AR=$AR
  7019. for ac_prog in ar
  7020. do
  7021. # Extract the first word of "$ac_prog", so it can be a program name with args.
  7022. set dummy $ac_prog; ac_word=$2
  7023. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7024. $as_echo_n "checking for $ac_word... " >&6; }
  7025. if ${ac_cv_prog_ac_ct_AR+:} false; then :
  7026. $as_echo_n "(cached) " >&6
  7027. else
  7028. if test -n "$ac_ct_AR"; then
  7029. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  7030. else
  7031. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7032. for as_dir in $PATH
  7033. do
  7034. IFS=$as_save_IFS
  7035. test -z "$as_dir" && as_dir=.
  7036. for ac_exec_ext in '' $ac_executable_extensions; do
  7037. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7038. ac_cv_prog_ac_ct_AR="$ac_prog"
  7039. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7040. break 2
  7041. fi
  7042. done
  7043. done
  7044. IFS=$as_save_IFS
  7045. fi
  7046. fi
  7047. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  7048. if test -n "$ac_ct_AR"; then
  7049. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
  7050. $as_echo "$ac_ct_AR" >&6; }
  7051. else
  7052. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7053. $as_echo "no" >&6; }
  7054. fi
  7055. test -n "$ac_ct_AR" && break
  7056. done
  7057. if test "x$ac_ct_AR" = x; then
  7058. AR="false"
  7059. else
  7060. case $cross_compiling:$ac_tool_warned in
  7061. yes:)
  7062. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7063. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7064. ac_tool_warned=yes ;;
  7065. esac
  7066. AR=$ac_ct_AR
  7067. fi
  7068. fi
  7069. : ${AR=ar}
  7070. : ${AR_FLAGS=cr}
  7071. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
  7072. $as_echo_n "checking for archiver @FILE support... " >&6; }
  7073. if ${lt_cv_ar_at_file+:} false; then :
  7074. $as_echo_n "(cached) " >&6
  7075. else
  7076. lt_cv_ar_at_file=no
  7077. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7078. /* end confdefs.h. */
  7079. int
  7080. main ()
  7081. {
  7082. ;
  7083. return 0;
  7084. }
  7085. _ACEOF
  7086. if ac_fn_c_try_compile "$LINENO"; then :
  7087. echo conftest.$ac_objext > conftest.lst
  7088. lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
  7089. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  7090. (eval $lt_ar_try) 2>&5
  7091. ac_status=$?
  7092. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  7093. test $ac_status = 0; }
  7094. if test 0 -eq "$ac_status"; then
  7095. # Ensure the archiver fails upon bogus file names.
  7096. rm -f conftest.$ac_objext libconftest.a
  7097. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  7098. (eval $lt_ar_try) 2>&5
  7099. ac_status=$?
  7100. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  7101. test $ac_status = 0; }
  7102. if test 0 -ne "$ac_status"; then
  7103. lt_cv_ar_at_file=@
  7104. fi
  7105. fi
  7106. rm -f conftest.* libconftest.a
  7107. fi
  7108. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7109. fi
  7110. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
  7111. $as_echo "$lt_cv_ar_at_file" >&6; }
  7112. if test no = "$lt_cv_ar_at_file"; then
  7113. archiver_list_spec=
  7114. else
  7115. archiver_list_spec=$lt_cv_ar_at_file
  7116. fi
  7117. if test -n "$ac_tool_prefix"; then
  7118. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  7119. set dummy ${ac_tool_prefix}strip; ac_word=$2
  7120. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7121. $as_echo_n "checking for $ac_word... " >&6; }
  7122. if ${ac_cv_prog_STRIP+:} false; then :
  7123. $as_echo_n "(cached) " >&6
  7124. else
  7125. if test -n "$STRIP"; then
  7126. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  7127. else
  7128. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7129. for as_dir in $PATH
  7130. do
  7131. IFS=$as_save_IFS
  7132. test -z "$as_dir" && as_dir=.
  7133. for ac_exec_ext in '' $ac_executable_extensions; do
  7134. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7135. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  7136. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7137. break 2
  7138. fi
  7139. done
  7140. done
  7141. IFS=$as_save_IFS
  7142. fi
  7143. fi
  7144. STRIP=$ac_cv_prog_STRIP
  7145. if test -n "$STRIP"; then
  7146. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  7147. $as_echo "$STRIP" >&6; }
  7148. else
  7149. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7150. $as_echo "no" >&6; }
  7151. fi
  7152. fi
  7153. if test -z "$ac_cv_prog_STRIP"; then
  7154. ac_ct_STRIP=$STRIP
  7155. # Extract the first word of "strip", so it can be a program name with args.
  7156. set dummy strip; ac_word=$2
  7157. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7158. $as_echo_n "checking for $ac_word... " >&6; }
  7159. if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
  7160. $as_echo_n "(cached) " >&6
  7161. else
  7162. if test -n "$ac_ct_STRIP"; then
  7163. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  7164. else
  7165. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7166. for as_dir in $PATH
  7167. do
  7168. IFS=$as_save_IFS
  7169. test -z "$as_dir" && as_dir=.
  7170. for ac_exec_ext in '' $ac_executable_extensions; do
  7171. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7172. ac_cv_prog_ac_ct_STRIP="strip"
  7173. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7174. break 2
  7175. fi
  7176. done
  7177. done
  7178. IFS=$as_save_IFS
  7179. fi
  7180. fi
  7181. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  7182. if test -n "$ac_ct_STRIP"; then
  7183. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  7184. $as_echo "$ac_ct_STRIP" >&6; }
  7185. else
  7186. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7187. $as_echo "no" >&6; }
  7188. fi
  7189. if test "x$ac_ct_STRIP" = x; then
  7190. STRIP=":"
  7191. else
  7192. case $cross_compiling:$ac_tool_warned in
  7193. yes:)
  7194. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7195. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7196. ac_tool_warned=yes ;;
  7197. esac
  7198. STRIP=$ac_ct_STRIP
  7199. fi
  7200. else
  7201. STRIP="$ac_cv_prog_STRIP"
  7202. fi
  7203. test -z "$STRIP" && STRIP=:
  7204. if test -n "$ac_tool_prefix"; then
  7205. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  7206. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  7207. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7208. $as_echo_n "checking for $ac_word... " >&6; }
  7209. if ${ac_cv_prog_RANLIB+:} false; then :
  7210. $as_echo_n "(cached) " >&6
  7211. else
  7212. if test -n "$RANLIB"; then
  7213. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  7214. else
  7215. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7216. for as_dir in $PATH
  7217. do
  7218. IFS=$as_save_IFS
  7219. test -z "$as_dir" && as_dir=.
  7220. for ac_exec_ext in '' $ac_executable_extensions; do
  7221. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7222. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  7223. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7224. break 2
  7225. fi
  7226. done
  7227. done
  7228. IFS=$as_save_IFS
  7229. fi
  7230. fi
  7231. RANLIB=$ac_cv_prog_RANLIB
  7232. if test -n "$RANLIB"; then
  7233. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  7234. $as_echo "$RANLIB" >&6; }
  7235. else
  7236. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7237. $as_echo "no" >&6; }
  7238. fi
  7239. fi
  7240. if test -z "$ac_cv_prog_RANLIB"; then
  7241. ac_ct_RANLIB=$RANLIB
  7242. # Extract the first word of "ranlib", so it can be a program name with args.
  7243. set dummy ranlib; ac_word=$2
  7244. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7245. $as_echo_n "checking for $ac_word... " >&6; }
  7246. if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
  7247. $as_echo_n "(cached) " >&6
  7248. else
  7249. if test -n "$ac_ct_RANLIB"; then
  7250. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  7251. else
  7252. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7253. for as_dir in $PATH
  7254. do
  7255. IFS=$as_save_IFS
  7256. test -z "$as_dir" && as_dir=.
  7257. for ac_exec_ext in '' $ac_executable_extensions; do
  7258. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7259. ac_cv_prog_ac_ct_RANLIB="ranlib"
  7260. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7261. break 2
  7262. fi
  7263. done
  7264. done
  7265. IFS=$as_save_IFS
  7266. fi
  7267. fi
  7268. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  7269. if test -n "$ac_ct_RANLIB"; then
  7270. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  7271. $as_echo "$ac_ct_RANLIB" >&6; }
  7272. else
  7273. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7274. $as_echo "no" >&6; }
  7275. fi
  7276. if test "x$ac_ct_RANLIB" = x; then
  7277. RANLIB=":"
  7278. else
  7279. case $cross_compiling:$ac_tool_warned in
  7280. yes:)
  7281. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7282. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7283. ac_tool_warned=yes ;;
  7284. esac
  7285. RANLIB=$ac_ct_RANLIB
  7286. fi
  7287. else
  7288. RANLIB="$ac_cv_prog_RANLIB"
  7289. fi
  7290. test -z "$RANLIB" && RANLIB=:
  7291. # Determine commands to create old-style static archives.
  7292. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
  7293. old_postinstall_cmds='chmod 644 $oldlib'
  7294. old_postuninstall_cmds=
  7295. if test -n "$RANLIB"; then
  7296. case $host_os in
  7297. bitrig* | openbsd*)
  7298. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
  7299. ;;
  7300. *)
  7301. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
  7302. ;;
  7303. esac
  7304. old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
  7305. fi
  7306. case $host_os in
  7307. darwin*)
  7308. lock_old_archive_extraction=yes ;;
  7309. *)
  7310. lock_old_archive_extraction=no ;;
  7311. esac
  7312. # If no C compiler was specified, use CC.
  7313. LTCC=${LTCC-"$CC"}
  7314. # If no C compiler flags were specified, use CFLAGS.
  7315. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  7316. # Allow CC to be a program name with arguments.
  7317. compiler=$CC
  7318. # Check for command to grab the raw symbol name followed by C symbol from nm.
  7319. { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
  7320. $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
  7321. if ${lt_cv_sys_global_symbol_pipe+:} false; then :
  7322. $as_echo_n "(cached) " >&6
  7323. else
  7324. # These are sane defaults that work on at least a few old systems.
  7325. # [They come from Ultrix. What could be older than Ultrix?!! ;)]
  7326. # Character class describing NM global symbol codes.
  7327. symcode='[BCDEGRST]'
  7328. # Regexp to match symbols that can be accessed directly from C.
  7329. sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
  7330. # Define system-specific variables.
  7331. case $host_os in
  7332. aix*)
  7333. symcode='[BCDT]'
  7334. ;;
  7335. cygwin* | mingw* | pw32* | cegcc*)
  7336. symcode='[ABCDGISTW]'
  7337. ;;
  7338. hpux*)
  7339. if test ia64 = "$host_cpu"; then
  7340. symcode='[ABCDEGRST]'
  7341. fi
  7342. ;;
  7343. irix* | nonstopux*)
  7344. symcode='[BCDEGRST]'
  7345. ;;
  7346. osf*)
  7347. symcode='[BCDEGQRST]'
  7348. ;;
  7349. solaris*)
  7350. symcode='[BDRT]'
  7351. ;;
  7352. sco3.2v5*)
  7353. symcode='[DT]'
  7354. ;;
  7355. sysv4.2uw2*)
  7356. symcode='[DT]'
  7357. ;;
  7358. sysv5* | sco5v6* | unixware* | OpenUNIX*)
  7359. symcode='[ABDT]'
  7360. ;;
  7361. sysv4)
  7362. symcode='[DFNSTU]'
  7363. ;;
  7364. esac
  7365. # If we're using GNU nm, then use its standard symbol codes.
  7366. case `$NM -V 2>&1` in
  7367. *GNU* | *'with BFD'*)
  7368. symcode='[ABCDGIRSTW]' ;;
  7369. esac
  7370. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  7371. # Gets list of data symbols to import.
  7372. lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
  7373. # Adjust the below global symbol transforms to fixup imported variables.
  7374. lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
  7375. lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
  7376. lt_c_name_lib_hook="\
  7377. -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
  7378. -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
  7379. else
  7380. # Disable hooks by default.
  7381. lt_cv_sys_global_symbol_to_import=
  7382. lt_cdecl_hook=
  7383. lt_c_name_hook=
  7384. lt_c_name_lib_hook=
  7385. fi
  7386. # Transform an extracted symbol line into a proper C declaration.
  7387. # Some systems (esp. on ia64) link data and code symbols differently,
  7388. # so use this general approach.
  7389. lt_cv_sys_global_symbol_to_cdecl="sed -n"\
  7390. $lt_cdecl_hook\
  7391. " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
  7392. " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
  7393. # Transform an extracted symbol line into symbol name and symbol address
  7394. lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
  7395. $lt_c_name_hook\
  7396. " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
  7397. " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
  7398. # Transform an extracted symbol line into symbol name with lib prefix and
  7399. # symbol address.
  7400. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
  7401. $lt_c_name_lib_hook\
  7402. " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
  7403. " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
  7404. " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
  7405. # Handle CRLF in mingw tool chain
  7406. opt_cr=
  7407. case $build_os in
  7408. mingw*)
  7409. opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  7410. ;;
  7411. esac
  7412. # Try without a prefix underscore, then with it.
  7413. for ac_symprfx in "" "_"; do
  7414. # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  7415. symxfrm="\\1 $ac_symprfx\\2 \\2"
  7416. # Write the raw and C identifiers.
  7417. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  7418. # Fake it for dumpbin and say T for any non-static function,
  7419. # D for any global variable and I for any imported variable.
  7420. # Also find C++ and __fastcall symbols from MSVC++,
  7421. # which start with @ or ?.
  7422. lt_cv_sys_global_symbol_pipe="$AWK '"\
  7423. " {last_section=section; section=\$ 3};"\
  7424. " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
  7425. " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
  7426. " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
  7427. " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
  7428. " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
  7429. " \$ 0!~/External *\|/{next};"\
  7430. " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
  7431. " {if(hide[section]) next};"\
  7432. " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
  7433. " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
  7434. " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
  7435. " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
  7436. " ' prfx=^$ac_symprfx"
  7437. else
  7438. lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  7439. fi
  7440. lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
  7441. # Check to see that the pipe works correctly.
  7442. pipe_works=no
  7443. rm -f conftest*
  7444. cat > conftest.$ac_ext <<_LT_EOF
  7445. #ifdef __cplusplus
  7446. extern "C" {
  7447. #endif
  7448. char nm_test_var;
  7449. void nm_test_func(void);
  7450. void nm_test_func(void){}
  7451. #ifdef __cplusplus
  7452. }
  7453. #endif
  7454. int main(){nm_test_var='a';nm_test_func();return(0);}
  7455. _LT_EOF
  7456. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  7457. (eval $ac_compile) 2>&5
  7458. ac_status=$?
  7459. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  7460. test $ac_status = 0; }; then
  7461. # Now try to grab the symbols.
  7462. nlist=conftest.nm
  7463. $ECHO "$as_me:$LINENO: $NM conftest.$ac_objext | $lt_cv_sys_global_symbol_pipe > $nlist" >&5
  7464. if eval "$NM" conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist 2>&5 && test -s "$nlist"; then
  7465. # Try sorting and uniquifying the output.
  7466. if sort "$nlist" | uniq > "$nlist"T; then
  7467. mv -f "$nlist"T "$nlist"
  7468. else
  7469. rm -f "$nlist"T
  7470. fi
  7471. # Make sure that we snagged all the symbols we need.
  7472. if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
  7473. if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
  7474. cat <<_LT_EOF > conftest.$ac_ext
  7475. /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
  7476. #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
  7477. /* DATA imports from DLLs on WIN32 can't be const, because runtime
  7478. relocations are performed -- see ld's documentation on pseudo-relocs. */
  7479. # define LT_DLSYM_CONST
  7480. #elif defined __osf__
  7481. /* This system does not cope well with relocations in const data. */
  7482. # define LT_DLSYM_CONST
  7483. #else
  7484. # define LT_DLSYM_CONST const
  7485. #endif
  7486. #ifdef __cplusplus
  7487. extern "C" {
  7488. #endif
  7489. _LT_EOF
  7490. # Now generate the symbol file.
  7491. eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
  7492. cat <<_LT_EOF >> conftest.$ac_ext
  7493. /* The mapping between symbol names and symbols. */
  7494. LT_DLSYM_CONST struct {
  7495. const char *name;
  7496. void *address;
  7497. }
  7498. lt__PROGRAM__LTX_preloaded_symbols[] =
  7499. {
  7500. { "@PROGRAM@", (void *) 0 },
  7501. _LT_EOF
  7502. $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
  7503. cat <<\_LT_EOF >> conftest.$ac_ext
  7504. {0, (void *) 0}
  7505. };
  7506. /* This works around a problem in FreeBSD linker */
  7507. #ifdef FREEBSD_WORKAROUND
  7508. static const void *lt_preloaded_setup() {
  7509. return lt__PROGRAM__LTX_preloaded_symbols;
  7510. }
  7511. #endif
  7512. #ifdef __cplusplus
  7513. }
  7514. #endif
  7515. _LT_EOF
  7516. # Now try linking the two files.
  7517. mv conftest.$ac_objext conftstm.$ac_objext
  7518. lt_globsym_save_LIBS=$LIBS
  7519. lt_globsym_save_CFLAGS=$CFLAGS
  7520. LIBS=conftstm.$ac_objext
  7521. CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
  7522. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  7523. (eval $ac_link) 2>&5
  7524. ac_status=$?
  7525. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  7526. test $ac_status = 0; } && test -s conftest$ac_exeext; then
  7527. pipe_works=yes
  7528. fi
  7529. LIBS=$lt_globsym_save_LIBS
  7530. CFLAGS=$lt_globsym_save_CFLAGS
  7531. else
  7532. echo "cannot find nm_test_func in $nlist" >&5
  7533. fi
  7534. else
  7535. echo "cannot find nm_test_var in $nlist" >&5
  7536. fi
  7537. else
  7538. echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
  7539. fi
  7540. else
  7541. echo "$progname: failed program was:" >&5
  7542. cat conftest.$ac_ext >&5
  7543. fi
  7544. rm -rf conftest* conftst*
  7545. # Do not use the global_symbol_pipe unless it works.
  7546. if test yes = "$pipe_works"; then
  7547. break
  7548. else
  7549. lt_cv_sys_global_symbol_pipe=
  7550. fi
  7551. done
  7552. fi
  7553. if test -z "$lt_cv_sys_global_symbol_pipe"; then
  7554. lt_cv_sys_global_symbol_to_cdecl=
  7555. fi
  7556. if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  7557. { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
  7558. $as_echo "failed" >&6; }
  7559. else
  7560. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
  7561. $as_echo "ok" >&6; }
  7562. fi
  7563. # Response file support.
  7564. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  7565. nm_file_list_spec='@'
  7566. elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
  7567. nm_file_list_spec='@'
  7568. fi
  7569. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
  7570. $as_echo_n "checking for sysroot... " >&6; }
  7571. # Check whether --with-sysroot was given.
  7572. if test "${with_sysroot+set}" = set; then :
  7573. withval=$with_sysroot;
  7574. else
  7575. with_sysroot=no
  7576. fi
  7577. lt_sysroot=
  7578. case $with_sysroot in #(
  7579. yes)
  7580. if test yes = "$GCC"; then
  7581. lt_sysroot=`$CC --print-sysroot 2>/dev/null`
  7582. fi
  7583. ;; #(
  7584. /*)
  7585. lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
  7586. ;; #(
  7587. no|'')
  7588. ;; #(
  7589. *)
  7590. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
  7591. $as_echo "$with_sysroot" >&6; }
  7592. as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
  7593. ;;
  7594. esac
  7595. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
  7596. $as_echo "${lt_sysroot:-no}" >&6; }
  7597. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
  7598. $as_echo_n "checking for a working dd... " >&6; }
  7599. if ${ac_cv_path_lt_DD+:} false; then :
  7600. $as_echo_n "(cached) " >&6
  7601. else
  7602. printf 0123456789abcdef0123456789abcdef >conftest.i
  7603. cat conftest.i conftest.i >conftest2.i
  7604. : ${lt_DD:=$DD}
  7605. if test -z "$lt_DD"; then
  7606. ac_path_lt_DD_found=false
  7607. # Loop through the user's path and test for each of PROGNAME-LIST
  7608. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7609. for as_dir in $PATH
  7610. do
  7611. IFS=$as_save_IFS
  7612. test -z "$as_dir" && as_dir=.
  7613. for ac_prog in dd; do
  7614. for ac_exec_ext in '' $ac_executable_extensions; do
  7615. ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
  7616. as_fn_executable_p "$ac_path_lt_DD" || continue
  7617. if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
  7618. cmp -s conftest.i conftest.out \
  7619. && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
  7620. fi
  7621. $ac_path_lt_DD_found && break 3
  7622. done
  7623. done
  7624. done
  7625. IFS=$as_save_IFS
  7626. if test -z "$ac_cv_path_lt_DD"; then
  7627. :
  7628. fi
  7629. else
  7630. ac_cv_path_lt_DD=$lt_DD
  7631. fi
  7632. rm -f conftest.i conftest2.i conftest.out
  7633. fi
  7634. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
  7635. $as_echo "$ac_cv_path_lt_DD" >&6; }
  7636. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
  7637. $as_echo_n "checking how to truncate binary pipes... " >&6; }
  7638. if ${lt_cv_truncate_bin+:} false; then :
  7639. $as_echo_n "(cached) " >&6
  7640. else
  7641. printf 0123456789abcdef0123456789abcdef >conftest.i
  7642. cat conftest.i conftest.i >conftest2.i
  7643. lt_cv_truncate_bin=
  7644. if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
  7645. cmp -s conftest.i conftest.out \
  7646. && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
  7647. fi
  7648. rm -f conftest.i conftest2.i conftest.out
  7649. test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
  7650. fi
  7651. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
  7652. $as_echo "$lt_cv_truncate_bin" >&6; }
  7653. # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
  7654. func_cc_basename ()
  7655. {
  7656. for cc_temp in $*""; do
  7657. case $cc_temp in
  7658. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  7659. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  7660. \-*) ;;
  7661. *) break;;
  7662. esac
  7663. done
  7664. func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  7665. }
  7666. # Check whether --enable-libtool-lock was given.
  7667. if test "${enable_libtool_lock+set}" = set; then :
  7668. enableval=$enable_libtool_lock;
  7669. fi
  7670. test no = "$enable_libtool_lock" || enable_libtool_lock=yes
  7671. # Some flags need to be propagated to the compiler or linker for good
  7672. # libtool support.
  7673. case $host in
  7674. ia64-*-hpux*)
  7675. # Find out what ABI is being produced by ac_compile, and set mode
  7676. # options accordingly.
  7677. echo 'int i;' > conftest.$ac_ext
  7678. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  7679. (eval $ac_compile) 2>&5
  7680. ac_status=$?
  7681. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  7682. test $ac_status = 0; }; then
  7683. case `/usr/bin/file conftest.$ac_objext` in
  7684. *ELF-32*)
  7685. HPUX_IA64_MODE=32
  7686. ;;
  7687. *ELF-64*)
  7688. HPUX_IA64_MODE=64
  7689. ;;
  7690. esac
  7691. fi
  7692. rm -rf conftest*
  7693. ;;
  7694. *-*-irix6*)
  7695. # Find out what ABI is being produced by ac_compile, and set linker
  7696. # options accordingly.
  7697. echo '#line '$LINENO' "configure"' > conftest.$ac_ext
  7698. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  7699. (eval $ac_compile) 2>&5
  7700. ac_status=$?
  7701. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  7702. test $ac_status = 0; }; then
  7703. if test yes = "$lt_cv_prog_gnu_ld"; then
  7704. case `/usr/bin/file conftest.$ac_objext` in
  7705. *32-bit*)
  7706. LD="${LD-ld} -melf32bsmip"
  7707. ;;
  7708. *N32*)
  7709. LD="${LD-ld} -melf32bmipn32"
  7710. ;;
  7711. *64-bit*)
  7712. LD="${LD-ld} -melf64bmip"
  7713. ;;
  7714. esac
  7715. else
  7716. case `/usr/bin/file conftest.$ac_objext` in
  7717. *32-bit*)
  7718. LD="${LD-ld} -32"
  7719. ;;
  7720. *N32*)
  7721. LD="${LD-ld} -n32"
  7722. ;;
  7723. *64-bit*)
  7724. LD="${LD-ld} -64"
  7725. ;;
  7726. esac
  7727. fi
  7728. fi
  7729. rm -rf conftest*
  7730. ;;
  7731. mips64*-*linux*)
  7732. # Find out what ABI is being produced by ac_compile, and set linker
  7733. # options accordingly.
  7734. echo '#line '$LINENO' "configure"' > conftest.$ac_ext
  7735. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  7736. (eval $ac_compile) 2>&5
  7737. ac_status=$?
  7738. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  7739. test $ac_status = 0; }; then
  7740. emul=elf
  7741. case `/usr/bin/file conftest.$ac_objext` in
  7742. *32-bit*)
  7743. emul="${emul}32"
  7744. ;;
  7745. *64-bit*)
  7746. emul="${emul}64"
  7747. ;;
  7748. esac
  7749. case `/usr/bin/file conftest.$ac_objext` in
  7750. *MSB*)
  7751. emul="${emul}btsmip"
  7752. ;;
  7753. *LSB*)
  7754. emul="${emul}ltsmip"
  7755. ;;
  7756. esac
  7757. case `/usr/bin/file conftest.$ac_objext` in
  7758. *N32*)
  7759. emul="${emul}n32"
  7760. ;;
  7761. esac
  7762. LD="${LD-ld} -m $emul"
  7763. fi
  7764. rm -rf conftest*
  7765. ;;
  7766. x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
  7767. s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
  7768. # Find out what ABI is being produced by ac_compile, and set linker
  7769. # options accordingly. Note that the listed cases only cover the
  7770. # situations where additional linker options are needed (such as when
  7771. # doing 32-bit compilation for a host where ld defaults to 64-bit, or
  7772. # vice versa); the common cases where no linker options are needed do
  7773. # not appear in the list.
  7774. echo 'int i;' > conftest.$ac_ext
  7775. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  7776. (eval $ac_compile) 2>&5
  7777. ac_status=$?
  7778. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  7779. test $ac_status = 0; }; then
  7780. case `/usr/bin/file conftest.o` in
  7781. *32-bit*)
  7782. case $host in
  7783. x86_64-*kfreebsd*-gnu)
  7784. LD="${LD-ld} -m elf_i386_fbsd"
  7785. ;;
  7786. x86_64-*linux*)
  7787. case `/usr/bin/file conftest.o` in
  7788. *x86-64*)
  7789. LD="${LD-ld} -m elf32_x86_64"
  7790. ;;
  7791. *)
  7792. LD="${LD-ld} -m elf_i386"
  7793. ;;
  7794. esac
  7795. ;;
  7796. powerpc64le-*linux*)
  7797. LD="${LD-ld} -m elf32lppclinux"
  7798. ;;
  7799. powerpc64-*linux*)
  7800. LD="${LD-ld} -m elf32ppclinux"
  7801. ;;
  7802. s390x-*linux*)
  7803. LD="${LD-ld} -m elf_s390"
  7804. ;;
  7805. sparc64-*linux*)
  7806. LD="${LD-ld} -m elf32_sparc"
  7807. ;;
  7808. esac
  7809. ;;
  7810. *64-bit*)
  7811. case $host in
  7812. x86_64-*kfreebsd*-gnu)
  7813. LD="${LD-ld} -m elf_x86_64_fbsd"
  7814. ;;
  7815. x86_64-*linux*)
  7816. LD="${LD-ld} -m elf_x86_64"
  7817. ;;
  7818. powerpcle-*linux*)
  7819. LD="${LD-ld} -m elf64lppc"
  7820. ;;
  7821. powerpc-*linux*)
  7822. LD="${LD-ld} -m elf64ppc"
  7823. ;;
  7824. s390*-*linux*|s390*-*tpf*)
  7825. LD="${LD-ld} -m elf64_s390"
  7826. ;;
  7827. sparc*-*linux*)
  7828. LD="${LD-ld} -m elf64_sparc"
  7829. ;;
  7830. esac
  7831. ;;
  7832. esac
  7833. fi
  7834. rm -rf conftest*
  7835. ;;
  7836. *-*-sco3.2v5*)
  7837. # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  7838. SAVE_CFLAGS=$CFLAGS
  7839. CFLAGS="$CFLAGS -belf"
  7840. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
  7841. $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
  7842. if ${lt_cv_cc_needs_belf+:} false; then :
  7843. $as_echo_n "(cached) " >&6
  7844. else
  7845. ac_ext=c
  7846. ac_cpp='$CPP $CPPFLAGS'
  7847. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  7848. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  7849. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  7850. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7851. /* end confdefs.h. */
  7852. int
  7853. main ()
  7854. {
  7855. ;
  7856. return 0;
  7857. }
  7858. _ACEOF
  7859. if ac_fn_c_try_link "$LINENO"; then :
  7860. lt_cv_cc_needs_belf=yes
  7861. else
  7862. lt_cv_cc_needs_belf=no
  7863. fi
  7864. rm -f core conftest.err conftest.$ac_objext \
  7865. conftest$ac_exeext conftest.$ac_ext
  7866. ac_ext=c
  7867. ac_cpp='$CPP $CPPFLAGS'
  7868. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  7869. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  7870. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  7871. fi
  7872. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
  7873. $as_echo "$lt_cv_cc_needs_belf" >&6; }
  7874. if test yes != "$lt_cv_cc_needs_belf"; then
  7875. # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  7876. CFLAGS=$SAVE_CFLAGS
  7877. fi
  7878. ;;
  7879. *-*solaris*)
  7880. # Find out what ABI is being produced by ac_compile, and set linker
  7881. # options accordingly.
  7882. echo 'int i;' > conftest.$ac_ext
  7883. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  7884. (eval $ac_compile) 2>&5
  7885. ac_status=$?
  7886. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  7887. test $ac_status = 0; }; then
  7888. case `/usr/bin/file conftest.o` in
  7889. *64-bit*)
  7890. case $lt_cv_prog_gnu_ld in
  7891. yes*)
  7892. case $host in
  7893. i?86-*-solaris*|x86_64-*-solaris*)
  7894. LD="${LD-ld} -m elf_x86_64"
  7895. ;;
  7896. sparc*-*-solaris*)
  7897. LD="${LD-ld} -m elf64_sparc"
  7898. ;;
  7899. esac
  7900. # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
  7901. if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
  7902. LD=${LD-ld}_sol2
  7903. fi
  7904. ;;
  7905. *)
  7906. if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
  7907. LD="${LD-ld} -64"
  7908. fi
  7909. ;;
  7910. esac
  7911. ;;
  7912. esac
  7913. fi
  7914. rm -rf conftest*
  7915. ;;
  7916. esac
  7917. need_locks=$enable_libtool_lock
  7918. if test -n "$ac_tool_prefix"; then
  7919. # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
  7920. set dummy ${ac_tool_prefix}mt; ac_word=$2
  7921. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7922. $as_echo_n "checking for $ac_word... " >&6; }
  7923. if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
  7924. $as_echo_n "(cached) " >&6
  7925. else
  7926. if test -n "$MANIFEST_TOOL"; then
  7927. ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
  7928. else
  7929. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7930. for as_dir in $PATH
  7931. do
  7932. IFS=$as_save_IFS
  7933. test -z "$as_dir" && as_dir=.
  7934. for ac_exec_ext in '' $ac_executable_extensions; do
  7935. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7936. ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
  7937. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7938. break 2
  7939. fi
  7940. done
  7941. done
  7942. IFS=$as_save_IFS
  7943. fi
  7944. fi
  7945. MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
  7946. if test -n "$MANIFEST_TOOL"; then
  7947. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
  7948. $as_echo "$MANIFEST_TOOL" >&6; }
  7949. else
  7950. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7951. $as_echo "no" >&6; }
  7952. fi
  7953. fi
  7954. if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
  7955. ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
  7956. # Extract the first word of "mt", so it can be a program name with args.
  7957. set dummy mt; ac_word=$2
  7958. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7959. $as_echo_n "checking for $ac_word... " >&6; }
  7960. if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
  7961. $as_echo_n "(cached) " >&6
  7962. else
  7963. if test -n "$ac_ct_MANIFEST_TOOL"; then
  7964. ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
  7965. else
  7966. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7967. for as_dir in $PATH
  7968. do
  7969. IFS=$as_save_IFS
  7970. test -z "$as_dir" && as_dir=.
  7971. for ac_exec_ext in '' $ac_executable_extensions; do
  7972. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7973. ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
  7974. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7975. break 2
  7976. fi
  7977. done
  7978. done
  7979. IFS=$as_save_IFS
  7980. fi
  7981. fi
  7982. ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
  7983. if test -n "$ac_ct_MANIFEST_TOOL"; then
  7984. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
  7985. $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
  7986. else
  7987. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7988. $as_echo "no" >&6; }
  7989. fi
  7990. if test "x$ac_ct_MANIFEST_TOOL" = x; then
  7991. MANIFEST_TOOL=":"
  7992. else
  7993. case $cross_compiling:$ac_tool_warned in
  7994. yes:)
  7995. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7996. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7997. ac_tool_warned=yes ;;
  7998. esac
  7999. MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
  8000. fi
  8001. else
  8002. MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
  8003. fi
  8004. test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
  8005. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
  8006. $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
  8007. if ${lt_cv_path_mainfest_tool+:} false; then :
  8008. $as_echo_n "(cached) " >&6
  8009. else
  8010. lt_cv_path_mainfest_tool=no
  8011. echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
  8012. $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
  8013. cat conftest.err >&5
  8014. if $GREP 'Manifest Tool' conftest.out > /dev/null; then
  8015. lt_cv_path_mainfest_tool=yes
  8016. fi
  8017. rm -f conftest*
  8018. fi
  8019. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
  8020. $as_echo "$lt_cv_path_mainfest_tool" >&6; }
  8021. if test yes != "$lt_cv_path_mainfest_tool"; then
  8022. MANIFEST_TOOL=:
  8023. fi
  8024. case $host_os in
  8025. rhapsody* | darwin*)
  8026. if test -n "$ac_tool_prefix"; then
  8027. # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
  8028. set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
  8029. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8030. $as_echo_n "checking for $ac_word... " >&6; }
  8031. if ${ac_cv_prog_DSYMUTIL+:} false; then :
  8032. $as_echo_n "(cached) " >&6
  8033. else
  8034. if test -n "$DSYMUTIL"; then
  8035. ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
  8036. else
  8037. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8038. for as_dir in $PATH
  8039. do
  8040. IFS=$as_save_IFS
  8041. test -z "$as_dir" && as_dir=.
  8042. for ac_exec_ext in '' $ac_executable_extensions; do
  8043. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  8044. ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
  8045. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  8046. break 2
  8047. fi
  8048. done
  8049. done
  8050. IFS=$as_save_IFS
  8051. fi
  8052. fi
  8053. DSYMUTIL=$ac_cv_prog_DSYMUTIL
  8054. if test -n "$DSYMUTIL"; then
  8055. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
  8056. $as_echo "$DSYMUTIL" >&6; }
  8057. else
  8058. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8059. $as_echo "no" >&6; }
  8060. fi
  8061. fi
  8062. if test -z "$ac_cv_prog_DSYMUTIL"; then
  8063. ac_ct_DSYMUTIL=$DSYMUTIL
  8064. # Extract the first word of "dsymutil", so it can be a program name with args.
  8065. set dummy dsymutil; ac_word=$2
  8066. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8067. $as_echo_n "checking for $ac_word... " >&6; }
  8068. if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
  8069. $as_echo_n "(cached) " >&6
  8070. else
  8071. if test -n "$ac_ct_DSYMUTIL"; then
  8072. ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
  8073. else
  8074. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8075. for as_dir in $PATH
  8076. do
  8077. IFS=$as_save_IFS
  8078. test -z "$as_dir" && as_dir=.
  8079. for ac_exec_ext in '' $ac_executable_extensions; do
  8080. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  8081. ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
  8082. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  8083. break 2
  8084. fi
  8085. done
  8086. done
  8087. IFS=$as_save_IFS
  8088. fi
  8089. fi
  8090. ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
  8091. if test -n "$ac_ct_DSYMUTIL"; then
  8092. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
  8093. $as_echo "$ac_ct_DSYMUTIL" >&6; }
  8094. else
  8095. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8096. $as_echo "no" >&6; }
  8097. fi
  8098. if test "x$ac_ct_DSYMUTIL" = x; then
  8099. DSYMUTIL=":"
  8100. else
  8101. case $cross_compiling:$ac_tool_warned in
  8102. yes:)
  8103. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  8104. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  8105. ac_tool_warned=yes ;;
  8106. esac
  8107. DSYMUTIL=$ac_ct_DSYMUTIL
  8108. fi
  8109. else
  8110. DSYMUTIL="$ac_cv_prog_DSYMUTIL"
  8111. fi
  8112. if test -n "$ac_tool_prefix"; then
  8113. # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
  8114. set dummy ${ac_tool_prefix}nmedit; ac_word=$2
  8115. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8116. $as_echo_n "checking for $ac_word... " >&6; }
  8117. if ${ac_cv_prog_NMEDIT+:} false; then :
  8118. $as_echo_n "(cached) " >&6
  8119. else
  8120. if test -n "$NMEDIT"; then
  8121. ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
  8122. else
  8123. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8124. for as_dir in $PATH
  8125. do
  8126. IFS=$as_save_IFS
  8127. test -z "$as_dir" && as_dir=.
  8128. for ac_exec_ext in '' $ac_executable_extensions; do
  8129. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  8130. ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
  8131. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  8132. break 2
  8133. fi
  8134. done
  8135. done
  8136. IFS=$as_save_IFS
  8137. fi
  8138. fi
  8139. NMEDIT=$ac_cv_prog_NMEDIT
  8140. if test -n "$NMEDIT"; then
  8141. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
  8142. $as_echo "$NMEDIT" >&6; }
  8143. else
  8144. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8145. $as_echo "no" >&6; }
  8146. fi
  8147. fi
  8148. if test -z "$ac_cv_prog_NMEDIT"; then
  8149. ac_ct_NMEDIT=$NMEDIT
  8150. # Extract the first word of "nmedit", so it can be a program name with args.
  8151. set dummy nmedit; ac_word=$2
  8152. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8153. $as_echo_n "checking for $ac_word... " >&6; }
  8154. if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
  8155. $as_echo_n "(cached) " >&6
  8156. else
  8157. if test -n "$ac_ct_NMEDIT"; then
  8158. ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
  8159. else
  8160. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8161. for as_dir in $PATH
  8162. do
  8163. IFS=$as_save_IFS
  8164. test -z "$as_dir" && as_dir=.
  8165. for ac_exec_ext in '' $ac_executable_extensions; do
  8166. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  8167. ac_cv_prog_ac_ct_NMEDIT="nmedit"
  8168. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  8169. break 2
  8170. fi
  8171. done
  8172. done
  8173. IFS=$as_save_IFS
  8174. fi
  8175. fi
  8176. ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
  8177. if test -n "$ac_ct_NMEDIT"; then
  8178. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
  8179. $as_echo "$ac_ct_NMEDIT" >&6; }
  8180. else
  8181. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8182. $as_echo "no" >&6; }
  8183. fi
  8184. if test "x$ac_ct_NMEDIT" = x; then
  8185. NMEDIT=":"
  8186. else
  8187. case $cross_compiling:$ac_tool_warned in
  8188. yes:)
  8189. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  8190. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  8191. ac_tool_warned=yes ;;
  8192. esac
  8193. NMEDIT=$ac_ct_NMEDIT
  8194. fi
  8195. else
  8196. NMEDIT="$ac_cv_prog_NMEDIT"
  8197. fi
  8198. if test -n "$ac_tool_prefix"; then
  8199. # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
  8200. set dummy ${ac_tool_prefix}lipo; ac_word=$2
  8201. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8202. $as_echo_n "checking for $ac_word... " >&6; }
  8203. if ${ac_cv_prog_LIPO+:} false; then :
  8204. $as_echo_n "(cached) " >&6
  8205. else
  8206. if test -n "$LIPO"; then
  8207. ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
  8208. else
  8209. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8210. for as_dir in $PATH
  8211. do
  8212. IFS=$as_save_IFS
  8213. test -z "$as_dir" && as_dir=.
  8214. for ac_exec_ext in '' $ac_executable_extensions; do
  8215. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  8216. ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
  8217. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  8218. break 2
  8219. fi
  8220. done
  8221. done
  8222. IFS=$as_save_IFS
  8223. fi
  8224. fi
  8225. LIPO=$ac_cv_prog_LIPO
  8226. if test -n "$LIPO"; then
  8227. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
  8228. $as_echo "$LIPO" >&6; }
  8229. else
  8230. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8231. $as_echo "no" >&6; }
  8232. fi
  8233. fi
  8234. if test -z "$ac_cv_prog_LIPO"; then
  8235. ac_ct_LIPO=$LIPO
  8236. # Extract the first word of "lipo", so it can be a program name with args.
  8237. set dummy lipo; ac_word=$2
  8238. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8239. $as_echo_n "checking for $ac_word... " >&6; }
  8240. if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
  8241. $as_echo_n "(cached) " >&6
  8242. else
  8243. if test -n "$ac_ct_LIPO"; then
  8244. ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
  8245. else
  8246. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8247. for as_dir in $PATH
  8248. do
  8249. IFS=$as_save_IFS
  8250. test -z "$as_dir" && as_dir=.
  8251. for ac_exec_ext in '' $ac_executable_extensions; do
  8252. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  8253. ac_cv_prog_ac_ct_LIPO="lipo"
  8254. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  8255. break 2
  8256. fi
  8257. done
  8258. done
  8259. IFS=$as_save_IFS
  8260. fi
  8261. fi
  8262. ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
  8263. if test -n "$ac_ct_LIPO"; then
  8264. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
  8265. $as_echo "$ac_ct_LIPO" >&6; }
  8266. else
  8267. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8268. $as_echo "no" >&6; }
  8269. fi
  8270. if test "x$ac_ct_LIPO" = x; then
  8271. LIPO=":"
  8272. else
  8273. case $cross_compiling:$ac_tool_warned in
  8274. yes:)
  8275. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  8276. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  8277. ac_tool_warned=yes ;;
  8278. esac
  8279. LIPO=$ac_ct_LIPO
  8280. fi
  8281. else
  8282. LIPO="$ac_cv_prog_LIPO"
  8283. fi
  8284. if test -n "$ac_tool_prefix"; then
  8285. # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
  8286. set dummy ${ac_tool_prefix}otool; ac_word=$2
  8287. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8288. $as_echo_n "checking for $ac_word... " >&6; }
  8289. if ${ac_cv_prog_OTOOL+:} false; then :
  8290. $as_echo_n "(cached) " >&6
  8291. else
  8292. if test -n "$OTOOL"; then
  8293. ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
  8294. else
  8295. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8296. for as_dir in $PATH
  8297. do
  8298. IFS=$as_save_IFS
  8299. test -z "$as_dir" && as_dir=.
  8300. for ac_exec_ext in '' $ac_executable_extensions; do
  8301. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  8302. ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
  8303. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  8304. break 2
  8305. fi
  8306. done
  8307. done
  8308. IFS=$as_save_IFS
  8309. fi
  8310. fi
  8311. OTOOL=$ac_cv_prog_OTOOL
  8312. if test -n "$OTOOL"; then
  8313. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
  8314. $as_echo "$OTOOL" >&6; }
  8315. else
  8316. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8317. $as_echo "no" >&6; }
  8318. fi
  8319. fi
  8320. if test -z "$ac_cv_prog_OTOOL"; then
  8321. ac_ct_OTOOL=$OTOOL
  8322. # Extract the first word of "otool", so it can be a program name with args.
  8323. set dummy otool; ac_word=$2
  8324. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8325. $as_echo_n "checking for $ac_word... " >&6; }
  8326. if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
  8327. $as_echo_n "(cached) " >&6
  8328. else
  8329. if test -n "$ac_ct_OTOOL"; then
  8330. ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
  8331. else
  8332. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8333. for as_dir in $PATH
  8334. do
  8335. IFS=$as_save_IFS
  8336. test -z "$as_dir" && as_dir=.
  8337. for ac_exec_ext in '' $ac_executable_extensions; do
  8338. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  8339. ac_cv_prog_ac_ct_OTOOL="otool"
  8340. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  8341. break 2
  8342. fi
  8343. done
  8344. done
  8345. IFS=$as_save_IFS
  8346. fi
  8347. fi
  8348. ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
  8349. if test -n "$ac_ct_OTOOL"; then
  8350. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
  8351. $as_echo "$ac_ct_OTOOL" >&6; }
  8352. else
  8353. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8354. $as_echo "no" >&6; }
  8355. fi
  8356. if test "x$ac_ct_OTOOL" = x; then
  8357. OTOOL=":"
  8358. else
  8359. case $cross_compiling:$ac_tool_warned in
  8360. yes:)
  8361. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  8362. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  8363. ac_tool_warned=yes ;;
  8364. esac
  8365. OTOOL=$ac_ct_OTOOL
  8366. fi
  8367. else
  8368. OTOOL="$ac_cv_prog_OTOOL"
  8369. fi
  8370. if test -n "$ac_tool_prefix"; then
  8371. # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
  8372. set dummy ${ac_tool_prefix}otool64; ac_word=$2
  8373. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8374. $as_echo_n "checking for $ac_word... " >&6; }
  8375. if ${ac_cv_prog_OTOOL64+:} false; then :
  8376. $as_echo_n "(cached) " >&6
  8377. else
  8378. if test -n "$OTOOL64"; then
  8379. ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
  8380. else
  8381. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8382. for as_dir in $PATH
  8383. do
  8384. IFS=$as_save_IFS
  8385. test -z "$as_dir" && as_dir=.
  8386. for ac_exec_ext in '' $ac_executable_extensions; do
  8387. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  8388. ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
  8389. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  8390. break 2
  8391. fi
  8392. done
  8393. done
  8394. IFS=$as_save_IFS
  8395. fi
  8396. fi
  8397. OTOOL64=$ac_cv_prog_OTOOL64
  8398. if test -n "$OTOOL64"; then
  8399. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
  8400. $as_echo "$OTOOL64" >&6; }
  8401. else
  8402. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8403. $as_echo "no" >&6; }
  8404. fi
  8405. fi
  8406. if test -z "$ac_cv_prog_OTOOL64"; then
  8407. ac_ct_OTOOL64=$OTOOL64
  8408. # Extract the first word of "otool64", so it can be a program name with args.
  8409. set dummy otool64; ac_word=$2
  8410. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8411. $as_echo_n "checking for $ac_word... " >&6; }
  8412. if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
  8413. $as_echo_n "(cached) " >&6
  8414. else
  8415. if test -n "$ac_ct_OTOOL64"; then
  8416. ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
  8417. else
  8418. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8419. for as_dir in $PATH
  8420. do
  8421. IFS=$as_save_IFS
  8422. test -z "$as_dir" && as_dir=.
  8423. for ac_exec_ext in '' $ac_executable_extensions; do
  8424. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  8425. ac_cv_prog_ac_ct_OTOOL64="otool64"
  8426. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  8427. break 2
  8428. fi
  8429. done
  8430. done
  8431. IFS=$as_save_IFS
  8432. fi
  8433. fi
  8434. ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
  8435. if test -n "$ac_ct_OTOOL64"; then
  8436. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
  8437. $as_echo "$ac_ct_OTOOL64" >&6; }
  8438. else
  8439. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8440. $as_echo "no" >&6; }
  8441. fi
  8442. if test "x$ac_ct_OTOOL64" = x; then
  8443. OTOOL64=":"
  8444. else
  8445. case $cross_compiling:$ac_tool_warned in
  8446. yes:)
  8447. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  8448. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  8449. ac_tool_warned=yes ;;
  8450. esac
  8451. OTOOL64=$ac_ct_OTOOL64
  8452. fi
  8453. else
  8454. OTOOL64="$ac_cv_prog_OTOOL64"
  8455. fi
  8456. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
  8457. $as_echo_n "checking for -single_module linker flag... " >&6; }
  8458. if ${lt_cv_apple_cc_single_mod+:} false; then :
  8459. $as_echo_n "(cached) " >&6
  8460. else
  8461. lt_cv_apple_cc_single_mod=no
  8462. if test -z "$LT_MULTI_MODULE"; then
  8463. # By default we will add the -single_module flag. You can override
  8464. # by either setting the environment variable LT_MULTI_MODULE
  8465. # non-empty at configure time, or by adding -multi_module to the
  8466. # link flags.
  8467. rm -rf libconftest.dylib*
  8468. echo "int foo(void){return 1;}" > conftest.c
  8469. echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  8470. -dynamiclib -Wl,-single_module conftest.c" >&5
  8471. $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  8472. -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
  8473. _lt_result=$?
  8474. # If there is a non-empty error log, and "single_module"
  8475. # appears in it, assume the flag caused a linker warning
  8476. if test -s conftest.err && $GREP single_module conftest.err; then
  8477. cat conftest.err >&5
  8478. # Otherwise, if the output was created with a 0 exit code from
  8479. # the compiler, it worked.
  8480. elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
  8481. lt_cv_apple_cc_single_mod=yes
  8482. else
  8483. cat conftest.err >&5
  8484. fi
  8485. rm -rf libconftest.dylib*
  8486. rm -f conftest.*
  8487. fi
  8488. fi
  8489. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
  8490. $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
  8491. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
  8492. $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
  8493. if ${lt_cv_ld_exported_symbols_list+:} false; then :
  8494. $as_echo_n "(cached) " >&6
  8495. else
  8496. lt_cv_ld_exported_symbols_list=no
  8497. save_LDFLAGS=$LDFLAGS
  8498. echo "_main" > conftest.sym
  8499. LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
  8500. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8501. /* end confdefs.h. */
  8502. int
  8503. main ()
  8504. {
  8505. ;
  8506. return 0;
  8507. }
  8508. _ACEOF
  8509. if ac_fn_c_try_link "$LINENO"; then :
  8510. lt_cv_ld_exported_symbols_list=yes
  8511. else
  8512. lt_cv_ld_exported_symbols_list=no
  8513. fi
  8514. rm -f core conftest.err conftest.$ac_objext \
  8515. conftest$ac_exeext conftest.$ac_ext
  8516. LDFLAGS=$save_LDFLAGS
  8517. fi
  8518. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
  8519. $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
  8520. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
  8521. $as_echo_n "checking for -force_load linker flag... " >&6; }
  8522. if ${lt_cv_ld_force_load+:} false; then :
  8523. $as_echo_n "(cached) " >&6
  8524. else
  8525. lt_cv_ld_force_load=no
  8526. cat > conftest.c << _LT_EOF
  8527. int forced_loaded() { return 2;}
  8528. _LT_EOF
  8529. echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
  8530. $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
  8531. echo "$AR cr libconftest.a conftest.o" >&5
  8532. $AR cr libconftest.a conftest.o 2>&5
  8533. echo "$RANLIB libconftest.a" >&5
  8534. $RANLIB libconftest.a 2>&5
  8535. cat > conftest.c << _LT_EOF
  8536. int main() { return 0;}
  8537. _LT_EOF
  8538. echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
  8539. $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
  8540. _lt_result=$?
  8541. if test -s conftest.err && $GREP force_load conftest.err; then
  8542. cat conftest.err >&5
  8543. elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
  8544. lt_cv_ld_force_load=yes
  8545. else
  8546. cat conftest.err >&5
  8547. fi
  8548. rm -f conftest.err libconftest.a conftest conftest.c
  8549. rm -rf conftest.dSYM
  8550. fi
  8551. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
  8552. $as_echo "$lt_cv_ld_force_load" >&6; }
  8553. case $host_os in
  8554. rhapsody* | darwin1.[012])
  8555. _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
  8556. darwin1.*)
  8557. _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
  8558. darwin*) # darwin 5.x on
  8559. # if running on 10.5 or later, the deployment target defaults
  8560. # to the OS version, if on x86, and 10.4, the deployment
  8561. # target defaults to 10.4. Don't you love it?
  8562. case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
  8563. 10.0,*86*-darwin8*|10.0,*-darwin[912]*)
  8564. _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
  8565. 10.[012][,.]*)
  8566. _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
  8567. 10.*|11.*)
  8568. _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
  8569. esac
  8570. ;;
  8571. esac
  8572. if test yes = "$lt_cv_apple_cc_single_mod"; then
  8573. _lt_dar_single_mod='$single_module'
  8574. fi
  8575. if test yes = "$lt_cv_ld_exported_symbols_list"; then
  8576. _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
  8577. else
  8578. _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
  8579. fi
  8580. if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
  8581. _lt_dsymutil='~$DSYMUTIL $lib || :'
  8582. else
  8583. _lt_dsymutil=
  8584. fi
  8585. ;;
  8586. esac
  8587. # func_munge_path_list VARIABLE PATH
  8588. # -----------------------------------
  8589. # VARIABLE is name of variable containing _space_ separated list of
  8590. # directories to be munged by the contents of PATH, which is string
  8591. # having a format:
  8592. # "DIR[:DIR]:"
  8593. # string "DIR[ DIR]" will be prepended to VARIABLE
  8594. # ":DIR[:DIR]"
  8595. # string "DIR[ DIR]" will be appended to VARIABLE
  8596. # "DIRP[:DIRP]::[DIRA:]DIRA"
  8597. # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
  8598. # "DIRA[ DIRA]" will be appended to VARIABLE
  8599. # "DIR[:DIR]"
  8600. # VARIABLE will be replaced by "DIR[ DIR]"
  8601. func_munge_path_list ()
  8602. {
  8603. case x$2 in
  8604. x)
  8605. ;;
  8606. *:)
  8607. eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
  8608. ;;
  8609. x:*)
  8610. eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
  8611. ;;
  8612. *::*)
  8613. eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
  8614. eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
  8615. ;;
  8616. *)
  8617. eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
  8618. ;;
  8619. esac
  8620. }
  8621. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  8622. $as_echo_n "checking for ANSI C header files... " >&6; }
  8623. if ${ac_cv_header_stdc+:} false; then :
  8624. $as_echo_n "(cached) " >&6
  8625. else
  8626. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8627. /* end confdefs.h. */
  8628. #include <stdlib.h>
  8629. #include <stdarg.h>
  8630. #include <string.h>
  8631. #include <float.h>
  8632. int
  8633. main ()
  8634. {
  8635. ;
  8636. return 0;
  8637. }
  8638. _ACEOF
  8639. if ac_fn_c_try_compile "$LINENO"; then :
  8640. ac_cv_header_stdc=yes
  8641. else
  8642. ac_cv_header_stdc=no
  8643. fi
  8644. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8645. if test $ac_cv_header_stdc = yes; then
  8646. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  8647. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8648. /* end confdefs.h. */
  8649. #include <string.h>
  8650. _ACEOF
  8651. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  8652. $EGREP "memchr" >/dev/null 2>&1; then :
  8653. else
  8654. ac_cv_header_stdc=no
  8655. fi
  8656. rm -f conftest*
  8657. fi
  8658. if test $ac_cv_header_stdc = yes; then
  8659. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  8660. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8661. /* end confdefs.h. */
  8662. #include <stdlib.h>
  8663. _ACEOF
  8664. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  8665. $EGREP "free" >/dev/null 2>&1; then :
  8666. else
  8667. ac_cv_header_stdc=no
  8668. fi
  8669. rm -f conftest*
  8670. fi
  8671. if test $ac_cv_header_stdc = yes; then
  8672. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  8673. if test "$cross_compiling" = yes; then :
  8674. :
  8675. else
  8676. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8677. /* end confdefs.h. */
  8678. #include <ctype.h>
  8679. #include <stdlib.h>
  8680. #if ((' ' & 0x0FF) == 0x020)
  8681. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  8682. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  8683. #else
  8684. # define ISLOWER(c) \
  8685. (('a' <= (c) && (c) <= 'i') \
  8686. || ('j' <= (c) && (c) <= 'r') \
  8687. || ('s' <= (c) && (c) <= 'z'))
  8688. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  8689. #endif
  8690. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  8691. int
  8692. main ()
  8693. {
  8694. int i;
  8695. for (i = 0; i < 256; i++)
  8696. if (XOR (islower (i), ISLOWER (i))
  8697. || toupper (i) != TOUPPER (i))
  8698. return 2;
  8699. return 0;
  8700. }
  8701. _ACEOF
  8702. if ac_fn_c_try_run "$LINENO"; then :
  8703. else
  8704. ac_cv_header_stdc=no
  8705. fi
  8706. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  8707. conftest.$ac_objext conftest.beam conftest.$ac_ext
  8708. fi
  8709. fi
  8710. fi
  8711. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  8712. $as_echo "$ac_cv_header_stdc" >&6; }
  8713. if test $ac_cv_header_stdc = yes; then
  8714. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  8715. fi
  8716. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  8717. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  8718. inttypes.h stdint.h unistd.h
  8719. do :
  8720. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  8721. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  8722. "
  8723. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  8724. cat >>confdefs.h <<_ACEOF
  8725. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  8726. _ACEOF
  8727. fi
  8728. done
  8729. for ac_header in dlfcn.h
  8730. do :
  8731. ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
  8732. "
  8733. if test "x$ac_cv_header_dlfcn_h" = xyes; then :
  8734. cat >>confdefs.h <<_ACEOF
  8735. #define HAVE_DLFCN_H 1
  8736. _ACEOF
  8737. fi
  8738. done
  8739. func_stripname_cnf ()
  8740. {
  8741. case $2 in
  8742. .*) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%\\\\$2\$%%"`;;
  8743. *) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%$2\$%%"`;;
  8744. esac
  8745. } # func_stripname_cnf
  8746. # Set options
  8747. enable_dlopen=no
  8748. enable_win32_dll=no
  8749. # Check whether --enable-shared was given.
  8750. if test "${enable_shared+set}" = set; then :
  8751. enableval=$enable_shared; p=${PACKAGE-default}
  8752. case $enableval in
  8753. yes) enable_shared=yes ;;
  8754. no) enable_shared=no ;;
  8755. *)
  8756. enable_shared=no
  8757. # Look at the argument we got. We use all the common list separators.
  8758. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
  8759. for pkg in $enableval; do
  8760. IFS=$lt_save_ifs
  8761. if test "X$pkg" = "X$p"; then
  8762. enable_shared=yes
  8763. fi
  8764. done
  8765. IFS=$lt_save_ifs
  8766. ;;
  8767. esac
  8768. else
  8769. enable_shared=yes
  8770. fi
  8771. # Check whether --enable-static was given.
  8772. if test "${enable_static+set}" = set; then :
  8773. enableval=$enable_static; p=${PACKAGE-default}
  8774. case $enableval in
  8775. yes) enable_static=yes ;;
  8776. no) enable_static=no ;;
  8777. *)
  8778. enable_static=no
  8779. # Look at the argument we got. We use all the common list separators.
  8780. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
  8781. for pkg in $enableval; do
  8782. IFS=$lt_save_ifs
  8783. if test "X$pkg" = "X$p"; then
  8784. enable_static=yes
  8785. fi
  8786. done
  8787. IFS=$lt_save_ifs
  8788. ;;
  8789. esac
  8790. else
  8791. enable_static=yes
  8792. fi
  8793. # Check whether --with-pic was given.
  8794. if test "${with_pic+set}" = set; then :
  8795. withval=$with_pic; lt_p=${PACKAGE-default}
  8796. case $withval in
  8797. yes|no) pic_mode=$withval ;;
  8798. *)
  8799. pic_mode=default
  8800. # Look at the argument we got. We use all the common list separators.
  8801. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
  8802. for lt_pkg in $withval; do
  8803. IFS=$lt_save_ifs
  8804. if test "X$lt_pkg" = "X$lt_p"; then
  8805. pic_mode=yes
  8806. fi
  8807. done
  8808. IFS=$lt_save_ifs
  8809. ;;
  8810. esac
  8811. else
  8812. pic_mode=default
  8813. fi
  8814. # Check whether --enable-fast-install was given.
  8815. if test "${enable_fast_install+set}" = set; then :
  8816. enableval=$enable_fast_install; p=${PACKAGE-default}
  8817. case $enableval in
  8818. yes) enable_fast_install=yes ;;
  8819. no) enable_fast_install=no ;;
  8820. *)
  8821. enable_fast_install=no
  8822. # Look at the argument we got. We use all the common list separators.
  8823. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
  8824. for pkg in $enableval; do
  8825. IFS=$lt_save_ifs
  8826. if test "X$pkg" = "X$p"; then
  8827. enable_fast_install=yes
  8828. fi
  8829. done
  8830. IFS=$lt_save_ifs
  8831. ;;
  8832. esac
  8833. else
  8834. enable_fast_install=yes
  8835. fi
  8836. shared_archive_member_spec=
  8837. case $host,$enable_shared in
  8838. power*-*-aix[5-9]*,yes)
  8839. { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
  8840. $as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
  8841. # Check whether --with-aix-soname was given.
  8842. if test "${with_aix_soname+set}" = set; then :
  8843. withval=$with_aix_soname; case $withval in
  8844. aix|svr4|both)
  8845. ;;
  8846. *)
  8847. as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
  8848. ;;
  8849. esac
  8850. lt_cv_with_aix_soname=$with_aix_soname
  8851. else
  8852. if ${lt_cv_with_aix_soname+:} false; then :
  8853. $as_echo_n "(cached) " >&6
  8854. else
  8855. lt_cv_with_aix_soname=aix
  8856. fi
  8857. with_aix_soname=$lt_cv_with_aix_soname
  8858. fi
  8859. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
  8860. $as_echo "$with_aix_soname" >&6; }
  8861. if test aix != "$with_aix_soname"; then
  8862. # For the AIX way of multilib, we name the shared archive member
  8863. # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
  8864. # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
  8865. # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
  8866. # the AIX toolchain works better with OBJECT_MODE set (default 32).
  8867. if test 64 = "${OBJECT_MODE-32}"; then
  8868. shared_archive_member_spec=shr_64
  8869. else
  8870. shared_archive_member_spec=shr
  8871. fi
  8872. fi
  8873. ;;
  8874. *)
  8875. with_aix_soname=aix
  8876. ;;
  8877. esac
  8878. # This can be used to rebuild libtool when needed
  8879. LIBTOOL_DEPS=$ltmain
  8880. # Always use our own libtool.
  8881. LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  8882. test -z "$LN_S" && LN_S="ln -s"
  8883. if test -n "${ZSH_VERSION+set}"; then
  8884. setopt NO_GLOB_SUBST
  8885. fi
  8886. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
  8887. $as_echo_n "checking for objdir... " >&6; }
  8888. if ${lt_cv_objdir+:} false; then :
  8889. $as_echo_n "(cached) " >&6
  8890. else
  8891. rm -f .libs 2>/dev/null
  8892. mkdir .libs 2>/dev/null
  8893. if test -d .libs; then
  8894. lt_cv_objdir=.libs
  8895. else
  8896. # MS-DOS does not allow filenames that begin with a dot.
  8897. lt_cv_objdir=_libs
  8898. fi
  8899. rmdir .libs 2>/dev/null
  8900. fi
  8901. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
  8902. $as_echo "$lt_cv_objdir" >&6; }
  8903. objdir=$lt_cv_objdir
  8904. cat >>confdefs.h <<_ACEOF
  8905. #define LT_OBJDIR "$lt_cv_objdir/"
  8906. _ACEOF
  8907. case $host_os in
  8908. aix3*)
  8909. # AIX sometimes has problems with the GCC collect2 program. For some
  8910. # reason, if we set the COLLECT_NAMES environment variable, the problems
  8911. # vanish in a puff of smoke.
  8912. if test set != "${COLLECT_NAMES+set}"; then
  8913. COLLECT_NAMES=
  8914. export COLLECT_NAMES
  8915. fi
  8916. ;;
  8917. esac
  8918. # Global variables:
  8919. ofile=libtool
  8920. can_build_shared=yes
  8921. # All known linkers require a '.a' archive for static linking (except MSVC,
  8922. # which needs '.lib').
  8923. libext=a
  8924. with_gnu_ld=$lt_cv_prog_gnu_ld
  8925. old_CC=$CC
  8926. old_CFLAGS=$CFLAGS
  8927. # Set sane defaults for various variables
  8928. test -z "$CC" && CC=cc
  8929. test -z "$LTCC" && LTCC=$CC
  8930. test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  8931. test -z "$LD" && LD=ld
  8932. test -z "$ac_objext" && ac_objext=o
  8933. func_cc_basename $compiler
  8934. cc_basename=$func_cc_basename_result
  8935. # Only perform the check for file, if the check method requires it
  8936. test -z "$MAGIC_CMD" && MAGIC_CMD=file
  8937. case $deplibs_check_method in
  8938. file_magic*)
  8939. if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  8940. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
  8941. $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
  8942. if ${lt_cv_path_MAGIC_CMD+:} false; then :
  8943. $as_echo_n "(cached) " >&6
  8944. else
  8945. case $MAGIC_CMD in
  8946. [\\/*] | ?:[\\/]*)
  8947. lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
  8948. ;;
  8949. *)
  8950. lt_save_MAGIC_CMD=$MAGIC_CMD
  8951. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  8952. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  8953. for ac_dir in $ac_dummy; do
  8954. IFS=$lt_save_ifs
  8955. test -z "$ac_dir" && ac_dir=.
  8956. if test -f "$ac_dir/${ac_tool_prefix}file"; then
  8957. lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
  8958. if test -n "$file_magic_test_file"; then
  8959. case $deplibs_check_method in
  8960. "file_magic "*)
  8961. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  8962. MAGIC_CMD=$lt_cv_path_MAGIC_CMD
  8963. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  8964. $EGREP "$file_magic_regex" > /dev/null; then
  8965. :
  8966. else
  8967. cat <<_LT_EOF 1>&2
  8968. *** Warning: the command libtool uses to detect shared libraries,
  8969. *** $file_magic_cmd, produces output that libtool cannot recognize.
  8970. *** The result is that libtool may fail to recognize shared libraries
  8971. *** as such. This will affect the creation of libtool libraries that
  8972. *** depend on shared libraries, but programs linked with such libtool
  8973. *** libraries will work regardless of this problem. Nevertheless, you
  8974. *** may want to report the problem to your system manager and/or to
  8975. *** bug-libtool@gnu.org
  8976. _LT_EOF
  8977. fi ;;
  8978. esac
  8979. fi
  8980. break
  8981. fi
  8982. done
  8983. IFS=$lt_save_ifs
  8984. MAGIC_CMD=$lt_save_MAGIC_CMD
  8985. ;;
  8986. esac
  8987. fi
  8988. MAGIC_CMD=$lt_cv_path_MAGIC_CMD
  8989. if test -n "$MAGIC_CMD"; then
  8990. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  8991. $as_echo "$MAGIC_CMD" >&6; }
  8992. else
  8993. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8994. $as_echo "no" >&6; }
  8995. fi
  8996. if test -z "$lt_cv_path_MAGIC_CMD"; then
  8997. if test -n "$ac_tool_prefix"; then
  8998. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
  8999. $as_echo_n "checking for file... " >&6; }
  9000. if ${lt_cv_path_MAGIC_CMD+:} false; then :
  9001. $as_echo_n "(cached) " >&6
  9002. else
  9003. case $MAGIC_CMD in
  9004. [\\/*] | ?:[\\/]*)
  9005. lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
  9006. ;;
  9007. *)
  9008. lt_save_MAGIC_CMD=$MAGIC_CMD
  9009. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  9010. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  9011. for ac_dir in $ac_dummy; do
  9012. IFS=$lt_save_ifs
  9013. test -z "$ac_dir" && ac_dir=.
  9014. if test -f "$ac_dir/file"; then
  9015. lt_cv_path_MAGIC_CMD=$ac_dir/"file"
  9016. if test -n "$file_magic_test_file"; then
  9017. case $deplibs_check_method in
  9018. "file_magic "*)
  9019. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  9020. MAGIC_CMD=$lt_cv_path_MAGIC_CMD
  9021. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  9022. $EGREP "$file_magic_regex" > /dev/null; then
  9023. :
  9024. else
  9025. cat <<_LT_EOF 1>&2
  9026. *** Warning: the command libtool uses to detect shared libraries,
  9027. *** $file_magic_cmd, produces output that libtool cannot recognize.
  9028. *** The result is that libtool may fail to recognize shared libraries
  9029. *** as such. This will affect the creation of libtool libraries that
  9030. *** depend on shared libraries, but programs linked with such libtool
  9031. *** libraries will work regardless of this problem. Nevertheless, you
  9032. *** may want to report the problem to your system manager and/or to
  9033. *** bug-libtool@gnu.org
  9034. _LT_EOF
  9035. fi ;;
  9036. esac
  9037. fi
  9038. break
  9039. fi
  9040. done
  9041. IFS=$lt_save_ifs
  9042. MAGIC_CMD=$lt_save_MAGIC_CMD
  9043. ;;
  9044. esac
  9045. fi
  9046. MAGIC_CMD=$lt_cv_path_MAGIC_CMD
  9047. if test -n "$MAGIC_CMD"; then
  9048. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  9049. $as_echo "$MAGIC_CMD" >&6; }
  9050. else
  9051. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9052. $as_echo "no" >&6; }
  9053. fi
  9054. else
  9055. MAGIC_CMD=:
  9056. fi
  9057. fi
  9058. fi
  9059. ;;
  9060. esac
  9061. # Use C for the default configuration in the libtool script
  9062. lt_save_CC=$CC
  9063. ac_ext=c
  9064. ac_cpp='$CPP $CPPFLAGS'
  9065. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  9066. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  9067. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  9068. # Source file extension for C test sources.
  9069. ac_ext=c
  9070. # Object file extension for compiled C test sources.
  9071. objext=o
  9072. objext=$objext
  9073. # Code to be used in simple compile tests
  9074. lt_simple_compile_test_code="int some_variable = 0;"
  9075. # Code to be used in simple link tests
  9076. lt_simple_link_test_code='int main(){return(0);}'
  9077. # If no C compiler was specified, use CC.
  9078. LTCC=${LTCC-"$CC"}
  9079. # If no C compiler flags were specified, use CFLAGS.
  9080. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  9081. # Allow CC to be a program name with arguments.
  9082. compiler=$CC
  9083. # Save the default compiler, since it gets overwritten when the other
  9084. # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
  9085. compiler_DEFAULT=$CC
  9086. # save warnings/boilerplate of simple test code
  9087. ac_outfile=conftest.$ac_objext
  9088. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  9089. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  9090. _lt_compiler_boilerplate=`cat conftest.err`
  9091. $RM conftest*
  9092. ac_outfile=conftest.$ac_objext
  9093. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  9094. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  9095. _lt_linker_boilerplate=`cat conftest.err`
  9096. $RM -r conftest*
  9097. ## CAVEAT EMPTOR:
  9098. ## There is no encapsulation within the following macros, do not change
  9099. ## the running order or otherwise move them around unless you know exactly
  9100. ## what you are doing...
  9101. if test -n "$compiler"; then
  9102. lt_prog_compiler_no_builtin_flag=
  9103. if test yes = "$GCC"; then
  9104. case $cc_basename in
  9105. nvcc*)
  9106. lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
  9107. *)
  9108. lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
  9109. esac
  9110. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  9111. $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
  9112. if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
  9113. $as_echo_n "(cached) " >&6
  9114. else
  9115. lt_cv_prog_compiler_rtti_exceptions=no
  9116. ac_outfile=conftest.$ac_objext
  9117. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  9118. lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
  9119. # Insert the option either (1) after the last *FLAGS variable, or
  9120. # (2) before a word containing "conftest.", or (3) at the end.
  9121. # Note that $ac_compile itself does not contain backslashes and begins
  9122. # with a dollar sign (not a hyphen), so the echo should work correctly.
  9123. # The option is referenced via a variable to avoid confusing sed.
  9124. lt_compile=`echo "$ac_compile" | $SED \
  9125. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  9126. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  9127. -e 's:$: $lt_compiler_flag:'`
  9128. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  9129. (eval "$lt_compile" 2>conftest.err)
  9130. ac_status=$?
  9131. cat conftest.err >&5
  9132. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9133. if (exit $ac_status) && test -s "$ac_outfile"; then
  9134. # The compiler can only warn and ignore the option if not recognized
  9135. # So say no if there are warnings other than the usual output.
  9136. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  9137. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  9138. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  9139. lt_cv_prog_compiler_rtti_exceptions=yes
  9140. fi
  9141. fi
  9142. $RM conftest*
  9143. fi
  9144. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  9145. $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
  9146. if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
  9147. lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
  9148. else
  9149. :
  9150. fi
  9151. fi
  9152. lt_prog_compiler_wl=
  9153. lt_prog_compiler_pic=
  9154. lt_prog_compiler_static=
  9155. if test yes = "$GCC"; then
  9156. lt_prog_compiler_wl='-Wl,'
  9157. lt_prog_compiler_static='-static'
  9158. case $host_os in
  9159. aix*)
  9160. # All AIX code is PIC.
  9161. if test ia64 = "$host_cpu"; then
  9162. # AIX 5 now supports IA64 processor
  9163. lt_prog_compiler_static='-Bstatic'
  9164. fi
  9165. lt_prog_compiler_pic='-fPIC'
  9166. ;;
  9167. amigaos*)
  9168. case $host_cpu in
  9169. powerpc)
  9170. # see comment about AmigaOS4 .so support
  9171. lt_prog_compiler_pic='-fPIC'
  9172. ;;
  9173. m68k)
  9174. # FIXME: we need at least 68020 code to build shared libraries, but
  9175. # adding the '-m68020' flag to GCC prevents building anything better,
  9176. # like '-m68040'.
  9177. lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
  9178. ;;
  9179. esac
  9180. ;;
  9181. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  9182. # PIC is the default for these OSes.
  9183. ;;
  9184. mingw* | cygwin* | pw32* | os2* | cegcc*)
  9185. # This hack is so that the source file can tell whether it is being
  9186. # built for inclusion in a dll (and should export symbols for example).
  9187. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  9188. # (--disable-auto-import) libraries
  9189. lt_prog_compiler_pic='-DDLL_EXPORT'
  9190. case $host_os in
  9191. os2*)
  9192. lt_prog_compiler_static='$wl-static'
  9193. ;;
  9194. esac
  9195. ;;
  9196. darwin* | rhapsody*)
  9197. # PIC is the default on this platform
  9198. # Common symbols not allowed in MH_DYLIB files
  9199. lt_prog_compiler_pic='-fno-common'
  9200. ;;
  9201. haiku*)
  9202. # PIC is the default for Haiku.
  9203. # The "-static" flag exists, but is broken.
  9204. lt_prog_compiler_static=
  9205. ;;
  9206. hpux*)
  9207. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  9208. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  9209. # sets the default TLS model and affects inlining.
  9210. case $host_cpu in
  9211. hppa*64*)
  9212. # +Z the default
  9213. ;;
  9214. *)
  9215. lt_prog_compiler_pic='-fPIC'
  9216. ;;
  9217. esac
  9218. ;;
  9219. interix[3-9]*)
  9220. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  9221. # Instead, we relocate shared libraries at runtime.
  9222. ;;
  9223. msdosdjgpp*)
  9224. # Just because we use GCC doesn't mean we suddenly get shared libraries
  9225. # on systems that don't support them.
  9226. lt_prog_compiler_can_build_shared=no
  9227. enable_shared=no
  9228. ;;
  9229. *nto* | *qnx*)
  9230. # QNX uses GNU C++, but need to define -shared option too, otherwise
  9231. # it will coredump.
  9232. lt_prog_compiler_pic='-fPIC -shared'
  9233. ;;
  9234. sysv4*MP*)
  9235. if test -d /usr/nec; then
  9236. lt_prog_compiler_pic=-Kconform_pic
  9237. fi
  9238. ;;
  9239. *)
  9240. lt_prog_compiler_pic='-fPIC'
  9241. ;;
  9242. esac
  9243. case $cc_basename in
  9244. nvcc*) # Cuda Compiler Driver 2.2
  9245. lt_prog_compiler_wl='-Xlinker '
  9246. if test -n "$lt_prog_compiler_pic"; then
  9247. lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
  9248. fi
  9249. ;;
  9250. esac
  9251. else
  9252. # PORTME Check for flag to pass linker flags through the system compiler.
  9253. case $host_os in
  9254. aix*)
  9255. lt_prog_compiler_wl='-Wl,'
  9256. if test ia64 = "$host_cpu"; then
  9257. # AIX 5 now supports IA64 processor
  9258. lt_prog_compiler_static='-Bstatic'
  9259. else
  9260. lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
  9261. fi
  9262. ;;
  9263. darwin* | rhapsody*)
  9264. # PIC is the default on this platform
  9265. # Common symbols not allowed in MH_DYLIB files
  9266. lt_prog_compiler_pic='-fno-common'
  9267. case $cc_basename in
  9268. nagfor*)
  9269. # NAG Fortran compiler
  9270. lt_prog_compiler_wl='-Wl,-Wl,,'
  9271. lt_prog_compiler_pic='-PIC'
  9272. lt_prog_compiler_static='-Bstatic'
  9273. ;;
  9274. esac
  9275. ;;
  9276. mingw* | cygwin* | pw32* | os2* | cegcc*)
  9277. # This hack is so that the source file can tell whether it is being
  9278. # built for inclusion in a dll (and should export symbols for example).
  9279. lt_prog_compiler_pic='-DDLL_EXPORT'
  9280. case $host_os in
  9281. os2*)
  9282. lt_prog_compiler_static='$wl-static'
  9283. ;;
  9284. esac
  9285. ;;
  9286. hpux9* | hpux10* | hpux11*)
  9287. lt_prog_compiler_wl='-Wl,'
  9288. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  9289. # not for PA HP-UX.
  9290. case $host_cpu in
  9291. hppa*64*|ia64*)
  9292. # +Z the default
  9293. ;;
  9294. *)
  9295. lt_prog_compiler_pic='+Z'
  9296. ;;
  9297. esac
  9298. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  9299. lt_prog_compiler_static='$wl-a ${wl}archive'
  9300. ;;
  9301. irix5* | irix6* | nonstopux*)
  9302. lt_prog_compiler_wl='-Wl,'
  9303. # PIC (with -KPIC) is the default.
  9304. lt_prog_compiler_static='-non_shared'
  9305. ;;
  9306. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  9307. case $cc_basename in
  9308. # old Intel for x86_64, which still supported -KPIC.
  9309. ecc*)
  9310. lt_prog_compiler_wl='-Wl,'
  9311. lt_prog_compiler_pic='-KPIC'
  9312. lt_prog_compiler_static='-static'
  9313. ;;
  9314. # flang / f18. f95 an alias for gfortran or flang on Debian
  9315. flang* | f18* | f95*)
  9316. lt_prog_compiler_wl='-Wl,'
  9317. lt_prog_compiler_pic='-fPIC'
  9318. lt_prog_compiler_static='-static'
  9319. ;;
  9320. # icc used to be incompatible with GCC.
  9321. # ICC 10 doesn't accept -KPIC any more.
  9322. icc* | ifort*)
  9323. lt_prog_compiler_wl='-Wl,'
  9324. lt_prog_compiler_pic='-fPIC'
  9325. lt_prog_compiler_static='-static'
  9326. ;;
  9327. # Lahey Fortran 8.1.
  9328. lf95*)
  9329. lt_prog_compiler_wl='-Wl,'
  9330. lt_prog_compiler_pic='--shared'
  9331. lt_prog_compiler_static='--static'
  9332. ;;
  9333. nagfor*)
  9334. # NAG Fortran compiler
  9335. lt_prog_compiler_wl='-Wl,-Wl,,'
  9336. lt_prog_compiler_pic='-PIC'
  9337. lt_prog_compiler_static='-Bstatic'
  9338. ;;
  9339. tcc*)
  9340. # Fabrice Bellard et al's Tiny C Compiler
  9341. lt_prog_compiler_wl='-Wl,'
  9342. lt_prog_compiler_pic='-fPIC'
  9343. lt_prog_compiler_static='-static'
  9344. ;;
  9345. pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
  9346. # Portland Group compilers (*not* the Pentium gcc compiler,
  9347. # which looks to be a dead project)
  9348. lt_prog_compiler_wl='-Wl,'
  9349. lt_prog_compiler_pic='-fpic'
  9350. lt_prog_compiler_static='-Bstatic'
  9351. ;;
  9352. ccc*)
  9353. lt_prog_compiler_wl='-Wl,'
  9354. # All Alpha code is PIC.
  9355. lt_prog_compiler_static='-non_shared'
  9356. ;;
  9357. xl* | bgxl* | bgf* | mpixl*)
  9358. # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
  9359. lt_prog_compiler_wl='-Wl,'
  9360. lt_prog_compiler_pic='-qpic'
  9361. lt_prog_compiler_static='-qstaticlink'
  9362. ;;
  9363. *)
  9364. case `$CC -V 2>&1 | sed 5q` in
  9365. *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
  9366. # Sun Fortran 8.3 passes all unrecognized flags to the linker
  9367. lt_prog_compiler_pic='-KPIC'
  9368. lt_prog_compiler_static='-Bstatic'
  9369. lt_prog_compiler_wl=''
  9370. ;;
  9371. *Sun\ F* | *Sun*Fortran*)
  9372. lt_prog_compiler_pic='-KPIC'
  9373. lt_prog_compiler_static='-Bstatic'
  9374. lt_prog_compiler_wl='-Qoption ld '
  9375. ;;
  9376. *Sun\ C*)
  9377. # Sun C 5.9
  9378. lt_prog_compiler_pic='-KPIC'
  9379. lt_prog_compiler_static='-Bstatic'
  9380. lt_prog_compiler_wl='-Wl,'
  9381. ;;
  9382. *Intel*\ [CF]*Compiler*)
  9383. lt_prog_compiler_wl='-Wl,'
  9384. lt_prog_compiler_pic='-fPIC'
  9385. lt_prog_compiler_static='-static'
  9386. ;;
  9387. *Portland\ Group*)
  9388. lt_prog_compiler_wl='-Wl,'
  9389. lt_prog_compiler_pic='-fpic'
  9390. lt_prog_compiler_static='-Bstatic'
  9391. ;;
  9392. esac
  9393. ;;
  9394. esac
  9395. ;;
  9396. newsos6)
  9397. lt_prog_compiler_pic='-KPIC'
  9398. lt_prog_compiler_static='-Bstatic'
  9399. ;;
  9400. *nto* | *qnx*)
  9401. # QNX uses GNU C++, but need to define -shared option too, otherwise
  9402. # it will coredump.
  9403. lt_prog_compiler_pic='-fPIC -shared'
  9404. ;;
  9405. osf3* | osf4* | osf5*)
  9406. lt_prog_compiler_wl='-Wl,'
  9407. # All OSF/1 code is PIC.
  9408. lt_prog_compiler_static='-non_shared'
  9409. ;;
  9410. rdos*)
  9411. lt_prog_compiler_static='-non_shared'
  9412. ;;
  9413. solaris*)
  9414. lt_prog_compiler_pic='-KPIC'
  9415. lt_prog_compiler_static='-Bstatic'
  9416. case $cc_basename in
  9417. f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
  9418. lt_prog_compiler_wl='-Qoption ld ';;
  9419. *)
  9420. lt_prog_compiler_wl='-Wl,';;
  9421. esac
  9422. ;;
  9423. sunos4*)
  9424. lt_prog_compiler_wl='-Qoption ld '
  9425. lt_prog_compiler_pic='-PIC'
  9426. lt_prog_compiler_static='-Bstatic'
  9427. ;;
  9428. sysv4 | sysv4.2uw2* | sysv4.3*)
  9429. lt_prog_compiler_wl='-Wl,'
  9430. lt_prog_compiler_pic='-KPIC'
  9431. lt_prog_compiler_static='-Bstatic'
  9432. ;;
  9433. sysv4*MP*)
  9434. if test -d /usr/nec; then
  9435. lt_prog_compiler_pic='-Kconform_pic'
  9436. lt_prog_compiler_static='-Bstatic'
  9437. fi
  9438. ;;
  9439. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  9440. lt_prog_compiler_wl='-Wl,'
  9441. lt_prog_compiler_pic='-KPIC'
  9442. lt_prog_compiler_static='-Bstatic'
  9443. ;;
  9444. unicos*)
  9445. lt_prog_compiler_wl='-Wl,'
  9446. lt_prog_compiler_can_build_shared=no
  9447. ;;
  9448. uts4*)
  9449. lt_prog_compiler_pic='-pic'
  9450. lt_prog_compiler_static='-Bstatic'
  9451. ;;
  9452. *)
  9453. lt_prog_compiler_can_build_shared=no
  9454. ;;
  9455. esac
  9456. fi
  9457. case $host_os in
  9458. # For platforms that do not support PIC, -DPIC is meaningless:
  9459. *djgpp*)
  9460. lt_prog_compiler_pic=
  9461. ;;
  9462. *)
  9463. lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
  9464. ;;
  9465. esac
  9466. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  9467. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  9468. if ${lt_cv_prog_compiler_pic+:} false; then :
  9469. $as_echo_n "(cached) " >&6
  9470. else
  9471. lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
  9472. fi
  9473. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
  9474. $as_echo "$lt_cv_prog_compiler_pic" >&6; }
  9475. lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
  9476. #
  9477. # Check to make sure the PIC flag actually works.
  9478. #
  9479. if test -n "$lt_prog_compiler_pic"; then
  9480. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
  9481. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
  9482. if ${lt_cv_prog_compiler_pic_works+:} false; then :
  9483. $as_echo_n "(cached) " >&6
  9484. else
  9485. lt_cv_prog_compiler_pic_works=no
  9486. ac_outfile=conftest.$ac_objext
  9487. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  9488. lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
  9489. # Insert the option either (1) after the last *FLAGS variable, or
  9490. # (2) before a word containing "conftest.", or (3) at the end.
  9491. # Note that $ac_compile itself does not contain backslashes and begins
  9492. # with a dollar sign (not a hyphen), so the echo should work correctly.
  9493. # The option is referenced via a variable to avoid confusing sed.
  9494. lt_compile=`echo "$ac_compile" | $SED \
  9495. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  9496. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  9497. -e 's:$: $lt_compiler_flag:'`
  9498. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  9499. (eval "$lt_compile" 2>conftest.err)
  9500. ac_status=$?
  9501. cat conftest.err >&5
  9502. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9503. if (exit $ac_status) && test -s "$ac_outfile"; then
  9504. # The compiler can only warn and ignore the option if not recognized
  9505. # So say no if there are warnings other than the usual output.
  9506. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  9507. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  9508. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  9509. lt_cv_prog_compiler_pic_works=yes
  9510. fi
  9511. fi
  9512. $RM conftest*
  9513. fi
  9514. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
  9515. $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
  9516. if test yes = "$lt_cv_prog_compiler_pic_works"; then
  9517. case $lt_prog_compiler_pic in
  9518. "" | " "*) ;;
  9519. *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
  9520. esac
  9521. else
  9522. lt_prog_compiler_pic=
  9523. lt_prog_compiler_can_build_shared=no
  9524. fi
  9525. fi
  9526. #
  9527. # Check to make sure the static flag actually works.
  9528. #
  9529. wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
  9530. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  9531. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  9532. if ${lt_cv_prog_compiler_static_works+:} false; then :
  9533. $as_echo_n "(cached) " >&6
  9534. else
  9535. lt_cv_prog_compiler_static_works=no
  9536. save_LDFLAGS=$LDFLAGS
  9537. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  9538. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  9539. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  9540. # The linker can only warn and ignore the option if not recognized
  9541. # So say no if there are warnings
  9542. if test -s conftest.err; then
  9543. # Append any errors to the config.log.
  9544. cat conftest.err 1>&5
  9545. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  9546. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  9547. if diff conftest.exp conftest.er2 >/dev/null; then
  9548. lt_cv_prog_compiler_static_works=yes
  9549. fi
  9550. else
  9551. lt_cv_prog_compiler_static_works=yes
  9552. fi
  9553. fi
  9554. $RM -r conftest*
  9555. LDFLAGS=$save_LDFLAGS
  9556. fi
  9557. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
  9558. $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
  9559. if test yes = "$lt_cv_prog_compiler_static_works"; then
  9560. :
  9561. else
  9562. lt_prog_compiler_static=
  9563. fi
  9564. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  9565. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  9566. if ${lt_cv_prog_compiler_c_o+:} false; then :
  9567. $as_echo_n "(cached) " >&6
  9568. else
  9569. lt_cv_prog_compiler_c_o=no
  9570. $RM -r conftest 2>/dev/null
  9571. mkdir conftest
  9572. cd conftest
  9573. mkdir out
  9574. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  9575. lt_compiler_flag="-o out/conftest2.$ac_objext"
  9576. # Insert the option either (1) after the last *FLAGS variable, or
  9577. # (2) before a word containing "conftest.", or (3) at the end.
  9578. # Note that $ac_compile itself does not contain backslashes and begins
  9579. # with a dollar sign (not a hyphen), so the echo should work correctly.
  9580. lt_compile=`echo "$ac_compile" | $SED \
  9581. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  9582. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  9583. -e 's:$: $lt_compiler_flag:'`
  9584. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  9585. (eval "$lt_compile" 2>out/conftest.err)
  9586. ac_status=$?
  9587. cat out/conftest.err >&5
  9588. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9589. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  9590. then
  9591. # The compiler can only warn and ignore the option if not recognized
  9592. # So say no if there are warnings
  9593. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  9594. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  9595. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  9596. lt_cv_prog_compiler_c_o=yes
  9597. fi
  9598. fi
  9599. chmod u+w . 2>&5
  9600. $RM conftest*
  9601. # SGI C++ compiler will create directory out/ii_files/ for
  9602. # template instantiation
  9603. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  9604. $RM out/* && rmdir out
  9605. cd ..
  9606. $RM -r conftest
  9607. $RM conftest*
  9608. fi
  9609. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  9610. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  9611. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  9612. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  9613. if ${lt_cv_prog_compiler_c_o+:} false; then :
  9614. $as_echo_n "(cached) " >&6
  9615. else
  9616. lt_cv_prog_compiler_c_o=no
  9617. $RM -r conftest 2>/dev/null
  9618. mkdir conftest
  9619. cd conftest
  9620. mkdir out
  9621. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  9622. lt_compiler_flag="-o out/conftest2.$ac_objext"
  9623. # Insert the option either (1) after the last *FLAGS variable, or
  9624. # (2) before a word containing "conftest.", or (3) at the end.
  9625. # Note that $ac_compile itself does not contain backslashes and begins
  9626. # with a dollar sign (not a hyphen), so the echo should work correctly.
  9627. lt_compile=`echo "$ac_compile" | $SED \
  9628. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  9629. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  9630. -e 's:$: $lt_compiler_flag:'`
  9631. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  9632. (eval "$lt_compile" 2>out/conftest.err)
  9633. ac_status=$?
  9634. cat out/conftest.err >&5
  9635. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9636. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  9637. then
  9638. # The compiler can only warn and ignore the option if not recognized
  9639. # So say no if there are warnings
  9640. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  9641. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  9642. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  9643. lt_cv_prog_compiler_c_o=yes
  9644. fi
  9645. fi
  9646. chmod u+w . 2>&5
  9647. $RM conftest*
  9648. # SGI C++ compiler will create directory out/ii_files/ for
  9649. # template instantiation
  9650. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  9651. $RM out/* && rmdir out
  9652. cd ..
  9653. $RM -r conftest
  9654. $RM conftest*
  9655. fi
  9656. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  9657. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  9658. hard_links=nottested
  9659. if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
  9660. # do not overwrite the value of need_locks provided by the user
  9661. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  9662. $as_echo_n "checking if we can lock with hard links... " >&6; }
  9663. hard_links=yes
  9664. $RM conftest*
  9665. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  9666. touch conftest.a
  9667. ln conftest.a conftest.b 2>&5 || hard_links=no
  9668. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  9669. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  9670. $as_echo "$hard_links" >&6; }
  9671. if test no = "$hard_links"; then
  9672. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
  9673. $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
  9674. need_locks=warn
  9675. fi
  9676. else
  9677. need_locks=no
  9678. fi
  9679. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  9680. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  9681. runpath_var=
  9682. allow_undefined_flag=
  9683. always_export_symbols=no
  9684. archive_cmds=
  9685. archive_expsym_cmds=
  9686. compiler_needs_object=no
  9687. enable_shared_with_static_runtimes=no
  9688. export_dynamic_flag_spec=
  9689. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  9690. hardcode_automatic=no
  9691. hardcode_direct=no
  9692. hardcode_direct_absolute=no
  9693. hardcode_libdir_flag_spec=
  9694. hardcode_libdir_separator=
  9695. hardcode_minus_L=no
  9696. hardcode_shlibpath_var=unsupported
  9697. inherit_rpath=no
  9698. link_all_deplibs=unknown
  9699. module_cmds=
  9700. module_expsym_cmds=
  9701. old_archive_from_new_cmds=
  9702. old_archive_from_expsyms_cmds=
  9703. thread_safe_flag_spec=
  9704. whole_archive_flag_spec=
  9705. # include_expsyms should be a list of space-separated symbols to be *always*
  9706. # included in the symbol list
  9707. include_expsyms=
  9708. # exclude_expsyms can be an extended regexp of symbols to exclude
  9709. # it will be wrapped by ' (' and ')$', so one must not match beginning or
  9710. # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
  9711. # as well as any symbol that contains 'd'.
  9712. exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  9713. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  9714. # platforms (ab)use it in PIC code, but their linkers get confused if
  9715. # the symbol is explicitly referenced. Since portable code cannot
  9716. # rely on this symbol name, it's probably fine to never include it in
  9717. # preloaded symbol tables.
  9718. # Exclude shared library initialization/finalization symbols.
  9719. extract_expsyms_cmds=
  9720. case $host_os in
  9721. cygwin* | mingw* | pw32* | cegcc*)
  9722. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  9723. # When not using gcc, we currently assume that we are using
  9724. # Microsoft Visual C++.
  9725. if test yes != "$GCC"; then
  9726. with_gnu_ld=no
  9727. fi
  9728. ;;
  9729. interix*)
  9730. # we just hope/assume this is gcc and not c89 (= MSVC++)
  9731. with_gnu_ld=yes
  9732. ;;
  9733. openbsd* | bitrig*)
  9734. with_gnu_ld=no
  9735. ;;
  9736. linux* | k*bsd*-gnu | gnu*)
  9737. link_all_deplibs=no
  9738. ;;
  9739. esac
  9740. ld_shlibs=yes
  9741. # On some targets, GNU ld is compatible enough with the native linker
  9742. # that we're better off using the native interface for both.
  9743. lt_use_gnu_ld_interface=no
  9744. if test yes = "$with_gnu_ld"; then
  9745. case $host_os in
  9746. aix*)
  9747. # The AIX port of GNU ld has always aspired to compatibility
  9748. # with the native linker. However, as the warning in the GNU ld
  9749. # block says, versions before 2.19.5* couldn't really create working
  9750. # shared libraries, regardless of the interface used.
  9751. case `$LD -v 2>&1` in
  9752. *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
  9753. *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
  9754. *\ \(GNU\ Binutils\)\ [3-9]*) ;;
  9755. *)
  9756. lt_use_gnu_ld_interface=yes
  9757. ;;
  9758. esac
  9759. ;;
  9760. *)
  9761. lt_use_gnu_ld_interface=yes
  9762. ;;
  9763. esac
  9764. fi
  9765. if test yes = "$lt_use_gnu_ld_interface"; then
  9766. # If archive_cmds runs LD, not CC, wlarc should be empty
  9767. wlarc='$wl'
  9768. # Set some defaults for GNU ld with shared library support. These
  9769. # are reset later if shared libraries are not supported. Putting them
  9770. # here allows them to be overridden if necessary.
  9771. runpath_var=LD_RUN_PATH
  9772. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  9773. export_dynamic_flag_spec='$wl--export-dynamic'
  9774. # ancient GNU ld didn't support --whole-archive et. al.
  9775. if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
  9776. whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
  9777. else
  9778. whole_archive_flag_spec=
  9779. fi
  9780. supports_anon_versioning=no
  9781. case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
  9782. *GNU\ gold*) supports_anon_versioning=yes ;;
  9783. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  9784. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  9785. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  9786. *\ 2.11.*) ;; # other 2.11 versions
  9787. *) supports_anon_versioning=yes ;;
  9788. esac
  9789. # See if GNU ld supports shared libraries.
  9790. case $host_os in
  9791. aix[3-9]*)
  9792. # On AIX/PPC, the GNU linker is very broken
  9793. if test ia64 != "$host_cpu"; then
  9794. ld_shlibs=no
  9795. cat <<_LT_EOF 1>&2
  9796. *** Warning: the GNU linker, at least up to release 2.19, is reported
  9797. *** to be unable to reliably create shared libraries on AIX.
  9798. *** Therefore, libtool is disabling shared libraries support. If you
  9799. *** really care for shared libraries, you may want to install binutils
  9800. *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
  9801. *** You will then need to restart the configuration process.
  9802. _LT_EOF
  9803. fi
  9804. ;;
  9805. amigaos*)
  9806. case $host_cpu in
  9807. powerpc)
  9808. # see comment about AmigaOS4 .so support
  9809. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  9810. archive_expsym_cmds=''
  9811. ;;
  9812. m68k)
  9813. 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)'
  9814. hardcode_libdir_flag_spec='-L$libdir'
  9815. hardcode_minus_L=yes
  9816. ;;
  9817. esac
  9818. ;;
  9819. beos*)
  9820. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  9821. allow_undefined_flag=unsupported
  9822. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  9823. # support --undefined. This deserves some investigation. FIXME
  9824. archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  9825. else
  9826. ld_shlibs=no
  9827. fi
  9828. ;;
  9829. cygwin* | mingw* | pw32* | cegcc*)
  9830. # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
  9831. # as there is no search path for DLLs.
  9832. hardcode_libdir_flag_spec='-L$libdir'
  9833. export_dynamic_flag_spec='$wl--export-all-symbols'
  9834. allow_undefined_flag=unsupported
  9835. always_export_symbols=no
  9836. enable_shared_with_static_runtimes=yes
  9837. 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'
  9838. exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
  9839. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  9840. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  9841. # If the export-symbols file already is a .def file, use it as
  9842. # is; otherwise, prepend EXPORTS...
  9843. archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
  9844. cp $export_symbols $output_objdir/$soname.def;
  9845. else
  9846. echo EXPORTS > $output_objdir/$soname.def;
  9847. cat $export_symbols >> $output_objdir/$soname.def;
  9848. fi~
  9849. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  9850. else
  9851. ld_shlibs=no
  9852. fi
  9853. ;;
  9854. haiku*)
  9855. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  9856. link_all_deplibs=yes
  9857. ;;
  9858. os2*)
  9859. hardcode_libdir_flag_spec='-L$libdir'
  9860. hardcode_minus_L=yes
  9861. allow_undefined_flag=unsupported
  9862. shrext_cmds=.dll
  9863. archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  9864. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  9865. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  9866. $ECHO EXPORTS >> $output_objdir/$libname.def~
  9867. emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
  9868. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  9869. emximp -o $lib $output_objdir/$libname.def'
  9870. archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  9871. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  9872. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  9873. $ECHO EXPORTS >> $output_objdir/$libname.def~
  9874. prefix_cmds="$SED"~
  9875. if test EXPORTS = "`$SED 1q $export_symbols`"; then
  9876. prefix_cmds="$prefix_cmds -e 1d";
  9877. fi~
  9878. prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
  9879. cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
  9880. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  9881. emximp -o $lib $output_objdir/$libname.def'
  9882. old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
  9883. enable_shared_with_static_runtimes=yes
  9884. ;;
  9885. interix[3-9]*)
  9886. hardcode_direct=no
  9887. hardcode_shlibpath_var=no
  9888. hardcode_libdir_flag_spec='$wl-rpath,$libdir'
  9889. export_dynamic_flag_spec='$wl-E'
  9890. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  9891. # Instead, shared libraries are loaded at an image base (0x10000000 by
  9892. # default) and relocated if they conflict, which is a slow very memory
  9893. # consuming and fragmenting process. To avoid this, we pick a random,
  9894. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  9895. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  9896. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  9897. 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'
  9898. ;;
  9899. gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
  9900. tmp_diet=no
  9901. if test linux-dietlibc = "$host_os"; then
  9902. case $cc_basename in
  9903. diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
  9904. esac
  9905. fi
  9906. if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
  9907. && test no = "$tmp_diet"
  9908. then
  9909. tmp_addflag=' $pic_flag'
  9910. tmp_sharedflag='-shared'
  9911. case $cc_basename,$host_cpu in
  9912. pgcc*) # Portland Group C compiler
  9913. 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'
  9914. tmp_addflag=' $pic_flag'
  9915. ;;
  9916. pgf77* | pgf90* | pgf95* | pgfortran*)
  9917. # Portland Group f77 and f90 compilers
  9918. 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'
  9919. tmp_addflag=' $pic_flag -Mnomain' ;;
  9920. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  9921. tmp_addflag=' -i_dynamic' ;;
  9922. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  9923. tmp_addflag=' -i_dynamic -nofor_main' ;;
  9924. ifc* | ifort*) # Intel Fortran compiler
  9925. tmp_addflag=' -nofor_main' ;;
  9926. lf95*) # Lahey Fortran 8.1
  9927. whole_archive_flag_spec=
  9928. tmp_sharedflag='--shared' ;;
  9929. nagfor*) # NAGFOR 5.3
  9930. tmp_sharedflag='-Wl,-shared' ;;
  9931. xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
  9932. tmp_sharedflag='-qmkshrobj'
  9933. tmp_addflag= ;;
  9934. nvcc*) # Cuda Compiler Driver 2.2
  9935. 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'
  9936. compiler_needs_object=yes
  9937. ;;
  9938. esac
  9939. case `$CC -V 2>&1 | sed 5q` in
  9940. *Sun\ C*) # Sun C 5.9
  9941. 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'
  9942. compiler_needs_object=yes
  9943. tmp_sharedflag='-G' ;;
  9944. *Sun\ F*) # Sun Fortran 8.3
  9945. tmp_sharedflag='-G' ;;
  9946. esac
  9947. archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  9948. if test yes = "$supports_anon_versioning"; then
  9949. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  9950. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  9951. echo "local: *; };" >> $output_objdir/$libname.ver~
  9952. $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
  9953. fi
  9954. case $cc_basename in
  9955. tcc*)
  9956. export_dynamic_flag_spec='-rdynamic'
  9957. ;;
  9958. xlf* | bgf* | bgxlf* | mpixlf*)
  9959. # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
  9960. whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
  9961. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  9962. archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
  9963. if test yes = "$supports_anon_versioning"; then
  9964. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  9965. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  9966. echo "local: *; };" >> $output_objdir/$libname.ver~
  9967. $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
  9968. fi
  9969. ;;
  9970. esac
  9971. else
  9972. ld_shlibs=no
  9973. fi
  9974. ;;
  9975. netbsd* | netbsdelf*-gnu)
  9976. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  9977. archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  9978. wlarc=
  9979. else
  9980. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  9981. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  9982. fi
  9983. ;;
  9984. solaris*)
  9985. if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
  9986. ld_shlibs=no
  9987. cat <<_LT_EOF 1>&2
  9988. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  9989. *** create shared libraries on Solaris systems. Therefore, libtool
  9990. *** is disabling shared libraries support. We urge you to upgrade GNU
  9991. *** binutils to release 2.9.1 or newer. Another option is to modify
  9992. *** your PATH or compiler configuration so that the native linker is
  9993. *** used, and then restart.
  9994. _LT_EOF
  9995. elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  9996. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  9997. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  9998. else
  9999. ld_shlibs=no
  10000. fi
  10001. ;;
  10002. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  10003. case `$LD -v 2>&1` in
  10004. *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  10005. ld_shlibs=no
  10006. cat <<_LT_EOF 1>&2
  10007. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
  10008. *** reliably create shared libraries on SCO systems. Therefore, libtool
  10009. *** is disabling shared libraries support. We urge you to upgrade GNU
  10010. *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  10011. *** your PATH or compiler configuration so that the native linker is
  10012. *** used, and then restart.
  10013. _LT_EOF
  10014. ;;
  10015. *)
  10016. # For security reasons, it is highly recommended that you always
  10017. # use absolute paths for naming shared libraries, and exclude the
  10018. # DT_RUNPATH tag from executables and libraries. But doing so
  10019. # requires that you compile everything twice, which is a pain.
  10020. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  10021. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  10022. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  10023. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  10024. else
  10025. ld_shlibs=no
  10026. fi
  10027. ;;
  10028. esac
  10029. ;;
  10030. sunos4*)
  10031. archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  10032. wlarc=
  10033. hardcode_direct=yes
  10034. hardcode_shlibpath_var=no
  10035. ;;
  10036. *)
  10037. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  10038. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  10039. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  10040. else
  10041. ld_shlibs=no
  10042. fi
  10043. ;;
  10044. esac
  10045. if test no = "$ld_shlibs"; then
  10046. runpath_var=
  10047. hardcode_libdir_flag_spec=
  10048. export_dynamic_flag_spec=
  10049. whole_archive_flag_spec=
  10050. fi
  10051. else
  10052. # PORTME fill in a description of your system's linker (not GNU ld)
  10053. case $host_os in
  10054. aix3*)
  10055. allow_undefined_flag=unsupported
  10056. always_export_symbols=yes
  10057. 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'
  10058. # Note: this linker hardcodes the directories in LIBPATH if there
  10059. # are no directories specified by -L.
  10060. hardcode_minus_L=yes
  10061. if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
  10062. # Neither direct hardcoding nor static linking is supported with a
  10063. # broken collect2.
  10064. hardcode_direct=unsupported
  10065. fi
  10066. ;;
  10067. aix[4-9]*)
  10068. if test ia64 = "$host_cpu"; then
  10069. # On IA64, the linker does run time linking by default, so we don't
  10070. # have to do anything special.
  10071. aix_use_runtimelinking=no
  10072. exp_sym_flag='-Bexport'
  10073. no_entry_flag=
  10074. else
  10075. # If we're using GNU nm, then we don't want the "-C" option.
  10076. # -C means demangle to GNU nm, but means don't demangle to AIX nm.
  10077. # Without the "-l" option, or with the "-B" option, AIX nm treats
  10078. # weak defined symbols like other global defined symbols, whereas
  10079. # GNU nm marks them as "W".
  10080. # While the 'weak' keyword is ignored in the Export File, we need
  10081. # it in the Import File for the 'aix-soname' feature, so we have
  10082. # to replace the "-B" option with "-P" for AIX nm.
  10083. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  10084. export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
  10085. else
  10086. export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
  10087. fi
  10088. aix_use_runtimelinking=no
  10089. # Test if we are trying to use run time linking or normal
  10090. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  10091. # have runtime linking enabled, and use it for executables.
  10092. # For shared libraries, we enable/disable runtime linking
  10093. # depending on the kind of the shared library created -
  10094. # when "with_aix_soname,aix_use_runtimelinking" is:
  10095. # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
  10096. # "aix,yes" lib.so shared, rtl:yes, for executables
  10097. # lib.a static archive
  10098. # "both,no" lib.so.V(shr.o) shared, rtl:yes
  10099. # lib.a(lib.so.V) shared, rtl:no, for executables
  10100. # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
  10101. # lib.a(lib.so.V) shared, rtl:no
  10102. # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
  10103. # lib.a static archive
  10104. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  10105. for ld_flag in $LDFLAGS; do
  10106. if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
  10107. aix_use_runtimelinking=yes
  10108. break
  10109. fi
  10110. done
  10111. if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
  10112. # With aix-soname=svr4, we create the lib.so.V shared archives only,
  10113. # so we don't have lib.a shared libs to link our executables.
  10114. # We have to force runtime linking in this case.
  10115. aix_use_runtimelinking=yes
  10116. LDFLAGS="$LDFLAGS -Wl,-brtl"
  10117. fi
  10118. ;;
  10119. esac
  10120. exp_sym_flag='-bexport'
  10121. no_entry_flag='-bnoentry'
  10122. fi
  10123. # When large executables or shared objects are built, AIX ld can
  10124. # have problems creating the table of contents. If linking a library
  10125. # or program results in "error TOC overflow" add -mminimal-toc to
  10126. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  10127. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  10128. archive_cmds=''
  10129. hardcode_direct=yes
  10130. hardcode_direct_absolute=yes
  10131. hardcode_libdir_separator=':'
  10132. link_all_deplibs=yes
  10133. file_list_spec='$wl-f,'
  10134. case $with_aix_soname,$aix_use_runtimelinking in
  10135. aix,*) ;; # traditional, no import file
  10136. svr4,* | *,yes) # use import file
  10137. # The Import File defines what to hardcode.
  10138. hardcode_direct=no
  10139. hardcode_direct_absolute=no
  10140. ;;
  10141. esac
  10142. if test yes = "$GCC"; then
  10143. case $host_os in aix4.[012]|aix4.[012].*)
  10144. # We only want to do this on AIX 4.2 and lower, the check
  10145. # below for broken collect2 doesn't work under 4.3+
  10146. collect2name=`$CC -print-prog-name=collect2`
  10147. if test -f "$collect2name" &&
  10148. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  10149. then
  10150. # We have reworked collect2
  10151. :
  10152. else
  10153. # We have old collect2
  10154. hardcode_direct=unsupported
  10155. # It fails to find uninstalled libraries when the uninstalled
  10156. # path is not listed in the libpath. Setting hardcode_minus_L
  10157. # to unsupported forces relinking
  10158. hardcode_minus_L=yes
  10159. hardcode_libdir_flag_spec='-L$libdir'
  10160. hardcode_libdir_separator=
  10161. fi
  10162. ;;
  10163. esac
  10164. shared_flag='-shared'
  10165. if test yes = "$aix_use_runtimelinking"; then
  10166. shared_flag="$shared_flag "'$wl-G'
  10167. fi
  10168. # Need to ensure runtime linking is disabled for the traditional
  10169. # shared library, or the linker may eventually find shared libraries
  10170. # /with/ Import File - we do not want to mix them.
  10171. shared_flag_aix='-shared'
  10172. shared_flag_svr4='-shared $wl-G'
  10173. else
  10174. # not using gcc
  10175. if test ia64 = "$host_cpu"; then
  10176. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  10177. # chokes on -Wl,-G. The following line is correct:
  10178. shared_flag='-G'
  10179. else
  10180. if test yes = "$aix_use_runtimelinking"; then
  10181. shared_flag='$wl-G'
  10182. else
  10183. shared_flag='$wl-bM:SRE'
  10184. fi
  10185. shared_flag_aix='$wl-bM:SRE'
  10186. shared_flag_svr4='$wl-G'
  10187. fi
  10188. fi
  10189. export_dynamic_flag_spec='$wl-bexpall'
  10190. # It seems that -bexpall does not export symbols beginning with
  10191. # underscore (_), so it is better to generate a list of symbols to export.
  10192. always_export_symbols=yes
  10193. if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
  10194. # Warning - without using the other runtime loading flags (-brtl),
  10195. # -berok will link without error, but may produce a broken library.
  10196. allow_undefined_flag='-berok'
  10197. # Determine the default libpath from the value encoded in an
  10198. # empty executable.
  10199. if test set = "${lt_cv_aix_libpath+set}"; then
  10200. aix_libpath=$lt_cv_aix_libpath
  10201. else
  10202. if ${lt_cv_aix_libpath_+:} false; then :
  10203. $as_echo_n "(cached) " >&6
  10204. else
  10205. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10206. /* end confdefs.h. */
  10207. int
  10208. main ()
  10209. {
  10210. ;
  10211. return 0;
  10212. }
  10213. _ACEOF
  10214. if ac_fn_c_try_link "$LINENO"; then :
  10215. lt_aix_libpath_sed='
  10216. /Import File Strings/,/^$/ {
  10217. /^0/ {
  10218. s/^0 *\([^ ]*\) *$/\1/
  10219. p
  10220. }
  10221. }'
  10222. lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  10223. # Check for a 64-bit object if we didn't find anything.
  10224. if test -z "$lt_cv_aix_libpath_"; then
  10225. lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  10226. fi
  10227. fi
  10228. rm -f core conftest.err conftest.$ac_objext \
  10229. conftest$ac_exeext conftest.$ac_ext
  10230. if test -z "$lt_cv_aix_libpath_"; then
  10231. lt_cv_aix_libpath_=/usr/lib:/lib
  10232. fi
  10233. fi
  10234. aix_libpath=$lt_cv_aix_libpath_
  10235. fi
  10236. hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
  10237. archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
  10238. else
  10239. if test ia64 = "$host_cpu"; then
  10240. hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
  10241. allow_undefined_flag="-z nodefs"
  10242. 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"
  10243. else
  10244. # Determine the default libpath from the value encoded in an
  10245. # empty executable.
  10246. if test set = "${lt_cv_aix_libpath+set}"; then
  10247. aix_libpath=$lt_cv_aix_libpath
  10248. else
  10249. if ${lt_cv_aix_libpath_+:} false; then :
  10250. $as_echo_n "(cached) " >&6
  10251. else
  10252. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10253. /* end confdefs.h. */
  10254. int
  10255. main ()
  10256. {
  10257. ;
  10258. return 0;
  10259. }
  10260. _ACEOF
  10261. if ac_fn_c_try_link "$LINENO"; then :
  10262. lt_aix_libpath_sed='
  10263. /Import File Strings/,/^$/ {
  10264. /^0/ {
  10265. s/^0 *\([^ ]*\) *$/\1/
  10266. p
  10267. }
  10268. }'
  10269. lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  10270. # Check for a 64-bit object if we didn't find anything.
  10271. if test -z "$lt_cv_aix_libpath_"; then
  10272. lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  10273. fi
  10274. fi
  10275. rm -f core conftest.err conftest.$ac_objext \
  10276. conftest$ac_exeext conftest.$ac_ext
  10277. if test -z "$lt_cv_aix_libpath_"; then
  10278. lt_cv_aix_libpath_=/usr/lib:/lib
  10279. fi
  10280. fi
  10281. aix_libpath=$lt_cv_aix_libpath_
  10282. fi
  10283. hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
  10284. # Warning - without using the other run time loading flags,
  10285. # -berok will link without error, but may produce a broken library.
  10286. no_undefined_flag=' $wl-bernotok'
  10287. allow_undefined_flag=' $wl-berok'
  10288. if test yes = "$with_gnu_ld"; then
  10289. # We only use this code for GNU lds that support --whole-archive.
  10290. whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
  10291. else
  10292. # Exported symbols can be pulled into shared objects from archives
  10293. whole_archive_flag_spec='$convenience'
  10294. fi
  10295. archive_cmds_need_lc=yes
  10296. archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
  10297. # -brtl affects multiple linker settings, -berok does not and is overridden later
  10298. compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
  10299. if test svr4 != "$with_aix_soname"; then
  10300. # This is similar to how AIX traditionally builds its shared libraries.
  10301. archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
  10302. fi
  10303. if test aix != "$with_aix_soname"; then
  10304. archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
  10305. else
  10306. # used by -dlpreopen to get the symbols
  10307. archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
  10308. fi
  10309. archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
  10310. fi
  10311. fi
  10312. ;;
  10313. amigaos*)
  10314. case $host_cpu in
  10315. powerpc)
  10316. # see comment about AmigaOS4 .so support
  10317. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  10318. archive_expsym_cmds=''
  10319. ;;
  10320. m68k)
  10321. 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)'
  10322. hardcode_libdir_flag_spec='-L$libdir'
  10323. hardcode_minus_L=yes
  10324. ;;
  10325. esac
  10326. ;;
  10327. bsdi[45]*)
  10328. export_dynamic_flag_spec=-rdynamic
  10329. ;;
  10330. cygwin* | mingw* | pw32* | cegcc*)
  10331. # When not using gcc, we currently assume that we are using
  10332. # Microsoft Visual C++.
  10333. # hardcode_libdir_flag_spec is actually meaningless, as there is
  10334. # no search path for DLLs.
  10335. case $cc_basename in
  10336. cl*)
  10337. # Native MSVC
  10338. hardcode_libdir_flag_spec=' '
  10339. allow_undefined_flag=unsupported
  10340. always_export_symbols=yes
  10341. file_list_spec='@'
  10342. # Tell ltmain to make .lib files, not .a files.
  10343. libext=lib
  10344. # Tell ltmain to make .dll files, not .so files.
  10345. shrext_cmds=.dll
  10346. # FIXME: Setting linknames here is a bad hack.
  10347. archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
  10348. archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
  10349. cp "$export_symbols" "$output_objdir/$soname.def";
  10350. echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
  10351. else
  10352. $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
  10353. fi~
  10354. $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
  10355. linknames='
  10356. # The linker will not automatically build a static lib if we build a DLL.
  10357. # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
  10358. enable_shared_with_static_runtimes=yes
  10359. exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
  10360. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
  10361. # Don't use ranlib
  10362. old_postinstall_cmds='chmod 644 $oldlib'
  10363. postlink_cmds='lt_outputfile="@OUTPUT@"~
  10364. lt_tool_outputfile="@TOOL_OUTPUT@"~
  10365. case $lt_outputfile in
  10366. *.exe|*.EXE) ;;
  10367. *)
  10368. lt_outputfile=$lt_outputfile.exe
  10369. lt_tool_outputfile=$lt_tool_outputfile.exe
  10370. ;;
  10371. esac~
  10372. if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
  10373. $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
  10374. $RM "$lt_outputfile.manifest";
  10375. fi'
  10376. ;;
  10377. *)
  10378. # Assume MSVC wrapper
  10379. hardcode_libdir_flag_spec=' '
  10380. allow_undefined_flag=unsupported
  10381. # Tell ltmain to make .lib files, not .a files.
  10382. libext=lib
  10383. # Tell ltmain to make .dll files, not .so files.
  10384. shrext_cmds=.dll
  10385. # FIXME: Setting linknames here is a bad hack.
  10386. archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
  10387. # The linker will automatically build a .lib file if we build a DLL.
  10388. old_archive_from_new_cmds='true'
  10389. # FIXME: Should let the user specify the lib program.
  10390. old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
  10391. enable_shared_with_static_runtimes=yes
  10392. ;;
  10393. esac
  10394. ;;
  10395. darwin* | rhapsody*)
  10396. archive_cmds_need_lc=no
  10397. hardcode_direct=no
  10398. hardcode_automatic=yes
  10399. hardcode_shlibpath_var=unsupported
  10400. if test yes = "$lt_cv_ld_force_load"; then
  10401. 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\"`'
  10402. else
  10403. whole_archive_flag_spec=''
  10404. fi
  10405. link_all_deplibs=yes
  10406. allow_undefined_flag=$_lt_dar_allow_undefined
  10407. case $cc_basename in
  10408. ifort*|nagfor*) _lt_dar_can_shared=yes ;;
  10409. *) _lt_dar_can_shared=$GCC ;;
  10410. esac
  10411. if test yes = "$_lt_dar_can_shared"; then
  10412. output_verbose_link_cmd=func_echo_all
  10413. archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
  10414. module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
  10415. 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"
  10416. 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"
  10417. else
  10418. ld_shlibs=no
  10419. fi
  10420. ;;
  10421. dgux*)
  10422. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  10423. hardcode_libdir_flag_spec='-L$libdir'
  10424. hardcode_shlibpath_var=no
  10425. ;;
  10426. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  10427. # support. Future versions do this automatically, but an explicit c++rt0.o
  10428. # does not break anything, and helps significantly (at the cost of a little
  10429. # extra space).
  10430. freebsd2.2*)
  10431. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  10432. hardcode_libdir_flag_spec='-R$libdir'
  10433. hardcode_direct=yes
  10434. hardcode_shlibpath_var=no
  10435. ;;
  10436. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  10437. freebsd2.*)
  10438. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  10439. hardcode_direct=yes
  10440. hardcode_minus_L=yes
  10441. hardcode_shlibpath_var=no
  10442. ;;
  10443. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  10444. freebsd* | dragonfly*)
  10445. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  10446. hardcode_libdir_flag_spec='-R$libdir'
  10447. hardcode_direct=yes
  10448. hardcode_shlibpath_var=no
  10449. ;;
  10450. hpux9*)
  10451. if test yes = "$GCC"; then
  10452. archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
  10453. else
  10454. archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
  10455. fi
  10456. hardcode_libdir_flag_spec='$wl+b $wl$libdir'
  10457. hardcode_libdir_separator=:
  10458. hardcode_direct=yes
  10459. # hardcode_minus_L: Not really in the search PATH,
  10460. # but as the default location of the library.
  10461. hardcode_minus_L=yes
  10462. export_dynamic_flag_spec='$wl-E'
  10463. ;;
  10464. hpux10*)
  10465. if test yes,no = "$GCC,$with_gnu_ld"; then
  10466. archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  10467. else
  10468. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  10469. fi
  10470. if test no = "$with_gnu_ld"; then
  10471. hardcode_libdir_flag_spec='$wl+b $wl$libdir'
  10472. hardcode_libdir_separator=:
  10473. hardcode_direct=yes
  10474. hardcode_direct_absolute=yes
  10475. export_dynamic_flag_spec='$wl-E'
  10476. # hardcode_minus_L: Not really in the search PATH,
  10477. # but as the default location of the library.
  10478. hardcode_minus_L=yes
  10479. fi
  10480. ;;
  10481. hpux11*)
  10482. if test yes,no = "$GCC,$with_gnu_ld"; then
  10483. case $host_cpu in
  10484. hppa*64*)
  10485. archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
  10486. ;;
  10487. ia64*)
  10488. archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  10489. ;;
  10490. *)
  10491. archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  10492. ;;
  10493. esac
  10494. else
  10495. case $host_cpu in
  10496. hppa*64*)
  10497. archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
  10498. ;;
  10499. ia64*)
  10500. archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  10501. ;;
  10502. *)
  10503. # Older versions of the 11.00 compiler do not understand -b yet
  10504. # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
  10505. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
  10506. $as_echo_n "checking if $CC understands -b... " >&6; }
  10507. if ${lt_cv_prog_compiler__b+:} false; then :
  10508. $as_echo_n "(cached) " >&6
  10509. else
  10510. lt_cv_prog_compiler__b=no
  10511. save_LDFLAGS=$LDFLAGS
  10512. LDFLAGS="$LDFLAGS -b"
  10513. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  10514. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  10515. # The linker can only warn and ignore the option if not recognized
  10516. # So say no if there are warnings
  10517. if test -s conftest.err; then
  10518. # Append any errors to the config.log.
  10519. cat conftest.err 1>&5
  10520. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  10521. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  10522. if diff conftest.exp conftest.er2 >/dev/null; then
  10523. lt_cv_prog_compiler__b=yes
  10524. fi
  10525. else
  10526. lt_cv_prog_compiler__b=yes
  10527. fi
  10528. fi
  10529. $RM -r conftest*
  10530. LDFLAGS=$save_LDFLAGS
  10531. fi
  10532. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
  10533. $as_echo "$lt_cv_prog_compiler__b" >&6; }
  10534. if test yes = "$lt_cv_prog_compiler__b"; then
  10535. archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  10536. else
  10537. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  10538. fi
  10539. ;;
  10540. esac
  10541. fi
  10542. if test no = "$with_gnu_ld"; then
  10543. hardcode_libdir_flag_spec='$wl+b $wl$libdir'
  10544. hardcode_libdir_separator=:
  10545. case $host_cpu in
  10546. hppa*64*|ia64*)
  10547. hardcode_direct=no
  10548. hardcode_shlibpath_var=no
  10549. ;;
  10550. *)
  10551. hardcode_direct=yes
  10552. hardcode_direct_absolute=yes
  10553. export_dynamic_flag_spec='$wl-E'
  10554. # hardcode_minus_L: Not really in the search PATH,
  10555. # but as the default location of the library.
  10556. hardcode_minus_L=yes
  10557. ;;
  10558. esac
  10559. fi
  10560. ;;
  10561. irix5* | irix6* | nonstopux*)
  10562. if test yes = "$GCC"; then
  10563. 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'
  10564. # Try to use the -exported_symbol ld option, if it does not
  10565. # work, assume that -exports_file does not work either and
  10566. # implicitly export all symbols.
  10567. # This should be the same for all languages, so no per-tag cache variable.
  10568. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
  10569. $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
  10570. if ${lt_cv_irix_exported_symbol+:} false; then :
  10571. $as_echo_n "(cached) " >&6
  10572. else
  10573. save_LDFLAGS=$LDFLAGS
  10574. LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
  10575. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10576. /* end confdefs.h. */
  10577. int foo (void) { return 0; }
  10578. _ACEOF
  10579. if ac_fn_c_try_link "$LINENO"; then :
  10580. lt_cv_irix_exported_symbol=yes
  10581. else
  10582. lt_cv_irix_exported_symbol=no
  10583. fi
  10584. rm -f core conftest.err conftest.$ac_objext \
  10585. conftest$ac_exeext conftest.$ac_ext
  10586. LDFLAGS=$save_LDFLAGS
  10587. fi
  10588. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
  10589. $as_echo "$lt_cv_irix_exported_symbol" >&6; }
  10590. if test yes = "$lt_cv_irix_exported_symbol"; then
  10591. 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'
  10592. fi
  10593. link_all_deplibs=no
  10594. else
  10595. 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'
  10596. 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'
  10597. fi
  10598. archive_cmds_need_lc='no'
  10599. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  10600. hardcode_libdir_separator=:
  10601. inherit_rpath=yes
  10602. link_all_deplibs=yes
  10603. ;;
  10604. linux*)
  10605. case $cc_basename in
  10606. tcc*)
  10607. # Fabrice Bellard et al's Tiny C Compiler
  10608. ld_shlibs=yes
  10609. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  10610. ;;
  10611. esac
  10612. ;;
  10613. netbsd* | netbsdelf*-gnu)
  10614. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  10615. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  10616. else
  10617. archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  10618. fi
  10619. hardcode_libdir_flag_spec='-R$libdir'
  10620. hardcode_direct=yes
  10621. hardcode_shlibpath_var=no
  10622. ;;
  10623. newsos6)
  10624. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  10625. hardcode_direct=yes
  10626. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  10627. hardcode_libdir_separator=:
  10628. hardcode_shlibpath_var=no
  10629. ;;
  10630. *nto* | *qnx*)
  10631. ;;
  10632. openbsd* | bitrig*)
  10633. if test -f /usr/libexec/ld.so; then
  10634. hardcode_direct=yes
  10635. hardcode_shlibpath_var=no
  10636. hardcode_direct_absolute=yes
  10637. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
  10638. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  10639. archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
  10640. hardcode_libdir_flag_spec='$wl-rpath,$libdir'
  10641. export_dynamic_flag_spec='$wl-E'
  10642. else
  10643. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  10644. hardcode_libdir_flag_spec='$wl-rpath,$libdir'
  10645. fi
  10646. else
  10647. ld_shlibs=no
  10648. fi
  10649. ;;
  10650. os2*)
  10651. hardcode_libdir_flag_spec='-L$libdir'
  10652. hardcode_minus_L=yes
  10653. allow_undefined_flag=unsupported
  10654. shrext_cmds=.dll
  10655. archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  10656. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  10657. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  10658. $ECHO EXPORTS >> $output_objdir/$libname.def~
  10659. emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
  10660. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  10661. emximp -o $lib $output_objdir/$libname.def'
  10662. archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  10663. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  10664. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  10665. $ECHO EXPORTS >> $output_objdir/$libname.def~
  10666. prefix_cmds="$SED"~
  10667. if test EXPORTS = "`$SED 1q $export_symbols`"; then
  10668. prefix_cmds="$prefix_cmds -e 1d";
  10669. fi~
  10670. prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
  10671. cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
  10672. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  10673. emximp -o $lib $output_objdir/$libname.def'
  10674. old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
  10675. enable_shared_with_static_runtimes=yes
  10676. ;;
  10677. osf3*)
  10678. if test yes = "$GCC"; then
  10679. allow_undefined_flag=' $wl-expect_unresolved $wl\*'
  10680. 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'
  10681. else
  10682. allow_undefined_flag=' -expect_unresolved \*'
  10683. 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'
  10684. fi
  10685. archive_cmds_need_lc='no'
  10686. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  10687. hardcode_libdir_separator=:
  10688. ;;
  10689. osf4* | osf5*) # as osf3* with the addition of -msym flag
  10690. if test yes = "$GCC"; then
  10691. allow_undefined_flag=' $wl-expect_unresolved $wl\*'
  10692. 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'
  10693. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  10694. else
  10695. allow_undefined_flag=' -expect_unresolved \*'
  10696. 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'
  10697. 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~
  10698. $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'
  10699. # Both c and cxx compiler support -rpath directly
  10700. hardcode_libdir_flag_spec='-rpath $libdir'
  10701. fi
  10702. archive_cmds_need_lc='no'
  10703. hardcode_libdir_separator=:
  10704. ;;
  10705. solaris*)
  10706. no_undefined_flag=' -z defs'
  10707. if test yes = "$GCC"; then
  10708. wlarc='$wl'
  10709. archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
  10710. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  10711. $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'
  10712. else
  10713. case `$CC -V 2>&1` in
  10714. *"Compilers 5.0"*)
  10715. wlarc=''
  10716. archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
  10717. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  10718. $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
  10719. ;;
  10720. *)
  10721. wlarc='$wl'
  10722. archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
  10723. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  10724. $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  10725. ;;
  10726. esac
  10727. fi
  10728. hardcode_libdir_flag_spec='-R$libdir'
  10729. hardcode_shlibpath_var=no
  10730. case $host_os in
  10731. solaris2.[0-5] | solaris2.[0-5].*) ;;
  10732. *)
  10733. # The compiler driver will combine and reorder linker options,
  10734. # but understands '-z linker_flag'. GCC discards it without '$wl',
  10735. # but is careful enough not to reorder.
  10736. # Supported since Solaris 2.6 (maybe 2.5.1?)
  10737. if test yes = "$GCC"; then
  10738. whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
  10739. else
  10740. whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
  10741. fi
  10742. ;;
  10743. esac
  10744. link_all_deplibs=yes
  10745. ;;
  10746. sunos4*)
  10747. if test sequent = "$host_vendor"; then
  10748. # Use $CC to link under sequent, because it throws in some extra .o
  10749. # files that make .init and .fini sections work.
  10750. archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  10751. else
  10752. archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  10753. fi
  10754. hardcode_libdir_flag_spec='-L$libdir'
  10755. hardcode_direct=yes
  10756. hardcode_minus_L=yes
  10757. hardcode_shlibpath_var=no
  10758. ;;
  10759. sysv4)
  10760. case $host_vendor in
  10761. sni)
  10762. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  10763. hardcode_direct=yes # is this really true???
  10764. ;;
  10765. siemens)
  10766. ## LD is ld it makes a PLAMLIB
  10767. ## CC just makes a GrossModule.
  10768. archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  10769. reload_cmds='$CC -r -o $output$reload_objs'
  10770. hardcode_direct=no
  10771. ;;
  10772. motorola)
  10773. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  10774. hardcode_direct=no #Motorola manual says yes, but my tests say they lie
  10775. ;;
  10776. esac
  10777. runpath_var='LD_RUN_PATH'
  10778. hardcode_shlibpath_var=no
  10779. ;;
  10780. sysv4.3*)
  10781. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  10782. hardcode_shlibpath_var=no
  10783. export_dynamic_flag_spec='-Bexport'
  10784. ;;
  10785. sysv4*MP*)
  10786. if test -d /usr/nec; then
  10787. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  10788. hardcode_shlibpath_var=no
  10789. runpath_var=LD_RUN_PATH
  10790. hardcode_runpath_var=yes
  10791. ld_shlibs=yes
  10792. fi
  10793. ;;
  10794. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  10795. no_undefined_flag='$wl-z,text'
  10796. archive_cmds_need_lc=no
  10797. hardcode_shlibpath_var=no
  10798. runpath_var='LD_RUN_PATH'
  10799. if test yes = "$GCC"; then
  10800. archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10801. archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10802. else
  10803. archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10804. archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10805. fi
  10806. ;;
  10807. sysv5* | sco3.2v5* | sco5v6*)
  10808. # Note: We CANNOT use -z defs as we might desire, because we do not
  10809. # link with -lc, and that would cause any symbols used from libc to
  10810. # always be unresolved, which means just about no library would
  10811. # ever link correctly. If we're not using GNU ld we use -z text
  10812. # though, which does catch some bad symbols but isn't as heavy-handed
  10813. # as -z defs.
  10814. no_undefined_flag='$wl-z,text'
  10815. allow_undefined_flag='$wl-z,nodefs'
  10816. archive_cmds_need_lc=no
  10817. hardcode_shlibpath_var=no
  10818. hardcode_libdir_flag_spec='$wl-R,$libdir'
  10819. hardcode_libdir_separator=':'
  10820. link_all_deplibs=yes
  10821. export_dynamic_flag_spec='$wl-Bexport'
  10822. runpath_var='LD_RUN_PATH'
  10823. if test yes = "$GCC"; then
  10824. archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10825. archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10826. else
  10827. archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10828. archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10829. fi
  10830. ;;
  10831. uts4*)
  10832. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  10833. hardcode_libdir_flag_spec='-L$libdir'
  10834. hardcode_shlibpath_var=no
  10835. ;;
  10836. *)
  10837. ld_shlibs=no
  10838. ;;
  10839. esac
  10840. if test sni = "$host_vendor"; then
  10841. case $host in
  10842. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  10843. export_dynamic_flag_spec='$wl-Blargedynsym'
  10844. ;;
  10845. esac
  10846. fi
  10847. fi
  10848. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
  10849. $as_echo "$ld_shlibs" >&6; }
  10850. test no = "$ld_shlibs" && can_build_shared=no
  10851. with_gnu_ld=$with_gnu_ld
  10852. #
  10853. # Do we need to explicitly link libc?
  10854. #
  10855. case "x$archive_cmds_need_lc" in
  10856. x|xyes)
  10857. # Assume -lc should be added
  10858. archive_cmds_need_lc=yes
  10859. if test yes,yes = "$GCC,$enable_shared"; then
  10860. case $archive_cmds in
  10861. *'~'*)
  10862. # FIXME: we may have to deal with multi-command sequences.
  10863. ;;
  10864. '$CC '*)
  10865. # Test whether the compiler implicitly links with -lc since on some
  10866. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  10867. # to ld, don't add -lc before -lgcc.
  10868. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  10869. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  10870. if ${lt_cv_archive_cmds_need_lc+:} false; then :
  10871. $as_echo_n "(cached) " >&6
  10872. else
  10873. $RM conftest*
  10874. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  10875. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  10876. (eval $ac_compile) 2>&5
  10877. ac_status=$?
  10878. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10879. test $ac_status = 0; } 2>conftest.err; then
  10880. soname=conftest
  10881. lib=conftest
  10882. libobjs=conftest.$ac_objext
  10883. deplibs=
  10884. wl=$lt_prog_compiler_wl
  10885. pic_flag=$lt_prog_compiler_pic
  10886. compiler_flags=-v
  10887. linker_flags=-v
  10888. verstring=
  10889. output_objdir=.
  10890. libname=conftest
  10891. lt_save_allow_undefined_flag=$allow_undefined_flag
  10892. allow_undefined_flag=
  10893. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  10894. (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  10895. ac_status=$?
  10896. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10897. test $ac_status = 0; }
  10898. then
  10899. lt_cv_archive_cmds_need_lc=no
  10900. else
  10901. lt_cv_archive_cmds_need_lc=yes
  10902. fi
  10903. allow_undefined_flag=$lt_save_allow_undefined_flag
  10904. else
  10905. cat conftest.err 1>&5
  10906. fi
  10907. $RM conftest*
  10908. fi
  10909. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
  10910. $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
  10911. archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
  10912. ;;
  10913. esac
  10914. fi
  10915. ;;
  10916. esac
  10917. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  10918. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  10919. if test yes = "$GCC"; then
  10920. case $host_os in
  10921. darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
  10922. *) lt_awk_arg='/^libraries:/' ;;
  10923. esac
  10924. case $host_os in
  10925. mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
  10926. *) lt_sed_strip_eq='s|=/|/|g' ;;
  10927. esac
  10928. lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
  10929. case $lt_search_path_spec in
  10930. *\;*)
  10931. # if the path contains ";" then we assume it to be the separator
  10932. # otherwise default to the standard path separator (i.e. ":") - it is
  10933. # assumed that no part of a normal pathname contains ";" but that should
  10934. # okay in the real world where ";" in dirpaths is itself problematic.
  10935. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
  10936. ;;
  10937. *)
  10938. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
  10939. ;;
  10940. esac
  10941. # Ok, now we have the path, separated by spaces, we can step through it
  10942. # and add multilib dir if necessary...
  10943. lt_tmp_lt_search_path_spec=
  10944. lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
  10945. # ...but if some path component already ends with the multilib dir we assume
  10946. # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
  10947. case "$lt_multi_os_dir; $lt_search_path_spec " in
  10948. "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
  10949. lt_multi_os_dir=
  10950. ;;
  10951. esac
  10952. for lt_sys_path in $lt_search_path_spec; do
  10953. if test -d "$lt_sys_path$lt_multi_os_dir"; then
  10954. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
  10955. elif test -n "$lt_multi_os_dir"; then
  10956. test -d "$lt_sys_path" && \
  10957. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
  10958. fi
  10959. done
  10960. lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
  10961. BEGIN {RS = " "; FS = "/|\n";} {
  10962. lt_foo = "";
  10963. lt_count = 0;
  10964. for (lt_i = NF; lt_i > 0; lt_i--) {
  10965. if ($lt_i != "" && $lt_i != ".") {
  10966. if ($lt_i == "..") {
  10967. lt_count++;
  10968. } else {
  10969. if (lt_count == 0) {
  10970. lt_foo = "/" $lt_i lt_foo;
  10971. } else {
  10972. lt_count--;
  10973. }
  10974. }
  10975. }
  10976. }
  10977. if (lt_foo != "") { lt_freq[lt_foo]++; }
  10978. if (lt_freq[lt_foo] == 1) { print lt_foo; }
  10979. }'`
  10980. # AWK program above erroneously prepends '/' to C:/dos/paths
  10981. # for these hosts.
  10982. case $host_os in
  10983. mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
  10984. $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
  10985. esac
  10986. sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
  10987. else
  10988. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  10989. fi
  10990. library_names_spec=
  10991. libname_spec='lib$name'
  10992. soname_spec=
  10993. shrext_cmds=.so
  10994. postinstall_cmds=
  10995. postuninstall_cmds=
  10996. finish_cmds=
  10997. finish_eval=
  10998. shlibpath_var=
  10999. shlibpath_overrides_runpath=unknown
  11000. version_type=none
  11001. dynamic_linker="$host_os ld.so"
  11002. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  11003. need_lib_prefix=unknown
  11004. hardcode_into_libs=no
  11005. # when you set need_version to no, make sure it does not cause -set_version
  11006. # flags to be left without arguments
  11007. need_version=unknown
  11008. case $host_os in
  11009. aix3*)
  11010. version_type=linux # correct to gnu/linux during the next big refactor
  11011. library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
  11012. shlibpath_var=LIBPATH
  11013. # AIX 3 has no versioning support, so we append a major version to the name.
  11014. soname_spec='$libname$release$shared_ext$major'
  11015. ;;
  11016. aix[4-9]*)
  11017. version_type=linux # correct to gnu/linux during the next big refactor
  11018. need_lib_prefix=no
  11019. need_version=no
  11020. hardcode_into_libs=yes
  11021. if test ia64 = "$host_cpu"; then
  11022. # AIX 5 supports IA64
  11023. library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
  11024. shlibpath_var=LD_LIBRARY_PATH
  11025. else
  11026. # With GCC up to 2.95.x, collect2 would create an import file
  11027. # for dependence libraries. The import file would start with
  11028. # the line '#! .'. This would cause the generated library to
  11029. # depend on '.', always an invalid library. This was fixed in
  11030. # development snapshots of GCC prior to 3.0.
  11031. case $host_os in
  11032. aix4 | aix4.[01] | aix4.[01].*)
  11033. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  11034. echo ' yes '
  11035. echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
  11036. :
  11037. else
  11038. can_build_shared=no
  11039. fi
  11040. ;;
  11041. esac
  11042. # Using Import Files as archive members, it is possible to support
  11043. # filename-based versioning of shared library archives on AIX. While
  11044. # this would work for both with and without runtime linking, it will
  11045. # prevent static linking of such archives. So we do filename-based
  11046. # shared library versioning with .so extension only, which is used
  11047. # when both runtime linking and shared linking is enabled.
  11048. # Unfortunately, runtime linking may impact performance, so we do
  11049. # not want this to be the default eventually. Also, we use the
  11050. # versioned .so libs for executables only if there is the -brtl
  11051. # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
  11052. # To allow for filename-based versioning support, we need to create
  11053. # libNAME.so.V as an archive file, containing:
  11054. # *) an Import File, referring to the versioned filename of the
  11055. # archive as well as the shared archive member, telling the
  11056. # bitwidth (32 or 64) of that shared object, and providing the
  11057. # list of exported symbols of that shared object, eventually
  11058. # decorated with the 'weak' keyword
  11059. # *) the shared object with the F_LOADONLY flag set, to really avoid
  11060. # it being seen by the linker.
  11061. # At run time we better use the real file rather than another symlink,
  11062. # but for link time we create the symlink libNAME.so -> libNAME.so.V
  11063. case $with_aix_soname,$aix_use_runtimelinking in
  11064. # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
  11065. # soname into executable. Probably we can add versioning support to
  11066. # collect2, so additional links can be useful in future.
  11067. aix,yes) # traditional libtool
  11068. dynamic_linker='AIX unversionable lib.so'
  11069. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  11070. # instead of lib<name>.a to let people know that these are not
  11071. # typical AIX shared libraries.
  11072. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  11073. ;;
  11074. aix,no) # traditional AIX only
  11075. dynamic_linker='AIX lib.a(lib.so.V)'
  11076. # We preserve .a as extension for shared libraries through AIX4.2
  11077. # and later when we are not doing run time linking.
  11078. library_names_spec='$libname$release.a $libname.a'
  11079. soname_spec='$libname$release$shared_ext$major'
  11080. ;;
  11081. svr4,*) # full svr4 only
  11082. dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
  11083. library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
  11084. # We do not specify a path in Import Files, so LIBPATH fires.
  11085. shlibpath_overrides_runpath=yes
  11086. ;;
  11087. *,yes) # both, prefer svr4
  11088. dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
  11089. library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
  11090. # unpreferred sharedlib libNAME.a needs extra handling
  11091. postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
  11092. postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
  11093. # We do not specify a path in Import Files, so LIBPATH fires.
  11094. shlibpath_overrides_runpath=yes
  11095. ;;
  11096. *,no) # both, prefer aix
  11097. dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
  11098. library_names_spec='$libname$release.a $libname.a'
  11099. soname_spec='$libname$release$shared_ext$major'
  11100. # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
  11101. postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
  11102. postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
  11103. ;;
  11104. esac
  11105. shlibpath_var=LIBPATH
  11106. fi
  11107. ;;
  11108. amigaos*)
  11109. case $host_cpu in
  11110. powerpc)
  11111. # Since July 2007 AmigaOS4 officially supports .so libraries.
  11112. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  11113. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  11114. ;;
  11115. m68k)
  11116. library_names_spec='$libname.ixlibrary $libname.a'
  11117. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  11118. finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $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'
  11119. ;;
  11120. esac
  11121. ;;
  11122. beos*)
  11123. library_names_spec='$libname$shared_ext'
  11124. dynamic_linker="$host_os ld.so"
  11125. shlibpath_var=LIBRARY_PATH
  11126. ;;
  11127. bsdi[45]*)
  11128. version_type=linux # correct to gnu/linux during the next big refactor
  11129. need_version=no
  11130. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  11131. soname_spec='$libname$release$shared_ext$major'
  11132. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  11133. shlibpath_var=LD_LIBRARY_PATH
  11134. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  11135. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  11136. # the default ld.so.conf also contains /usr/contrib/lib and
  11137. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  11138. # libtool to hard-code these into programs
  11139. ;;
  11140. cygwin* | mingw* | pw32* | cegcc*)
  11141. version_type=windows
  11142. shrext_cmds=.dll
  11143. need_version=no
  11144. need_lib_prefix=no
  11145. case $GCC,$cc_basename in
  11146. yes,*)
  11147. # gcc
  11148. library_names_spec='$libname.dll.a'
  11149. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  11150. postinstall_cmds='base_file=`basename \$file`~
  11151. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
  11152. dldir=$destdir/`dirname \$dlpath`~
  11153. test -d \$dldir || mkdir -p \$dldir~
  11154. $install_prog $dir/$dlname \$dldir/$dlname~
  11155. chmod a+x \$dldir/$dlname~
  11156. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  11157. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  11158. fi'
  11159. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  11160. dlpath=$dir/\$dldll~
  11161. $RM \$dlpath'
  11162. shlibpath_overrides_runpath=yes
  11163. case $host_os in
  11164. cygwin*)
  11165. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  11166. soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  11167. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
  11168. ;;
  11169. mingw* | cegcc*)
  11170. # MinGW DLLs use traditional 'lib' prefix
  11171. soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  11172. ;;
  11173. pw32*)
  11174. # pw32 DLLs use 'pw' prefix rather than 'lib'
  11175. library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  11176. ;;
  11177. esac
  11178. dynamic_linker='Win32 ld.exe'
  11179. ;;
  11180. *,cl*)
  11181. # Native MSVC
  11182. libname_spec='$name'
  11183. soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  11184. library_names_spec='$libname.dll.lib'
  11185. case $build_os in
  11186. mingw*)
  11187. sys_lib_search_path_spec=
  11188. lt_save_ifs=$IFS
  11189. IFS=';'
  11190. for lt_path in $LIB
  11191. do
  11192. IFS=$lt_save_ifs
  11193. # Let DOS variable expansion print the short 8.3 style file name.
  11194. lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
  11195. sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
  11196. done
  11197. IFS=$lt_save_ifs
  11198. # Convert to MSYS style.
  11199. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
  11200. ;;
  11201. cygwin*)
  11202. # Convert to unix form, then to dos form, then back to unix form
  11203. # but this time dos style (no spaces!) so that the unix form looks
  11204. # like /cygdrive/c/PROGRA~1:/cygdr...
  11205. sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
  11206. sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
  11207. sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  11208. ;;
  11209. *)
  11210. sys_lib_search_path_spec=$LIB
  11211. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  11212. # It is most probably a Windows format PATH.
  11213. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  11214. else
  11215. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  11216. fi
  11217. # FIXME: find the short name or the path components, as spaces are
  11218. # common. (e.g. "Program Files" -> "PROGRA~1")
  11219. ;;
  11220. esac
  11221. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  11222. postinstall_cmds='base_file=`basename \$file`~
  11223. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
  11224. dldir=$destdir/`dirname \$dlpath`~
  11225. test -d \$dldir || mkdir -p \$dldir~
  11226. $install_prog $dir/$dlname \$dldir/$dlname'
  11227. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  11228. dlpath=$dir/\$dldll~
  11229. $RM \$dlpath'
  11230. shlibpath_overrides_runpath=yes
  11231. dynamic_linker='Win32 link.exe'
  11232. ;;
  11233. *)
  11234. # Assume MSVC wrapper
  11235. library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
  11236. dynamic_linker='Win32 ld.exe'
  11237. ;;
  11238. esac
  11239. # FIXME: first we should search . and the directory the executable is in
  11240. shlibpath_var=PATH
  11241. ;;
  11242. darwin* | rhapsody*)
  11243. dynamic_linker="$host_os dyld"
  11244. version_type=darwin
  11245. need_lib_prefix=no
  11246. need_version=no
  11247. library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
  11248. soname_spec='$libname$release$major$shared_ext'
  11249. shlibpath_overrides_runpath=yes
  11250. shlibpath_var=DYLD_LIBRARY_PATH
  11251. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  11252. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
  11253. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  11254. ;;
  11255. dgux*)
  11256. version_type=linux # correct to gnu/linux during the next big refactor
  11257. need_lib_prefix=no
  11258. need_version=no
  11259. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  11260. soname_spec='$libname$release$shared_ext$major'
  11261. shlibpath_var=LD_LIBRARY_PATH
  11262. ;;
  11263. freebsd* | dragonfly*)
  11264. # DragonFly does not have aout. When/if they implement a new
  11265. # versioning mechanism, adjust this.
  11266. if test -x /usr/bin/objformat; then
  11267. objformat=`/usr/bin/objformat`
  11268. else
  11269. case $host_os in
  11270. freebsd[23].*) objformat=aout ;;
  11271. *) objformat=elf ;;
  11272. esac
  11273. fi
  11274. version_type=freebsd-$objformat
  11275. case $version_type in
  11276. freebsd-elf*)
  11277. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  11278. soname_spec='$libname$release$shared_ext$major'
  11279. need_version=no
  11280. need_lib_prefix=no
  11281. ;;
  11282. freebsd-*)
  11283. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  11284. need_version=yes
  11285. ;;
  11286. esac
  11287. shlibpath_var=LD_LIBRARY_PATH
  11288. case $host_os in
  11289. freebsd2.*)
  11290. shlibpath_overrides_runpath=yes
  11291. ;;
  11292. freebsd3.[01]* | freebsdelf3.[01]*)
  11293. shlibpath_overrides_runpath=yes
  11294. hardcode_into_libs=yes
  11295. ;;
  11296. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  11297. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  11298. shlibpath_overrides_runpath=no
  11299. hardcode_into_libs=yes
  11300. ;;
  11301. *) # from 4.6 on, and DragonFly
  11302. shlibpath_overrides_runpath=yes
  11303. hardcode_into_libs=yes
  11304. ;;
  11305. esac
  11306. ;;
  11307. haiku*)
  11308. version_type=linux # correct to gnu/linux during the next big refactor
  11309. need_lib_prefix=no
  11310. need_version=no
  11311. dynamic_linker="$host_os runtime_loader"
  11312. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  11313. soname_spec='$libname$release$shared_ext$major'
  11314. shlibpath_var=LIBRARY_PATH
  11315. shlibpath_overrides_runpath=no
  11316. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
  11317. hardcode_into_libs=yes
  11318. ;;
  11319. hpux9* | hpux10* | hpux11*)
  11320. # Give a soname corresponding to the major version so that dld.sl refuses to
  11321. # link against other versions.
  11322. version_type=sunos
  11323. need_lib_prefix=no
  11324. need_version=no
  11325. case $host_cpu in
  11326. ia64*)
  11327. shrext_cmds='.so'
  11328. hardcode_into_libs=yes
  11329. dynamic_linker="$host_os dld.so"
  11330. shlibpath_var=LD_LIBRARY_PATH
  11331. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  11332. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  11333. soname_spec='$libname$release$shared_ext$major'
  11334. if test 32 = "$HPUX_IA64_MODE"; then
  11335. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  11336. sys_lib_dlsearch_path_spec=/usr/lib/hpux32
  11337. else
  11338. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  11339. sys_lib_dlsearch_path_spec=/usr/lib/hpux64
  11340. fi
  11341. ;;
  11342. hppa*64*)
  11343. shrext_cmds='.sl'
  11344. hardcode_into_libs=yes
  11345. dynamic_linker="$host_os dld.sl"
  11346. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  11347. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  11348. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  11349. soname_spec='$libname$release$shared_ext$major'
  11350. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  11351. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  11352. ;;
  11353. *)
  11354. shrext_cmds='.sl'
  11355. dynamic_linker="$host_os dld.sl"
  11356. shlibpath_var=SHLIB_PATH
  11357. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  11358. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  11359. soname_spec='$libname$release$shared_ext$major'
  11360. ;;
  11361. esac
  11362. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  11363. postinstall_cmds='chmod 555 $lib'
  11364. # or fails outright, so override atomically:
  11365. install_override_mode=555
  11366. ;;
  11367. interix[3-9]*)
  11368. version_type=linux # correct to gnu/linux during the next big refactor
  11369. need_lib_prefix=no
  11370. need_version=no
  11371. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  11372. soname_spec='$libname$release$shared_ext$major'
  11373. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  11374. shlibpath_var=LD_LIBRARY_PATH
  11375. shlibpath_overrides_runpath=no
  11376. hardcode_into_libs=yes
  11377. ;;
  11378. irix5* | irix6* | nonstopux*)
  11379. case $host_os in
  11380. nonstopux*) version_type=nonstopux ;;
  11381. *)
  11382. if test yes = "$lt_cv_prog_gnu_ld"; then
  11383. version_type=linux # correct to gnu/linux during the next big refactor
  11384. else
  11385. version_type=irix
  11386. fi ;;
  11387. esac
  11388. need_lib_prefix=no
  11389. need_version=no
  11390. soname_spec='$libname$release$shared_ext$major'
  11391. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
  11392. case $host_os in
  11393. irix5* | nonstopux*)
  11394. libsuff= shlibsuff=
  11395. ;;
  11396. *)
  11397. case $LD in # libtool.m4 will add one of these switches to LD
  11398. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  11399. libsuff= shlibsuff= libmagic=32-bit;;
  11400. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  11401. libsuff=32 shlibsuff=N32 libmagic=N32;;
  11402. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  11403. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  11404. *) libsuff= shlibsuff= libmagic=never-match;;
  11405. esac
  11406. ;;
  11407. esac
  11408. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  11409. shlibpath_overrides_runpath=no
  11410. sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
  11411. sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
  11412. hardcode_into_libs=yes
  11413. ;;
  11414. # No shared lib support for Linux oldld, aout, or coff.
  11415. linux*oldld* | linux*aout* | linux*coff*)
  11416. dynamic_linker=no
  11417. ;;
  11418. linux*android*)
  11419. version_type=none # Android doesn't support versioned libraries.
  11420. need_lib_prefix=no
  11421. need_version=no
  11422. library_names_spec='$libname$release$shared_ext'
  11423. soname_spec='$libname$release$shared_ext'
  11424. finish_cmds=
  11425. shlibpath_var=LD_LIBRARY_PATH
  11426. shlibpath_overrides_runpath=yes
  11427. # This implies no fast_install, which is unacceptable.
  11428. # Some rework will be needed to allow for fast_install
  11429. # before this can be enabled.
  11430. hardcode_into_libs=yes
  11431. dynamic_linker='Android linker'
  11432. # Don't embed -rpath directories since the linker doesn't support them.
  11433. hardcode_libdir_flag_spec='-L$libdir'
  11434. ;;
  11435. # This must be glibc/ELF.
  11436. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  11437. version_type=linux # correct to gnu/linux during the next big refactor
  11438. need_lib_prefix=no
  11439. need_version=no
  11440. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  11441. soname_spec='$libname$release$shared_ext$major'
  11442. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  11443. shlibpath_var=LD_LIBRARY_PATH
  11444. shlibpath_overrides_runpath=no
  11445. # Some binutils ld are patched to set DT_RUNPATH
  11446. if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
  11447. $as_echo_n "(cached) " >&6
  11448. else
  11449. lt_cv_shlibpath_overrides_runpath=no
  11450. save_LDFLAGS=$LDFLAGS
  11451. save_libdir=$libdir
  11452. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
  11453. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
  11454. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11455. /* end confdefs.h. */
  11456. int
  11457. main ()
  11458. {
  11459. ;
  11460. return 0;
  11461. }
  11462. _ACEOF
  11463. if ac_fn_c_try_link "$LINENO"; then :
  11464. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  11465. lt_cv_shlibpath_overrides_runpath=yes
  11466. fi
  11467. fi
  11468. rm -f core conftest.err conftest.$ac_objext \
  11469. conftest$ac_exeext conftest.$ac_ext
  11470. LDFLAGS=$save_LDFLAGS
  11471. libdir=$save_libdir
  11472. fi
  11473. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  11474. # This implies no fast_install, which is unacceptable.
  11475. # Some rework will be needed to allow for fast_install
  11476. # before this can be enabled.
  11477. hardcode_into_libs=yes
  11478. # Ideally, we could use ldconfig to report *all* directores which are
  11479. # searched for libraries, however this is still not possible. Aside from not
  11480. # being certain /sbin/ldconfig is available, command
  11481. # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
  11482. # even though it is searched at run-time. Try to do the best guess by
  11483. # appending ld.so.conf contents (and includes) to the search path.
  11484. if test -f /etc/ld.so.conf; then
  11485. 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' ' '`
  11486. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  11487. fi
  11488. # We used to test for /lib/ld.so.1 and disable shared libraries on
  11489. # powerpc, because MkLinux only supported shared libraries with the
  11490. # GNU dynamic linker. Since this was broken with cross compilers,
  11491. # most powerpc-linux boxes support dynamic linking these days and
  11492. # people can always --disable-shared, the test was removed, and we
  11493. # assume the GNU/Linux dynamic linker is in use.
  11494. dynamic_linker='GNU/Linux ld.so'
  11495. ;;
  11496. netbsdelf*-gnu)
  11497. version_type=linux
  11498. need_lib_prefix=no
  11499. need_version=no
  11500. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  11501. soname_spec='${libname}${release}${shared_ext}$major'
  11502. shlibpath_var=LD_LIBRARY_PATH
  11503. shlibpath_overrides_runpath=no
  11504. hardcode_into_libs=yes
  11505. dynamic_linker='NetBSD ld.elf_so'
  11506. ;;
  11507. netbsd*)
  11508. version_type=sunos
  11509. need_lib_prefix=no
  11510. need_version=no
  11511. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  11512. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  11513. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  11514. dynamic_linker='NetBSD (a.out) ld.so'
  11515. else
  11516. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  11517. soname_spec='$libname$release$shared_ext$major'
  11518. dynamic_linker='NetBSD ld.elf_so'
  11519. fi
  11520. shlibpath_var=LD_LIBRARY_PATH
  11521. shlibpath_overrides_runpath=yes
  11522. hardcode_into_libs=yes
  11523. ;;
  11524. newsos6)
  11525. version_type=linux # correct to gnu/linux during the next big refactor
  11526. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  11527. shlibpath_var=LD_LIBRARY_PATH
  11528. shlibpath_overrides_runpath=yes
  11529. ;;
  11530. *nto* | *qnx*)
  11531. version_type=qnx
  11532. need_lib_prefix=no
  11533. need_version=no
  11534. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  11535. soname_spec='$libname$release$shared_ext$major'
  11536. shlibpath_var=LD_LIBRARY_PATH
  11537. shlibpath_overrides_runpath=no
  11538. hardcode_into_libs=yes
  11539. dynamic_linker='ldqnx.so'
  11540. ;;
  11541. openbsd* | bitrig*)
  11542. version_type=sunos
  11543. sys_lib_dlsearch_path_spec=/usr/lib
  11544. need_lib_prefix=no
  11545. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
  11546. need_version=no
  11547. else
  11548. need_version=yes
  11549. fi
  11550. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  11551. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  11552. shlibpath_var=LD_LIBRARY_PATH
  11553. shlibpath_overrides_runpath=yes
  11554. ;;
  11555. os2*)
  11556. libname_spec='$name'
  11557. version_type=windows
  11558. shrext_cmds=.dll
  11559. need_version=no
  11560. need_lib_prefix=no
  11561. # OS/2 can only load a DLL with a base name of 8 characters or less.
  11562. soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
  11563. v=$($ECHO $release$versuffix | tr -d .-);
  11564. n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
  11565. $ECHO $n$v`$shared_ext'
  11566. library_names_spec='${libname}_dll.$libext'
  11567. dynamic_linker='OS/2 ld.exe'
  11568. shlibpath_var=BEGINLIBPATH
  11569. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  11570. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  11571. postinstall_cmds='base_file=`basename \$file`~
  11572. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
  11573. dldir=$destdir/`dirname \$dlpath`~
  11574. test -d \$dldir || mkdir -p \$dldir~
  11575. $install_prog $dir/$dlname \$dldir/$dlname~
  11576. chmod a+x \$dldir/$dlname~
  11577. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  11578. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  11579. fi'
  11580. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
  11581. dlpath=$dir/\$dldll~
  11582. $RM \$dlpath'
  11583. ;;
  11584. osf3* | osf4* | osf5*)
  11585. version_type=osf
  11586. need_lib_prefix=no
  11587. need_version=no
  11588. soname_spec='$libname$release$shared_ext$major'
  11589. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  11590. shlibpath_var=LD_LIBRARY_PATH
  11591. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  11592. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  11593. ;;
  11594. rdos*)
  11595. dynamic_linker=no
  11596. ;;
  11597. solaris*)
  11598. version_type=linux # correct to gnu/linux during the next big refactor
  11599. need_lib_prefix=no
  11600. need_version=no
  11601. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  11602. soname_spec='$libname$release$shared_ext$major'
  11603. shlibpath_var=LD_LIBRARY_PATH
  11604. shlibpath_overrides_runpath=yes
  11605. hardcode_into_libs=yes
  11606. # ldd complains unless libraries are executable
  11607. postinstall_cmds='chmod +x $lib'
  11608. ;;
  11609. sunos4*)
  11610. version_type=sunos
  11611. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  11612. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  11613. shlibpath_var=LD_LIBRARY_PATH
  11614. shlibpath_overrides_runpath=yes
  11615. if test yes = "$with_gnu_ld"; then
  11616. need_lib_prefix=no
  11617. fi
  11618. need_version=yes
  11619. ;;
  11620. sysv4 | sysv4.3*)
  11621. version_type=linux # correct to gnu/linux during the next big refactor
  11622. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  11623. soname_spec='$libname$release$shared_ext$major'
  11624. shlibpath_var=LD_LIBRARY_PATH
  11625. case $host_vendor in
  11626. sni)
  11627. shlibpath_overrides_runpath=no
  11628. need_lib_prefix=no
  11629. runpath_var=LD_RUN_PATH
  11630. ;;
  11631. siemens)
  11632. need_lib_prefix=no
  11633. ;;
  11634. motorola)
  11635. need_lib_prefix=no
  11636. need_version=no
  11637. shlibpath_overrides_runpath=no
  11638. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  11639. ;;
  11640. esac
  11641. ;;
  11642. sysv4*MP*)
  11643. if test -d /usr/nec; then
  11644. version_type=linux # correct to gnu/linux during the next big refactor
  11645. library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
  11646. soname_spec='$libname$shared_ext.$major'
  11647. shlibpath_var=LD_LIBRARY_PATH
  11648. fi
  11649. ;;
  11650. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  11651. version_type=sco
  11652. need_lib_prefix=no
  11653. need_version=no
  11654. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
  11655. soname_spec='$libname$release$shared_ext$major'
  11656. shlibpath_var=LD_LIBRARY_PATH
  11657. shlibpath_overrides_runpath=yes
  11658. hardcode_into_libs=yes
  11659. if test yes = "$with_gnu_ld"; then
  11660. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  11661. else
  11662. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  11663. case $host_os in
  11664. sco3.2v5*)
  11665. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  11666. ;;
  11667. esac
  11668. fi
  11669. sys_lib_dlsearch_path_spec='/usr/lib'
  11670. ;;
  11671. tpf*)
  11672. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  11673. version_type=linux # correct to gnu/linux during the next big refactor
  11674. need_lib_prefix=no
  11675. need_version=no
  11676. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  11677. shlibpath_var=LD_LIBRARY_PATH
  11678. shlibpath_overrides_runpath=no
  11679. hardcode_into_libs=yes
  11680. ;;
  11681. uts4*)
  11682. version_type=linux # correct to gnu/linux during the next big refactor
  11683. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  11684. soname_spec='$libname$release$shared_ext$major'
  11685. shlibpath_var=LD_LIBRARY_PATH
  11686. ;;
  11687. *)
  11688. dynamic_linker=no
  11689. ;;
  11690. esac
  11691. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  11692. $as_echo "$dynamic_linker" >&6; }
  11693. test no = "$dynamic_linker" && can_build_shared=no
  11694. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  11695. if test yes = "$GCC"; then
  11696. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  11697. fi
  11698. if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
  11699. sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
  11700. fi
  11701. if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
  11702. sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
  11703. fi
  11704. # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
  11705. configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
  11706. # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
  11707. func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
  11708. # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
  11709. configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
  11710. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  11711. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  11712. hardcode_action=
  11713. if test -n "$hardcode_libdir_flag_spec" ||
  11714. test -n "$runpath_var" ||
  11715. test yes = "$hardcode_automatic"; then
  11716. # We can hardcode non-existent directories.
  11717. if test no != "$hardcode_direct" &&
  11718. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  11719. # have to relink, otherwise we might link with an installed library
  11720. # when we should be linking with a yet-to-be-installed one
  11721. ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
  11722. test no != "$hardcode_minus_L"; then
  11723. # Linking always hardcodes the temporary library directory.
  11724. hardcode_action=relink
  11725. else
  11726. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  11727. hardcode_action=immediate
  11728. fi
  11729. else
  11730. # We cannot hardcode anything, or else we can only hardcode existing
  11731. # directories.
  11732. hardcode_action=unsupported
  11733. fi
  11734. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
  11735. $as_echo "$hardcode_action" >&6; }
  11736. if test relink = "$hardcode_action" ||
  11737. test yes = "$inherit_rpath"; then
  11738. # Fast installation is not supported
  11739. enable_fast_install=no
  11740. elif test yes = "$shlibpath_overrides_runpath" ||
  11741. test no = "$enable_shared"; then
  11742. # Fast installation is not necessary
  11743. enable_fast_install=needless
  11744. fi
  11745. if test yes != "$enable_dlopen"; then
  11746. enable_dlopen=unknown
  11747. enable_dlopen_self=unknown
  11748. enable_dlopen_self_static=unknown
  11749. else
  11750. lt_cv_dlopen=no
  11751. lt_cv_dlopen_libs=
  11752. case $host_os in
  11753. beos*)
  11754. lt_cv_dlopen=load_add_on
  11755. lt_cv_dlopen_libs=
  11756. lt_cv_dlopen_self=yes
  11757. ;;
  11758. mingw* | pw32* | cegcc*)
  11759. lt_cv_dlopen=LoadLibrary
  11760. lt_cv_dlopen_libs=
  11761. ;;
  11762. cygwin*)
  11763. lt_cv_dlopen=dlopen
  11764. lt_cv_dlopen_libs=
  11765. ;;
  11766. darwin*)
  11767. # if libdl is installed we need to link against it
  11768. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  11769. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  11770. if ${ac_cv_lib_dl_dlopen+:} false; then :
  11771. $as_echo_n "(cached) " >&6
  11772. else
  11773. ac_check_lib_save_LIBS=$LIBS
  11774. LIBS="-ldl $LIBS"
  11775. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11776. /* end confdefs.h. */
  11777. /* Override any GCC internal prototype to avoid an error.
  11778. Use char because int might match the return type of a GCC
  11779. builtin and then its argument prototype would still apply. */
  11780. #ifdef __cplusplus
  11781. extern "C"
  11782. #endif
  11783. char dlopen ();
  11784. int
  11785. main ()
  11786. {
  11787. return dlopen ();
  11788. ;
  11789. return 0;
  11790. }
  11791. _ACEOF
  11792. if ac_fn_c_try_link "$LINENO"; then :
  11793. ac_cv_lib_dl_dlopen=yes
  11794. else
  11795. ac_cv_lib_dl_dlopen=no
  11796. fi
  11797. rm -f core conftest.err conftest.$ac_objext \
  11798. conftest$ac_exeext conftest.$ac_ext
  11799. LIBS=$ac_check_lib_save_LIBS
  11800. fi
  11801. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  11802. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  11803. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  11804. lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
  11805. else
  11806. lt_cv_dlopen=dyld
  11807. lt_cv_dlopen_libs=
  11808. lt_cv_dlopen_self=yes
  11809. fi
  11810. ;;
  11811. tpf*)
  11812. # Don't try to run any link tests for TPF. We know it's impossible
  11813. # because TPF is a cross-compiler, and we know how we open DSOs.
  11814. lt_cv_dlopen=dlopen
  11815. lt_cv_dlopen_libs=
  11816. lt_cv_dlopen_self=no
  11817. ;;
  11818. *)
  11819. ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
  11820. if test "x$ac_cv_func_shl_load" = xyes; then :
  11821. lt_cv_dlopen=shl_load
  11822. else
  11823. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
  11824. $as_echo_n "checking for shl_load in -ldld... " >&6; }
  11825. if ${ac_cv_lib_dld_shl_load+:} false; then :
  11826. $as_echo_n "(cached) " >&6
  11827. else
  11828. ac_check_lib_save_LIBS=$LIBS
  11829. LIBS="-ldld $LIBS"
  11830. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11831. /* end confdefs.h. */
  11832. /* Override any GCC internal prototype to avoid an error.
  11833. Use char because int might match the return type of a GCC
  11834. builtin and then its argument prototype would still apply. */
  11835. #ifdef __cplusplus
  11836. extern "C"
  11837. #endif
  11838. char shl_load ();
  11839. int
  11840. main ()
  11841. {
  11842. return shl_load ();
  11843. ;
  11844. return 0;
  11845. }
  11846. _ACEOF
  11847. if ac_fn_c_try_link "$LINENO"; then :
  11848. ac_cv_lib_dld_shl_load=yes
  11849. else
  11850. ac_cv_lib_dld_shl_load=no
  11851. fi
  11852. rm -f core conftest.err conftest.$ac_objext \
  11853. conftest$ac_exeext conftest.$ac_ext
  11854. LIBS=$ac_check_lib_save_LIBS
  11855. fi
  11856. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
  11857. $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
  11858. if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
  11859. lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
  11860. else
  11861. ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
  11862. if test "x$ac_cv_func_dlopen" = xyes; then :
  11863. lt_cv_dlopen=dlopen
  11864. else
  11865. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  11866. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  11867. if ${ac_cv_lib_dl_dlopen+:} false; then :
  11868. $as_echo_n "(cached) " >&6
  11869. else
  11870. ac_check_lib_save_LIBS=$LIBS
  11871. LIBS="-ldl $LIBS"
  11872. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11873. /* end confdefs.h. */
  11874. /* Override any GCC internal prototype to avoid an error.
  11875. Use char because int might match the return type of a GCC
  11876. builtin and then its argument prototype would still apply. */
  11877. #ifdef __cplusplus
  11878. extern "C"
  11879. #endif
  11880. char dlopen ();
  11881. int
  11882. main ()
  11883. {
  11884. return dlopen ();
  11885. ;
  11886. return 0;
  11887. }
  11888. _ACEOF
  11889. if ac_fn_c_try_link "$LINENO"; then :
  11890. ac_cv_lib_dl_dlopen=yes
  11891. else
  11892. ac_cv_lib_dl_dlopen=no
  11893. fi
  11894. rm -f core conftest.err conftest.$ac_objext \
  11895. conftest$ac_exeext conftest.$ac_ext
  11896. LIBS=$ac_check_lib_save_LIBS
  11897. fi
  11898. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  11899. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  11900. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  11901. lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
  11902. else
  11903. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
  11904. $as_echo_n "checking for dlopen in -lsvld... " >&6; }
  11905. if ${ac_cv_lib_svld_dlopen+:} false; then :
  11906. $as_echo_n "(cached) " >&6
  11907. else
  11908. ac_check_lib_save_LIBS=$LIBS
  11909. LIBS="-lsvld $LIBS"
  11910. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11911. /* end confdefs.h. */
  11912. /* Override any GCC internal prototype to avoid an error.
  11913. Use char because int might match the return type of a GCC
  11914. builtin and then its argument prototype would still apply. */
  11915. #ifdef __cplusplus
  11916. extern "C"
  11917. #endif
  11918. char dlopen ();
  11919. int
  11920. main ()
  11921. {
  11922. return dlopen ();
  11923. ;
  11924. return 0;
  11925. }
  11926. _ACEOF
  11927. if ac_fn_c_try_link "$LINENO"; then :
  11928. ac_cv_lib_svld_dlopen=yes
  11929. else
  11930. ac_cv_lib_svld_dlopen=no
  11931. fi
  11932. rm -f core conftest.err conftest.$ac_objext \
  11933. conftest$ac_exeext conftest.$ac_ext
  11934. LIBS=$ac_check_lib_save_LIBS
  11935. fi
  11936. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
  11937. $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
  11938. if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
  11939. lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
  11940. else
  11941. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
  11942. $as_echo_n "checking for dld_link in -ldld... " >&6; }
  11943. if ${ac_cv_lib_dld_dld_link+:} false; then :
  11944. $as_echo_n "(cached) " >&6
  11945. else
  11946. ac_check_lib_save_LIBS=$LIBS
  11947. LIBS="-ldld $LIBS"
  11948. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11949. /* end confdefs.h. */
  11950. /* Override any GCC internal prototype to avoid an error.
  11951. Use char because int might match the return type of a GCC
  11952. builtin and then its argument prototype would still apply. */
  11953. #ifdef __cplusplus
  11954. extern "C"
  11955. #endif
  11956. char dld_link ();
  11957. int
  11958. main ()
  11959. {
  11960. return dld_link ();
  11961. ;
  11962. return 0;
  11963. }
  11964. _ACEOF
  11965. if ac_fn_c_try_link "$LINENO"; then :
  11966. ac_cv_lib_dld_dld_link=yes
  11967. else
  11968. ac_cv_lib_dld_dld_link=no
  11969. fi
  11970. rm -f core conftest.err conftest.$ac_objext \
  11971. conftest$ac_exeext conftest.$ac_ext
  11972. LIBS=$ac_check_lib_save_LIBS
  11973. fi
  11974. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
  11975. $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
  11976. if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
  11977. lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
  11978. fi
  11979. fi
  11980. fi
  11981. fi
  11982. fi
  11983. fi
  11984. ;;
  11985. esac
  11986. if test no = "$lt_cv_dlopen"; then
  11987. enable_dlopen=no
  11988. else
  11989. enable_dlopen=yes
  11990. fi
  11991. case $lt_cv_dlopen in
  11992. dlopen)
  11993. save_CPPFLAGS=$CPPFLAGS
  11994. test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  11995. save_LDFLAGS=$LDFLAGS
  11996. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  11997. save_LIBS=$LIBS
  11998. LIBS="$lt_cv_dlopen_libs $LIBS"
  11999. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
  12000. $as_echo_n "checking whether a program can dlopen itself... " >&6; }
  12001. if ${lt_cv_dlopen_self+:} false; then :
  12002. $as_echo_n "(cached) " >&6
  12003. else
  12004. if test yes = "$cross_compiling"; then :
  12005. lt_cv_dlopen_self=cross
  12006. else
  12007. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  12008. lt_status=$lt_dlunknown
  12009. cat > conftest.$ac_ext <<_LT_EOF
  12010. #line $LINENO "configure"
  12011. #include "confdefs.h"
  12012. #if HAVE_DLFCN_H
  12013. #include <dlfcn.h>
  12014. #endif
  12015. #include <stdio.h>
  12016. #ifdef RTLD_GLOBAL
  12017. # define LT_DLGLOBAL RTLD_GLOBAL
  12018. #else
  12019. # ifdef DL_GLOBAL
  12020. # define LT_DLGLOBAL DL_GLOBAL
  12021. # else
  12022. # define LT_DLGLOBAL 0
  12023. # endif
  12024. #endif
  12025. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  12026. find out it does not work in some platform. */
  12027. #ifndef LT_DLLAZY_OR_NOW
  12028. # ifdef RTLD_LAZY
  12029. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  12030. # else
  12031. # ifdef DL_LAZY
  12032. # define LT_DLLAZY_OR_NOW DL_LAZY
  12033. # else
  12034. # ifdef RTLD_NOW
  12035. # define LT_DLLAZY_OR_NOW RTLD_NOW
  12036. # else
  12037. # ifdef DL_NOW
  12038. # define LT_DLLAZY_OR_NOW DL_NOW
  12039. # else
  12040. # define LT_DLLAZY_OR_NOW 0
  12041. # endif
  12042. # endif
  12043. # endif
  12044. # endif
  12045. #endif
  12046. /* When -fvisibility=hidden is used, assume the code has been annotated
  12047. correspondingly for the symbols needed. */
  12048. #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  12049. int fnord () __attribute__((visibility("default")));
  12050. #endif
  12051. int fnord () { return 42; }
  12052. int main ()
  12053. {
  12054. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  12055. int status = $lt_dlunknown;
  12056. if (self)
  12057. {
  12058. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  12059. else
  12060. {
  12061. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  12062. else puts (dlerror ());
  12063. }
  12064. /* dlclose (self); */
  12065. }
  12066. else
  12067. puts (dlerror ());
  12068. return status;
  12069. }
  12070. _LT_EOF
  12071. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  12072. (eval $ac_link) 2>&5
  12073. ac_status=$?
  12074. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12075. test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
  12076. (./conftest; exit; ) >&5 2>/dev/null
  12077. lt_status=$?
  12078. case x$lt_status in
  12079. x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  12080. x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  12081. x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
  12082. esac
  12083. else :
  12084. # compilation failed
  12085. lt_cv_dlopen_self=no
  12086. fi
  12087. fi
  12088. rm -fr conftest*
  12089. fi
  12090. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
  12091. $as_echo "$lt_cv_dlopen_self" >&6; }
  12092. if test yes = "$lt_cv_dlopen_self"; then
  12093. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  12094. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
  12095. $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
  12096. if ${lt_cv_dlopen_self_static+:} false; then :
  12097. $as_echo_n "(cached) " >&6
  12098. else
  12099. if test yes = "$cross_compiling"; then :
  12100. lt_cv_dlopen_self_static=cross
  12101. else
  12102. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  12103. lt_status=$lt_dlunknown
  12104. cat > conftest.$ac_ext <<_LT_EOF
  12105. #line $LINENO "configure"
  12106. #include "confdefs.h"
  12107. #if HAVE_DLFCN_H
  12108. #include <dlfcn.h>
  12109. #endif
  12110. #include <stdio.h>
  12111. #ifdef RTLD_GLOBAL
  12112. # define LT_DLGLOBAL RTLD_GLOBAL
  12113. #else
  12114. # ifdef DL_GLOBAL
  12115. # define LT_DLGLOBAL DL_GLOBAL
  12116. # else
  12117. # define LT_DLGLOBAL 0
  12118. # endif
  12119. #endif
  12120. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  12121. find out it does not work in some platform. */
  12122. #ifndef LT_DLLAZY_OR_NOW
  12123. # ifdef RTLD_LAZY
  12124. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  12125. # else
  12126. # ifdef DL_LAZY
  12127. # define LT_DLLAZY_OR_NOW DL_LAZY
  12128. # else
  12129. # ifdef RTLD_NOW
  12130. # define LT_DLLAZY_OR_NOW RTLD_NOW
  12131. # else
  12132. # ifdef DL_NOW
  12133. # define LT_DLLAZY_OR_NOW DL_NOW
  12134. # else
  12135. # define LT_DLLAZY_OR_NOW 0
  12136. # endif
  12137. # endif
  12138. # endif
  12139. # endif
  12140. #endif
  12141. /* When -fvisibility=hidden is used, assume the code has been annotated
  12142. correspondingly for the symbols needed. */
  12143. #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  12144. int fnord () __attribute__((visibility("default")));
  12145. #endif
  12146. int fnord () { return 42; }
  12147. int main ()
  12148. {
  12149. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  12150. int status = $lt_dlunknown;
  12151. if (self)
  12152. {
  12153. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  12154. else
  12155. {
  12156. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  12157. else puts (dlerror ());
  12158. }
  12159. /* dlclose (self); */
  12160. }
  12161. else
  12162. puts (dlerror ());
  12163. return status;
  12164. }
  12165. _LT_EOF
  12166. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  12167. (eval $ac_link) 2>&5
  12168. ac_status=$?
  12169. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12170. test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
  12171. (./conftest; exit; ) >&5 2>/dev/null
  12172. lt_status=$?
  12173. case x$lt_status in
  12174. x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  12175. x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  12176. x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
  12177. esac
  12178. else :
  12179. # compilation failed
  12180. lt_cv_dlopen_self_static=no
  12181. fi
  12182. fi
  12183. rm -fr conftest*
  12184. fi
  12185. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
  12186. $as_echo "$lt_cv_dlopen_self_static" >&6; }
  12187. fi
  12188. CPPFLAGS=$save_CPPFLAGS
  12189. LDFLAGS=$save_LDFLAGS
  12190. LIBS=$save_LIBS
  12191. ;;
  12192. esac
  12193. case $lt_cv_dlopen_self in
  12194. yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  12195. *) enable_dlopen_self=unknown ;;
  12196. esac
  12197. case $lt_cv_dlopen_self_static in
  12198. yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  12199. *) enable_dlopen_self_static=unknown ;;
  12200. esac
  12201. fi
  12202. striplib=
  12203. old_striplib=
  12204. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
  12205. $as_echo_n "checking whether stripping libraries is possible... " >&6; }
  12206. if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
  12207. test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  12208. test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  12209. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  12210. $as_echo "yes" >&6; }
  12211. else
  12212. # FIXME - insert some real tests, host_os isn't really good enough
  12213. case $host_os in
  12214. darwin*)
  12215. if test -n "$STRIP"; then
  12216. striplib="$STRIP -x"
  12217. old_striplib="$STRIP -S"
  12218. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  12219. $as_echo "yes" >&6; }
  12220. else
  12221. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12222. $as_echo "no" >&6; }
  12223. fi
  12224. ;;
  12225. *)
  12226. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12227. $as_echo "no" >&6; }
  12228. ;;
  12229. esac
  12230. fi
  12231. # Report what library types will actually be built
  12232. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
  12233. $as_echo_n "checking if libtool supports shared libraries... " >&6; }
  12234. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
  12235. $as_echo "$can_build_shared" >&6; }
  12236. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
  12237. $as_echo_n "checking whether to build shared libraries... " >&6; }
  12238. test no = "$can_build_shared" && enable_shared=no
  12239. # On AIX, shared libraries and static libraries use the same namespace, and
  12240. # are all built from PIC.
  12241. case $host_os in
  12242. aix3*)
  12243. test yes = "$enable_shared" && enable_static=no
  12244. if test -n "$RANLIB"; then
  12245. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  12246. postinstall_cmds='$RANLIB $lib'
  12247. fi
  12248. ;;
  12249. aix[4-9]*)
  12250. if test ia64 != "$host_cpu"; then
  12251. case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
  12252. yes,aix,yes) ;; # shared object as lib.so file only
  12253. yes,svr4,*) ;; # shared object as lib.so archive member only
  12254. yes,*) enable_static=no ;; # shared object in lib.a archive as well
  12255. esac
  12256. fi
  12257. ;;
  12258. esac
  12259. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
  12260. $as_echo "$enable_shared" >&6; }
  12261. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
  12262. $as_echo_n "checking whether to build static libraries... " >&6; }
  12263. # Make sure either enable_shared or enable_static is yes.
  12264. test yes = "$enable_shared" || enable_static=yes
  12265. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
  12266. $as_echo "$enable_static" >&6; }
  12267. fi
  12268. ac_ext=c
  12269. ac_cpp='$CPP $CPPFLAGS'
  12270. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  12271. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  12272. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  12273. CC=$lt_save_CC
  12274. if test -n "$CXX" && ( test no != "$CXX" &&
  12275. ( (test g++ = "$CXX" && `g++ -v >/dev/null 2>&1` ) ||
  12276. (test g++ != "$CXX"))); then
  12277. ac_ext=cpp
  12278. ac_cpp='$CXXCPP $CPPFLAGS'
  12279. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  12280. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  12281. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  12282. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
  12283. $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
  12284. if test -z "$CXXCPP"; then
  12285. if ${ac_cv_prog_CXXCPP+:} false; then :
  12286. $as_echo_n "(cached) " >&6
  12287. else
  12288. # Double quotes because CXXCPP needs to be expanded
  12289. for CXXCPP in "$CXX -E" "/lib/cpp"
  12290. do
  12291. ac_preproc_ok=false
  12292. for ac_cxx_preproc_warn_flag in '' yes
  12293. do
  12294. # Use a header file that comes with gcc, so configuring glibc
  12295. # with a fresh cross-compiler works.
  12296. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  12297. # <limits.h> exists even on freestanding compilers.
  12298. # On the NeXT, cc -E runs the code through the compiler's parser,
  12299. # not just through cpp. "Syntax error" is here to catch this case.
  12300. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12301. /* end confdefs.h. */
  12302. #ifdef __STDC__
  12303. # include <limits.h>
  12304. #else
  12305. # include <assert.h>
  12306. #endif
  12307. Syntax error
  12308. _ACEOF
  12309. if ac_fn_cxx_try_cpp "$LINENO"; then :
  12310. else
  12311. # Broken: fails on valid input.
  12312. continue
  12313. fi
  12314. rm -f conftest.err conftest.i conftest.$ac_ext
  12315. # OK, works on sane cases. Now check whether nonexistent headers
  12316. # can be detected and how.
  12317. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12318. /* end confdefs.h. */
  12319. #include <ac_nonexistent.h>
  12320. _ACEOF
  12321. if ac_fn_cxx_try_cpp "$LINENO"; then :
  12322. # Broken: success on invalid input.
  12323. continue
  12324. else
  12325. # Passes both tests.
  12326. ac_preproc_ok=:
  12327. break
  12328. fi
  12329. rm -f conftest.err conftest.i conftest.$ac_ext
  12330. done
  12331. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  12332. rm -f conftest.i conftest.err conftest.$ac_ext
  12333. if $ac_preproc_ok; then :
  12334. break
  12335. fi
  12336. done
  12337. ac_cv_prog_CXXCPP=$CXXCPP
  12338. fi
  12339. CXXCPP=$ac_cv_prog_CXXCPP
  12340. else
  12341. ac_cv_prog_CXXCPP=$CXXCPP
  12342. fi
  12343. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
  12344. $as_echo "$CXXCPP" >&6; }
  12345. ac_preproc_ok=false
  12346. for ac_cxx_preproc_warn_flag in '' yes
  12347. do
  12348. # Use a header file that comes with gcc, so configuring glibc
  12349. # with a fresh cross-compiler works.
  12350. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  12351. # <limits.h> exists even on freestanding compilers.
  12352. # On the NeXT, cc -E runs the code through the compiler's parser,
  12353. # not just through cpp. "Syntax error" is here to catch this case.
  12354. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12355. /* end confdefs.h. */
  12356. #ifdef __STDC__
  12357. # include <limits.h>
  12358. #else
  12359. # include <assert.h>
  12360. #endif
  12361. Syntax error
  12362. _ACEOF
  12363. if ac_fn_cxx_try_cpp "$LINENO"; then :
  12364. else
  12365. # Broken: fails on valid input.
  12366. continue
  12367. fi
  12368. rm -f conftest.err conftest.i conftest.$ac_ext
  12369. # OK, works on sane cases. Now check whether nonexistent headers
  12370. # can be detected and how.
  12371. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12372. /* end confdefs.h. */
  12373. #include <ac_nonexistent.h>
  12374. _ACEOF
  12375. if ac_fn_cxx_try_cpp "$LINENO"; then :
  12376. # Broken: success on invalid input.
  12377. continue
  12378. else
  12379. # Passes both tests.
  12380. ac_preproc_ok=:
  12381. break
  12382. fi
  12383. rm -f conftest.err conftest.i conftest.$ac_ext
  12384. done
  12385. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  12386. rm -f conftest.i conftest.err conftest.$ac_ext
  12387. if $ac_preproc_ok; then :
  12388. else
  12389. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  12390. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  12391. as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
  12392. See \`config.log' for more details" "$LINENO" 5; }
  12393. fi
  12394. ac_ext=c
  12395. ac_cpp='$CPP $CPPFLAGS'
  12396. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  12397. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  12398. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  12399. else
  12400. _lt_caught_CXX_error=yes
  12401. fi
  12402. ac_ext=cpp
  12403. ac_cpp='$CXXCPP $CPPFLAGS'
  12404. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  12405. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  12406. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  12407. archive_cmds_need_lc_CXX=no
  12408. allow_undefined_flag_CXX=
  12409. always_export_symbols_CXX=no
  12410. archive_expsym_cmds_CXX=
  12411. compiler_needs_object_CXX=no
  12412. export_dynamic_flag_spec_CXX=
  12413. hardcode_direct_CXX=no
  12414. hardcode_direct_absolute_CXX=no
  12415. hardcode_libdir_flag_spec_CXX=
  12416. hardcode_libdir_separator_CXX=
  12417. hardcode_minus_L_CXX=no
  12418. hardcode_shlibpath_var_CXX=unsupported
  12419. hardcode_automatic_CXX=no
  12420. inherit_rpath_CXX=no
  12421. module_cmds_CXX=
  12422. module_expsym_cmds_CXX=
  12423. link_all_deplibs_CXX=unknown
  12424. old_archive_cmds_CXX=$old_archive_cmds
  12425. reload_flag_CXX=$reload_flag
  12426. reload_cmds_CXX=$reload_cmds
  12427. no_undefined_flag_CXX=
  12428. whole_archive_flag_spec_CXX=
  12429. enable_shared_with_static_runtimes_CXX=no
  12430. # Source file extension for C++ test sources.
  12431. ac_ext=cpp
  12432. # Object file extension for compiled C++ test sources.
  12433. objext=o
  12434. objext_CXX=$objext
  12435. # No sense in running all these tests if we already determined that
  12436. # the CXX compiler isn't working. Some variables (like enable_shared)
  12437. # are currently assumed to apply to all compilers on this platform,
  12438. # and will be corrupted by setting them based on a non-working compiler.
  12439. if test yes != "$_lt_caught_CXX_error"; then
  12440. # Code to be used in simple compile tests
  12441. lt_simple_compile_test_code="int some_variable = 0;"
  12442. # Code to be used in simple link tests
  12443. lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
  12444. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  12445. # If no C compiler was specified, use CC.
  12446. LTCC=${LTCC-"$CC"}
  12447. # If no C compiler flags were specified, use CFLAGS.
  12448. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  12449. # Allow CC to be a program name with arguments.
  12450. compiler=$CC
  12451. # save warnings/boilerplate of simple test code
  12452. ac_outfile=conftest.$ac_objext
  12453. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  12454. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  12455. _lt_compiler_boilerplate=`cat conftest.err`
  12456. $RM conftest*
  12457. ac_outfile=conftest.$ac_objext
  12458. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  12459. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  12460. _lt_linker_boilerplate=`cat conftest.err`
  12461. $RM -r conftest*
  12462. # Allow CC to be a program name with arguments.
  12463. lt_save_CC=$CC
  12464. lt_save_CFLAGS=$CFLAGS
  12465. lt_save_LD=$LD
  12466. lt_save_GCC=$GCC
  12467. GCC=$GXX
  12468. lt_save_with_gnu_ld=$with_gnu_ld
  12469. lt_save_path_LD=$lt_cv_path_LD
  12470. if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
  12471. lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
  12472. else
  12473. $as_unset lt_cv_prog_gnu_ld
  12474. fi
  12475. if test -n "${lt_cv_path_LDCXX+set}"; then
  12476. lt_cv_path_LD=$lt_cv_path_LDCXX
  12477. else
  12478. $as_unset lt_cv_path_LD
  12479. fi
  12480. test -z "${LDCXX+set}" || LD=$LDCXX
  12481. CC=${CXX-"c++"}
  12482. CFLAGS=$CXXFLAGS
  12483. compiler=$CC
  12484. compiler_CXX=$CC
  12485. func_cc_basename $compiler
  12486. cc_basename=$func_cc_basename_result
  12487. if test -n "$compiler"; then
  12488. # We don't want -fno-exception when compiling C++ code, so set the
  12489. # no_builtin_flag separately
  12490. if test yes = "$GXX"; then
  12491. lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
  12492. else
  12493. lt_prog_compiler_no_builtin_flag_CXX=
  12494. fi
  12495. if test yes = "$GXX"; then
  12496. # Set up default GNU C++ configuration
  12497. # Check whether --with-gnu-ld was given.
  12498. if test "${with_gnu_ld+set}" = set; then :
  12499. withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
  12500. else
  12501. with_gnu_ld=no
  12502. fi
  12503. ac_prog=ld
  12504. if test yes = "$GCC"; then
  12505. # Check if gcc -print-prog-name=ld gives a path.
  12506. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  12507. $as_echo_n "checking for ld used by $CC... " >&6; }
  12508. case $host in
  12509. *-*-mingw*)
  12510. # gcc leaves a trailing carriage return, which upsets mingw
  12511. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  12512. *)
  12513. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  12514. esac
  12515. case $ac_prog in
  12516. # Accept absolute paths.
  12517. [\\/]* | ?:[\\/]*)
  12518. re_direlt='/[^/][^/]*/\.\./'
  12519. # Canonicalize the pathname of ld
  12520. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  12521. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  12522. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  12523. done
  12524. test -z "$LD" && LD=$ac_prog
  12525. ;;
  12526. "")
  12527. # If it fails, then pretend we aren't using GCC.
  12528. ac_prog=ld
  12529. ;;
  12530. *)
  12531. # If it is relative, then search for the first ld in PATH.
  12532. with_gnu_ld=unknown
  12533. ;;
  12534. esac
  12535. elif test yes = "$with_gnu_ld"; then
  12536. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  12537. $as_echo_n "checking for GNU ld... " >&6; }
  12538. else
  12539. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  12540. $as_echo_n "checking for non-GNU ld... " >&6; }
  12541. fi
  12542. if ${lt_cv_path_LD+:} false; then :
  12543. $as_echo_n "(cached) " >&6
  12544. else
  12545. if test -z "$LD"; then
  12546. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  12547. for ac_dir in $PATH; do
  12548. IFS=$lt_save_ifs
  12549. test -z "$ac_dir" && ac_dir=.
  12550. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  12551. lt_cv_path_LD=$ac_dir/$ac_prog
  12552. # Check to see if the program is GNU ld. I'd rather use --version,
  12553. # but apparently some variants of GNU ld only accept -v.
  12554. # Break only if it was the GNU/non-GNU ld that we prefer.
  12555. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  12556. *GNU* | *'with BFD'*)
  12557. test no != "$with_gnu_ld" && break
  12558. ;;
  12559. *)
  12560. test yes != "$with_gnu_ld" && break
  12561. ;;
  12562. esac
  12563. fi
  12564. done
  12565. IFS=$lt_save_ifs
  12566. else
  12567. lt_cv_path_LD=$LD # Let the user override the test with a path.
  12568. fi
  12569. fi
  12570. LD=$lt_cv_path_LD
  12571. if test -n "$LD"; then
  12572. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  12573. $as_echo "$LD" >&6; }
  12574. else
  12575. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12576. $as_echo "no" >&6; }
  12577. fi
  12578. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  12579. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  12580. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  12581. if ${lt_cv_prog_gnu_ld+:} false; then :
  12582. $as_echo_n "(cached) " >&6
  12583. else
  12584. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  12585. case `$LD -v 2>&1 </dev/null` in
  12586. *GNU* | *'with BFD'*)
  12587. lt_cv_prog_gnu_ld=yes
  12588. ;;
  12589. *)
  12590. lt_cv_prog_gnu_ld=no
  12591. ;;
  12592. esac
  12593. fi
  12594. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  12595. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  12596. with_gnu_ld=$lt_cv_prog_gnu_ld
  12597. # Check if GNU C++ uses GNU ld as the underlying linker, since the
  12598. # archiving commands below assume that GNU ld is being used.
  12599. if test yes = "$with_gnu_ld"; then
  12600. archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
  12601. 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'
  12602. hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
  12603. export_dynamic_flag_spec_CXX='$wl--export-dynamic'
  12604. # If archive_cmds runs LD, not CC, wlarc should be empty
  12605. # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
  12606. # investigate it a little bit more. (MM)
  12607. wlarc='$wl'
  12608. # ancient GNU ld didn't support --whole-archive et. al.
  12609. if eval "`$CC -print-prog-name=ld` --help 2>&1" |
  12610. $GREP 'no-whole-archive' > /dev/null; then
  12611. whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
  12612. else
  12613. whole_archive_flag_spec_CXX=
  12614. fi
  12615. else
  12616. with_gnu_ld=no
  12617. wlarc=
  12618. # A generic and very simple default shared library creation
  12619. # command for GNU C++ for the case where it uses the native
  12620. # linker, instead of GNU ld. If possible, this setting should
  12621. # overridden to take advantage of the native linker features on
  12622. # the platform it is being used on.
  12623. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  12624. fi
  12625. # Commands to make compiler produce verbose output that lists
  12626. # what "hidden" libraries, object files and flags are used when
  12627. # linking a shared library.
  12628. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP " \-L"'
  12629. else
  12630. GXX=no
  12631. with_gnu_ld=no
  12632. wlarc=
  12633. fi
  12634. # PORTME: fill in a description of your system's C++ link characteristics
  12635. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  12636. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  12637. ld_shlibs_CXX=yes
  12638. case $host_os in
  12639. aix3*)
  12640. # FIXME: insert proper C++ library support
  12641. ld_shlibs_CXX=no
  12642. ;;
  12643. aix[4-9]*)
  12644. if test ia64 = "$host_cpu"; then
  12645. # On IA64, the linker does run time linking by default, so we don't
  12646. # have to do anything special.
  12647. aix_use_runtimelinking=no
  12648. exp_sym_flag='-Bexport'
  12649. no_entry_flag=
  12650. else
  12651. aix_use_runtimelinking=no
  12652. # Test if we are trying to use run time linking or normal
  12653. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  12654. # have runtime linking enabled, and use it for executables.
  12655. # For shared libraries, we enable/disable runtime linking
  12656. # depending on the kind of the shared library created -
  12657. # when "with_aix_soname,aix_use_runtimelinking" is:
  12658. # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
  12659. # "aix,yes" lib.so shared, rtl:yes, for executables
  12660. # lib.a static archive
  12661. # "both,no" lib.so.V(shr.o) shared, rtl:yes
  12662. # lib.a(lib.so.V) shared, rtl:no, for executables
  12663. # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
  12664. # lib.a(lib.so.V) shared, rtl:no
  12665. # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
  12666. # lib.a static archive
  12667. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  12668. for ld_flag in $LDFLAGS; do
  12669. case $ld_flag in
  12670. *-brtl*)
  12671. aix_use_runtimelinking=yes
  12672. break
  12673. ;;
  12674. esac
  12675. done
  12676. if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
  12677. # With aix-soname=svr4, we create the lib.so.V shared archives only,
  12678. # so we don't have lib.a shared libs to link our executables.
  12679. # We have to force runtime linking in this case.
  12680. aix_use_runtimelinking=yes
  12681. LDFLAGS="$LDFLAGS -Wl,-brtl"
  12682. fi
  12683. ;;
  12684. esac
  12685. exp_sym_flag='-bexport'
  12686. no_entry_flag='-bnoentry'
  12687. fi
  12688. # When large executables or shared objects are built, AIX ld can
  12689. # have problems creating the table of contents. If linking a library
  12690. # or program results in "error TOC overflow" add -mminimal-toc to
  12691. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  12692. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  12693. archive_cmds_CXX=''
  12694. hardcode_direct_CXX=yes
  12695. hardcode_direct_absolute_CXX=yes
  12696. hardcode_libdir_separator_CXX=':'
  12697. link_all_deplibs_CXX=yes
  12698. file_list_spec_CXX='$wl-f,'
  12699. case $with_aix_soname,$aix_use_runtimelinking in
  12700. aix,*) ;; # no import file
  12701. svr4,* | *,yes) # use import file
  12702. # The Import File defines what to hardcode.
  12703. hardcode_direct_CXX=no
  12704. hardcode_direct_absolute_CXX=no
  12705. ;;
  12706. esac
  12707. if test yes = "$GXX"; then
  12708. case $host_os in aix4.[012]|aix4.[012].*)
  12709. # We only want to do this on AIX 4.2 and lower, the check
  12710. # below for broken collect2 doesn't work under 4.3+
  12711. collect2name=`$CC -print-prog-name=collect2`
  12712. if test -f "$collect2name" &&
  12713. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  12714. then
  12715. # We have reworked collect2
  12716. :
  12717. else
  12718. # We have old collect2
  12719. hardcode_direct_CXX=unsupported
  12720. # It fails to find uninstalled libraries when the uninstalled
  12721. # path is not listed in the libpath. Setting hardcode_minus_L
  12722. # to unsupported forces relinking
  12723. hardcode_minus_L_CXX=yes
  12724. hardcode_libdir_flag_spec_CXX='-L$libdir'
  12725. hardcode_libdir_separator_CXX=
  12726. fi
  12727. esac
  12728. shared_flag='-shared'
  12729. if test yes = "$aix_use_runtimelinking"; then
  12730. shared_flag=$shared_flag' $wl-G'
  12731. fi
  12732. # Need to ensure runtime linking is disabled for the traditional
  12733. # shared library, or the linker may eventually find shared libraries
  12734. # /with/ Import File - we do not want to mix them.
  12735. shared_flag_aix='-shared'
  12736. shared_flag_svr4='-shared $wl-G'
  12737. else
  12738. # not using gcc
  12739. if test ia64 = "$host_cpu"; then
  12740. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  12741. # chokes on -Wl,-G. The following line is correct:
  12742. shared_flag='-G'
  12743. else
  12744. if test yes = "$aix_use_runtimelinking"; then
  12745. shared_flag='$wl-G'
  12746. else
  12747. shared_flag='$wl-bM:SRE'
  12748. fi
  12749. shared_flag_aix='$wl-bM:SRE'
  12750. shared_flag_svr4='$wl-G'
  12751. fi
  12752. fi
  12753. export_dynamic_flag_spec_CXX='$wl-bexpall'
  12754. # It seems that -bexpall does not export symbols beginning with
  12755. # underscore (_), so it is better to generate a list of symbols to
  12756. # export.
  12757. always_export_symbols_CXX=yes
  12758. if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
  12759. # Warning - without using the other runtime loading flags (-brtl),
  12760. # -berok will link without error, but may produce a broken library.
  12761. # The "-G" linker flag allows undefined symbols.
  12762. no_undefined_flag_CXX='-bernotok'
  12763. # Determine the default libpath from the value encoded in an empty
  12764. # executable.
  12765. if test set = "${lt_cv_aix_libpath+set}"; then
  12766. aix_libpath=$lt_cv_aix_libpath
  12767. else
  12768. if ${lt_cv_aix_libpath__CXX+:} false; then :
  12769. $as_echo_n "(cached) " >&6
  12770. else
  12771. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12772. /* end confdefs.h. */
  12773. int
  12774. main ()
  12775. {
  12776. ;
  12777. return 0;
  12778. }
  12779. _ACEOF
  12780. if ac_fn_cxx_try_link "$LINENO"; then :
  12781. lt_aix_libpath_sed='
  12782. /Import File Strings/,/^$/ {
  12783. /^0/ {
  12784. s/^0 *\([^ ]*\) *$/\1/
  12785. p
  12786. }
  12787. }'
  12788. lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  12789. # Check for a 64-bit object if we didn't find anything.
  12790. if test -z "$lt_cv_aix_libpath__CXX"; then
  12791. lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  12792. fi
  12793. fi
  12794. rm -f core conftest.err conftest.$ac_objext \
  12795. conftest$ac_exeext conftest.$ac_ext
  12796. if test -z "$lt_cv_aix_libpath__CXX"; then
  12797. lt_cv_aix_libpath__CXX=/usr/lib:/lib
  12798. fi
  12799. fi
  12800. aix_libpath=$lt_cv_aix_libpath__CXX
  12801. fi
  12802. hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
  12803. archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
  12804. else
  12805. if test ia64 = "$host_cpu"; then
  12806. hardcode_libdir_flag_spec_CXX='$wl-R $libdir:/usr/lib:/lib'
  12807. allow_undefined_flag_CXX="-z nodefs"
  12808. 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"
  12809. else
  12810. # Determine the default libpath from the value encoded in an
  12811. # empty executable.
  12812. if test set = "${lt_cv_aix_libpath+set}"; then
  12813. aix_libpath=$lt_cv_aix_libpath
  12814. else
  12815. if ${lt_cv_aix_libpath__CXX+:} false; then :
  12816. $as_echo_n "(cached) " >&6
  12817. else
  12818. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12819. /* end confdefs.h. */
  12820. int
  12821. main ()
  12822. {
  12823. ;
  12824. return 0;
  12825. }
  12826. _ACEOF
  12827. if ac_fn_cxx_try_link "$LINENO"; then :
  12828. lt_aix_libpath_sed='
  12829. /Import File Strings/,/^$/ {
  12830. /^0/ {
  12831. s/^0 *\([^ ]*\) *$/\1/
  12832. p
  12833. }
  12834. }'
  12835. lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  12836. # Check for a 64-bit object if we didn't find anything.
  12837. if test -z "$lt_cv_aix_libpath__CXX"; then
  12838. lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  12839. fi
  12840. fi
  12841. rm -f core conftest.err conftest.$ac_objext \
  12842. conftest$ac_exeext conftest.$ac_ext
  12843. if test -z "$lt_cv_aix_libpath__CXX"; then
  12844. lt_cv_aix_libpath__CXX=/usr/lib:/lib
  12845. fi
  12846. fi
  12847. aix_libpath=$lt_cv_aix_libpath__CXX
  12848. fi
  12849. hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
  12850. # Warning - without using the other run time loading flags,
  12851. # -berok will link without error, but may produce a broken library.
  12852. no_undefined_flag_CXX=' $wl-bernotok'
  12853. allow_undefined_flag_CXX=' $wl-berok'
  12854. if test yes = "$with_gnu_ld"; then
  12855. # We only use this code for GNU lds that support --whole-archive.
  12856. whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
  12857. else
  12858. # Exported symbols can be pulled into shared objects from archives
  12859. whole_archive_flag_spec_CXX='$convenience'
  12860. fi
  12861. archive_cmds_need_lc_CXX=yes
  12862. archive_expsym_cmds_CXX='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
  12863. # -brtl affects multiple linker settings, -berok does not and is overridden later
  12864. compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
  12865. if test svr4 != "$with_aix_soname"; then
  12866. # This is similar to how AIX traditionally builds its shared
  12867. # libraries. Need -bnortl late, we may have -brtl in LDFLAGS.
  12868. archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
  12869. fi
  12870. if test aix != "$with_aix_soname"; then
  12871. archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
  12872. else
  12873. # used by -dlpreopen to get the symbols
  12874. archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
  12875. fi
  12876. archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$RM -r $output_objdir/$realname.d'
  12877. fi
  12878. fi
  12879. ;;
  12880. beos*)
  12881. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  12882. allow_undefined_flag_CXX=unsupported
  12883. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  12884. # support --undefined. This deserves some investigation. FIXME
  12885. archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  12886. else
  12887. ld_shlibs_CXX=no
  12888. fi
  12889. ;;
  12890. chorus*)
  12891. case $cc_basename in
  12892. *)
  12893. # FIXME: insert proper C++ library support
  12894. ld_shlibs_CXX=no
  12895. ;;
  12896. esac
  12897. ;;
  12898. cygwin* | mingw* | pw32* | cegcc*)
  12899. case $GXX,$cc_basename in
  12900. ,cl* | no,cl*)
  12901. # Native MSVC
  12902. # hardcode_libdir_flag_spec is actually meaningless, as there is
  12903. # no search path for DLLs.
  12904. hardcode_libdir_flag_spec_CXX=' '
  12905. allow_undefined_flag_CXX=unsupported
  12906. always_export_symbols_CXX=yes
  12907. file_list_spec_CXX='@'
  12908. # Tell ltmain to make .lib files, not .a files.
  12909. libext=lib
  12910. # Tell ltmain to make .dll files, not .so files.
  12911. shrext_cmds=.dll
  12912. # FIXME: Setting linknames here is a bad hack.
  12913. archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
  12914. archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
  12915. cp "$export_symbols" "$output_objdir/$soname.def";
  12916. echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
  12917. else
  12918. $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
  12919. fi~
  12920. $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
  12921. linknames='
  12922. # The linker will not automatically build a static lib if we build a DLL.
  12923. # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
  12924. enable_shared_with_static_runtimes_CXX=yes
  12925. # Don't use ranlib
  12926. old_postinstall_cmds_CXX='chmod 644 $oldlib'
  12927. postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
  12928. lt_tool_outputfile="@TOOL_OUTPUT@"~
  12929. case $lt_outputfile in
  12930. *.exe|*.EXE) ;;
  12931. *)
  12932. lt_outputfile=$lt_outputfile.exe
  12933. lt_tool_outputfile=$lt_tool_outputfile.exe
  12934. ;;
  12935. esac~
  12936. func_to_tool_file "$lt_outputfile"~
  12937. if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
  12938. $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
  12939. $RM "$lt_outputfile.manifest";
  12940. fi'
  12941. ;;
  12942. *)
  12943. # g++
  12944. # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
  12945. # as there is no search path for DLLs.
  12946. hardcode_libdir_flag_spec_CXX='-L$libdir'
  12947. export_dynamic_flag_spec_CXX='$wl--export-all-symbols'
  12948. allow_undefined_flag_CXX=unsupported
  12949. always_export_symbols_CXX=no
  12950. enable_shared_with_static_runtimes_CXX=yes
  12951. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  12952. 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'
  12953. # If the export-symbols file already is a .def file, use it as
  12954. # is; otherwise, prepend EXPORTS...
  12955. archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
  12956. cp $export_symbols $output_objdir/$soname.def;
  12957. else
  12958. echo EXPORTS > $output_objdir/$soname.def;
  12959. cat $export_symbols >> $output_objdir/$soname.def;
  12960. fi~
  12961. $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'
  12962. else
  12963. ld_shlibs_CXX=no
  12964. fi
  12965. ;;
  12966. esac
  12967. ;;
  12968. darwin* | rhapsody*)
  12969. archive_cmds_need_lc_CXX=no
  12970. hardcode_direct_CXX=no
  12971. hardcode_automatic_CXX=yes
  12972. hardcode_shlibpath_var_CXX=unsupported
  12973. if test yes = "$lt_cv_ld_force_load"; then
  12974. 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\"`'
  12975. else
  12976. whole_archive_flag_spec_CXX=''
  12977. fi
  12978. link_all_deplibs_CXX=yes
  12979. allow_undefined_flag_CXX=$_lt_dar_allow_undefined
  12980. case $cc_basename in
  12981. ifort*|nagfor*) _lt_dar_can_shared=yes ;;
  12982. *) _lt_dar_can_shared=$GCC ;;
  12983. esac
  12984. if test yes = "$_lt_dar_can_shared"; then
  12985. output_verbose_link_cmd=func_echo_all
  12986. 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"
  12987. module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
  12988. 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"
  12989. 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"
  12990. if test yes != "$lt_cv_apple_cc_single_mod"; then
  12991. 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"
  12992. 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"
  12993. fi
  12994. else
  12995. ld_shlibs_CXX=no
  12996. fi
  12997. ;;
  12998. os2*)
  12999. hardcode_libdir_flag_spec_CXX='-L$libdir'
  13000. hardcode_minus_L_CXX=yes
  13001. allow_undefined_flag_CXX=unsupported
  13002. shrext_cmds=.dll
  13003. archive_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  13004. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  13005. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  13006. $ECHO EXPORTS >> $output_objdir/$libname.def~
  13007. emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
  13008. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  13009. emximp -o $lib $output_objdir/$libname.def'
  13010. archive_expsym_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  13011. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  13012. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  13013. $ECHO EXPORTS >> $output_objdir/$libname.def~
  13014. prefix_cmds="$SED"~
  13015. if test EXPORTS = "`$SED 1q $export_symbols`"; then
  13016. prefix_cmds="$prefix_cmds -e 1d";
  13017. fi~
  13018. prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
  13019. cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
  13020. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  13021. emximp -o $lib $output_objdir/$libname.def'
  13022. old_archive_From_new_cmds_CXX='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
  13023. enable_shared_with_static_runtimes_CXX=yes
  13024. ;;
  13025. dgux*)
  13026. case $cc_basename in
  13027. ec++*)
  13028. # FIXME: insert proper C++ library support
  13029. ld_shlibs_CXX=no
  13030. ;;
  13031. ghcx*)
  13032. # Green Hills C++ Compiler
  13033. # FIXME: insert proper C++ library support
  13034. ld_shlibs_CXX=no
  13035. ;;
  13036. *)
  13037. # FIXME: insert proper C++ library support
  13038. ld_shlibs_CXX=no
  13039. ;;
  13040. esac
  13041. ;;
  13042. freebsd2.*)
  13043. # C++ shared libraries reported to be fairly broken before
  13044. # switch to ELF
  13045. ld_shlibs_CXX=no
  13046. ;;
  13047. freebsd-elf*)
  13048. archive_cmds_need_lc_CXX=no
  13049. ;;
  13050. freebsd* | dragonfly*)
  13051. # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
  13052. # conventions
  13053. ld_shlibs_CXX=yes
  13054. ;;
  13055. haiku*)
  13056. archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  13057. link_all_deplibs_CXX=yes
  13058. ;;
  13059. hpux9*)
  13060. hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
  13061. hardcode_libdir_separator_CXX=:
  13062. export_dynamic_flag_spec_CXX='$wl-E'
  13063. hardcode_direct_CXX=yes
  13064. hardcode_minus_L_CXX=yes # Not in the search PATH,
  13065. # but as the default
  13066. # location of the library.
  13067. case $cc_basename in
  13068. CC*)
  13069. # FIXME: insert proper C++ library support
  13070. ld_shlibs_CXX=no
  13071. ;;
  13072. aCC*)
  13073. 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 "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
  13074. # Commands to make compiler produce verbose output that lists
  13075. # what "hidden" libraries, object files and flags are used when
  13076. # linking a shared library.
  13077. #
  13078. # There doesn't appear to be a way to prevent this compiler from
  13079. # explicitly linking system object files so we need to strip them
  13080. # from the output so that they don't get included in the library
  13081. # dependencies.
  13082. 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"'
  13083. ;;
  13084. *)
  13085. if test yes = "$GXX"; then
  13086. 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 "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
  13087. else
  13088. # FIXME: insert proper C++ library support
  13089. ld_shlibs_CXX=no
  13090. fi
  13091. ;;
  13092. esac
  13093. ;;
  13094. hpux10*|hpux11*)
  13095. if test no = "$with_gnu_ld"; then
  13096. hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
  13097. hardcode_libdir_separator_CXX=:
  13098. case $host_cpu in
  13099. hppa*64*|ia64*)
  13100. ;;
  13101. *)
  13102. export_dynamic_flag_spec_CXX='$wl-E'
  13103. ;;
  13104. esac
  13105. fi
  13106. case $host_cpu in
  13107. hppa*64*|ia64*)
  13108. hardcode_direct_CXX=no
  13109. hardcode_shlibpath_var_CXX=no
  13110. ;;
  13111. *)
  13112. hardcode_direct_CXX=yes
  13113. hardcode_direct_absolute_CXX=yes
  13114. hardcode_minus_L_CXX=yes # Not in the search PATH,
  13115. # but as the default
  13116. # location of the library.
  13117. ;;
  13118. esac
  13119. case $cc_basename in
  13120. CC*)
  13121. # FIXME: insert proper C++ library support
  13122. ld_shlibs_CXX=no
  13123. ;;
  13124. aCC*)
  13125. case $host_cpu in
  13126. hppa*64*)
  13127. archive_cmds_CXX='$CC -b $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  13128. ;;
  13129. ia64*)
  13130. archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  13131. ;;
  13132. *)
  13133. archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  13134. ;;
  13135. esac
  13136. # Commands to make compiler produce verbose output that lists
  13137. # what "hidden" libraries, object files and flags are used when
  13138. # linking a shared library.
  13139. #
  13140. # There doesn't appear to be a way to prevent this compiler from
  13141. # explicitly linking system object files so we need to strip them
  13142. # from the output so that they don't get included in the library
  13143. # dependencies.
  13144. 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"'
  13145. ;;
  13146. *)
  13147. if test yes = "$GXX"; then
  13148. if test no = "$with_gnu_ld"; then
  13149. case $host_cpu in
  13150. hppa*64*)
  13151. archive_cmds_CXX='$CC -shared -nostdlib -fPIC $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  13152. ;;
  13153. ia64*)
  13154. archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  13155. ;;
  13156. *)
  13157. 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'
  13158. ;;
  13159. esac
  13160. fi
  13161. else
  13162. # FIXME: insert proper C++ library support
  13163. ld_shlibs_CXX=no
  13164. fi
  13165. ;;
  13166. esac
  13167. ;;
  13168. interix[3-9]*)
  13169. hardcode_direct_CXX=no
  13170. hardcode_shlibpath_var_CXX=no
  13171. hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
  13172. export_dynamic_flag_spec_CXX='$wl-E'
  13173. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  13174. # Instead, shared libraries are loaded at an image base (0x10000000 by
  13175. # default) and relocated if they conflict, which is a slow very memory
  13176. # consuming and fragmenting process. To avoid this, we pick a random,
  13177. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  13178. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  13179. 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'
  13180. 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'
  13181. ;;
  13182. irix5* | irix6*)
  13183. case $cc_basename in
  13184. CC*)
  13185. # SGI C++
  13186. 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'
  13187. # Archives containing C++ object files must be created using
  13188. # "CC -ar", where "CC" is the IRIX C++ compiler. This is
  13189. # necessary to make sure instantiated templates are included
  13190. # in the archive.
  13191. old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
  13192. ;;
  13193. *)
  13194. if test yes = "$GXX"; then
  13195. if test no = "$with_gnu_ld"; then
  13196. 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'
  13197. else
  13198. 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'
  13199. fi
  13200. fi
  13201. link_all_deplibs_CXX=yes
  13202. ;;
  13203. esac
  13204. hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
  13205. hardcode_libdir_separator_CXX=:
  13206. inherit_rpath_CXX=yes
  13207. ;;
  13208. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  13209. case $cc_basename in
  13210. KCC*)
  13211. # Kuck and Associates, Inc. (KAI) C++ Compiler
  13212. # KCC will only create a shared library if the output file
  13213. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  13214. # to its proper name (with version) after linking.
  13215. 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'
  13216. 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'
  13217. # Commands to make compiler produce verbose output that lists
  13218. # what "hidden" libraries, object files and flags are used when
  13219. # linking a shared library.
  13220. #
  13221. # There doesn't appear to be a way to prevent this compiler from
  13222. # explicitly linking system object files so we need to strip them
  13223. # from the output so that they don't get included in the library
  13224. # dependencies.
  13225. 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"'
  13226. hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
  13227. export_dynamic_flag_spec_CXX='$wl--export-dynamic'
  13228. # Archives containing C++ object files must be created using
  13229. # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  13230. old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
  13231. ;;
  13232. icpc* | ecpc* )
  13233. # Intel C++
  13234. with_gnu_ld=yes
  13235. # version 8.0 and above of icpc choke on multiply defined symbols
  13236. # if we add $predep_objects and $postdep_objects, however 7.1 and
  13237. # earlier do not add the objects themselves.
  13238. case `$CC -V 2>&1` in
  13239. *"Version 7."*)
  13240. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
  13241. 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'
  13242. ;;
  13243. *) # Version 8.0 or newer
  13244. tmp_idyn=
  13245. case $host_cpu in
  13246. ia64*) tmp_idyn=' -i_dynamic';;
  13247. esac
  13248. archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  13249. 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'
  13250. ;;
  13251. esac
  13252. archive_cmds_need_lc_CXX=no
  13253. hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
  13254. export_dynamic_flag_spec_CXX='$wl--export-dynamic'
  13255. whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
  13256. ;;
  13257. pgCC* | pgcpp*)
  13258. # Portland Group C++ compiler
  13259. case `$CC -V` in
  13260. *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
  13261. prelink_cmds_CXX='tpldir=Template.dir~
  13262. rm -rf $tpldir~
  13263. $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
  13264. compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
  13265. old_archive_cmds_CXX='tpldir=Template.dir~
  13266. rm -rf $tpldir~
  13267. $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
  13268. $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
  13269. $RANLIB $oldlib'
  13270. archive_cmds_CXX='tpldir=Template.dir~
  13271. rm -rf $tpldir~
  13272. $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  13273. $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
  13274. archive_expsym_cmds_CXX='tpldir=Template.dir~
  13275. rm -rf $tpldir~
  13276. $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  13277. $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'
  13278. ;;
  13279. *) # Version 6 and above use weak symbols
  13280. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
  13281. 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'
  13282. ;;
  13283. esac
  13284. hardcode_libdir_flag_spec_CXX='$wl--rpath $wl$libdir'
  13285. export_dynamic_flag_spec_CXX='$wl--export-dynamic'
  13286. 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'
  13287. ;;
  13288. cxx*)
  13289. # Compaq C++
  13290. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
  13291. 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'
  13292. runpath_var=LD_RUN_PATH
  13293. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  13294. hardcode_libdir_separator_CXX=:
  13295. # Commands to make compiler produce verbose output that lists
  13296. # what "hidden" libraries, object files and flags are used when
  13297. # linking a shared library.
  13298. #
  13299. # There doesn't appear to be a way to prevent this compiler from
  13300. # explicitly linking system object files so we need to strip them
  13301. # from the output so that they don't get included in the library
  13302. # dependencies.
  13303. 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'
  13304. ;;
  13305. xl* | mpixl* | bgxl*)
  13306. # IBM XL 8.0 on PPC, with GNU ld
  13307. hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
  13308. export_dynamic_flag_spec_CXX='$wl--export-dynamic'
  13309. archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  13310. if test yes = "$supports_anon_versioning"; then
  13311. archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
  13312. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  13313. echo "local: *; };" >> $output_objdir/$libname.ver~
  13314. $CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
  13315. fi
  13316. ;;
  13317. *)
  13318. case `$CC -V 2>&1 | sed 5q` in
  13319. *Sun\ C*)
  13320. # Sun C++ 5.9
  13321. no_undefined_flag_CXX=' -zdefs'
  13322. archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  13323. 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'
  13324. hardcode_libdir_flag_spec_CXX='-R$libdir'
  13325. 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'
  13326. compiler_needs_object_CXX=yes
  13327. # Not sure whether something based on
  13328. # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
  13329. # would be better.
  13330. output_verbose_link_cmd='func_echo_all'
  13331. # Archives containing C++ object files must be created using
  13332. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  13333. # necessary to make sure instantiated templates are included
  13334. # in the archive.
  13335. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  13336. ;;
  13337. esac
  13338. ;;
  13339. esac
  13340. ;;
  13341. lynxos*)
  13342. # FIXME: insert proper C++ library support
  13343. ld_shlibs_CXX=no
  13344. ;;
  13345. m88k*)
  13346. # FIXME: insert proper C++ library support
  13347. ld_shlibs_CXX=no
  13348. ;;
  13349. mvs*)
  13350. case $cc_basename in
  13351. cxx*)
  13352. # FIXME: insert proper C++ library support
  13353. ld_shlibs_CXX=no
  13354. ;;
  13355. *)
  13356. # FIXME: insert proper C++ library support
  13357. ld_shlibs_CXX=no
  13358. ;;
  13359. esac
  13360. ;;
  13361. netbsd*)
  13362. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  13363. archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
  13364. wlarc=
  13365. hardcode_libdir_flag_spec_CXX='-R$libdir'
  13366. hardcode_direct_CXX=yes
  13367. hardcode_shlibpath_var_CXX=no
  13368. fi
  13369. # Workaround some broken pre-1.5 toolchains
  13370. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
  13371. ;;
  13372. *nto* | *qnx*)
  13373. ld_shlibs_CXX=yes
  13374. ;;
  13375. openbsd* | bitrig*)
  13376. if test -f /usr/libexec/ld.so; then
  13377. hardcode_direct_CXX=yes
  13378. hardcode_shlibpath_var_CXX=no
  13379. hardcode_direct_absolute_CXX=yes
  13380. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  13381. hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
  13382. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`"; then
  13383. archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file,$export_symbols -o $lib'
  13384. export_dynamic_flag_spec_CXX='$wl-E'
  13385. whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
  13386. fi
  13387. output_verbose_link_cmd=func_echo_all
  13388. else
  13389. ld_shlibs_CXX=no
  13390. fi
  13391. ;;
  13392. osf3* | osf4* | osf5*)
  13393. case $cc_basename in
  13394. KCC*)
  13395. # Kuck and Associates, Inc. (KAI) C++ Compiler
  13396. # KCC will only create a shared library if the output file
  13397. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  13398. # to its proper name (with version) after linking.
  13399. 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'
  13400. hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
  13401. hardcode_libdir_separator_CXX=:
  13402. # Archives containing C++ object files must be created using
  13403. # the KAI C++ compiler.
  13404. case $host in
  13405. osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
  13406. *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
  13407. esac
  13408. ;;
  13409. RCC*)
  13410. # Rational C++ 2.4.1
  13411. # FIXME: insert proper C++ library support
  13412. ld_shlibs_CXX=no
  13413. ;;
  13414. cxx*)
  13415. case $host in
  13416. osf3*)
  13417. allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
  13418. 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'
  13419. hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
  13420. ;;
  13421. *)
  13422. allow_undefined_flag_CXX=' -expect_unresolved \*'
  13423. 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'
  13424. archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
  13425. echo "-hidden">> $lib.exp~
  13426. $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~
  13427. $RM $lib.exp'
  13428. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  13429. ;;
  13430. esac
  13431. hardcode_libdir_separator_CXX=:
  13432. # Commands to make compiler produce verbose output that lists
  13433. # what "hidden" libraries, object files and flags are used when
  13434. # linking a shared library.
  13435. #
  13436. # There doesn't appear to be a way to prevent this compiler from
  13437. # explicitly linking system object files so we need to strip them
  13438. # from the output so that they don't get included in the library
  13439. # dependencies.
  13440. 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"'
  13441. ;;
  13442. *)
  13443. if test yes,no = "$GXX,$with_gnu_ld"; then
  13444. allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
  13445. case $host in
  13446. osf3*)
  13447. 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'
  13448. ;;
  13449. *)
  13450. 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'
  13451. ;;
  13452. esac
  13453. hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
  13454. hardcode_libdir_separator_CXX=:
  13455. # Commands to make compiler produce verbose output that lists
  13456. # what "hidden" libraries, object files and flags are used when
  13457. # linking a shared library.
  13458. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP " \-L"'
  13459. else
  13460. # FIXME: insert proper C++ library support
  13461. ld_shlibs_CXX=no
  13462. fi
  13463. ;;
  13464. esac
  13465. ;;
  13466. psos*)
  13467. # FIXME: insert proper C++ library support
  13468. ld_shlibs_CXX=no
  13469. ;;
  13470. sunos4*)
  13471. case $cc_basename in
  13472. CC*)
  13473. # Sun C++ 4.x
  13474. # FIXME: insert proper C++ library support
  13475. ld_shlibs_CXX=no
  13476. ;;
  13477. lcc*)
  13478. # Lucid
  13479. # FIXME: insert proper C++ library support
  13480. ld_shlibs_CXX=no
  13481. ;;
  13482. *)
  13483. # FIXME: insert proper C++ library support
  13484. ld_shlibs_CXX=no
  13485. ;;
  13486. esac
  13487. ;;
  13488. solaris*)
  13489. case $cc_basename in
  13490. CC* | sunCC*)
  13491. # Sun C++ 4.2, 5.x and Centerline C++
  13492. archive_cmds_need_lc_CXX=yes
  13493. no_undefined_flag_CXX=' -zdefs'
  13494. archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  13495. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  13496. $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'
  13497. hardcode_libdir_flag_spec_CXX='-R$libdir'
  13498. hardcode_shlibpath_var_CXX=no
  13499. case $host_os in
  13500. solaris2.[0-5] | solaris2.[0-5].*) ;;
  13501. *)
  13502. # The compiler driver will combine and reorder linker options,
  13503. # but understands '-z linker_flag'.
  13504. # Supported since Solaris 2.6 (maybe 2.5.1?)
  13505. whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
  13506. ;;
  13507. esac
  13508. link_all_deplibs_CXX=yes
  13509. output_verbose_link_cmd='func_echo_all'
  13510. # Archives containing C++ object files must be created using
  13511. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  13512. # necessary to make sure instantiated templates are included
  13513. # in the archive.
  13514. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  13515. ;;
  13516. gcx*)
  13517. # Green Hills C++ Compiler
  13518. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
  13519. # The C++ compiler must be used to create the archive.
  13520. old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
  13521. ;;
  13522. *)
  13523. # GNU C++ compiler with Solaris linker
  13524. if test yes,no = "$GXX,$with_gnu_ld"; then
  13525. no_undefined_flag_CXX=' $wl-z ${wl}defs'
  13526. if $CC --version | $GREP -v '^2\.7' > /dev/null; then
  13527. archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
  13528. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  13529. $CC -shared $pic_flag -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  13530. # Commands to make compiler produce verbose output that lists
  13531. # what "hidden" libraries, object files and flags are used when
  13532. # linking a shared library.
  13533. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP " \-L"'
  13534. else
  13535. # g++ 2.7 appears to require '-G' NOT '-shared' on this
  13536. # platform.
  13537. archive_cmds_CXX='$CC -G -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
  13538. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  13539. $CC -G -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  13540. # Commands to make compiler produce verbose output that lists
  13541. # what "hidden" libraries, object files and flags are used when
  13542. # linking a shared library.
  13543. output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP " \-L"'
  13544. fi
  13545. hardcode_libdir_flag_spec_CXX='$wl-R $wl$libdir'
  13546. case $host_os in
  13547. solaris2.[0-5] | solaris2.[0-5].*) ;;
  13548. *)
  13549. whole_archive_flag_spec_CXX='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
  13550. ;;
  13551. esac
  13552. fi
  13553. ;;
  13554. esac
  13555. ;;
  13556. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  13557. no_undefined_flag_CXX='$wl-z,text'
  13558. archive_cmds_need_lc_CXX=no
  13559. hardcode_shlibpath_var_CXX=no
  13560. runpath_var='LD_RUN_PATH'
  13561. case $cc_basename in
  13562. CC*)
  13563. archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13564. archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13565. ;;
  13566. *)
  13567. archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13568. archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13569. ;;
  13570. esac
  13571. ;;
  13572. sysv5* | sco3.2v5* | sco5v6*)
  13573. # Note: We CANNOT use -z defs as we might desire, because we do not
  13574. # link with -lc, and that would cause any symbols used from libc to
  13575. # always be unresolved, which means just about no library would
  13576. # ever link correctly. If we're not using GNU ld we use -z text
  13577. # though, which does catch some bad symbols but isn't as heavy-handed
  13578. # as -z defs.
  13579. no_undefined_flag_CXX='$wl-z,text'
  13580. allow_undefined_flag_CXX='$wl-z,nodefs'
  13581. archive_cmds_need_lc_CXX=no
  13582. hardcode_shlibpath_var_CXX=no
  13583. hardcode_libdir_flag_spec_CXX='$wl-R,$libdir'
  13584. hardcode_libdir_separator_CXX=':'
  13585. link_all_deplibs_CXX=yes
  13586. export_dynamic_flag_spec_CXX='$wl-Bexport'
  13587. runpath_var='LD_RUN_PATH'
  13588. case $cc_basename in
  13589. CC*)
  13590. archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13591. archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13592. old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
  13593. '"$old_archive_cmds_CXX"
  13594. reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
  13595. '"$reload_cmds_CXX"
  13596. ;;
  13597. *)
  13598. archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13599. archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13600. ;;
  13601. esac
  13602. ;;
  13603. tandem*)
  13604. case $cc_basename in
  13605. NCC*)
  13606. # NonStop-UX NCC 3.20
  13607. # FIXME: insert proper C++ library support
  13608. ld_shlibs_CXX=no
  13609. ;;
  13610. *)
  13611. # FIXME: insert proper C++ library support
  13612. ld_shlibs_CXX=no
  13613. ;;
  13614. esac
  13615. ;;
  13616. vxworks*)
  13617. # FIXME: insert proper C++ library support
  13618. ld_shlibs_CXX=no
  13619. ;;
  13620. *)
  13621. # FIXME: insert proper C++ library support
  13622. ld_shlibs_CXX=no
  13623. ;;
  13624. esac
  13625. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
  13626. $as_echo "$ld_shlibs_CXX" >&6; }
  13627. test no = "$ld_shlibs_CXX" && can_build_shared=no
  13628. GCC_CXX=$GXX
  13629. LD_CXX=$LD
  13630. ## CAVEAT EMPTOR:
  13631. ## There is no encapsulation within the following macros, do not change
  13632. ## the running order or otherwise move them around unless you know exactly
  13633. ## what you are doing...
  13634. # Dependencies to place before and after the object being linked:
  13635. predep_objects_CXX=
  13636. postdep_objects_CXX=
  13637. predeps_CXX=
  13638. postdeps_CXX=
  13639. compiler_lib_search_path_CXX=
  13640. cat > conftest.$ac_ext <<_LT_EOF
  13641. class Foo
  13642. {
  13643. public:
  13644. Foo (void) { a = 0; }
  13645. private:
  13646. int a;
  13647. };
  13648. _LT_EOF
  13649. _lt_libdeps_save_CFLAGS=$CFLAGS
  13650. case "$CC $CFLAGS " in #(
  13651. *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
  13652. *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
  13653. *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
  13654. esac
  13655. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  13656. (eval $ac_compile) 2>&5
  13657. ac_status=$?
  13658. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  13659. test $ac_status = 0; }; then
  13660. # Parse the compiler output and extract the necessary
  13661. # objects, libraries and library flags.
  13662. # Sentinel used to keep track of whether or not we are before
  13663. # the conftest object file.
  13664. pre_test_object_deps_done=no
  13665. for p in `eval "$output_verbose_link_cmd"`; do
  13666. case $prev$p in
  13667. -L* | -R* | -l*)
  13668. # Some compilers place space between "-{L,R}" and the path.
  13669. # Remove the space.
  13670. if test x-L = "$p" ||
  13671. test x-R = "$p"; then
  13672. prev=$p
  13673. continue
  13674. fi
  13675. # Expand the sysroot to ease extracting the directories later.
  13676. if test -z "$prev"; then
  13677. case $p in
  13678. -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
  13679. -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
  13680. -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
  13681. esac
  13682. fi
  13683. case $p in
  13684. =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
  13685. esac
  13686. if test no = "$pre_test_object_deps_done"; then
  13687. case $prev in
  13688. -L | -R)
  13689. # Internal compiler library paths should come after those
  13690. # provided the user. The postdeps already come after the
  13691. # user supplied libs so there is no need to process them.
  13692. if test -z "$compiler_lib_search_path_CXX"; then
  13693. compiler_lib_search_path_CXX=$prev$p
  13694. else
  13695. compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} $prev$p"
  13696. fi
  13697. ;;
  13698. # The "-l" case would never come before the object being
  13699. # linked, so don't bother handling this case.
  13700. esac
  13701. else
  13702. if test -z "$postdeps_CXX"; then
  13703. postdeps_CXX=$prev$p
  13704. else
  13705. postdeps_CXX="${postdeps_CXX} $prev$p"
  13706. fi
  13707. fi
  13708. prev=
  13709. ;;
  13710. *.lto.$objext) ;; # Ignore GCC LTO objects
  13711. *.$objext)
  13712. # This assumes that the test object file only shows up
  13713. # once in the compiler output.
  13714. if test "$p" = "conftest.$objext"; then
  13715. pre_test_object_deps_done=yes
  13716. continue
  13717. fi
  13718. if test no = "$pre_test_object_deps_done"; then
  13719. if test -z "$predep_objects_CXX"; then
  13720. predep_objects_CXX=$p
  13721. else
  13722. predep_objects_CXX="$predep_objects_CXX $p"
  13723. fi
  13724. else
  13725. if test -z "$postdep_objects_CXX"; then
  13726. postdep_objects_CXX=$p
  13727. else
  13728. postdep_objects_CXX="$postdep_objects_CXX $p"
  13729. fi
  13730. fi
  13731. ;;
  13732. *) ;; # Ignore the rest.
  13733. esac
  13734. done
  13735. # Clean up.
  13736. rm -f a.out a.exe
  13737. else
  13738. echo "libtool.m4: error: problem compiling CXX test program"
  13739. fi
  13740. $RM -f confest.$objext
  13741. CFLAGS=$_lt_libdeps_save_CFLAGS
  13742. # PORTME: override above test on systems where it is broken
  13743. case $host_os in
  13744. interix[3-9]*)
  13745. # Interix 3.5 installs completely hosed .la files for C++, so rather than
  13746. # hack all around it, let's just trust "g++" to DTRT.
  13747. predep_objects_CXX=
  13748. postdep_objects_CXX=
  13749. postdeps_CXX=
  13750. ;;
  13751. esac
  13752. case " $postdeps_CXX " in
  13753. *" -lc "*) archive_cmds_need_lc_CXX=no ;;
  13754. esac
  13755. compiler_lib_search_dirs_CXX=
  13756. if test -n "${compiler_lib_search_path_CXX}"; then
  13757. compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | $SED -e 's! -L! !g' -e 's!^ !!'`
  13758. fi
  13759. lt_prog_compiler_wl_CXX=
  13760. lt_prog_compiler_pic_CXX=
  13761. lt_prog_compiler_static_CXX=
  13762. # C++ specific cases for pic, static, wl, etc.
  13763. if test yes = "$GXX"; then
  13764. lt_prog_compiler_wl_CXX='-Wl,'
  13765. lt_prog_compiler_static_CXX='-static'
  13766. case $host_os in
  13767. aix*)
  13768. # All AIX code is PIC.
  13769. if test ia64 = "$host_cpu"; then
  13770. # AIX 5 now supports IA64 processor
  13771. lt_prog_compiler_static_CXX='-Bstatic'
  13772. fi
  13773. lt_prog_compiler_pic_CXX='-fPIC'
  13774. ;;
  13775. amigaos*)
  13776. case $host_cpu in
  13777. powerpc)
  13778. # see comment about AmigaOS4 .so support
  13779. lt_prog_compiler_pic_CXX='-fPIC'
  13780. ;;
  13781. m68k)
  13782. # FIXME: we need at least 68020 code to build shared libraries, but
  13783. # adding the '-m68020' flag to GCC prevents building anything better,
  13784. # like '-m68040'.
  13785. lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
  13786. ;;
  13787. esac
  13788. ;;
  13789. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  13790. # PIC is the default for these OSes.
  13791. ;;
  13792. mingw* | cygwin* | os2* | pw32* | cegcc*)
  13793. # This hack is so that the source file can tell whether it is being
  13794. # built for inclusion in a dll (and should export symbols for example).
  13795. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  13796. # (--disable-auto-import) libraries
  13797. lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
  13798. case $host_os in
  13799. os2*)
  13800. lt_prog_compiler_static_CXX='$wl-static'
  13801. ;;
  13802. esac
  13803. ;;
  13804. darwin* | rhapsody*)
  13805. # PIC is the default on this platform
  13806. # Common symbols not allowed in MH_DYLIB files
  13807. lt_prog_compiler_pic_CXX='-fno-common'
  13808. ;;
  13809. *djgpp*)
  13810. # DJGPP does not support shared libraries at all
  13811. lt_prog_compiler_pic_CXX=
  13812. ;;
  13813. haiku*)
  13814. # PIC is the default for Haiku.
  13815. # The "-static" flag exists, but is broken.
  13816. lt_prog_compiler_static_CXX=
  13817. ;;
  13818. interix[3-9]*)
  13819. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  13820. # Instead, we relocate shared libraries at runtime.
  13821. ;;
  13822. sysv4*MP*)
  13823. if test -d /usr/nec; then
  13824. lt_prog_compiler_pic_CXX=-Kconform_pic
  13825. fi
  13826. ;;
  13827. hpux*)
  13828. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  13829. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  13830. # sets the default TLS model and affects inlining.
  13831. case $host_cpu in
  13832. hppa*64*)
  13833. ;;
  13834. *)
  13835. lt_prog_compiler_pic_CXX='-fPIC'
  13836. ;;
  13837. esac
  13838. ;;
  13839. *qnx* | *nto*)
  13840. # QNX uses GNU C++, but need to define -shared option too, otherwise
  13841. # it will coredump.
  13842. lt_prog_compiler_pic_CXX='-fPIC -shared'
  13843. ;;
  13844. *)
  13845. lt_prog_compiler_pic_CXX='-fPIC'
  13846. ;;
  13847. esac
  13848. else
  13849. case $host_os in
  13850. aix[4-9]*)
  13851. # All AIX code is PIC.
  13852. if test ia64 = "$host_cpu"; then
  13853. # AIX 5 now supports IA64 processor
  13854. lt_prog_compiler_static_CXX='-Bstatic'
  13855. else
  13856. lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
  13857. fi
  13858. ;;
  13859. chorus*)
  13860. case $cc_basename in
  13861. cxch68*)
  13862. # Green Hills C++ Compiler
  13863. # _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"
  13864. ;;
  13865. esac
  13866. ;;
  13867. mingw* | cygwin* | os2* | pw32* | cegcc*)
  13868. # This hack is so that the source file can tell whether it is being
  13869. # built for inclusion in a dll (and should export symbols for example).
  13870. lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
  13871. ;;
  13872. dgux*)
  13873. case $cc_basename in
  13874. ec++*)
  13875. lt_prog_compiler_pic_CXX='-KPIC'
  13876. ;;
  13877. ghcx*)
  13878. # Green Hills C++ Compiler
  13879. lt_prog_compiler_pic_CXX='-pic'
  13880. ;;
  13881. *)
  13882. ;;
  13883. esac
  13884. ;;
  13885. freebsd* | dragonfly*)
  13886. # FreeBSD uses GNU C++
  13887. ;;
  13888. hpux9* | hpux10* | hpux11*)
  13889. case $cc_basename in
  13890. CC*)
  13891. lt_prog_compiler_wl_CXX='-Wl,'
  13892. lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
  13893. if test ia64 != "$host_cpu"; then
  13894. lt_prog_compiler_pic_CXX='+Z'
  13895. fi
  13896. ;;
  13897. aCC*)
  13898. lt_prog_compiler_wl_CXX='-Wl,'
  13899. lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
  13900. case $host_cpu in
  13901. hppa*64*|ia64*)
  13902. # +Z the default
  13903. ;;
  13904. *)
  13905. lt_prog_compiler_pic_CXX='+Z'
  13906. ;;
  13907. esac
  13908. ;;
  13909. *)
  13910. ;;
  13911. esac
  13912. ;;
  13913. interix*)
  13914. # This is c89, which is MS Visual C++ (no shared libs)
  13915. # Anyone wants to do a port?
  13916. ;;
  13917. irix5* | irix6* | nonstopux*)
  13918. case $cc_basename in
  13919. CC*)
  13920. lt_prog_compiler_wl_CXX='-Wl,'
  13921. lt_prog_compiler_static_CXX='-non_shared'
  13922. # CC pic flag -KPIC is the default.
  13923. ;;
  13924. *)
  13925. ;;
  13926. esac
  13927. ;;
  13928. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  13929. case $cc_basename in
  13930. KCC*)
  13931. # KAI C++ Compiler
  13932. lt_prog_compiler_wl_CXX='--backend -Wl,'
  13933. lt_prog_compiler_pic_CXX='-fPIC'
  13934. ;;
  13935. ecpc* )
  13936. # old Intel C++ for x86_64, which still supported -KPIC.
  13937. lt_prog_compiler_wl_CXX='-Wl,'
  13938. lt_prog_compiler_pic_CXX='-KPIC'
  13939. lt_prog_compiler_static_CXX='-static'
  13940. ;;
  13941. icpc* )
  13942. # Intel C++, used to be incompatible with GCC.
  13943. # ICC 10 doesn't accept -KPIC any more.
  13944. lt_prog_compiler_wl_CXX='-Wl,'
  13945. lt_prog_compiler_pic_CXX='-fPIC'
  13946. lt_prog_compiler_static_CXX='-static'
  13947. ;;
  13948. pgCC* | pgcpp*)
  13949. # Portland Group C++ compiler
  13950. lt_prog_compiler_wl_CXX='-Wl,'
  13951. lt_prog_compiler_pic_CXX='-fpic'
  13952. lt_prog_compiler_static_CXX='-Bstatic'
  13953. ;;
  13954. cxx*)
  13955. # Compaq C++
  13956. # Make sure the PIC flag is empty. It appears that all Alpha
  13957. # Linux and Compaq Tru64 Unix objects are PIC.
  13958. lt_prog_compiler_pic_CXX=
  13959. lt_prog_compiler_static_CXX='-non_shared'
  13960. ;;
  13961. xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
  13962. # IBM XL 8.0, 9.0 on PPC and BlueGene
  13963. lt_prog_compiler_wl_CXX='-Wl,'
  13964. lt_prog_compiler_pic_CXX='-qpic'
  13965. lt_prog_compiler_static_CXX='-qstaticlink'
  13966. ;;
  13967. *)
  13968. case `$CC -V 2>&1 | sed 5q` in
  13969. *Sun\ C*)
  13970. # Sun C++ 5.9
  13971. lt_prog_compiler_pic_CXX='-KPIC'
  13972. lt_prog_compiler_static_CXX='-Bstatic'
  13973. lt_prog_compiler_wl_CXX='-Qoption ld '
  13974. ;;
  13975. esac
  13976. ;;
  13977. esac
  13978. ;;
  13979. lynxos*)
  13980. ;;
  13981. m88k*)
  13982. ;;
  13983. mvs*)
  13984. case $cc_basename in
  13985. cxx*)
  13986. lt_prog_compiler_pic_CXX='-W c,exportall'
  13987. ;;
  13988. *)
  13989. ;;
  13990. esac
  13991. ;;
  13992. netbsd* | netbsdelf*-gnu)
  13993. ;;
  13994. *qnx* | *nto*)
  13995. # QNX uses GNU C++, but need to define -shared option too, otherwise
  13996. # it will coredump.
  13997. lt_prog_compiler_pic_CXX='-fPIC -shared'
  13998. ;;
  13999. osf3* | osf4* | osf5*)
  14000. case $cc_basename in
  14001. KCC*)
  14002. lt_prog_compiler_wl_CXX='--backend -Wl,'
  14003. ;;
  14004. RCC*)
  14005. # Rational C++ 2.4.1
  14006. lt_prog_compiler_pic_CXX='-pic'
  14007. ;;
  14008. cxx*)
  14009. # Digital/Compaq C++
  14010. lt_prog_compiler_wl_CXX='-Wl,'
  14011. # Make sure the PIC flag is empty. It appears that all Alpha
  14012. # Linux and Compaq Tru64 Unix objects are PIC.
  14013. lt_prog_compiler_pic_CXX=
  14014. lt_prog_compiler_static_CXX='-non_shared'
  14015. ;;
  14016. *)
  14017. ;;
  14018. esac
  14019. ;;
  14020. psos*)
  14021. ;;
  14022. solaris*)
  14023. case $cc_basename in
  14024. CC* | sunCC*)
  14025. # Sun C++ 4.2, 5.x and Centerline C++
  14026. lt_prog_compiler_pic_CXX='-KPIC'
  14027. lt_prog_compiler_static_CXX='-Bstatic'
  14028. lt_prog_compiler_wl_CXX='-Qoption ld '
  14029. ;;
  14030. gcx*)
  14031. # Green Hills C++ Compiler
  14032. lt_prog_compiler_pic_CXX='-PIC'
  14033. ;;
  14034. *)
  14035. ;;
  14036. esac
  14037. ;;
  14038. sunos4*)
  14039. case $cc_basename in
  14040. CC*)
  14041. # Sun C++ 4.x
  14042. lt_prog_compiler_pic_CXX='-pic'
  14043. lt_prog_compiler_static_CXX='-Bstatic'
  14044. ;;
  14045. lcc*)
  14046. # Lucid
  14047. lt_prog_compiler_pic_CXX='-pic'
  14048. ;;
  14049. *)
  14050. ;;
  14051. esac
  14052. ;;
  14053. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  14054. case $cc_basename in
  14055. CC*)
  14056. lt_prog_compiler_wl_CXX='-Wl,'
  14057. lt_prog_compiler_pic_CXX='-KPIC'
  14058. lt_prog_compiler_static_CXX='-Bstatic'
  14059. ;;
  14060. esac
  14061. ;;
  14062. tandem*)
  14063. case $cc_basename in
  14064. NCC*)
  14065. # NonStop-UX NCC 3.20
  14066. lt_prog_compiler_pic_CXX='-KPIC'
  14067. ;;
  14068. *)
  14069. ;;
  14070. esac
  14071. ;;
  14072. vxworks*)
  14073. ;;
  14074. *)
  14075. lt_prog_compiler_can_build_shared_CXX=no
  14076. ;;
  14077. esac
  14078. fi
  14079. case $host_os in
  14080. # For platforms that do not support PIC, -DPIC is meaningless:
  14081. *djgpp*)
  14082. lt_prog_compiler_pic_CXX=
  14083. ;;
  14084. *)
  14085. lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
  14086. ;;
  14087. esac
  14088. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  14089. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  14090. if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
  14091. $as_echo_n "(cached) " >&6
  14092. else
  14093. lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
  14094. fi
  14095. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
  14096. $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
  14097. lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
  14098. #
  14099. # Check to make sure the PIC flag actually works.
  14100. #
  14101. if test -n "$lt_prog_compiler_pic_CXX"; then
  14102. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
  14103. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
  14104. if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
  14105. $as_echo_n "(cached) " >&6
  14106. else
  14107. lt_cv_prog_compiler_pic_works_CXX=no
  14108. ac_outfile=conftest.$ac_objext
  14109. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  14110. lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" ## exclude from sc_useless_quotes_in_assignment
  14111. # Insert the option either (1) after the last *FLAGS variable, or
  14112. # (2) before a word containing "conftest.", or (3) at the end.
  14113. # Note that $ac_compile itself does not contain backslashes and begins
  14114. # with a dollar sign (not a hyphen), so the echo should work correctly.
  14115. # The option is referenced via a variable to avoid confusing sed.
  14116. lt_compile=`echo "$ac_compile" | $SED \
  14117. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  14118. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  14119. -e 's:$: $lt_compiler_flag:'`
  14120. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  14121. (eval "$lt_compile" 2>conftest.err)
  14122. ac_status=$?
  14123. cat conftest.err >&5
  14124. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14125. if (exit $ac_status) && test -s "$ac_outfile"; then
  14126. # The compiler can only warn and ignore the option if not recognized
  14127. # So say no if there are warnings other than the usual output.
  14128. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  14129. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  14130. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  14131. lt_cv_prog_compiler_pic_works_CXX=yes
  14132. fi
  14133. fi
  14134. $RM conftest*
  14135. fi
  14136. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
  14137. $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
  14138. if test yes = "$lt_cv_prog_compiler_pic_works_CXX"; then
  14139. case $lt_prog_compiler_pic_CXX in
  14140. "" | " "*) ;;
  14141. *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
  14142. esac
  14143. else
  14144. lt_prog_compiler_pic_CXX=
  14145. lt_prog_compiler_can_build_shared_CXX=no
  14146. fi
  14147. fi
  14148. #
  14149. # Check to make sure the static flag actually works.
  14150. #
  14151. wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
  14152. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  14153. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  14154. if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
  14155. $as_echo_n "(cached) " >&6
  14156. else
  14157. lt_cv_prog_compiler_static_works_CXX=no
  14158. save_LDFLAGS=$LDFLAGS
  14159. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  14160. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  14161. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  14162. # The linker can only warn and ignore the option if not recognized
  14163. # So say no if there are warnings
  14164. if test -s conftest.err; then
  14165. # Append any errors to the config.log.
  14166. cat conftest.err 1>&5
  14167. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  14168. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  14169. if diff conftest.exp conftest.er2 >/dev/null; then
  14170. lt_cv_prog_compiler_static_works_CXX=yes
  14171. fi
  14172. else
  14173. lt_cv_prog_compiler_static_works_CXX=yes
  14174. fi
  14175. fi
  14176. $RM -r conftest*
  14177. LDFLAGS=$save_LDFLAGS
  14178. fi
  14179. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
  14180. $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
  14181. if test yes = "$lt_cv_prog_compiler_static_works_CXX"; then
  14182. :
  14183. else
  14184. lt_prog_compiler_static_CXX=
  14185. fi
  14186. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  14187. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  14188. if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
  14189. $as_echo_n "(cached) " >&6
  14190. else
  14191. lt_cv_prog_compiler_c_o_CXX=no
  14192. $RM -r conftest 2>/dev/null
  14193. mkdir conftest
  14194. cd conftest
  14195. mkdir out
  14196. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  14197. lt_compiler_flag="-o out/conftest2.$ac_objext"
  14198. # Insert the option either (1) after the last *FLAGS variable, or
  14199. # (2) before a word containing "conftest.", or (3) at the end.
  14200. # Note that $ac_compile itself does not contain backslashes and begins
  14201. # with a dollar sign (not a hyphen), so the echo should work correctly.
  14202. lt_compile=`echo "$ac_compile" | $SED \
  14203. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  14204. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  14205. -e 's:$: $lt_compiler_flag:'`
  14206. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  14207. (eval "$lt_compile" 2>out/conftest.err)
  14208. ac_status=$?
  14209. cat out/conftest.err >&5
  14210. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14211. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  14212. then
  14213. # The compiler can only warn and ignore the option if not recognized
  14214. # So say no if there are warnings
  14215. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  14216. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  14217. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  14218. lt_cv_prog_compiler_c_o_CXX=yes
  14219. fi
  14220. fi
  14221. chmod u+w . 2>&5
  14222. $RM conftest*
  14223. # SGI C++ compiler will create directory out/ii_files/ for
  14224. # template instantiation
  14225. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  14226. $RM out/* && rmdir out
  14227. cd ..
  14228. $RM -r conftest
  14229. $RM conftest*
  14230. fi
  14231. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  14232. $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
  14233. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  14234. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  14235. if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
  14236. $as_echo_n "(cached) " >&6
  14237. else
  14238. lt_cv_prog_compiler_c_o_CXX=no
  14239. $RM -r conftest 2>/dev/null
  14240. mkdir conftest
  14241. cd conftest
  14242. mkdir out
  14243. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  14244. lt_compiler_flag="-o out/conftest2.$ac_objext"
  14245. # Insert the option either (1) after the last *FLAGS variable, or
  14246. # (2) before a word containing "conftest.", or (3) at the end.
  14247. # Note that $ac_compile itself does not contain backslashes and begins
  14248. # with a dollar sign (not a hyphen), so the echo should work correctly.
  14249. lt_compile=`echo "$ac_compile" | $SED \
  14250. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  14251. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  14252. -e 's:$: $lt_compiler_flag:'`
  14253. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  14254. (eval "$lt_compile" 2>out/conftest.err)
  14255. ac_status=$?
  14256. cat out/conftest.err >&5
  14257. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14258. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  14259. then
  14260. # The compiler can only warn and ignore the option if not recognized
  14261. # So say no if there are warnings
  14262. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  14263. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  14264. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  14265. lt_cv_prog_compiler_c_o_CXX=yes
  14266. fi
  14267. fi
  14268. chmod u+w . 2>&5
  14269. $RM conftest*
  14270. # SGI C++ compiler will create directory out/ii_files/ for
  14271. # template instantiation
  14272. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  14273. $RM out/* && rmdir out
  14274. cd ..
  14275. $RM -r conftest
  14276. $RM conftest*
  14277. fi
  14278. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  14279. $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
  14280. hard_links=nottested
  14281. if test no = "$lt_cv_prog_compiler_c_o_CXX" && test no != "$need_locks"; then
  14282. # do not overwrite the value of need_locks provided by the user
  14283. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  14284. $as_echo_n "checking if we can lock with hard links... " >&6; }
  14285. hard_links=yes
  14286. $RM conftest*
  14287. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  14288. touch conftest.a
  14289. ln conftest.a conftest.b 2>&5 || hard_links=no
  14290. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  14291. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  14292. $as_echo "$hard_links" >&6; }
  14293. if test no = "$hard_links"; then
  14294. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
  14295. $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
  14296. need_locks=warn
  14297. fi
  14298. else
  14299. need_locks=no
  14300. fi
  14301. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  14302. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  14303. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  14304. exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  14305. case $host_os in
  14306. aix[4-9]*)
  14307. # If we're using GNU nm, then we don't want the "-C" option.
  14308. # -C means demangle to GNU nm, but means don't demangle to AIX nm.
  14309. # Without the "-l" option, or with the "-B" option, AIX nm treats
  14310. # weak defined symbols like other global defined symbols, whereas
  14311. # GNU nm marks them as "W".
  14312. # While the 'weak' keyword is ignored in the Export File, we need
  14313. # it in the Import File for the 'aix-soname' feature, so we have
  14314. # to replace the "-B" option with "-P" for AIX nm.
  14315. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  14316. export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
  14317. else
  14318. export_symbols_cmds_CXX='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
  14319. fi
  14320. ;;
  14321. pw32*)
  14322. export_symbols_cmds_CXX=$ltdll_cmds
  14323. ;;
  14324. cygwin* | mingw* | cegcc*)
  14325. case $cc_basename in
  14326. cl*)
  14327. exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
  14328. ;;
  14329. *)
  14330. 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'
  14331. exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
  14332. ;;
  14333. esac
  14334. ;;
  14335. linux* | k*bsd*-gnu | gnu*)
  14336. link_all_deplibs_CXX=no
  14337. ;;
  14338. *)
  14339. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  14340. ;;
  14341. esac
  14342. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
  14343. $as_echo "$ld_shlibs_CXX" >&6; }
  14344. test no = "$ld_shlibs_CXX" && can_build_shared=no
  14345. with_gnu_ld_CXX=$with_gnu_ld
  14346. #
  14347. # Do we need to explicitly link libc?
  14348. #
  14349. case "x$archive_cmds_need_lc_CXX" in
  14350. x|xyes)
  14351. # Assume -lc should be added
  14352. archive_cmds_need_lc_CXX=yes
  14353. if test yes,yes = "$GCC,$enable_shared"; then
  14354. case $archive_cmds_CXX in
  14355. *'~'*)
  14356. # FIXME: we may have to deal with multi-command sequences.
  14357. ;;
  14358. '$CC '*)
  14359. # Test whether the compiler implicitly links with -lc since on some
  14360. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  14361. # to ld, don't add -lc before -lgcc.
  14362. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  14363. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  14364. if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
  14365. $as_echo_n "(cached) " >&6
  14366. else
  14367. $RM conftest*
  14368. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  14369. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  14370. (eval $ac_compile) 2>&5
  14371. ac_status=$?
  14372. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  14373. test $ac_status = 0; } 2>conftest.err; then
  14374. soname=conftest
  14375. lib=conftest
  14376. libobjs=conftest.$ac_objext
  14377. deplibs=
  14378. wl=$lt_prog_compiler_wl_CXX
  14379. pic_flag=$lt_prog_compiler_pic_CXX
  14380. compiler_flags=-v
  14381. linker_flags=-v
  14382. verstring=
  14383. output_objdir=.
  14384. libname=conftest
  14385. lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
  14386. allow_undefined_flag_CXX=
  14387. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  14388. (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  14389. ac_status=$?
  14390. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  14391. test $ac_status = 0; }
  14392. then
  14393. lt_cv_archive_cmds_need_lc_CXX=no
  14394. else
  14395. lt_cv_archive_cmds_need_lc_CXX=yes
  14396. fi
  14397. allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
  14398. else
  14399. cat conftest.err 1>&5
  14400. fi
  14401. $RM conftest*
  14402. fi
  14403. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
  14404. $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
  14405. archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
  14406. ;;
  14407. esac
  14408. fi
  14409. ;;
  14410. esac
  14411. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  14412. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  14413. library_names_spec=
  14414. libname_spec='lib$name'
  14415. soname_spec=
  14416. shrext_cmds=.so
  14417. postinstall_cmds=
  14418. postuninstall_cmds=
  14419. finish_cmds=
  14420. finish_eval=
  14421. shlibpath_var=
  14422. shlibpath_overrides_runpath=unknown
  14423. version_type=none
  14424. dynamic_linker="$host_os ld.so"
  14425. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  14426. need_lib_prefix=unknown
  14427. hardcode_into_libs=no
  14428. # when you set need_version to no, make sure it does not cause -set_version
  14429. # flags to be left without arguments
  14430. need_version=unknown
  14431. case $host_os in
  14432. aix3*)
  14433. version_type=linux # correct to gnu/linux during the next big refactor
  14434. library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
  14435. shlibpath_var=LIBPATH
  14436. # AIX 3 has no versioning support, so we append a major version to the name.
  14437. soname_spec='$libname$release$shared_ext$major'
  14438. ;;
  14439. aix[4-9]*)
  14440. version_type=linux # correct to gnu/linux during the next big refactor
  14441. need_lib_prefix=no
  14442. need_version=no
  14443. hardcode_into_libs=yes
  14444. if test ia64 = "$host_cpu"; then
  14445. # AIX 5 supports IA64
  14446. library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
  14447. shlibpath_var=LD_LIBRARY_PATH
  14448. else
  14449. # With GCC up to 2.95.x, collect2 would create an import file
  14450. # for dependence libraries. The import file would start with
  14451. # the line '#! .'. This would cause the generated library to
  14452. # depend on '.', always an invalid library. This was fixed in
  14453. # development snapshots of GCC prior to 3.0.
  14454. case $host_os in
  14455. aix4 | aix4.[01] | aix4.[01].*)
  14456. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  14457. echo ' yes '
  14458. echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
  14459. :
  14460. else
  14461. can_build_shared=no
  14462. fi
  14463. ;;
  14464. esac
  14465. # Using Import Files as archive members, it is possible to support
  14466. # filename-based versioning of shared library archives on AIX. While
  14467. # this would work for both with and without runtime linking, it will
  14468. # prevent static linking of such archives. So we do filename-based
  14469. # shared library versioning with .so extension only, which is used
  14470. # when both runtime linking and shared linking is enabled.
  14471. # Unfortunately, runtime linking may impact performance, so we do
  14472. # not want this to be the default eventually. Also, we use the
  14473. # versioned .so libs for executables only if there is the -brtl
  14474. # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
  14475. # To allow for filename-based versioning support, we need to create
  14476. # libNAME.so.V as an archive file, containing:
  14477. # *) an Import File, referring to the versioned filename of the
  14478. # archive as well as the shared archive member, telling the
  14479. # bitwidth (32 or 64) of that shared object, and providing the
  14480. # list of exported symbols of that shared object, eventually
  14481. # decorated with the 'weak' keyword
  14482. # *) the shared object with the F_LOADONLY flag set, to really avoid
  14483. # it being seen by the linker.
  14484. # At run time we better use the real file rather than another symlink,
  14485. # but for link time we create the symlink libNAME.so -> libNAME.so.V
  14486. case $with_aix_soname,$aix_use_runtimelinking in
  14487. # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
  14488. # soname into executable. Probably we can add versioning support to
  14489. # collect2, so additional links can be useful in future.
  14490. aix,yes) # traditional libtool
  14491. dynamic_linker='AIX unversionable lib.so'
  14492. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  14493. # instead of lib<name>.a to let people know that these are not
  14494. # typical AIX shared libraries.
  14495. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14496. ;;
  14497. aix,no) # traditional AIX only
  14498. dynamic_linker='AIX lib.a(lib.so.V)'
  14499. # We preserve .a as extension for shared libraries through AIX4.2
  14500. # and later when we are not doing run time linking.
  14501. library_names_spec='$libname$release.a $libname.a'
  14502. soname_spec='$libname$release$shared_ext$major'
  14503. ;;
  14504. svr4,*) # full svr4 only
  14505. dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
  14506. library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
  14507. # We do not specify a path in Import Files, so LIBPATH fires.
  14508. shlibpath_overrides_runpath=yes
  14509. ;;
  14510. *,yes) # both, prefer svr4
  14511. dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
  14512. library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
  14513. # unpreferred sharedlib libNAME.a needs extra handling
  14514. postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
  14515. postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
  14516. # We do not specify a path in Import Files, so LIBPATH fires.
  14517. shlibpath_overrides_runpath=yes
  14518. ;;
  14519. *,no) # both, prefer aix
  14520. dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
  14521. library_names_spec='$libname$release.a $libname.a'
  14522. soname_spec='$libname$release$shared_ext$major'
  14523. # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
  14524. postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
  14525. postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
  14526. ;;
  14527. esac
  14528. shlibpath_var=LIBPATH
  14529. fi
  14530. ;;
  14531. amigaos*)
  14532. case $host_cpu in
  14533. powerpc)
  14534. # Since July 2007 AmigaOS4 officially supports .so libraries.
  14535. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  14536. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14537. ;;
  14538. m68k)
  14539. library_names_spec='$libname.ixlibrary $libname.a'
  14540. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  14541. finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $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'
  14542. ;;
  14543. esac
  14544. ;;
  14545. beos*)
  14546. library_names_spec='$libname$shared_ext'
  14547. dynamic_linker="$host_os ld.so"
  14548. shlibpath_var=LIBRARY_PATH
  14549. ;;
  14550. bsdi[45]*)
  14551. version_type=linux # correct to gnu/linux during the next big refactor
  14552. need_version=no
  14553. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14554. soname_spec='$libname$release$shared_ext$major'
  14555. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  14556. shlibpath_var=LD_LIBRARY_PATH
  14557. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  14558. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  14559. # the default ld.so.conf also contains /usr/contrib/lib and
  14560. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  14561. # libtool to hard-code these into programs
  14562. ;;
  14563. cygwin* | mingw* | pw32* | cegcc*)
  14564. version_type=windows
  14565. shrext_cmds=.dll
  14566. need_version=no
  14567. need_lib_prefix=no
  14568. case $GCC,$cc_basename in
  14569. yes,*)
  14570. # gcc
  14571. library_names_spec='$libname.dll.a'
  14572. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  14573. postinstall_cmds='base_file=`basename \$file`~
  14574. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
  14575. dldir=$destdir/`dirname \$dlpath`~
  14576. test -d \$dldir || mkdir -p \$dldir~
  14577. $install_prog $dir/$dlname \$dldir/$dlname~
  14578. chmod a+x \$dldir/$dlname~
  14579. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  14580. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  14581. fi'
  14582. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  14583. dlpath=$dir/\$dldll~
  14584. $RM \$dlpath'
  14585. shlibpath_overrides_runpath=yes
  14586. case $host_os in
  14587. cygwin*)
  14588. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  14589. soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  14590. ;;
  14591. mingw* | cegcc*)
  14592. # MinGW DLLs use traditional 'lib' prefix
  14593. soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  14594. ;;
  14595. pw32*)
  14596. # pw32 DLLs use 'pw' prefix rather than 'lib'
  14597. library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  14598. ;;
  14599. esac
  14600. dynamic_linker='Win32 ld.exe'
  14601. ;;
  14602. *,cl*)
  14603. # Native MSVC
  14604. libname_spec='$name'
  14605. soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  14606. library_names_spec='$libname.dll.lib'
  14607. case $build_os in
  14608. mingw*)
  14609. sys_lib_search_path_spec=
  14610. lt_save_ifs=$IFS
  14611. IFS=';'
  14612. for lt_path in $LIB
  14613. do
  14614. IFS=$lt_save_ifs
  14615. # Let DOS variable expansion print the short 8.3 style file name.
  14616. lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
  14617. sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
  14618. done
  14619. IFS=$lt_save_ifs
  14620. # Convert to MSYS style.
  14621. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
  14622. ;;
  14623. cygwin*)
  14624. # Convert to unix form, then to dos form, then back to unix form
  14625. # but this time dos style (no spaces!) so that the unix form looks
  14626. # like /cygdrive/c/PROGRA~1:/cygdr...
  14627. sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
  14628. sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
  14629. sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  14630. ;;
  14631. *)
  14632. sys_lib_search_path_spec=$LIB
  14633. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  14634. # It is most probably a Windows format PATH.
  14635. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  14636. else
  14637. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  14638. fi
  14639. # FIXME: find the short name or the path components, as spaces are
  14640. # common. (e.g. "Program Files" -> "PROGRA~1")
  14641. ;;
  14642. esac
  14643. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  14644. postinstall_cmds='base_file=`basename \$file`~
  14645. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
  14646. dldir=$destdir/`dirname \$dlpath`~
  14647. test -d \$dldir || mkdir -p \$dldir~
  14648. $install_prog $dir/$dlname \$dldir/$dlname'
  14649. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  14650. dlpath=$dir/\$dldll~
  14651. $RM \$dlpath'
  14652. shlibpath_overrides_runpath=yes
  14653. dynamic_linker='Win32 link.exe'
  14654. ;;
  14655. *)
  14656. # Assume MSVC wrapper
  14657. library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
  14658. dynamic_linker='Win32 ld.exe'
  14659. ;;
  14660. esac
  14661. # FIXME: first we should search . and the directory the executable is in
  14662. shlibpath_var=PATH
  14663. ;;
  14664. darwin* | rhapsody*)
  14665. dynamic_linker="$host_os dyld"
  14666. version_type=darwin
  14667. need_lib_prefix=no
  14668. need_version=no
  14669. library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
  14670. soname_spec='$libname$release$major$shared_ext'
  14671. shlibpath_overrides_runpath=yes
  14672. shlibpath_var=DYLD_LIBRARY_PATH
  14673. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  14674. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  14675. ;;
  14676. dgux*)
  14677. version_type=linux # correct to gnu/linux during the next big refactor
  14678. need_lib_prefix=no
  14679. need_version=no
  14680. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14681. soname_spec='$libname$release$shared_ext$major'
  14682. shlibpath_var=LD_LIBRARY_PATH
  14683. ;;
  14684. freebsd* | dragonfly*)
  14685. # DragonFly does not have aout. When/if they implement a new
  14686. # versioning mechanism, adjust this.
  14687. if test -x /usr/bin/objformat; then
  14688. objformat=`/usr/bin/objformat`
  14689. else
  14690. case $host_os in
  14691. freebsd[23].*) objformat=aout ;;
  14692. *) objformat=elf ;;
  14693. esac
  14694. fi
  14695. version_type=freebsd-$objformat
  14696. case $version_type in
  14697. freebsd-elf*)
  14698. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14699. soname_spec='$libname$release$shared_ext$major'
  14700. need_version=no
  14701. need_lib_prefix=no
  14702. ;;
  14703. freebsd-*)
  14704. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  14705. need_version=yes
  14706. ;;
  14707. esac
  14708. shlibpath_var=LD_LIBRARY_PATH
  14709. case $host_os in
  14710. freebsd2.*)
  14711. shlibpath_overrides_runpath=yes
  14712. ;;
  14713. freebsd3.[01]* | freebsdelf3.[01]*)
  14714. shlibpath_overrides_runpath=yes
  14715. hardcode_into_libs=yes
  14716. ;;
  14717. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  14718. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  14719. shlibpath_overrides_runpath=no
  14720. hardcode_into_libs=yes
  14721. ;;
  14722. *) # from 4.6 on, and DragonFly
  14723. shlibpath_overrides_runpath=yes
  14724. hardcode_into_libs=yes
  14725. ;;
  14726. esac
  14727. ;;
  14728. haiku*)
  14729. version_type=linux # correct to gnu/linux during the next big refactor
  14730. need_lib_prefix=no
  14731. need_version=no
  14732. dynamic_linker="$host_os runtime_loader"
  14733. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14734. soname_spec='$libname$release$shared_ext$major'
  14735. shlibpath_var=LIBRARY_PATH
  14736. shlibpath_overrides_runpath=no
  14737. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
  14738. hardcode_into_libs=yes
  14739. ;;
  14740. hpux9* | hpux10* | hpux11*)
  14741. # Give a soname corresponding to the major version so that dld.sl refuses to
  14742. # link against other versions.
  14743. version_type=sunos
  14744. need_lib_prefix=no
  14745. need_version=no
  14746. case $host_cpu in
  14747. ia64*)
  14748. shrext_cmds='.so'
  14749. hardcode_into_libs=yes
  14750. dynamic_linker="$host_os dld.so"
  14751. shlibpath_var=LD_LIBRARY_PATH
  14752. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  14753. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14754. soname_spec='$libname$release$shared_ext$major'
  14755. if test 32 = "$HPUX_IA64_MODE"; then
  14756. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  14757. sys_lib_dlsearch_path_spec=/usr/lib/hpux32
  14758. else
  14759. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  14760. sys_lib_dlsearch_path_spec=/usr/lib/hpux64
  14761. fi
  14762. ;;
  14763. hppa*64*)
  14764. shrext_cmds='.sl'
  14765. hardcode_into_libs=yes
  14766. dynamic_linker="$host_os dld.sl"
  14767. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  14768. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  14769. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14770. soname_spec='$libname$release$shared_ext$major'
  14771. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  14772. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  14773. ;;
  14774. *)
  14775. shrext_cmds='.sl'
  14776. dynamic_linker="$host_os dld.sl"
  14777. shlibpath_var=SHLIB_PATH
  14778. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  14779. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14780. soname_spec='$libname$release$shared_ext$major'
  14781. ;;
  14782. esac
  14783. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  14784. postinstall_cmds='chmod 555 $lib'
  14785. # or fails outright, so override atomically:
  14786. install_override_mode=555
  14787. ;;
  14788. interix[3-9]*)
  14789. version_type=linux # correct to gnu/linux during the next big refactor
  14790. need_lib_prefix=no
  14791. need_version=no
  14792. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14793. soname_spec='$libname$release$shared_ext$major'
  14794. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  14795. shlibpath_var=LD_LIBRARY_PATH
  14796. shlibpath_overrides_runpath=no
  14797. hardcode_into_libs=yes
  14798. ;;
  14799. irix5* | irix6* | nonstopux*)
  14800. case $host_os in
  14801. nonstopux*) version_type=nonstopux ;;
  14802. *)
  14803. if test yes = "$lt_cv_prog_gnu_ld"; then
  14804. version_type=linux # correct to gnu/linux during the next big refactor
  14805. else
  14806. version_type=irix
  14807. fi ;;
  14808. esac
  14809. need_lib_prefix=no
  14810. need_version=no
  14811. soname_spec='$libname$release$shared_ext$major'
  14812. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
  14813. case $host_os in
  14814. irix5* | nonstopux*)
  14815. libsuff= shlibsuff=
  14816. ;;
  14817. *)
  14818. case $LD in # libtool.m4 will add one of these switches to LD
  14819. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  14820. libsuff= shlibsuff= libmagic=32-bit;;
  14821. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  14822. libsuff=32 shlibsuff=N32 libmagic=N32;;
  14823. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  14824. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  14825. *) libsuff= shlibsuff= libmagic=never-match;;
  14826. esac
  14827. ;;
  14828. esac
  14829. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  14830. shlibpath_overrides_runpath=no
  14831. sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
  14832. sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
  14833. hardcode_into_libs=yes
  14834. ;;
  14835. # No shared lib support for Linux oldld, aout, or coff.
  14836. linux*oldld* | linux*aout* | linux*coff*)
  14837. dynamic_linker=no
  14838. ;;
  14839. linux*android*)
  14840. version_type=none # Android doesn't support versioned libraries.
  14841. need_lib_prefix=no
  14842. need_version=no
  14843. library_names_spec='$libname$release$shared_ext'
  14844. soname_spec='$libname$release$shared_ext'
  14845. finish_cmds=
  14846. shlibpath_var=LD_LIBRARY_PATH
  14847. shlibpath_overrides_runpath=yes
  14848. # This implies no fast_install, which is unacceptable.
  14849. # Some rework will be needed to allow for fast_install
  14850. # before this can be enabled.
  14851. hardcode_into_libs=yes
  14852. dynamic_linker='Android linker'
  14853. # Don't embed -rpath directories since the linker doesn't support them.
  14854. hardcode_libdir_flag_spec_CXX='-L$libdir'
  14855. ;;
  14856. # This must be glibc/ELF.
  14857. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  14858. version_type=linux # correct to gnu/linux during the next big refactor
  14859. need_lib_prefix=no
  14860. need_version=no
  14861. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14862. soname_spec='$libname$release$shared_ext$major'
  14863. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  14864. shlibpath_var=LD_LIBRARY_PATH
  14865. shlibpath_overrides_runpath=no
  14866. # Some binutils ld are patched to set DT_RUNPATH
  14867. if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
  14868. $as_echo_n "(cached) " >&6
  14869. else
  14870. lt_cv_shlibpath_overrides_runpath=no
  14871. save_LDFLAGS=$LDFLAGS
  14872. save_libdir=$libdir
  14873. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
  14874. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
  14875. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14876. /* end confdefs.h. */
  14877. int
  14878. main ()
  14879. {
  14880. ;
  14881. return 0;
  14882. }
  14883. _ACEOF
  14884. if ac_fn_cxx_try_link "$LINENO"; then :
  14885. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  14886. lt_cv_shlibpath_overrides_runpath=yes
  14887. fi
  14888. fi
  14889. rm -f core conftest.err conftest.$ac_objext \
  14890. conftest$ac_exeext conftest.$ac_ext
  14891. LDFLAGS=$save_LDFLAGS
  14892. libdir=$save_libdir
  14893. fi
  14894. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  14895. # This implies no fast_install, which is unacceptable.
  14896. # Some rework will be needed to allow for fast_install
  14897. # before this can be enabled.
  14898. hardcode_into_libs=yes
  14899. # Ideally, we could use ldconfig to report *all* directores which are
  14900. # searched for libraries, however this is still not possible. Aside from not
  14901. # being certain /sbin/ldconfig is available, command
  14902. # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
  14903. # even though it is searched at run-time. Try to do the best guess by
  14904. # appending ld.so.conf contents (and includes) to the search path.
  14905. if test -f /etc/ld.so.conf; then
  14906. 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' ' '`
  14907. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  14908. fi
  14909. # We used to test for /lib/ld.so.1 and disable shared libraries on
  14910. # powerpc, because MkLinux only supported shared libraries with the
  14911. # GNU dynamic linker. Since this was broken with cross compilers,
  14912. # most powerpc-linux boxes support dynamic linking these days and
  14913. # people can always --disable-shared, the test was removed, and we
  14914. # assume the GNU/Linux dynamic linker is in use.
  14915. dynamic_linker='GNU/Linux ld.so'
  14916. ;;
  14917. netbsdelf*-gnu)
  14918. version_type=linux
  14919. need_lib_prefix=no
  14920. need_version=no
  14921. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  14922. soname_spec='${libname}${release}${shared_ext}$major'
  14923. shlibpath_var=LD_LIBRARY_PATH
  14924. shlibpath_overrides_runpath=no
  14925. hardcode_into_libs=yes
  14926. dynamic_linker='NetBSD ld.elf_so'
  14927. ;;
  14928. netbsd*)
  14929. version_type=sunos
  14930. need_lib_prefix=no
  14931. need_version=no
  14932. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  14933. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  14934. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  14935. dynamic_linker='NetBSD (a.out) ld.so'
  14936. else
  14937. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14938. soname_spec='$libname$release$shared_ext$major'
  14939. dynamic_linker='NetBSD ld.elf_so'
  14940. fi
  14941. shlibpath_var=LD_LIBRARY_PATH
  14942. shlibpath_overrides_runpath=yes
  14943. hardcode_into_libs=yes
  14944. ;;
  14945. newsos6)
  14946. version_type=linux # correct to gnu/linux during the next big refactor
  14947. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14948. shlibpath_var=LD_LIBRARY_PATH
  14949. shlibpath_overrides_runpath=yes
  14950. ;;
  14951. *nto* | *qnx*)
  14952. version_type=qnx
  14953. need_lib_prefix=no
  14954. need_version=no
  14955. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14956. soname_spec='$libname$release$shared_ext$major'
  14957. shlibpath_var=LD_LIBRARY_PATH
  14958. shlibpath_overrides_runpath=no
  14959. hardcode_into_libs=yes
  14960. dynamic_linker='ldqnx.so'
  14961. ;;
  14962. openbsd* | bitrig*)
  14963. version_type=sunos
  14964. sys_lib_dlsearch_path_spec=/usr/lib
  14965. need_lib_prefix=no
  14966. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
  14967. need_version=no
  14968. else
  14969. need_version=yes
  14970. fi
  14971. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  14972. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  14973. shlibpath_var=LD_LIBRARY_PATH
  14974. shlibpath_overrides_runpath=yes
  14975. ;;
  14976. os2*)
  14977. libname_spec='$name'
  14978. version_type=windows
  14979. shrext_cmds=.dll
  14980. need_version=no
  14981. need_lib_prefix=no
  14982. # OS/2 can only load a DLL with a base name of 8 characters or less.
  14983. soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
  14984. v=$($ECHO $release$versuffix | tr -d .-);
  14985. n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
  14986. $ECHO $n$v`$shared_ext'
  14987. library_names_spec='${libname}_dll.$libext'
  14988. dynamic_linker='OS/2 ld.exe'
  14989. shlibpath_var=BEGINLIBPATH
  14990. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  14991. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  14992. postinstall_cmds='base_file=`basename \$file`~
  14993. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
  14994. dldir=$destdir/`dirname \$dlpath`~
  14995. test -d \$dldir || mkdir -p \$dldir~
  14996. $install_prog $dir/$dlname \$dldir/$dlname~
  14997. chmod a+x \$dldir/$dlname~
  14998. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  14999. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  15000. fi'
  15001. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
  15002. dlpath=$dir/\$dldll~
  15003. $RM \$dlpath'
  15004. ;;
  15005. osf3* | osf4* | osf5*)
  15006. version_type=osf
  15007. need_lib_prefix=no
  15008. need_version=no
  15009. soname_spec='$libname$release$shared_ext$major'
  15010. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  15011. shlibpath_var=LD_LIBRARY_PATH
  15012. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  15013. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  15014. ;;
  15015. rdos*)
  15016. dynamic_linker=no
  15017. ;;
  15018. solaris*)
  15019. version_type=linux # correct to gnu/linux during the next big refactor
  15020. need_lib_prefix=no
  15021. need_version=no
  15022. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  15023. soname_spec='$libname$release$shared_ext$major'
  15024. shlibpath_var=LD_LIBRARY_PATH
  15025. shlibpath_overrides_runpath=yes
  15026. hardcode_into_libs=yes
  15027. # ldd complains unless libraries are executable
  15028. postinstall_cmds='chmod +x $lib'
  15029. ;;
  15030. sunos4*)
  15031. version_type=sunos
  15032. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  15033. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  15034. shlibpath_var=LD_LIBRARY_PATH
  15035. shlibpath_overrides_runpath=yes
  15036. if test yes = "$with_gnu_ld"; then
  15037. need_lib_prefix=no
  15038. fi
  15039. need_version=yes
  15040. ;;
  15041. sysv4 | sysv4.3*)
  15042. version_type=linux # correct to gnu/linux during the next big refactor
  15043. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  15044. soname_spec='$libname$release$shared_ext$major'
  15045. shlibpath_var=LD_LIBRARY_PATH
  15046. case $host_vendor in
  15047. sni)
  15048. shlibpath_overrides_runpath=no
  15049. need_lib_prefix=no
  15050. runpath_var=LD_RUN_PATH
  15051. ;;
  15052. siemens)
  15053. need_lib_prefix=no
  15054. ;;
  15055. motorola)
  15056. need_lib_prefix=no
  15057. need_version=no
  15058. shlibpath_overrides_runpath=no
  15059. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  15060. ;;
  15061. esac
  15062. ;;
  15063. sysv4*MP*)
  15064. if test -d /usr/nec; then
  15065. version_type=linux # correct to gnu/linux during the next big refactor
  15066. library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
  15067. soname_spec='$libname$shared_ext.$major'
  15068. shlibpath_var=LD_LIBRARY_PATH
  15069. fi
  15070. ;;
  15071. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  15072. version_type=sco
  15073. need_lib_prefix=no
  15074. need_version=no
  15075. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
  15076. soname_spec='$libname$release$shared_ext$major'
  15077. shlibpath_var=LD_LIBRARY_PATH
  15078. shlibpath_overrides_runpath=yes
  15079. hardcode_into_libs=yes
  15080. if test yes = "$with_gnu_ld"; then
  15081. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  15082. else
  15083. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  15084. case $host_os in
  15085. sco3.2v5*)
  15086. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  15087. ;;
  15088. esac
  15089. fi
  15090. sys_lib_dlsearch_path_spec='/usr/lib'
  15091. ;;
  15092. tpf*)
  15093. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  15094. version_type=linux # correct to gnu/linux during the next big refactor
  15095. need_lib_prefix=no
  15096. need_version=no
  15097. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  15098. shlibpath_var=LD_LIBRARY_PATH
  15099. shlibpath_overrides_runpath=no
  15100. hardcode_into_libs=yes
  15101. ;;
  15102. uts4*)
  15103. version_type=linux # correct to gnu/linux during the next big refactor
  15104. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  15105. soname_spec='$libname$release$shared_ext$major'
  15106. shlibpath_var=LD_LIBRARY_PATH
  15107. ;;
  15108. *)
  15109. dynamic_linker=no
  15110. ;;
  15111. esac
  15112. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  15113. $as_echo "$dynamic_linker" >&6; }
  15114. test no = "$dynamic_linker" && can_build_shared=no
  15115. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  15116. if test yes = "$GCC"; then
  15117. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  15118. fi
  15119. if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
  15120. sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
  15121. fi
  15122. if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
  15123. sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
  15124. fi
  15125. # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
  15126. configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
  15127. # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
  15128. func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
  15129. # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
  15130. configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
  15131. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  15132. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  15133. hardcode_action_CXX=
  15134. if test -n "$hardcode_libdir_flag_spec_CXX" ||
  15135. test -n "$runpath_var_CXX" ||
  15136. test yes = "$hardcode_automatic_CXX"; then
  15137. # We can hardcode non-existent directories.
  15138. if test no != "$hardcode_direct_CXX" &&
  15139. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  15140. # have to relink, otherwise we might link with an installed library
  15141. # when we should be linking with a yet-to-be-installed one
  15142. ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" &&
  15143. test no != "$hardcode_minus_L_CXX"; then
  15144. # Linking always hardcodes the temporary library directory.
  15145. hardcode_action_CXX=relink
  15146. else
  15147. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  15148. hardcode_action_CXX=immediate
  15149. fi
  15150. else
  15151. # We cannot hardcode anything, or else we can only hardcode existing
  15152. # directories.
  15153. hardcode_action_CXX=unsupported
  15154. fi
  15155. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
  15156. $as_echo "$hardcode_action_CXX" >&6; }
  15157. if test relink = "$hardcode_action_CXX" ||
  15158. test yes = "$inherit_rpath_CXX"; then
  15159. # Fast installation is not supported
  15160. enable_fast_install=no
  15161. elif test yes = "$shlibpath_overrides_runpath" ||
  15162. test no = "$enable_shared"; then
  15163. # Fast installation is not necessary
  15164. enable_fast_install=needless
  15165. fi
  15166. fi # test -n "$compiler"
  15167. CC=$lt_save_CC
  15168. CFLAGS=$lt_save_CFLAGS
  15169. LDCXX=$LD
  15170. LD=$lt_save_LD
  15171. GCC=$lt_save_GCC
  15172. with_gnu_ld=$lt_save_with_gnu_ld
  15173. lt_cv_path_LDCXX=$lt_cv_path_LD
  15174. lt_cv_path_LD=$lt_save_path_LD
  15175. lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
  15176. lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
  15177. fi # test yes != "$_lt_caught_CXX_error"
  15178. ac_ext=c
  15179. ac_cpp='$CPP $CPPFLAGS'
  15180. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  15181. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  15182. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  15183. ac_config_commands="$ac_config_commands libtool"
  15184. # Only expand once:
  15185. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__" >&5
  15186. $as_echo_n "checking for __attribute__... " >&6; }
  15187. if ${ac_cv___attribute__+:} false; then :
  15188. $as_echo_n "(cached) " >&6
  15189. else
  15190. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15191. /* end confdefs.h. */
  15192. #include <stdlib.h>
  15193. static void foo(void) __attribute__ ((unused));
  15194. void foo(void) { exit(1); }
  15195. int
  15196. main ()
  15197. {
  15198. ;
  15199. return 0;
  15200. }
  15201. _ACEOF
  15202. if ac_fn_c_try_compile "$LINENO"; then :
  15203. ac_cv___attribute__=yes
  15204. else
  15205. ac_cv___attribute__=no
  15206. fi
  15207. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15208. fi
  15209. if test "$ac_cv___attribute__" = "yes"; then
  15210. $as_echo "#define HAVE___ATTRIBUTE__ 1" >>confdefs.h
  15211. fi
  15212. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv___attribute__" >&5
  15213. $as_echo "$ac_cv___attribute__" >&6; }
  15214. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__((aligned(N))) on functions" >&5
  15215. $as_echo_n "checking for __attribute__((aligned(N))) on functions... " >&6; }
  15216. if ${ac_cv___attribute__aligned_fn+:} false; then :
  15217. $as_echo_n "(cached) " >&6
  15218. else
  15219. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15220. /* end confdefs.h. */
  15221. #include <stdlib.h>
  15222. void foo(void) __attribute__((aligned(128)));
  15223. void foo(void) { exit(1); }
  15224. int
  15225. main ()
  15226. {
  15227. ;
  15228. return 0;
  15229. }
  15230. _ACEOF
  15231. if ac_fn_c_try_compile "$LINENO"; then :
  15232. ac_cv___attribute__aligned_fn=yes
  15233. else
  15234. ac_cv___attribute__aligned_fn=no
  15235. fi
  15236. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15237. fi
  15238. if test "$ac_cv___attribute__aligned_fn" = "yes"; then
  15239. $as_echo "#define HAVE___ATTRIBUTE__ALIGNED_FN 1" >>confdefs.h
  15240. fi
  15241. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv___attribute__aligned_fn" >&5
  15242. $as_echo "$ac_cv___attribute__aligned_fn" >&6; }
  15243. # Check whether some low-level functions/files are available
  15244. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  15245. $as_echo_n "checking for ANSI C header files... " >&6; }
  15246. if ${ac_cv_header_stdc+:} false; then :
  15247. $as_echo_n "(cached) " >&6
  15248. else
  15249. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15250. /* end confdefs.h. */
  15251. #include <stdlib.h>
  15252. #include <stdarg.h>
  15253. #include <string.h>
  15254. #include <float.h>
  15255. int
  15256. main ()
  15257. {
  15258. ;
  15259. return 0;
  15260. }
  15261. _ACEOF
  15262. if ac_fn_c_try_compile "$LINENO"; then :
  15263. ac_cv_header_stdc=yes
  15264. else
  15265. ac_cv_header_stdc=no
  15266. fi
  15267. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15268. if test $ac_cv_header_stdc = yes; then
  15269. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  15270. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15271. /* end confdefs.h. */
  15272. #include <string.h>
  15273. _ACEOF
  15274. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  15275. $EGREP "memchr" >/dev/null 2>&1; then :
  15276. else
  15277. ac_cv_header_stdc=no
  15278. fi
  15279. rm -f conftest*
  15280. fi
  15281. if test $ac_cv_header_stdc = yes; then
  15282. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  15283. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15284. /* end confdefs.h. */
  15285. #include <stdlib.h>
  15286. _ACEOF
  15287. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  15288. $EGREP "free" >/dev/null 2>&1; then :
  15289. else
  15290. ac_cv_header_stdc=no
  15291. fi
  15292. rm -f conftest*
  15293. fi
  15294. if test $ac_cv_header_stdc = yes; then
  15295. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  15296. if test "$cross_compiling" = yes; then :
  15297. :
  15298. else
  15299. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15300. /* end confdefs.h. */
  15301. #include <ctype.h>
  15302. #include <stdlib.h>
  15303. #if ((' ' & 0x0FF) == 0x020)
  15304. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  15305. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  15306. #else
  15307. # define ISLOWER(c) \
  15308. (('a' <= (c) && (c) <= 'i') \
  15309. || ('j' <= (c) && (c) <= 'r') \
  15310. || ('s' <= (c) && (c) <= 'z'))
  15311. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  15312. #endif
  15313. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  15314. int
  15315. main ()
  15316. {
  15317. int i;
  15318. for (i = 0; i < 256; i++)
  15319. if (XOR (islower (i), ISLOWER (i))
  15320. || toupper (i) != TOUPPER (i))
  15321. return 2;
  15322. return 0;
  15323. }
  15324. _ACEOF
  15325. if ac_fn_c_try_run "$LINENO"; then :
  15326. else
  15327. ac_cv_header_stdc=no
  15328. fi
  15329. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  15330. conftest.$ac_objext conftest.beam conftest.$ac_ext
  15331. fi
  15332. fi
  15333. fi
  15334. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  15335. $as_echo "$ac_cv_header_stdc" >&6; }
  15336. if test $ac_cv_header_stdc = yes; then
  15337. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  15338. fi
  15339. # TODO(csilvers): we could remove a lot when WITH_CPU_PROFILER etc is "no".
  15340. ac_fn_c_check_type "$LINENO" "struct mallinfo" "ac_cv_type_struct_mallinfo" "#include <malloc.h>
  15341. "
  15342. if test "x$ac_cv_type_struct_mallinfo" = xyes; then :
  15343. cat >>confdefs.h <<_ACEOF
  15344. #define HAVE_STRUCT_MALLINFO 1
  15345. _ACEOF
  15346. fi
  15347. ac_fn_c_check_type "$LINENO" "Elf32_Versym" "ac_cv_type_Elf32_Versym" "#include <elf.h>
  15348. "
  15349. if test "x$ac_cv_type_Elf32_Versym" = xyes; then :
  15350. cat >>confdefs.h <<_ACEOF
  15351. #define HAVE_ELF32_VERSYM 1
  15352. _ACEOF
  15353. fi
  15354. # for vdso_support.h
  15355. for ac_func in sbrk
  15356. do :
  15357. ac_fn_c_check_func "$LINENO" "sbrk" "ac_cv_func_sbrk"
  15358. if test "x$ac_cv_func_sbrk" = xyes; then :
  15359. cat >>confdefs.h <<_ACEOF
  15360. #define HAVE_SBRK 1
  15361. _ACEOF
  15362. fi
  15363. done
  15364. # for tcmalloc to get memory
  15365. for ac_func in __sbrk
  15366. do :
  15367. ac_fn_c_check_func "$LINENO" "__sbrk" "ac_cv_func___sbrk"
  15368. if test "x$ac_cv_func___sbrk" = xyes; then :
  15369. cat >>confdefs.h <<_ACEOF
  15370. #define HAVE___SBRK 1
  15371. _ACEOF
  15372. fi
  15373. done
  15374. # for tcmalloc to get memory
  15375. for ac_func in geteuid
  15376. do :
  15377. ac_fn_c_check_func "$LINENO" "geteuid" "ac_cv_func_geteuid"
  15378. if test "x$ac_cv_func_geteuid" = xyes; then :
  15379. cat >>confdefs.h <<_ACEOF
  15380. #define HAVE_GETEUID 1
  15381. _ACEOF
  15382. fi
  15383. done
  15384. # for turning off services when run as root
  15385. for ac_func in fork
  15386. do :
  15387. ac_fn_c_check_func "$LINENO" "fork" "ac_cv_func_fork"
  15388. if test "x$ac_cv_func_fork" = xyes; then :
  15389. cat >>confdefs.h <<_ACEOF
  15390. #define HAVE_FORK 1
  15391. _ACEOF
  15392. fi
  15393. done
  15394. # for the pthread_atfork setup
  15395. for ac_header in features.h
  15396. do :
  15397. ac_fn_c_check_header_mongrel "$LINENO" "features.h" "ac_cv_header_features_h" "$ac_includes_default"
  15398. if test "x$ac_cv_header_features_h" = xyes; then :
  15399. cat >>confdefs.h <<_ACEOF
  15400. #define HAVE_FEATURES_H 1
  15401. _ACEOF
  15402. fi
  15403. done
  15404. # for vdso_support.h, __GLIBC__ macros
  15405. for ac_header in malloc.h
  15406. do :
  15407. ac_fn_c_check_header_mongrel "$LINENO" "malloc.h" "ac_cv_header_malloc_h" "$ac_includes_default"
  15408. if test "x$ac_cv_header_malloc_h" = xyes; then :
  15409. cat >>confdefs.h <<_ACEOF
  15410. #define HAVE_MALLOC_H 1
  15411. _ACEOF
  15412. fi
  15413. done
  15414. # some systems define stuff there, others not
  15415. for ac_header in glob.h
  15416. do :
  15417. ac_fn_c_check_header_mongrel "$LINENO" "glob.h" "ac_cv_header_glob_h" "$ac_includes_default"
  15418. if test "x$ac_cv_header_glob_h" = xyes; then :
  15419. cat >>confdefs.h <<_ACEOF
  15420. #define HAVE_GLOB_H 1
  15421. _ACEOF
  15422. fi
  15423. done
  15424. # for heap-profile-table (cleaning up profiles)
  15425. for ac_header in execinfo.h
  15426. do :
  15427. ac_fn_c_check_header_mongrel "$LINENO" "execinfo.h" "ac_cv_header_execinfo_h" "$ac_includes_default"
  15428. if test "x$ac_cv_header_execinfo_h" = xyes; then :
  15429. cat >>confdefs.h <<_ACEOF
  15430. #define HAVE_EXECINFO_H 1
  15431. _ACEOF
  15432. fi
  15433. done
  15434. # for stacktrace? and heapchecker_unittest
  15435. for ac_header in unwind.h
  15436. do :
  15437. ac_fn_c_check_header_mongrel "$LINENO" "unwind.h" "ac_cv_header_unwind_h" "$ac_includes_default"
  15438. if test "x$ac_cv_header_unwind_h" = xyes; then :
  15439. cat >>confdefs.h <<_ACEOF
  15440. #define HAVE_UNWIND_H 1
  15441. _ACEOF
  15442. fi
  15443. done
  15444. # for stacktrace
  15445. for ac_header in sched.h
  15446. do :
  15447. ac_fn_c_check_header_mongrel "$LINENO" "sched.h" "ac_cv_header_sched_h" "$ac_includes_default"
  15448. if test "x$ac_cv_header_sched_h" = xyes; then :
  15449. cat >>confdefs.h <<_ACEOF
  15450. #define HAVE_SCHED_H 1
  15451. _ACEOF
  15452. fi
  15453. done
  15454. # for being nice in our spinlock code
  15455. for ac_header in conflict-signal.h
  15456. do :
  15457. ac_fn_c_check_header_mongrel "$LINENO" "conflict-signal.h" "ac_cv_header_conflict_signal_h" "$ac_includes_default"
  15458. if test "x$ac_cv_header_conflict_signal_h" = xyes; then :
  15459. cat >>confdefs.h <<_ACEOF
  15460. #define HAVE_CONFLICT_SIGNAL_H 1
  15461. _ACEOF
  15462. fi
  15463. done
  15464. # defined on some windows platforms?
  15465. for ac_header in sys/prctl.h
  15466. do :
  15467. ac_fn_c_check_header_mongrel "$LINENO" "sys/prctl.h" "ac_cv_header_sys_prctl_h" "$ac_includes_default"
  15468. if test "x$ac_cv_header_sys_prctl_h" = xyes; then :
  15469. cat >>confdefs.h <<_ACEOF
  15470. #define HAVE_SYS_PRCTL_H 1
  15471. _ACEOF
  15472. fi
  15473. done
  15474. # for thread_lister (needed by leak-checker)
  15475. for ac_header in linux/ptrace.h
  15476. do :
  15477. ac_fn_c_check_header_mongrel "$LINENO" "linux/ptrace.h" "ac_cv_header_linux_ptrace_h" "$ac_includes_default"
  15478. if test "x$ac_cv_header_linux_ptrace_h" = xyes; then :
  15479. cat >>confdefs.h <<_ACEOF
  15480. #define HAVE_LINUX_PTRACE_H 1
  15481. _ACEOF
  15482. fi
  15483. done
  15484. # also needed by leak-checker
  15485. for ac_header in sys/syscall.h
  15486. do :
  15487. ac_fn_c_check_header_mongrel "$LINENO" "sys/syscall.h" "ac_cv_header_sys_syscall_h" "$ac_includes_default"
  15488. if test "x$ac_cv_header_sys_syscall_h" = xyes; then :
  15489. cat >>confdefs.h <<_ACEOF
  15490. #define HAVE_SYS_SYSCALL_H 1
  15491. _ACEOF
  15492. fi
  15493. done
  15494. for ac_header in sys/socket.h
  15495. do :
  15496. ac_fn_c_check_header_mongrel "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$ac_includes_default"
  15497. if test "x$ac_cv_header_sys_socket_h" = xyes; then :
  15498. cat >>confdefs.h <<_ACEOF
  15499. #define HAVE_SYS_SOCKET_H 1
  15500. _ACEOF
  15501. fi
  15502. done
  15503. # optional; for forking out to symbolizer
  15504. for ac_header in sys/wait.h
  15505. do :
  15506. ac_fn_c_check_header_mongrel "$LINENO" "sys/wait.h" "ac_cv_header_sys_wait_h" "$ac_includes_default"
  15507. if test "x$ac_cv_header_sys_wait_h" = xyes; then :
  15508. cat >>confdefs.h <<_ACEOF
  15509. #define HAVE_SYS_WAIT_H 1
  15510. _ACEOF
  15511. fi
  15512. done
  15513. # optional; for forking out to symbolizer
  15514. for ac_header in poll.h
  15515. do :
  15516. ac_fn_c_check_header_mongrel "$LINENO" "poll.h" "ac_cv_header_poll_h" "$ac_includes_default"
  15517. if test "x$ac_cv_header_poll_h" = xyes; then :
  15518. cat >>confdefs.h <<_ACEOF
  15519. #define HAVE_POLL_H 1
  15520. _ACEOF
  15521. fi
  15522. done
  15523. # optional; for forking out to symbolizer
  15524. for ac_header in fcntl.h
  15525. do :
  15526. ac_fn_c_check_header_mongrel "$LINENO" "fcntl.h" "ac_cv_header_fcntl_h" "$ac_includes_default"
  15527. if test "x$ac_cv_header_fcntl_h" = xyes; then :
  15528. cat >>confdefs.h <<_ACEOF
  15529. #define HAVE_FCNTL_H 1
  15530. _ACEOF
  15531. fi
  15532. done
  15533. # for tcmalloc_unittest
  15534. for ac_header in grp.h
  15535. do :
  15536. ac_fn_c_check_header_mongrel "$LINENO" "grp.h" "ac_cv_header_grp_h" "$ac_includes_default"
  15537. if test "x$ac_cv_header_grp_h" = xyes; then :
  15538. cat >>confdefs.h <<_ACEOF
  15539. #define HAVE_GRP_H 1
  15540. _ACEOF
  15541. fi
  15542. done
  15543. # for heapchecker_unittest
  15544. for ac_header in pwd.h
  15545. do :
  15546. ac_fn_c_check_header_mongrel "$LINENO" "pwd.h" "ac_cv_header_pwd_h" "$ac_includes_default"
  15547. if test "x$ac_cv_header_pwd_h" = xyes; then :
  15548. cat >>confdefs.h <<_ACEOF
  15549. #define HAVE_PWD_H 1
  15550. _ACEOF
  15551. fi
  15552. done
  15553. # for heapchecker_unittest
  15554. for ac_header in sys/resource.h
  15555. do :
  15556. ac_fn_c_check_header_mongrel "$LINENO" "sys/resource.h" "ac_cv_header_sys_resource_h" "$ac_includes_default"
  15557. if test "x$ac_cv_header_sys_resource_h" = xyes; then :
  15558. cat >>confdefs.h <<_ACEOF
  15559. #define HAVE_SYS_RESOURCE_H 1
  15560. _ACEOF
  15561. fi
  15562. done
  15563. # for memalign_unittest.cc
  15564. for ac_header in sys/cdefs.h
  15565. do :
  15566. ac_fn_c_check_header_mongrel "$LINENO" "sys/cdefs.h" "ac_cv_header_sys_cdefs_h" "$ac_includes_default"
  15567. if test "x$ac_cv_header_sys_cdefs_h" = xyes; then :
  15568. cat >>confdefs.h <<_ACEOF
  15569. #define HAVE_SYS_CDEFS_H 1
  15570. _ACEOF
  15571. fi
  15572. done
  15573. # Where glibc defines __THROW
  15574. # We also need <ucontext.h>/<sys/ucontext.h>, but we get those from
  15575. # AC_PC_FROM_UCONTEXT, below.
  15576. # We override a lot of memory allocation routines, not all of which are
  15577. # standard. For those the system doesn't declare, we'll declare ourselves.
  15578. ac_fn_c_check_decl "$LINENO" "cfree" "ac_cv_have_decl_cfree" "#define _XOPEN_SOURCE 600
  15579. #include <stdlib.h>
  15580. #include <malloc.h>
  15581. "
  15582. if test "x$ac_cv_have_decl_cfree" = xyes; then :
  15583. ac_have_decl=1
  15584. else
  15585. ac_have_decl=0
  15586. fi
  15587. cat >>confdefs.h <<_ACEOF
  15588. #define HAVE_DECL_CFREE $ac_have_decl
  15589. _ACEOF
  15590. ac_fn_c_check_decl "$LINENO" "posix_memalign" "ac_cv_have_decl_posix_memalign" "#define _XOPEN_SOURCE 600
  15591. #include <stdlib.h>
  15592. #include <malloc.h>
  15593. "
  15594. if test "x$ac_cv_have_decl_posix_memalign" = xyes; then :
  15595. ac_have_decl=1
  15596. else
  15597. ac_have_decl=0
  15598. fi
  15599. cat >>confdefs.h <<_ACEOF
  15600. #define HAVE_DECL_POSIX_MEMALIGN $ac_have_decl
  15601. _ACEOF
  15602. ac_fn_c_check_decl "$LINENO" "memalign" "ac_cv_have_decl_memalign" "#define _XOPEN_SOURCE 600
  15603. #include <stdlib.h>
  15604. #include <malloc.h>
  15605. "
  15606. if test "x$ac_cv_have_decl_memalign" = xyes; then :
  15607. ac_have_decl=1
  15608. else
  15609. ac_have_decl=0
  15610. fi
  15611. cat >>confdefs.h <<_ACEOF
  15612. #define HAVE_DECL_MEMALIGN $ac_have_decl
  15613. _ACEOF
  15614. ac_fn_c_check_decl "$LINENO" "valloc" "ac_cv_have_decl_valloc" "#define _XOPEN_SOURCE 600
  15615. #include <stdlib.h>
  15616. #include <malloc.h>
  15617. "
  15618. if test "x$ac_cv_have_decl_valloc" = xyes; then :
  15619. ac_have_decl=1
  15620. else
  15621. ac_have_decl=0
  15622. fi
  15623. cat >>confdefs.h <<_ACEOF
  15624. #define HAVE_DECL_VALLOC $ac_have_decl
  15625. _ACEOF
  15626. ac_fn_c_check_decl "$LINENO" "pvalloc" "ac_cv_have_decl_pvalloc" "#define _XOPEN_SOURCE 600
  15627. #include <stdlib.h>
  15628. #include <malloc.h>
  15629. "
  15630. if test "x$ac_cv_have_decl_pvalloc" = xyes; then :
  15631. ac_have_decl=1
  15632. else
  15633. ac_have_decl=0
  15634. fi
  15635. cat >>confdefs.h <<_ACEOF
  15636. #define HAVE_DECL_PVALLOC $ac_have_decl
  15637. _ACEOF
  15638. if test "$ac_cv_type_struct_mallinfo" = yes; then
  15639. ac_cv_have_struct_mallinfo=1
  15640. # gperftools/tcmalloc.h needs this
  15641. else
  15642. ac_cv_have_struct_mallinfo=0
  15643. fi
  15644. # We hardcode HAVE_MMAP to 1. There are no interesting systems anymore
  15645. # without functional mmap. And our windows (except mingw) builds
  15646. # aren't using autoconf. So we keep HAVE_MMAP define, but only to
  15647. # distingush windows and rest.
  15648. case "$host" in
  15649. *-mingw*) default_emergency_malloc=no;;
  15650. *) default_emergency_malloc=yes
  15651. $as_echo "#define HAVE_MMAP 1" >>confdefs.h
  15652. esac
  15653. # If AtomicWord != Atomic32, we need to define two versions of all the
  15654. # atomicops functions. If they're the same, we want to define only one.
  15655. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if int32_t is the same type as intptr_t" >&5
  15656. $as_echo_n "checking if int32_t is the same type as intptr_t... " >&6; }
  15657. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15658. /* end confdefs.h. */
  15659. #include <stdint.h>
  15660. int
  15661. main ()
  15662. {
  15663. int32_t v1 = 0; intptr_t v2 = 0; return (&v1 - &v2)
  15664. ;
  15665. return 0;
  15666. }
  15667. _ACEOF
  15668. if ac_fn_c_try_compile "$LINENO"; then :
  15669. $as_echo "#define INT32_EQUALS_INTPTR 1" >>confdefs.h
  15670. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15671. $as_echo "yes" >&6; }
  15672. else
  15673. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15674. $as_echo "no" >&6; }
  15675. fi
  15676. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15677. # We want to access the "PC" (Program Counter) register from a struct
  15678. # ucontext. Every system has its own way of doing that. We try all the
  15679. # possibilities we know about. Note REG_PC should come first (REG_RIP
  15680. # is also defined on solaris, but does the wrong thing). But don't
  15681. # bother if we're not doing cpu-profiling.
  15682. # [*] means that we've not actually tested one of these systems
  15683. if test "$enable_cpu_profiler" = yes; then
  15684. for ac_header in ucontext.h
  15685. do :
  15686. ac_fn_c_check_header_mongrel "$LINENO" "ucontext.h" "ac_cv_header_ucontext_h" "$ac_includes_default"
  15687. if test "x$ac_cv_header_ucontext_h" = xyes; then :
  15688. cat >>confdefs.h <<_ACEOF
  15689. #define HAVE_UCONTEXT_H 1
  15690. _ACEOF
  15691. fi
  15692. done
  15693. # Redhat 7 has <sys/ucontext.h>, but it barfs if we #include it directly
  15694. # (this was fixed in later redhats). <ucontext.h> works fine, so use that.
  15695. if grep "Red Hat Linux release 7" /etc/redhat-release >/dev/null 2>&1; then
  15696. $as_echo "#define HAVE_SYS_UCONTEXT_H 0" >>confdefs.h
  15697. ac_cv_header_sys_ucontext_h=no
  15698. else
  15699. for ac_header in sys/ucontext.h
  15700. do :
  15701. ac_fn_c_check_header_mongrel "$LINENO" "sys/ucontext.h" "ac_cv_header_sys_ucontext_h" "$ac_includes_default"
  15702. if test "x$ac_cv_header_sys_ucontext_h" = xyes; then :
  15703. cat >>confdefs.h <<_ACEOF
  15704. #define HAVE_SYS_UCONTEXT_H 1
  15705. _ACEOF
  15706. fi
  15707. done
  15708. # ucontext on OS X 10.6 (at least)
  15709. fi
  15710. for ac_header in cygwin/signal.h
  15711. do :
  15712. ac_fn_c_check_header_mongrel "$LINENO" "cygwin/signal.h" "ac_cv_header_cygwin_signal_h" "$ac_includes_default"
  15713. if test "x$ac_cv_header_cygwin_signal_h" = xyes; then :
  15714. cat >>confdefs.h <<_ACEOF
  15715. #define HAVE_CYGWIN_SIGNAL_H 1
  15716. _ACEOF
  15717. fi
  15718. done
  15719. # ucontext on cywgin
  15720. for ac_header in asm/ptrace.h
  15721. do :
  15722. ac_fn_c_check_header_mongrel "$LINENO" "asm/ptrace.h" "ac_cv_header_asm_ptrace_h" "$ac_includes_default"
  15723. if test "x$ac_cv_header_asm_ptrace_h" = xyes; then :
  15724. cat >>confdefs.h <<_ACEOF
  15725. #define HAVE_ASM_PTRACE_H 1
  15726. _ACEOF
  15727. fi
  15728. done
  15729. # get ptrace macros, e.g. PT_NIP
  15730. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to access the program counter from a struct ucontext" >&5
  15731. $as_echo_n "checking how to access the program counter from a struct ucontext... " >&6; }
  15732. pc_fields=" uc_mcontext.gregs[REG_PC]" # Solaris x86 (32 + 64 bit)
  15733. pc_fields="$pc_fields uc_mcontext.gregs[REG_EIP]" # Linux (i386)
  15734. pc_fields="$pc_fields uc_mcontext.gregs[REG_RIP]" # Linux (x86_64)
  15735. pc_fields="$pc_fields uc_mcontext.sc_ip" # Linux (ia64)
  15736. pc_fields="$pc_fields uc_mcontext.pc" # Linux (mips)
  15737. pc_fields="$pc_fields uc_mcontext.uc_regs->gregs[PT_NIP]" # Linux (ppc)
  15738. pc_fields="$pc_fields uc_mcontext.__gregs[REG_PC]" # Linux (riscv64)
  15739. pc_fields="$pc_fields uc_mcontext.psw.addr" # Linux (s390)
  15740. pc_fields="$pc_fields uc_mcontext.gregs[R15]" # Linux (arm old [untested])
  15741. pc_fields="$pc_fields uc_mcontext.arm_pc" # Linux (arm arch 5)
  15742. pc_fields="$pc_fields uc_mcontext.cr0_hi" # Linux (e2k)
  15743. pc_fields="$pc_fields uc_mcontext.gp_regs[PT_NIP]" # Suse SLES 11 (ppc64)
  15744. pc_fields="$pc_fields uc_mcontext.mc_eip" # FreeBSD (i386)
  15745. pc_fields="$pc_fields uc_mcontext.mc_srr0" # FreeBSD (powerpc, powerpc64)
  15746. pc_fields="$pc_fields uc_mcontext.mc_rip" # FreeBSD (x86_64 [untested])
  15747. pc_fields="$pc_fields uc_mcontext.__gregs[_REG_EIP]" # NetBSD (i386)
  15748. pc_fields="$pc_fields uc_mcontext.__gregs[_REG_RIP]" # NetBSD (x86_64)
  15749. pc_fields="$pc_fields uc_mcontext->ss.eip" # OS X (i386, <=10.4)
  15750. pc_fields="$pc_fields uc_mcontext->__ss.__eip" # OS X (i386, >=10.5)
  15751. pc_fields="$pc_fields uc_mcontext->ss.rip" # OS X (x86_64)
  15752. pc_fields="$pc_fields uc_mcontext->__ss.__rip" # OS X (>=10.5 [untested])
  15753. pc_fields="$pc_fields uc_mcontext->ss.srr0" # OS X (ppc, ppc64 [untested])
  15754. pc_fields="$pc_fields uc_mcontext->__ss.__srr0" # OS X (>=10.5 [untested])
  15755. pc_fields="$pc_fields uc_mcontext->__ss.__pc" # OS X (arm64)
  15756. pc_field_found=false
  15757. for pc_field in $pc_fields; do
  15758. if ! $pc_field_found; then
  15759. # Prefer sys/ucontext.h to ucontext.h, for OS X's sake.
  15760. if test "x$ac_cv_header_cygwin_signal_h" = xyes; then
  15761. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15762. /* end confdefs.h. */
  15763. #define _GNU_SOURCE 1
  15764. #include <cygwin/signal.h>
  15765. int
  15766. main ()
  15767. {
  15768. ucontext_t u; return u.$pc_field == 0;
  15769. ;
  15770. return 0;
  15771. }
  15772. _ACEOF
  15773. if ac_fn_c_try_compile "$LINENO"; then :
  15774. cat >>confdefs.h <<_ACEOF
  15775. #define PC_FROM_UCONTEXT $pc_field
  15776. _ACEOF
  15777. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pc_field" >&5
  15778. $as_echo "$pc_field" >&6; }
  15779. pc_field_found=true
  15780. fi
  15781. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15782. elif test "x$ac_cv_header_asm_ptrace_h" = xyes -a "x$ac_cv_header_sys_ucontext_h" = xyes; then
  15783. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15784. /* end confdefs.h. */
  15785. #define _GNU_SOURCE 1
  15786. #include <asm/ptrace.h>
  15787. #include <sys/ucontext.h>
  15788. int
  15789. main ()
  15790. {
  15791. ucontext_t u; return u.$pc_field == 0;
  15792. ;
  15793. return 0;
  15794. }
  15795. _ACEOF
  15796. if ac_fn_c_try_compile "$LINENO"; then :
  15797. cat >>confdefs.h <<_ACEOF
  15798. #define PC_FROM_UCONTEXT $pc_field
  15799. _ACEOF
  15800. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pc_field" >&5
  15801. $as_echo "$pc_field" >&6; }
  15802. pc_field_found=true
  15803. fi
  15804. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15805. elif test "x$ac_cv_header_sys_ucontext_h" = xyes; then
  15806. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15807. /* end confdefs.h. */
  15808. #define _GNU_SOURCE 1
  15809. #include <sys/ucontext.h>
  15810. int
  15811. main ()
  15812. {
  15813. ucontext_t u; return u.$pc_field == 0;
  15814. ;
  15815. return 0;
  15816. }
  15817. _ACEOF
  15818. if ac_fn_c_try_compile "$LINENO"; then :
  15819. cat >>confdefs.h <<_ACEOF
  15820. #define PC_FROM_UCONTEXT $pc_field
  15821. _ACEOF
  15822. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pc_field" >&5
  15823. $as_echo "$pc_field" >&6; }
  15824. pc_field_found=true
  15825. fi
  15826. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15827. elif test "x$ac_cv_header_ucontext_h" = xyes; then
  15828. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15829. /* end confdefs.h. */
  15830. #define _GNU_SOURCE 1
  15831. #include <ucontext.h>
  15832. int
  15833. main ()
  15834. {
  15835. ucontext_t u; return u.$pc_field == 0;
  15836. ;
  15837. return 0;
  15838. }
  15839. _ACEOF
  15840. if ac_fn_c_try_compile "$LINENO"; then :
  15841. cat >>confdefs.h <<_ACEOF
  15842. #define PC_FROM_UCONTEXT $pc_field
  15843. _ACEOF
  15844. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pc_field" >&5
  15845. $as_echo "$pc_field" >&6; }
  15846. pc_field_found=true
  15847. fi
  15848. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15849. else # hope some standard header gives it to us
  15850. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15851. /* end confdefs.h. */
  15852. int
  15853. main ()
  15854. {
  15855. ucontext_t u; return u.$pc_field == 0;
  15856. ;
  15857. return 0;
  15858. }
  15859. _ACEOF
  15860. if ac_fn_c_try_compile "$LINENO"; then :
  15861. cat >>confdefs.h <<_ACEOF
  15862. #define PC_FROM_UCONTEXT $pc_field
  15863. _ACEOF
  15864. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pc_field" >&5
  15865. $as_echo "$pc_field" >&6; }
  15866. pc_field_found=true
  15867. fi
  15868. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15869. fi
  15870. fi
  15871. done
  15872. if ! $pc_field_found; then
  15873. pc_fields=" sc_eip" # OpenBSD (i386)
  15874. pc_fields="$pc_fields sc_rip" # OpenBSD (x86_64)
  15875. for pc_field in $pc_fields; do
  15876. if ! $pc_field_found; then
  15877. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15878. /* end confdefs.h. */
  15879. #include <signal.h>
  15880. int
  15881. main ()
  15882. {
  15883. ucontext_t u; return u.$pc_field == 0;
  15884. ;
  15885. return 0;
  15886. }
  15887. _ACEOF
  15888. if ac_fn_c_try_compile "$LINENO"; then :
  15889. cat >>confdefs.h <<_ACEOF
  15890. #define PC_FROM_UCONTEXT $pc_field
  15891. _ACEOF
  15892. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pc_field" >&5
  15893. $as_echo "$pc_field" >&6; }
  15894. pc_field_found=true
  15895. fi
  15896. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15897. fi
  15898. done
  15899. fi
  15900. if ! $pc_field_found; then
  15901. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find the PC. Will not try to compile libprofiler..." >&5
  15902. $as_echo "$as_me: WARNING: Could not find the PC. Will not try to compile libprofiler..." >&2;};
  15903. enable_cpu_profiler=no
  15904. fi
  15905. fi
  15906. # Some tests test the behavior of .so files, and only make sense for dynamic.
  15907. if test "$enable_static" = yes; then
  15908. ENABLE_STATIC_TRUE=
  15909. ENABLE_STATIC_FALSE='#'
  15910. else
  15911. ENABLE_STATIC_TRUE='#'
  15912. ENABLE_STATIC_FALSE=
  15913. fi
  15914. # We want to link in libunwind if it is enabled and exists.
  15915. UNWIND_LIBS=
  15916. if test "$enable_libunwind" = yes; then
  15917. for ac_header in libunwind.h
  15918. do :
  15919. ac_fn_c_check_header_mongrel "$LINENO" "libunwind.h" "ac_cv_header_libunwind_h" "$ac_includes_default"
  15920. if test "x$ac_cv_header_libunwind_h" = xyes; then :
  15921. cat >>confdefs.h <<_ACEOF
  15922. #define HAVE_LIBUNWIND_H 1
  15923. _ACEOF
  15924. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for backtrace in -lunwind" >&5
  15925. $as_echo_n "checking for backtrace in -lunwind... " >&6; }
  15926. if ${ac_cv_lib_unwind_backtrace+:} false; then :
  15927. $as_echo_n "(cached) " >&6
  15928. else
  15929. ac_check_lib_save_LIBS=$LIBS
  15930. LIBS="-lunwind $LIBS"
  15931. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15932. /* end confdefs.h. */
  15933. /* Override any GCC internal prototype to avoid an error.
  15934. Use char because int might match the return type of a GCC
  15935. builtin and then its argument prototype would still apply. */
  15936. #ifdef __cplusplus
  15937. extern "C"
  15938. #endif
  15939. char backtrace ();
  15940. int
  15941. main ()
  15942. {
  15943. return backtrace ();
  15944. ;
  15945. return 0;
  15946. }
  15947. _ACEOF
  15948. if ac_fn_c_try_link "$LINENO"; then :
  15949. ac_cv_lib_unwind_backtrace=yes
  15950. else
  15951. ac_cv_lib_unwind_backtrace=no
  15952. fi
  15953. rm -f core conftest.err conftest.$ac_objext \
  15954. conftest$ac_exeext conftest.$ac_ext
  15955. LIBS=$ac_check_lib_save_LIBS
  15956. fi
  15957. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_unwind_backtrace" >&5
  15958. $as_echo "$ac_cv_lib_unwind_backtrace" >&6; }
  15959. if test "x$ac_cv_lib_unwind_backtrace" = xyes; then :
  15960. UNWIND_LIBS=-lunwind
  15961. fi
  15962. will_use_libunwind=yes
  15963. fi
  15964. done
  15965. fi
  15966. # On x86_64, instead of libunwind, we can choose to compile with frame-pointers.
  15967. # Check whether --enable-frame_pointers was given.
  15968. if test "${enable_frame_pointers+set}" = set; then :
  15969. enableval=$enable_frame_pointers;
  15970. else
  15971. enable_frame_pointers=no
  15972. fi
  15973. if test "$enable_frame_pointers" = yes; then
  15974. ENABLE_FRAME_POINTERS_TRUE=
  15975. ENABLE_FRAME_POINTERS_FALSE='#'
  15976. else
  15977. ENABLE_FRAME_POINTERS_TRUE='#'
  15978. ENABLE_FRAME_POINTERS_FALSE=
  15979. fi
  15980. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for x86 without frame pointers" >&5
  15981. $as_echo_n "checking for x86 without frame pointers... " >&6; }
  15982. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15983. /* end confdefs.h. */
  15984. int
  15985. main ()
  15986. {
  15987. return __x86_64__ == 1 ? 0 : 1
  15988. ;
  15989. return 0;
  15990. }
  15991. _ACEOF
  15992. if ac_fn_c_try_compile "$LINENO"; then :
  15993. is_x86_64=yes
  15994. else
  15995. is_x86_64=no
  15996. fi
  15997. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15998. omit_fp_by_default=no
  15999. if test "$is_x86_64" = yes; then :
  16000. omit_fp_by_default=yes
  16001. fi
  16002. if test "$omit_fp_by_default" = yes; then
  16003. OMIT_FP_BY_DEFAULT_TRUE=
  16004. OMIT_FP_BY_DEFAULT_FALSE='#'
  16005. else
  16006. OMIT_FP_BY_DEFAULT_TRUE='#'
  16007. OMIT_FP_BY_DEFAULT_FALSE=
  16008. fi
  16009. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $omit_fp_by_default" >&5
  16010. $as_echo "$omit_fp_by_default" >&6; }
  16011. # We need to know if we're i386 so we can turn on -mmms, which is not
  16012. # on by default for i386 (it is for x86_64).
  16013. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16014. /* end confdefs.h. */
  16015. int
  16016. main ()
  16017. {
  16018. return __i386__ == 1 ? 0 : 1
  16019. ;
  16020. return 0;
  16021. }
  16022. _ACEOF
  16023. if ac_fn_c_try_compile "$LINENO"; then :
  16024. is_i386=yes
  16025. else
  16026. is_i386=no
  16027. fi
  16028. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16029. if test "$is_i386" = yes; then
  16030. I386_TRUE=
  16031. I386_FALSE='#'
  16032. else
  16033. I386_TRUE='#'
  16034. I386_FALSE=
  16035. fi
  16036. # See if the compiler supports -Wno-unused-result.
  16037. # Newer ubuntu's turn on -D_FORTIFY_SOURCE=2, enabling
  16038. # __attribute__((warn_unused_result)) for things like write(),
  16039. # which we don't care about.
  16040. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the compiler supports -Wno-unused-result" >&5
  16041. $as_echo_n "checking if the compiler supports -Wno-unused-result... " >&6; }
  16042. if ${perftools_cv_w_no_unused_result+:} false; then :
  16043. $as_echo_n "(cached) " >&6
  16044. else
  16045. OLD_CFLAGS="$CFLAGS"
  16046. CFLAGS="$CFLAGS -Wno-error -Wunused-result"
  16047. # gcc doesn't warn about unknown flags unless it's
  16048. # also warning for some other purpose, hence the
  16049. # divide-by-0. (We use -Wno-error to make sure the
  16050. # divide-by-0 doesn't cause this test to fail!)
  16051. #
  16052. # Also gcc is giving only warning for unknown flags of
  16053. # -Wno-XXX form. So in order to detect support we're
  16054. # using -Wunused-result which will cause gcc to give
  16055. # error which we can detect.
  16056. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16057. /* end confdefs.h. */
  16058. int
  16059. main ()
  16060. {
  16061. return 1/0
  16062. ;
  16063. return 0;
  16064. }
  16065. _ACEOF
  16066. if ac_fn_c_try_compile "$LINENO"; then :
  16067. perftools_cv_w_no_unused_result=yes
  16068. else
  16069. perftools_cv_w_no_unused_result=no
  16070. fi
  16071. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16072. CFLAGS="$OLD_CFLAGS"
  16073. fi
  16074. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $perftools_cv_w_no_unused_result" >&5
  16075. $as_echo "$perftools_cv_w_no_unused_result" >&6; }
  16076. if test "$perftools_cv_w_no_unused_result" = yes; then
  16077. HAVE_W_NO_UNUSED_RESULT_TRUE=
  16078. HAVE_W_NO_UNUSED_RESULT_FALSE='#'
  16079. else
  16080. HAVE_W_NO_UNUSED_RESULT_TRUE='#'
  16081. HAVE_W_NO_UNUSED_RESULT_FALSE=
  16082. fi
  16083. # Check whether --enable-deprecated-pprof was given.
  16084. if test "${enable_deprecated_pprof+set}" = set; then :
  16085. enableval=$enable_deprecated_pprof; enable_pprof="$enableval"
  16086. else
  16087. enable_pprof=yes
  16088. fi
  16089. if test "x$enable_pprof" = xyes; then
  16090. INSTALL_PPROF_TRUE=
  16091. INSTALL_PPROF_FALSE='#'
  16092. else
  16093. INSTALL_PPROF_TRUE='#'
  16094. INSTALL_PPROF_FALSE=
  16095. fi
  16096. # Check whether --enable-dynamic-sized-delete-support was given.
  16097. if test "${enable_dynamic_sized_delete_support+set}" = set; then :
  16098. enableval=$enable_dynamic_sized_delete_support; enable_dyn_sized_delete="$enableval"
  16099. else
  16100. enable_dyn_sized_delete=no
  16101. fi
  16102. if test "x$enable_dyn_sized_delete" = xyes; then :
  16103. $as_echo "#define ENABLE_DYNAMIC_SIZED_DELETE 1" >>confdefs.h
  16104. fi
  16105. # Check whether --enable-sized-delete was given.
  16106. if test "${enable_sized_delete+set}" = set; then :
  16107. enableval=$enable_sized_delete; enable_sized_delete="$enableval"
  16108. else
  16109. enable_sized_delete="no"
  16110. fi
  16111. if test "x$enable_sized_delete" = xyes; then :
  16112. $as_echo "#define ENABLE_SIZED_DELETE 1" >>confdefs.h
  16113. { $as_echo "$as_me:${as_lineno-$LINENO}: Will build sized deallocation operators" >&5
  16114. $as_echo "$as_me: Will build sized deallocation operators" >&6;}
  16115. else
  16116. if test "x$enable_dyn_sized_delete" = xyes; then :
  16117. { $as_echo "$as_me:${as_lineno-$LINENO}: Will build dynamically detected sized deallocation operators" >&5
  16118. $as_echo "$as_me: Will build dynamically detected sized deallocation operators" >&6;}
  16119. else
  16120. { $as_echo "$as_me:${as_lineno-$LINENO}: Will build sized deallocation operators that ignore size" >&5
  16121. $as_echo "$as_me: Will build sized deallocation operators that ignore size" >&6;}
  16122. fi
  16123. fi
  16124. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if C++ compiler supports -fsized-deallocation" >&5
  16125. $as_echo_n "checking if C++ compiler supports -fsized-deallocation... " >&6; }
  16126. if ${perftools_cv_sized_deallocation_result+:} false; then :
  16127. $as_echo_n "(cached) " >&6
  16128. else
  16129. ac_ext=cpp
  16130. ac_cpp='$CXXCPP $CPPFLAGS'
  16131. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  16132. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  16133. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  16134. OLD_CXXFLAGS="$CXXFLAGS"
  16135. CXXFLAGS="$CXXFLAGS -fsized-deallocation"
  16136. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16137. /* end confdefs.h. */
  16138. #include <new>
  16139. #include <stddef.h>
  16140. int
  16141. main ()
  16142. {
  16143. static void (* volatile ptr)(void *, size_t) = ::operator delete; (*ptr)(0, 256);
  16144. ;
  16145. return 0;
  16146. }
  16147. _ACEOF
  16148. if ac_fn_cxx_try_link "$LINENO"; then :
  16149. perftools_cv_sized_deallocation_result=yes
  16150. else
  16151. perftools_cv_sized_deallocation_result=no
  16152. fi
  16153. rm -f core conftest.err conftest.$ac_objext \
  16154. conftest$ac_exeext conftest.$ac_ext
  16155. CXXFLAGS="$OLD_CXXFLAGS"
  16156. ac_ext=c
  16157. ac_cpp='$CPP $CPPFLAGS'
  16158. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  16159. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  16160. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  16161. fi
  16162. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $perftools_cv_sized_deallocation_result" >&5
  16163. $as_echo "$perftools_cv_sized_deallocation_result" >&6; }
  16164. if test "$perftools_cv_sized_deallocation_result" = yes; then
  16165. HAVE_SIZED_DEALLOCATION_TRUE=
  16166. HAVE_SIZED_DEALLOCATION_FALSE='#'
  16167. else
  16168. HAVE_SIZED_DEALLOCATION_TRUE='#'
  16169. HAVE_SIZED_DEALLOCATION_FALSE=
  16170. fi
  16171. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if C++ compiler supports std::align_val_t without options" >&5
  16172. $as_echo_n "checking if C++ compiler supports std::align_val_t without options... " >&6; }
  16173. if ${perftools_cv_have_align_val_t+:} false; then :
  16174. $as_echo_n "(cached) " >&6
  16175. else
  16176. ac_ext=cpp
  16177. ac_cpp='$CXXCPP $CPPFLAGS'
  16178. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  16179. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  16180. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  16181. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16182. /* end confdefs.h. */
  16183. #include <new>
  16184. int
  16185. main ()
  16186. {
  16187. (::operator delete)((::operator new)(256, std::align_val_t(16)), std::align_val_t(16))
  16188. ;
  16189. return 0;
  16190. }
  16191. _ACEOF
  16192. if ac_fn_cxx_try_link "$LINENO"; then :
  16193. perftools_cv_have_align_val_t=yes
  16194. else
  16195. perftools_cv_have_align_val_t=no
  16196. fi
  16197. rm -f core conftest.err conftest.$ac_objext \
  16198. conftest$ac_exeext conftest.$ac_ext
  16199. ac_ext=c
  16200. ac_cpp='$CPP $CPPFLAGS'
  16201. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  16202. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  16203. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  16204. fi
  16205. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $perftools_cv_have_align_val_t" >&5
  16206. $as_echo "$perftools_cv_have_align_val_t" >&6; }
  16207. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if C++ compiler supports -faligned-new" >&5
  16208. $as_echo_n "checking if C++ compiler supports -faligned-new... " >&6; }
  16209. if ${perftools_cv_have_f_aligned_new+:} false; then :
  16210. $as_echo_n "(cached) " >&6
  16211. else
  16212. ac_ext=cpp
  16213. ac_cpp='$CXXCPP $CPPFLAGS'
  16214. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  16215. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  16216. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  16217. OLD_CXXFLAGS="$CXXFLAGS"
  16218. CXXFLAGS="$CXXFLAGS -faligned-new"
  16219. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16220. /* end confdefs.h. */
  16221. #include <new>
  16222. int
  16223. main ()
  16224. {
  16225. (::operator delete)((::operator new)(256, std::align_val_t(16)), std::align_val_t(16))
  16226. ;
  16227. return 0;
  16228. }
  16229. _ACEOF
  16230. if ac_fn_cxx_try_link "$LINENO"; then :
  16231. perftools_cv_have_f_aligned_new=yes
  16232. else
  16233. perftools_cv_have_f_aligned_new=no
  16234. fi
  16235. rm -f core conftest.err conftest.$ac_objext \
  16236. conftest$ac_exeext conftest.$ac_ext
  16237. CXXFLAGS="$OLD_CXXFLAGS"
  16238. ac_ext=c
  16239. ac_cpp='$CPP $CPPFLAGS'
  16240. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  16241. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  16242. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  16243. fi
  16244. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $perftools_cv_have_f_aligned_new" >&5
  16245. $as_echo "$perftools_cv_have_f_aligned_new" >&6; }
  16246. if test "$perftools_cv_have_f_aligned_new" = yes; then
  16247. HAVE_F_ALIGNED_NEW_TRUE=
  16248. HAVE_F_ALIGNED_NEW_FALSE='#'
  16249. else
  16250. HAVE_F_ALIGNED_NEW_TRUE='#'
  16251. HAVE_F_ALIGNED_NEW_FALSE=
  16252. fi
  16253. if test "$perftools_cv_have_align_val_t" = yes || test "$perftools_cv_have_f_aligned_new" = yes; then :
  16254. $as_echo "#define ENABLE_ALIGNED_NEW_DELETE 1" >>confdefs.h
  16255. { $as_echo "$as_me:${as_lineno-$LINENO}: Will build new/delete operators for overaligned types" >&5
  16256. $as_echo "$as_me: Will build new/delete operators for overaligned types" >&6;}
  16257. else
  16258. { $as_echo "$as_me:${as_lineno-$LINENO}: Will not build new/delete operators for overaligned types" >&5
  16259. $as_echo "$as_me: Will not build new/delete operators for overaligned types" >&6;}
  16260. fi
  16261. if test "$perftools_cv_have_align_val_t" = yes || test "$perftools_cv_have_f_aligned_new" = yes; then
  16262. ac_cv_have_std_align_val_t=1
  16263. # gperftools/tcmalloc.h and windows/gperftools/tcmalloc.h need this
  16264. else
  16265. ac_cv_have_std_align_val_t=0
  16266. fi
  16267. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if target has _Unwind_Backtrace" >&5
  16268. $as_echo_n "checking if target has _Unwind_Backtrace... " >&6; }
  16269. if ${perftools_cv_have_unwind_backtrace+:} false; then :
  16270. $as_echo_n "(cached) " >&6
  16271. else
  16272. ac_ext=cpp
  16273. ac_cpp='$CXXCPP $CPPFLAGS'
  16274. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  16275. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  16276. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  16277. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16278. /* end confdefs.h. */
  16279. #include <unwind.h>
  16280. #if defined(__APPLE__)
  16281. #error OSX _Unwind_Backtrace recurses back to malloc
  16282. #endif
  16283. int
  16284. main ()
  16285. {
  16286. &_Unwind_Backtrace
  16287. ;
  16288. return 0;
  16289. }
  16290. _ACEOF
  16291. if ac_fn_cxx_try_compile "$LINENO"; then :
  16292. perftools_cv_have_unwind_backtrace=yes
  16293. else
  16294. perftools_cv_have_unwind_backtrace=no
  16295. fi
  16296. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16297. ac_ext=c
  16298. ac_cpp='$CPP $CPPFLAGS'
  16299. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  16300. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  16301. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  16302. fi
  16303. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $perftools_cv_have_unwind_backtrace" >&5
  16304. $as_echo "$perftools_cv_have_unwind_backtrace" >&6; }
  16305. if test "x$perftools_cv_have_unwind_backtrace" = xyes; then :
  16306. $as_echo "#define HAVE_UNWIND_BACKTRACE 1" >>confdefs.h
  16307. fi
  16308. if test "x$will_use_libunwind" = xyes; then :
  16309. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16310. /* end confdefs.h. */
  16311. int
  16312. main ()
  16313. {
  16314. return __arm__
  16315. ;
  16316. return 0;
  16317. }
  16318. _ACEOF
  16319. if ac_fn_c_try_compile "$LINENO"; then :
  16320. default_emergency_malloc=yes
  16321. fi
  16322. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16323. fi
  16324. # Check whether --enable-emergency-malloc was given.
  16325. if test "${enable_emergency_malloc+set}" = set; then :
  16326. enableval=$enable_emergency_malloc; enable_emergency_malloc="$enableval"
  16327. else
  16328. enable_emergency_malloc="$default_emergency_malloc"
  16329. fi
  16330. if test "x$enable_emergency_malloc" = xyes; then
  16331. BUILD_EMERGENCY_MALLOC_TRUE=
  16332. BUILD_EMERGENCY_MALLOC_FALSE='#'
  16333. else
  16334. BUILD_EMERGENCY_MALLOC_TRUE='#'
  16335. BUILD_EMERGENCY_MALLOC_FALSE=
  16336. fi
  16337. # Also make sure we get standard PRI... definitions, even with glibc.
  16338. # We have to use AH_VERBATIM because we need the #ifdef guard (gcc buglet)
  16339. # Check if __environ is available (for GetenvBeforeMain)
  16340. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __environ" >&5
  16341. $as_echo_n "checking for __environ... " >&6; }
  16342. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16343. /* end confdefs.h. */
  16344. #include <unistd.h>
  16345. int
  16346. main ()
  16347. {
  16348. char **env = __environ
  16349. ;
  16350. return 0;
  16351. }
  16352. _ACEOF
  16353. if ac_fn_c_try_link "$LINENO"; then :
  16354. $as_echo "#define HAVE___ENVIRON 1" >>confdefs.h
  16355. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  16356. $as_echo "yes" >&6; }
  16357. else
  16358. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16359. $as_echo "no" >&6; }
  16360. fi
  16361. rm -f core conftest.err conftest.$ac_objext \
  16362. conftest$ac_exeext conftest.$ac_ext
  16363. # If we support __thread, that can speed up tcmalloc a bit.
  16364. # Note, however, that our code tickles a bug in gcc < 4.1.2
  16365. # involving TLS and -fPIC (which our libraries will use) on x86:
  16366. # http://gcc.gnu.org/ml/gcc-bugs/2006-09/msg02275.html
  16367. #
  16368. # And mingw also does compile __thread but resultant code actually
  16369. # fails to work correctly at least in some not so ancient version:
  16370. # http://mingw-users.1079350.n2.nabble.com/gcc-4-4-multi-threaded-exception-handling-amp-thread-specifier-not-working-td3440749.html
  16371. #
  16372. # Also it was reported that earlier gcc versions for mips compile
  16373. # __thread but it doesn't really work
  16374. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __thread" >&5
  16375. $as_echo_n "checking for __thread... " >&6; }
  16376. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16377. /* end confdefs.h. */
  16378. #if defined(__GNUC__) && ((__GNUC__ < 4) || (__GNUC__ == 4 && __GNUC_MINOR__ < 1) || (__GNUC__ == 4 && __GNUC_MINOR__ == 1 && __GNUC_PATCHLEVEL__ < 2))
  16379. #error gcc has this bug: http://gcc.gnu.org/ml/gcc-bugs/2006-09/msg02275.html
  16380. #elif defined(__MINGW32__)
  16381. #error mingw doesnt really support tls
  16382. #elif defined(__APPLE__)
  16383. #error OSX __thread support is known to call malloc which makes it unsafe to use from malloc replacement
  16384. #endif
  16385. int
  16386. main ()
  16387. {
  16388. static __thread int p = 0
  16389. ;
  16390. return 0;
  16391. }
  16392. _ACEOF
  16393. if ac_fn_c_try_link "$LINENO"; then :
  16394. $as_echo "#define HAVE_TLS 1" >>confdefs.h
  16395. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  16396. $as_echo "yes" >&6; }
  16397. else
  16398. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16399. $as_echo "no" >&6; }
  16400. fi
  16401. rm -f core conftest.err conftest.$ac_objext \
  16402. conftest$ac_exeext conftest.$ac_ext
  16403. # Nanosleep requires extra libraries on some architectures (solaris).
  16404. # This sets NANOSLEEP_LIBS. nanosleep doesn't exist on mingw, which
  16405. # is fine for us because we don't compile libspinlock, which uses it.
  16406. if test "$need_nanosleep" = yes; then
  16407. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if nanosleep requires any libraries" >&5
  16408. $as_echo_n "checking if nanosleep requires any libraries... " >&6; }
  16409. ac_ext=c
  16410. ac_cpp='$CPP $CPPFLAGS'
  16411. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  16412. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  16413. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  16414. acx_nanosleep_ok="no"
  16415. NANOSLEEP_LIBS=
  16416. # For most folks, this should just work
  16417. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16418. /* end confdefs.h. */
  16419. #include <time.h>
  16420. int
  16421. main ()
  16422. {
  16423. static struct timespec ts; nanosleep(&ts, NULL);
  16424. ;
  16425. return 0;
  16426. }
  16427. _ACEOF
  16428. if ac_fn_c_try_link "$LINENO"; then :
  16429. acx_nanosleep_ok=yes
  16430. fi
  16431. rm -f core conftest.err conftest.$ac_objext \
  16432. conftest$ac_exeext conftest.$ac_ext
  16433. # For solaris, we may need -lrt
  16434. if test "x$acx_nanosleep_ok" != "xyes"; then
  16435. OLD_LIBS="$LIBS"
  16436. LIBS="-lrt $LIBS"
  16437. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16438. /* end confdefs.h. */
  16439. #include <time.h>
  16440. int
  16441. main ()
  16442. {
  16443. static struct timespec ts; nanosleep(&ts, NULL);
  16444. ;
  16445. return 0;
  16446. }
  16447. _ACEOF
  16448. if ac_fn_c_try_link "$LINENO"; then :
  16449. acx_nanosleep_ok=yes
  16450. fi
  16451. rm -f core conftest.err conftest.$ac_objext \
  16452. conftest$ac_exeext conftest.$ac_ext
  16453. if test "x$acx_nanosleep_ok" = "xyes"; then
  16454. NANOSLEEP_LIBS="-lrt"
  16455. fi
  16456. LIBS="$OLD_LIBS"
  16457. fi
  16458. if test "x$acx_nanosleep_ok" != "xyes"; then
  16459. as_fn_error $? "cannot find the nanosleep function" "$LINENO" 5
  16460. else
  16461. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${NANOSLEEP_LIBS:-no}" >&5
  16462. $as_echo "${NANOSLEEP_LIBS:-no}" >&6; }
  16463. fi
  16464. ac_ext=c
  16465. ac_cpp='$CPP $CPPFLAGS'
  16466. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  16467. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  16468. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  16469. fi
  16470. # Solaris 10 6/06 has a bug where /usr/sfw/lib/libstdc++.la is empty.
  16471. # If so, we replace it with our own version.
  16472. LIBSTDCXX_LA_LINKER_FLAG=
  16473. if test -f /usr/sfw/lib/libstdc++.la && ! test -s /usr/sfw/lib/libstdc++.la
  16474. then
  16475. LIBSTDCXX_LA_LINKER_FLAG='-L$(top_srcdir)/src/solaris'
  16476. fi
  16477. # In fact, a lot of the code in this directory depends on pthreads
  16478. ac_ext=c
  16479. ac_cpp='$CPP $CPPFLAGS'
  16480. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  16481. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  16482. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  16483. acx_pthread_ok=no
  16484. # We used to check for pthread.h first, but this fails if pthread.h
  16485. # requires special compiler flags (e.g. on True64 or Sequent).
  16486. # It gets checked for in the link test anyway.
  16487. # First of all, check if the user has set any of the PTHREAD_LIBS,
  16488. # etcetera environment variables, and if threads linking works using
  16489. # them:
  16490. if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
  16491. save_CFLAGS="$CFLAGS"
  16492. CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
  16493. save_LIBS="$LIBS"
  16494. LIBS="$PTHREAD_LIBS $LIBS"
  16495. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
  16496. $as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
  16497. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16498. /* end confdefs.h. */
  16499. /* Override any GCC internal prototype to avoid an error.
  16500. Use char because int might match the return type of a GCC
  16501. builtin and then its argument prototype would still apply. */
  16502. #ifdef __cplusplus
  16503. extern "C"
  16504. #endif
  16505. char pthread_join ();
  16506. int
  16507. main ()
  16508. {
  16509. return pthread_join ();
  16510. ;
  16511. return 0;
  16512. }
  16513. _ACEOF
  16514. if ac_fn_c_try_link "$LINENO"; then :
  16515. acx_pthread_ok=yes
  16516. fi
  16517. rm -f core conftest.err conftest.$ac_objext \
  16518. conftest$ac_exeext conftest.$ac_ext
  16519. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_ok" >&5
  16520. $as_echo "$acx_pthread_ok" >&6; }
  16521. if test x"$acx_pthread_ok" = xno; then
  16522. PTHREAD_LIBS=""
  16523. PTHREAD_CFLAGS=""
  16524. fi
  16525. LIBS="$save_LIBS"
  16526. CFLAGS="$save_CFLAGS"
  16527. fi
  16528. # We must check for the threads library under a number of different
  16529. # names; the ordering is very important because some systems
  16530. # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
  16531. # libraries is broken (non-POSIX).
  16532. # Create a list of thread flags to try. Items starting with a "-" are
  16533. # C compiler flags, and other items are library names, except for "none"
  16534. # which indicates that we try without any flags at all, and "pthread-config"
  16535. # which is a program returning the flags for the Pth emulation library.
  16536. acx_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
  16537. # The ordering *is* (sometimes) important. Some notes on the
  16538. # individual items follow:
  16539. # pthreads: AIX (must check this before -lpthread)
  16540. # none: in case threads are in libc; should be tried before -Kthread and
  16541. # other compiler flags to prevent continual compiler warnings
  16542. # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
  16543. # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
  16544. # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
  16545. # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
  16546. # -pthreads: Solaris/gcc
  16547. # -mthreads: Mingw32/gcc, Lynx/gcc
  16548. # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
  16549. # doesn't hurt to check since this sometimes defines pthreads too;
  16550. # also defines -D_REENTRANT)
  16551. # ... -mt is also the pthreads flag for HP/aCC
  16552. # pthread: Linux, etcetera
  16553. # --thread-safe: KAI C++
  16554. # pthread-config: use pthread-config program (for GNU Pth library)
  16555. case "${host_cpu}-${host_os}" in
  16556. *solaris*)
  16557. # On Solaris (at least, for some versions), libc contains stubbed
  16558. # (non-functional) versions of the pthreads routines, so link-based
  16559. # tests will erroneously succeed. (We need to link with -pthreads/-mt/
  16560. # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
  16561. # a function called by this macro, so we could check for that, but
  16562. # who knows whether they'll stub that too in a future libc.) So,
  16563. # we'll just look for -pthreads and -lpthread first:
  16564. acx_pthread_flags="-pthreads pthread -mt -pthread $acx_pthread_flags"
  16565. ;;
  16566. esac
  16567. if test x"$acx_pthread_ok" = xno; then
  16568. for flag in $acx_pthread_flags; do
  16569. case $flag in
  16570. none)
  16571. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
  16572. $as_echo_n "checking whether pthreads work without any flags... " >&6; }
  16573. ;;
  16574. -*)
  16575. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
  16576. $as_echo_n "checking whether pthreads work with $flag... " >&6; }
  16577. PTHREAD_CFLAGS="$flag"
  16578. ;;
  16579. pthread-config)
  16580. # Extract the first word of "pthread-config", so it can be a program name with args.
  16581. set dummy pthread-config; ac_word=$2
  16582. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  16583. $as_echo_n "checking for $ac_word... " >&6; }
  16584. if ${ac_cv_prog_acx_pthread_config+:} false; then :
  16585. $as_echo_n "(cached) " >&6
  16586. else
  16587. if test -n "$acx_pthread_config"; then
  16588. ac_cv_prog_acx_pthread_config="$acx_pthread_config" # Let the user override the test.
  16589. else
  16590. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  16591. for as_dir in $PATH
  16592. do
  16593. IFS=$as_save_IFS
  16594. test -z "$as_dir" && as_dir=.
  16595. for ac_exec_ext in '' $ac_executable_extensions; do
  16596. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  16597. ac_cv_prog_acx_pthread_config="yes"
  16598. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  16599. break 2
  16600. fi
  16601. done
  16602. done
  16603. IFS=$as_save_IFS
  16604. test -z "$ac_cv_prog_acx_pthread_config" && ac_cv_prog_acx_pthread_config="no"
  16605. fi
  16606. fi
  16607. acx_pthread_config=$ac_cv_prog_acx_pthread_config
  16608. if test -n "$acx_pthread_config"; then
  16609. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_config" >&5
  16610. $as_echo "$acx_pthread_config" >&6; }
  16611. else
  16612. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16613. $as_echo "no" >&6; }
  16614. fi
  16615. if test x"$acx_pthread_config" = xno; then continue; fi
  16616. PTHREAD_CFLAGS="`pthread-config --cflags`"
  16617. PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
  16618. ;;
  16619. *)
  16620. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
  16621. $as_echo_n "checking for the pthreads library -l$flag... " >&6; }
  16622. PTHREAD_LIBS="-l$flag"
  16623. ;;
  16624. esac
  16625. save_LIBS="$LIBS"
  16626. save_CFLAGS="$CFLAGS"
  16627. LIBS="$PTHREAD_LIBS $LIBS"
  16628. CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
  16629. # Check for various functions. We must include pthread.h,
  16630. # since some functions may be macros. (On the Sequent, we
  16631. # need a special flag -Kthread to make this header compile.)
  16632. # We check for pthread_join because it is in -lpthread on IRIX
  16633. # while pthread_create is in libc. We check for pthread_attr_init
  16634. # due to DEC craziness with -lpthreads. We check for
  16635. # pthread_cleanup_push because it is one of the few pthread
  16636. # functions on Solaris that doesn't have a non-functional libc stub.
  16637. # We try pthread_create on general principles.
  16638. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16639. /* end confdefs.h. */
  16640. #include <pthread.h>
  16641. int
  16642. main ()
  16643. {
  16644. pthread_t th; pthread_join(th, 0);
  16645. pthread_attr_init(0); pthread_cleanup_push(0, 0);
  16646. pthread_create(0,0,0,0); pthread_cleanup_pop(0);
  16647. ;
  16648. return 0;
  16649. }
  16650. _ACEOF
  16651. if ac_fn_c_try_link "$LINENO"; then :
  16652. acx_pthread_ok=yes
  16653. fi
  16654. rm -f core conftest.err conftest.$ac_objext \
  16655. conftest$ac_exeext conftest.$ac_ext
  16656. LIBS="$save_LIBS"
  16657. CFLAGS="$save_CFLAGS"
  16658. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_ok" >&5
  16659. $as_echo "$acx_pthread_ok" >&6; }
  16660. if test "x$acx_pthread_ok" = xyes; then
  16661. break;
  16662. fi
  16663. PTHREAD_LIBS=""
  16664. PTHREAD_CFLAGS=""
  16665. done
  16666. fi
  16667. # Various other checks:
  16668. if test "x$acx_pthread_ok" = xyes; then
  16669. save_LIBS="$LIBS"
  16670. LIBS="$PTHREAD_LIBS $LIBS"
  16671. save_CFLAGS="$CFLAGS"
  16672. CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
  16673. # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
  16674. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
  16675. $as_echo_n "checking for joinable pthread attribute... " >&6; }
  16676. attr_name=unknown
  16677. for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
  16678. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16679. /* end confdefs.h. */
  16680. #include <pthread.h>
  16681. int
  16682. main ()
  16683. {
  16684. int attr=$attr; return attr;
  16685. ;
  16686. return 0;
  16687. }
  16688. _ACEOF
  16689. if ac_fn_c_try_link "$LINENO"; then :
  16690. attr_name=$attr; break
  16691. fi
  16692. rm -f core conftest.err conftest.$ac_objext \
  16693. conftest$ac_exeext conftest.$ac_ext
  16694. done
  16695. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
  16696. $as_echo "$attr_name" >&6; }
  16697. if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
  16698. cat >>confdefs.h <<_ACEOF
  16699. #define PTHREAD_CREATE_JOINABLE $attr_name
  16700. _ACEOF
  16701. fi
  16702. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
  16703. $as_echo_n "checking if more special flags are required for pthreads... " >&6; }
  16704. flag=no
  16705. case "${host_cpu}-${host_os}" in
  16706. *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
  16707. *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
  16708. esac
  16709. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5
  16710. $as_echo "${flag}" >&6; }
  16711. if test "x$flag" != xno; then
  16712. PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
  16713. fi
  16714. LIBS="$save_LIBS"
  16715. CFLAGS="$save_CFLAGS"
  16716. # More AIX lossage: must compile with xlc_r or cc_r
  16717. if test x"$GCC" != xyes; then
  16718. for ac_prog in xlc_r cc_r
  16719. do
  16720. # Extract the first word of "$ac_prog", so it can be a program name with args.
  16721. set dummy $ac_prog; ac_word=$2
  16722. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  16723. $as_echo_n "checking for $ac_word... " >&6; }
  16724. if ${ac_cv_prog_PTHREAD_CC+:} false; then :
  16725. $as_echo_n "(cached) " >&6
  16726. else
  16727. if test -n "$PTHREAD_CC"; then
  16728. ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
  16729. else
  16730. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  16731. for as_dir in $PATH
  16732. do
  16733. IFS=$as_save_IFS
  16734. test -z "$as_dir" && as_dir=.
  16735. for ac_exec_ext in '' $ac_executable_extensions; do
  16736. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  16737. ac_cv_prog_PTHREAD_CC="$ac_prog"
  16738. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  16739. break 2
  16740. fi
  16741. done
  16742. done
  16743. IFS=$as_save_IFS
  16744. fi
  16745. fi
  16746. PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
  16747. if test -n "$PTHREAD_CC"; then
  16748. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
  16749. $as_echo "$PTHREAD_CC" >&6; }
  16750. else
  16751. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16752. $as_echo "no" >&6; }
  16753. fi
  16754. test -n "$PTHREAD_CC" && break
  16755. done
  16756. test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}"
  16757. else
  16758. PTHREAD_CC=$CC
  16759. fi
  16760. # The next part tries to detect GCC inconsistency with -shared on some
  16761. # architectures and systems. The problem is that in certain
  16762. # configurations, when -shared is specified, GCC "forgets" to
  16763. # internally use various flags which are still necessary.
  16764. #
  16765. # Prepare the flags
  16766. #
  16767. save_CFLAGS="$CFLAGS"
  16768. save_LIBS="$LIBS"
  16769. save_CC="$CC"
  16770. # Try with the flags determined by the earlier checks.
  16771. #
  16772. # -Wl,-z,defs forces link-time symbol resolution, so that the
  16773. # linking checks with -shared actually have any value
  16774. #
  16775. # FIXME: -fPIC is required for -shared on many architectures,
  16776. # so we specify it here, but the right way would probably be to
  16777. # properly detect whether it is actually required.
  16778. CFLAGS="-shared -fPIC -Wl,-z,defs $CFLAGS $PTHREAD_CFLAGS"
  16779. LIBS="$PTHREAD_LIBS $LIBS"
  16780. CC="$PTHREAD_CC"
  16781. # In order not to create several levels of indentation, we test
  16782. # the value of "$done" until we find the cure or run out of ideas.
  16783. done="no"
  16784. # First, make sure the CFLAGS we added are actually accepted by our
  16785. # compiler. If not (and OS X's ld, for instance, does not accept -z),
  16786. # then we can't do this test.
  16787. if test x"$done" = xno; then
  16788. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to check for GCC pthread/shared inconsistencies" >&5
  16789. $as_echo_n "checking whether to check for GCC pthread/shared inconsistencies... " >&6; }
  16790. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16791. /* end confdefs.h. */
  16792. int
  16793. main ()
  16794. {
  16795. ;
  16796. return 0;
  16797. }
  16798. _ACEOF
  16799. if ac_fn_c_try_link "$LINENO"; then :
  16800. else
  16801. done=yes
  16802. fi
  16803. rm -f core conftest.err conftest.$ac_objext \
  16804. conftest$ac_exeext conftest.$ac_ext
  16805. if test "x$done" = xyes ; then
  16806. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16807. $as_echo "no" >&6; }
  16808. else
  16809. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  16810. $as_echo "yes" >&6; }
  16811. fi
  16812. fi
  16813. if test x"$done" = xno; then
  16814. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -pthread is sufficient with -shared" >&5
  16815. $as_echo_n "checking whether -pthread is sufficient with -shared... " >&6; }
  16816. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16817. /* end confdefs.h. */
  16818. #include <pthread.h>
  16819. int
  16820. main ()
  16821. {
  16822. pthread_t th; pthread_join(th, 0);
  16823. pthread_attr_init(0); pthread_cleanup_push(0, 0);
  16824. pthread_create(0,0,0,0); pthread_cleanup_pop(0);
  16825. ;
  16826. return 0;
  16827. }
  16828. _ACEOF
  16829. if ac_fn_c_try_link "$LINENO"; then :
  16830. done=yes
  16831. fi
  16832. rm -f core conftest.err conftest.$ac_objext \
  16833. conftest$ac_exeext conftest.$ac_ext
  16834. if test "x$done" = xyes; then
  16835. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  16836. $as_echo "yes" >&6; }
  16837. else
  16838. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16839. $as_echo "no" >&6; }
  16840. fi
  16841. fi
  16842. #
  16843. # Linux gcc on some architectures such as mips/mipsel forgets
  16844. # about -lpthread
  16845. #
  16846. if test x"$done" = xno; then
  16847. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lpthread fixes that" >&5
  16848. $as_echo_n "checking whether -lpthread fixes that... " >&6; }
  16849. LIBS="-lpthread $PTHREAD_LIBS $save_LIBS"
  16850. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16851. /* end confdefs.h. */
  16852. #include <pthread.h>
  16853. int
  16854. main ()
  16855. {
  16856. pthread_t th; pthread_join(th, 0);
  16857. pthread_attr_init(0); pthread_cleanup_push(0, 0);
  16858. pthread_create(0,0,0,0); pthread_cleanup_pop(0);
  16859. ;
  16860. return 0;
  16861. }
  16862. _ACEOF
  16863. if ac_fn_c_try_link "$LINENO"; then :
  16864. done=yes
  16865. fi
  16866. rm -f core conftest.err conftest.$ac_objext \
  16867. conftest$ac_exeext conftest.$ac_ext
  16868. if test "x$done" = xyes; then
  16869. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  16870. $as_echo "yes" >&6; }
  16871. PTHREAD_LIBS="-lpthread $PTHREAD_LIBS"
  16872. else
  16873. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16874. $as_echo "no" >&6; }
  16875. fi
  16876. fi
  16877. #
  16878. # FreeBSD 4.10 gcc forgets to use -lc_r instead of -lc
  16879. #
  16880. if test x"$done" = xno; then
  16881. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc_r fixes that" >&5
  16882. $as_echo_n "checking whether -lc_r fixes that... " >&6; }
  16883. LIBS="-lc_r $PTHREAD_LIBS $save_LIBS"
  16884. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16885. /* end confdefs.h. */
  16886. #include <pthread.h>
  16887. int
  16888. main ()
  16889. {
  16890. pthread_t th; pthread_join(th, 0);
  16891. pthread_attr_init(0); pthread_cleanup_push(0, 0);
  16892. pthread_create(0,0,0,0); pthread_cleanup_pop(0);
  16893. ;
  16894. return 0;
  16895. }
  16896. _ACEOF
  16897. if ac_fn_c_try_link "$LINENO"; then :
  16898. done=yes
  16899. fi
  16900. rm -f core conftest.err conftest.$ac_objext \
  16901. conftest$ac_exeext conftest.$ac_ext
  16902. if test "x$done" = xyes; then
  16903. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  16904. $as_echo "yes" >&6; }
  16905. PTHREAD_LIBS="-lc_r $PTHREAD_LIBS"
  16906. else
  16907. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16908. $as_echo "no" >&6; }
  16909. fi
  16910. fi
  16911. if test x"$done" = xno; then
  16912. # OK, we have run out of ideas
  16913. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Impossible to determine how to use pthreads with shared libraries" >&5
  16914. $as_echo "$as_me: WARNING: Impossible to determine how to use pthreads with shared libraries" >&2;}
  16915. # so it's not safe to assume that we may use pthreads
  16916. acx_pthread_ok=no
  16917. fi
  16918. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether what we have so far is sufficient with -nostdlib" >&5
  16919. $as_echo_n "checking whether what we have so far is sufficient with -nostdlib... " >&6; }
  16920. CFLAGS="-nostdlib $CFLAGS"
  16921. # we need c with nostdlib
  16922. LIBS="$LIBS -lc"
  16923. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16924. /* end confdefs.h. */
  16925. #include <pthread.h>
  16926. int
  16927. main ()
  16928. {
  16929. pthread_t th; pthread_join(th, 0);
  16930. pthread_attr_init(0); pthread_cleanup_push(0, 0);
  16931. pthread_create(0,0,0,0); pthread_cleanup_pop(0);
  16932. ;
  16933. return 0;
  16934. }
  16935. _ACEOF
  16936. if ac_fn_c_try_link "$LINENO"; then :
  16937. done=yes
  16938. else
  16939. done=no
  16940. fi
  16941. rm -f core conftest.err conftest.$ac_objext \
  16942. conftest$ac_exeext conftest.$ac_ext
  16943. if test "x$done" = xyes; then
  16944. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  16945. $as_echo "yes" >&6; }
  16946. else
  16947. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16948. $as_echo "no" >&6; }
  16949. fi
  16950. if test x"$done" = xno; then
  16951. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lpthread saves the day" >&5
  16952. $as_echo_n "checking whether -lpthread saves the day... " >&6; }
  16953. LIBS="-lpthread $LIBS"
  16954. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16955. /* end confdefs.h. */
  16956. #include <pthread.h>
  16957. int
  16958. main ()
  16959. {
  16960. pthread_t th; pthread_join(th, 0);
  16961. pthread_attr_init(0); pthread_cleanup_push(0, 0);
  16962. pthread_create(0,0,0,0); pthread_cleanup_pop(0);
  16963. ;
  16964. return 0;
  16965. }
  16966. _ACEOF
  16967. if ac_fn_c_try_link "$LINENO"; then :
  16968. done=yes
  16969. else
  16970. done=no
  16971. fi
  16972. rm -f core conftest.err conftest.$ac_objext \
  16973. conftest$ac_exeext conftest.$ac_ext
  16974. if test "x$done" = xyes; then
  16975. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  16976. $as_echo "yes" >&6; }
  16977. PTHREAD_LIBS="$PTHREAD_LIBS -lpthread"
  16978. else
  16979. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16980. $as_echo "no" >&6; }
  16981. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Impossible to determine how to use pthreads with shared libraries and -nostdlib" >&5
  16982. $as_echo "$as_me: WARNING: Impossible to determine how to use pthreads with shared libraries and -nostdlib" >&2;}
  16983. fi
  16984. fi
  16985. CFLAGS="$save_CFLAGS"
  16986. LIBS="$save_LIBS"
  16987. CC="$save_CC"
  16988. else
  16989. PTHREAD_CC="$CC"
  16990. fi
  16991. # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
  16992. if test x"$acx_pthread_ok" = xyes; then
  16993. $as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
  16994. :
  16995. else
  16996. acx_pthread_ok=no
  16997. fi
  16998. ac_ext=c
  16999. ac_cpp='$CPP $CPPFLAGS'
  17000. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  17001. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  17002. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  17003. ac_ext=cpp
  17004. ac_cpp='$CXXCPP $CPPFLAGS'
  17005. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  17006. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  17007. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  17008. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthread symbols are available in C++ without including pthread.h" >&5
  17009. $as_echo_n "checking whether pthread symbols are available in C++ without including pthread.h... " >&6; }
  17010. acx_pthread_despite_asking_for=no
  17011. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17012. /* end confdefs.h. */
  17013. #include <string>
  17014. #include <vector>
  17015. int
  17016. main ()
  17017. {
  17018. pthread_t th; pthread_join(th, 0);
  17019. ;
  17020. return 0;
  17021. }
  17022. _ACEOF
  17023. if ac_fn_cxx_try_link "$LINENO"; then :
  17024. acx_pthread_despite_asking_for=yes
  17025. $as_echo "#define HAVE_PTHREAD_DESPITE_ASKING_FOR 1" >>confdefs.h
  17026. $as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
  17027. fi
  17028. rm -f core conftest.err conftest.$ac_objext \
  17029. conftest$ac_exeext conftest.$ac_ext
  17030. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_despite_asking_for" >&5
  17031. $as_echo "$acx_pthread_despite_asking_for" >&6; }
  17032. ac_ext=c
  17033. ac_cpp='$CPP $CPPFLAGS'
  17034. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  17035. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  17036. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  17037. if test x"$acx_pthread_despite_asking_for" = xyes; then
  17038. HAVE_PTHREAD_DESPITE_ASKING_FOR_TRUE=
  17039. HAVE_PTHREAD_DESPITE_ASKING_FOR_FALSE='#'
  17040. else
  17041. HAVE_PTHREAD_DESPITE_ASKING_FOR_TRUE='#'
  17042. HAVE_PTHREAD_DESPITE_ASKING_FOR_FALSE=
  17043. fi
  17044. # Figure out where libc has program_invocation_name
  17045. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for program_invocation_name" >&5
  17046. $as_echo_n "checking for program_invocation_name... " >&6; }
  17047. if ${ac_cv_have_program_invocation_name+:} false; then :
  17048. $as_echo_n "(cached) " >&6
  17049. else
  17050. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17051. /* end confdefs.h. */
  17052. extern char* program_invocation_name;
  17053. int
  17054. main ()
  17055. {
  17056. return *program_invocation_name;
  17057. ;
  17058. return 0;
  17059. }
  17060. _ACEOF
  17061. if ac_fn_c_try_link "$LINENO"; then :
  17062. ac_cv_have_program_invocation_name=yes
  17063. else
  17064. ac_cv_have_program_invocation_name=no
  17065. fi
  17066. rm -f core conftest.err conftest.$ac_objext \
  17067. conftest$ac_exeext conftest.$ac_ext
  17068. fi
  17069. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_program_invocation_name" >&5
  17070. $as_echo "$ac_cv_have_program_invocation_name" >&6; }
  17071. if test "$ac_cv_have_program_invocation_name" = "yes"; then
  17072. $as_echo "#define HAVE_PROGRAM_INVOCATION_NAME 1" >>confdefs.h
  17073. fi
  17074. # Make the install prefix available, to figure out where to look for pprof
  17075. ac_cv_install_prefix="$prefix";
  17076. if test x"$ac_cv_install_prefix" = x"NONE" ; then
  17077. ac_cv_install_prefix="$ac_default_prefix";
  17078. fi
  17079. cat >>confdefs.h <<_ACEOF
  17080. #define INSTALL_PREFIX "$ac_cv_install_prefix"
  17081. _ACEOF
  17082. case "$host" in
  17083. *-mingw*)
  17084. ac_fn_c_check_decl "$LINENO" "sleep" "ac_cv_have_decl_sleep" "#include <unistd.h>
  17085. "
  17086. if test "x$ac_cv_have_decl_sleep" = xyes; then :
  17087. ac_have_decl=1
  17088. else
  17089. ac_have_decl=0
  17090. fi
  17091. cat >>confdefs.h <<_ACEOF
  17092. #define HAVE_DECL_SLEEP $ac_have_decl
  17093. _ACEOF
  17094. ac_fn_c_check_decl "$LINENO" "nanosleep" "ac_cv_have_decl_nanosleep" "#include <time.h>
  17095. "
  17096. if test "x$ac_cv_have_decl_nanosleep" = xyes; then :
  17097. ac_have_decl=1
  17098. else
  17099. ac_have_decl=0
  17100. fi
  17101. cat >>confdefs.h <<_ACEOF
  17102. #define HAVE_DECL_NANOSLEEP $ac_have_decl
  17103. _ACEOF
  17104. ;;
  17105. esac
  17106. if test "x$enable_backtrace" = xyes; then
  17107. ac_fn_c_check_decl "$LINENO" "backtrace" "ac_cv_have_decl_backtrace" "#include <execinfo.h>
  17108. "
  17109. if test "x$ac_cv_have_decl_backtrace" = xyes; then :
  17110. ac_have_decl=1
  17111. else
  17112. ac_have_decl=0
  17113. fi
  17114. cat >>confdefs.h <<_ACEOF
  17115. #define HAVE_DECL_BACKTRACE $ac_have_decl
  17116. _ACEOF
  17117. save_LIBS=$LIBS
  17118. LIBS=$UNWIND_LIBS
  17119. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing backtrace" >&5
  17120. $as_echo_n "checking for library containing backtrace... " >&6; }
  17121. if ${ac_cv_search_backtrace+:} false; then :
  17122. $as_echo_n "(cached) " >&6
  17123. else
  17124. ac_func_search_save_LIBS=$LIBS
  17125. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17126. /* end confdefs.h. */
  17127. /* Override any GCC internal prototype to avoid an error.
  17128. Use char because int might match the return type of a GCC
  17129. builtin and then its argument prototype would still apply. */
  17130. #ifdef __cplusplus
  17131. extern "C"
  17132. #endif
  17133. char backtrace ();
  17134. int
  17135. main ()
  17136. {
  17137. return backtrace ();
  17138. ;
  17139. return 0;
  17140. }
  17141. _ACEOF
  17142. for ac_lib in '' execinfo; do
  17143. if test -z "$ac_lib"; then
  17144. ac_res="none required"
  17145. else
  17146. ac_res=-l$ac_lib
  17147. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  17148. fi
  17149. if ac_fn_c_try_link "$LINENO"; then :
  17150. ac_cv_search_backtrace=$ac_res
  17151. fi
  17152. rm -f core conftest.err conftest.$ac_objext \
  17153. conftest$ac_exeext
  17154. if ${ac_cv_search_backtrace+:} false; then :
  17155. break
  17156. fi
  17157. done
  17158. if ${ac_cv_search_backtrace+:} false; then :
  17159. else
  17160. ac_cv_search_backtrace=no
  17161. fi
  17162. rm conftest.$ac_ext
  17163. LIBS=$ac_func_search_save_LIBS
  17164. fi
  17165. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_backtrace" >&5
  17166. $as_echo "$ac_cv_search_backtrace" >&6; }
  17167. ac_res=$ac_cv_search_backtrace
  17168. if test "$ac_res" != no; then :
  17169. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  17170. fi
  17171. UNWIND_LIBS=$LIBS
  17172. LIBS=$save_LIBS
  17173. fi
  17174. # For windows, this has a non-trivial value (__declspec(export)), but any
  17175. # system that uses configure wants this to be the empty string.
  17176. $as_echo "#define PERFTOOLS_DLL_DECL /**/" >>confdefs.h
  17177. # In theory, config.h files shouldn't need a header guard, but we do,
  17178. # because we (maybe) #include windows/mingw.h from within config.h,
  17179. # and it #includes other .h files. These all have header guards, so
  17180. # the end result is if config.h is #included twice, its #undefs get
  17181. # evaluated twice, but all the ones in mingw.h/etc only get evaluated
  17182. # once, potentially causing trouble. c.f.
  17183. # http://code.google.com/p/gperftools/issues/detail?id=246
  17184. # MinGW uses autoconf, but also needs the windows shim routines
  17185. # (since it doesn't have its own support for, say, pthreads).
  17186. # This requires us to #include a special header file, and also to
  17187. # link in some windows versions of .o's instead of the unix versions.
  17188. #
  17189. # Also, manually mark systems where we have to be careful how early
  17190. # we run pthreads. TODO(csilvers): turn this into an autoconf check.
  17191. if expr $host : '.*-mingw' >/dev/null 2>&1; then
  17192. MINGW_TRUE=
  17193. MINGW_FALSE='#'
  17194. else
  17195. MINGW_TRUE='#'
  17196. MINGW_FALSE=
  17197. fi
  17198. if expr $host : '.*-apple-darwin.*' >/dev/null 2>&1; then
  17199. OSX_TRUE=
  17200. OSX_FALSE='#'
  17201. else
  17202. OSX_TRUE='#'
  17203. OSX_FALSE=
  17204. fi
  17205. # Export the --enable flags we set above. We do this at the end so
  17206. # other configure rules can enable or disable targets based on what
  17207. # they find.
  17208. if test "$enable_cpu_profiler" = yes; then
  17209. WITH_CPU_PROFILER_TRUE=
  17210. WITH_CPU_PROFILER_FALSE='#'
  17211. else
  17212. WITH_CPU_PROFILER_TRUE='#'
  17213. WITH_CPU_PROFILER_FALSE=
  17214. fi
  17215. if test "$enable_heap_profiler" = yes; then
  17216. WITH_HEAP_PROFILER_TRUE=
  17217. WITH_HEAP_PROFILER_FALSE='#'
  17218. else
  17219. WITH_HEAP_PROFILER_TRUE='#'
  17220. WITH_HEAP_PROFILER_FALSE=
  17221. fi
  17222. if test "$enable_heap_checker" = yes; then
  17223. WITH_HEAP_CHECKER_TRUE=
  17224. WITH_HEAP_CHECKER_FALSE='#'
  17225. else
  17226. WITH_HEAP_CHECKER_TRUE='#'
  17227. WITH_HEAP_CHECKER_FALSE=
  17228. fi
  17229. if test "$enable_debugalloc" = yes; then
  17230. WITH_DEBUGALLOC_TRUE=
  17231. WITH_DEBUGALLOC_FALSE='#'
  17232. else
  17233. WITH_DEBUGALLOC_TRUE='#'
  17234. WITH_DEBUGALLOC_FALSE=
  17235. fi
  17236. # We make tcmalloc.so if either heap-profiler or heap-checker is asked for.
  17237. if test "$enable_heap_profiler" = yes -o \
  17238. "$enable_heap_checker" = yes; then
  17239. WITH_HEAP_PROFILER_OR_CHECKER_TRUE=
  17240. WITH_HEAP_PROFILER_OR_CHECKER_FALSE='#'
  17241. else
  17242. WITH_HEAP_PROFILER_OR_CHECKER_TRUE='#'
  17243. WITH_HEAP_PROFILER_OR_CHECKER_FALSE=
  17244. fi
  17245. # If we don't use any profilers, we don't need stack traces (or pprof)
  17246. if test "$enable_cpu_profiler" = yes -o \
  17247. "$enable_heap_profiler" = yes -o \
  17248. "$enable_heap_checker" = yes; then
  17249. WITH_STACK_TRACE_TRUE=
  17250. WITH_STACK_TRACE_FALSE='#'
  17251. else
  17252. WITH_STACK_TRACE_TRUE='#'
  17253. WITH_STACK_TRACE_FALSE=
  17254. fi
  17255. have_linux_sigev_thread_id=no
  17256. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Linux SIGEV_THREAD_ID" >&5
  17257. $as_echo_n "checking for Linux SIGEV_THREAD_ID... " >&6; }
  17258. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17259. /* end confdefs.h. */
  17260. #include <signal.h>
  17261. #include <time.h>
  17262. int
  17263. main ()
  17264. {
  17265. return SIGEV_THREAD_ID || CLOCK_THREAD_CPUTIME_ID || __linux;
  17266. ;
  17267. return 0;
  17268. }
  17269. _ACEOF
  17270. if ac_fn_c_try_compile "$LINENO"; then :
  17271. $as_echo "#define HAVE_LINUX_SIGEV_THREAD_ID 1" >>confdefs.h
  17272. have_linux_sigev_thread_id=yes
  17273. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  17274. $as_echo "yes" >&6; }
  17275. else
  17276. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17277. $as_echo "no" >&6; }
  17278. fi
  17279. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17280. # Disable large allocation report by default.
  17281. # Check whether --enable-large-alloc-report was given.
  17282. if test "${enable_large_alloc_report+set}" = set; then :
  17283. enableval=$enable_large_alloc_report; enable_large_alloc_report="$enableval"
  17284. else
  17285. enable_large_alloc_report=no
  17286. fi
  17287. if test "x$enable_large_alloc_report" = xyes; then :
  17288. $as_echo "#define ENABLE_LARGE_ALLOC_REPORT 1" >>confdefs.h
  17289. fi
  17290. # Enable aggressive decommit by default
  17291. # Check whether --enable-aggressive-decommit-by-default was given.
  17292. if test "${enable_aggressive_decommit_by_default+set}" = set; then :
  17293. enableval=$enable_aggressive_decommit_by_default; enable_aggressive_decommit_by_default="$enableval"
  17294. else
  17295. enable_aggressive_decommit_by_default=no
  17296. fi
  17297. if test "x$enable_aggressive_decommit_by_default" = xyes; then :
  17298. $as_echo "#define ENABLE_AGGRESSIVE_DECOMMIT_BY_DEFAULT 1" >>confdefs.h
  17299. fi
  17300. # Write generated configuration file
  17301. ac_config_files="$ac_config_files Makefile src/gperftools/tcmalloc.h src/windows/gperftools/tcmalloc.h"
  17302. cat >confcache <<\_ACEOF
  17303. # This file is a shell script that caches the results of configure
  17304. # tests run on this system so they can be shared between configure
  17305. # scripts and configure runs, see configure's option --config-cache.
  17306. # It is not useful on other systems. If it contains results you don't
  17307. # want to keep, you may remove or edit it.
  17308. #
  17309. # config.status only pays attention to the cache file if you give it
  17310. # the --recheck option to rerun configure.
  17311. #
  17312. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  17313. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  17314. # following values.
  17315. _ACEOF
  17316. # The following way of writing the cache mishandles newlines in values,
  17317. # but we know of no workaround that is simple, portable, and efficient.
  17318. # So, we kill variables containing newlines.
  17319. # Ultrix sh set writes to stderr and can't be redirected directly,
  17320. # and sets the high bit in the cache file unless we assign to the vars.
  17321. (
  17322. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  17323. eval ac_val=\$$ac_var
  17324. case $ac_val in #(
  17325. *${as_nl}*)
  17326. case $ac_var in #(
  17327. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  17328. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  17329. esac
  17330. case $ac_var in #(
  17331. _ | IFS | as_nl) ;; #(
  17332. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  17333. *) { eval $ac_var=; unset $ac_var;} ;;
  17334. esac ;;
  17335. esac
  17336. done
  17337. (set) 2>&1 |
  17338. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  17339. *${as_nl}ac_space=\ *)
  17340. # `set' does not quote correctly, so add quotes: double-quote
  17341. # substitution turns \\\\ into \\, and sed turns \\ into \.
  17342. sed -n \
  17343. "s/'/'\\\\''/g;
  17344. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  17345. ;; #(
  17346. *)
  17347. # `set' quotes correctly as required by POSIX, so do not add quotes.
  17348. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  17349. ;;
  17350. esac |
  17351. sort
  17352. ) |
  17353. sed '
  17354. /^ac_cv_env_/b end
  17355. t clear
  17356. :clear
  17357. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  17358. t end
  17359. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  17360. :end' >>confcache
  17361. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  17362. if test -w "$cache_file"; then
  17363. if test "x$cache_file" != "x/dev/null"; then
  17364. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  17365. $as_echo "$as_me: updating cache $cache_file" >&6;}
  17366. if test ! -f "$cache_file" || test -h "$cache_file"; then
  17367. cat confcache >"$cache_file"
  17368. else
  17369. case $cache_file in #(
  17370. */* | ?:*)
  17371. mv -f confcache "$cache_file"$$ &&
  17372. mv -f "$cache_file"$$ "$cache_file" ;; #(
  17373. *)
  17374. mv -f confcache "$cache_file" ;;
  17375. esac
  17376. fi
  17377. fi
  17378. else
  17379. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  17380. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  17381. fi
  17382. fi
  17383. rm -f confcache
  17384. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  17385. # Let make expand exec_prefix.
  17386. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  17387. DEFS=-DHAVE_CONFIG_H
  17388. ac_libobjs=
  17389. ac_ltlibobjs=
  17390. U=
  17391. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  17392. # 1. Remove the extension, and $U if already installed.
  17393. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  17394. ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  17395. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  17396. # will be set to the directory where LIBOBJS objects are built.
  17397. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  17398. as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  17399. done
  17400. LIBOBJS=$ac_libobjs
  17401. LTLIBOBJS=$ac_ltlibobjs
  17402. { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
  17403. $as_echo_n "checking that generated files are newer than configure... " >&6; }
  17404. if test -n "$am_sleep_pid"; then
  17405. # Hide warnings about reused PIDs.
  17406. wait $am_sleep_pid 2>/dev/null
  17407. fi
  17408. { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
  17409. $as_echo "done" >&6; }
  17410. if test -n "$EXEEXT"; then
  17411. am__EXEEXT_TRUE=
  17412. am__EXEEXT_FALSE='#'
  17413. else
  17414. am__EXEEXT_TRUE='#'
  17415. am__EXEEXT_FALSE=
  17416. fi
  17417. if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
  17418. as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
  17419. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  17420. fi
  17421. if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
  17422. as_fn_error $? "conditional \"AMDEP\" was never defined.
  17423. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  17424. fi
  17425. if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  17426. as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
  17427. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  17428. fi
  17429. if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
  17430. as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
  17431. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  17432. fi
  17433. if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  17434. as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
  17435. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  17436. fi
  17437. if test -z "${GCC_TRUE}" && test -z "${GCC_FALSE}"; then
  17438. as_fn_error $? "conditional \"GCC\" was never defined.
  17439. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  17440. fi
  17441. if test -z "${HAVE_OBJCOPY_WEAKEN_TRUE}" && test -z "${HAVE_OBJCOPY_WEAKEN_FALSE}"; then
  17442. as_fn_error $? "conditional \"HAVE_OBJCOPY_WEAKEN\" was never defined.
  17443. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  17444. fi
  17445. if test -z "${ENABLE_STATIC_TRUE}" && test -z "${ENABLE_STATIC_FALSE}"; then
  17446. as_fn_error $? "conditional \"ENABLE_STATIC\" was never defined.
  17447. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  17448. fi
  17449. if test -z "${ENABLE_FRAME_POINTERS_TRUE}" && test -z "${ENABLE_FRAME_POINTERS_FALSE}"; then
  17450. as_fn_error $? "conditional \"ENABLE_FRAME_POINTERS\" was never defined.
  17451. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  17452. fi
  17453. if test -z "${OMIT_FP_BY_DEFAULT_TRUE}" && test -z "${OMIT_FP_BY_DEFAULT_FALSE}"; then
  17454. as_fn_error $? "conditional \"OMIT_FP_BY_DEFAULT\" was never defined.
  17455. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  17456. fi
  17457. if test -z "${I386_TRUE}" && test -z "${I386_FALSE}"; then
  17458. as_fn_error $? "conditional \"I386\" was never defined.
  17459. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  17460. fi
  17461. if test -z "${HAVE_W_NO_UNUSED_RESULT_TRUE}" && test -z "${HAVE_W_NO_UNUSED_RESULT_FALSE}"; then
  17462. as_fn_error $? "conditional \"HAVE_W_NO_UNUSED_RESULT\" was never defined.
  17463. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  17464. fi
  17465. if test -z "${INSTALL_PPROF_TRUE}" && test -z "${INSTALL_PPROF_FALSE}"; then
  17466. as_fn_error $? "conditional \"INSTALL_PPROF\" was never defined.
  17467. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  17468. fi
  17469. if test -z "${HAVE_SIZED_DEALLOCATION_TRUE}" && test -z "${HAVE_SIZED_DEALLOCATION_FALSE}"; then
  17470. as_fn_error $? "conditional \"HAVE_SIZED_DEALLOCATION\" was never defined.
  17471. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  17472. fi
  17473. if test -z "${HAVE_F_ALIGNED_NEW_TRUE}" && test -z "${HAVE_F_ALIGNED_NEW_FALSE}"; then
  17474. as_fn_error $? "conditional \"HAVE_F_ALIGNED_NEW\" was never defined.
  17475. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  17476. fi
  17477. if test -z "${BUILD_EMERGENCY_MALLOC_TRUE}" && test -z "${BUILD_EMERGENCY_MALLOC_FALSE}"; then
  17478. as_fn_error $? "conditional \"BUILD_EMERGENCY_MALLOC\" was never defined.
  17479. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  17480. fi
  17481. if test -z "${HAVE_PTHREAD_DESPITE_ASKING_FOR_TRUE}" && test -z "${HAVE_PTHREAD_DESPITE_ASKING_FOR_FALSE}"; then
  17482. as_fn_error $? "conditional \"HAVE_PTHREAD_DESPITE_ASKING_FOR\" was never defined.
  17483. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  17484. fi
  17485. if test -z "${MINGW_TRUE}" && test -z "${MINGW_FALSE}"; then
  17486. as_fn_error $? "conditional \"MINGW\" was never defined.
  17487. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  17488. fi
  17489. if test -z "${OSX_TRUE}" && test -z "${OSX_FALSE}"; then
  17490. as_fn_error $? "conditional \"OSX\" was never defined.
  17491. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  17492. fi
  17493. if test -z "${WITH_CPU_PROFILER_TRUE}" && test -z "${WITH_CPU_PROFILER_FALSE}"; then
  17494. as_fn_error $? "conditional \"WITH_CPU_PROFILER\" was never defined.
  17495. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  17496. fi
  17497. if test -z "${WITH_HEAP_PROFILER_TRUE}" && test -z "${WITH_HEAP_PROFILER_FALSE}"; then
  17498. as_fn_error $? "conditional \"WITH_HEAP_PROFILER\" was never defined.
  17499. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  17500. fi
  17501. if test -z "${WITH_HEAP_CHECKER_TRUE}" && test -z "${WITH_HEAP_CHECKER_FALSE}"; then
  17502. as_fn_error $? "conditional \"WITH_HEAP_CHECKER\" was never defined.
  17503. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  17504. fi
  17505. if test -z "${WITH_DEBUGALLOC_TRUE}" && test -z "${WITH_DEBUGALLOC_FALSE}"; then
  17506. as_fn_error $? "conditional \"WITH_DEBUGALLOC\" was never defined.
  17507. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  17508. fi
  17509. if test -z "${WITH_HEAP_PROFILER_OR_CHECKER_TRUE}" && test -z "${WITH_HEAP_PROFILER_OR_CHECKER_FALSE}"; then
  17510. as_fn_error $? "conditional \"WITH_HEAP_PROFILER_OR_CHECKER\" was never defined.
  17511. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  17512. fi
  17513. if test -z "${WITH_STACK_TRACE_TRUE}" && test -z "${WITH_STACK_TRACE_FALSE}"; then
  17514. as_fn_error $? "conditional \"WITH_STACK_TRACE\" was never defined.
  17515. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  17516. fi
  17517. : "${CONFIG_STATUS=./config.status}"
  17518. ac_write_fail=0
  17519. ac_clean_files_save=$ac_clean_files
  17520. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  17521. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  17522. $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  17523. as_write_fail=0
  17524. cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  17525. #! $SHELL
  17526. # Generated by $as_me.
  17527. # Run this file to recreate the current configuration.
  17528. # Compiler output produced by configure, useful for debugging
  17529. # configure, is in config.log if it exists.
  17530. debug=false
  17531. ac_cs_recheck=false
  17532. ac_cs_silent=false
  17533. SHELL=\${CONFIG_SHELL-$SHELL}
  17534. export SHELL
  17535. _ASEOF
  17536. cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  17537. ## -------------------- ##
  17538. ## M4sh Initialization. ##
  17539. ## -------------------- ##
  17540. # Be more Bourne compatible
  17541. DUALCASE=1; export DUALCASE # for MKS sh
  17542. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  17543. emulate sh
  17544. NULLCMD=:
  17545. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  17546. # is contrary to our usage. Disable this feature.
  17547. alias -g '${1+"$@"}'='"$@"'
  17548. setopt NO_GLOB_SUBST
  17549. else
  17550. case `(set -o) 2>/dev/null` in #(
  17551. *posix*) :
  17552. set -o posix ;; #(
  17553. *) :
  17554. ;;
  17555. esac
  17556. fi
  17557. as_nl='
  17558. '
  17559. export as_nl
  17560. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  17561. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  17562. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  17563. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  17564. # Prefer a ksh shell builtin over an external printf program on Solaris,
  17565. # but without wasting forks for bash or zsh.
  17566. if test -z "$BASH_VERSION$ZSH_VERSION" \
  17567. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  17568. as_echo='print -r --'
  17569. as_echo_n='print -rn --'
  17570. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  17571. as_echo='printf %s\n'
  17572. as_echo_n='printf %s'
  17573. else
  17574. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  17575. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  17576. as_echo_n='/usr/ucb/echo -n'
  17577. else
  17578. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  17579. as_echo_n_body='eval
  17580. arg=$1;
  17581. case $arg in #(
  17582. *"$as_nl"*)
  17583. expr "X$arg" : "X\\(.*\\)$as_nl";
  17584. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  17585. esac;
  17586. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  17587. '
  17588. export as_echo_n_body
  17589. as_echo_n='sh -c $as_echo_n_body as_echo'
  17590. fi
  17591. export as_echo_body
  17592. as_echo='sh -c $as_echo_body as_echo'
  17593. fi
  17594. # The user is always right.
  17595. if test "${PATH_SEPARATOR+set}" != set; then
  17596. PATH_SEPARATOR=:
  17597. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  17598. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  17599. PATH_SEPARATOR=';'
  17600. }
  17601. fi
  17602. # IFS
  17603. # We need space, tab and new line, in precisely that order. Quoting is
  17604. # there to prevent editors from complaining about space-tab.
  17605. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  17606. # splitting by setting IFS to empty value.)
  17607. IFS=" "" $as_nl"
  17608. # Find who we are. Look in the path if we contain no directory separator.
  17609. as_myself=
  17610. case $0 in #((
  17611. *[\\/]* ) as_myself=$0 ;;
  17612. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  17613. for as_dir in $PATH
  17614. do
  17615. IFS=$as_save_IFS
  17616. test -z "$as_dir" && as_dir=.
  17617. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  17618. done
  17619. IFS=$as_save_IFS
  17620. ;;
  17621. esac
  17622. # We did not find ourselves, most probably we were run as `sh COMMAND'
  17623. # in which case we are not to be found in the path.
  17624. if test "x$as_myself" = x; then
  17625. as_myself=$0
  17626. fi
  17627. if test ! -f "$as_myself"; then
  17628. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  17629. exit 1
  17630. fi
  17631. # Unset variables that we do not need and which cause bugs (e.g. in
  17632. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  17633. # suppresses any "Segmentation fault" message there. '((' could
  17634. # trigger a bug in pdksh 5.2.14.
  17635. for as_var in BASH_ENV ENV MAIL MAILPATH
  17636. do eval test x\${$as_var+set} = xset \
  17637. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  17638. done
  17639. PS1='$ '
  17640. PS2='> '
  17641. PS4='+ '
  17642. # NLS nuisances.
  17643. LC_ALL=C
  17644. export LC_ALL
  17645. LANGUAGE=C
  17646. export LANGUAGE
  17647. # CDPATH.
  17648. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  17649. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  17650. # ----------------------------------------
  17651. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  17652. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  17653. # script with STATUS, using 1 if that was 0.
  17654. as_fn_error ()
  17655. {
  17656. as_status=$1; test $as_status -eq 0 && as_status=1
  17657. if test "$4"; then
  17658. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  17659. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  17660. fi
  17661. $as_echo "$as_me: error: $2" >&2
  17662. as_fn_exit $as_status
  17663. } # as_fn_error
  17664. # as_fn_set_status STATUS
  17665. # -----------------------
  17666. # Set $? to STATUS, without forking.
  17667. as_fn_set_status ()
  17668. {
  17669. return $1
  17670. } # as_fn_set_status
  17671. # as_fn_exit STATUS
  17672. # -----------------
  17673. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  17674. as_fn_exit ()
  17675. {
  17676. set +e
  17677. as_fn_set_status $1
  17678. exit $1
  17679. } # as_fn_exit
  17680. # as_fn_unset VAR
  17681. # ---------------
  17682. # Portably unset VAR.
  17683. as_fn_unset ()
  17684. {
  17685. { eval $1=; unset $1;}
  17686. }
  17687. as_unset=as_fn_unset
  17688. # as_fn_append VAR VALUE
  17689. # ----------------------
  17690. # Append the text in VALUE to the end of the definition contained in VAR. Take
  17691. # advantage of any shell optimizations that allow amortized linear growth over
  17692. # repeated appends, instead of the typical quadratic growth present in naive
  17693. # implementations.
  17694. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  17695. eval 'as_fn_append ()
  17696. {
  17697. eval $1+=\$2
  17698. }'
  17699. else
  17700. as_fn_append ()
  17701. {
  17702. eval $1=\$$1\$2
  17703. }
  17704. fi # as_fn_append
  17705. # as_fn_arith ARG...
  17706. # ------------------
  17707. # Perform arithmetic evaluation on the ARGs, and store the result in the
  17708. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  17709. # must be portable across $(()) and expr.
  17710. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  17711. eval 'as_fn_arith ()
  17712. {
  17713. as_val=$(( $* ))
  17714. }'
  17715. else
  17716. as_fn_arith ()
  17717. {
  17718. as_val=`expr "$@" || test $? -eq 1`
  17719. }
  17720. fi # as_fn_arith
  17721. if expr a : '\(a\)' >/dev/null 2>&1 &&
  17722. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  17723. as_expr=expr
  17724. else
  17725. as_expr=false
  17726. fi
  17727. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  17728. as_basename=basename
  17729. else
  17730. as_basename=false
  17731. fi
  17732. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  17733. as_dirname=dirname
  17734. else
  17735. as_dirname=false
  17736. fi
  17737. as_me=`$as_basename -- "$0" ||
  17738. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  17739. X"$0" : 'X\(//\)$' \| \
  17740. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  17741. $as_echo X/"$0" |
  17742. sed '/^.*\/\([^/][^/]*\)\/*$/{
  17743. s//\1/
  17744. q
  17745. }
  17746. /^X\/\(\/\/\)$/{
  17747. s//\1/
  17748. q
  17749. }
  17750. /^X\/\(\/\).*/{
  17751. s//\1/
  17752. q
  17753. }
  17754. s/.*/./; q'`
  17755. # Avoid depending upon Character Ranges.
  17756. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  17757. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  17758. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  17759. as_cr_digits='0123456789'
  17760. as_cr_alnum=$as_cr_Letters$as_cr_digits
  17761. ECHO_C= ECHO_N= ECHO_T=
  17762. case `echo -n x` in #(((((
  17763. -n*)
  17764. case `echo 'xy\c'` in
  17765. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  17766. xy) ECHO_C='\c';;
  17767. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  17768. ECHO_T=' ';;
  17769. esac;;
  17770. *)
  17771. ECHO_N='-n';;
  17772. esac
  17773. rm -f conf$$ conf$$.exe conf$$.file
  17774. if test -d conf$$.dir; then
  17775. rm -f conf$$.dir/conf$$.file
  17776. else
  17777. rm -f conf$$.dir
  17778. mkdir conf$$.dir 2>/dev/null
  17779. fi
  17780. if (echo >conf$$.file) 2>/dev/null; then
  17781. if ln -s conf$$.file conf$$ 2>/dev/null; then
  17782. as_ln_s='ln -s'
  17783. # ... but there are two gotchas:
  17784. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  17785. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  17786. # In both cases, we have to default to `cp -pR'.
  17787. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  17788. as_ln_s='cp -pR'
  17789. elif ln conf$$.file conf$$ 2>/dev/null; then
  17790. as_ln_s=ln
  17791. else
  17792. as_ln_s='cp -pR'
  17793. fi
  17794. else
  17795. as_ln_s='cp -pR'
  17796. fi
  17797. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  17798. rmdir conf$$.dir 2>/dev/null
  17799. # as_fn_mkdir_p
  17800. # -------------
  17801. # Create "$as_dir" as a directory, including parents if necessary.
  17802. as_fn_mkdir_p ()
  17803. {
  17804. case $as_dir in #(
  17805. -*) as_dir=./$as_dir;;
  17806. esac
  17807. test -d "$as_dir" || eval $as_mkdir_p || {
  17808. as_dirs=
  17809. while :; do
  17810. case $as_dir in #(
  17811. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  17812. *) as_qdir=$as_dir;;
  17813. esac
  17814. as_dirs="'$as_qdir' $as_dirs"
  17815. as_dir=`$as_dirname -- "$as_dir" ||
  17816. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  17817. X"$as_dir" : 'X\(//\)[^/]' \| \
  17818. X"$as_dir" : 'X\(//\)$' \| \
  17819. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  17820. $as_echo X"$as_dir" |
  17821. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  17822. s//\1/
  17823. q
  17824. }
  17825. /^X\(\/\/\)[^/].*/{
  17826. s//\1/
  17827. q
  17828. }
  17829. /^X\(\/\/\)$/{
  17830. s//\1/
  17831. q
  17832. }
  17833. /^X\(\/\).*/{
  17834. s//\1/
  17835. q
  17836. }
  17837. s/.*/./; q'`
  17838. test -d "$as_dir" && break
  17839. done
  17840. test -z "$as_dirs" || eval "mkdir $as_dirs"
  17841. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  17842. } # as_fn_mkdir_p
  17843. if mkdir -p . 2>/dev/null; then
  17844. as_mkdir_p='mkdir -p "$as_dir"'
  17845. else
  17846. test -d ./-p && rmdir ./-p
  17847. as_mkdir_p=false
  17848. fi
  17849. # as_fn_executable_p FILE
  17850. # -----------------------
  17851. # Test if FILE is an executable regular file.
  17852. as_fn_executable_p ()
  17853. {
  17854. test -f "$1" && test -x "$1"
  17855. } # as_fn_executable_p
  17856. as_test_x='test -x'
  17857. as_executable_p=as_fn_executable_p
  17858. # Sed expression to map a string onto a valid CPP name.
  17859. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  17860. # Sed expression to map a string onto a valid variable name.
  17861. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  17862. exec 6>&1
  17863. ## ----------------------------------- ##
  17864. ## Main body of $CONFIG_STATUS script. ##
  17865. ## ----------------------------------- ##
  17866. _ASEOF
  17867. test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  17868. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  17869. # Save the log message, to keep $0 and so on meaningful, and to
  17870. # report actual input values of CONFIG_FILES etc. instead of their
  17871. # values after options handling.
  17872. ac_log="
  17873. This file was extended by gperftools $as_me 2.9.1, which was
  17874. generated by GNU Autoconf 2.69. Invocation command line was
  17875. CONFIG_FILES = $CONFIG_FILES
  17876. CONFIG_HEADERS = $CONFIG_HEADERS
  17877. CONFIG_LINKS = $CONFIG_LINKS
  17878. CONFIG_COMMANDS = $CONFIG_COMMANDS
  17879. $ $0 $@
  17880. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  17881. "
  17882. _ACEOF
  17883. case $ac_config_files in *"
  17884. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  17885. esac
  17886. case $ac_config_headers in *"
  17887. "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
  17888. esac
  17889. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  17890. # Files that config.status was made for.
  17891. config_files="$ac_config_files"
  17892. config_headers="$ac_config_headers"
  17893. config_commands="$ac_config_commands"
  17894. _ACEOF
  17895. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  17896. ac_cs_usage="\
  17897. \`$as_me' instantiates files and other configuration actions
  17898. from templates according to the current configuration. Unless the files
  17899. and actions are specified as TAGs, all are instantiated by default.
  17900. Usage: $0 [OPTION]... [TAG]...
  17901. -h, --help print this help, then exit
  17902. -V, --version print version number and configuration settings, then exit
  17903. --config print configuration, then exit
  17904. -q, --quiet, --silent
  17905. do not print progress messages
  17906. -d, --debug don't remove temporary files
  17907. --recheck update $as_me by reconfiguring in the same conditions
  17908. --file=FILE[:TEMPLATE]
  17909. instantiate the configuration file FILE
  17910. --header=FILE[:TEMPLATE]
  17911. instantiate the configuration header FILE
  17912. Configuration files:
  17913. $config_files
  17914. Configuration headers:
  17915. $config_headers
  17916. Configuration commands:
  17917. $config_commands
  17918. Report bugs to <gperftools@googlegroups.com>."
  17919. _ACEOF
  17920. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  17921. ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
  17922. ac_cs_version="\\
  17923. gperftools config.status 2.9.1
  17924. configured by $0, generated by GNU Autoconf 2.69,
  17925. with options \\"\$ac_cs_config\\"
  17926. Copyright (C) 2012 Free Software Foundation, Inc.
  17927. This config.status script is free software; the Free Software Foundation
  17928. gives unlimited permission to copy, distribute and modify it."
  17929. ac_pwd='$ac_pwd'
  17930. srcdir='$srcdir'
  17931. INSTALL='$INSTALL'
  17932. MKDIR_P='$MKDIR_P'
  17933. AWK='$AWK'
  17934. test -n "\$AWK" || AWK=awk
  17935. _ACEOF
  17936. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  17937. # The default lists apply if the user does not specify any file.
  17938. ac_need_defaults=:
  17939. while test $# != 0
  17940. do
  17941. case $1 in
  17942. --*=?*)
  17943. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  17944. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  17945. ac_shift=:
  17946. ;;
  17947. --*=)
  17948. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  17949. ac_optarg=
  17950. ac_shift=:
  17951. ;;
  17952. *)
  17953. ac_option=$1
  17954. ac_optarg=$2
  17955. ac_shift=shift
  17956. ;;
  17957. esac
  17958. case $ac_option in
  17959. # Handling of the options.
  17960. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  17961. ac_cs_recheck=: ;;
  17962. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  17963. $as_echo "$ac_cs_version"; exit ;;
  17964. --config | --confi | --conf | --con | --co | --c )
  17965. $as_echo "$ac_cs_config"; exit ;;
  17966. --debug | --debu | --deb | --de | --d | -d )
  17967. debug=: ;;
  17968. --file | --fil | --fi | --f )
  17969. $ac_shift
  17970. case $ac_optarg in
  17971. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  17972. '') as_fn_error $? "missing file argument" ;;
  17973. esac
  17974. as_fn_append CONFIG_FILES " '$ac_optarg'"
  17975. ac_need_defaults=false;;
  17976. --header | --heade | --head | --hea )
  17977. $ac_shift
  17978. case $ac_optarg in
  17979. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  17980. esac
  17981. as_fn_append CONFIG_HEADERS " '$ac_optarg'"
  17982. ac_need_defaults=false;;
  17983. --he | --h)
  17984. # Conflict between --help and --header
  17985. as_fn_error $? "ambiguous option: \`$1'
  17986. Try \`$0 --help' for more information.";;
  17987. --help | --hel | -h )
  17988. $as_echo "$ac_cs_usage"; exit ;;
  17989. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  17990. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  17991. ac_cs_silent=: ;;
  17992. # This is an error.
  17993. -*) as_fn_error $? "unrecognized option: \`$1'
  17994. Try \`$0 --help' for more information." ;;
  17995. *) as_fn_append ac_config_targets " $1"
  17996. ac_need_defaults=false ;;
  17997. esac
  17998. shift
  17999. done
  18000. ac_configure_extra_args=
  18001. if $ac_cs_silent; then
  18002. exec 6>/dev/null
  18003. ac_configure_extra_args="$ac_configure_extra_args --silent"
  18004. fi
  18005. _ACEOF
  18006. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  18007. if \$ac_cs_recheck; then
  18008. set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  18009. shift
  18010. \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  18011. CONFIG_SHELL='$SHELL'
  18012. export CONFIG_SHELL
  18013. exec "\$@"
  18014. fi
  18015. _ACEOF
  18016. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  18017. exec 5>>config.log
  18018. {
  18019. echo
  18020. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  18021. ## Running $as_me. ##
  18022. _ASBOX
  18023. $as_echo "$ac_log"
  18024. } >&5
  18025. _ACEOF
  18026. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  18027. #
  18028. # INIT-COMMANDS
  18029. #
  18030. AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
  18031. # The HP-UX ksh and POSIX shell print the target directory to stdout
  18032. # if CDPATH is set.
  18033. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  18034. sed_quote_subst='$sed_quote_subst'
  18035. double_quote_subst='$double_quote_subst'
  18036. delay_variable_subst='$delay_variable_subst'
  18037. macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
  18038. macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
  18039. enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
  18040. enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
  18041. pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
  18042. enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
  18043. shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
  18044. SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
  18045. ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
  18046. PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
  18047. host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
  18048. host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
  18049. host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
  18050. build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
  18051. build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
  18052. build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
  18053. SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
  18054. Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
  18055. GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
  18056. EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
  18057. FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
  18058. LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
  18059. NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
  18060. LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
  18061. max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
  18062. ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
  18063. exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
  18064. lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
  18065. lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
  18066. lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
  18067. lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
  18068. lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
  18069. reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
  18070. reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
  18071. OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
  18072. deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
  18073. file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
  18074. file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
  18075. want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
  18076. DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
  18077. sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
  18078. AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
  18079. AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
  18080. archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
  18081. STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
  18082. RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
  18083. old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  18084. old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  18085. old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
  18086. lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
  18087. CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
  18088. CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
  18089. compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
  18090. GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
  18091. lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
  18092. lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
  18093. lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
  18094. lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
  18095. 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"`'
  18096. lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
  18097. nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
  18098. lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
  18099. lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
  18100. objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
  18101. MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
  18102. lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
  18103. lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
  18104. lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
  18105. lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
  18106. lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
  18107. need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
  18108. MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
  18109. DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
  18110. NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
  18111. LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
  18112. OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
  18113. OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
  18114. libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
  18115. shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
  18116. extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  18117. archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
  18118. enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
  18119. export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
  18120. whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
  18121. compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
  18122. old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
  18123. old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  18124. archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
  18125. archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  18126. module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
  18127. module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  18128. with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
  18129. allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
  18130. no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
  18131. hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
  18132. hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
  18133. hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
  18134. hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
  18135. hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
  18136. hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
  18137. hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
  18138. inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
  18139. link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
  18140. always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
  18141. export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
  18142. exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
  18143. include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
  18144. prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
  18145. postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
  18146. file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
  18147. variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
  18148. need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
  18149. need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
  18150. version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
  18151. runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
  18152. shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
  18153. shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
  18154. libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
  18155. library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
  18156. soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
  18157. install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
  18158. postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  18159. postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  18160. finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
  18161. finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
  18162. hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
  18163. sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
  18164. configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
  18165. configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
  18166. hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
  18167. enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
  18168. enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
  18169. enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
  18170. old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
  18171. striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
  18172. compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
  18173. predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
  18174. postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
  18175. predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
  18176. postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
  18177. compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
  18178. LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
  18179. reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
  18180. reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  18181. old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  18182. compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
  18183. GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
  18184. lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
  18185. lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
  18186. lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
  18187. lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
  18188. lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
  18189. archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
  18190. enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
  18191. export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  18192. whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  18193. compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
  18194. old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  18195. old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  18196. archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  18197. archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  18198. module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  18199. module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  18200. with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
  18201. allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
  18202. no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
  18203. hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  18204. hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
  18205. hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
  18206. hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
  18207. hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
  18208. hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
  18209. hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
  18210. inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
  18211. link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
  18212. always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
  18213. export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  18214. exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
  18215. include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
  18216. prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  18217. postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  18218. file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
  18219. hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
  18220. compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
  18221. predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
  18222. postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
  18223. predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
  18224. postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
  18225. compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
  18226. LTCC='$LTCC'
  18227. LTCFLAGS='$LTCFLAGS'
  18228. compiler='$compiler_DEFAULT'
  18229. # A function that is used when there is no print builtin or printf.
  18230. func_fallback_echo ()
  18231. {
  18232. eval 'cat <<_LTECHO_EOF
  18233. \$1
  18234. _LTECHO_EOF'
  18235. }
  18236. # Quote evaled strings.
  18237. for var in SHELL \
  18238. ECHO \
  18239. PATH_SEPARATOR \
  18240. SED \
  18241. GREP \
  18242. EGREP \
  18243. FGREP \
  18244. LD \
  18245. NM \
  18246. LN_S \
  18247. lt_SP2NL \
  18248. lt_NL2SP \
  18249. reload_flag \
  18250. OBJDUMP \
  18251. deplibs_check_method \
  18252. file_magic_cmd \
  18253. file_magic_glob \
  18254. want_nocaseglob \
  18255. DLLTOOL \
  18256. sharedlib_from_linklib_cmd \
  18257. AR \
  18258. AR_FLAGS \
  18259. archiver_list_spec \
  18260. STRIP \
  18261. RANLIB \
  18262. CC \
  18263. CFLAGS \
  18264. compiler \
  18265. lt_cv_sys_global_symbol_pipe \
  18266. lt_cv_sys_global_symbol_to_cdecl \
  18267. lt_cv_sys_global_symbol_to_import \
  18268. lt_cv_sys_global_symbol_to_c_name_address \
  18269. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
  18270. lt_cv_nm_interface \
  18271. nm_file_list_spec \
  18272. lt_cv_truncate_bin \
  18273. lt_prog_compiler_no_builtin_flag \
  18274. lt_prog_compiler_pic \
  18275. lt_prog_compiler_wl \
  18276. lt_prog_compiler_static \
  18277. lt_cv_prog_compiler_c_o \
  18278. need_locks \
  18279. MANIFEST_TOOL \
  18280. DSYMUTIL \
  18281. NMEDIT \
  18282. LIPO \
  18283. OTOOL \
  18284. OTOOL64 \
  18285. shrext_cmds \
  18286. export_dynamic_flag_spec \
  18287. whole_archive_flag_spec \
  18288. compiler_needs_object \
  18289. with_gnu_ld \
  18290. allow_undefined_flag \
  18291. no_undefined_flag \
  18292. hardcode_libdir_flag_spec \
  18293. hardcode_libdir_separator \
  18294. exclude_expsyms \
  18295. include_expsyms \
  18296. file_list_spec \
  18297. variables_saved_for_relink \
  18298. libname_spec \
  18299. library_names_spec \
  18300. soname_spec \
  18301. install_override_mode \
  18302. finish_eval \
  18303. old_striplib \
  18304. striplib \
  18305. compiler_lib_search_dirs \
  18306. predep_objects \
  18307. postdep_objects \
  18308. predeps \
  18309. postdeps \
  18310. compiler_lib_search_path \
  18311. LD_CXX \
  18312. reload_flag_CXX \
  18313. compiler_CXX \
  18314. lt_prog_compiler_no_builtin_flag_CXX \
  18315. lt_prog_compiler_pic_CXX \
  18316. lt_prog_compiler_wl_CXX \
  18317. lt_prog_compiler_static_CXX \
  18318. lt_cv_prog_compiler_c_o_CXX \
  18319. export_dynamic_flag_spec_CXX \
  18320. whole_archive_flag_spec_CXX \
  18321. compiler_needs_object_CXX \
  18322. with_gnu_ld_CXX \
  18323. allow_undefined_flag_CXX \
  18324. no_undefined_flag_CXX \
  18325. hardcode_libdir_flag_spec_CXX \
  18326. hardcode_libdir_separator_CXX \
  18327. exclude_expsyms_CXX \
  18328. include_expsyms_CXX \
  18329. file_list_spec_CXX \
  18330. compiler_lib_search_dirs_CXX \
  18331. predep_objects_CXX \
  18332. postdep_objects_CXX \
  18333. predeps_CXX \
  18334. postdeps_CXX \
  18335. compiler_lib_search_path_CXX; do
  18336. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  18337. *[\\\\\\\`\\"\\\$]*)
  18338. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
  18339. ;;
  18340. *)
  18341. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  18342. ;;
  18343. esac
  18344. done
  18345. # Double-quote double-evaled strings.
  18346. for var in reload_cmds \
  18347. old_postinstall_cmds \
  18348. old_postuninstall_cmds \
  18349. old_archive_cmds \
  18350. extract_expsyms_cmds \
  18351. old_archive_from_new_cmds \
  18352. old_archive_from_expsyms_cmds \
  18353. archive_cmds \
  18354. archive_expsym_cmds \
  18355. module_cmds \
  18356. module_expsym_cmds \
  18357. export_symbols_cmds \
  18358. prelink_cmds \
  18359. postlink_cmds \
  18360. postinstall_cmds \
  18361. postuninstall_cmds \
  18362. finish_cmds \
  18363. sys_lib_search_path_spec \
  18364. configure_time_dlsearch_path \
  18365. configure_time_lt_sys_library_path \
  18366. reload_cmds_CXX \
  18367. old_archive_cmds_CXX \
  18368. old_archive_from_new_cmds_CXX \
  18369. old_archive_from_expsyms_cmds_CXX \
  18370. archive_cmds_CXX \
  18371. archive_expsym_cmds_CXX \
  18372. module_cmds_CXX \
  18373. module_expsym_cmds_CXX \
  18374. export_symbols_cmds_CXX \
  18375. prelink_cmds_CXX \
  18376. postlink_cmds_CXX; do
  18377. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  18378. *[\\\\\\\`\\"\\\$]*)
  18379. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
  18380. ;;
  18381. *)
  18382. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  18383. ;;
  18384. esac
  18385. done
  18386. ac_aux_dir='$ac_aux_dir'
  18387. # See if we are running on zsh, and set the options that allow our
  18388. # commands through without removal of \ escapes INIT.
  18389. if test -n "\${ZSH_VERSION+set}"; then
  18390. setopt NO_GLOB_SUBST
  18391. fi
  18392. PACKAGE='$PACKAGE'
  18393. VERSION='$VERSION'
  18394. RM='$RM'
  18395. ofile='$ofile'
  18396. _ACEOF
  18397. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  18398. # Handling of arguments.
  18399. for ac_config_target in $ac_config_targets
  18400. do
  18401. case $ac_config_target in
  18402. "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h" ;;
  18403. "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
  18404. "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
  18405. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  18406. "src/gperftools/tcmalloc.h") CONFIG_FILES="$CONFIG_FILES src/gperftools/tcmalloc.h" ;;
  18407. "src/windows/gperftools/tcmalloc.h") CONFIG_FILES="$CONFIG_FILES src/windows/gperftools/tcmalloc.h" ;;
  18408. *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  18409. esac
  18410. done
  18411. # If the user did not use the arguments to specify the items to instantiate,
  18412. # then the envvar interface is used. Set only those that are not.
  18413. # We use the long form for the default assignment because of an extremely
  18414. # bizarre bug on SunOS 4.1.3.
  18415. if $ac_need_defaults; then
  18416. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  18417. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  18418. test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  18419. fi
  18420. # Have a temporary directory for convenience. Make it in the build tree
  18421. # simply because there is no reason against having it here, and in addition,
  18422. # creating and moving files from /tmp can sometimes cause problems.
  18423. # Hook for its removal unless debugging.
  18424. # Note that there is a small window in which the directory will not be cleaned:
  18425. # after its creation but before its name has been assigned to `$tmp'.
  18426. $debug ||
  18427. {
  18428. tmp= ac_tmp=
  18429. trap 'exit_status=$?
  18430. : "${ac_tmp:=$tmp}"
  18431. { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
  18432. ' 0
  18433. trap 'as_fn_exit 1' 1 2 13 15
  18434. }
  18435. # Create a (secure) tmp directory for tmp files.
  18436. {
  18437. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  18438. test -d "$tmp"
  18439. } ||
  18440. {
  18441. tmp=./conf$$-$RANDOM
  18442. (umask 077 && mkdir "$tmp")
  18443. } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
  18444. ac_tmp=$tmp
  18445. # Set up the scripts for CONFIG_FILES section.
  18446. # No need to generate them if there are no CONFIG_FILES.
  18447. # This happens for instance with `./config.status config.h'.
  18448. if test -n "$CONFIG_FILES"; then
  18449. ac_cr=`echo X | tr X '\015'`
  18450. # On cygwin, bash can eat \r inside `` if the user requested igncr.
  18451. # But we know of no other shell where ac_cr would be empty at this
  18452. # point, so we can use a bashism as a fallback.
  18453. if test "x$ac_cr" = x; then
  18454. eval ac_cr=\$\'\\r\'
  18455. fi
  18456. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  18457. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  18458. ac_cs_awk_cr='\\r'
  18459. else
  18460. ac_cs_awk_cr=$ac_cr
  18461. fi
  18462. echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
  18463. _ACEOF
  18464. {
  18465. echo "cat >conf$$subs.awk <<_ACEOF" &&
  18466. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  18467. echo "_ACEOF"
  18468. } >conf$$subs.sh ||
  18469. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  18470. ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
  18471. ac_delim='%!_!# '
  18472. for ac_last_try in false false false false false :; do
  18473. . ./conf$$subs.sh ||
  18474. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  18475. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  18476. if test $ac_delim_n = $ac_delim_num; then
  18477. break
  18478. elif $ac_last_try; then
  18479. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  18480. else
  18481. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  18482. fi
  18483. done
  18484. rm -f conf$$subs.sh
  18485. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  18486. cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
  18487. _ACEOF
  18488. sed -n '
  18489. h
  18490. s/^/S["/; s/!.*/"]=/
  18491. p
  18492. g
  18493. s/^[^!]*!//
  18494. :repl
  18495. t repl
  18496. s/'"$ac_delim"'$//
  18497. t delim
  18498. :nl
  18499. h
  18500. s/\(.\{148\}\)..*/\1/
  18501. t more1
  18502. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  18503. p
  18504. n
  18505. b repl
  18506. :more1
  18507. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  18508. p
  18509. g
  18510. s/.\{148\}//
  18511. t nl
  18512. :delim
  18513. h
  18514. s/\(.\{148\}\)..*/\1/
  18515. t more2
  18516. s/["\\]/\\&/g; s/^/"/; s/$/"/
  18517. p
  18518. b
  18519. :more2
  18520. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  18521. p
  18522. g
  18523. s/.\{148\}//
  18524. t delim
  18525. ' <conf$$subs.awk | sed '
  18526. /^[^""]/{
  18527. N
  18528. s/\n//
  18529. }
  18530. ' >>$CONFIG_STATUS || ac_write_fail=1
  18531. rm -f conf$$subs.awk
  18532. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  18533. _ACAWK
  18534. cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
  18535. for (key in S) S_is_set[key] = 1
  18536. FS = ""
  18537. }
  18538. {
  18539. line = $ 0
  18540. nfields = split(line, field, "@")
  18541. substed = 0
  18542. len = length(field[1])
  18543. for (i = 2; i < nfields; i++) {
  18544. key = field[i]
  18545. keylen = length(key)
  18546. if (S_is_set[key]) {
  18547. value = S[key]
  18548. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  18549. len += length(value) + length(field[++i])
  18550. substed = 1
  18551. } else
  18552. len += 1 + keylen
  18553. }
  18554. print line
  18555. }
  18556. _ACAWK
  18557. _ACEOF
  18558. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  18559. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  18560. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  18561. else
  18562. cat
  18563. fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
  18564. || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
  18565. _ACEOF
  18566. # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
  18567. # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
  18568. # trailing colons and then remove the whole line if VPATH becomes empty
  18569. # (actually we leave an empty line to preserve line numbers).
  18570. if test "x$srcdir" = x.; then
  18571. ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
  18572. h
  18573. s///
  18574. s/^/:/
  18575. s/[ ]*$/:/
  18576. s/:\$(srcdir):/:/g
  18577. s/:\${srcdir}:/:/g
  18578. s/:@srcdir@:/:/g
  18579. s/^:*//
  18580. s/:*$//
  18581. x
  18582. s/\(=[ ]*\).*/\1/
  18583. G
  18584. s/\n//
  18585. s/^[^=]*=[ ]*$//
  18586. }'
  18587. fi
  18588. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  18589. fi # test -n "$CONFIG_FILES"
  18590. # Set up the scripts for CONFIG_HEADERS section.
  18591. # No need to generate them if there are no CONFIG_HEADERS.
  18592. # This happens for instance with `./config.status Makefile'.
  18593. if test -n "$CONFIG_HEADERS"; then
  18594. cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
  18595. BEGIN {
  18596. _ACEOF
  18597. # Transform confdefs.h into an awk script `defines.awk', embedded as
  18598. # here-document in config.status, that substitutes the proper values into
  18599. # config.h.in to produce config.h.
  18600. # Create a delimiter string that does not exist in confdefs.h, to ease
  18601. # handling of long lines.
  18602. ac_delim='%!_!# '
  18603. for ac_last_try in false false :; do
  18604. ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
  18605. if test -z "$ac_tt"; then
  18606. break
  18607. elif $ac_last_try; then
  18608. as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
  18609. else
  18610. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  18611. fi
  18612. done
  18613. # For the awk script, D is an array of macro values keyed by name,
  18614. # likewise P contains macro parameters if any. Preserve backslash
  18615. # newline sequences.
  18616. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  18617. sed -n '
  18618. s/.\{148\}/&'"$ac_delim"'/g
  18619. t rset
  18620. :rset
  18621. s/^[ ]*#[ ]*define[ ][ ]*/ /
  18622. t def
  18623. d
  18624. :def
  18625. s/\\$//
  18626. t bsnl
  18627. s/["\\]/\\&/g
  18628. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  18629. D["\1"]=" \3"/p
  18630. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
  18631. d
  18632. :bsnl
  18633. s/["\\]/\\&/g
  18634. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  18635. D["\1"]=" \3\\\\\\n"\\/p
  18636. t cont
  18637. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
  18638. t cont
  18639. d
  18640. :cont
  18641. n
  18642. s/.\{148\}/&'"$ac_delim"'/g
  18643. t clear
  18644. :clear
  18645. s/\\$//
  18646. t bsnlc
  18647. s/["\\]/\\&/g; s/^/"/; s/$/"/p
  18648. d
  18649. :bsnlc
  18650. s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
  18651. b cont
  18652. ' <confdefs.h | sed '
  18653. s/'"$ac_delim"'/"\\\
  18654. "/g' >>$CONFIG_STATUS || ac_write_fail=1
  18655. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  18656. for (key in D) D_is_set[key] = 1
  18657. FS = ""
  18658. }
  18659. /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  18660. line = \$ 0
  18661. split(line, arg, " ")
  18662. if (arg[1] == "#") {
  18663. defundef = arg[2]
  18664. mac1 = arg[3]
  18665. } else {
  18666. defundef = substr(arg[1], 2)
  18667. mac1 = arg[2]
  18668. }
  18669. split(mac1, mac2, "(") #)
  18670. macro = mac2[1]
  18671. prefix = substr(line, 1, index(line, defundef) - 1)
  18672. if (D_is_set[macro]) {
  18673. # Preserve the white space surrounding the "#".
  18674. print prefix "define", macro P[macro] D[macro]
  18675. next
  18676. } else {
  18677. # Replace #undef with comments. This is necessary, for example,
  18678. # in the case of _POSIX_SOURCE, which is predefined and required
  18679. # on some systems where configure will not decide to define it.
  18680. if (defundef == "undef") {
  18681. print "/*", prefix defundef, macro, "*/"
  18682. next
  18683. }
  18684. }
  18685. }
  18686. { print }
  18687. _ACAWK
  18688. _ACEOF
  18689. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  18690. as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
  18691. fi # test -n "$CONFIG_HEADERS"
  18692. eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
  18693. shift
  18694. for ac_tag
  18695. do
  18696. case $ac_tag in
  18697. :[FHLC]) ac_mode=$ac_tag; continue;;
  18698. esac
  18699. case $ac_mode$ac_tag in
  18700. :[FHL]*:*);;
  18701. :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
  18702. :[FH]-) ac_tag=-:-;;
  18703. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  18704. esac
  18705. ac_save_IFS=$IFS
  18706. IFS=:
  18707. set x $ac_tag
  18708. IFS=$ac_save_IFS
  18709. shift
  18710. ac_file=$1
  18711. shift
  18712. case $ac_mode in
  18713. :L) ac_source=$1;;
  18714. :[FH])
  18715. ac_file_inputs=
  18716. for ac_f
  18717. do
  18718. case $ac_f in
  18719. -) ac_f="$ac_tmp/stdin";;
  18720. *) # Look for the file first in the build tree, then in the source tree
  18721. # (if the path is not absolute). The absolute path cannot be DOS-style,
  18722. # because $ac_f cannot contain `:'.
  18723. test -f "$ac_f" ||
  18724. case $ac_f in
  18725. [\\/$]*) false;;
  18726. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  18727. esac ||
  18728. as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
  18729. esac
  18730. case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  18731. as_fn_append ac_file_inputs " '$ac_f'"
  18732. done
  18733. # Let's still pretend it is `configure' which instantiates (i.e., don't
  18734. # use $as_me), people would be surprised to read:
  18735. # /* config.h. Generated by config.status. */
  18736. configure_input='Generated from '`
  18737. $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  18738. `' by configure.'
  18739. if test x"$ac_file" != x-; then
  18740. configure_input="$ac_file. $configure_input"
  18741. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  18742. $as_echo "$as_me: creating $ac_file" >&6;}
  18743. fi
  18744. # Neutralize special characters interpreted by sed in replacement strings.
  18745. case $configure_input in #(
  18746. *\&* | *\|* | *\\* )
  18747. ac_sed_conf_input=`$as_echo "$configure_input" |
  18748. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  18749. *) ac_sed_conf_input=$configure_input;;
  18750. esac
  18751. case $ac_tag in
  18752. *:-:* | *:-) cat >"$ac_tmp/stdin" \
  18753. || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
  18754. esac
  18755. ;;
  18756. esac
  18757. ac_dir=`$as_dirname -- "$ac_file" ||
  18758. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  18759. X"$ac_file" : 'X\(//\)[^/]' \| \
  18760. X"$ac_file" : 'X\(//\)$' \| \
  18761. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  18762. $as_echo X"$ac_file" |
  18763. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  18764. s//\1/
  18765. q
  18766. }
  18767. /^X\(\/\/\)[^/].*/{
  18768. s//\1/
  18769. q
  18770. }
  18771. /^X\(\/\/\)$/{
  18772. s//\1/
  18773. q
  18774. }
  18775. /^X\(\/\).*/{
  18776. s//\1/
  18777. q
  18778. }
  18779. s/.*/./; q'`
  18780. as_dir="$ac_dir"; as_fn_mkdir_p
  18781. ac_builddir=.
  18782. case "$ac_dir" in
  18783. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  18784. *)
  18785. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  18786. # A ".." for each directory in $ac_dir_suffix.
  18787. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  18788. case $ac_top_builddir_sub in
  18789. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  18790. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  18791. esac ;;
  18792. esac
  18793. ac_abs_top_builddir=$ac_pwd
  18794. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  18795. # for backward compatibility:
  18796. ac_top_builddir=$ac_top_build_prefix
  18797. case $srcdir in
  18798. .) # We are building in place.
  18799. ac_srcdir=.
  18800. ac_top_srcdir=$ac_top_builddir_sub
  18801. ac_abs_top_srcdir=$ac_pwd ;;
  18802. [\\/]* | ?:[\\/]* ) # Absolute name.
  18803. ac_srcdir=$srcdir$ac_dir_suffix;
  18804. ac_top_srcdir=$srcdir
  18805. ac_abs_top_srcdir=$srcdir ;;
  18806. *) # Relative name.
  18807. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  18808. ac_top_srcdir=$ac_top_build_prefix$srcdir
  18809. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  18810. esac
  18811. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  18812. case $ac_mode in
  18813. :F)
  18814. #
  18815. # CONFIG_FILE
  18816. #
  18817. case $INSTALL in
  18818. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  18819. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  18820. esac
  18821. ac_MKDIR_P=$MKDIR_P
  18822. case $MKDIR_P in
  18823. [\\/$]* | ?:[\\/]* ) ;;
  18824. */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
  18825. esac
  18826. _ACEOF
  18827. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  18828. # If the template does not know about datarootdir, expand it.
  18829. # FIXME: This hack should be removed a few years after 2.60.
  18830. ac_datarootdir_hack=; ac_datarootdir_seen=
  18831. ac_sed_dataroot='
  18832. /datarootdir/ {
  18833. p
  18834. q
  18835. }
  18836. /@datadir@/p
  18837. /@docdir@/p
  18838. /@infodir@/p
  18839. /@localedir@/p
  18840. /@mandir@/p'
  18841. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  18842. *datarootdir*) ac_datarootdir_seen=yes;;
  18843. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  18844. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  18845. $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  18846. _ACEOF
  18847. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  18848. ac_datarootdir_hack='
  18849. s&@datadir@&$datadir&g
  18850. s&@docdir@&$docdir&g
  18851. s&@infodir@&$infodir&g
  18852. s&@localedir@&$localedir&g
  18853. s&@mandir@&$mandir&g
  18854. s&\\\${datarootdir}&$datarootdir&g' ;;
  18855. esac
  18856. _ACEOF
  18857. # Neutralize VPATH when `$srcdir' = `.'.
  18858. # Shell code in configure.ac might set extrasub.
  18859. # FIXME: do we really want to maintain this feature?
  18860. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  18861. ac_sed_extra="$ac_vpsub
  18862. $extrasub
  18863. _ACEOF
  18864. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  18865. :t
  18866. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  18867. s|@configure_input@|$ac_sed_conf_input|;t t
  18868. s&@top_builddir@&$ac_top_builddir_sub&;t t
  18869. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  18870. s&@srcdir@&$ac_srcdir&;t t
  18871. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  18872. s&@top_srcdir@&$ac_top_srcdir&;t t
  18873. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  18874. s&@builddir@&$ac_builddir&;t t
  18875. s&@abs_builddir@&$ac_abs_builddir&;t t
  18876. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  18877. s&@INSTALL@&$ac_INSTALL&;t t
  18878. s&@MKDIR_P@&$ac_MKDIR_P&;t t
  18879. $ac_datarootdir_hack
  18880. "
  18881. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
  18882. >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  18883. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  18884. { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
  18885. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
  18886. "$ac_tmp/out"`; test -z "$ac_out"; } &&
  18887. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  18888. which seems to be undefined. Please make sure it is defined" >&5
  18889. $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  18890. which seems to be undefined. Please make sure it is defined" >&2;}
  18891. rm -f "$ac_tmp/stdin"
  18892. case $ac_file in
  18893. -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
  18894. *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
  18895. esac \
  18896. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  18897. ;;
  18898. :H)
  18899. #
  18900. # CONFIG_HEADER
  18901. #
  18902. if test x"$ac_file" != x-; then
  18903. {
  18904. $as_echo "/* $configure_input */" \
  18905. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
  18906. } >"$ac_tmp/config.h" \
  18907. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  18908. if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
  18909. { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
  18910. $as_echo "$as_me: $ac_file is unchanged" >&6;}
  18911. else
  18912. rm -f "$ac_file"
  18913. mv "$ac_tmp/config.h" "$ac_file" \
  18914. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  18915. fi
  18916. else
  18917. $as_echo "/* $configure_input */" \
  18918. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
  18919. || as_fn_error $? "could not create -" "$LINENO" 5
  18920. fi
  18921. # Compute "$ac_file"'s index in $config_headers.
  18922. _am_arg="$ac_file"
  18923. _am_stamp_count=1
  18924. for _am_header in $config_headers :; do
  18925. case $_am_header in
  18926. $_am_arg | $_am_arg:* )
  18927. break ;;
  18928. * )
  18929. _am_stamp_count=`expr $_am_stamp_count + 1` ;;
  18930. esac
  18931. done
  18932. echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
  18933. $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  18934. X"$_am_arg" : 'X\(//\)[^/]' \| \
  18935. X"$_am_arg" : 'X\(//\)$' \| \
  18936. X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
  18937. $as_echo X"$_am_arg" |
  18938. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  18939. s//\1/
  18940. q
  18941. }
  18942. /^X\(\/\/\)[^/].*/{
  18943. s//\1/
  18944. q
  18945. }
  18946. /^X\(\/\/\)$/{
  18947. s//\1/
  18948. q
  18949. }
  18950. /^X\(\/\).*/{
  18951. s//\1/
  18952. q
  18953. }
  18954. s/.*/./; q'`/stamp-h$_am_stamp_count
  18955. ;;
  18956. :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
  18957. $as_echo "$as_me: executing $ac_file commands" >&6;}
  18958. ;;
  18959. esac
  18960. case $ac_file$ac_mode in
  18961. "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
  18962. # Older Autoconf quotes --file arguments for eval, but not when files
  18963. # are listed without --file. Let's play safe and only enable the eval
  18964. # if we detect the quoting.
  18965. # TODO: see whether this extra hack can be removed once we start
  18966. # requiring Autoconf 2.70 or later.
  18967. case $CONFIG_FILES in #(
  18968. *\'*) :
  18969. eval set x "$CONFIG_FILES" ;; #(
  18970. *) :
  18971. set x $CONFIG_FILES ;; #(
  18972. *) :
  18973. ;;
  18974. esac
  18975. shift
  18976. # Used to flag and report bootstrapping failures.
  18977. am_rc=0
  18978. for am_mf
  18979. do
  18980. # Strip MF so we end up with the name of the file.
  18981. am_mf=`$as_echo "$am_mf" | sed -e 's/:.*$//'`
  18982. # Check whether this is an Automake generated Makefile which includes
  18983. # dependency-tracking related rules and includes.
  18984. # Grep'ing the whole file directly is not great: AIX grep has a line
  18985. # limit of 2048, but all sed's we know have understand at least 4000.
  18986. sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
  18987. || continue
  18988. am_dirpart=`$as_dirname -- "$am_mf" ||
  18989. $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  18990. X"$am_mf" : 'X\(//\)[^/]' \| \
  18991. X"$am_mf" : 'X\(//\)$' \| \
  18992. X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
  18993. $as_echo X"$am_mf" |
  18994. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  18995. s//\1/
  18996. q
  18997. }
  18998. /^X\(\/\/\)[^/].*/{
  18999. s//\1/
  19000. q
  19001. }
  19002. /^X\(\/\/\)$/{
  19003. s//\1/
  19004. q
  19005. }
  19006. /^X\(\/\).*/{
  19007. s//\1/
  19008. q
  19009. }
  19010. s/.*/./; q'`
  19011. am_filepart=`$as_basename -- "$am_mf" ||
  19012. $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
  19013. X"$am_mf" : 'X\(//\)$' \| \
  19014. X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
  19015. $as_echo X/"$am_mf" |
  19016. sed '/^.*\/\([^/][^/]*\)\/*$/{
  19017. s//\1/
  19018. q
  19019. }
  19020. /^X\/\(\/\/\)$/{
  19021. s//\1/
  19022. q
  19023. }
  19024. /^X\/\(\/\).*/{
  19025. s//\1/
  19026. q
  19027. }
  19028. s/.*/./; q'`
  19029. { echo "$as_me:$LINENO: cd "$am_dirpart" \
  19030. && sed -e '/# am--include-marker/d' "$am_filepart" \
  19031. | $MAKE -f - am--depfiles" >&5
  19032. (cd "$am_dirpart" \
  19033. && sed -e '/# am--include-marker/d' "$am_filepart" \
  19034. | $MAKE -f - am--depfiles) >&5 2>&5
  19035. ac_status=$?
  19036. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19037. (exit $ac_status); } || am_rc=$?
  19038. done
  19039. if test $am_rc -ne 0; then
  19040. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  19041. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  19042. as_fn_error $? "Something went wrong bootstrapping makefile fragments
  19043. for automatic dependency tracking. If GNU make was not used, consider
  19044. re-running the configure script with MAKE=\"gmake\" (or whatever is
  19045. necessary). You can also try re-running configure with the
  19046. '--disable-dependency-tracking' option to at least be able to build
  19047. the package (albeit without support for automatic dependency tracking).
  19048. See \`config.log' for more details" "$LINENO" 5; }
  19049. fi
  19050. { am_dirpart=; unset am_dirpart;}
  19051. { am_filepart=; unset am_filepart;}
  19052. { am_mf=; unset am_mf;}
  19053. { am_rc=; unset am_rc;}
  19054. rm -f conftest-deps.mk
  19055. }
  19056. ;;
  19057. "libtool":C)
  19058. # See if we are running on zsh, and set the options that allow our
  19059. # commands through without removal of \ escapes.
  19060. if test -n "${ZSH_VERSION+set}"; then
  19061. setopt NO_GLOB_SUBST
  19062. fi
  19063. cfgfile=${ofile}T
  19064. trap "$RM \"$cfgfile\"; exit 1" 1 2 15
  19065. $RM "$cfgfile"
  19066. cat <<_LT_EOF >> "$cfgfile"
  19067. #! $SHELL
  19068. # Generated automatically by $as_me ($PACKAGE) $VERSION
  19069. # NOTE: Changes made to this file will be lost: look at ltmain.sh.
  19070. # Provide generalized library-building support services.
  19071. # Written by Gordon Matzigkeit, 1996
  19072. # Copyright (C) 2014 Free Software Foundation, Inc.
  19073. # This is free software; see the source for copying conditions. There is NO
  19074. # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  19075. # GNU Libtool is free software; you can redistribute it and/or modify
  19076. # it under the terms of the GNU General Public License as published by
  19077. # the Free Software Foundation; either version 2 of of the License, or
  19078. # (at your option) any later version.
  19079. #
  19080. # As a special exception to the GNU General Public License, if you
  19081. # distribute this file as part of a program or library that is built
  19082. # using GNU Libtool, you may include this file under the same
  19083. # distribution terms that you use for the rest of that program.
  19084. #
  19085. # GNU Libtool is distributed in the hope that it will be useful, but
  19086. # WITHOUT ANY WARRANTY; without even the implied warranty of
  19087. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  19088. # GNU General Public License for more details.
  19089. #
  19090. # You should have received a copy of the GNU General Public License
  19091. # along with this program. If not, see <http://www.gnu.org/licenses/>.
  19092. # The names of the tagged configurations supported by this script.
  19093. available_tags='CXX '
  19094. # Configured defaults for sys_lib_dlsearch_path munging.
  19095. : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
  19096. # ### BEGIN LIBTOOL CONFIG
  19097. # Which release of libtool.m4 was used?
  19098. macro_version=$macro_version
  19099. macro_revision=$macro_revision
  19100. # Whether or not to build shared libraries.
  19101. build_libtool_libs=$enable_shared
  19102. # Whether or not to build static libraries.
  19103. build_old_libs=$enable_static
  19104. # What type of objects to build.
  19105. pic_mode=$pic_mode
  19106. # Whether or not to optimize for fast installation.
  19107. fast_install=$enable_fast_install
  19108. # Shared archive member basename,for filename based shared library versioning on AIX.
  19109. shared_archive_member_spec=$shared_archive_member_spec
  19110. # Shell to use when invoking shell scripts.
  19111. SHELL=$lt_SHELL
  19112. # An echo program that protects backslashes.
  19113. ECHO=$lt_ECHO
  19114. # The PATH separator for the build system.
  19115. PATH_SEPARATOR=$lt_PATH_SEPARATOR
  19116. # The host system.
  19117. host_alias=$host_alias
  19118. host=$host
  19119. host_os=$host_os
  19120. # The build system.
  19121. build_alias=$build_alias
  19122. build=$build
  19123. build_os=$build_os
  19124. # A sed program that does not truncate output.
  19125. SED=$lt_SED
  19126. # Sed that helps us avoid accidentally triggering echo(1) options like -n.
  19127. Xsed="\$SED -e 1s/^X//"
  19128. # A grep program that handles long lines.
  19129. GREP=$lt_GREP
  19130. # An ERE matcher.
  19131. EGREP=$lt_EGREP
  19132. # A literal string matcher.
  19133. FGREP=$lt_FGREP
  19134. # A BSD- or MS-compatible name lister.
  19135. NM=$lt_NM
  19136. # Whether we need soft or hard links.
  19137. LN_S=$lt_LN_S
  19138. # What is the maximum length of a command?
  19139. max_cmd_len=$max_cmd_len
  19140. # Object file suffix (normally "o").
  19141. objext=$ac_objext
  19142. # Executable file suffix (normally "").
  19143. exeext=$exeext
  19144. # whether the shell understands "unset".
  19145. lt_unset=$lt_unset
  19146. # turn spaces into newlines.
  19147. SP2NL=$lt_lt_SP2NL
  19148. # turn newlines into spaces.
  19149. NL2SP=$lt_lt_NL2SP
  19150. # convert \$build file names to \$host format.
  19151. to_host_file_cmd=$lt_cv_to_host_file_cmd
  19152. # convert \$build files to toolchain format.
  19153. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  19154. # An object symbol dumper.
  19155. OBJDUMP=$lt_OBJDUMP
  19156. # Method to check whether dependent libraries are shared objects.
  19157. deplibs_check_method=$lt_deplibs_check_method
  19158. # Command to use when deplibs_check_method = "file_magic".
  19159. file_magic_cmd=$lt_file_magic_cmd
  19160. # How to find potential files when deplibs_check_method = "file_magic".
  19161. file_magic_glob=$lt_file_magic_glob
  19162. # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
  19163. want_nocaseglob=$lt_want_nocaseglob
  19164. # DLL creation program.
  19165. DLLTOOL=$lt_DLLTOOL
  19166. # Command to associate shared and link libraries.
  19167. sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
  19168. # The archiver.
  19169. AR=$lt_AR
  19170. # Flags to create an archive.
  19171. AR_FLAGS=$lt_AR_FLAGS
  19172. # How to feed a file listing to the archiver.
  19173. archiver_list_spec=$lt_archiver_list_spec
  19174. # A symbol stripping program.
  19175. STRIP=$lt_STRIP
  19176. # Commands used to install an old-style archive.
  19177. RANLIB=$lt_RANLIB
  19178. old_postinstall_cmds=$lt_old_postinstall_cmds
  19179. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  19180. # Whether to use a lock for old archive extraction.
  19181. lock_old_archive_extraction=$lock_old_archive_extraction
  19182. # A C compiler.
  19183. LTCC=$lt_CC
  19184. # LTCC compiler flags.
  19185. LTCFLAGS=$lt_CFLAGS
  19186. # Take the output of nm and produce a listing of raw symbols and C names.
  19187. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  19188. # Transform the output of nm in a proper C declaration.
  19189. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  19190. # Transform the output of nm into a list of symbols to manually relocate.
  19191. global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
  19192. # Transform the output of nm in a C name address pair.
  19193. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  19194. # Transform the output of nm in a C name address pair when lib prefix is needed.
  19195. global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
  19196. # The name lister interface.
  19197. nm_interface=$lt_lt_cv_nm_interface
  19198. # Specify filename containing input files for \$NM.
  19199. nm_file_list_spec=$lt_nm_file_list_spec
  19200. # The root where to search for dependent libraries,and where our libraries should be installed.
  19201. lt_sysroot=$lt_sysroot
  19202. # Command to truncate a binary pipe.
  19203. lt_truncate_bin=$lt_lt_cv_truncate_bin
  19204. # The name of the directory that contains temporary libtool files.
  19205. objdir=$objdir
  19206. # Used to examine libraries when file_magic_cmd begins with "file".
  19207. MAGIC_CMD=$MAGIC_CMD
  19208. # Must we lock files when doing compilation?
  19209. need_locks=$lt_need_locks
  19210. # Manifest tool.
  19211. MANIFEST_TOOL=$lt_MANIFEST_TOOL
  19212. # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
  19213. DSYMUTIL=$lt_DSYMUTIL
  19214. # Tool to change global to local symbols on Mac OS X.
  19215. NMEDIT=$lt_NMEDIT
  19216. # Tool to manipulate fat objects and archives on Mac OS X.
  19217. LIPO=$lt_LIPO
  19218. # ldd/readelf like tool for Mach-O binaries on Mac OS X.
  19219. OTOOL=$lt_OTOOL
  19220. # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
  19221. OTOOL64=$lt_OTOOL64
  19222. # Old archive suffix (normally "a").
  19223. libext=$libext
  19224. # Shared library suffix (normally ".so").
  19225. shrext_cmds=$lt_shrext_cmds
  19226. # The commands to extract the exported symbol list from a shared archive.
  19227. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  19228. # Variables whose values should be saved in libtool wrapper scripts and
  19229. # restored at link time.
  19230. variables_saved_for_relink=$lt_variables_saved_for_relink
  19231. # Do we need the "lib" prefix for modules?
  19232. need_lib_prefix=$need_lib_prefix
  19233. # Do we need a version for libraries?
  19234. need_version=$need_version
  19235. # Library versioning type.
  19236. version_type=$version_type
  19237. # Shared library runtime path variable.
  19238. runpath_var=$runpath_var
  19239. # Shared library path variable.
  19240. shlibpath_var=$shlibpath_var
  19241. # Is shlibpath searched before the hard-coded library search path?
  19242. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  19243. # Format of library name prefix.
  19244. libname_spec=$lt_libname_spec
  19245. # List of archive names. First name is the real one, the rest are links.
  19246. # The last name is the one that the linker finds with -lNAME
  19247. library_names_spec=$lt_library_names_spec
  19248. # The coded name of the library, if different from the real name.
  19249. soname_spec=$lt_soname_spec
  19250. # Permission mode override for installation of shared libraries.
  19251. install_override_mode=$lt_install_override_mode
  19252. # Command to use after installation of a shared archive.
  19253. postinstall_cmds=$lt_postinstall_cmds
  19254. # Command to use after uninstallation of a shared archive.
  19255. postuninstall_cmds=$lt_postuninstall_cmds
  19256. # Commands used to finish a libtool library installation in a directory.
  19257. finish_cmds=$lt_finish_cmds
  19258. # As "finish_cmds", except a single script fragment to be evaled but
  19259. # not shown.
  19260. finish_eval=$lt_finish_eval
  19261. # Whether we should hardcode library paths into libraries.
  19262. hardcode_into_libs=$hardcode_into_libs
  19263. # Compile-time system search path for libraries.
  19264. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  19265. # Detected run-time system search path for libraries.
  19266. sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
  19267. # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
  19268. configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
  19269. # Whether dlopen is supported.
  19270. dlopen_support=$enable_dlopen
  19271. # Whether dlopen of programs is supported.
  19272. dlopen_self=$enable_dlopen_self
  19273. # Whether dlopen of statically linked programs is supported.
  19274. dlopen_self_static=$enable_dlopen_self_static
  19275. # Commands to strip libraries.
  19276. old_striplib=$lt_old_striplib
  19277. striplib=$lt_striplib
  19278. # The linker used to build libraries.
  19279. LD=$lt_LD
  19280. # How to create reloadable object files.
  19281. reload_flag=$lt_reload_flag
  19282. reload_cmds=$lt_reload_cmds
  19283. # Commands used to build an old-style archive.
  19284. old_archive_cmds=$lt_old_archive_cmds
  19285. # A language specific compiler.
  19286. CC=$lt_compiler
  19287. # Is the compiler the GNU compiler?
  19288. with_gcc=$GCC
  19289. # Compiler flag to turn off builtin functions.
  19290. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
  19291. # Additional compiler flags for building library objects.
  19292. pic_flag=$lt_lt_prog_compiler_pic
  19293. # How to pass a linker flag through the compiler.
  19294. wl=$lt_lt_prog_compiler_wl
  19295. # Compiler flag to prevent dynamic linking.
  19296. link_static_flag=$lt_lt_prog_compiler_static
  19297. # Does compiler simultaneously support -c and -o options?
  19298. compiler_c_o=$lt_lt_cv_prog_compiler_c_o
  19299. # Whether or not to add -lc for building shared libraries.
  19300. build_libtool_need_lc=$archive_cmds_need_lc
  19301. # Whether or not to disallow shared libs when runtime libs are static.
  19302. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
  19303. # Compiler flag to allow reflexive dlopens.
  19304. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
  19305. # Compiler flag to generate shared objects directly from archives.
  19306. whole_archive_flag_spec=$lt_whole_archive_flag_spec
  19307. # Whether the compiler copes with passing no objects directly.
  19308. compiler_needs_object=$lt_compiler_needs_object
  19309. # Create an old-style archive from a shared archive.
  19310. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
  19311. # Create a temporary old-style archive to link instead of a shared archive.
  19312. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
  19313. # Commands used to build a shared archive.
  19314. archive_cmds=$lt_archive_cmds
  19315. archive_expsym_cmds=$lt_archive_expsym_cmds
  19316. # Commands used to build a loadable module if different from building
  19317. # a shared archive.
  19318. module_cmds=$lt_module_cmds
  19319. module_expsym_cmds=$lt_module_expsym_cmds
  19320. # Whether we are building with GNU ld or not.
  19321. with_gnu_ld=$lt_with_gnu_ld
  19322. # Flag that allows shared libraries with undefined symbols to be built.
  19323. allow_undefined_flag=$lt_allow_undefined_flag
  19324. # Flag that enforces no undefined symbols.
  19325. no_undefined_flag=$lt_no_undefined_flag
  19326. # Flag to hardcode \$libdir into a binary during linking.
  19327. # This must work even if \$libdir does not exist
  19328. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
  19329. # Whether we need a single "-rpath" flag with a separated argument.
  19330. hardcode_libdir_separator=$lt_hardcode_libdir_separator
  19331. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  19332. # DIR into the resulting binary.
  19333. hardcode_direct=$hardcode_direct
  19334. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  19335. # DIR into the resulting binary and the resulting library dependency is
  19336. # "absolute",i.e impossible to change by setting \$shlibpath_var if the
  19337. # library is relocated.
  19338. hardcode_direct_absolute=$hardcode_direct_absolute
  19339. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  19340. # into the resulting binary.
  19341. hardcode_minus_L=$hardcode_minus_L
  19342. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  19343. # into the resulting binary.
  19344. hardcode_shlibpath_var=$hardcode_shlibpath_var
  19345. # Set to "yes" if building a shared library automatically hardcodes DIR
  19346. # into the library and all subsequent libraries and executables linked
  19347. # against it.
  19348. hardcode_automatic=$hardcode_automatic
  19349. # Set to yes if linker adds runtime paths of dependent libraries
  19350. # to runtime path list.
  19351. inherit_rpath=$inherit_rpath
  19352. # Whether libtool must link a program against all its dependency libraries.
  19353. link_all_deplibs=$link_all_deplibs
  19354. # Set to "yes" if exported symbols are required.
  19355. always_export_symbols=$always_export_symbols
  19356. # The commands to list exported symbols.
  19357. export_symbols_cmds=$lt_export_symbols_cmds
  19358. # Symbols that should not be listed in the preloaded symbols.
  19359. exclude_expsyms=$lt_exclude_expsyms
  19360. # Symbols that must always be exported.
  19361. include_expsyms=$lt_include_expsyms
  19362. # Commands necessary for linking programs (against libraries) with templates.
  19363. prelink_cmds=$lt_prelink_cmds
  19364. # Commands necessary for finishing linking programs.
  19365. postlink_cmds=$lt_postlink_cmds
  19366. # Specify filename containing input files.
  19367. file_list_spec=$lt_file_list_spec
  19368. # How to hardcode a shared library path into an executable.
  19369. hardcode_action=$hardcode_action
  19370. # The directories searched by this compiler when creating a shared library.
  19371. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
  19372. # Dependencies to place before and after the objects being linked to
  19373. # create a shared library.
  19374. predep_objects=$lt_predep_objects
  19375. postdep_objects=$lt_postdep_objects
  19376. predeps=$lt_predeps
  19377. postdeps=$lt_postdeps
  19378. # The library search path used internally by the compiler when linking
  19379. # a shared library.
  19380. compiler_lib_search_path=$lt_compiler_lib_search_path
  19381. # ### END LIBTOOL CONFIG
  19382. _LT_EOF
  19383. cat <<'_LT_EOF' >> "$cfgfile"
  19384. # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
  19385. # func_munge_path_list VARIABLE PATH
  19386. # -----------------------------------
  19387. # VARIABLE is name of variable containing _space_ separated list of
  19388. # directories to be munged by the contents of PATH, which is string
  19389. # having a format:
  19390. # "DIR[:DIR]:"
  19391. # string "DIR[ DIR]" will be prepended to VARIABLE
  19392. # ":DIR[:DIR]"
  19393. # string "DIR[ DIR]" will be appended to VARIABLE
  19394. # "DIRP[:DIRP]::[DIRA:]DIRA"
  19395. # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
  19396. # "DIRA[ DIRA]" will be appended to VARIABLE
  19397. # "DIR[:DIR]"
  19398. # VARIABLE will be replaced by "DIR[ DIR]"
  19399. func_munge_path_list ()
  19400. {
  19401. case x$2 in
  19402. x)
  19403. ;;
  19404. *:)
  19405. eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
  19406. ;;
  19407. x:*)
  19408. eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
  19409. ;;
  19410. *::*)
  19411. eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
  19412. eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
  19413. ;;
  19414. *)
  19415. eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
  19416. ;;
  19417. esac
  19418. }
  19419. # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
  19420. func_cc_basename ()
  19421. {
  19422. for cc_temp in $*""; do
  19423. case $cc_temp in
  19424. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  19425. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  19426. \-*) ;;
  19427. *) break;;
  19428. esac
  19429. done
  19430. func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  19431. }
  19432. # ### END FUNCTIONS SHARED WITH CONFIGURE
  19433. _LT_EOF
  19434. case $host_os in
  19435. aix3*)
  19436. cat <<\_LT_EOF >> "$cfgfile"
  19437. # AIX sometimes has problems with the GCC collect2 program. For some
  19438. # reason, if we set the COLLECT_NAMES environment variable, the problems
  19439. # vanish in a puff of smoke.
  19440. if test set != "${COLLECT_NAMES+set}"; then
  19441. COLLECT_NAMES=
  19442. export COLLECT_NAMES
  19443. fi
  19444. _LT_EOF
  19445. ;;
  19446. esac
  19447. ltmain=$ac_aux_dir/ltmain.sh
  19448. # We use sed instead of cat because bash on DJGPP gets confused if
  19449. # if finds mixed CR/LF and LF-only lines. Since sed operates in
  19450. # text mode, it properly converts lines to CR/LF. This bash problem
  19451. # is reportedly fixed, but why not run on old versions too?
  19452. sed '$q' "$ltmain" >> "$cfgfile" \
  19453. || (rm -f "$cfgfile"; exit 1)
  19454. mv -f "$cfgfile" "$ofile" ||
  19455. (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  19456. chmod +x "$ofile"
  19457. cat <<_LT_EOF >> "$ofile"
  19458. # ### BEGIN LIBTOOL TAG CONFIG: CXX
  19459. # The linker used to build libraries.
  19460. LD=$lt_LD_CXX
  19461. # How to create reloadable object files.
  19462. reload_flag=$lt_reload_flag_CXX
  19463. reload_cmds=$lt_reload_cmds_CXX
  19464. # Commands used to build an old-style archive.
  19465. old_archive_cmds=$lt_old_archive_cmds_CXX
  19466. # A language specific compiler.
  19467. CC=$lt_compiler_CXX
  19468. # Is the compiler the GNU compiler?
  19469. with_gcc=$GCC_CXX
  19470. # Compiler flag to turn off builtin functions.
  19471. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
  19472. # Additional compiler flags for building library objects.
  19473. pic_flag=$lt_lt_prog_compiler_pic_CXX
  19474. # How to pass a linker flag through the compiler.
  19475. wl=$lt_lt_prog_compiler_wl_CXX
  19476. # Compiler flag to prevent dynamic linking.
  19477. link_static_flag=$lt_lt_prog_compiler_static_CXX
  19478. # Does compiler simultaneously support -c and -o options?
  19479. compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
  19480. # Whether or not to add -lc for building shared libraries.
  19481. build_libtool_need_lc=$archive_cmds_need_lc_CXX
  19482. # Whether or not to disallow shared libs when runtime libs are static.
  19483. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
  19484. # Compiler flag to allow reflexive dlopens.
  19485. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
  19486. # Compiler flag to generate shared objects directly from archives.
  19487. whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
  19488. # Whether the compiler copes with passing no objects directly.
  19489. compiler_needs_object=$lt_compiler_needs_object_CXX
  19490. # Create an old-style archive from a shared archive.
  19491. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
  19492. # Create a temporary old-style archive to link instead of a shared archive.
  19493. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
  19494. # Commands used to build a shared archive.
  19495. archive_cmds=$lt_archive_cmds_CXX
  19496. archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
  19497. # Commands used to build a loadable module if different from building
  19498. # a shared archive.
  19499. module_cmds=$lt_module_cmds_CXX
  19500. module_expsym_cmds=$lt_module_expsym_cmds_CXX
  19501. # Whether we are building with GNU ld or not.
  19502. with_gnu_ld=$lt_with_gnu_ld_CXX
  19503. # Flag that allows shared libraries with undefined symbols to be built.
  19504. allow_undefined_flag=$lt_allow_undefined_flag_CXX
  19505. # Flag that enforces no undefined symbols.
  19506. no_undefined_flag=$lt_no_undefined_flag_CXX
  19507. # Flag to hardcode \$libdir into a binary during linking.
  19508. # This must work even if \$libdir does not exist
  19509. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
  19510. # Whether we need a single "-rpath" flag with a separated argument.
  19511. hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
  19512. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  19513. # DIR into the resulting binary.
  19514. hardcode_direct=$hardcode_direct_CXX
  19515. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  19516. # DIR into the resulting binary and the resulting library dependency is
  19517. # "absolute",i.e impossible to change by setting \$shlibpath_var if the
  19518. # library is relocated.
  19519. hardcode_direct_absolute=$hardcode_direct_absolute_CXX
  19520. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  19521. # into the resulting binary.
  19522. hardcode_minus_L=$hardcode_minus_L_CXX
  19523. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  19524. # into the resulting binary.
  19525. hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
  19526. # Set to "yes" if building a shared library automatically hardcodes DIR
  19527. # into the library and all subsequent libraries and executables linked
  19528. # against it.
  19529. hardcode_automatic=$hardcode_automatic_CXX
  19530. # Set to yes if linker adds runtime paths of dependent libraries
  19531. # to runtime path list.
  19532. inherit_rpath=$inherit_rpath_CXX
  19533. # Whether libtool must link a program against all its dependency libraries.
  19534. link_all_deplibs=$link_all_deplibs_CXX
  19535. # Set to "yes" if exported symbols are required.
  19536. always_export_symbols=$always_export_symbols_CXX
  19537. # The commands to list exported symbols.
  19538. export_symbols_cmds=$lt_export_symbols_cmds_CXX
  19539. # Symbols that should not be listed in the preloaded symbols.
  19540. exclude_expsyms=$lt_exclude_expsyms_CXX
  19541. # Symbols that must always be exported.
  19542. include_expsyms=$lt_include_expsyms_CXX
  19543. # Commands necessary for linking programs (against libraries) with templates.
  19544. prelink_cmds=$lt_prelink_cmds_CXX
  19545. # Commands necessary for finishing linking programs.
  19546. postlink_cmds=$lt_postlink_cmds_CXX
  19547. # Specify filename containing input files.
  19548. file_list_spec=$lt_file_list_spec_CXX
  19549. # How to hardcode a shared library path into an executable.
  19550. hardcode_action=$hardcode_action_CXX
  19551. # The directories searched by this compiler when creating a shared library.
  19552. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
  19553. # Dependencies to place before and after the objects being linked to
  19554. # create a shared library.
  19555. predep_objects=$lt_predep_objects_CXX
  19556. postdep_objects=$lt_postdep_objects_CXX
  19557. predeps=$lt_predeps_CXX
  19558. postdeps=$lt_postdeps_CXX
  19559. # The library search path used internally by the compiler when linking
  19560. # a shared library.
  19561. compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
  19562. # ### END LIBTOOL TAG CONFIG: CXX
  19563. _LT_EOF
  19564. ;;
  19565. esac
  19566. done # for ac_tag
  19567. as_fn_exit 0
  19568. _ACEOF
  19569. ac_clean_files=$ac_clean_files_save
  19570. test $ac_write_fail = 0 ||
  19571. as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
  19572. # configure is writing to config.log, and then calls config.status.
  19573. # config.status does its own redirection, appending to config.log.
  19574. # Unfortunately, on DOS this fails, as config.log is still kept open
  19575. # by configure, so config.status won't be able to write to it; its
  19576. # output is simply discarded. So we exec the FD to /dev/null,
  19577. # effectively closing config.log, so it can be properly (re)opened and
  19578. # appended to by config.status. When coming back to configure, we
  19579. # need to make the FD available again.
  19580. if test "$no_create" != yes; then
  19581. ac_cs_success=:
  19582. ac_config_status_args=
  19583. test "$silent" = yes &&
  19584. ac_config_status_args="$ac_config_status_args --quiet"
  19585. exec 5>/dev/null
  19586. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  19587. exec 5>>config.log
  19588. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  19589. # would make configure fail if this is the last instruction.
  19590. $ac_cs_success || as_fn_exit 1
  19591. fi
  19592. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  19593. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  19594. $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  19595. fi
  19596. if test "$omit_fp_by_default" = yes && test "x$enable_frame_pointers" != xyes && test "x$UNWIND_LIBS" = x && test "x$enable_minimal" != xyes; then :
  19597. if test "x$perftools_cv_have_unwind_backtrace" = xyes; then :
  19598. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: No frame pointers and no libunwind. Using experimental backtrace capturing via libgcc. Expect crashy cpu profiler." >&5
  19599. $as_echo "$as_me: WARNING: No frame pointers and no libunwind. Using experimental backtrace capturing via libgcc. Expect crashy cpu profiler." >&2;}
  19600. else
  19601. if test "x$enable_backtrace" = xyes; then :
  19602. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: No frame pointers and no libunwind. Using experimental backtrace(). Expect crashy cpu profiler." >&5
  19603. $as_echo "$as_me: WARNING: No frame pointers and no libunwind. Using experimental backtrace(). Expect crashy cpu profiler." >&2;}
  19604. else
  19605. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  19606. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  19607. as_fn_error $? "No frame pointers and no libunwind. The compilation will fail
  19608. See \`config.log' for more details" "$LINENO" 5; }
  19609. fi
  19610. fi
  19611. fi