configure 688 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210132111321213213132141321513216132171321813219132201322113222132231322413225132261322713228132291323013231132321323313234132351323613237132381323913240132411324213243132441324513246132471324813249132501325113252132531325413255132561325713258132591326013261132621326313264132651326613267132681326913270132711327213273132741327513276132771327813279132801328113282132831328413285132861328713288132891329013291132921329313294132951329613297132981329913300133011330213303133041330513306133071330813309133101331113312133131331413315133161331713318133191332013321133221332313324133251332613327133281332913330133311333213333133341333513336133371333813339133401334113342133431334413345133461334713348133491335013351133521335313354133551335613357133581335913360133611336213363133641336513366133671336813369133701337113372133731337413375133761337713378133791338013381133821338313384133851338613387133881338913390133911339213393133941339513396133971339813399134001340113402134031340413405134061340713408134091341013411134121341313414134151341613417134181341913420134211342213423134241342513426134271342813429134301343113432134331343413435134361343713438134391344013441134421344313444134451344613447134481344913450134511345213453134541345513456134571345813459134601346113462134631346413465134661346713468134691347013471134721347313474134751347613477134781347913480134811348213483134841348513486134871348813489134901349113492134931349413495134961349713498134991350013501135021350313504135051350613507135081350913510135111351213513135141351513516135171351813519135201352113522135231352413525135261352713528135291353013531135321353313534135351353613537135381353913540135411354213543135441354513546135471354813549135501355113552135531355413555135561355713558135591356013561135621356313564135651356613567135681356913570135711357213573135741357513576135771357813579135801358113582135831358413585135861358713588135891359013591135921359313594135951359613597135981359913600136011360213603136041360513606136071360813609136101361113612136131361413615136161361713618136191362013621136221362313624136251362613627136281362913630136311363213633136341363513636136371363813639136401364113642136431364413645136461364713648136491365013651136521365313654136551365613657136581365913660136611366213663136641366513666136671366813669136701367113672136731367413675136761367713678136791368013681136821368313684136851368613687136881368913690136911369213693136941369513696136971369813699137001370113702137031370413705137061370713708137091371013711137121371313714137151371613717137181371913720137211372213723137241372513726137271372813729137301373113732137331373413735137361373713738137391374013741137421374313744137451374613747137481374913750137511375213753137541375513756137571375813759137601376113762137631376413765137661376713768137691377013771137721377313774137751377613777137781377913780137811378213783137841378513786137871378813789137901379113792137931379413795137961379713798137991380013801138021380313804138051380613807138081380913810138111381213813138141381513816138171381813819138201382113822138231382413825138261382713828138291383013831138321383313834138351383613837138381383913840138411384213843138441384513846138471384813849138501385113852138531385413855138561385713858138591386013861138621386313864138651386613867138681386913870138711387213873138741387513876138771387813879138801388113882138831388413885138861388713888138891389013891138921389313894138951389613897138981389913900139011390213903139041390513906139071390813909139101391113912139131391413915139161391713918139191392013921139221392313924139251392613927139281392913930139311393213933139341393513936139371393813939139401394113942139431394413945139461394713948139491395013951139521395313954139551395613957139581395913960139611396213963139641396513966139671396813969139701397113972139731397413975139761397713978139791398013981139821398313984139851398613987139881398913990139911399213993139941399513996139971399813999140001400114002140031400414005140061400714008140091401014011140121401314014140151401614017140181401914020140211402214023140241402514026140271402814029140301403114032140331403414035140361403714038140391404014041140421404314044140451404614047140481404914050140511405214053140541405514056140571405814059140601406114062140631406414065140661406714068140691407014071140721407314074140751407614077140781407914080140811408214083140841408514086140871408814089140901409114092140931409414095140961409714098140991410014101141021410314104141051410614107141081410914110141111411214113141141411514116141171411814119141201412114122141231412414125141261412714128141291413014131141321413314134141351413614137141381413914140141411414214143141441414514146141471414814149141501415114152141531415414155141561415714158141591416014161141621416314164141651416614167141681416914170141711417214173141741417514176141771417814179141801418114182141831418414185141861418714188141891419014191141921419314194141951419614197141981419914200142011420214203142041420514206142071420814209142101421114212142131421414215142161421714218142191422014221142221422314224142251422614227142281422914230142311423214233142341423514236142371423814239142401424114242142431424414245142461424714248142491425014251142521425314254142551425614257142581425914260142611426214263142641426514266142671426814269142701427114272142731427414275142761427714278142791428014281142821428314284142851428614287142881428914290142911429214293142941429514296142971429814299143001430114302143031430414305143061430714308143091431014311143121431314314143151431614317143181431914320143211432214323143241432514326143271432814329143301433114332143331433414335143361433714338143391434014341143421434314344143451434614347143481434914350143511435214353143541435514356143571435814359143601436114362143631436414365143661436714368143691437014371143721437314374143751437614377143781437914380143811438214383143841438514386143871438814389143901439114392143931439414395143961439714398143991440014401144021440314404144051440614407144081440914410144111441214413144141441514416144171441814419144201442114422144231442414425144261442714428144291443014431144321443314434144351443614437144381443914440144411444214443144441444514446144471444814449144501445114452144531445414455144561445714458144591446014461144621446314464144651446614467144681446914470144711447214473144741447514476144771447814479144801448114482144831448414485144861448714488144891449014491144921449314494144951449614497144981449914500145011450214503145041450514506145071450814509145101451114512145131451414515145161451714518145191452014521145221452314524145251452614527145281452914530145311453214533145341453514536145371453814539145401454114542145431454414545145461454714548145491455014551145521455314554145551455614557145581455914560145611456214563145641456514566145671456814569145701457114572145731457414575145761457714578145791458014581145821458314584145851458614587145881458914590145911459214593145941459514596145971459814599146001460114602146031460414605146061460714608146091461014611146121461314614146151461614617146181461914620146211462214623146241462514626146271462814629146301463114632146331463414635146361463714638146391464014641146421464314644146451464614647146481464914650146511465214653146541465514656146571465814659146601466114662146631466414665146661466714668146691467014671146721467314674146751467614677146781467914680146811468214683146841468514686146871468814689146901469114692146931469414695146961469714698146991470014701147021470314704147051470614707147081470914710147111471214713147141471514716147171471814719147201472114722147231472414725147261472714728147291473014731147321473314734147351473614737147381473914740147411474214743147441474514746147471474814749147501475114752147531475414755147561475714758147591476014761147621476314764147651476614767147681476914770147711477214773147741477514776147771477814779147801478114782147831478414785147861478714788147891479014791147921479314794147951479614797147981479914800148011480214803148041480514806148071480814809148101481114812148131481414815148161481714818148191482014821148221482314824148251482614827148281482914830148311483214833148341483514836148371483814839148401484114842148431484414845148461484714848148491485014851148521485314854148551485614857148581485914860148611486214863148641486514866148671486814869148701487114872148731487414875148761487714878148791488014881148821488314884148851488614887148881488914890148911489214893148941489514896148971489814899149001490114902149031490414905149061490714908149091491014911149121491314914149151491614917149181491914920149211492214923149241492514926149271492814929149301493114932149331493414935149361493714938149391494014941149421494314944149451494614947149481494914950149511495214953149541495514956149571495814959149601496114962149631496414965149661496714968149691497014971149721497314974149751497614977149781497914980149811498214983149841498514986149871498814989149901499114992149931499414995149961499714998149991500015001150021500315004150051500615007150081500915010150111501215013150141501515016150171501815019150201502115022150231502415025150261502715028150291503015031150321503315034150351503615037150381503915040150411504215043150441504515046150471504815049150501505115052150531505415055150561505715058150591506015061150621506315064150651506615067150681506915070150711507215073150741507515076150771507815079150801508115082150831508415085150861508715088150891509015091150921509315094150951509615097150981509915100151011510215103151041510515106151071510815109151101511115112151131511415115151161511715118151191512015121151221512315124151251512615127151281512915130151311513215133151341513515136151371513815139151401514115142151431514415145151461514715148151491515015151151521515315154151551515615157151581515915160151611516215163151641516515166151671516815169151701517115172151731517415175151761517715178151791518015181151821518315184151851518615187151881518915190151911519215193151941519515196151971519815199152001520115202152031520415205152061520715208152091521015211152121521315214152151521615217152181521915220152211522215223152241522515226152271522815229152301523115232152331523415235152361523715238152391524015241152421524315244152451524615247152481524915250152511525215253152541525515256152571525815259152601526115262152631526415265152661526715268152691527015271152721527315274152751527615277152781527915280152811528215283152841528515286152871528815289152901529115292152931529415295152961529715298152991530015301153021530315304153051530615307153081530915310153111531215313153141531515316153171531815319153201532115322153231532415325153261532715328153291533015331153321533315334153351533615337153381533915340153411534215343153441534515346153471534815349153501535115352153531535415355153561535715358153591536015361153621536315364153651536615367153681536915370153711537215373153741537515376153771537815379153801538115382153831538415385153861538715388153891539015391153921539315394153951539615397153981539915400154011540215403154041540515406154071540815409154101541115412154131541415415154161541715418154191542015421154221542315424154251542615427154281542915430154311543215433154341543515436154371543815439154401544115442154431544415445154461544715448154491545015451154521545315454154551545615457154581545915460154611546215463154641546515466154671546815469154701547115472154731547415475154761547715478154791548015481154821548315484154851548615487154881548915490154911549215493154941549515496154971549815499155001550115502155031550415505155061550715508155091551015511155121551315514155151551615517155181551915520155211552215523155241552515526155271552815529155301553115532155331553415535155361553715538155391554015541155421554315544155451554615547155481554915550155511555215553155541555515556155571555815559155601556115562155631556415565155661556715568155691557015571155721557315574155751557615577155781557915580155811558215583155841558515586155871558815589155901559115592155931559415595155961559715598155991560015601156021560315604156051560615607156081560915610156111561215613156141561515616156171561815619156201562115622156231562415625156261562715628156291563015631156321563315634156351563615637156381563915640156411564215643156441564515646156471564815649156501565115652156531565415655156561565715658156591566015661156621566315664156651566615667156681566915670156711567215673156741567515676156771567815679156801568115682156831568415685156861568715688156891569015691156921569315694156951569615697156981569915700157011570215703157041570515706157071570815709157101571115712157131571415715157161571715718157191572015721157221572315724157251572615727157281572915730157311573215733157341573515736157371573815739157401574115742157431574415745157461574715748157491575015751157521575315754157551575615757157581575915760157611576215763157641576515766157671576815769157701577115772157731577415775157761577715778157791578015781157821578315784157851578615787157881578915790157911579215793157941579515796157971579815799158001580115802158031580415805158061580715808158091581015811158121581315814158151581615817158181581915820158211582215823158241582515826158271582815829158301583115832158331583415835158361583715838158391584015841158421584315844158451584615847158481584915850158511585215853158541585515856158571585815859158601586115862158631586415865158661586715868158691587015871158721587315874158751587615877158781587915880158811588215883158841588515886158871588815889158901589115892158931589415895158961589715898158991590015901159021590315904159051590615907159081590915910159111591215913159141591515916159171591815919159201592115922159231592415925159261592715928159291593015931159321593315934159351593615937159381593915940159411594215943159441594515946159471594815949159501595115952159531595415955159561595715958159591596015961159621596315964159651596615967159681596915970159711597215973159741597515976159771597815979159801598115982159831598415985159861598715988159891599015991159921599315994159951599615997159981599916000160011600216003160041600516006160071600816009160101601116012160131601416015160161601716018160191602016021160221602316024160251602616027160281602916030160311603216033160341603516036160371603816039160401604116042160431604416045160461604716048160491605016051160521605316054160551605616057160581605916060160611606216063160641606516066160671606816069160701607116072160731607416075160761607716078160791608016081160821608316084160851608616087160881608916090160911609216093160941609516096160971609816099161001610116102161031610416105161061610716108161091611016111161121611316114161151611616117161181611916120161211612216123161241612516126161271612816129161301613116132161331613416135161361613716138161391614016141161421614316144161451614616147161481614916150161511615216153161541615516156161571615816159161601616116162161631616416165161661616716168161691617016171161721617316174161751617616177161781617916180161811618216183161841618516186161871618816189161901619116192161931619416195161961619716198161991620016201162021620316204162051620616207162081620916210162111621216213162141621516216162171621816219162201622116222162231622416225162261622716228162291623016231162321623316234162351623616237162381623916240162411624216243162441624516246162471624816249162501625116252162531625416255162561625716258162591626016261162621626316264162651626616267162681626916270162711627216273162741627516276162771627816279162801628116282162831628416285162861628716288162891629016291162921629316294162951629616297162981629916300163011630216303163041630516306163071630816309163101631116312163131631416315163161631716318163191632016321163221632316324163251632616327163281632916330163311633216333163341633516336163371633816339163401634116342163431634416345163461634716348163491635016351163521635316354163551635616357163581635916360163611636216363163641636516366163671636816369163701637116372163731637416375163761637716378163791638016381163821638316384163851638616387163881638916390163911639216393163941639516396163971639816399164001640116402164031640416405164061640716408164091641016411164121641316414164151641616417164181641916420164211642216423164241642516426164271642816429164301643116432164331643416435164361643716438164391644016441164421644316444164451644616447164481644916450164511645216453164541645516456164571645816459164601646116462164631646416465164661646716468164691647016471164721647316474164751647616477164781647916480164811648216483164841648516486164871648816489164901649116492164931649416495164961649716498164991650016501165021650316504165051650616507165081650916510165111651216513165141651516516165171651816519165201652116522165231652416525165261652716528165291653016531165321653316534165351653616537165381653916540165411654216543165441654516546165471654816549165501655116552165531655416555165561655716558165591656016561165621656316564165651656616567165681656916570165711657216573165741657516576165771657816579165801658116582165831658416585165861658716588165891659016591165921659316594165951659616597165981659916600166011660216603166041660516606166071660816609166101661116612166131661416615166161661716618166191662016621166221662316624166251662616627166281662916630166311663216633166341663516636166371663816639166401664116642166431664416645166461664716648166491665016651166521665316654166551665616657166581665916660166611666216663166641666516666166671666816669166701667116672166731667416675166761667716678166791668016681166821668316684166851668616687166881668916690166911669216693166941669516696166971669816699167001670116702167031670416705167061670716708167091671016711167121671316714167151671616717167181671916720167211672216723167241672516726167271672816729167301673116732167331673416735167361673716738167391674016741167421674316744167451674616747167481674916750167511675216753167541675516756167571675816759167601676116762167631676416765167661676716768167691677016771167721677316774167751677616777167781677916780167811678216783167841678516786167871678816789167901679116792167931679416795167961679716798167991680016801168021680316804168051680616807168081680916810168111681216813168141681516816168171681816819168201682116822168231682416825168261682716828168291683016831168321683316834168351683616837168381683916840168411684216843168441684516846168471684816849168501685116852168531685416855168561685716858168591686016861168621686316864168651686616867168681686916870168711687216873168741687516876168771687816879168801688116882168831688416885168861688716888168891689016891168921689316894168951689616897168981689916900169011690216903169041690516906169071690816909169101691116912169131691416915169161691716918169191692016921169221692316924169251692616927169281692916930169311693216933169341693516936169371693816939169401694116942169431694416945169461694716948169491695016951169521695316954169551695616957169581695916960169611696216963169641696516966169671696816969169701697116972169731697416975169761697716978169791698016981169821698316984169851698616987169881698916990169911699216993169941699516996169971699816999170001700117002170031700417005170061700717008170091701017011170121701317014170151701617017170181701917020170211702217023170241702517026170271702817029170301703117032170331703417035170361703717038170391704017041170421704317044170451704617047170481704917050170511705217053170541705517056170571705817059170601706117062170631706417065170661706717068170691707017071170721707317074170751707617077170781707917080170811708217083170841708517086170871708817089170901709117092170931709417095170961709717098170991710017101171021710317104171051710617107171081710917110171111711217113171141711517116171171711817119171201712117122171231712417125171261712717128171291713017131171321713317134171351713617137171381713917140171411714217143171441714517146171471714817149171501715117152171531715417155171561715717158171591716017161171621716317164171651716617167171681716917170171711717217173171741717517176171771717817179171801718117182171831718417185171861718717188171891719017191171921719317194171951719617197171981719917200172011720217203172041720517206172071720817209172101721117212172131721417215172161721717218172191722017221172221722317224172251722617227172281722917230172311723217233172341723517236172371723817239172401724117242172431724417245172461724717248172491725017251172521725317254172551725617257172581725917260172611726217263172641726517266172671726817269172701727117272172731727417275172761727717278172791728017281172821728317284172851728617287172881728917290172911729217293172941729517296172971729817299173001730117302173031730417305173061730717308173091731017311173121731317314173151731617317173181731917320173211732217323173241732517326173271732817329173301733117332173331733417335173361733717338173391734017341173421734317344173451734617347173481734917350173511735217353173541735517356173571735817359173601736117362173631736417365173661736717368173691737017371173721737317374173751737617377173781737917380173811738217383173841738517386173871738817389173901739117392173931739417395173961739717398173991740017401174021740317404174051740617407174081740917410174111741217413174141741517416174171741817419174201742117422174231742417425174261742717428174291743017431174321743317434174351743617437174381743917440174411744217443174441744517446174471744817449174501745117452174531745417455174561745717458174591746017461174621746317464174651746617467174681746917470174711747217473174741747517476174771747817479174801748117482174831748417485174861748717488174891749017491174921749317494174951749617497174981749917500175011750217503175041750517506175071750817509175101751117512175131751417515175161751717518175191752017521175221752317524175251752617527175281752917530175311753217533175341753517536175371753817539175401754117542175431754417545175461754717548175491755017551175521755317554175551755617557175581755917560175611756217563175641756517566175671756817569175701757117572175731757417575175761757717578175791758017581175821758317584175851758617587175881758917590175911759217593175941759517596175971759817599176001760117602176031760417605176061760717608176091761017611176121761317614176151761617617176181761917620176211762217623176241762517626176271762817629176301763117632176331763417635176361763717638176391764017641176421764317644176451764617647176481764917650176511765217653176541765517656176571765817659176601766117662176631766417665176661766717668176691767017671176721767317674176751767617677176781767917680176811768217683176841768517686176871768817689176901769117692176931769417695176961769717698176991770017701177021770317704177051770617707177081770917710177111771217713177141771517716177171771817719177201772117722177231772417725177261772717728177291773017731177321773317734177351773617737177381773917740177411774217743177441774517746177471774817749177501775117752177531775417755177561775717758177591776017761177621776317764177651776617767177681776917770177711777217773177741777517776177771777817779177801778117782177831778417785177861778717788177891779017791177921779317794177951779617797177981779917800178011780217803178041780517806178071780817809178101781117812178131781417815178161781717818178191782017821178221782317824178251782617827178281782917830178311783217833178341783517836178371783817839178401784117842178431784417845178461784717848178491785017851178521785317854178551785617857178581785917860178611786217863178641786517866178671786817869178701787117872178731787417875178761787717878178791788017881178821788317884178851788617887178881788917890178911789217893178941789517896178971789817899179001790117902179031790417905179061790717908179091791017911179121791317914179151791617917179181791917920179211792217923179241792517926179271792817929179301793117932179331793417935179361793717938179391794017941179421794317944179451794617947179481794917950179511795217953179541795517956179571795817959179601796117962179631796417965179661796717968179691797017971179721797317974179751797617977179781797917980179811798217983179841798517986179871798817989179901799117992179931799417995179961799717998179991800018001180021800318004180051800618007180081800918010180111801218013180141801518016180171801818019180201802118022180231802418025180261802718028180291803018031180321803318034180351803618037180381803918040180411804218043180441804518046180471804818049180501805118052180531805418055180561805718058180591806018061180621806318064180651806618067180681806918070180711807218073180741807518076180771807818079180801808118082180831808418085180861808718088180891809018091180921809318094180951809618097180981809918100181011810218103181041810518106181071810818109181101811118112181131811418115181161811718118181191812018121181221812318124181251812618127181281812918130181311813218133181341813518136181371813818139181401814118142181431814418145181461814718148181491815018151181521815318154181551815618157181581815918160181611816218163181641816518166181671816818169181701817118172181731817418175181761817718178181791818018181181821818318184181851818618187181881818918190181911819218193181941819518196181971819818199182001820118202182031820418205182061820718208182091821018211182121821318214182151821618217182181821918220182211822218223182241822518226182271822818229182301823118232182331823418235182361823718238182391824018241182421824318244182451824618247182481824918250182511825218253182541825518256182571825818259182601826118262182631826418265182661826718268182691827018271182721827318274182751827618277182781827918280182811828218283182841828518286182871828818289182901829118292182931829418295182961829718298182991830018301183021830318304183051830618307183081830918310183111831218313183141831518316183171831818319183201832118322183231832418325183261832718328183291833018331183321833318334183351833618337183381833918340183411834218343183441834518346183471834818349183501835118352183531835418355183561835718358183591836018361183621836318364183651836618367183681836918370183711837218373183741837518376183771837818379183801838118382183831838418385183861838718388183891839018391183921839318394183951839618397183981839918400184011840218403184041840518406184071840818409184101841118412184131841418415184161841718418184191842018421184221842318424184251842618427184281842918430184311843218433184341843518436184371843818439184401844118442184431844418445184461844718448184491845018451184521845318454184551845618457184581845918460184611846218463184641846518466184671846818469184701847118472184731847418475184761847718478184791848018481184821848318484184851848618487184881848918490184911849218493184941849518496184971849818499185001850118502185031850418505185061850718508185091851018511185121851318514185151851618517185181851918520185211852218523185241852518526185271852818529185301853118532185331853418535185361853718538185391854018541185421854318544185451854618547185481854918550185511855218553185541855518556185571855818559185601856118562185631856418565185661856718568185691857018571185721857318574185751857618577185781857918580185811858218583185841858518586185871858818589185901859118592185931859418595185961859718598185991860018601186021860318604186051860618607186081860918610186111861218613186141861518616186171861818619186201862118622186231862418625186261862718628186291863018631186321863318634186351863618637186381863918640186411864218643186441864518646186471864818649186501865118652186531865418655186561865718658186591866018661186621866318664186651866618667186681866918670186711867218673186741867518676186771867818679186801868118682186831868418685186861868718688186891869018691186921869318694186951869618697186981869918700187011870218703187041870518706187071870818709187101871118712187131871418715187161871718718187191872018721187221872318724187251872618727187281872918730187311873218733187341873518736187371873818739187401874118742187431874418745187461874718748187491875018751187521875318754187551875618757187581875918760187611876218763187641876518766187671876818769187701877118772187731877418775187761877718778187791878018781187821878318784187851878618787187881878918790187911879218793187941879518796187971879818799188001880118802188031880418805188061880718808188091881018811188121881318814188151881618817188181881918820188211882218823188241882518826188271882818829188301883118832188331883418835188361883718838188391884018841188421884318844188451884618847188481884918850188511885218853188541885518856188571885818859188601886118862188631886418865188661886718868188691887018871188721887318874188751887618877188781887918880188811888218883188841888518886188871888818889188901889118892188931889418895188961889718898188991890018901189021890318904189051890618907189081890918910189111891218913189141891518916189171891818919189201892118922189231892418925189261892718928189291893018931189321893318934189351893618937189381893918940189411894218943189441894518946189471894818949189501895118952189531895418955189561895718958189591896018961189621896318964189651896618967189681896918970189711897218973189741897518976189771897818979189801898118982189831898418985189861898718988189891899018991189921899318994189951899618997189981899919000190011900219003190041900519006190071900819009190101901119012190131901419015190161901719018190191902019021190221902319024190251902619027190281902919030190311903219033190341903519036190371903819039190401904119042190431904419045190461904719048190491905019051190521905319054190551905619057190581905919060190611906219063190641906519066190671906819069190701907119072190731907419075190761907719078190791908019081190821908319084190851908619087190881908919090190911909219093190941909519096190971909819099191001910119102191031910419105191061910719108191091911019111191121911319114191151911619117191181911919120191211912219123191241912519126191271912819129191301913119132191331913419135191361913719138191391914019141191421914319144191451914619147191481914919150191511915219153191541915519156191571915819159191601916119162191631916419165191661916719168191691917019171191721917319174191751917619177191781917919180191811918219183191841918519186191871918819189191901919119192191931919419195191961919719198191991920019201192021920319204192051920619207192081920919210192111921219213192141921519216192171921819219192201922119222192231922419225192261922719228192291923019231192321923319234192351923619237192381923919240192411924219243192441924519246192471924819249192501925119252192531925419255192561925719258192591926019261192621926319264192651926619267192681926919270192711927219273192741927519276192771927819279192801928119282192831928419285192861928719288192891929019291192921929319294192951929619297192981929919300193011930219303193041930519306193071930819309193101931119312193131931419315193161931719318193191932019321193221932319324193251932619327193281932919330193311933219333193341933519336193371933819339193401934119342193431934419345193461934719348193491935019351193521935319354193551935619357193581935919360193611936219363193641936519366193671936819369193701937119372193731937419375193761937719378193791938019381193821938319384193851938619387193881938919390193911939219393193941939519396193971939819399194001940119402194031940419405194061940719408194091941019411194121941319414194151941619417194181941919420194211942219423194241942519426194271942819429194301943119432194331943419435194361943719438194391944019441194421944319444194451944619447194481944919450194511945219453194541945519456194571945819459194601946119462194631946419465194661946719468194691947019471194721947319474194751947619477194781947919480194811948219483194841948519486194871948819489194901949119492194931949419495194961949719498194991950019501195021950319504195051950619507195081950919510195111951219513195141951519516195171951819519195201952119522195231952419525195261952719528195291953019531195321953319534195351953619537195381953919540195411954219543195441954519546195471954819549195501955119552195531955419555195561955719558195591956019561195621956319564195651956619567195681956919570195711957219573195741957519576195771957819579195801958119582195831958419585195861958719588195891959019591195921959319594195951959619597195981959919600196011960219603196041960519606196071960819609196101961119612196131961419615196161961719618196191962019621196221962319624196251962619627196281962919630196311963219633196341963519636196371963819639196401964119642196431964419645196461964719648196491965019651196521965319654196551965619657196581965919660196611966219663196641966519666196671966819669196701967119672196731967419675196761967719678196791968019681196821968319684196851968619687196881968919690196911969219693196941969519696196971969819699197001970119702197031970419705197061970719708197091971019711197121971319714197151971619717197181971919720197211972219723197241972519726197271972819729197301973119732197331973419735197361973719738197391974019741197421974319744197451974619747197481974919750197511975219753197541975519756197571975819759197601976119762197631976419765197661976719768197691977019771197721977319774197751977619777197781977919780197811978219783197841978519786197871978819789197901979119792197931979419795197961979719798197991980019801198021980319804198051980619807198081980919810198111981219813198141981519816198171981819819198201982119822198231982419825198261982719828198291983019831198321983319834198351983619837198381983919840198411984219843198441984519846198471984819849198501985119852198531985419855198561985719858198591986019861198621986319864198651986619867198681986919870198711987219873198741987519876198771987819879198801988119882198831988419885198861988719888198891989019891198921989319894198951989619897198981989919900199011990219903199041990519906199071990819909199101991119912199131991419915199161991719918199191992019921199221992319924199251992619927199281992919930199311993219933199341993519936199371993819939199401994119942199431994419945199461994719948199491995019951199521995319954199551995619957199581995919960199611996219963199641996519966199671996819969199701997119972199731997419975199761997719978199791998019981199821998319984199851998619987199881998919990199911999219993199941999519996199971999819999200002000120002200032000420005200062000720008200092001020011200122001320014200152001620017200182001920020200212002220023200242002520026200272002820029200302003120032200332003420035200362003720038200392004020041200422004320044200452004620047200482004920050200512005220053200542005520056200572005820059200602006120062200632006420065200662006720068200692007020071200722007320074200752007620077200782007920080200812008220083200842008520086200872008820089200902009120092200932009420095200962009720098200992010020101201022010320104201052010620107201082010920110201112011220113201142011520116201172011820119201202012120122201232012420125201262012720128201292013020131201322013320134201352013620137201382013920140201412014220143201442014520146201472014820149201502015120152201532015420155201562015720158201592016020161201622016320164201652016620167201682016920170201712017220173201742017520176201772017820179201802018120182201832018420185201862018720188201892019020191201922019320194201952019620197201982019920200202012020220203202042020520206202072020820209202102021120212202132021420215202162021720218202192022020221202222022320224202252022620227202282022920230202312023220233202342023520236202372023820239202402024120242202432024420245202462024720248202492025020251202522025320254202552025620257202582025920260202612026220263202642026520266202672026820269202702027120272202732027420275202762027720278202792028020281202822028320284202852028620287202882028920290202912029220293202942029520296202972029820299203002030120302203032030420305203062030720308203092031020311203122031320314203152031620317203182031920320203212032220323203242032520326203272032820329203302033120332203332033420335203362033720338203392034020341203422034320344203452034620347203482034920350203512035220353203542035520356203572035820359203602036120362203632036420365203662036720368203692037020371203722037320374203752037620377203782037920380203812038220383203842038520386203872038820389203902039120392203932039420395203962039720398203992040020401204022040320404204052040620407204082040920410204112041220413204142041520416204172041820419204202042120422204232042420425204262042720428204292043020431204322043320434204352043620437204382043920440204412044220443204442044520446204472044820449204502045120452204532045420455204562045720458204592046020461204622046320464204652046620467204682046920470204712047220473204742047520476204772047820479204802048120482204832048420485204862048720488204892049020491204922049320494204952049620497204982049920500205012050220503205042050520506205072050820509205102051120512205132051420515205162051720518205192052020521205222052320524205252052620527205282052920530205312053220533205342053520536205372053820539205402054120542205432054420545205462054720548205492055020551205522055320554205552055620557205582055920560205612056220563205642056520566205672056820569205702057120572205732057420575205762057720578205792058020581205822058320584205852058620587205882058920590205912059220593205942059520596205972059820599206002060120602206032060420605206062060720608206092061020611206122061320614206152061620617206182061920620206212062220623206242062520626206272062820629206302063120632206332063420635206362063720638206392064020641206422064320644206452064620647206482064920650206512065220653206542065520656206572065820659206602066120662206632066420665206662066720668206692067020671206722067320674206752067620677206782067920680206812068220683206842068520686206872068820689206902069120692206932069420695206962069720698206992070020701207022070320704207052070620707207082070920710207112071220713207142071520716207172071820719207202072120722207232072420725207262072720728207292073020731207322073320734207352073620737207382073920740207412074220743207442074520746207472074820749207502075120752207532075420755207562075720758207592076020761207622076320764207652076620767207682076920770207712077220773207742077520776207772077820779207802078120782207832078420785207862078720788207892079020791207922079320794207952079620797207982079920800208012080220803208042080520806208072080820809208102081120812208132081420815208162081720818208192082020821208222082320824208252082620827208282082920830208312083220833208342083520836208372083820839208402084120842208432084420845208462084720848208492085020851208522085320854208552085620857208582085920860208612086220863208642086520866208672086820869208702087120872208732087420875208762087720878208792088020881208822088320884208852088620887208882088920890208912089220893208942089520896208972089820899209002090120902209032090420905209062090720908209092091020911209122091320914209152091620917209182091920920209212092220923209242092520926209272092820929209302093120932209332093420935209362093720938209392094020941209422094320944209452094620947209482094920950209512095220953209542095520956209572095820959209602096120962209632096420965209662096720968209692097020971209722097320974209752097620977209782097920980209812098220983209842098520986209872098820989209902099120992209932099420995209962099720998209992100021001210022100321004210052100621007210082100921010210112101221013210142101521016210172101821019210202102121022210232102421025210262102721028210292103021031210322103321034210352103621037210382103921040210412104221043210442104521046210472104821049210502105121052210532105421055210562105721058210592106021061210622106321064210652106621067210682106921070210712107221073210742107521076210772107821079210802108121082210832108421085210862108721088210892109021091210922109321094210952109621097210982109921100211012110221103211042110521106211072110821109211102111121112211132111421115211162111721118211192112021121211222112321124211252112621127211282112921130211312113221133211342113521136211372113821139211402114121142211432114421145211462114721148211492115021151211522115321154211552115621157211582115921160211612116221163211642116521166211672116821169211702117121172211732117421175211762117721178211792118021181211822118321184211852118621187211882118921190211912119221193211942119521196211972119821199212002120121202212032120421205212062120721208212092121021211212122121321214212152121621217212182121921220212212122221223212242122521226212272122821229212302123121232212332123421235212362123721238212392124021241212422124321244212452124621247212482124921250212512125221253212542125521256212572125821259212602126121262212632126421265212662126721268212692127021271212722127321274212752127621277212782127921280212812128221283212842128521286212872128821289212902129121292212932129421295212962129721298212992130021301213022130321304213052130621307213082130921310213112131221313213142131521316213172131821319213202132121322213232132421325213262132721328213292133021331213322133321334213352133621337213382133921340213412134221343213442134521346213472134821349213502135121352213532135421355213562135721358213592136021361213622136321364213652136621367213682136921370213712137221373213742137521376213772137821379213802138121382213832138421385213862138721388213892139021391213922139321394213952139621397213982139921400214012140221403214042140521406214072140821409214102141121412214132141421415214162141721418214192142021421214222142321424214252142621427214282142921430214312143221433214342143521436214372143821439214402144121442214432144421445214462144721448214492145021451214522145321454214552145621457214582145921460214612146221463214642146521466214672146821469214702147121472214732147421475214762147721478214792148021481214822148321484214852148621487214882148921490214912149221493214942149521496214972149821499215002150121502215032150421505215062150721508215092151021511215122151321514215152151621517215182151921520215212152221523215242152521526215272152821529215302153121532215332153421535215362153721538215392154021541215422154321544215452154621547215482154921550215512155221553215542155521556215572155821559215602156121562215632156421565215662156721568215692157021571215722157321574215752157621577215782157921580215812158221583215842158521586215872158821589215902159121592215932159421595215962159721598215992160021601216022160321604216052160621607216082160921610216112161221613216142161521616216172161821619216202162121622216232162421625216262162721628216292163021631216322163321634216352163621637216382163921640216412164221643216442164521646216472164821649216502165121652216532165421655216562165721658216592166021661216622166321664216652166621667216682166921670216712167221673216742167521676216772167821679216802168121682216832168421685216862168721688216892169021691216922169321694216952169621697216982169921700217012170221703217042170521706217072170821709217102171121712217132171421715217162171721718217192172021721217222172321724217252172621727217282172921730217312173221733217342173521736217372173821739217402174121742217432174421745217462174721748217492175021751217522175321754217552175621757217582175921760217612176221763217642176521766217672176821769217702177121772217732177421775217762177721778217792178021781217822178321784217852178621787217882178921790217912179221793217942179521796217972179821799218002180121802218032180421805218062180721808218092181021811218122181321814218152181621817218182181921820218212182221823218242182521826218272182821829218302183121832218332183421835218362183721838218392184021841218422184321844218452184621847218482184921850218512185221853218542185521856218572185821859218602186121862218632186421865218662186721868218692187021871218722187321874218752187621877218782187921880218812188221883218842188521886218872188821889218902189121892218932189421895218962189721898218992190021901219022190321904219052190621907219082190921910219112191221913219142191521916219172191821919219202192121922219232192421925219262192721928219292193021931219322193321934219352193621937219382193921940219412194221943219442194521946219472194821949219502195121952219532195421955219562195721958219592196021961219622196321964219652196621967219682196921970219712197221973219742197521976219772197821979219802198121982219832198421985219862198721988219892199021991219922199321994219952199621997219982199922000220012200222003220042200522006220072200822009220102201122012220132201422015220162201722018220192202022021220222202322024220252202622027220282202922030220312203222033220342203522036220372203822039220402204122042220432204422045220462204722048220492205022051220522205322054220552205622057220582205922060220612206222063220642206522066220672206822069220702207122072220732207422075220762207722078220792208022081220822208322084220852208622087220882208922090220912209222093220942209522096220972209822099221002210122102221032210422105221062210722108221092211022111221122211322114221152211622117221182211922120221212212222123221242212522126221272212822129221302213122132221332213422135221362213722138221392214022141221422214322144221452214622147221482214922150221512215222153221542215522156221572215822159221602216122162221632216422165221662216722168221692217022171221722217322174221752217622177221782217922180221812218222183221842218522186221872218822189221902219122192221932219422195221962219722198221992220022201222022220322204222052220622207222082220922210222112221222213222142221522216222172221822219222202222122222222232222422225222262222722228222292223022231222322223322234222352223622237222382223922240222412224222243222442224522246222472224822249222502225122252222532225422255222562225722258222592226022261222622226322264222652226622267222682226922270222712227222273222742227522276222772227822279222802228122282222832228422285222862228722288222892229022291222922229322294222952229622297222982229922300223012230222303223042230522306223072230822309223102231122312223132231422315223162231722318223192232022321223222232322324223252232622327223282232922330223312233222333223342233522336223372233822339223402234122342223432234422345223462234722348223492235022351223522235322354223552235622357223582235922360223612236222363223642236522366223672236822369223702237122372223732237422375223762237722378223792238022381223822238322384223852238622387223882238922390223912239222393223942239522396223972239822399224002240122402224032240422405224062240722408224092241022411224122241322414224152241622417224182241922420224212242222423224242242522426224272242822429224302243122432224332243422435224362243722438224392244022441224422244322444224452244622447224482244922450224512245222453224542245522456224572245822459224602246122462224632246422465224662246722468224692247022471224722247322474224752247622477224782247922480224812248222483224842248522486224872248822489224902249122492224932249422495224962249722498224992250022501225022250322504225052250622507225082250922510225112251222513225142251522516225172251822519225202252122522225232252422525225262252722528225292253022531225322253322534225352253622537225382253922540225412254222543225442254522546225472254822549225502255122552225532255422555225562255722558225592256022561225622256322564225652256622567225682256922570225712257222573225742257522576225772257822579225802258122582225832258422585225862258722588225892259022591225922259322594225952259622597225982259922600226012260222603226042260522606226072260822609226102261122612226132261422615226162261722618226192262022621226222262322624226252262622627226282262922630226312263222633226342263522636226372263822639226402264122642226432264422645226462264722648226492265022651226522265322654226552265622657226582265922660226612266222663226642266522666226672266822669226702267122672226732267422675226762267722678226792268022681226822268322684226852268622687226882268922690226912269222693226942269522696226972269822699227002270122702227032270422705227062270722708227092271022711227122271322714227152271622717227182271922720227212272222723227242272522726227272272822729227302273122732227332273422735227362273722738227392274022741227422274322744227452274622747227482274922750227512275222753227542275522756227572275822759
  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.69 for gperftools 2.7.
  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.7'
  544. PACKAGE_STRING='gperftools 2.7'
  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_header_list=
  584. ac_subst_vars='am__EXEEXT_FALSE
  585. am__EXEEXT_TRUE
  586. LTLIBOBJS
  587. LIBOBJS
  588. WITH_STACK_TRACE_FALSE
  589. WITH_STACK_TRACE_TRUE
  590. WITH_HEAP_PROFILER_OR_CHECKER_FALSE
  591. WITH_HEAP_PROFILER_OR_CHECKER_TRUE
  592. WITH_DEBUGALLOC_FALSE
  593. WITH_DEBUGALLOC_TRUE
  594. WITH_HEAP_CHECKER_FALSE
  595. WITH_HEAP_CHECKER_TRUE
  596. WITH_HEAP_PROFILER_FALSE
  597. WITH_HEAP_PROFILER_TRUE
  598. WITH_CPU_PROFILER_FALSE
  599. WITH_CPU_PROFILER_TRUE
  600. OSX_FALSE
  601. OSX_TRUE
  602. MINGW_FALSE
  603. MINGW_TRUE
  604. HAVE_PTHREAD_DESPITE_ASKING_FOR_FALSE
  605. HAVE_PTHREAD_DESPITE_ASKING_FOR_TRUE
  606. PTHREAD_CFLAGS
  607. PTHREAD_LIBS
  608. PTHREAD_CC
  609. acx_pthread_config
  610. LIBSTDCXX_LA_LINKER_FLAG
  611. NANOSLEEP_LIBS
  612. BUILD_EMERGENCY_MALLOC_FALSE
  613. BUILD_EMERGENCY_MALLOC_TRUE
  614. ac_cv_have_std_align_val_t
  615. HAVE_F_ALIGNED_NEW_FALSE
  616. HAVE_F_ALIGNED_NEW_TRUE
  617. HAVE_SIZED_DEALLOCATION_FALSE
  618. HAVE_SIZED_DEALLOCATION_TRUE
  619. HAVE_W_NO_UNUSED_RESULT_FALSE
  620. HAVE_W_NO_UNUSED_RESULT_TRUE
  621. I386_FALSE
  622. I386_TRUE
  623. X86_64_AND_NO_FP_BY_DEFAULT_FALSE
  624. X86_64_AND_NO_FP_BY_DEFAULT_TRUE
  625. ENABLE_FRAME_POINTERS_FALSE
  626. ENABLE_FRAME_POINTERS_TRUE
  627. UNWIND_LIBS
  628. ENABLE_STATIC_FALSE
  629. ENABLE_STATIC_TRUE
  630. ac_cv_have_struct_mallinfo
  631. CXXCPP
  632. LT_SYS_LIBRARY_PATH
  633. OTOOL64
  634. OTOOL
  635. LIPO
  636. NMEDIT
  637. DSYMUTIL
  638. MANIFEST_TOOL
  639. RANLIB
  640. ac_ct_AR
  641. AR
  642. DLLTOOL
  643. OBJDUMP
  644. LN_S
  645. NM
  646. ac_ct_DUMPBIN
  647. DUMPBIN
  648. LD
  649. FGREP
  650. EGREP
  651. GREP
  652. SED
  653. LIBTOOL
  654. HAVE_OBJCOPY_WEAKEN_FALSE
  655. HAVE_OBJCOPY_WEAKEN_TRUE
  656. OBJCOPY
  657. GCC_FALSE
  658. GCC_TRUE
  659. CPP
  660. am__fastdepCXX_FALSE
  661. am__fastdepCXX_TRUE
  662. CXXDEPMODE
  663. ac_ct_CXX
  664. CXXFLAGS
  665. CXX
  666. am__fastdepCC_FALSE
  667. am__fastdepCC_TRUE
  668. CCDEPMODE
  669. am__nodep
  670. AMDEPBACKSLASH
  671. AMDEP_FALSE
  672. AMDEP_TRUE
  673. am__quote
  674. am__include
  675. DEPDIR
  676. OBJEXT
  677. EXEEXT
  678. ac_ct_CC
  679. CPPFLAGS
  680. LDFLAGS
  681. CFLAGS
  682. CC
  683. GENERATE_CHANGELOG_RULES
  684. GIT
  685. TC_VERSION_PATCH
  686. TC_VERSION_MINOR
  687. TC_VERSION_MAJOR
  688. MAINT
  689. MAINTAINER_MODE_FALSE
  690. MAINTAINER_MODE_TRUE
  691. AM_BACKSLASH
  692. AM_DEFAULT_VERBOSITY
  693. AM_DEFAULT_V
  694. AM_V
  695. am__untar
  696. am__tar
  697. AMTAR
  698. am__leading_dot
  699. SET_MAKE
  700. AWK
  701. mkdir_p
  702. MKDIR_P
  703. INSTALL_STRIP_PROGRAM
  704. STRIP
  705. install_sh
  706. MAKEINFO
  707. AUTOHEADER
  708. AUTOMAKE
  709. AUTOCONF
  710. ACLOCAL
  711. VERSION
  712. PACKAGE
  713. CYGPATH_W
  714. am__isrc
  715. INSTALL_DATA
  716. INSTALL_SCRIPT
  717. INSTALL_PROGRAM
  718. host_os
  719. host_vendor
  720. host_cpu
  721. host
  722. build_os
  723. build_vendor
  724. build_cpu
  725. build
  726. PROFILER_SO_VERSION
  727. TCMALLOC_SO_VERSION
  728. target_alias
  729. host_alias
  730. build_alias
  731. LIBS
  732. ECHO_T
  733. ECHO_N
  734. ECHO_C
  735. DEFS
  736. mandir
  737. localedir
  738. libdir
  739. psdir
  740. pdfdir
  741. dvidir
  742. htmldir
  743. infodir
  744. docdir
  745. oldincludedir
  746. includedir
  747. runstatedir
  748. localstatedir
  749. sharedstatedir
  750. sysconfdir
  751. datadir
  752. datarootdir
  753. libexecdir
  754. sbindir
  755. bindir
  756. program_transform_name
  757. prefix
  758. exec_prefix
  759. PACKAGE_URL
  760. PACKAGE_BUGREPORT
  761. PACKAGE_STRING
  762. PACKAGE_VERSION
  763. PACKAGE_TARNAME
  764. PACKAGE_NAME
  765. PATH_SEPARATOR
  766. SHELL'
  767. ac_subst_files=''
  768. ac_user_opts='
  769. enable_option_checking
  770. enable_silent_rules
  771. enable_maintainer_mode
  772. enable_dependency_tracking
  773. enable_cpu_profiler
  774. enable_heap_profiler
  775. enable_heap_checker
  776. enable_debugalloc
  777. enable_minimal
  778. enable_stacktrace_via_backtrace
  779. enable_libunwind
  780. with_tcmalloc_pagesize
  781. with_tcmalloc_alignment
  782. enable_shared
  783. enable_static
  784. with_pic
  785. enable_fast_install
  786. with_aix_soname
  787. with_gnu_ld
  788. with_sysroot
  789. enable_libtool_lock
  790. enable_frame_pointers
  791. enable_dynamic_sized_delete_support
  792. enable_sized_delete
  793. enable_emergency_malloc
  794. '
  795. ac_precious_vars='build_alias
  796. host_alias
  797. target_alias
  798. CC
  799. CFLAGS
  800. LDFLAGS
  801. LIBS
  802. CPPFLAGS
  803. CXX
  804. CXXFLAGS
  805. CCC
  806. CPP
  807. LT_SYS_LIBRARY_PATH
  808. CXXCPP'
  809. # Initialize some variables set by options.
  810. ac_init_help=
  811. ac_init_version=false
  812. ac_unrecognized_opts=
  813. ac_unrecognized_sep=
  814. # The variables have the same names as the options, with
  815. # dashes changed to underlines.
  816. cache_file=/dev/null
  817. exec_prefix=NONE
  818. no_create=
  819. no_recursion=
  820. prefix=NONE
  821. program_prefix=NONE
  822. program_suffix=NONE
  823. program_transform_name=s,x,x,
  824. silent=
  825. site=
  826. srcdir=
  827. verbose=
  828. x_includes=NONE
  829. x_libraries=NONE
  830. # Installation directory options.
  831. # These are left unexpanded so users can "make install exec_prefix=/foo"
  832. # and all the variables that are supposed to be based on exec_prefix
  833. # by default will actually change.
  834. # Use braces instead of parens because sh, perl, etc. also accept them.
  835. # (The list follows the same order as the GNU Coding Standards.)
  836. bindir='${exec_prefix}/bin'
  837. sbindir='${exec_prefix}/sbin'
  838. libexecdir='${exec_prefix}/libexec'
  839. datarootdir='${prefix}/share'
  840. datadir='${datarootdir}'
  841. sysconfdir='${prefix}/etc'
  842. sharedstatedir='${prefix}/com'
  843. localstatedir='${prefix}/var'
  844. runstatedir='${localstatedir}/run'
  845. includedir='${prefix}/include'
  846. oldincludedir='/usr/include'
  847. docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
  848. infodir='${datarootdir}/info'
  849. htmldir='${docdir}'
  850. dvidir='${docdir}'
  851. pdfdir='${docdir}'
  852. psdir='${docdir}'
  853. libdir='${exec_prefix}/lib'
  854. localedir='${datarootdir}/locale'
  855. mandir='${datarootdir}/man'
  856. ac_prev=
  857. ac_dashdash=
  858. for ac_option
  859. do
  860. # If the previous option needs an argument, assign it.
  861. if test -n "$ac_prev"; then
  862. eval $ac_prev=\$ac_option
  863. ac_prev=
  864. continue
  865. fi
  866. case $ac_option in
  867. *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  868. *=) ac_optarg= ;;
  869. *) ac_optarg=yes ;;
  870. esac
  871. # Accept the important Cygnus configure options, so we can diagnose typos.
  872. case $ac_dashdash$ac_option in
  873. --)
  874. ac_dashdash=yes ;;
  875. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  876. ac_prev=bindir ;;
  877. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  878. bindir=$ac_optarg ;;
  879. -build | --build | --buil | --bui | --bu)
  880. ac_prev=build_alias ;;
  881. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  882. build_alias=$ac_optarg ;;
  883. -cache-file | --cache-file | --cache-fil | --cache-fi \
  884. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  885. ac_prev=cache_file ;;
  886. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  887. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  888. cache_file=$ac_optarg ;;
  889. --config-cache | -C)
  890. cache_file=config.cache ;;
  891. -datadir | --datadir | --datadi | --datad)
  892. ac_prev=datadir ;;
  893. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  894. datadir=$ac_optarg ;;
  895. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  896. | --dataroo | --dataro | --datar)
  897. ac_prev=datarootdir ;;
  898. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  899. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  900. datarootdir=$ac_optarg ;;
  901. -disable-* | --disable-*)
  902. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  903. # Reject names that are not valid shell variable names.
  904. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  905. as_fn_error $? "invalid feature name: $ac_useropt"
  906. ac_useropt_orig=$ac_useropt
  907. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  908. case $ac_user_opts in
  909. *"
  910. "enable_$ac_useropt"
  911. "*) ;;
  912. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  913. ac_unrecognized_sep=', ';;
  914. esac
  915. eval enable_$ac_useropt=no ;;
  916. -docdir | --docdir | --docdi | --doc | --do)
  917. ac_prev=docdir ;;
  918. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  919. docdir=$ac_optarg ;;
  920. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  921. ac_prev=dvidir ;;
  922. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  923. dvidir=$ac_optarg ;;
  924. -enable-* | --enable-*)
  925. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  926. # Reject names that are not valid shell variable names.
  927. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  928. as_fn_error $? "invalid feature name: $ac_useropt"
  929. ac_useropt_orig=$ac_useropt
  930. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  931. case $ac_user_opts in
  932. *"
  933. "enable_$ac_useropt"
  934. "*) ;;
  935. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  936. ac_unrecognized_sep=', ';;
  937. esac
  938. eval enable_$ac_useropt=\$ac_optarg ;;
  939. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  940. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  941. | --exec | --exe | --ex)
  942. ac_prev=exec_prefix ;;
  943. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  944. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  945. | --exec=* | --exe=* | --ex=*)
  946. exec_prefix=$ac_optarg ;;
  947. -gas | --gas | --ga | --g)
  948. # Obsolete; use --with-gas.
  949. with_gas=yes ;;
  950. -help | --help | --hel | --he | -h)
  951. ac_init_help=long ;;
  952. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  953. ac_init_help=recursive ;;
  954. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  955. ac_init_help=short ;;
  956. -host | --host | --hos | --ho)
  957. ac_prev=host_alias ;;
  958. -host=* | --host=* | --hos=* | --ho=*)
  959. host_alias=$ac_optarg ;;
  960. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  961. ac_prev=htmldir ;;
  962. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  963. | --ht=*)
  964. htmldir=$ac_optarg ;;
  965. -includedir | --includedir | --includedi | --included | --include \
  966. | --includ | --inclu | --incl | --inc)
  967. ac_prev=includedir ;;
  968. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  969. | --includ=* | --inclu=* | --incl=* | --inc=*)
  970. includedir=$ac_optarg ;;
  971. -infodir | --infodir | --infodi | --infod | --info | --inf)
  972. ac_prev=infodir ;;
  973. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  974. infodir=$ac_optarg ;;
  975. -libdir | --libdir | --libdi | --libd)
  976. ac_prev=libdir ;;
  977. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  978. libdir=$ac_optarg ;;
  979. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  980. | --libexe | --libex | --libe)
  981. ac_prev=libexecdir ;;
  982. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  983. | --libexe=* | --libex=* | --libe=*)
  984. libexecdir=$ac_optarg ;;
  985. -localedir | --localedir | --localedi | --localed | --locale)
  986. ac_prev=localedir ;;
  987. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  988. localedir=$ac_optarg ;;
  989. -localstatedir | --localstatedir | --localstatedi | --localstated \
  990. | --localstate | --localstat | --localsta | --localst | --locals)
  991. ac_prev=localstatedir ;;
  992. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  993. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  994. localstatedir=$ac_optarg ;;
  995. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  996. ac_prev=mandir ;;
  997. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  998. mandir=$ac_optarg ;;
  999. -nfp | --nfp | --nf)
  1000. # Obsolete; use --without-fp.
  1001. with_fp=no ;;
  1002. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  1003. | --no-cr | --no-c | -n)
  1004. no_create=yes ;;
  1005. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  1006. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  1007. no_recursion=yes ;;
  1008. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  1009. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  1010. | --oldin | --oldi | --old | --ol | --o)
  1011. ac_prev=oldincludedir ;;
  1012. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  1013. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  1014. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  1015. oldincludedir=$ac_optarg ;;
  1016. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  1017. ac_prev=prefix ;;
  1018. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  1019. prefix=$ac_optarg ;;
  1020. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  1021. | --program-pre | --program-pr | --program-p)
  1022. ac_prev=program_prefix ;;
  1023. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  1024. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  1025. program_prefix=$ac_optarg ;;
  1026. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  1027. | --program-suf | --program-su | --program-s)
  1028. ac_prev=program_suffix ;;
  1029. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  1030. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  1031. program_suffix=$ac_optarg ;;
  1032. -program-transform-name | --program-transform-name \
  1033. | --program-transform-nam | --program-transform-na \
  1034. | --program-transform-n | --program-transform- \
  1035. | --program-transform | --program-transfor \
  1036. | --program-transfo | --program-transf \
  1037. | --program-trans | --program-tran \
  1038. | --progr-tra | --program-tr | --program-t)
  1039. ac_prev=program_transform_name ;;
  1040. -program-transform-name=* | --program-transform-name=* \
  1041. | --program-transform-nam=* | --program-transform-na=* \
  1042. | --program-transform-n=* | --program-transform-=* \
  1043. | --program-transform=* | --program-transfor=* \
  1044. | --program-transfo=* | --program-transf=* \
  1045. | --program-trans=* | --program-tran=* \
  1046. | --progr-tra=* | --program-tr=* | --program-t=*)
  1047. program_transform_name=$ac_optarg ;;
  1048. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  1049. ac_prev=pdfdir ;;
  1050. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  1051. pdfdir=$ac_optarg ;;
  1052. -psdir | --psdir | --psdi | --psd | --ps)
  1053. ac_prev=psdir ;;
  1054. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  1055. psdir=$ac_optarg ;;
  1056. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1057. | -silent | --silent | --silen | --sile | --sil)
  1058. silent=yes ;;
  1059. -runstatedir | --runstatedir | --runstatedi | --runstated \
  1060. | --runstate | --runstat | --runsta | --runst | --runs \
  1061. | --run | --ru | --r)
  1062. ac_prev=runstatedir ;;
  1063. -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
  1064. | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
  1065. | --run=* | --ru=* | --r=*)
  1066. runstatedir=$ac_optarg ;;
  1067. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  1068. ac_prev=sbindir ;;
  1069. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  1070. | --sbi=* | --sb=*)
  1071. sbindir=$ac_optarg ;;
  1072. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  1073. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  1074. | --sharedst | --shareds | --shared | --share | --shar \
  1075. | --sha | --sh)
  1076. ac_prev=sharedstatedir ;;
  1077. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  1078. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  1079. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  1080. | --sha=* | --sh=*)
  1081. sharedstatedir=$ac_optarg ;;
  1082. -site | --site | --sit)
  1083. ac_prev=site ;;
  1084. -site=* | --site=* | --sit=*)
  1085. site=$ac_optarg ;;
  1086. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  1087. ac_prev=srcdir ;;
  1088. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1089. srcdir=$ac_optarg ;;
  1090. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  1091. | --syscon | --sysco | --sysc | --sys | --sy)
  1092. ac_prev=sysconfdir ;;
  1093. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  1094. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  1095. sysconfdir=$ac_optarg ;;
  1096. -target | --target | --targe | --targ | --tar | --ta | --t)
  1097. ac_prev=target_alias ;;
  1098. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  1099. target_alias=$ac_optarg ;;
  1100. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  1101. verbose=yes ;;
  1102. -version | --version | --versio | --versi | --vers | -V)
  1103. ac_init_version=: ;;
  1104. -with-* | --with-*)
  1105. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1106. # Reject names that are not valid shell variable names.
  1107. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1108. as_fn_error $? "invalid package name: $ac_useropt"
  1109. ac_useropt_orig=$ac_useropt
  1110. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1111. case $ac_user_opts in
  1112. *"
  1113. "with_$ac_useropt"
  1114. "*) ;;
  1115. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  1116. ac_unrecognized_sep=', ';;
  1117. esac
  1118. eval with_$ac_useropt=\$ac_optarg ;;
  1119. -without-* | --without-*)
  1120. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1121. # Reject names that are not valid shell variable names.
  1122. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1123. as_fn_error $? "invalid package name: $ac_useropt"
  1124. ac_useropt_orig=$ac_useropt
  1125. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1126. case $ac_user_opts in
  1127. *"
  1128. "with_$ac_useropt"
  1129. "*) ;;
  1130. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  1131. ac_unrecognized_sep=', ';;
  1132. esac
  1133. eval with_$ac_useropt=no ;;
  1134. --x)
  1135. # Obsolete; use --with-x.
  1136. with_x=yes ;;
  1137. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1138. | --x-incl | --x-inc | --x-in | --x-i)
  1139. ac_prev=x_includes ;;
  1140. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1141. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1142. x_includes=$ac_optarg ;;
  1143. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1144. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1145. ac_prev=x_libraries ;;
  1146. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1147. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1148. x_libraries=$ac_optarg ;;
  1149. -*) as_fn_error $? "unrecognized option: \`$ac_option'
  1150. Try \`$0 --help' for more information"
  1151. ;;
  1152. *=*)
  1153. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1154. # Reject names that are not valid shell variable names.
  1155. case $ac_envvar in #(
  1156. '' | [0-9]* | *[!_$as_cr_alnum]* )
  1157. as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
  1158. esac
  1159. eval $ac_envvar=\$ac_optarg
  1160. export $ac_envvar ;;
  1161. *)
  1162. # FIXME: should be removed in autoconf 3.0.
  1163. $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1164. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1165. $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1166. : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
  1167. ;;
  1168. esac
  1169. done
  1170. if test -n "$ac_prev"; then
  1171. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1172. as_fn_error $? "missing argument to $ac_option"
  1173. fi
  1174. if test -n "$ac_unrecognized_opts"; then
  1175. case $enable_option_checking in
  1176. no) ;;
  1177. fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
  1178. *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1179. esac
  1180. fi
  1181. # Check all directory arguments for consistency.
  1182. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1183. datadir sysconfdir sharedstatedir localstatedir includedir \
  1184. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1185. libdir localedir mandir runstatedir
  1186. do
  1187. eval ac_val=\$$ac_var
  1188. # Remove trailing slashes.
  1189. case $ac_val in
  1190. */ )
  1191. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1192. eval $ac_var=\$ac_val;;
  1193. esac
  1194. # Be sure to have absolute directory names.
  1195. case $ac_val in
  1196. [\\/$]* | ?:[\\/]* ) continue;;
  1197. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1198. esac
  1199. as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
  1200. done
  1201. # There might be people who depend on the old broken behavior: `$host'
  1202. # used to hold the argument of --host etc.
  1203. # FIXME: To remove some day.
  1204. build=$build_alias
  1205. host=$host_alias
  1206. target=$target_alias
  1207. # FIXME: To remove some day.
  1208. if test "x$host_alias" != x; then
  1209. if test "x$build_alias" = x; then
  1210. cross_compiling=maybe
  1211. elif test "x$build_alias" != "x$host_alias"; then
  1212. cross_compiling=yes
  1213. fi
  1214. fi
  1215. ac_tool_prefix=
  1216. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1217. test "$silent" = yes && exec 6>/dev/null
  1218. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1219. ac_ls_di=`ls -di .` &&
  1220. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1221. as_fn_error $? "working directory cannot be determined"
  1222. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1223. as_fn_error $? "pwd does not report name of working directory"
  1224. # Find the source files, if location was not specified.
  1225. if test -z "$srcdir"; then
  1226. ac_srcdir_defaulted=yes
  1227. # Try the directory containing this script, then the parent directory.
  1228. ac_confdir=`$as_dirname -- "$as_myself" ||
  1229. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1230. X"$as_myself" : 'X\(//\)[^/]' \| \
  1231. X"$as_myself" : 'X\(//\)$' \| \
  1232. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1233. $as_echo X"$as_myself" |
  1234. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1235. s//\1/
  1236. q
  1237. }
  1238. /^X\(\/\/\)[^/].*/{
  1239. s//\1/
  1240. q
  1241. }
  1242. /^X\(\/\/\)$/{
  1243. s//\1/
  1244. q
  1245. }
  1246. /^X\(\/\).*/{
  1247. s//\1/
  1248. q
  1249. }
  1250. s/.*/./; q'`
  1251. srcdir=$ac_confdir
  1252. if test ! -r "$srcdir/$ac_unique_file"; then
  1253. srcdir=..
  1254. fi
  1255. else
  1256. ac_srcdir_defaulted=no
  1257. fi
  1258. if test ! -r "$srcdir/$ac_unique_file"; then
  1259. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1260. as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
  1261. fi
  1262. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1263. ac_abs_confdir=`(
  1264. cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
  1265. pwd)`
  1266. # When building in place, set srcdir=.
  1267. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1268. srcdir=.
  1269. fi
  1270. # Remove unnecessary trailing slashes from srcdir.
  1271. # Double slashes in file names in object file debugging info
  1272. # mess up M-x gdb in Emacs.
  1273. case $srcdir in
  1274. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1275. esac
  1276. for ac_var in $ac_precious_vars; do
  1277. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1278. eval ac_env_${ac_var}_value=\$${ac_var}
  1279. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1280. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1281. done
  1282. #
  1283. # Report the --help message.
  1284. #
  1285. if test "$ac_init_help" = "long"; then
  1286. # Omit some internal or obsolete options to make the list less imposing.
  1287. # This message is too long to be a string in the A/UX 3.1 sh.
  1288. cat <<_ACEOF
  1289. \`configure' configures gperftools 2.7 to adapt to many kinds of systems.
  1290. Usage: $0 [OPTION]... [VAR=VALUE]...
  1291. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1292. VAR=VALUE. See below for descriptions of some of the useful variables.
  1293. Defaults for the options are specified in brackets.
  1294. Configuration:
  1295. -h, --help display this help and exit
  1296. --help=short display options specific to this package
  1297. --help=recursive display the short help of all the included packages
  1298. -V, --version display version information and exit
  1299. -q, --quiet, --silent do not print \`checking ...' messages
  1300. --cache-file=FILE cache test results in FILE [disabled]
  1301. -C, --config-cache alias for \`--cache-file=config.cache'
  1302. -n, --no-create do not create output files
  1303. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1304. Installation directories:
  1305. --prefix=PREFIX install architecture-independent files in PREFIX
  1306. [$ac_default_prefix]
  1307. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1308. [PREFIX]
  1309. By default, \`make install' will install all the files in
  1310. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1311. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1312. for instance \`--prefix=\$HOME'.
  1313. For better control, use the options below.
  1314. Fine tuning of the installation directories:
  1315. --bindir=DIR user executables [EPREFIX/bin]
  1316. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1317. --libexecdir=DIR program executables [EPREFIX/libexec]
  1318. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1319. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1320. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1321. --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
  1322. --libdir=DIR object code libraries [EPREFIX/lib]
  1323. --includedir=DIR C header files [PREFIX/include]
  1324. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1325. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1326. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1327. --infodir=DIR info documentation [DATAROOTDIR/info]
  1328. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1329. --mandir=DIR man documentation [DATAROOTDIR/man]
  1330. --docdir=DIR documentation root [DATAROOTDIR/doc/gperftools]
  1331. --htmldir=DIR html documentation [DOCDIR]
  1332. --dvidir=DIR dvi documentation [DOCDIR]
  1333. --pdfdir=DIR pdf documentation [DOCDIR]
  1334. --psdir=DIR ps documentation [DOCDIR]
  1335. _ACEOF
  1336. cat <<\_ACEOF
  1337. Program names:
  1338. --program-prefix=PREFIX prepend PREFIX to installed program names
  1339. --program-suffix=SUFFIX append SUFFIX to installed program names
  1340. --program-transform-name=PROGRAM run sed PROGRAM on installed program names
  1341. System types:
  1342. --build=BUILD configure for building on BUILD [guessed]
  1343. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1344. _ACEOF
  1345. fi
  1346. if test -n "$ac_init_help"; then
  1347. case $ac_init_help in
  1348. short | recursive ) echo "Configuration of gperftools 2.7:";;
  1349. esac
  1350. cat <<\_ACEOF
  1351. Optional Features:
  1352. --disable-option-checking ignore unrecognized --enable/--with options
  1353. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1354. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1355. --enable-silent-rules less verbose build output (undo: "make V=1")
  1356. --disable-silent-rules verbose build output (undo: "make V=0")
  1357. --enable-maintainer-mode
  1358. enable make rules and dependencies not useful (and
  1359. sometimes confusing) to the casual installer
  1360. --enable-dependency-tracking
  1361. do not reject slow dependency extractors
  1362. --disable-dependency-tracking
  1363. speeds up one-time build
  1364. --disable-cpu-profiler do not build the cpu profiler
  1365. --disable-heap-profiler do not build the heap profiler
  1366. --disable-heap-checker do not build the heap checker
  1367. --disable-debugalloc do not build versions of libs with debugalloc
  1368. --enable-minimal build only tcmalloc-minimal (and maybe
  1369. tcmalloc-minimal-debug)
  1370. --enable-stacktrace-via-backtrace
  1371. enable use of backtrace() for stacktrace capturing
  1372. (may deadlock)
  1373. --enable-libunwind enable libunwind linking
  1374. --enable-shared[=PKGS] build shared libraries [default=yes]
  1375. --enable-static[=PKGS] build static libraries [default=yes]
  1376. --enable-fast-install[=PKGS]
  1377. optimize for fast installation [default=yes]
  1378. --disable-libtool-lock avoid locking (might break parallel builds)
  1379. --enable-frame-pointers On x86_64 systems, compile with
  1380. -fno-omit-frame-pointer (see INSTALL)
  1381. --enable-dynamic-sized-delete-support
  1382. try to build run-time switch for sized delete
  1383. operator
  1384. --enable-sized-delete build sized delete operator
  1385. --enable-emergency-malloc
  1386. build emergency malloc feature
  1387. Optional Packages:
  1388. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1389. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1390. --with-tcmalloc-pagesize
  1391. Set the tcmalloc internal page size to 8K, 32K or
  1392. 64K
  1393. --with-tcmalloc-alignment
  1394. Set the tcmalloc allocation alignment to 8 or 16
  1395. bytes
  1396. --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
  1397. both]
  1398. --with-aix-soname=aix|svr4|both
  1399. shared library versioning (aka "SONAME") variant to
  1400. provide on AIX, [default=aix].
  1401. --with-gnu-ld assume the C compiler uses GNU ld [default=no]
  1402. --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
  1403. compiler's sysroot if not specified).
  1404. Some influential environment variables:
  1405. CC C compiler command
  1406. CFLAGS C compiler flags
  1407. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1408. nonstandard directory <lib dir>
  1409. LIBS libraries to pass to the linker, e.g. -l<library>
  1410. CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
  1411. you have headers in a nonstandard directory <include dir>
  1412. CXX C++ compiler command
  1413. CXXFLAGS C++ compiler flags
  1414. CPP C preprocessor
  1415. LT_SYS_LIBRARY_PATH
  1416. User-defined run-time library search path.
  1417. CXXCPP C++ preprocessor
  1418. Use these variables to override the choices made by `configure' or to help
  1419. it to find libraries and programs with nonstandard names/locations.
  1420. Report bugs to <gperftools@googlegroups.com>.
  1421. _ACEOF
  1422. ac_status=$?
  1423. fi
  1424. if test "$ac_init_help" = "recursive"; then
  1425. # If there are subdirs, report their specific --help.
  1426. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1427. test -d "$ac_dir" ||
  1428. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1429. continue
  1430. ac_builddir=.
  1431. case "$ac_dir" in
  1432. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1433. *)
  1434. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  1435. # A ".." for each directory in $ac_dir_suffix.
  1436. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1437. case $ac_top_builddir_sub in
  1438. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1439. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1440. esac ;;
  1441. esac
  1442. ac_abs_top_builddir=$ac_pwd
  1443. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1444. # for backward compatibility:
  1445. ac_top_builddir=$ac_top_build_prefix
  1446. case $srcdir in
  1447. .) # We are building in place.
  1448. ac_srcdir=.
  1449. ac_top_srcdir=$ac_top_builddir_sub
  1450. ac_abs_top_srcdir=$ac_pwd ;;
  1451. [\\/]* | ?:[\\/]* ) # Absolute name.
  1452. ac_srcdir=$srcdir$ac_dir_suffix;
  1453. ac_top_srcdir=$srcdir
  1454. ac_abs_top_srcdir=$srcdir ;;
  1455. *) # Relative name.
  1456. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1457. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1458. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1459. esac
  1460. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1461. cd "$ac_dir" || { ac_status=$?; continue; }
  1462. # Check for guested configure.
  1463. if test -f "$ac_srcdir/configure.gnu"; then
  1464. echo &&
  1465. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1466. elif test -f "$ac_srcdir/configure"; then
  1467. echo &&
  1468. $SHELL "$ac_srcdir/configure" --help=recursive
  1469. else
  1470. $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1471. fi || ac_status=$?
  1472. cd "$ac_pwd" || { ac_status=$?; break; }
  1473. done
  1474. fi
  1475. test -n "$ac_init_help" && exit $ac_status
  1476. if $ac_init_version; then
  1477. cat <<\_ACEOF
  1478. gperftools configure 2.7
  1479. generated by GNU Autoconf 2.69
  1480. Copyright (C) 2012 Free Software Foundation, Inc.
  1481. This configure script is free software; the Free Software Foundation
  1482. gives unlimited permission to copy, distribute and modify it.
  1483. _ACEOF
  1484. exit
  1485. fi
  1486. ## ------------------------ ##
  1487. ## Autoconf initialization. ##
  1488. ## ------------------------ ##
  1489. # ac_fn_c_try_compile LINENO
  1490. # --------------------------
  1491. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1492. ac_fn_c_try_compile ()
  1493. {
  1494. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1495. rm -f conftest.$ac_objext
  1496. if { { ac_try="$ac_compile"
  1497. case "(($ac_try" in
  1498. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1499. *) ac_try_echo=$ac_try;;
  1500. esac
  1501. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1502. $as_echo "$ac_try_echo"; } >&5
  1503. (eval "$ac_compile") 2>conftest.err
  1504. ac_status=$?
  1505. if test -s conftest.err; then
  1506. grep -v '^ *+' conftest.err >conftest.er1
  1507. cat conftest.er1 >&5
  1508. mv -f conftest.er1 conftest.err
  1509. fi
  1510. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1511. test $ac_status = 0; } && {
  1512. test -z "$ac_c_werror_flag" ||
  1513. test ! -s conftest.err
  1514. } && test -s conftest.$ac_objext; then :
  1515. ac_retval=0
  1516. else
  1517. $as_echo "$as_me: failed program was:" >&5
  1518. sed 's/^/| /' conftest.$ac_ext >&5
  1519. ac_retval=1
  1520. fi
  1521. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1522. as_fn_set_status $ac_retval
  1523. } # ac_fn_c_try_compile
  1524. # ac_fn_cxx_try_compile LINENO
  1525. # ----------------------------
  1526. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1527. ac_fn_cxx_try_compile ()
  1528. {
  1529. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1530. rm -f conftest.$ac_objext
  1531. if { { ac_try="$ac_compile"
  1532. case "(($ac_try" in
  1533. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1534. *) ac_try_echo=$ac_try;;
  1535. esac
  1536. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1537. $as_echo "$ac_try_echo"; } >&5
  1538. (eval "$ac_compile") 2>conftest.err
  1539. ac_status=$?
  1540. if test -s conftest.err; then
  1541. grep -v '^ *+' conftest.err >conftest.er1
  1542. cat conftest.er1 >&5
  1543. mv -f conftest.er1 conftest.err
  1544. fi
  1545. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1546. test $ac_status = 0; } && {
  1547. test -z "$ac_cxx_werror_flag" ||
  1548. test ! -s conftest.err
  1549. } && test -s conftest.$ac_objext; then :
  1550. ac_retval=0
  1551. else
  1552. $as_echo "$as_me: failed program was:" >&5
  1553. sed 's/^/| /' conftest.$ac_ext >&5
  1554. ac_retval=1
  1555. fi
  1556. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1557. as_fn_set_status $ac_retval
  1558. } # ac_fn_cxx_try_compile
  1559. # ac_fn_c_try_cpp LINENO
  1560. # ----------------------
  1561. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1562. ac_fn_c_try_cpp ()
  1563. {
  1564. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1565. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1566. case "(($ac_try" in
  1567. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1568. *) ac_try_echo=$ac_try;;
  1569. esac
  1570. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1571. $as_echo "$ac_try_echo"; } >&5
  1572. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1573. ac_status=$?
  1574. if test -s conftest.err; then
  1575. grep -v '^ *+' conftest.err >conftest.er1
  1576. cat conftest.er1 >&5
  1577. mv -f conftest.er1 conftest.err
  1578. fi
  1579. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1580. test $ac_status = 0; } > conftest.i && {
  1581. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  1582. test ! -s conftest.err
  1583. }; then :
  1584. ac_retval=0
  1585. else
  1586. $as_echo "$as_me: failed program was:" >&5
  1587. sed 's/^/| /' conftest.$ac_ext >&5
  1588. ac_retval=1
  1589. fi
  1590. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1591. as_fn_set_status $ac_retval
  1592. } # ac_fn_c_try_cpp
  1593. # ac_fn_c_try_link LINENO
  1594. # -----------------------
  1595. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1596. ac_fn_c_try_link ()
  1597. {
  1598. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1599. rm -f conftest.$ac_objext conftest$ac_exeext
  1600. if { { ac_try="$ac_link"
  1601. case "(($ac_try" in
  1602. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1603. *) ac_try_echo=$ac_try;;
  1604. esac
  1605. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1606. $as_echo "$ac_try_echo"; } >&5
  1607. (eval "$ac_link") 2>conftest.err
  1608. ac_status=$?
  1609. if test -s conftest.err; then
  1610. grep -v '^ *+' conftest.err >conftest.er1
  1611. cat conftest.er1 >&5
  1612. mv -f conftest.er1 conftest.err
  1613. fi
  1614. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1615. test $ac_status = 0; } && {
  1616. test -z "$ac_c_werror_flag" ||
  1617. test ! -s conftest.err
  1618. } && test -s conftest$ac_exeext && {
  1619. test "$cross_compiling" = yes ||
  1620. test -x conftest$ac_exeext
  1621. }; then :
  1622. ac_retval=0
  1623. else
  1624. $as_echo "$as_me: failed program was:" >&5
  1625. sed 's/^/| /' conftest.$ac_ext >&5
  1626. ac_retval=1
  1627. fi
  1628. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1629. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1630. # interfere with the next link command; also delete a directory that is
  1631. # left behind by Apple's compiler. We do this before executing the actions.
  1632. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1633. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1634. as_fn_set_status $ac_retval
  1635. } # ac_fn_c_try_link
  1636. # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
  1637. # -------------------------------------------------------
  1638. # Tests whether HEADER exists and can be compiled using the include files in
  1639. # INCLUDES, setting the cache variable VAR accordingly.
  1640. ac_fn_c_check_header_compile ()
  1641. {
  1642. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1643. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1644. $as_echo_n "checking for $2... " >&6; }
  1645. if eval \${$3+:} false; then :
  1646. $as_echo_n "(cached) " >&6
  1647. else
  1648. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1649. /* end confdefs.h. */
  1650. $4
  1651. #include <$2>
  1652. _ACEOF
  1653. if ac_fn_c_try_compile "$LINENO"; then :
  1654. eval "$3=yes"
  1655. else
  1656. eval "$3=no"
  1657. fi
  1658. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1659. fi
  1660. eval ac_res=\$$3
  1661. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1662. $as_echo "$ac_res" >&6; }
  1663. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1664. } # ac_fn_c_check_header_compile
  1665. # ac_fn_c_try_run LINENO
  1666. # ----------------------
  1667. # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
  1668. # that executables *can* be run.
  1669. ac_fn_c_try_run ()
  1670. {
  1671. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1672. if { { ac_try="$ac_link"
  1673. case "(($ac_try" in
  1674. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1675. *) ac_try_echo=$ac_try;;
  1676. esac
  1677. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1678. $as_echo "$ac_try_echo"; } >&5
  1679. (eval "$ac_link") 2>&5
  1680. ac_status=$?
  1681. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1682. test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  1683. { { case "(($ac_try" in
  1684. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1685. *) ac_try_echo=$ac_try;;
  1686. esac
  1687. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1688. $as_echo "$ac_try_echo"; } >&5
  1689. (eval "$ac_try") 2>&5
  1690. ac_status=$?
  1691. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1692. test $ac_status = 0; }; }; then :
  1693. ac_retval=0
  1694. else
  1695. $as_echo "$as_me: program exited with status $ac_status" >&5
  1696. $as_echo "$as_me: failed program was:" >&5
  1697. sed 's/^/| /' conftest.$ac_ext >&5
  1698. ac_retval=$ac_status
  1699. fi
  1700. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1701. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1702. as_fn_set_status $ac_retval
  1703. } # ac_fn_c_try_run
  1704. # ac_fn_c_check_func LINENO FUNC VAR
  1705. # ----------------------------------
  1706. # Tests whether FUNC exists, setting the cache variable VAR accordingly
  1707. ac_fn_c_check_func ()
  1708. {
  1709. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1710. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1711. $as_echo_n "checking for $2... " >&6; }
  1712. if eval \${$3+:} false; then :
  1713. $as_echo_n "(cached) " >&6
  1714. else
  1715. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1716. /* end confdefs.h. */
  1717. /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
  1718. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  1719. #define $2 innocuous_$2
  1720. /* System header to define __stub macros and hopefully few prototypes,
  1721. which can conflict with char $2 (); below.
  1722. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  1723. <limits.h> exists even on freestanding compilers. */
  1724. #ifdef __STDC__
  1725. # include <limits.h>
  1726. #else
  1727. # include <assert.h>
  1728. #endif
  1729. #undef $2
  1730. /* Override any GCC internal prototype to avoid an error.
  1731. Use char because int might match the return type of a GCC
  1732. builtin and then its argument prototype would still apply. */
  1733. #ifdef __cplusplus
  1734. extern "C"
  1735. #endif
  1736. char $2 ();
  1737. /* The GNU C library defines this for functions which it implements
  1738. to always fail with ENOSYS. Some functions are actually named
  1739. something starting with __ and the normal name is an alias. */
  1740. #if defined __stub_$2 || defined __stub___$2
  1741. choke me
  1742. #endif
  1743. int
  1744. main ()
  1745. {
  1746. return $2 ();
  1747. ;
  1748. return 0;
  1749. }
  1750. _ACEOF
  1751. if ac_fn_c_try_link "$LINENO"; then :
  1752. eval "$3=yes"
  1753. else
  1754. eval "$3=no"
  1755. fi
  1756. rm -f core conftest.err conftest.$ac_objext \
  1757. conftest$ac_exeext conftest.$ac_ext
  1758. fi
  1759. eval ac_res=\$$3
  1760. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1761. $as_echo "$ac_res" >&6; }
  1762. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1763. } # ac_fn_c_check_func
  1764. # ac_fn_cxx_try_cpp LINENO
  1765. # ------------------------
  1766. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1767. ac_fn_cxx_try_cpp ()
  1768. {
  1769. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1770. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1771. case "(($ac_try" in
  1772. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1773. *) ac_try_echo=$ac_try;;
  1774. esac
  1775. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1776. $as_echo "$ac_try_echo"; } >&5
  1777. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1778. ac_status=$?
  1779. if test -s conftest.err; then
  1780. grep -v '^ *+' conftest.err >conftest.er1
  1781. cat conftest.er1 >&5
  1782. mv -f conftest.er1 conftest.err
  1783. fi
  1784. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1785. test $ac_status = 0; } > conftest.i && {
  1786. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  1787. test ! -s conftest.err
  1788. }; then :
  1789. ac_retval=0
  1790. else
  1791. $as_echo "$as_me: failed program was:" >&5
  1792. sed 's/^/| /' conftest.$ac_ext >&5
  1793. ac_retval=1
  1794. fi
  1795. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1796. as_fn_set_status $ac_retval
  1797. } # ac_fn_cxx_try_cpp
  1798. # ac_fn_cxx_try_link LINENO
  1799. # -------------------------
  1800. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1801. ac_fn_cxx_try_link ()
  1802. {
  1803. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1804. rm -f conftest.$ac_objext conftest$ac_exeext
  1805. if { { ac_try="$ac_link"
  1806. case "(($ac_try" in
  1807. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1808. *) ac_try_echo=$ac_try;;
  1809. esac
  1810. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1811. $as_echo "$ac_try_echo"; } >&5
  1812. (eval "$ac_link") 2>conftest.err
  1813. ac_status=$?
  1814. if test -s conftest.err; then
  1815. grep -v '^ *+' conftest.err >conftest.er1
  1816. cat conftest.er1 >&5
  1817. mv -f conftest.er1 conftest.err
  1818. fi
  1819. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1820. test $ac_status = 0; } && {
  1821. test -z "$ac_cxx_werror_flag" ||
  1822. test ! -s conftest.err
  1823. } && test -s conftest$ac_exeext && {
  1824. test "$cross_compiling" = yes ||
  1825. test -x conftest$ac_exeext
  1826. }; then :
  1827. ac_retval=0
  1828. else
  1829. $as_echo "$as_me: failed program was:" >&5
  1830. sed 's/^/| /' conftest.$ac_ext >&5
  1831. ac_retval=1
  1832. fi
  1833. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1834. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1835. # interfere with the next link command; also delete a directory that is
  1836. # left behind by Apple's compiler. We do this before executing the actions.
  1837. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1838. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1839. as_fn_set_status $ac_retval
  1840. } # ac_fn_cxx_try_link
  1841. # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
  1842. # -------------------------------------------
  1843. # Tests whether TYPE exists after having included INCLUDES, setting cache
  1844. # variable VAR accordingly.
  1845. ac_fn_c_check_type ()
  1846. {
  1847. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1848. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1849. $as_echo_n "checking for $2... " >&6; }
  1850. if eval \${$3+:} false; then :
  1851. $as_echo_n "(cached) " >&6
  1852. else
  1853. eval "$3=no"
  1854. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1855. /* end confdefs.h. */
  1856. $4
  1857. int
  1858. main ()
  1859. {
  1860. if (sizeof ($2))
  1861. return 0;
  1862. ;
  1863. return 0;
  1864. }
  1865. _ACEOF
  1866. if ac_fn_c_try_compile "$LINENO"; then :
  1867. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1868. /* end confdefs.h. */
  1869. $4
  1870. int
  1871. main ()
  1872. {
  1873. if (sizeof (($2)))
  1874. return 0;
  1875. ;
  1876. return 0;
  1877. }
  1878. _ACEOF
  1879. if ac_fn_c_try_compile "$LINENO"; then :
  1880. else
  1881. eval "$3=yes"
  1882. fi
  1883. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1884. fi
  1885. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1886. fi
  1887. eval ac_res=\$$3
  1888. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1889. $as_echo "$ac_res" >&6; }
  1890. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1891. } # ac_fn_c_check_type
  1892. # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
  1893. # -------------------------------------------------------
  1894. # Tests whether HEADER exists, giving a warning if it cannot be compiled using
  1895. # the include files in INCLUDES and setting the cache variable VAR
  1896. # accordingly.
  1897. ac_fn_c_check_header_mongrel ()
  1898. {
  1899. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1900. if eval \${$3+:} false; then :
  1901. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1902. $as_echo_n "checking for $2... " >&6; }
  1903. if eval \${$3+:} false; then :
  1904. $as_echo_n "(cached) " >&6
  1905. fi
  1906. eval ac_res=\$$3
  1907. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1908. $as_echo "$ac_res" >&6; }
  1909. else
  1910. # Is the header compilable?
  1911. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
  1912. $as_echo_n "checking $2 usability... " >&6; }
  1913. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1914. /* end confdefs.h. */
  1915. $4
  1916. #include <$2>
  1917. _ACEOF
  1918. if ac_fn_c_try_compile "$LINENO"; then :
  1919. ac_header_compiler=yes
  1920. else
  1921. ac_header_compiler=no
  1922. fi
  1923. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1924. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
  1925. $as_echo "$ac_header_compiler" >&6; }
  1926. # Is the header present?
  1927. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
  1928. $as_echo_n "checking $2 presence... " >&6; }
  1929. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1930. /* end confdefs.h. */
  1931. #include <$2>
  1932. _ACEOF
  1933. if ac_fn_c_try_cpp "$LINENO"; then :
  1934. ac_header_preproc=yes
  1935. else
  1936. ac_header_preproc=no
  1937. fi
  1938. rm -f conftest.err conftest.i conftest.$ac_ext
  1939. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
  1940. $as_echo "$ac_header_preproc" >&6; }
  1941. # So? What about this header?
  1942. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
  1943. yes:no: )
  1944. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
  1945. $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
  1946. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1947. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1948. ;;
  1949. no:yes:* )
  1950. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
  1951. $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
  1952. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
  1953. $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
  1954. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
  1955. $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
  1956. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
  1957. $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
  1958. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1959. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1960. ( $as_echo "## ------------------------------------------ ##
  1961. ## Report this to gperftools@googlegroups.com ##
  1962. ## ------------------------------------------ ##"
  1963. ) | sed "s/^/$as_me: WARNING: /" >&2
  1964. ;;
  1965. esac
  1966. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1967. $as_echo_n "checking for $2... " >&6; }
  1968. if eval \${$3+:} false; then :
  1969. $as_echo_n "(cached) " >&6
  1970. else
  1971. eval "$3=\$ac_header_compiler"
  1972. fi
  1973. eval ac_res=\$$3
  1974. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1975. $as_echo "$ac_res" >&6; }
  1976. fi
  1977. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1978. } # ac_fn_c_check_header_mongrel
  1979. # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
  1980. # ---------------------------------------------
  1981. # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
  1982. # accordingly.
  1983. ac_fn_c_check_decl ()
  1984. {
  1985. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1986. as_decl_name=`echo $2|sed 's/ *(.*//'`
  1987. as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
  1988. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
  1989. $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
  1990. if eval \${$3+:} false; then :
  1991. $as_echo_n "(cached) " >&6
  1992. else
  1993. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1994. /* end confdefs.h. */
  1995. $4
  1996. int
  1997. main ()
  1998. {
  1999. #ifndef $as_decl_name
  2000. #ifdef __cplusplus
  2001. (void) $as_decl_use;
  2002. #else
  2003. (void) $as_decl_name;
  2004. #endif
  2005. #endif
  2006. ;
  2007. return 0;
  2008. }
  2009. _ACEOF
  2010. if ac_fn_c_try_compile "$LINENO"; then :
  2011. eval "$3=yes"
  2012. else
  2013. eval "$3=no"
  2014. fi
  2015. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2016. fi
  2017. eval ac_res=\$$3
  2018. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2019. $as_echo "$ac_res" >&6; }
  2020. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2021. } # ac_fn_c_check_decl
  2022. cat >config.log <<_ACEOF
  2023. This file contains any messages produced by compilers while
  2024. running configure, to aid debugging if configure makes a mistake.
  2025. It was created by gperftools $as_me 2.7, which was
  2026. generated by GNU Autoconf 2.69. Invocation command line was
  2027. $ $0 $@
  2028. _ACEOF
  2029. exec 5>>config.log
  2030. {
  2031. cat <<_ASUNAME
  2032. ## --------- ##
  2033. ## Platform. ##
  2034. ## --------- ##
  2035. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  2036. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  2037. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  2038. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  2039. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  2040. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  2041. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  2042. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  2043. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  2044. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  2045. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  2046. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  2047. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  2048. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  2049. _ASUNAME
  2050. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2051. for as_dir in $PATH
  2052. do
  2053. IFS=$as_save_IFS
  2054. test -z "$as_dir" && as_dir=.
  2055. $as_echo "PATH: $as_dir"
  2056. done
  2057. IFS=$as_save_IFS
  2058. } >&5
  2059. cat >&5 <<_ACEOF
  2060. ## ----------- ##
  2061. ## Core tests. ##
  2062. ## ----------- ##
  2063. _ACEOF
  2064. # Keep a trace of the command line.
  2065. # Strip out --no-create and --no-recursion so they do not pile up.
  2066. # Strip out --silent because we don't want to record it for future runs.
  2067. # Also quote any args containing shell meta-characters.
  2068. # Make two passes to allow for proper duplicate-argument suppression.
  2069. ac_configure_args=
  2070. ac_configure_args0=
  2071. ac_configure_args1=
  2072. ac_must_keep_next=false
  2073. for ac_pass in 1 2
  2074. do
  2075. for ac_arg
  2076. do
  2077. case $ac_arg in
  2078. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  2079. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  2080. | -silent | --silent | --silen | --sile | --sil)
  2081. continue ;;
  2082. *\'*)
  2083. ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  2084. esac
  2085. case $ac_pass in
  2086. 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  2087. 2)
  2088. as_fn_append ac_configure_args1 " '$ac_arg'"
  2089. if test $ac_must_keep_next = true; then
  2090. ac_must_keep_next=false # Got value, back to normal.
  2091. else
  2092. case $ac_arg in
  2093. *=* | --config-cache | -C | -disable-* | --disable-* \
  2094. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  2095. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  2096. | -with-* | --with-* | -without-* | --without-* | --x)
  2097. case "$ac_configure_args0 " in
  2098. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  2099. esac
  2100. ;;
  2101. -* ) ac_must_keep_next=true ;;
  2102. esac
  2103. fi
  2104. as_fn_append ac_configure_args " '$ac_arg'"
  2105. ;;
  2106. esac
  2107. done
  2108. done
  2109. { ac_configure_args0=; unset ac_configure_args0;}
  2110. { ac_configure_args1=; unset ac_configure_args1;}
  2111. # When interrupted or exit'd, cleanup temporary files, and complete
  2112. # config.log. We remove comments because anyway the quotes in there
  2113. # would cause problems or look ugly.
  2114. # WARNING: Use '\'' to represent an apostrophe within the trap.
  2115. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  2116. trap 'exit_status=$?
  2117. # Save into config.log some information that might help in debugging.
  2118. {
  2119. echo
  2120. $as_echo "## ---------------- ##
  2121. ## Cache variables. ##
  2122. ## ---------------- ##"
  2123. echo
  2124. # The following way of writing the cache mishandles newlines in values,
  2125. (
  2126. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  2127. eval ac_val=\$$ac_var
  2128. case $ac_val in #(
  2129. *${as_nl}*)
  2130. case $ac_var in #(
  2131. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  2132. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  2133. esac
  2134. case $ac_var in #(
  2135. _ | IFS | as_nl) ;; #(
  2136. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  2137. *) { eval $ac_var=; unset $ac_var;} ;;
  2138. esac ;;
  2139. esac
  2140. done
  2141. (set) 2>&1 |
  2142. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  2143. *${as_nl}ac_space=\ *)
  2144. sed -n \
  2145. "s/'\''/'\''\\\\'\'''\''/g;
  2146. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  2147. ;; #(
  2148. *)
  2149. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  2150. ;;
  2151. esac |
  2152. sort
  2153. )
  2154. echo
  2155. $as_echo "## ----------------- ##
  2156. ## Output variables. ##
  2157. ## ----------------- ##"
  2158. echo
  2159. for ac_var in $ac_subst_vars
  2160. do
  2161. eval ac_val=\$$ac_var
  2162. case $ac_val in
  2163. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2164. esac
  2165. $as_echo "$ac_var='\''$ac_val'\''"
  2166. done | sort
  2167. echo
  2168. if test -n "$ac_subst_files"; then
  2169. $as_echo "## ------------------- ##
  2170. ## File substitutions. ##
  2171. ## ------------------- ##"
  2172. echo
  2173. for ac_var in $ac_subst_files
  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. fi
  2183. if test -s confdefs.h; then
  2184. $as_echo "## ----------- ##
  2185. ## confdefs.h. ##
  2186. ## ----------- ##"
  2187. echo
  2188. cat confdefs.h
  2189. echo
  2190. fi
  2191. test "$ac_signal" != 0 &&
  2192. $as_echo "$as_me: caught signal $ac_signal"
  2193. $as_echo "$as_me: exit $exit_status"
  2194. } >&5
  2195. rm -f core *.core core.conftest.* &&
  2196. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  2197. exit $exit_status
  2198. ' 0
  2199. for ac_signal in 1 2 13 15; do
  2200. trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  2201. done
  2202. ac_signal=0
  2203. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  2204. rm -f -r conftest* confdefs.h
  2205. $as_echo "/* confdefs.h */" > confdefs.h
  2206. # Predefined preprocessor variables.
  2207. cat >>confdefs.h <<_ACEOF
  2208. #define PACKAGE_NAME "$PACKAGE_NAME"
  2209. _ACEOF
  2210. cat >>confdefs.h <<_ACEOF
  2211. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  2212. _ACEOF
  2213. cat >>confdefs.h <<_ACEOF
  2214. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  2215. _ACEOF
  2216. cat >>confdefs.h <<_ACEOF
  2217. #define PACKAGE_STRING "$PACKAGE_STRING"
  2218. _ACEOF
  2219. cat >>confdefs.h <<_ACEOF
  2220. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  2221. _ACEOF
  2222. cat >>confdefs.h <<_ACEOF
  2223. #define PACKAGE_URL "$PACKAGE_URL"
  2224. _ACEOF
  2225. # Let the site file select an alternate cache file if it wants to.
  2226. # Prefer an explicitly selected file to automatically selected ones.
  2227. ac_site_file1=NONE
  2228. ac_site_file2=NONE
  2229. if test -n "$CONFIG_SITE"; then
  2230. # We do not want a PATH search for config.site.
  2231. case $CONFIG_SITE in #((
  2232. -*) ac_site_file1=./$CONFIG_SITE;;
  2233. */*) ac_site_file1=$CONFIG_SITE;;
  2234. *) ac_site_file1=./$CONFIG_SITE;;
  2235. esac
  2236. elif test "x$prefix" != xNONE; then
  2237. ac_site_file1=$prefix/share/config.site
  2238. ac_site_file2=$prefix/etc/config.site
  2239. else
  2240. ac_site_file1=$ac_default_prefix/share/config.site
  2241. ac_site_file2=$ac_default_prefix/etc/config.site
  2242. fi
  2243. for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  2244. do
  2245. test "x$ac_site_file" = xNONE && continue
  2246. if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
  2247. { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  2248. $as_echo "$as_me: loading site script $ac_site_file" >&6;}
  2249. sed 's/^/| /' "$ac_site_file" >&5
  2250. . "$ac_site_file" \
  2251. || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2252. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2253. as_fn_error $? "failed to load site script $ac_site_file
  2254. See \`config.log' for more details" "$LINENO" 5; }
  2255. fi
  2256. done
  2257. if test -r "$cache_file"; then
  2258. # Some versions of bash will fail to source /dev/null (special files
  2259. # actually), so we avoid doing that. DJGPP emulates it as a regular file.
  2260. if test /dev/null != "$cache_file" && test -f "$cache_file"; then
  2261. { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  2262. $as_echo "$as_me: loading cache $cache_file" >&6;}
  2263. case $cache_file in
  2264. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  2265. *) . "./$cache_file";;
  2266. esac
  2267. fi
  2268. else
  2269. { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  2270. $as_echo "$as_me: creating cache $cache_file" >&6;}
  2271. >$cache_file
  2272. fi
  2273. as_fn_append ac_header_list " stdlib.h"
  2274. as_fn_append ac_header_list " unistd.h"
  2275. as_fn_append ac_header_list " sys/param.h"
  2276. # Check that the precious variables saved in the cache have kept the same
  2277. # value.
  2278. ac_cache_corrupted=false
  2279. for ac_var in $ac_precious_vars; do
  2280. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  2281. eval ac_new_set=\$ac_env_${ac_var}_set
  2282. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  2283. eval ac_new_val=\$ac_env_${ac_var}_value
  2284. case $ac_old_set,$ac_new_set in
  2285. set,)
  2286. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  2287. $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  2288. ac_cache_corrupted=: ;;
  2289. ,set)
  2290. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  2291. $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  2292. ac_cache_corrupted=: ;;
  2293. ,);;
  2294. *)
  2295. if test "x$ac_old_val" != "x$ac_new_val"; then
  2296. # differences in whitespace do not lead to failure.
  2297. ac_old_val_w=`echo x $ac_old_val`
  2298. ac_new_val_w=`echo x $ac_new_val`
  2299. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  2300. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  2301. $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  2302. ac_cache_corrupted=:
  2303. else
  2304. { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  2305. $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  2306. eval $ac_var=\$ac_old_val
  2307. fi
  2308. { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
  2309. $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
  2310. { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
  2311. $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
  2312. fi;;
  2313. esac
  2314. # Pass precious variables to config.status.
  2315. if test "$ac_new_set" = set; then
  2316. case $ac_new_val in
  2317. *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  2318. *) ac_arg=$ac_var=$ac_new_val ;;
  2319. esac
  2320. case " $ac_configure_args " in
  2321. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  2322. *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  2323. esac
  2324. fi
  2325. done
  2326. if $ac_cache_corrupted; then
  2327. { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2328. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2329. { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  2330. $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  2331. as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
  2332. fi
  2333. ## -------------------- ##
  2334. ## Main body of script. ##
  2335. ## -------------------- ##
  2336. ac_ext=c
  2337. ac_cpp='$CPP $CPPFLAGS'
  2338. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2339. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2340. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2341. # Update this value for every release! (A:B:C will map to foo.so.(A-C).C.B)
  2342. # http://www.gnu.org/software/libtool/manual/html_node/Updating-version-info.html
  2343. TCMALLOC_SO_VERSION=9:3:5
  2344. PROFILER_SO_VERSION=4:18:4
  2345. # The argument here is just something that should be in the current directory
  2346. # (for sanity checking)
  2347. ac_aux_dir=
  2348. for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
  2349. if test -f "$ac_dir/install-sh"; then
  2350. ac_aux_dir=$ac_dir
  2351. ac_install_sh="$ac_aux_dir/install-sh -c"
  2352. break
  2353. elif test -f "$ac_dir/install.sh"; then
  2354. ac_aux_dir=$ac_dir
  2355. ac_install_sh="$ac_aux_dir/install.sh -c"
  2356. break
  2357. elif test -f "$ac_dir/shtool"; then
  2358. ac_aux_dir=$ac_dir
  2359. ac_install_sh="$ac_aux_dir/shtool install -c"
  2360. break
  2361. fi
  2362. done
  2363. if test -z "$ac_aux_dir"; then
  2364. as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
  2365. fi
  2366. # These three variables are undocumented and unsupported,
  2367. # and are intended to be withdrawn in a future Autoconf release.
  2368. # They can cause serious problems if a builder's source tree is in a directory
  2369. # whose full name contains unusual characters.
  2370. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  2371. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  2372. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  2373. # Make sure we can run config.sub.
  2374. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  2375. as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
  2376. { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
  2377. $as_echo_n "checking build system type... " >&6; }
  2378. if ${ac_cv_build+:} false; then :
  2379. $as_echo_n "(cached) " >&6
  2380. else
  2381. ac_build_alias=$build_alias
  2382. test "x$ac_build_alias" = x &&
  2383. ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  2384. test "x$ac_build_alias" = x &&
  2385. as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
  2386. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  2387. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
  2388. fi
  2389. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
  2390. $as_echo "$ac_cv_build" >&6; }
  2391. case $ac_cv_build in
  2392. *-*-*) ;;
  2393. *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
  2394. esac
  2395. build=$ac_cv_build
  2396. ac_save_IFS=$IFS; IFS='-'
  2397. set x $ac_cv_build
  2398. shift
  2399. build_cpu=$1
  2400. build_vendor=$2
  2401. shift; shift
  2402. # Remember, the first character of IFS is used to create $*,
  2403. # except with old shells:
  2404. build_os=$*
  2405. IFS=$ac_save_IFS
  2406. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  2407. { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
  2408. $as_echo_n "checking host system type... " >&6; }
  2409. if ${ac_cv_host+:} false; then :
  2410. $as_echo_n "(cached) " >&6
  2411. else
  2412. if test "x$host_alias" = x; then
  2413. ac_cv_host=$ac_cv_build
  2414. else
  2415. ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  2416. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
  2417. fi
  2418. fi
  2419. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
  2420. $as_echo "$ac_cv_host" >&6; }
  2421. case $ac_cv_host in
  2422. *-*-*) ;;
  2423. *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
  2424. esac
  2425. host=$ac_cv_host
  2426. ac_save_IFS=$IFS; IFS='-'
  2427. set x $ac_cv_host
  2428. shift
  2429. host_cpu=$1
  2430. host_vendor=$2
  2431. shift; shift
  2432. # Remember, the first character of IFS is used to create $*,
  2433. # except with old shells:
  2434. host_os=$*
  2435. IFS=$ac_save_IFS
  2436. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  2437. am__api_version='1.15'
  2438. # Find a good install program. We prefer a C program (faster),
  2439. # so one script is as good as another. But avoid the broken or
  2440. # incompatible versions:
  2441. # SysV /etc/install, /usr/sbin/install
  2442. # SunOS /usr/etc/install
  2443. # IRIX /sbin/install
  2444. # AIX /bin/install
  2445. # AmigaOS /C/install, which installs bootblocks on floppy discs
  2446. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  2447. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  2448. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  2449. # OS/2's system install, which has a completely different semantic
  2450. # ./install, which can be erroneously created by make from ./install.sh.
  2451. # Reject install programs that cannot install multiple files.
  2452. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
  2453. $as_echo_n "checking for a BSD-compatible install... " >&6; }
  2454. if test -z "$INSTALL"; then
  2455. if ${ac_cv_path_install+:} false; then :
  2456. $as_echo_n "(cached) " >&6
  2457. else
  2458. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2459. for as_dir in $PATH
  2460. do
  2461. IFS=$as_save_IFS
  2462. test -z "$as_dir" && as_dir=.
  2463. # Account for people who put trailing slashes in PATH elements.
  2464. case $as_dir/ in #((
  2465. ./ | .// | /[cC]/* | \
  2466. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  2467. ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
  2468. /usr/ucb/* ) ;;
  2469. *)
  2470. # OSF1 and SCO ODT 3.0 have their own names for install.
  2471. # Don't use installbsd from OSF since it installs stuff as root
  2472. # by default.
  2473. for ac_prog in ginstall scoinst install; do
  2474. for ac_exec_ext in '' $ac_executable_extensions; do
  2475. if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
  2476. if test $ac_prog = install &&
  2477. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2478. # AIX install. It has an incompatible calling convention.
  2479. :
  2480. elif test $ac_prog = install &&
  2481. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2482. # program-specific install script used by HP pwplus--don't use.
  2483. :
  2484. else
  2485. rm -rf conftest.one conftest.two conftest.dir
  2486. echo one > conftest.one
  2487. echo two > conftest.two
  2488. mkdir conftest.dir
  2489. if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
  2490. test -s conftest.one && test -s conftest.two &&
  2491. test -s conftest.dir/conftest.one &&
  2492. test -s conftest.dir/conftest.two
  2493. then
  2494. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  2495. break 3
  2496. fi
  2497. fi
  2498. fi
  2499. done
  2500. done
  2501. ;;
  2502. esac
  2503. done
  2504. IFS=$as_save_IFS
  2505. rm -rf conftest.one conftest.two conftest.dir
  2506. fi
  2507. if test "${ac_cv_path_install+set}" = set; then
  2508. INSTALL=$ac_cv_path_install
  2509. else
  2510. # As a last resort, use the slow shell script. Don't cache a
  2511. # value for INSTALL within a source directory, because that will
  2512. # break other packages using the cache if that directory is
  2513. # removed, or if the value is a relative name.
  2514. INSTALL=$ac_install_sh
  2515. fi
  2516. fi
  2517. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
  2518. $as_echo "$INSTALL" >&6; }
  2519. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  2520. # It thinks the first close brace ends the variable substitution.
  2521. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  2522. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  2523. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  2524. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
  2525. $as_echo_n "checking whether build environment is sane... " >&6; }
  2526. # Reject unsafe characters in $srcdir or the absolute working directory
  2527. # name. Accept space and tab only in the latter.
  2528. am_lf='
  2529. '
  2530. case `pwd` in
  2531. *[\\\"\#\$\&\'\`$am_lf]*)
  2532. as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
  2533. esac
  2534. case $srcdir in
  2535. *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
  2536. as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
  2537. esac
  2538. # Do 'set' in a subshell so we don't clobber the current shell's
  2539. # arguments. Must try -L first in case configure is actually a
  2540. # symlink; some systems play weird games with the mod time of symlinks
  2541. # (eg FreeBSD returns the mod time of the symlink's containing
  2542. # directory).
  2543. if (
  2544. am_has_slept=no
  2545. for am_try in 1 2; do
  2546. echo "timestamp, slept: $am_has_slept" > conftest.file
  2547. set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
  2548. if test "$*" = "X"; then
  2549. # -L didn't work.
  2550. set X `ls -t "$srcdir/configure" conftest.file`
  2551. fi
  2552. if test "$*" != "X $srcdir/configure conftest.file" \
  2553. && test "$*" != "X conftest.file $srcdir/configure"; then
  2554. # If neither matched, then we have a broken ls. This can happen
  2555. # if, for instance, CONFIG_SHELL is bash and it inherits a
  2556. # broken ls alias from the environment. This has actually
  2557. # happened. Such a system could not be considered "sane".
  2558. as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
  2559. alias in your environment" "$LINENO" 5
  2560. fi
  2561. if test "$2" = conftest.file || test $am_try -eq 2; then
  2562. break
  2563. fi
  2564. # Just in case.
  2565. sleep 1
  2566. am_has_slept=yes
  2567. done
  2568. test "$2" = conftest.file
  2569. )
  2570. then
  2571. # Ok.
  2572. :
  2573. else
  2574. as_fn_error $? "newly created file is older than distributed files!
  2575. Check your system clock" "$LINENO" 5
  2576. fi
  2577. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2578. $as_echo "yes" >&6; }
  2579. # If we didn't sleep, we still need to ensure time stamps of config.status and
  2580. # generated files are strictly newer.
  2581. am_sleep_pid=
  2582. if grep 'slept: no' conftest.file >/dev/null 2>&1; then
  2583. ( sleep 1 ) &
  2584. am_sleep_pid=$!
  2585. fi
  2586. rm -f conftest.file
  2587. test "$program_prefix" != NONE &&
  2588. program_transform_name="s&^&$program_prefix&;$program_transform_name"
  2589. # Use a double $ so make ignores it.
  2590. test "$program_suffix" != NONE &&
  2591. program_transform_name="s&\$&$program_suffix&;$program_transform_name"
  2592. # Double any \ or $.
  2593. # By default was `s,x,x', remove it if useless.
  2594. ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
  2595. program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
  2596. # Expand $ac_aux_dir to an absolute path.
  2597. am_aux_dir=`cd "$ac_aux_dir" && pwd`
  2598. if test x"${MISSING+set}" != xset; then
  2599. case $am_aux_dir in
  2600. *\ * | *\ *)
  2601. MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
  2602. *)
  2603. MISSING="\${SHELL} $am_aux_dir/missing" ;;
  2604. esac
  2605. fi
  2606. # Use eval to expand $SHELL
  2607. if eval "$MISSING --is-lightweight"; then
  2608. am_missing_run="$MISSING "
  2609. else
  2610. am_missing_run=
  2611. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
  2612. $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
  2613. fi
  2614. if test x"${install_sh+set}" != xset; then
  2615. case $am_aux_dir in
  2616. *\ * | *\ *)
  2617. install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
  2618. *)
  2619. install_sh="\${SHELL} $am_aux_dir/install-sh"
  2620. esac
  2621. fi
  2622. # Installed binaries are usually stripped using 'strip' when the user
  2623. # run "make install-strip". However 'strip' might not be the right
  2624. # tool to use in cross-compilation environments, therefore Automake
  2625. # will honor the 'STRIP' environment variable to overrule this program.
  2626. if test "$cross_compiling" != no; then
  2627. if test -n "$ac_tool_prefix"; then
  2628. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  2629. set dummy ${ac_tool_prefix}strip; ac_word=$2
  2630. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2631. $as_echo_n "checking for $ac_word... " >&6; }
  2632. if ${ac_cv_prog_STRIP+:} false; then :
  2633. $as_echo_n "(cached) " >&6
  2634. else
  2635. if test -n "$STRIP"; then
  2636. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  2637. else
  2638. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2639. for as_dir in $PATH
  2640. do
  2641. IFS=$as_save_IFS
  2642. test -z "$as_dir" && as_dir=.
  2643. for ac_exec_ext in '' $ac_executable_extensions; do
  2644. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2645. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  2646. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2647. break 2
  2648. fi
  2649. done
  2650. done
  2651. IFS=$as_save_IFS
  2652. fi
  2653. fi
  2654. STRIP=$ac_cv_prog_STRIP
  2655. if test -n "$STRIP"; then
  2656. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  2657. $as_echo "$STRIP" >&6; }
  2658. else
  2659. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2660. $as_echo "no" >&6; }
  2661. fi
  2662. fi
  2663. if test -z "$ac_cv_prog_STRIP"; then
  2664. ac_ct_STRIP=$STRIP
  2665. # Extract the first word of "strip", so it can be a program name with args.
  2666. set dummy strip; ac_word=$2
  2667. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2668. $as_echo_n "checking for $ac_word... " >&6; }
  2669. if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
  2670. $as_echo_n "(cached) " >&6
  2671. else
  2672. if test -n "$ac_ct_STRIP"; then
  2673. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  2674. else
  2675. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2676. for as_dir in $PATH
  2677. do
  2678. IFS=$as_save_IFS
  2679. test -z "$as_dir" && as_dir=.
  2680. for ac_exec_ext in '' $ac_executable_extensions; do
  2681. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2682. ac_cv_prog_ac_ct_STRIP="strip"
  2683. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2684. break 2
  2685. fi
  2686. done
  2687. done
  2688. IFS=$as_save_IFS
  2689. fi
  2690. fi
  2691. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  2692. if test -n "$ac_ct_STRIP"; then
  2693. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  2694. $as_echo "$ac_ct_STRIP" >&6; }
  2695. else
  2696. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2697. $as_echo "no" >&6; }
  2698. fi
  2699. if test "x$ac_ct_STRIP" = x; then
  2700. STRIP=":"
  2701. else
  2702. case $cross_compiling:$ac_tool_warned in
  2703. yes:)
  2704. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2705. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2706. ac_tool_warned=yes ;;
  2707. esac
  2708. STRIP=$ac_ct_STRIP
  2709. fi
  2710. else
  2711. STRIP="$ac_cv_prog_STRIP"
  2712. fi
  2713. fi
  2714. INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
  2715. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
  2716. $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
  2717. if test -z "$MKDIR_P"; then
  2718. if ${ac_cv_path_mkdir+:} false; then :
  2719. $as_echo_n "(cached) " >&6
  2720. else
  2721. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2722. for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
  2723. do
  2724. IFS=$as_save_IFS
  2725. test -z "$as_dir" && as_dir=.
  2726. for ac_prog in mkdir gmkdir; do
  2727. for ac_exec_ext in '' $ac_executable_extensions; do
  2728. as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
  2729. case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
  2730. 'mkdir (GNU coreutils) '* | \
  2731. 'mkdir (coreutils) '* | \
  2732. 'mkdir (fileutils) '4.1*)
  2733. ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
  2734. break 3;;
  2735. esac
  2736. done
  2737. done
  2738. done
  2739. IFS=$as_save_IFS
  2740. fi
  2741. test -d ./--version && rmdir ./--version
  2742. if test "${ac_cv_path_mkdir+set}" = set; then
  2743. MKDIR_P="$ac_cv_path_mkdir -p"
  2744. else
  2745. # As a last resort, use the slow shell script. Don't cache a
  2746. # value for MKDIR_P within a source directory, because that will
  2747. # break other packages using the cache if that directory is
  2748. # removed, or if the value is a relative name.
  2749. MKDIR_P="$ac_install_sh -d"
  2750. fi
  2751. fi
  2752. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
  2753. $as_echo "$MKDIR_P" >&6; }
  2754. for ac_prog in gawk mawk nawk awk
  2755. do
  2756. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2757. set dummy $ac_prog; ac_word=$2
  2758. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2759. $as_echo_n "checking for $ac_word... " >&6; }
  2760. if ${ac_cv_prog_AWK+:} false; then :
  2761. $as_echo_n "(cached) " >&6
  2762. else
  2763. if test -n "$AWK"; then
  2764. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  2765. else
  2766. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2767. for as_dir in $PATH
  2768. do
  2769. IFS=$as_save_IFS
  2770. test -z "$as_dir" && as_dir=.
  2771. for ac_exec_ext in '' $ac_executable_extensions; do
  2772. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2773. ac_cv_prog_AWK="$ac_prog"
  2774. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2775. break 2
  2776. fi
  2777. done
  2778. done
  2779. IFS=$as_save_IFS
  2780. fi
  2781. fi
  2782. AWK=$ac_cv_prog_AWK
  2783. if test -n "$AWK"; then
  2784. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  2785. $as_echo "$AWK" >&6; }
  2786. else
  2787. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2788. $as_echo "no" >&6; }
  2789. fi
  2790. test -n "$AWK" && break
  2791. done
  2792. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  2793. $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  2794. set x ${MAKE-make}
  2795. ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  2796. if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
  2797. $as_echo_n "(cached) " >&6
  2798. else
  2799. cat >conftest.make <<\_ACEOF
  2800. SHELL = /bin/sh
  2801. all:
  2802. @echo '@@@%%%=$(MAKE)=@@@%%%'
  2803. _ACEOF
  2804. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  2805. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  2806. *@@@%%%=?*=@@@%%%*)
  2807. eval ac_cv_prog_make_${ac_make}_set=yes;;
  2808. *)
  2809. eval ac_cv_prog_make_${ac_make}_set=no;;
  2810. esac
  2811. rm -f conftest.make
  2812. fi
  2813. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  2814. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2815. $as_echo "yes" >&6; }
  2816. SET_MAKE=
  2817. else
  2818. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2819. $as_echo "no" >&6; }
  2820. SET_MAKE="MAKE=${MAKE-make}"
  2821. fi
  2822. rm -rf .tst 2>/dev/null
  2823. mkdir .tst 2>/dev/null
  2824. if test -d .tst; then
  2825. am__leading_dot=.
  2826. else
  2827. am__leading_dot=_
  2828. fi
  2829. rmdir .tst 2>/dev/null
  2830. # Check whether --enable-silent-rules was given.
  2831. if test "${enable_silent_rules+set}" = set; then :
  2832. enableval=$enable_silent_rules;
  2833. fi
  2834. case $enable_silent_rules in # (((
  2835. yes) AM_DEFAULT_VERBOSITY=0;;
  2836. no) AM_DEFAULT_VERBOSITY=1;;
  2837. *) AM_DEFAULT_VERBOSITY=1;;
  2838. esac
  2839. am_make=${MAKE-make}
  2840. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
  2841. $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
  2842. if ${am_cv_make_support_nested_variables+:} false; then :
  2843. $as_echo_n "(cached) " >&6
  2844. else
  2845. if $as_echo 'TRUE=$(BAR$(V))
  2846. BAR0=false
  2847. BAR1=true
  2848. V=1
  2849. am__doit:
  2850. @$(TRUE)
  2851. .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
  2852. am_cv_make_support_nested_variables=yes
  2853. else
  2854. am_cv_make_support_nested_variables=no
  2855. fi
  2856. fi
  2857. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
  2858. $as_echo "$am_cv_make_support_nested_variables" >&6; }
  2859. if test $am_cv_make_support_nested_variables = yes; then
  2860. AM_V='$(V)'
  2861. AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
  2862. else
  2863. AM_V=$AM_DEFAULT_VERBOSITY
  2864. AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
  2865. fi
  2866. AM_BACKSLASH='\'
  2867. if test "`cd $srcdir && pwd`" != "`pwd`"; then
  2868. # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
  2869. # is not polluted with repeated "-I."
  2870. am__isrc=' -I$(srcdir)'
  2871. # test to see if srcdir already configured
  2872. if test -f $srcdir/config.status; then
  2873. as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
  2874. fi
  2875. fi
  2876. # test whether we have cygpath
  2877. if test -z "$CYGPATH_W"; then
  2878. if (cygpath --version) >/dev/null 2>/dev/null; then
  2879. CYGPATH_W='cygpath -w'
  2880. else
  2881. CYGPATH_W=echo
  2882. fi
  2883. fi
  2884. # Define the identity of the package.
  2885. PACKAGE='gperftools'
  2886. VERSION='2.7'
  2887. cat >>confdefs.h <<_ACEOF
  2888. #define PACKAGE "$PACKAGE"
  2889. _ACEOF
  2890. cat >>confdefs.h <<_ACEOF
  2891. #define VERSION "$VERSION"
  2892. _ACEOF
  2893. # Some tools Automake needs.
  2894. ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
  2895. AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
  2896. AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
  2897. AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
  2898. MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
  2899. # For better backward compatibility. To be removed once Automake 1.9.x
  2900. # dies out for good. For more background, see:
  2901. # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
  2902. # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
  2903. mkdir_p='$(MKDIR_P)'
  2904. # We need awk for the "check" target (and possibly the TAP driver). The
  2905. # system "awk" is bad on some platforms.
  2906. # Always define AMTAR for backward compatibility. Yes, it's still used
  2907. # in the wild :-( We should find a proper way to deprecate it ...
  2908. AMTAR='$${TAR-tar}'
  2909. # We'll loop over all known methods to create a tar archive until one works.
  2910. _am_tools='gnutar pax cpio none'
  2911. am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
  2912. # POSIX will say in a future version that running "rm -f" with no argument
  2913. # is OK; and we want to be able to make that assumption in our Makefile
  2914. # recipes. So use an aggressive probe to check that the usage we want is
  2915. # actually supported "in the wild" to an acceptable degree.
  2916. # See automake bug#10828.
  2917. # To make any issue more visible, cause the running configure to be aborted
  2918. # by default if the 'rm' program in use doesn't match our expectations; the
  2919. # user can still override this though.
  2920. if rm -f && rm -fr && rm -rf; then : OK; else
  2921. cat >&2 <<'END'
  2922. Oops!
  2923. Your 'rm' program seems unable to run without file operands specified
  2924. on the command line, even when the '-f' option is present. This is contrary
  2925. to the behaviour of most rm programs out there, and not conforming with
  2926. the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
  2927. Please tell bug-automake@gnu.org about your system, including the value
  2928. of your $PATH and any error possibly output before this message. This
  2929. can help us improve future automake versions.
  2930. END
  2931. if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
  2932. echo 'Configuration will proceed anyway, since you have set the' >&2
  2933. echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
  2934. echo >&2
  2935. else
  2936. cat >&2 <<'END'
  2937. Aborting the configuration process, to ensure you take notice of the issue.
  2938. You can download and install GNU coreutils to get an 'rm' implementation
  2939. that behaves properly: <http://www.gnu.org/software/coreutils/>.
  2940. If you want to complete the configuration process using your problematic
  2941. 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
  2942. to "yes", and re-run configure.
  2943. END
  2944. as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
  2945. fi
  2946. fi
  2947. ac_config_headers="$ac_config_headers src/config.h"
  2948. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
  2949. $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
  2950. # Check whether --enable-maintainer-mode was given.
  2951. if test "${enable_maintainer_mode+set}" = set; then :
  2952. enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
  2953. else
  2954. USE_MAINTAINER_MODE=no
  2955. fi
  2956. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
  2957. $as_echo "$USE_MAINTAINER_MODE" >&6; }
  2958. if test $USE_MAINTAINER_MODE = yes; then
  2959. MAINTAINER_MODE_TRUE=
  2960. MAINTAINER_MODE_FALSE='#'
  2961. else
  2962. MAINTAINER_MODE_TRUE='#'
  2963. MAINTAINER_MODE_FALSE=
  2964. fi
  2965. MAINT=$MAINTAINER_MODE_TRUE
  2966. # Export the version information (for tc_version and friends)
  2967. TC_VERSION_MAJOR=`expr "$PACKAGE_VERSION" : '\([0-9]*\)'`
  2968. TC_VERSION_MINOR=`expr "$PACKAGE_VERSION" : '[0-9]*\.\([0-9]*\)'`
  2969. TC_VERSION_PATCH=`expr "$PACKAGE_VERSION" : '[0-9]*\.[0-9]*\(.*\)$'`
  2970. # Find git, defaulting to the 'missing' script so the user gets a nice
  2971. # message if git is missing, rather than a plain 'command not found'.
  2972. # Extract the first word of "git", so it can be a program name with args.
  2973. set dummy git; ac_word=$2
  2974. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2975. $as_echo_n "checking for $ac_word... " >&6; }
  2976. if ${ac_cv_path_GIT+:} false; then :
  2977. $as_echo_n "(cached) " >&6
  2978. else
  2979. case $GIT in
  2980. [\\/]* | ?:[\\/]*)
  2981. ac_cv_path_GIT="$GIT" # Let the user override the test with a path.
  2982. ;;
  2983. *)
  2984. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2985. for as_dir in $PATH
  2986. do
  2987. IFS=$as_save_IFS
  2988. test -z "$as_dir" && as_dir=.
  2989. for ac_exec_ext in '' $ac_executable_extensions; do
  2990. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2991. ac_cv_path_GIT="$as_dir/$ac_word$ac_exec_ext"
  2992. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2993. break 2
  2994. fi
  2995. done
  2996. done
  2997. IFS=$as_save_IFS
  2998. test -z "$ac_cv_path_GIT" && ac_cv_path_GIT="${am_missing_run}git"
  2999. ;;
  3000. esac
  3001. fi
  3002. GIT=$ac_cv_path_GIT
  3003. if test -n "$GIT"; then
  3004. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GIT" >&5
  3005. $as_echo "$GIT" >&6; }
  3006. else
  3007. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3008. $as_echo "no" >&6; }
  3009. fi
  3010. # Build the ChangeLog rules.
  3011. GENERATE_CHANGELOG_RULES='
  3012. # Generate ChangeLog
  3013. #
  3014. # Optional:
  3015. # - CHANGELOG_START: git commit ID or tag name to output changelogs from
  3016. # (exclusive). (Default: include all commits)
  3017. # - CHANGELOG_GIT_FLAGS: General flags to pass to git-log when generating the
  3018. # ChangeLog. (Default: various)
  3019. # - CHANGELOG_GIT_DIR: .git directory to use. (Default: $(top_srcdir)/.git)
  3020. # git-specific
  3021. CHANGELOG_GIT_FLAGS ?= --stat -M -C --name-status --no-color
  3022. CHANGELOG_GIT_DIR ?= $(top_srcdir)/.git
  3023. ifeq ($(CHANGELOG_START),)
  3024. CHANGELOG_GIT_RANGE =
  3025. else
  3026. CHANGELOG_GIT_RANGE = $(CHANGELOG_START)..
  3027. endif
  3028. # Generate a ChangeLog in $(top_distdir)
  3029. dist-ChangeLog:
  3030. $(AM_V_GEN)if $(GIT) \
  3031. --git-dir=$(CHANGELOG_GIT_DIR) --work-tree=$(top_srcdir) log \
  3032. $(CHANGELOG_GIT_FLAGS) $(CHANGELOG_GIT_RANGE) \
  3033. | fmt --split-only >.ChangeLog.tmp; \
  3034. then mv -f .ChangeLog.tmp "$(top_distdir)/ChangeLog"; \
  3035. else rm -f .ChangeLog.tmp; exit 1; fi
  3036. .PHONY: dist-ChangeLog
  3037. '
  3038. # The user can choose not to compile in the heap-profiler, the
  3039. # heap-checker, or the cpu-profiler. There's also the possibility
  3040. # for a 'fully minimal' compile, which leaves out the stacktrace
  3041. # code as well. By default, we include all of these that the
  3042. # target system supports.
  3043. default_enable_cpu_profiler=yes
  3044. default_enable_heap_profiler=yes
  3045. default_enable_heap_checker=yes
  3046. default_enable_debugalloc=yes
  3047. default_enable_minimal=no
  3048. default_tcmalloc_alignment=16
  3049. need_nanosleep=yes # Used later, to decide if to run ACX_NANOSLEEP
  3050. case "$host" in
  3051. *-mingw*) default_enable_minimal=yes; default_enable_debugalloc=no;
  3052. need_nanosleep=no;;
  3053. *-cygwin*) default_enable_heap_checker=no; default_enable_cpu_profiler=no;;
  3054. *-freebsd*) default_enable_heap_checker=no;;
  3055. *-darwin*) default_enable_heap_checker=no;;
  3056. esac
  3057. # Currently only backtrace works on s390.
  3058. DEPDIR="${am__leading_dot}deps"
  3059. ac_config_commands="$ac_config_commands depfiles"
  3060. am_make=${MAKE-make}
  3061. cat > confinc << 'END'
  3062. am__doit:
  3063. @echo this is the am__doit target
  3064. .PHONY: am__doit
  3065. END
  3066. # If we don't find an include directive, just comment out the code.
  3067. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
  3068. $as_echo_n "checking for style of include used by $am_make... " >&6; }
  3069. am__include="#"
  3070. am__quote=
  3071. _am_result=none
  3072. # First try GNU make style include.
  3073. echo "include confinc" > confmf
  3074. # Ignore all kinds of additional output from 'make'.
  3075. case `$am_make -s -f confmf 2> /dev/null` in #(
  3076. *the\ am__doit\ target*)
  3077. am__include=include
  3078. am__quote=
  3079. _am_result=GNU
  3080. ;;
  3081. esac
  3082. # Now try BSD make style include.
  3083. if test "$am__include" = "#"; then
  3084. echo '.include "confinc"' > confmf
  3085. case `$am_make -s -f confmf 2> /dev/null` in #(
  3086. *the\ am__doit\ target*)
  3087. am__include=.include
  3088. am__quote="\""
  3089. _am_result=BSD
  3090. ;;
  3091. esac
  3092. fi
  3093. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
  3094. $as_echo "$_am_result" >&6; }
  3095. rm -f confinc confmf
  3096. # Check whether --enable-dependency-tracking was given.
  3097. if test "${enable_dependency_tracking+set}" = set; then :
  3098. enableval=$enable_dependency_tracking;
  3099. fi
  3100. if test "x$enable_dependency_tracking" != xno; then
  3101. am_depcomp="$ac_aux_dir/depcomp"
  3102. AMDEPBACKSLASH='\'
  3103. am__nodep='_no'
  3104. fi
  3105. if test "x$enable_dependency_tracking" != xno; then
  3106. AMDEP_TRUE=
  3107. AMDEP_FALSE='#'
  3108. else
  3109. AMDEP_TRUE='#'
  3110. AMDEP_FALSE=
  3111. fi
  3112. ac_ext=c
  3113. ac_cpp='$CPP $CPPFLAGS'
  3114. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3115. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3116. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3117. if test -n "$ac_tool_prefix"; then
  3118. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  3119. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  3120. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3121. $as_echo_n "checking for $ac_word... " >&6; }
  3122. if ${ac_cv_prog_CC+:} false; then :
  3123. $as_echo_n "(cached) " >&6
  3124. else
  3125. if test -n "$CC"; then
  3126. ac_cv_prog_CC="$CC" # Let the user override the test.
  3127. else
  3128. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3129. for as_dir in $PATH
  3130. do
  3131. IFS=$as_save_IFS
  3132. test -z "$as_dir" && as_dir=.
  3133. for ac_exec_ext in '' $ac_executable_extensions; do
  3134. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3135. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  3136. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3137. break 2
  3138. fi
  3139. done
  3140. done
  3141. IFS=$as_save_IFS
  3142. fi
  3143. fi
  3144. CC=$ac_cv_prog_CC
  3145. if test -n "$CC"; then
  3146. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3147. $as_echo "$CC" >&6; }
  3148. else
  3149. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3150. $as_echo "no" >&6; }
  3151. fi
  3152. fi
  3153. if test -z "$ac_cv_prog_CC"; then
  3154. ac_ct_CC=$CC
  3155. # Extract the first word of "gcc", so it can be a program name with args.
  3156. set dummy gcc; ac_word=$2
  3157. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3158. $as_echo_n "checking for $ac_word... " >&6; }
  3159. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  3160. $as_echo_n "(cached) " >&6
  3161. else
  3162. if test -n "$ac_ct_CC"; then
  3163. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3164. else
  3165. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3166. for as_dir in $PATH
  3167. do
  3168. IFS=$as_save_IFS
  3169. test -z "$as_dir" && as_dir=.
  3170. for ac_exec_ext in '' $ac_executable_extensions; do
  3171. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3172. ac_cv_prog_ac_ct_CC="gcc"
  3173. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3174. break 2
  3175. fi
  3176. done
  3177. done
  3178. IFS=$as_save_IFS
  3179. fi
  3180. fi
  3181. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3182. if test -n "$ac_ct_CC"; then
  3183. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  3184. $as_echo "$ac_ct_CC" >&6; }
  3185. else
  3186. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3187. $as_echo "no" >&6; }
  3188. fi
  3189. if test "x$ac_ct_CC" = x; then
  3190. CC=""
  3191. else
  3192. case $cross_compiling:$ac_tool_warned in
  3193. yes:)
  3194. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3195. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3196. ac_tool_warned=yes ;;
  3197. esac
  3198. CC=$ac_ct_CC
  3199. fi
  3200. else
  3201. CC="$ac_cv_prog_CC"
  3202. fi
  3203. if test -z "$CC"; then
  3204. if test -n "$ac_tool_prefix"; then
  3205. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  3206. set dummy ${ac_tool_prefix}cc; ac_word=$2
  3207. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3208. $as_echo_n "checking for $ac_word... " >&6; }
  3209. if ${ac_cv_prog_CC+:} false; then :
  3210. $as_echo_n "(cached) " >&6
  3211. else
  3212. if test -n "$CC"; then
  3213. ac_cv_prog_CC="$CC" # Let the user override the test.
  3214. else
  3215. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3216. for as_dir in $PATH
  3217. do
  3218. IFS=$as_save_IFS
  3219. test -z "$as_dir" && as_dir=.
  3220. for ac_exec_ext in '' $ac_executable_extensions; do
  3221. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3222. ac_cv_prog_CC="${ac_tool_prefix}cc"
  3223. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3224. break 2
  3225. fi
  3226. done
  3227. done
  3228. IFS=$as_save_IFS
  3229. fi
  3230. fi
  3231. CC=$ac_cv_prog_CC
  3232. if test -n "$CC"; then
  3233. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3234. $as_echo "$CC" >&6; }
  3235. else
  3236. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3237. $as_echo "no" >&6; }
  3238. fi
  3239. fi
  3240. fi
  3241. if test -z "$CC"; then
  3242. # Extract the first word of "cc", so it can be a program name with args.
  3243. set dummy cc; ac_word=$2
  3244. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3245. $as_echo_n "checking for $ac_word... " >&6; }
  3246. if ${ac_cv_prog_CC+:} false; then :
  3247. $as_echo_n "(cached) " >&6
  3248. else
  3249. if test -n "$CC"; then
  3250. ac_cv_prog_CC="$CC" # Let the user override the test.
  3251. else
  3252. ac_prog_rejected=no
  3253. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3254. for as_dir in $PATH
  3255. do
  3256. IFS=$as_save_IFS
  3257. test -z "$as_dir" && as_dir=.
  3258. for ac_exec_ext in '' $ac_executable_extensions; do
  3259. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3260. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  3261. ac_prog_rejected=yes
  3262. continue
  3263. fi
  3264. ac_cv_prog_CC="cc"
  3265. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3266. break 2
  3267. fi
  3268. done
  3269. done
  3270. IFS=$as_save_IFS
  3271. if test $ac_prog_rejected = yes; then
  3272. # We found a bogon in the path, so make sure we never use it.
  3273. set dummy $ac_cv_prog_CC
  3274. shift
  3275. if test $# != 0; then
  3276. # We chose a different compiler from the bogus one.
  3277. # However, it has the same basename, so the bogon will be chosen
  3278. # first if we set CC to just the basename; use the full file name.
  3279. shift
  3280. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  3281. fi
  3282. fi
  3283. fi
  3284. fi
  3285. CC=$ac_cv_prog_CC
  3286. if test -n "$CC"; then
  3287. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3288. $as_echo "$CC" >&6; }
  3289. else
  3290. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3291. $as_echo "no" >&6; }
  3292. fi
  3293. fi
  3294. if test -z "$CC"; then
  3295. if test -n "$ac_tool_prefix"; then
  3296. for ac_prog in cl.exe
  3297. do
  3298. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  3299. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  3300. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3301. $as_echo_n "checking for $ac_word... " >&6; }
  3302. if ${ac_cv_prog_CC+:} false; then :
  3303. $as_echo_n "(cached) " >&6
  3304. else
  3305. if test -n "$CC"; then
  3306. ac_cv_prog_CC="$CC" # Let the user override the test.
  3307. else
  3308. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3309. for as_dir in $PATH
  3310. do
  3311. IFS=$as_save_IFS
  3312. test -z "$as_dir" && as_dir=.
  3313. for ac_exec_ext in '' $ac_executable_extensions; do
  3314. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3315. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  3316. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3317. break 2
  3318. fi
  3319. done
  3320. done
  3321. IFS=$as_save_IFS
  3322. fi
  3323. fi
  3324. CC=$ac_cv_prog_CC
  3325. if test -n "$CC"; then
  3326. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3327. $as_echo "$CC" >&6; }
  3328. else
  3329. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3330. $as_echo "no" >&6; }
  3331. fi
  3332. test -n "$CC" && break
  3333. done
  3334. fi
  3335. if test -z "$CC"; then
  3336. ac_ct_CC=$CC
  3337. for ac_prog in cl.exe
  3338. do
  3339. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3340. set dummy $ac_prog; ac_word=$2
  3341. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3342. $as_echo_n "checking for $ac_word... " >&6; }
  3343. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  3344. $as_echo_n "(cached) " >&6
  3345. else
  3346. if test -n "$ac_ct_CC"; then
  3347. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3348. else
  3349. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3350. for as_dir in $PATH
  3351. do
  3352. IFS=$as_save_IFS
  3353. test -z "$as_dir" && as_dir=.
  3354. for ac_exec_ext in '' $ac_executable_extensions; do
  3355. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3356. ac_cv_prog_ac_ct_CC="$ac_prog"
  3357. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3358. break 2
  3359. fi
  3360. done
  3361. done
  3362. IFS=$as_save_IFS
  3363. fi
  3364. fi
  3365. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3366. if test -n "$ac_ct_CC"; then
  3367. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  3368. $as_echo "$ac_ct_CC" >&6; }
  3369. else
  3370. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3371. $as_echo "no" >&6; }
  3372. fi
  3373. test -n "$ac_ct_CC" && break
  3374. done
  3375. if test "x$ac_ct_CC" = x; then
  3376. CC=""
  3377. else
  3378. case $cross_compiling:$ac_tool_warned in
  3379. yes:)
  3380. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3381. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3382. ac_tool_warned=yes ;;
  3383. esac
  3384. CC=$ac_ct_CC
  3385. fi
  3386. fi
  3387. fi
  3388. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3389. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3390. as_fn_error $? "no acceptable C compiler found in \$PATH
  3391. See \`config.log' for more details" "$LINENO" 5; }
  3392. # Provide some information about the compiler.
  3393. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  3394. set X $ac_compile
  3395. ac_compiler=$2
  3396. for ac_option in --version -v -V -qversion; do
  3397. { { ac_try="$ac_compiler $ac_option >&5"
  3398. case "(($ac_try" in
  3399. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3400. *) ac_try_echo=$ac_try;;
  3401. esac
  3402. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3403. $as_echo "$ac_try_echo"; } >&5
  3404. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  3405. ac_status=$?
  3406. if test -s conftest.err; then
  3407. sed '10a\
  3408. ... rest of stderr output deleted ...
  3409. 10q' conftest.err >conftest.er1
  3410. cat conftest.er1 >&5
  3411. fi
  3412. rm -f conftest.er1 conftest.err
  3413. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3414. test $ac_status = 0; }
  3415. done
  3416. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3417. /* end confdefs.h. */
  3418. int
  3419. main ()
  3420. {
  3421. ;
  3422. return 0;
  3423. }
  3424. _ACEOF
  3425. ac_clean_files_save=$ac_clean_files
  3426. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  3427. # Try to create an executable without -o first, disregard a.out.
  3428. # It will help us diagnose broken compilers, and finding out an intuition
  3429. # of exeext.
  3430. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
  3431. $as_echo_n "checking whether the C compiler works... " >&6; }
  3432. ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  3433. # The possible output files:
  3434. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  3435. ac_rmfiles=
  3436. for ac_file in $ac_files
  3437. do
  3438. case $ac_file in
  3439. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3440. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  3441. esac
  3442. done
  3443. rm -f $ac_rmfiles
  3444. if { { ac_try="$ac_link_default"
  3445. case "(($ac_try" in
  3446. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3447. *) ac_try_echo=$ac_try;;
  3448. esac
  3449. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3450. $as_echo "$ac_try_echo"; } >&5
  3451. (eval "$ac_link_default") 2>&5
  3452. ac_status=$?
  3453. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3454. test $ac_status = 0; }; then :
  3455. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  3456. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  3457. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  3458. # so that the user can short-circuit this test for compilers unknown to
  3459. # Autoconf.
  3460. for ac_file in $ac_files ''
  3461. do
  3462. test -f "$ac_file" || continue
  3463. case $ac_file in
  3464. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  3465. ;;
  3466. [ab].out )
  3467. # We found the default executable, but exeext='' is most
  3468. # certainly right.
  3469. break;;
  3470. *.* )
  3471. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  3472. then :; else
  3473. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3474. fi
  3475. # We set ac_cv_exeext here because the later test for it is not
  3476. # safe: cross compilers may not add the suffix if given an `-o'
  3477. # argument, so we may need to know it at that point already.
  3478. # Even if this section looks crufty: it has the advantage of
  3479. # actually working.
  3480. break;;
  3481. * )
  3482. break;;
  3483. esac
  3484. done
  3485. test "$ac_cv_exeext" = no && ac_cv_exeext=
  3486. else
  3487. ac_file=''
  3488. fi
  3489. if test -z "$ac_file"; then :
  3490. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3491. $as_echo "no" >&6; }
  3492. $as_echo "$as_me: failed program was:" >&5
  3493. sed 's/^/| /' conftest.$ac_ext >&5
  3494. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3495. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3496. as_fn_error 77 "C compiler cannot create executables
  3497. See \`config.log' for more details" "$LINENO" 5; }
  3498. else
  3499. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3500. $as_echo "yes" >&6; }
  3501. fi
  3502. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
  3503. $as_echo_n "checking for C compiler default output file name... " >&6; }
  3504. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  3505. $as_echo "$ac_file" >&6; }
  3506. ac_exeext=$ac_cv_exeext
  3507. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  3508. ac_clean_files=$ac_clean_files_save
  3509. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  3510. $as_echo_n "checking for suffix of executables... " >&6; }
  3511. if { { ac_try="$ac_link"
  3512. case "(($ac_try" in
  3513. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3514. *) ac_try_echo=$ac_try;;
  3515. esac
  3516. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3517. $as_echo "$ac_try_echo"; } >&5
  3518. (eval "$ac_link") 2>&5
  3519. ac_status=$?
  3520. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3521. test $ac_status = 0; }; then :
  3522. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  3523. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  3524. # work properly (i.e., refer to `conftest.exe'), while it won't with
  3525. # `rm'.
  3526. for ac_file in conftest.exe conftest conftest.*; do
  3527. test -f "$ac_file" || continue
  3528. case $ac_file in
  3529. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3530. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3531. break;;
  3532. * ) break;;
  3533. esac
  3534. done
  3535. else
  3536. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3537. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3538. as_fn_error $? "cannot compute suffix of executables: cannot compile and link
  3539. See \`config.log' for more details" "$LINENO" 5; }
  3540. fi
  3541. rm -f conftest conftest$ac_cv_exeext
  3542. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  3543. $as_echo "$ac_cv_exeext" >&6; }
  3544. rm -f conftest.$ac_ext
  3545. EXEEXT=$ac_cv_exeext
  3546. ac_exeext=$EXEEXT
  3547. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3548. /* end confdefs.h. */
  3549. #include <stdio.h>
  3550. int
  3551. main ()
  3552. {
  3553. FILE *f = fopen ("conftest.out", "w");
  3554. return ferror (f) || fclose (f) != 0;
  3555. ;
  3556. return 0;
  3557. }
  3558. _ACEOF
  3559. ac_clean_files="$ac_clean_files conftest.out"
  3560. # Check that the compiler produces executables we can run. If not, either
  3561. # the compiler is broken, or we cross compile.
  3562. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  3563. $as_echo_n "checking whether we are cross compiling... " >&6; }
  3564. if test "$cross_compiling" != yes; then
  3565. { { ac_try="$ac_link"
  3566. case "(($ac_try" in
  3567. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3568. *) ac_try_echo=$ac_try;;
  3569. esac
  3570. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3571. $as_echo "$ac_try_echo"; } >&5
  3572. (eval "$ac_link") 2>&5
  3573. ac_status=$?
  3574. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3575. test $ac_status = 0; }
  3576. if { ac_try='./conftest$ac_cv_exeext'
  3577. { { case "(($ac_try" in
  3578. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3579. *) ac_try_echo=$ac_try;;
  3580. esac
  3581. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3582. $as_echo "$ac_try_echo"; } >&5
  3583. (eval "$ac_try") 2>&5
  3584. ac_status=$?
  3585. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3586. test $ac_status = 0; }; }; then
  3587. cross_compiling=no
  3588. else
  3589. if test "$cross_compiling" = maybe; then
  3590. cross_compiling=yes
  3591. else
  3592. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3593. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3594. as_fn_error $? "cannot run C compiled programs.
  3595. If you meant to cross compile, use \`--host'.
  3596. See \`config.log' for more details" "$LINENO" 5; }
  3597. fi
  3598. fi
  3599. fi
  3600. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  3601. $as_echo "$cross_compiling" >&6; }
  3602. rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
  3603. ac_clean_files=$ac_clean_files_save
  3604. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  3605. $as_echo_n "checking for suffix of object files... " >&6; }
  3606. if ${ac_cv_objext+:} false; then :
  3607. $as_echo_n "(cached) " >&6
  3608. else
  3609. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3610. /* end confdefs.h. */
  3611. int
  3612. main ()
  3613. {
  3614. ;
  3615. return 0;
  3616. }
  3617. _ACEOF
  3618. rm -f conftest.o conftest.obj
  3619. if { { ac_try="$ac_compile"
  3620. case "(($ac_try" in
  3621. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3622. *) ac_try_echo=$ac_try;;
  3623. esac
  3624. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3625. $as_echo "$ac_try_echo"; } >&5
  3626. (eval "$ac_compile") 2>&5
  3627. ac_status=$?
  3628. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3629. test $ac_status = 0; }; then :
  3630. for ac_file in conftest.o conftest.obj conftest.*; do
  3631. test -f "$ac_file" || continue;
  3632. case $ac_file in
  3633. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  3634. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  3635. break;;
  3636. esac
  3637. done
  3638. else
  3639. $as_echo "$as_me: failed program was:" >&5
  3640. sed 's/^/| /' conftest.$ac_ext >&5
  3641. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3642. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3643. as_fn_error $? "cannot compute suffix of object files: cannot compile
  3644. See \`config.log' for more details" "$LINENO" 5; }
  3645. fi
  3646. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  3647. fi
  3648. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  3649. $as_echo "$ac_cv_objext" >&6; }
  3650. OBJEXT=$ac_cv_objext
  3651. ac_objext=$OBJEXT
  3652. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  3653. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  3654. if ${ac_cv_c_compiler_gnu+:} false; then :
  3655. $as_echo_n "(cached) " >&6
  3656. else
  3657. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3658. /* end confdefs.h. */
  3659. int
  3660. main ()
  3661. {
  3662. #ifndef __GNUC__
  3663. choke me
  3664. #endif
  3665. ;
  3666. return 0;
  3667. }
  3668. _ACEOF
  3669. if ac_fn_c_try_compile "$LINENO"; then :
  3670. ac_compiler_gnu=yes
  3671. else
  3672. ac_compiler_gnu=no
  3673. fi
  3674. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3675. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  3676. fi
  3677. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  3678. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  3679. if test $ac_compiler_gnu = yes; then
  3680. GCC=yes
  3681. else
  3682. GCC=
  3683. fi
  3684. ac_test_CFLAGS=${CFLAGS+set}
  3685. ac_save_CFLAGS=$CFLAGS
  3686. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  3687. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  3688. if ${ac_cv_prog_cc_g+:} false; then :
  3689. $as_echo_n "(cached) " >&6
  3690. else
  3691. ac_save_c_werror_flag=$ac_c_werror_flag
  3692. ac_c_werror_flag=yes
  3693. ac_cv_prog_cc_g=no
  3694. CFLAGS="-g"
  3695. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3696. /* end confdefs.h. */
  3697. int
  3698. main ()
  3699. {
  3700. ;
  3701. return 0;
  3702. }
  3703. _ACEOF
  3704. if ac_fn_c_try_compile "$LINENO"; then :
  3705. ac_cv_prog_cc_g=yes
  3706. else
  3707. CFLAGS=""
  3708. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3709. /* end confdefs.h. */
  3710. int
  3711. main ()
  3712. {
  3713. ;
  3714. return 0;
  3715. }
  3716. _ACEOF
  3717. if ac_fn_c_try_compile "$LINENO"; then :
  3718. else
  3719. ac_c_werror_flag=$ac_save_c_werror_flag
  3720. CFLAGS="-g"
  3721. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3722. /* end confdefs.h. */
  3723. int
  3724. main ()
  3725. {
  3726. ;
  3727. return 0;
  3728. }
  3729. _ACEOF
  3730. if ac_fn_c_try_compile "$LINENO"; then :
  3731. ac_cv_prog_cc_g=yes
  3732. fi
  3733. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3734. fi
  3735. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3736. fi
  3737. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3738. ac_c_werror_flag=$ac_save_c_werror_flag
  3739. fi
  3740. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  3741. $as_echo "$ac_cv_prog_cc_g" >&6; }
  3742. if test "$ac_test_CFLAGS" = set; then
  3743. CFLAGS=$ac_save_CFLAGS
  3744. elif test $ac_cv_prog_cc_g = yes; then
  3745. if test "$GCC" = yes; then
  3746. CFLAGS="-g -O2"
  3747. else
  3748. CFLAGS="-g"
  3749. fi
  3750. else
  3751. if test "$GCC" = yes; then
  3752. CFLAGS="-O2"
  3753. else
  3754. CFLAGS=
  3755. fi
  3756. fi
  3757. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  3758. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  3759. if ${ac_cv_prog_cc_c89+:} false; then :
  3760. $as_echo_n "(cached) " >&6
  3761. else
  3762. ac_cv_prog_cc_c89=no
  3763. ac_save_CC=$CC
  3764. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3765. /* end confdefs.h. */
  3766. #include <stdarg.h>
  3767. #include <stdio.h>
  3768. struct stat;
  3769. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  3770. struct buf { int x; };
  3771. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  3772. static char *e (p, i)
  3773. char **p;
  3774. int i;
  3775. {
  3776. return p[i];
  3777. }
  3778. static char *f (char * (*g) (char **, int), char **p, ...)
  3779. {
  3780. char *s;
  3781. va_list v;
  3782. va_start (v,p);
  3783. s = g (p, va_arg (v,int));
  3784. va_end (v);
  3785. return s;
  3786. }
  3787. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  3788. function prototypes and stuff, but not '\xHH' hex character constants.
  3789. These don't provoke an error unfortunately, instead are silently treated
  3790. as 'x'. The following induces an error, until -std is added to get
  3791. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  3792. array size at least. It's necessary to write '\x00'==0 to get something
  3793. that's true only with -std. */
  3794. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  3795. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  3796. inside strings and character constants. */
  3797. #define FOO(x) 'x'
  3798. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  3799. int test (int i, double x);
  3800. struct s1 {int (*f) (int a);};
  3801. struct s2 {int (*f) (double a);};
  3802. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  3803. int argc;
  3804. char **argv;
  3805. int
  3806. main ()
  3807. {
  3808. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  3809. ;
  3810. return 0;
  3811. }
  3812. _ACEOF
  3813. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  3814. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  3815. do
  3816. CC="$ac_save_CC $ac_arg"
  3817. if ac_fn_c_try_compile "$LINENO"; then :
  3818. ac_cv_prog_cc_c89=$ac_arg
  3819. fi
  3820. rm -f core conftest.err conftest.$ac_objext
  3821. test "x$ac_cv_prog_cc_c89" != "xno" && break
  3822. done
  3823. rm -f conftest.$ac_ext
  3824. CC=$ac_save_CC
  3825. fi
  3826. # AC_CACHE_VAL
  3827. case "x$ac_cv_prog_cc_c89" in
  3828. x)
  3829. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  3830. $as_echo "none needed" >&6; } ;;
  3831. xno)
  3832. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  3833. $as_echo "unsupported" >&6; } ;;
  3834. *)
  3835. CC="$CC $ac_cv_prog_cc_c89"
  3836. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  3837. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  3838. esac
  3839. if test "x$ac_cv_prog_cc_c89" != xno; then :
  3840. fi
  3841. ac_ext=c
  3842. ac_cpp='$CPP $CPPFLAGS'
  3843. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3844. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3845. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3846. ac_ext=c
  3847. ac_cpp='$CPP $CPPFLAGS'
  3848. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3849. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3850. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3851. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
  3852. $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
  3853. if ${am_cv_prog_cc_c_o+:} false; then :
  3854. $as_echo_n "(cached) " >&6
  3855. else
  3856. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3857. /* end confdefs.h. */
  3858. int
  3859. main ()
  3860. {
  3861. ;
  3862. return 0;
  3863. }
  3864. _ACEOF
  3865. # Make sure it works both with $CC and with simple cc.
  3866. # Following AC_PROG_CC_C_O, we do the test twice because some
  3867. # compilers refuse to overwrite an existing .o file with -o,
  3868. # though they will create one.
  3869. am_cv_prog_cc_c_o=yes
  3870. for am_i in 1 2; do
  3871. if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
  3872. ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
  3873. ac_status=$?
  3874. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3875. (exit $ac_status); } \
  3876. && test -f conftest2.$ac_objext; then
  3877. : OK
  3878. else
  3879. am_cv_prog_cc_c_o=no
  3880. break
  3881. fi
  3882. done
  3883. rm -f core conftest*
  3884. unset am_i
  3885. fi
  3886. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
  3887. $as_echo "$am_cv_prog_cc_c_o" >&6; }
  3888. if test "$am_cv_prog_cc_c_o" != yes; then
  3889. # Losing compiler, so override with the script.
  3890. # FIXME: It is wrong to rewrite CC.
  3891. # But if we don't then we get into trouble of one sort or another.
  3892. # A longer-term fix would be to have automake use am__CC in this case,
  3893. # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
  3894. CC="$am_aux_dir/compile $CC"
  3895. fi
  3896. ac_ext=c
  3897. ac_cpp='$CPP $CPPFLAGS'
  3898. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3899. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3900. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3901. depcc="$CC" am_compiler_list=
  3902. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  3903. $as_echo_n "checking dependency style of $depcc... " >&6; }
  3904. if ${am_cv_CC_dependencies_compiler_type+:} false; then :
  3905. $as_echo_n "(cached) " >&6
  3906. else
  3907. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  3908. # We make a subdir and do the tests there. Otherwise we can end up
  3909. # making bogus files that we don't know about and never remove. For
  3910. # instance it was reported that on HP-UX the gcc test will end up
  3911. # making a dummy file named 'D' -- because '-MD' means "put the output
  3912. # in D".
  3913. rm -rf conftest.dir
  3914. mkdir conftest.dir
  3915. # Copy depcomp to subdir because otherwise we won't find it if we're
  3916. # using a relative directory.
  3917. cp "$am_depcomp" conftest.dir
  3918. cd conftest.dir
  3919. # We will build objects and dependencies in a subdirectory because
  3920. # it helps to detect inapplicable dependency modes. For instance
  3921. # both Tru64's cc and ICC support -MD to output dependencies as a
  3922. # side effect of compilation, but ICC will put the dependencies in
  3923. # the current directory while Tru64 will put them in the object
  3924. # directory.
  3925. mkdir sub
  3926. am_cv_CC_dependencies_compiler_type=none
  3927. if test "$am_compiler_list" = ""; then
  3928. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  3929. fi
  3930. am__universal=false
  3931. case " $depcc " in #(
  3932. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  3933. esac
  3934. for depmode in $am_compiler_list; do
  3935. # Setup a source with many dependencies, because some compilers
  3936. # like to wrap large dependency lists on column 80 (with \), and
  3937. # we should not choose a depcomp mode which is confused by this.
  3938. #
  3939. # We need to recreate these files for each test, as the compiler may
  3940. # overwrite some of them when testing with obscure command lines.
  3941. # This happens at least with the AIX C compiler.
  3942. : > sub/conftest.c
  3943. for i in 1 2 3 4 5 6; do
  3944. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  3945. # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
  3946. # Solaris 10 /bin/sh.
  3947. echo '/* dummy */' > sub/conftst$i.h
  3948. done
  3949. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  3950. # We check with '-c' and '-o' for the sake of the "dashmstdout"
  3951. # mode. It turns out that the SunPro C++ compiler does not properly
  3952. # handle '-M -o', and we need to detect this. Also, some Intel
  3953. # versions had trouble with output in subdirs.
  3954. am__obj=sub/conftest.${OBJEXT-o}
  3955. am__minus_obj="-o $am__obj"
  3956. case $depmode in
  3957. gcc)
  3958. # This depmode causes a compiler race in universal mode.
  3959. test "$am__universal" = false || continue
  3960. ;;
  3961. nosideeffect)
  3962. # After this tag, mechanisms are not by side-effect, so they'll
  3963. # only be used when explicitly requested.
  3964. if test "x$enable_dependency_tracking" = xyes; then
  3965. continue
  3966. else
  3967. break
  3968. fi
  3969. ;;
  3970. msvc7 | msvc7msys | msvisualcpp | msvcmsys)
  3971. # This compiler won't grok '-c -o', but also, the minuso test has
  3972. # not run yet. These depmodes are late enough in the game, and
  3973. # so weak that their functioning should not be impacted.
  3974. am__obj=conftest.${OBJEXT-o}
  3975. am__minus_obj=
  3976. ;;
  3977. none) break ;;
  3978. esac
  3979. if depmode=$depmode \
  3980. source=sub/conftest.c object=$am__obj \
  3981. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  3982. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  3983. >/dev/null 2>conftest.err &&
  3984. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  3985. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  3986. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  3987. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  3988. # icc doesn't choke on unknown options, it will just issue warnings
  3989. # or remarks (even with -Werror). So we grep stderr for any message
  3990. # that says an option was ignored or not supported.
  3991. # When given -MP, icc 7.0 and 7.1 complain thusly:
  3992. # icc: Command line warning: ignoring option '-M'; no argument required
  3993. # The diagnosis changed in icc 8.0:
  3994. # icc: Command line remark: option '-MP' not supported
  3995. if (grep 'ignoring option' conftest.err ||
  3996. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  3997. am_cv_CC_dependencies_compiler_type=$depmode
  3998. break
  3999. fi
  4000. fi
  4001. done
  4002. cd ..
  4003. rm -rf conftest.dir
  4004. else
  4005. am_cv_CC_dependencies_compiler_type=none
  4006. fi
  4007. fi
  4008. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
  4009. $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
  4010. CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  4011. if
  4012. test "x$enable_dependency_tracking" != xno \
  4013. && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  4014. am__fastdepCC_TRUE=
  4015. am__fastdepCC_FALSE='#'
  4016. else
  4017. am__fastdepCC_TRUE='#'
  4018. am__fastdepCC_FALSE=
  4019. fi
  4020. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4021. /* end confdefs.h. */
  4022. int
  4023. main ()
  4024. {
  4025. return __s390__
  4026. ;
  4027. return 0;
  4028. }
  4029. _ACEOF
  4030. if ac_fn_c_try_compile "$LINENO"; then :
  4031. default_enable_libunwind=no
  4032. default_enable_backtrace=yes
  4033. else
  4034. default_enable_libunwind=yes
  4035. default_enable_backtrace=no
  4036. fi
  4037. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4038. # Disable libunwind linking on ppc64 by default.
  4039. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4040. /* end confdefs.h. */
  4041. int
  4042. main ()
  4043. {
  4044. return __PPC64__
  4045. ;
  4046. return 0;
  4047. }
  4048. _ACEOF
  4049. if ac_fn_c_try_compile "$LINENO"; then :
  4050. default_enable_libunwind=no
  4051. default_tcmalloc_pagesize=64
  4052. else
  4053. default_enable_libunwind=yes
  4054. default_tcmalloc_pagesize=8
  4055. fi
  4056. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4057. # Check whether --enable-cpu-profiler was given.
  4058. if test "${enable_cpu_profiler+set}" = set; then :
  4059. enableval=$enable_cpu_profiler;
  4060. else
  4061. enable_cpu_profiler="$default_enable_cpu_profiler"
  4062. fi
  4063. # Check whether --enable-heap-profiler was given.
  4064. if test "${enable_heap_profiler+set}" = set; then :
  4065. enableval=$enable_heap_profiler;
  4066. else
  4067. enable_heap_profiler="$default_enable_heap_profiler"
  4068. fi
  4069. # Check whether --enable-heap-checker was given.
  4070. if test "${enable_heap_checker+set}" = set; then :
  4071. enableval=$enable_heap_checker;
  4072. else
  4073. enable_heap_checker="$default_enable_heap_checker"
  4074. fi
  4075. # Check whether --enable-debugalloc was given.
  4076. if test "${enable_debugalloc+set}" = set; then :
  4077. enableval=$enable_debugalloc;
  4078. else
  4079. enable_debugalloc="$default_enable_debugalloc"
  4080. fi
  4081. # Check whether --enable-minimal was given.
  4082. if test "${enable_minimal+set}" = set; then :
  4083. enableval=$enable_minimal;
  4084. else
  4085. enable_minimal="$default_enable_minimal"
  4086. fi
  4087. if test "$enable_minimal" = yes; then
  4088. enable_cpu_profiler=no
  4089. enable_heap_profiler=no
  4090. enable_heap_checker=no
  4091. fi
  4092. # Check whether --enable-stacktrace-via-backtrace was given.
  4093. if test "${enable_stacktrace_via_backtrace+set}" = set; then :
  4094. enableval=$enable_stacktrace_via_backtrace; enable_backtrace=yes
  4095. else
  4096. enable_backtrace="$default_enable_backtrace"
  4097. fi
  4098. # Check whether --enable-libunwind was given.
  4099. if test "${enable_libunwind+set}" = set; then :
  4100. enableval=$enable_libunwind;
  4101. else
  4102. enable_libunwind="$default_enable_libunwind"
  4103. fi
  4104. # Check whether --with-tcmalloc-pagesize was given.
  4105. if test "${with_tcmalloc_pagesize+set}" = set; then :
  4106. withval=$with_tcmalloc_pagesize;
  4107. else
  4108. with_tcmalloc_pagesize=$default_tcmalloc_pagesize
  4109. fi
  4110. # Check whether --with-tcmalloc-alignment was given.
  4111. if test "${with_tcmalloc_alignment+set}" = set; then :
  4112. withval=$with_tcmalloc_alignment;
  4113. else
  4114. with_tcmalloc_alignment=$default_tcmalloc_alignment
  4115. fi
  4116. case "$with_tcmalloc_pagesize" in
  4117. 8)
  4118. #Default tcmalloc page size.
  4119. ;;
  4120. 32)
  4121. $as_echo "#define TCMALLOC_32K_PAGES 1" >>confdefs.h
  4122. ;;
  4123. 64)
  4124. $as_echo "#define TCMALLOC_64K_PAGES 1" >>confdefs.h
  4125. ;;
  4126. *)
  4127. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ${with_tcmalloc_pagesize}K size not supported, using default tcmalloc page size." >&5
  4128. $as_echo "$as_me: WARNING: ${with_tcmalloc_pagesize}K size not supported, using default tcmalloc page size." >&2;}
  4129. esac
  4130. case "$with_tcmalloc_alignment" in
  4131. 8)
  4132. $as_echo "#define TCMALLOC_ALIGN_8BYTES 1" >>confdefs.h
  4133. ;;
  4134. 16)
  4135. #Default tcmalloc allocation alignment.
  4136. ;;
  4137. *)
  4138. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ${with_tcmalloc_alignment} bytes not supported, using default tcmalloc allocation alignment." >&5
  4139. $as_echo "$as_me: WARNING: ${with_tcmalloc_alignment} bytes not supported, using default tcmalloc allocation alignment." >&2;}
  4140. esac
  4141. # Checks for programs.
  4142. ac_ext=cpp
  4143. ac_cpp='$CXXCPP $CPPFLAGS'
  4144. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4145. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4146. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  4147. if test -z "$CXX"; then
  4148. if test -n "$CCC"; then
  4149. CXX=$CCC
  4150. else
  4151. if test -n "$ac_tool_prefix"; then
  4152. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  4153. do
  4154. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  4155. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  4156. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4157. $as_echo_n "checking for $ac_word... " >&6; }
  4158. if ${ac_cv_prog_CXX+:} false; then :
  4159. $as_echo_n "(cached) " >&6
  4160. else
  4161. if test -n "$CXX"; then
  4162. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  4163. else
  4164. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4165. for as_dir in $PATH
  4166. do
  4167. IFS=$as_save_IFS
  4168. test -z "$as_dir" && as_dir=.
  4169. for ac_exec_ext in '' $ac_executable_extensions; do
  4170. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4171. ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  4172. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4173. break 2
  4174. fi
  4175. done
  4176. done
  4177. IFS=$as_save_IFS
  4178. fi
  4179. fi
  4180. CXX=$ac_cv_prog_CXX
  4181. if test -n "$CXX"; then
  4182. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
  4183. $as_echo "$CXX" >&6; }
  4184. else
  4185. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4186. $as_echo "no" >&6; }
  4187. fi
  4188. test -n "$CXX" && break
  4189. done
  4190. fi
  4191. if test -z "$CXX"; then
  4192. ac_ct_CXX=$CXX
  4193. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  4194. do
  4195. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4196. set dummy $ac_prog; ac_word=$2
  4197. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4198. $as_echo_n "checking for $ac_word... " >&6; }
  4199. if ${ac_cv_prog_ac_ct_CXX+:} false; then :
  4200. $as_echo_n "(cached) " >&6
  4201. else
  4202. if test -n "$ac_ct_CXX"; then
  4203. ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  4204. else
  4205. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4206. for as_dir in $PATH
  4207. do
  4208. IFS=$as_save_IFS
  4209. test -z "$as_dir" && as_dir=.
  4210. for ac_exec_ext in '' $ac_executable_extensions; do
  4211. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4212. ac_cv_prog_ac_ct_CXX="$ac_prog"
  4213. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4214. break 2
  4215. fi
  4216. done
  4217. done
  4218. IFS=$as_save_IFS
  4219. fi
  4220. fi
  4221. ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  4222. if test -n "$ac_ct_CXX"; then
  4223. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
  4224. $as_echo "$ac_ct_CXX" >&6; }
  4225. else
  4226. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4227. $as_echo "no" >&6; }
  4228. fi
  4229. test -n "$ac_ct_CXX" && break
  4230. done
  4231. if test "x$ac_ct_CXX" = x; then
  4232. CXX="g++"
  4233. else
  4234. case $cross_compiling:$ac_tool_warned in
  4235. yes:)
  4236. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4237. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4238. ac_tool_warned=yes ;;
  4239. esac
  4240. CXX=$ac_ct_CXX
  4241. fi
  4242. fi
  4243. fi
  4244. fi
  4245. # Provide some information about the compiler.
  4246. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
  4247. set X $ac_compile
  4248. ac_compiler=$2
  4249. for ac_option in --version -v -V -qversion; do
  4250. { { ac_try="$ac_compiler $ac_option >&5"
  4251. case "(($ac_try" in
  4252. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4253. *) ac_try_echo=$ac_try;;
  4254. esac
  4255. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  4256. $as_echo "$ac_try_echo"; } >&5
  4257. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  4258. ac_status=$?
  4259. if test -s conftest.err; then
  4260. sed '10a\
  4261. ... rest of stderr output deleted ...
  4262. 10q' conftest.err >conftest.er1
  4263. cat conftest.er1 >&5
  4264. fi
  4265. rm -f conftest.er1 conftest.err
  4266. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4267. test $ac_status = 0; }
  4268. done
  4269. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
  4270. $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
  4271. if ${ac_cv_cxx_compiler_gnu+:} false; then :
  4272. $as_echo_n "(cached) " >&6
  4273. else
  4274. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4275. /* end confdefs.h. */
  4276. int
  4277. main ()
  4278. {
  4279. #ifndef __GNUC__
  4280. choke me
  4281. #endif
  4282. ;
  4283. return 0;
  4284. }
  4285. _ACEOF
  4286. if ac_fn_cxx_try_compile "$LINENO"; then :
  4287. ac_compiler_gnu=yes
  4288. else
  4289. ac_compiler_gnu=no
  4290. fi
  4291. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4292. ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  4293. fi
  4294. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
  4295. $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
  4296. if test $ac_compiler_gnu = yes; then
  4297. GXX=yes
  4298. else
  4299. GXX=
  4300. fi
  4301. ac_test_CXXFLAGS=${CXXFLAGS+set}
  4302. ac_save_CXXFLAGS=$CXXFLAGS
  4303. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
  4304. $as_echo_n "checking whether $CXX accepts -g... " >&6; }
  4305. if ${ac_cv_prog_cxx_g+:} false; then :
  4306. $as_echo_n "(cached) " >&6
  4307. else
  4308. ac_save_cxx_werror_flag=$ac_cxx_werror_flag
  4309. ac_cxx_werror_flag=yes
  4310. ac_cv_prog_cxx_g=no
  4311. CXXFLAGS="-g"
  4312. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4313. /* end confdefs.h. */
  4314. int
  4315. main ()
  4316. {
  4317. ;
  4318. return 0;
  4319. }
  4320. _ACEOF
  4321. if ac_fn_cxx_try_compile "$LINENO"; then :
  4322. ac_cv_prog_cxx_g=yes
  4323. else
  4324. CXXFLAGS=""
  4325. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4326. /* end confdefs.h. */
  4327. int
  4328. main ()
  4329. {
  4330. ;
  4331. return 0;
  4332. }
  4333. _ACEOF
  4334. if ac_fn_cxx_try_compile "$LINENO"; then :
  4335. else
  4336. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  4337. CXXFLAGS="-g"
  4338. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4339. /* end confdefs.h. */
  4340. int
  4341. main ()
  4342. {
  4343. ;
  4344. return 0;
  4345. }
  4346. _ACEOF
  4347. if ac_fn_cxx_try_compile "$LINENO"; then :
  4348. ac_cv_prog_cxx_g=yes
  4349. fi
  4350. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4351. fi
  4352. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4353. fi
  4354. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4355. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  4356. fi
  4357. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
  4358. $as_echo "$ac_cv_prog_cxx_g" >&6; }
  4359. if test "$ac_test_CXXFLAGS" = set; then
  4360. CXXFLAGS=$ac_save_CXXFLAGS
  4361. elif test $ac_cv_prog_cxx_g = yes; then
  4362. if test "$GXX" = yes; then
  4363. CXXFLAGS="-g -O2"
  4364. else
  4365. CXXFLAGS="-g"
  4366. fi
  4367. else
  4368. if test "$GXX" = yes; then
  4369. CXXFLAGS="-O2"
  4370. else
  4371. CXXFLAGS=
  4372. fi
  4373. fi
  4374. ac_ext=c
  4375. ac_cpp='$CPP $CPPFLAGS'
  4376. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4377. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4378. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4379. depcc="$CXX" am_compiler_list=
  4380. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  4381. $as_echo_n "checking dependency style of $depcc... " >&6; }
  4382. if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
  4383. $as_echo_n "(cached) " >&6
  4384. else
  4385. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  4386. # We make a subdir and do the tests there. Otherwise we can end up
  4387. # making bogus files that we don't know about and never remove. For
  4388. # instance it was reported that on HP-UX the gcc test will end up
  4389. # making a dummy file named 'D' -- because '-MD' means "put the output
  4390. # in D".
  4391. rm -rf conftest.dir
  4392. mkdir conftest.dir
  4393. # Copy depcomp to subdir because otherwise we won't find it if we're
  4394. # using a relative directory.
  4395. cp "$am_depcomp" conftest.dir
  4396. cd conftest.dir
  4397. # We will build objects and dependencies in a subdirectory because
  4398. # it helps to detect inapplicable dependency modes. For instance
  4399. # both Tru64's cc and ICC support -MD to output dependencies as a
  4400. # side effect of compilation, but ICC will put the dependencies in
  4401. # the current directory while Tru64 will put them in the object
  4402. # directory.
  4403. mkdir sub
  4404. am_cv_CXX_dependencies_compiler_type=none
  4405. if test "$am_compiler_list" = ""; then
  4406. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  4407. fi
  4408. am__universal=false
  4409. case " $depcc " in #(
  4410. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  4411. esac
  4412. for depmode in $am_compiler_list; do
  4413. # Setup a source with many dependencies, because some compilers
  4414. # like to wrap large dependency lists on column 80 (with \), and
  4415. # we should not choose a depcomp mode which is confused by this.
  4416. #
  4417. # We need to recreate these files for each test, as the compiler may
  4418. # overwrite some of them when testing with obscure command lines.
  4419. # This happens at least with the AIX C compiler.
  4420. : > sub/conftest.c
  4421. for i in 1 2 3 4 5 6; do
  4422. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  4423. # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
  4424. # Solaris 10 /bin/sh.
  4425. echo '/* dummy */' > sub/conftst$i.h
  4426. done
  4427. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  4428. # We check with '-c' and '-o' for the sake of the "dashmstdout"
  4429. # mode. It turns out that the SunPro C++ compiler does not properly
  4430. # handle '-M -o', and we need to detect this. Also, some Intel
  4431. # versions had trouble with output in subdirs.
  4432. am__obj=sub/conftest.${OBJEXT-o}
  4433. am__minus_obj="-o $am__obj"
  4434. case $depmode in
  4435. gcc)
  4436. # This depmode causes a compiler race in universal mode.
  4437. test "$am__universal" = false || continue
  4438. ;;
  4439. nosideeffect)
  4440. # After this tag, mechanisms are not by side-effect, so they'll
  4441. # only be used when explicitly requested.
  4442. if test "x$enable_dependency_tracking" = xyes; then
  4443. continue
  4444. else
  4445. break
  4446. fi
  4447. ;;
  4448. msvc7 | msvc7msys | msvisualcpp | msvcmsys)
  4449. # This compiler won't grok '-c -o', but also, the minuso test has
  4450. # not run yet. These depmodes are late enough in the game, and
  4451. # so weak that their functioning should not be impacted.
  4452. am__obj=conftest.${OBJEXT-o}
  4453. am__minus_obj=
  4454. ;;
  4455. none) break ;;
  4456. esac
  4457. if depmode=$depmode \
  4458. source=sub/conftest.c object=$am__obj \
  4459. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  4460. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  4461. >/dev/null 2>conftest.err &&
  4462. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  4463. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  4464. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  4465. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  4466. # icc doesn't choke on unknown options, it will just issue warnings
  4467. # or remarks (even with -Werror). So we grep stderr for any message
  4468. # that says an option was ignored or not supported.
  4469. # When given -MP, icc 7.0 and 7.1 complain thusly:
  4470. # icc: Command line warning: ignoring option '-M'; no argument required
  4471. # The diagnosis changed in icc 8.0:
  4472. # icc: Command line remark: option '-MP' not supported
  4473. if (grep 'ignoring option' conftest.err ||
  4474. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  4475. am_cv_CXX_dependencies_compiler_type=$depmode
  4476. break
  4477. fi
  4478. fi
  4479. done
  4480. cd ..
  4481. rm -rf conftest.dir
  4482. else
  4483. am_cv_CXX_dependencies_compiler_type=none
  4484. fi
  4485. fi
  4486. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
  4487. $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
  4488. CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
  4489. if
  4490. test "x$enable_dependency_tracking" != xno \
  4491. && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
  4492. am__fastdepCXX_TRUE=
  4493. am__fastdepCXX_FALSE='#'
  4494. else
  4495. am__fastdepCXX_TRUE='#'
  4496. am__fastdepCXX_FALSE=
  4497. fi
  4498. ac_ext=c
  4499. ac_cpp='$CPP $CPPFLAGS'
  4500. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4501. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4502. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4503. if test -n "$ac_tool_prefix"; then
  4504. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  4505. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  4506. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4507. $as_echo_n "checking for $ac_word... " >&6; }
  4508. if ${ac_cv_prog_CC+:} false; then :
  4509. $as_echo_n "(cached) " >&6
  4510. else
  4511. if test -n "$CC"; then
  4512. ac_cv_prog_CC="$CC" # Let the user override the test.
  4513. else
  4514. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4515. for as_dir in $PATH
  4516. do
  4517. IFS=$as_save_IFS
  4518. test -z "$as_dir" && as_dir=.
  4519. for ac_exec_ext in '' $ac_executable_extensions; do
  4520. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4521. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  4522. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4523. break 2
  4524. fi
  4525. done
  4526. done
  4527. IFS=$as_save_IFS
  4528. fi
  4529. fi
  4530. CC=$ac_cv_prog_CC
  4531. if test -n "$CC"; then
  4532. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  4533. $as_echo "$CC" >&6; }
  4534. else
  4535. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4536. $as_echo "no" >&6; }
  4537. fi
  4538. fi
  4539. if test -z "$ac_cv_prog_CC"; then
  4540. ac_ct_CC=$CC
  4541. # Extract the first word of "gcc", so it can be a program name with args.
  4542. set dummy gcc; ac_word=$2
  4543. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4544. $as_echo_n "checking for $ac_word... " >&6; }
  4545. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  4546. $as_echo_n "(cached) " >&6
  4547. else
  4548. if test -n "$ac_ct_CC"; then
  4549. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  4550. else
  4551. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4552. for as_dir in $PATH
  4553. do
  4554. IFS=$as_save_IFS
  4555. test -z "$as_dir" && as_dir=.
  4556. for ac_exec_ext in '' $ac_executable_extensions; do
  4557. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4558. ac_cv_prog_ac_ct_CC="gcc"
  4559. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4560. break 2
  4561. fi
  4562. done
  4563. done
  4564. IFS=$as_save_IFS
  4565. fi
  4566. fi
  4567. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  4568. if test -n "$ac_ct_CC"; then
  4569. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  4570. $as_echo "$ac_ct_CC" >&6; }
  4571. else
  4572. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4573. $as_echo "no" >&6; }
  4574. fi
  4575. if test "x$ac_ct_CC" = x; then
  4576. CC=""
  4577. else
  4578. case $cross_compiling:$ac_tool_warned in
  4579. yes:)
  4580. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4581. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4582. ac_tool_warned=yes ;;
  4583. esac
  4584. CC=$ac_ct_CC
  4585. fi
  4586. else
  4587. CC="$ac_cv_prog_CC"
  4588. fi
  4589. if test -z "$CC"; then
  4590. if test -n "$ac_tool_prefix"; then
  4591. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  4592. set dummy ${ac_tool_prefix}cc; ac_word=$2
  4593. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4594. $as_echo_n "checking for $ac_word... " >&6; }
  4595. if ${ac_cv_prog_CC+:} false; then :
  4596. $as_echo_n "(cached) " >&6
  4597. else
  4598. if test -n "$CC"; then
  4599. ac_cv_prog_CC="$CC" # Let the user override the test.
  4600. else
  4601. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4602. for as_dir in $PATH
  4603. do
  4604. IFS=$as_save_IFS
  4605. test -z "$as_dir" && as_dir=.
  4606. for ac_exec_ext in '' $ac_executable_extensions; do
  4607. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4608. ac_cv_prog_CC="${ac_tool_prefix}cc"
  4609. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4610. break 2
  4611. fi
  4612. done
  4613. done
  4614. IFS=$as_save_IFS
  4615. fi
  4616. fi
  4617. CC=$ac_cv_prog_CC
  4618. if test -n "$CC"; then
  4619. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  4620. $as_echo "$CC" >&6; }
  4621. else
  4622. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4623. $as_echo "no" >&6; }
  4624. fi
  4625. fi
  4626. fi
  4627. if test -z "$CC"; then
  4628. # Extract the first word of "cc", so it can be a program name with args.
  4629. set dummy cc; ac_word=$2
  4630. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4631. $as_echo_n "checking for $ac_word... " >&6; }
  4632. if ${ac_cv_prog_CC+:} false; then :
  4633. $as_echo_n "(cached) " >&6
  4634. else
  4635. if test -n "$CC"; then
  4636. ac_cv_prog_CC="$CC" # Let the user override the test.
  4637. else
  4638. ac_prog_rejected=no
  4639. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4640. for as_dir in $PATH
  4641. do
  4642. IFS=$as_save_IFS
  4643. test -z "$as_dir" && as_dir=.
  4644. for ac_exec_ext in '' $ac_executable_extensions; do
  4645. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4646. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  4647. ac_prog_rejected=yes
  4648. continue
  4649. fi
  4650. ac_cv_prog_CC="cc"
  4651. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4652. break 2
  4653. fi
  4654. done
  4655. done
  4656. IFS=$as_save_IFS
  4657. if test $ac_prog_rejected = yes; then
  4658. # We found a bogon in the path, so make sure we never use it.
  4659. set dummy $ac_cv_prog_CC
  4660. shift
  4661. if test $# != 0; then
  4662. # We chose a different compiler from the bogus one.
  4663. # However, it has the same basename, so the bogon will be chosen
  4664. # first if we set CC to just the basename; use the full file name.
  4665. shift
  4666. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  4667. fi
  4668. fi
  4669. fi
  4670. fi
  4671. CC=$ac_cv_prog_CC
  4672. if test -n "$CC"; then
  4673. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  4674. $as_echo "$CC" >&6; }
  4675. else
  4676. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4677. $as_echo "no" >&6; }
  4678. fi
  4679. fi
  4680. if test -z "$CC"; then
  4681. if test -n "$ac_tool_prefix"; then
  4682. for ac_prog in cl.exe
  4683. do
  4684. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  4685. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  4686. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4687. $as_echo_n "checking for $ac_word... " >&6; }
  4688. if ${ac_cv_prog_CC+:} false; then :
  4689. $as_echo_n "(cached) " >&6
  4690. else
  4691. if test -n "$CC"; then
  4692. ac_cv_prog_CC="$CC" # Let the user override the test.
  4693. else
  4694. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4695. for as_dir in $PATH
  4696. do
  4697. IFS=$as_save_IFS
  4698. test -z "$as_dir" && as_dir=.
  4699. for ac_exec_ext in '' $ac_executable_extensions; do
  4700. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4701. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  4702. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4703. break 2
  4704. fi
  4705. done
  4706. done
  4707. IFS=$as_save_IFS
  4708. fi
  4709. fi
  4710. CC=$ac_cv_prog_CC
  4711. if test -n "$CC"; then
  4712. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  4713. $as_echo "$CC" >&6; }
  4714. else
  4715. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4716. $as_echo "no" >&6; }
  4717. fi
  4718. test -n "$CC" && break
  4719. done
  4720. fi
  4721. if test -z "$CC"; then
  4722. ac_ct_CC=$CC
  4723. for ac_prog in cl.exe
  4724. do
  4725. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4726. set dummy $ac_prog; ac_word=$2
  4727. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4728. $as_echo_n "checking for $ac_word... " >&6; }
  4729. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  4730. $as_echo_n "(cached) " >&6
  4731. else
  4732. if test -n "$ac_ct_CC"; then
  4733. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  4734. else
  4735. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4736. for as_dir in $PATH
  4737. do
  4738. IFS=$as_save_IFS
  4739. test -z "$as_dir" && as_dir=.
  4740. for ac_exec_ext in '' $ac_executable_extensions; do
  4741. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4742. ac_cv_prog_ac_ct_CC="$ac_prog"
  4743. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4744. break 2
  4745. fi
  4746. done
  4747. done
  4748. IFS=$as_save_IFS
  4749. fi
  4750. fi
  4751. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  4752. if test -n "$ac_ct_CC"; then
  4753. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  4754. $as_echo "$ac_ct_CC" >&6; }
  4755. else
  4756. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4757. $as_echo "no" >&6; }
  4758. fi
  4759. test -n "$ac_ct_CC" && break
  4760. done
  4761. if test "x$ac_ct_CC" = x; then
  4762. CC=""
  4763. else
  4764. case $cross_compiling:$ac_tool_warned in
  4765. yes:)
  4766. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4767. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4768. ac_tool_warned=yes ;;
  4769. esac
  4770. CC=$ac_ct_CC
  4771. fi
  4772. fi
  4773. fi
  4774. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  4775. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  4776. as_fn_error $? "no acceptable C compiler found in \$PATH
  4777. See \`config.log' for more details" "$LINENO" 5; }
  4778. # Provide some information about the compiler.
  4779. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  4780. set X $ac_compile
  4781. ac_compiler=$2
  4782. for ac_option in --version -v -V -qversion; do
  4783. { { ac_try="$ac_compiler $ac_option >&5"
  4784. case "(($ac_try" in
  4785. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4786. *) ac_try_echo=$ac_try;;
  4787. esac
  4788. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  4789. $as_echo "$ac_try_echo"; } >&5
  4790. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  4791. ac_status=$?
  4792. if test -s conftest.err; then
  4793. sed '10a\
  4794. ... rest of stderr output deleted ...
  4795. 10q' conftest.err >conftest.er1
  4796. cat conftest.er1 >&5
  4797. fi
  4798. rm -f conftest.er1 conftest.err
  4799. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4800. test $ac_status = 0; }
  4801. done
  4802. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  4803. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  4804. if ${ac_cv_c_compiler_gnu+:} false; then :
  4805. $as_echo_n "(cached) " >&6
  4806. else
  4807. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4808. /* end confdefs.h. */
  4809. int
  4810. main ()
  4811. {
  4812. #ifndef __GNUC__
  4813. choke me
  4814. #endif
  4815. ;
  4816. return 0;
  4817. }
  4818. _ACEOF
  4819. if ac_fn_c_try_compile "$LINENO"; then :
  4820. ac_compiler_gnu=yes
  4821. else
  4822. ac_compiler_gnu=no
  4823. fi
  4824. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4825. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  4826. fi
  4827. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  4828. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  4829. if test $ac_compiler_gnu = yes; then
  4830. GCC=yes
  4831. else
  4832. GCC=
  4833. fi
  4834. ac_test_CFLAGS=${CFLAGS+set}
  4835. ac_save_CFLAGS=$CFLAGS
  4836. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  4837. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  4838. if ${ac_cv_prog_cc_g+:} false; then :
  4839. $as_echo_n "(cached) " >&6
  4840. else
  4841. ac_save_c_werror_flag=$ac_c_werror_flag
  4842. ac_c_werror_flag=yes
  4843. ac_cv_prog_cc_g=no
  4844. CFLAGS="-g"
  4845. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4846. /* end confdefs.h. */
  4847. int
  4848. main ()
  4849. {
  4850. ;
  4851. return 0;
  4852. }
  4853. _ACEOF
  4854. if ac_fn_c_try_compile "$LINENO"; then :
  4855. ac_cv_prog_cc_g=yes
  4856. else
  4857. CFLAGS=""
  4858. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4859. /* end confdefs.h. */
  4860. int
  4861. main ()
  4862. {
  4863. ;
  4864. return 0;
  4865. }
  4866. _ACEOF
  4867. if ac_fn_c_try_compile "$LINENO"; then :
  4868. else
  4869. ac_c_werror_flag=$ac_save_c_werror_flag
  4870. CFLAGS="-g"
  4871. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4872. /* end confdefs.h. */
  4873. int
  4874. main ()
  4875. {
  4876. ;
  4877. return 0;
  4878. }
  4879. _ACEOF
  4880. if ac_fn_c_try_compile "$LINENO"; then :
  4881. ac_cv_prog_cc_g=yes
  4882. fi
  4883. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4884. fi
  4885. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4886. fi
  4887. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4888. ac_c_werror_flag=$ac_save_c_werror_flag
  4889. fi
  4890. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  4891. $as_echo "$ac_cv_prog_cc_g" >&6; }
  4892. if test "$ac_test_CFLAGS" = set; then
  4893. CFLAGS=$ac_save_CFLAGS
  4894. elif test $ac_cv_prog_cc_g = yes; then
  4895. if test "$GCC" = yes; then
  4896. CFLAGS="-g -O2"
  4897. else
  4898. CFLAGS="-g"
  4899. fi
  4900. else
  4901. if test "$GCC" = yes; then
  4902. CFLAGS="-O2"
  4903. else
  4904. CFLAGS=
  4905. fi
  4906. fi
  4907. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  4908. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  4909. if ${ac_cv_prog_cc_c89+:} false; then :
  4910. $as_echo_n "(cached) " >&6
  4911. else
  4912. ac_cv_prog_cc_c89=no
  4913. ac_save_CC=$CC
  4914. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4915. /* end confdefs.h. */
  4916. #include <stdarg.h>
  4917. #include <stdio.h>
  4918. struct stat;
  4919. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  4920. struct buf { int x; };
  4921. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  4922. static char *e (p, i)
  4923. char **p;
  4924. int i;
  4925. {
  4926. return p[i];
  4927. }
  4928. static char *f (char * (*g) (char **, int), char **p, ...)
  4929. {
  4930. char *s;
  4931. va_list v;
  4932. va_start (v,p);
  4933. s = g (p, va_arg (v,int));
  4934. va_end (v);
  4935. return s;
  4936. }
  4937. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  4938. function prototypes and stuff, but not '\xHH' hex character constants.
  4939. These don't provoke an error unfortunately, instead are silently treated
  4940. as 'x'. The following induces an error, until -std is added to get
  4941. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  4942. array size at least. It's necessary to write '\x00'==0 to get something
  4943. that's true only with -std. */
  4944. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  4945. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  4946. inside strings and character constants. */
  4947. #define FOO(x) 'x'
  4948. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  4949. int test (int i, double x);
  4950. struct s1 {int (*f) (int a);};
  4951. struct s2 {int (*f) (double a);};
  4952. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  4953. int argc;
  4954. char **argv;
  4955. int
  4956. main ()
  4957. {
  4958. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  4959. ;
  4960. return 0;
  4961. }
  4962. _ACEOF
  4963. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  4964. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  4965. do
  4966. CC="$ac_save_CC $ac_arg"
  4967. if ac_fn_c_try_compile "$LINENO"; then :
  4968. ac_cv_prog_cc_c89=$ac_arg
  4969. fi
  4970. rm -f core conftest.err conftest.$ac_objext
  4971. test "x$ac_cv_prog_cc_c89" != "xno" && break
  4972. done
  4973. rm -f conftest.$ac_ext
  4974. CC=$ac_save_CC
  4975. fi
  4976. # AC_CACHE_VAL
  4977. case "x$ac_cv_prog_cc_c89" in
  4978. x)
  4979. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  4980. $as_echo "none needed" >&6; } ;;
  4981. xno)
  4982. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  4983. $as_echo "unsupported" >&6; } ;;
  4984. *)
  4985. CC="$CC $ac_cv_prog_cc_c89"
  4986. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  4987. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  4988. esac
  4989. if test "x$ac_cv_prog_cc_c89" != xno; then :
  4990. fi
  4991. ac_ext=c
  4992. ac_cpp='$CPP $CPPFLAGS'
  4993. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4994. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4995. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4996. ac_ext=c
  4997. ac_cpp='$CPP $CPPFLAGS'
  4998. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4999. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5000. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5001. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
  5002. $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
  5003. if ${am_cv_prog_cc_c_o+:} false; then :
  5004. $as_echo_n "(cached) " >&6
  5005. else
  5006. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5007. /* end confdefs.h. */
  5008. int
  5009. main ()
  5010. {
  5011. ;
  5012. return 0;
  5013. }
  5014. _ACEOF
  5015. # Make sure it works both with $CC and with simple cc.
  5016. # Following AC_PROG_CC_C_O, we do the test twice because some
  5017. # compilers refuse to overwrite an existing .o file with -o,
  5018. # though they will create one.
  5019. am_cv_prog_cc_c_o=yes
  5020. for am_i in 1 2; do
  5021. if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
  5022. ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
  5023. ac_status=$?
  5024. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5025. (exit $ac_status); } \
  5026. && test -f conftest2.$ac_objext; then
  5027. : OK
  5028. else
  5029. am_cv_prog_cc_c_o=no
  5030. break
  5031. fi
  5032. done
  5033. rm -f core conftest*
  5034. unset am_i
  5035. fi
  5036. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
  5037. $as_echo "$am_cv_prog_cc_c_o" >&6; }
  5038. if test "$am_cv_prog_cc_c_o" != yes; then
  5039. # Losing compiler, so override with the script.
  5040. # FIXME: It is wrong to rewrite CC.
  5041. # But if we don't then we get into trouble of one sort or another.
  5042. # A longer-term fix would be to have automake use am__CC in this case,
  5043. # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
  5044. CC="$am_aux_dir/compile $CC"
  5045. fi
  5046. ac_ext=c
  5047. ac_cpp='$CPP $CPPFLAGS'
  5048. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5049. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5050. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5051. depcc="$CC" am_compiler_list=
  5052. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  5053. $as_echo_n "checking dependency style of $depcc... " >&6; }
  5054. if ${am_cv_CC_dependencies_compiler_type+:} false; then :
  5055. $as_echo_n "(cached) " >&6
  5056. else
  5057. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  5058. # We make a subdir and do the tests there. Otherwise we can end up
  5059. # making bogus files that we don't know about and never remove. For
  5060. # instance it was reported that on HP-UX the gcc test will end up
  5061. # making a dummy file named 'D' -- because '-MD' means "put the output
  5062. # in D".
  5063. rm -rf conftest.dir
  5064. mkdir conftest.dir
  5065. # Copy depcomp to subdir because otherwise we won't find it if we're
  5066. # using a relative directory.
  5067. cp "$am_depcomp" conftest.dir
  5068. cd conftest.dir
  5069. # We will build objects and dependencies in a subdirectory because
  5070. # it helps to detect inapplicable dependency modes. For instance
  5071. # both Tru64's cc and ICC support -MD to output dependencies as a
  5072. # side effect of compilation, but ICC will put the dependencies in
  5073. # the current directory while Tru64 will put them in the object
  5074. # directory.
  5075. mkdir sub
  5076. am_cv_CC_dependencies_compiler_type=none
  5077. if test "$am_compiler_list" = ""; then
  5078. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  5079. fi
  5080. am__universal=false
  5081. case " $depcc " in #(
  5082. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  5083. esac
  5084. for depmode in $am_compiler_list; do
  5085. # Setup a source with many dependencies, because some compilers
  5086. # like to wrap large dependency lists on column 80 (with \), and
  5087. # we should not choose a depcomp mode which is confused by this.
  5088. #
  5089. # We need to recreate these files for each test, as the compiler may
  5090. # overwrite some of them when testing with obscure command lines.
  5091. # This happens at least with the AIX C compiler.
  5092. : > sub/conftest.c
  5093. for i in 1 2 3 4 5 6; do
  5094. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  5095. # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
  5096. # Solaris 10 /bin/sh.
  5097. echo '/* dummy */' > sub/conftst$i.h
  5098. done
  5099. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  5100. # We check with '-c' and '-o' for the sake of the "dashmstdout"
  5101. # mode. It turns out that the SunPro C++ compiler does not properly
  5102. # handle '-M -o', and we need to detect this. Also, some Intel
  5103. # versions had trouble with output in subdirs.
  5104. am__obj=sub/conftest.${OBJEXT-o}
  5105. am__minus_obj="-o $am__obj"
  5106. case $depmode in
  5107. gcc)
  5108. # This depmode causes a compiler race in universal mode.
  5109. test "$am__universal" = false || continue
  5110. ;;
  5111. nosideeffect)
  5112. # After this tag, mechanisms are not by side-effect, so they'll
  5113. # only be used when explicitly requested.
  5114. if test "x$enable_dependency_tracking" = xyes; then
  5115. continue
  5116. else
  5117. break
  5118. fi
  5119. ;;
  5120. msvc7 | msvc7msys | msvisualcpp | msvcmsys)
  5121. # This compiler won't grok '-c -o', but also, the minuso test has
  5122. # not run yet. These depmodes are late enough in the game, and
  5123. # so weak that their functioning should not be impacted.
  5124. am__obj=conftest.${OBJEXT-o}
  5125. am__minus_obj=
  5126. ;;
  5127. none) break ;;
  5128. esac
  5129. if depmode=$depmode \
  5130. source=sub/conftest.c object=$am__obj \
  5131. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  5132. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  5133. >/dev/null 2>conftest.err &&
  5134. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  5135. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  5136. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  5137. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  5138. # icc doesn't choke on unknown options, it will just issue warnings
  5139. # or remarks (even with -Werror). So we grep stderr for any message
  5140. # that says an option was ignored or not supported.
  5141. # When given -MP, icc 7.0 and 7.1 complain thusly:
  5142. # icc: Command line warning: ignoring option '-M'; no argument required
  5143. # The diagnosis changed in icc 8.0:
  5144. # icc: Command line remark: option '-MP' not supported
  5145. if (grep 'ignoring option' conftest.err ||
  5146. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  5147. am_cv_CC_dependencies_compiler_type=$depmode
  5148. break
  5149. fi
  5150. fi
  5151. done
  5152. cd ..
  5153. rm -rf conftest.dir
  5154. else
  5155. am_cv_CC_dependencies_compiler_type=none
  5156. fi
  5157. fi
  5158. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
  5159. $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
  5160. CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  5161. if
  5162. test "x$enable_dependency_tracking" != xno \
  5163. && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  5164. am__fastdepCC_TRUE=
  5165. am__fastdepCC_FALSE='#'
  5166. else
  5167. am__fastdepCC_TRUE='#'
  5168. am__fastdepCC_FALSE=
  5169. fi
  5170. ac_ext=c
  5171. ac_cpp='$CPP $CPPFLAGS'
  5172. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5173. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5174. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5175. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
  5176. $as_echo_n "checking how to run the C preprocessor... " >&6; }
  5177. # On Suns, sometimes $CPP names a directory.
  5178. if test -n "$CPP" && test -d "$CPP"; then
  5179. CPP=
  5180. fi
  5181. if test -z "$CPP"; then
  5182. if ${ac_cv_prog_CPP+:} false; then :
  5183. $as_echo_n "(cached) " >&6
  5184. else
  5185. # Double quotes because CPP needs to be expanded
  5186. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  5187. do
  5188. ac_preproc_ok=false
  5189. for ac_c_preproc_warn_flag in '' yes
  5190. do
  5191. # Use a header file that comes with gcc, so configuring glibc
  5192. # with a fresh cross-compiler works.
  5193. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  5194. # <limits.h> exists even on freestanding compilers.
  5195. # On the NeXT, cc -E runs the code through the compiler's parser,
  5196. # not just through cpp. "Syntax error" is here to catch this case.
  5197. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5198. /* end confdefs.h. */
  5199. #ifdef __STDC__
  5200. # include <limits.h>
  5201. #else
  5202. # include <assert.h>
  5203. #endif
  5204. Syntax error
  5205. _ACEOF
  5206. if ac_fn_c_try_cpp "$LINENO"; then :
  5207. else
  5208. # Broken: fails on valid input.
  5209. continue
  5210. fi
  5211. rm -f conftest.err conftest.i conftest.$ac_ext
  5212. # OK, works on sane cases. Now check whether nonexistent headers
  5213. # can be detected and how.
  5214. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5215. /* end confdefs.h. */
  5216. #include <ac_nonexistent.h>
  5217. _ACEOF
  5218. if ac_fn_c_try_cpp "$LINENO"; then :
  5219. # Broken: success on invalid input.
  5220. continue
  5221. else
  5222. # Passes both tests.
  5223. ac_preproc_ok=:
  5224. break
  5225. fi
  5226. rm -f conftest.err conftest.i conftest.$ac_ext
  5227. done
  5228. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  5229. rm -f conftest.i conftest.err conftest.$ac_ext
  5230. if $ac_preproc_ok; then :
  5231. break
  5232. fi
  5233. done
  5234. ac_cv_prog_CPP=$CPP
  5235. fi
  5236. CPP=$ac_cv_prog_CPP
  5237. else
  5238. ac_cv_prog_CPP=$CPP
  5239. fi
  5240. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
  5241. $as_echo "$CPP" >&6; }
  5242. ac_preproc_ok=false
  5243. for ac_c_preproc_warn_flag in '' yes
  5244. do
  5245. # Use a header file that comes with gcc, so configuring glibc
  5246. # with a fresh cross-compiler works.
  5247. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  5248. # <limits.h> exists even on freestanding compilers.
  5249. # On the NeXT, cc -E runs the code through the compiler's parser,
  5250. # not just through cpp. "Syntax error" is here to catch this case.
  5251. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5252. /* end confdefs.h. */
  5253. #ifdef __STDC__
  5254. # include <limits.h>
  5255. #else
  5256. # include <assert.h>
  5257. #endif
  5258. Syntax error
  5259. _ACEOF
  5260. if ac_fn_c_try_cpp "$LINENO"; then :
  5261. else
  5262. # Broken: fails on valid input.
  5263. continue
  5264. fi
  5265. rm -f conftest.err conftest.i conftest.$ac_ext
  5266. # OK, works on sane cases. Now check whether nonexistent headers
  5267. # can be detected and how.
  5268. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5269. /* end confdefs.h. */
  5270. #include <ac_nonexistent.h>
  5271. _ACEOF
  5272. if ac_fn_c_try_cpp "$LINENO"; then :
  5273. # Broken: success on invalid input.
  5274. continue
  5275. else
  5276. # Passes both tests.
  5277. ac_preproc_ok=:
  5278. break
  5279. fi
  5280. rm -f conftest.err conftest.i conftest.$ac_ext
  5281. done
  5282. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  5283. rm -f conftest.i conftest.err conftest.$ac_ext
  5284. if $ac_preproc_ok; then :
  5285. else
  5286. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  5287. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  5288. as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
  5289. See \`config.log' for more details" "$LINENO" 5; }
  5290. fi
  5291. ac_ext=c
  5292. ac_cpp='$CPP $CPPFLAGS'
  5293. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5294. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5295. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5296. if test "$GCC" = yes; then
  5297. GCC_TRUE=
  5298. GCC_FALSE='#'
  5299. else
  5300. GCC_TRUE='#'
  5301. GCC_FALSE=
  5302. fi
  5303. # let the Makefile know if we're gcc
  5304. # shrug: autogen.sh suddenly needs this for some reason
  5305. # Check if we have an objcopy installed that supports -W
  5306. if test -n "$ac_tool_prefix"; then
  5307. # Extract the first word of "${ac_tool_prefix}objcopy", so it can be a program name with args.
  5308. set dummy ${ac_tool_prefix}objcopy; ac_word=$2
  5309. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5310. $as_echo_n "checking for $ac_word... " >&6; }
  5311. if ${ac_cv_prog_OBJCOPY+:} false; then :
  5312. $as_echo_n "(cached) " >&6
  5313. else
  5314. if test -n "$OBJCOPY"; then
  5315. ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
  5316. else
  5317. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5318. for as_dir in $PATH
  5319. do
  5320. IFS=$as_save_IFS
  5321. test -z "$as_dir" && as_dir=.
  5322. for ac_exec_ext in '' $ac_executable_extensions; do
  5323. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5324. ac_cv_prog_OBJCOPY="${ac_tool_prefix}objcopy"
  5325. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5326. break 2
  5327. fi
  5328. done
  5329. done
  5330. IFS=$as_save_IFS
  5331. fi
  5332. fi
  5333. OBJCOPY=$ac_cv_prog_OBJCOPY
  5334. if test -n "$OBJCOPY"; then
  5335. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
  5336. $as_echo "$OBJCOPY" >&6; }
  5337. else
  5338. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5339. $as_echo "no" >&6; }
  5340. fi
  5341. fi
  5342. if test -z "$ac_cv_prog_OBJCOPY"; then
  5343. ac_ct_OBJCOPY=$OBJCOPY
  5344. # Extract the first word of "objcopy", so it can be a program name with args.
  5345. set dummy objcopy; ac_word=$2
  5346. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5347. $as_echo_n "checking for $ac_word... " >&6; }
  5348. if ${ac_cv_prog_ac_ct_OBJCOPY+:} false; then :
  5349. $as_echo_n "(cached) " >&6
  5350. else
  5351. if test -n "$ac_ct_OBJCOPY"; then
  5352. ac_cv_prog_ac_ct_OBJCOPY="$ac_ct_OBJCOPY" # Let the user override the test.
  5353. else
  5354. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5355. for as_dir in $PATH
  5356. do
  5357. IFS=$as_save_IFS
  5358. test -z "$as_dir" && as_dir=.
  5359. for ac_exec_ext in '' $ac_executable_extensions; do
  5360. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5361. ac_cv_prog_ac_ct_OBJCOPY="objcopy"
  5362. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5363. break 2
  5364. fi
  5365. done
  5366. done
  5367. IFS=$as_save_IFS
  5368. fi
  5369. fi
  5370. ac_ct_OBJCOPY=$ac_cv_prog_ac_ct_OBJCOPY
  5371. if test -n "$ac_ct_OBJCOPY"; then
  5372. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJCOPY" >&5
  5373. $as_echo "$ac_ct_OBJCOPY" >&6; }
  5374. else
  5375. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5376. $as_echo "no" >&6; }
  5377. fi
  5378. if test "x$ac_ct_OBJCOPY" = x; then
  5379. OBJCOPY=""
  5380. else
  5381. case $cross_compiling:$ac_tool_warned in
  5382. yes:)
  5383. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5384. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5385. ac_tool_warned=yes ;;
  5386. esac
  5387. OBJCOPY=$ac_ct_OBJCOPY
  5388. fi
  5389. else
  5390. OBJCOPY="$ac_cv_prog_OBJCOPY"
  5391. fi
  5392. if test -n "$OBJCOPY"; then :
  5393. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $OBJCOPY supports -W" >&5
  5394. $as_echo_n "checking if $OBJCOPY supports -W... " >&6; }
  5395. if ${gpt_cv_objcopy_weaken+:} false; then :
  5396. $as_echo_n "(cached) " >&6
  5397. else
  5398. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5399. /* end confdefs.h. */
  5400. void foo() {} int main() {return 0;}
  5401. int
  5402. main ()
  5403. {
  5404. ;
  5405. return 0;
  5406. }
  5407. _ACEOF
  5408. if ac_fn_c_try_link "$LINENO"; then :
  5409. if "$OBJCOPY" -W foo conftest$ac_exeext /dev/null; then :
  5410. gpt_cv_objcopy_weaken=yes
  5411. else
  5412. gpt_cv_objcopy_weaken=no
  5413. fi
  5414. else
  5415. gpt_cv_objcopy_weaken=no
  5416. fi
  5417. rm -f core conftest.err conftest.$ac_objext \
  5418. conftest$ac_exeext conftest.$ac_ext
  5419. fi
  5420. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gpt_cv_objcopy_weaken" >&5
  5421. $as_echo "$gpt_cv_objcopy_weaken" >&6; }
  5422. else
  5423. gpt_cv_objcopy_weaken=no
  5424. fi
  5425. if test $gpt_cv_objcopy_weaken = yes; then
  5426. HAVE_OBJCOPY_WEAKEN_TRUE=
  5427. HAVE_OBJCOPY_WEAKEN_FALSE='#'
  5428. else
  5429. HAVE_OBJCOPY_WEAKEN_TRUE='#'
  5430. HAVE_OBJCOPY_WEAKEN_FALSE=
  5431. fi
  5432. case `pwd` in
  5433. *\ * | *\ *)
  5434. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
  5435. $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
  5436. esac
  5437. macro_version='2.4.6'
  5438. macro_revision='2.4.6'
  5439. ltmain=$ac_aux_dir/ltmain.sh
  5440. # Backslashify metacharacters that are still active within
  5441. # double-quoted strings.
  5442. sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
  5443. # Same as above, but do not quote variable references.
  5444. double_quote_subst='s/\(["`\\]\)/\\\1/g'
  5445. # Sed substitution to delay expansion of an escaped shell variable in a
  5446. # double_quote_subst'ed string.
  5447. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  5448. # Sed substitution to delay expansion of an escaped single quote.
  5449. delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
  5450. # Sed substitution to avoid accidental globbing in evaled expressions
  5451. no_glob_subst='s/\*/\\\*/g'
  5452. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  5453. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
  5454. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
  5455. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
  5456. $as_echo_n "checking how to print strings... " >&6; }
  5457. # Test print first, because it will be a builtin if present.
  5458. if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
  5459. test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
  5460. ECHO='print -r --'
  5461. elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
  5462. ECHO='printf %s\n'
  5463. else
  5464. # Use this function as a fallback that always works.
  5465. func_fallback_echo ()
  5466. {
  5467. eval 'cat <<_LTECHO_EOF
  5468. $1
  5469. _LTECHO_EOF'
  5470. }
  5471. ECHO='func_fallback_echo'
  5472. fi
  5473. # func_echo_all arg...
  5474. # Invoke $ECHO with all args, space-separated.
  5475. func_echo_all ()
  5476. {
  5477. $ECHO ""
  5478. }
  5479. case $ECHO in
  5480. printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
  5481. $as_echo "printf" >&6; } ;;
  5482. print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
  5483. $as_echo "print -r" >&6; } ;;
  5484. *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
  5485. $as_echo "cat" >&6; } ;;
  5486. esac
  5487. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
  5488. $as_echo_n "checking for a sed that does not truncate output... " >&6; }
  5489. if ${ac_cv_path_SED+:} false; then :
  5490. $as_echo_n "(cached) " >&6
  5491. else
  5492. ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  5493. for ac_i in 1 2 3 4 5 6 7; do
  5494. ac_script="$ac_script$as_nl$ac_script"
  5495. done
  5496. echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
  5497. { ac_script=; unset ac_script;}
  5498. if test -z "$SED"; then
  5499. ac_path_SED_found=false
  5500. # Loop through the user's path and test for each of PROGNAME-LIST
  5501. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5502. for as_dir in $PATH
  5503. do
  5504. IFS=$as_save_IFS
  5505. test -z "$as_dir" && as_dir=.
  5506. for ac_prog in sed gsed; do
  5507. for ac_exec_ext in '' $ac_executable_extensions; do
  5508. ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
  5509. as_fn_executable_p "$ac_path_SED" || continue
  5510. # Check for GNU ac_path_SED and select it if it is found.
  5511. # Check for GNU $ac_path_SED
  5512. case `"$ac_path_SED" --version 2>&1` in
  5513. *GNU*)
  5514. ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  5515. *)
  5516. ac_count=0
  5517. $as_echo_n 0123456789 >"conftest.in"
  5518. while :
  5519. do
  5520. cat "conftest.in" "conftest.in" >"conftest.tmp"
  5521. mv "conftest.tmp" "conftest.in"
  5522. cp "conftest.in" "conftest.nl"
  5523. $as_echo '' >> "conftest.nl"
  5524. "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  5525. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  5526. as_fn_arith $ac_count + 1 && ac_count=$as_val
  5527. if test $ac_count -gt ${ac_path_SED_max-0}; then
  5528. # Best one so far, save it but keep looking for a better one
  5529. ac_cv_path_SED="$ac_path_SED"
  5530. ac_path_SED_max=$ac_count
  5531. fi
  5532. # 10*(2^10) chars as input seems more than enough
  5533. test $ac_count -gt 10 && break
  5534. done
  5535. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  5536. esac
  5537. $ac_path_SED_found && break 3
  5538. done
  5539. done
  5540. done
  5541. IFS=$as_save_IFS
  5542. if test -z "$ac_cv_path_SED"; then
  5543. as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
  5544. fi
  5545. else
  5546. ac_cv_path_SED=$SED
  5547. fi
  5548. fi
  5549. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
  5550. $as_echo "$ac_cv_path_SED" >&6; }
  5551. SED="$ac_cv_path_SED"
  5552. rm -f conftest.sed
  5553. test -z "$SED" && SED=sed
  5554. Xsed="$SED -e 1s/^X//"
  5555. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
  5556. $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
  5557. if ${ac_cv_path_GREP+:} false; then :
  5558. $as_echo_n "(cached) " >&6
  5559. else
  5560. if test -z "$GREP"; then
  5561. ac_path_GREP_found=false
  5562. # Loop through the user's path and test for each of PROGNAME-LIST
  5563. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5564. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  5565. do
  5566. IFS=$as_save_IFS
  5567. test -z "$as_dir" && as_dir=.
  5568. for ac_prog in grep ggrep; do
  5569. for ac_exec_ext in '' $ac_executable_extensions; do
  5570. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  5571. as_fn_executable_p "$ac_path_GREP" || continue
  5572. # Check for GNU ac_path_GREP and select it if it is found.
  5573. # Check for GNU $ac_path_GREP
  5574. case `"$ac_path_GREP" --version 2>&1` in
  5575. *GNU*)
  5576. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  5577. *)
  5578. ac_count=0
  5579. $as_echo_n 0123456789 >"conftest.in"
  5580. while :
  5581. do
  5582. cat "conftest.in" "conftest.in" >"conftest.tmp"
  5583. mv "conftest.tmp" "conftest.in"
  5584. cp "conftest.in" "conftest.nl"
  5585. $as_echo 'GREP' >> "conftest.nl"
  5586. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  5587. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  5588. as_fn_arith $ac_count + 1 && ac_count=$as_val
  5589. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  5590. # Best one so far, save it but keep looking for a better one
  5591. ac_cv_path_GREP="$ac_path_GREP"
  5592. ac_path_GREP_max=$ac_count
  5593. fi
  5594. # 10*(2^10) chars as input seems more than enough
  5595. test $ac_count -gt 10 && break
  5596. done
  5597. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  5598. esac
  5599. $ac_path_GREP_found && break 3
  5600. done
  5601. done
  5602. done
  5603. IFS=$as_save_IFS
  5604. if test -z "$ac_cv_path_GREP"; then
  5605. as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  5606. fi
  5607. else
  5608. ac_cv_path_GREP=$GREP
  5609. fi
  5610. fi
  5611. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
  5612. $as_echo "$ac_cv_path_GREP" >&6; }
  5613. GREP="$ac_cv_path_GREP"
  5614. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  5615. $as_echo_n "checking for egrep... " >&6; }
  5616. if ${ac_cv_path_EGREP+:} false; then :
  5617. $as_echo_n "(cached) " >&6
  5618. else
  5619. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  5620. then ac_cv_path_EGREP="$GREP -E"
  5621. else
  5622. if test -z "$EGREP"; then
  5623. ac_path_EGREP_found=false
  5624. # Loop through the user's path and test for each of PROGNAME-LIST
  5625. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5626. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  5627. do
  5628. IFS=$as_save_IFS
  5629. test -z "$as_dir" && as_dir=.
  5630. for ac_prog in egrep; do
  5631. for ac_exec_ext in '' $ac_executable_extensions; do
  5632. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  5633. as_fn_executable_p "$ac_path_EGREP" || continue
  5634. # Check for GNU ac_path_EGREP and select it if it is found.
  5635. # Check for GNU $ac_path_EGREP
  5636. case `"$ac_path_EGREP" --version 2>&1` in
  5637. *GNU*)
  5638. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  5639. *)
  5640. ac_count=0
  5641. $as_echo_n 0123456789 >"conftest.in"
  5642. while :
  5643. do
  5644. cat "conftest.in" "conftest.in" >"conftest.tmp"
  5645. mv "conftest.tmp" "conftest.in"
  5646. cp "conftest.in" "conftest.nl"
  5647. $as_echo 'EGREP' >> "conftest.nl"
  5648. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  5649. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  5650. as_fn_arith $ac_count + 1 && ac_count=$as_val
  5651. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  5652. # Best one so far, save it but keep looking for a better one
  5653. ac_cv_path_EGREP="$ac_path_EGREP"
  5654. ac_path_EGREP_max=$ac_count
  5655. fi
  5656. # 10*(2^10) chars as input seems more than enough
  5657. test $ac_count -gt 10 && break
  5658. done
  5659. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  5660. esac
  5661. $ac_path_EGREP_found && break 3
  5662. done
  5663. done
  5664. done
  5665. IFS=$as_save_IFS
  5666. if test -z "$ac_cv_path_EGREP"; then
  5667. as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  5668. fi
  5669. else
  5670. ac_cv_path_EGREP=$EGREP
  5671. fi
  5672. fi
  5673. fi
  5674. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  5675. $as_echo "$ac_cv_path_EGREP" >&6; }
  5676. EGREP="$ac_cv_path_EGREP"
  5677. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
  5678. $as_echo_n "checking for fgrep... " >&6; }
  5679. if ${ac_cv_path_FGREP+:} false; then :
  5680. $as_echo_n "(cached) " >&6
  5681. else
  5682. if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
  5683. then ac_cv_path_FGREP="$GREP -F"
  5684. else
  5685. if test -z "$FGREP"; then
  5686. ac_path_FGREP_found=false
  5687. # Loop through the user's path and test for each of PROGNAME-LIST
  5688. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5689. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  5690. do
  5691. IFS=$as_save_IFS
  5692. test -z "$as_dir" && as_dir=.
  5693. for ac_prog in fgrep; do
  5694. for ac_exec_ext in '' $ac_executable_extensions; do
  5695. ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
  5696. as_fn_executable_p "$ac_path_FGREP" || continue
  5697. # Check for GNU ac_path_FGREP and select it if it is found.
  5698. # Check for GNU $ac_path_FGREP
  5699. case `"$ac_path_FGREP" --version 2>&1` in
  5700. *GNU*)
  5701. ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
  5702. *)
  5703. ac_count=0
  5704. $as_echo_n 0123456789 >"conftest.in"
  5705. while :
  5706. do
  5707. cat "conftest.in" "conftest.in" >"conftest.tmp"
  5708. mv "conftest.tmp" "conftest.in"
  5709. cp "conftest.in" "conftest.nl"
  5710. $as_echo 'FGREP' >> "conftest.nl"
  5711. "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
  5712. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  5713. as_fn_arith $ac_count + 1 && ac_count=$as_val
  5714. if test $ac_count -gt ${ac_path_FGREP_max-0}; then
  5715. # Best one so far, save it but keep looking for a better one
  5716. ac_cv_path_FGREP="$ac_path_FGREP"
  5717. ac_path_FGREP_max=$ac_count
  5718. fi
  5719. # 10*(2^10) chars as input seems more than enough
  5720. test $ac_count -gt 10 && break
  5721. done
  5722. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  5723. esac
  5724. $ac_path_FGREP_found && break 3
  5725. done
  5726. done
  5727. done
  5728. IFS=$as_save_IFS
  5729. if test -z "$ac_cv_path_FGREP"; then
  5730. as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  5731. fi
  5732. else
  5733. ac_cv_path_FGREP=$FGREP
  5734. fi
  5735. fi
  5736. fi
  5737. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
  5738. $as_echo "$ac_cv_path_FGREP" >&6; }
  5739. FGREP="$ac_cv_path_FGREP"
  5740. test -z "$GREP" && GREP=grep
  5741. # Check whether --with-gnu-ld was given.
  5742. if test "${with_gnu_ld+set}" = set; then :
  5743. withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
  5744. else
  5745. with_gnu_ld=no
  5746. fi
  5747. ac_prog=ld
  5748. if test yes = "$GCC"; then
  5749. # Check if gcc -print-prog-name=ld gives a path.
  5750. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  5751. $as_echo_n "checking for ld used by $CC... " >&6; }
  5752. case $host in
  5753. *-*-mingw*)
  5754. # gcc leaves a trailing carriage return, which upsets mingw
  5755. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  5756. *)
  5757. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  5758. esac
  5759. case $ac_prog in
  5760. # Accept absolute paths.
  5761. [\\/]* | ?:[\\/]*)
  5762. re_direlt='/[^/][^/]*/\.\./'
  5763. # Canonicalize the pathname of ld
  5764. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  5765. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  5766. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  5767. done
  5768. test -z "$LD" && LD=$ac_prog
  5769. ;;
  5770. "")
  5771. # If it fails, then pretend we aren't using GCC.
  5772. ac_prog=ld
  5773. ;;
  5774. *)
  5775. # If it is relative, then search for the first ld in PATH.
  5776. with_gnu_ld=unknown
  5777. ;;
  5778. esac
  5779. elif test yes = "$with_gnu_ld"; then
  5780. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  5781. $as_echo_n "checking for GNU ld... " >&6; }
  5782. else
  5783. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  5784. $as_echo_n "checking for non-GNU ld... " >&6; }
  5785. fi
  5786. if ${lt_cv_path_LD+:} false; then :
  5787. $as_echo_n "(cached) " >&6
  5788. else
  5789. if test -z "$LD"; then
  5790. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  5791. for ac_dir in $PATH; do
  5792. IFS=$lt_save_ifs
  5793. test -z "$ac_dir" && ac_dir=.
  5794. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  5795. lt_cv_path_LD=$ac_dir/$ac_prog
  5796. # Check to see if the program is GNU ld. I'd rather use --version,
  5797. # but apparently some variants of GNU ld only accept -v.
  5798. # Break only if it was the GNU/non-GNU ld that we prefer.
  5799. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  5800. *GNU* | *'with BFD'*)
  5801. test no != "$with_gnu_ld" && break
  5802. ;;
  5803. *)
  5804. test yes != "$with_gnu_ld" && break
  5805. ;;
  5806. esac
  5807. fi
  5808. done
  5809. IFS=$lt_save_ifs
  5810. else
  5811. lt_cv_path_LD=$LD # Let the user override the test with a path.
  5812. fi
  5813. fi
  5814. LD=$lt_cv_path_LD
  5815. if test -n "$LD"; then
  5816. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  5817. $as_echo "$LD" >&6; }
  5818. else
  5819. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5820. $as_echo "no" >&6; }
  5821. fi
  5822. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  5823. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  5824. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  5825. if ${lt_cv_prog_gnu_ld+:} false; then :
  5826. $as_echo_n "(cached) " >&6
  5827. else
  5828. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  5829. case `$LD -v 2>&1 </dev/null` in
  5830. *GNU* | *'with BFD'*)
  5831. lt_cv_prog_gnu_ld=yes
  5832. ;;
  5833. *)
  5834. lt_cv_prog_gnu_ld=no
  5835. ;;
  5836. esac
  5837. fi
  5838. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  5839. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  5840. with_gnu_ld=$lt_cv_prog_gnu_ld
  5841. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
  5842. $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
  5843. if ${lt_cv_path_NM+:} false; then :
  5844. $as_echo_n "(cached) " >&6
  5845. else
  5846. if test -n "$NM"; then
  5847. # Let the user override the test.
  5848. lt_cv_path_NM=$NM
  5849. else
  5850. lt_nm_to_check=${ac_tool_prefix}nm
  5851. if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
  5852. lt_nm_to_check="$lt_nm_to_check nm"
  5853. fi
  5854. for lt_tmp_nm in $lt_nm_to_check; do
  5855. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  5856. for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
  5857. IFS=$lt_save_ifs
  5858. test -z "$ac_dir" && ac_dir=.
  5859. tmp_nm=$ac_dir/$lt_tmp_nm
  5860. if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
  5861. # Check to see if the nm accepts a BSD-compat flag.
  5862. # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
  5863. # nm: unknown option "B" ignored
  5864. # Tru64's nm complains that /dev/null is an invalid object file
  5865. # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
  5866. case $build_os in
  5867. mingw*) lt_bad_file=conftest.nm/nofile ;;
  5868. *) lt_bad_file=/dev/null ;;
  5869. esac
  5870. case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
  5871. *$lt_bad_file* | *'Invalid file or object type'*)
  5872. lt_cv_path_NM="$tmp_nm -B"
  5873. break 2
  5874. ;;
  5875. *)
  5876. case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  5877. */dev/null*)
  5878. lt_cv_path_NM="$tmp_nm -p"
  5879. break 2
  5880. ;;
  5881. *)
  5882. lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  5883. continue # so that we can try to find one that supports BSD flags
  5884. ;;
  5885. esac
  5886. ;;
  5887. esac
  5888. fi
  5889. done
  5890. IFS=$lt_save_ifs
  5891. done
  5892. : ${lt_cv_path_NM=no}
  5893. fi
  5894. fi
  5895. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
  5896. $as_echo "$lt_cv_path_NM" >&6; }
  5897. if test no != "$lt_cv_path_NM"; then
  5898. NM=$lt_cv_path_NM
  5899. else
  5900. # Didn't find any BSD compatible name lister, look for dumpbin.
  5901. if test -n "$DUMPBIN"; then :
  5902. # Let the user override the test.
  5903. else
  5904. if test -n "$ac_tool_prefix"; then
  5905. for ac_prog in dumpbin "link -dump"
  5906. do
  5907. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  5908. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  5909. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5910. $as_echo_n "checking for $ac_word... " >&6; }
  5911. if ${ac_cv_prog_DUMPBIN+:} false; then :
  5912. $as_echo_n "(cached) " >&6
  5913. else
  5914. if test -n "$DUMPBIN"; then
  5915. ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
  5916. else
  5917. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5918. for as_dir in $PATH
  5919. do
  5920. IFS=$as_save_IFS
  5921. test -z "$as_dir" && as_dir=.
  5922. for ac_exec_ext in '' $ac_executable_extensions; do
  5923. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5924. ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
  5925. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5926. break 2
  5927. fi
  5928. done
  5929. done
  5930. IFS=$as_save_IFS
  5931. fi
  5932. fi
  5933. DUMPBIN=$ac_cv_prog_DUMPBIN
  5934. if test -n "$DUMPBIN"; then
  5935. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
  5936. $as_echo "$DUMPBIN" >&6; }
  5937. else
  5938. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5939. $as_echo "no" >&6; }
  5940. fi
  5941. test -n "$DUMPBIN" && break
  5942. done
  5943. fi
  5944. if test -z "$DUMPBIN"; then
  5945. ac_ct_DUMPBIN=$DUMPBIN
  5946. for ac_prog in dumpbin "link -dump"
  5947. do
  5948. # Extract the first word of "$ac_prog", so it can be a program name with args.
  5949. set dummy $ac_prog; ac_word=$2
  5950. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5951. $as_echo_n "checking for $ac_word... " >&6; }
  5952. if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
  5953. $as_echo_n "(cached) " >&6
  5954. else
  5955. if test -n "$ac_ct_DUMPBIN"; then
  5956. ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
  5957. else
  5958. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5959. for as_dir in $PATH
  5960. do
  5961. IFS=$as_save_IFS
  5962. test -z "$as_dir" && as_dir=.
  5963. for ac_exec_ext in '' $ac_executable_extensions; do
  5964. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5965. ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
  5966. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5967. break 2
  5968. fi
  5969. done
  5970. done
  5971. IFS=$as_save_IFS
  5972. fi
  5973. fi
  5974. ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
  5975. if test -n "$ac_ct_DUMPBIN"; then
  5976. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
  5977. $as_echo "$ac_ct_DUMPBIN" >&6; }
  5978. else
  5979. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5980. $as_echo "no" >&6; }
  5981. fi
  5982. test -n "$ac_ct_DUMPBIN" && break
  5983. done
  5984. if test "x$ac_ct_DUMPBIN" = x; then
  5985. DUMPBIN=":"
  5986. else
  5987. case $cross_compiling:$ac_tool_warned in
  5988. yes:)
  5989. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5990. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5991. ac_tool_warned=yes ;;
  5992. esac
  5993. DUMPBIN=$ac_ct_DUMPBIN
  5994. fi
  5995. fi
  5996. case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
  5997. *COFF*)
  5998. DUMPBIN="$DUMPBIN -symbols -headers"
  5999. ;;
  6000. *)
  6001. DUMPBIN=:
  6002. ;;
  6003. esac
  6004. fi
  6005. if test : != "$DUMPBIN"; then
  6006. NM=$DUMPBIN
  6007. fi
  6008. fi
  6009. test -z "$NM" && NM=nm
  6010. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
  6011. $as_echo_n "checking the name lister ($NM) interface... " >&6; }
  6012. if ${lt_cv_nm_interface+:} false; then :
  6013. $as_echo_n "(cached) " >&6
  6014. else
  6015. lt_cv_nm_interface="BSD nm"
  6016. echo "int some_variable = 0;" > conftest.$ac_ext
  6017. (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
  6018. (eval "$ac_compile" 2>conftest.err)
  6019. cat conftest.err >&5
  6020. (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
  6021. (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
  6022. cat conftest.err >&5
  6023. (eval echo "\"\$as_me:$LINENO: output\"" >&5)
  6024. cat conftest.out >&5
  6025. if $GREP 'External.*some_variable' conftest.out > /dev/null; then
  6026. lt_cv_nm_interface="MS dumpbin"
  6027. fi
  6028. rm -f conftest*
  6029. fi
  6030. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
  6031. $as_echo "$lt_cv_nm_interface" >&6; }
  6032. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
  6033. $as_echo_n "checking whether ln -s works... " >&6; }
  6034. LN_S=$as_ln_s
  6035. if test "$LN_S" = "ln -s"; then
  6036. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  6037. $as_echo "yes" >&6; }
  6038. else
  6039. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
  6040. $as_echo "no, using $LN_S" >&6; }
  6041. fi
  6042. # find the maximum length of command line arguments
  6043. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
  6044. $as_echo_n "checking the maximum length of command line arguments... " >&6; }
  6045. if ${lt_cv_sys_max_cmd_len+:} false; then :
  6046. $as_echo_n "(cached) " >&6
  6047. else
  6048. i=0
  6049. teststring=ABCD
  6050. case $build_os in
  6051. msdosdjgpp*)
  6052. # On DJGPP, this test can blow up pretty badly due to problems in libc
  6053. # (any single argument exceeding 2000 bytes causes a buffer overrun
  6054. # during glob expansion). Even if it were fixed, the result of this
  6055. # check would be larger than it should be.
  6056. lt_cv_sys_max_cmd_len=12288; # 12K is about right
  6057. ;;
  6058. gnu*)
  6059. # Under GNU Hurd, this test is not required because there is
  6060. # no limit to the length of command line arguments.
  6061. # Libtool will interpret -1 as no limit whatsoever
  6062. lt_cv_sys_max_cmd_len=-1;
  6063. ;;
  6064. cygwin* | mingw* | cegcc*)
  6065. # On Win9x/ME, this test blows up -- it succeeds, but takes
  6066. # about 5 minutes as the teststring grows exponentially.
  6067. # Worse, since 9x/ME are not pre-emptively multitasking,
  6068. # you end up with a "frozen" computer, even though with patience
  6069. # the test eventually succeeds (with a max line length of 256k).
  6070. # Instead, let's just punt: use the minimum linelength reported by
  6071. # all of the supported platforms: 8192 (on NT/2K/XP).
  6072. lt_cv_sys_max_cmd_len=8192;
  6073. ;;
  6074. mint*)
  6075. # On MiNT this can take a long time and run out of memory.
  6076. lt_cv_sys_max_cmd_len=8192;
  6077. ;;
  6078. amigaos*)
  6079. # On AmigaOS with pdksh, this test takes hours, literally.
  6080. # So we just punt and use a minimum line length of 8192.
  6081. lt_cv_sys_max_cmd_len=8192;
  6082. ;;
  6083. bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
  6084. # This has been around since 386BSD, at least. Likely further.
  6085. if test -x /sbin/sysctl; then
  6086. lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  6087. elif test -x /usr/sbin/sysctl; then
  6088. lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  6089. else
  6090. lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  6091. fi
  6092. # And add a safety zone
  6093. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  6094. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  6095. ;;
  6096. interix*)
  6097. # We know the value 262144 and hardcode it with a safety zone (like BSD)
  6098. lt_cv_sys_max_cmd_len=196608
  6099. ;;
  6100. os2*)
  6101. # The test takes a long time on OS/2.
  6102. lt_cv_sys_max_cmd_len=8192
  6103. ;;
  6104. osf*)
  6105. # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  6106. # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  6107. # nice to cause kernel panics so lets avoid the loop below.
  6108. # First set a reasonable default.
  6109. lt_cv_sys_max_cmd_len=16384
  6110. #
  6111. if test -x /sbin/sysconfig; then
  6112. case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  6113. *1*) lt_cv_sys_max_cmd_len=-1 ;;
  6114. esac
  6115. fi
  6116. ;;
  6117. sco3.2v5*)
  6118. lt_cv_sys_max_cmd_len=102400
  6119. ;;
  6120. sysv5* | sco5v6* | sysv4.2uw2*)
  6121. kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  6122. if test -n "$kargmax"; then
  6123. lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
  6124. else
  6125. lt_cv_sys_max_cmd_len=32768
  6126. fi
  6127. ;;
  6128. *)
  6129. lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
  6130. if test -n "$lt_cv_sys_max_cmd_len" && \
  6131. test undefined != "$lt_cv_sys_max_cmd_len"; then
  6132. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  6133. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  6134. else
  6135. # Make teststring a little bigger before we do anything with it.
  6136. # a 1K string should be a reasonable start.
  6137. for i in 1 2 3 4 5 6 7 8; do
  6138. teststring=$teststring$teststring
  6139. done
  6140. SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  6141. # If test is not a shell built-in, we'll probably end up computing a
  6142. # maximum length that is only half of the actual maximum length, but
  6143. # we can't tell.
  6144. while { test X`env echo "$teststring$teststring" 2>/dev/null` \
  6145. = "X$teststring$teststring"; } >/dev/null 2>&1 &&
  6146. test 17 != "$i" # 1/2 MB should be enough
  6147. do
  6148. i=`expr $i + 1`
  6149. teststring=$teststring$teststring
  6150. done
  6151. # Only check the string length outside the loop.
  6152. lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
  6153. teststring=
  6154. # Add a significant safety factor because C++ compilers can tack on
  6155. # massive amounts of additional arguments before passing them to the
  6156. # linker. It appears as though 1/2 is a usable value.
  6157. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  6158. fi
  6159. ;;
  6160. esac
  6161. fi
  6162. if test -n "$lt_cv_sys_max_cmd_len"; then
  6163. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
  6164. $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
  6165. else
  6166. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
  6167. $as_echo "none" >&6; }
  6168. fi
  6169. max_cmd_len=$lt_cv_sys_max_cmd_len
  6170. : ${CP="cp -f"}
  6171. : ${MV="mv -f"}
  6172. : ${RM="rm -f"}
  6173. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  6174. lt_unset=unset
  6175. else
  6176. lt_unset=false
  6177. fi
  6178. # test EBCDIC or ASCII
  6179. case `echo X|tr X '\101'` in
  6180. A) # ASCII based system
  6181. # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
  6182. lt_SP2NL='tr \040 \012'
  6183. lt_NL2SP='tr \015\012 \040\040'
  6184. ;;
  6185. *) # EBCDIC based system
  6186. lt_SP2NL='tr \100 \n'
  6187. lt_NL2SP='tr \r\n \100\100'
  6188. ;;
  6189. esac
  6190. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
  6191. $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
  6192. if ${lt_cv_to_host_file_cmd+:} false; then :
  6193. $as_echo_n "(cached) " >&6
  6194. else
  6195. case $host in
  6196. *-*-mingw* )
  6197. case $build in
  6198. *-*-mingw* ) # actually msys
  6199. lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
  6200. ;;
  6201. *-*-cygwin* )
  6202. lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
  6203. ;;
  6204. * ) # otherwise, assume *nix
  6205. lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
  6206. ;;
  6207. esac
  6208. ;;
  6209. *-*-cygwin* )
  6210. case $build in
  6211. *-*-mingw* ) # actually msys
  6212. lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
  6213. ;;
  6214. *-*-cygwin* )
  6215. lt_cv_to_host_file_cmd=func_convert_file_noop
  6216. ;;
  6217. * ) # otherwise, assume *nix
  6218. lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
  6219. ;;
  6220. esac
  6221. ;;
  6222. * ) # unhandled hosts (and "normal" native builds)
  6223. lt_cv_to_host_file_cmd=func_convert_file_noop
  6224. ;;
  6225. esac
  6226. fi
  6227. to_host_file_cmd=$lt_cv_to_host_file_cmd
  6228. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
  6229. $as_echo "$lt_cv_to_host_file_cmd" >&6; }
  6230. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
  6231. $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
  6232. if ${lt_cv_to_tool_file_cmd+:} false; then :
  6233. $as_echo_n "(cached) " >&6
  6234. else
  6235. #assume ordinary cross tools, or native build.
  6236. lt_cv_to_tool_file_cmd=func_convert_file_noop
  6237. case $host in
  6238. *-*-mingw* )
  6239. case $build in
  6240. *-*-mingw* ) # actually msys
  6241. lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
  6242. ;;
  6243. esac
  6244. ;;
  6245. esac
  6246. fi
  6247. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  6248. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
  6249. $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
  6250. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
  6251. $as_echo_n "checking for $LD option to reload object files... " >&6; }
  6252. if ${lt_cv_ld_reload_flag+:} false; then :
  6253. $as_echo_n "(cached) " >&6
  6254. else
  6255. lt_cv_ld_reload_flag='-r'
  6256. fi
  6257. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
  6258. $as_echo "$lt_cv_ld_reload_flag" >&6; }
  6259. reload_flag=$lt_cv_ld_reload_flag
  6260. case $reload_flag in
  6261. "" | " "*) ;;
  6262. *) reload_flag=" $reload_flag" ;;
  6263. esac
  6264. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  6265. case $host_os in
  6266. cygwin* | mingw* | pw32* | cegcc*)
  6267. if test yes != "$GCC"; then
  6268. reload_cmds=false
  6269. fi
  6270. ;;
  6271. darwin*)
  6272. if test yes = "$GCC"; then
  6273. reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
  6274. else
  6275. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  6276. fi
  6277. ;;
  6278. esac
  6279. if test -n "$ac_tool_prefix"; then
  6280. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  6281. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  6282. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6283. $as_echo_n "checking for $ac_word... " >&6; }
  6284. if ${ac_cv_prog_OBJDUMP+:} false; then :
  6285. $as_echo_n "(cached) " >&6
  6286. else
  6287. if test -n "$OBJDUMP"; then
  6288. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  6289. else
  6290. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6291. for as_dir in $PATH
  6292. do
  6293. IFS=$as_save_IFS
  6294. test -z "$as_dir" && as_dir=.
  6295. for ac_exec_ext in '' $ac_executable_extensions; do
  6296. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6297. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  6298. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6299. break 2
  6300. fi
  6301. done
  6302. done
  6303. IFS=$as_save_IFS
  6304. fi
  6305. fi
  6306. OBJDUMP=$ac_cv_prog_OBJDUMP
  6307. if test -n "$OBJDUMP"; then
  6308. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  6309. $as_echo "$OBJDUMP" >&6; }
  6310. else
  6311. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6312. $as_echo "no" >&6; }
  6313. fi
  6314. fi
  6315. if test -z "$ac_cv_prog_OBJDUMP"; then
  6316. ac_ct_OBJDUMP=$OBJDUMP
  6317. # Extract the first word of "objdump", so it can be a program name with args.
  6318. set dummy objdump; ac_word=$2
  6319. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6320. $as_echo_n "checking for $ac_word... " >&6; }
  6321. if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
  6322. $as_echo_n "(cached) " >&6
  6323. else
  6324. if test -n "$ac_ct_OBJDUMP"; then
  6325. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  6326. else
  6327. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6328. for as_dir in $PATH
  6329. do
  6330. IFS=$as_save_IFS
  6331. test -z "$as_dir" && as_dir=.
  6332. for ac_exec_ext in '' $ac_executable_extensions; do
  6333. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6334. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  6335. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6336. break 2
  6337. fi
  6338. done
  6339. done
  6340. IFS=$as_save_IFS
  6341. fi
  6342. fi
  6343. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  6344. if test -n "$ac_ct_OBJDUMP"; then
  6345. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  6346. $as_echo "$ac_ct_OBJDUMP" >&6; }
  6347. else
  6348. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6349. $as_echo "no" >&6; }
  6350. fi
  6351. if test "x$ac_ct_OBJDUMP" = x; then
  6352. OBJDUMP="false"
  6353. else
  6354. case $cross_compiling:$ac_tool_warned in
  6355. yes:)
  6356. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6357. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6358. ac_tool_warned=yes ;;
  6359. esac
  6360. OBJDUMP=$ac_ct_OBJDUMP
  6361. fi
  6362. else
  6363. OBJDUMP="$ac_cv_prog_OBJDUMP"
  6364. fi
  6365. test -z "$OBJDUMP" && OBJDUMP=objdump
  6366. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
  6367. $as_echo_n "checking how to recognize dependent libraries... " >&6; }
  6368. if ${lt_cv_deplibs_check_method+:} false; then :
  6369. $as_echo_n "(cached) " >&6
  6370. else
  6371. lt_cv_file_magic_cmd='$MAGIC_CMD'
  6372. lt_cv_file_magic_test_file=
  6373. lt_cv_deplibs_check_method='unknown'
  6374. # Need to set the preceding variable on all platforms that support
  6375. # interlibrary dependencies.
  6376. # 'none' -- dependencies not supported.
  6377. # 'unknown' -- same as none, but documents that we really don't know.
  6378. # 'pass_all' -- all dependencies passed with no checks.
  6379. # 'test_compile' -- check by making test program.
  6380. # 'file_magic [[regex]]' -- check by looking for files in library path
  6381. # that responds to the $file_magic_cmd with a given extended regex.
  6382. # If you have 'file' or equivalent on your system and you're not sure
  6383. # whether 'pass_all' will *always* work, you probably want this one.
  6384. case $host_os in
  6385. aix[4-9]*)
  6386. lt_cv_deplibs_check_method=pass_all
  6387. ;;
  6388. beos*)
  6389. lt_cv_deplibs_check_method=pass_all
  6390. ;;
  6391. bsdi[45]*)
  6392. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  6393. lt_cv_file_magic_cmd='/usr/bin/file -L'
  6394. lt_cv_file_magic_test_file=/shlib/libc.so
  6395. ;;
  6396. cygwin*)
  6397. # func_win32_libid is a shell function defined in ltmain.sh
  6398. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  6399. lt_cv_file_magic_cmd='func_win32_libid'
  6400. ;;
  6401. mingw* | pw32*)
  6402. # Base MSYS/MinGW do not provide the 'file' command needed by
  6403. # func_win32_libid shell function, so use a weaker test based on 'objdump',
  6404. # unless we find 'file', for example because we are cross-compiling.
  6405. if ( file / ) >/dev/null 2>&1; then
  6406. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  6407. lt_cv_file_magic_cmd='func_win32_libid'
  6408. else
  6409. # Keep this pattern in sync with the one in func_win32_libid.
  6410. lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
  6411. lt_cv_file_magic_cmd='$OBJDUMP -f'
  6412. fi
  6413. ;;
  6414. cegcc*)
  6415. # use the weaker test based on 'objdump'. See mingw*.
  6416. lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
  6417. lt_cv_file_magic_cmd='$OBJDUMP -f'
  6418. ;;
  6419. darwin* | rhapsody*)
  6420. lt_cv_deplibs_check_method=pass_all
  6421. ;;
  6422. freebsd* | dragonfly*)
  6423. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  6424. case $host_cpu in
  6425. i*86 )
  6426. # Not sure whether the presence of OpenBSD here was a mistake.
  6427. # Let's accept both of them until this is cleared up.
  6428. lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
  6429. lt_cv_file_magic_cmd=/usr/bin/file
  6430. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  6431. ;;
  6432. esac
  6433. else
  6434. lt_cv_deplibs_check_method=pass_all
  6435. fi
  6436. ;;
  6437. haiku*)
  6438. lt_cv_deplibs_check_method=pass_all
  6439. ;;
  6440. hpux10.20* | hpux11*)
  6441. lt_cv_file_magic_cmd=/usr/bin/file
  6442. case $host_cpu in
  6443. ia64*)
  6444. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
  6445. lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  6446. ;;
  6447. hppa*64*)
  6448. 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]'
  6449. lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  6450. ;;
  6451. *)
  6452. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
  6453. lt_cv_file_magic_test_file=/usr/lib/libc.sl
  6454. ;;
  6455. esac
  6456. ;;
  6457. interix[3-9]*)
  6458. # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  6459. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
  6460. ;;
  6461. irix5* | irix6* | nonstopux*)
  6462. case $LD in
  6463. *-32|*"-32 ") libmagic=32-bit;;
  6464. *-n32|*"-n32 ") libmagic=N32;;
  6465. *-64|*"-64 ") libmagic=64-bit;;
  6466. *) libmagic=never-match;;
  6467. esac
  6468. lt_cv_deplibs_check_method=pass_all
  6469. ;;
  6470. # This must be glibc/ELF.
  6471. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  6472. lt_cv_deplibs_check_method=pass_all
  6473. ;;
  6474. netbsd* | netbsdelf*-gnu)
  6475. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  6476. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  6477. else
  6478. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
  6479. fi
  6480. ;;
  6481. newos6*)
  6482. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  6483. lt_cv_file_magic_cmd=/usr/bin/file
  6484. lt_cv_file_magic_test_file=/usr/lib/libnls.so
  6485. ;;
  6486. *nto* | *qnx*)
  6487. lt_cv_deplibs_check_method=pass_all
  6488. ;;
  6489. openbsd* | bitrig*)
  6490. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
  6491. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
  6492. else
  6493. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  6494. fi
  6495. ;;
  6496. osf3* | osf4* | osf5*)
  6497. lt_cv_deplibs_check_method=pass_all
  6498. ;;
  6499. rdos*)
  6500. lt_cv_deplibs_check_method=pass_all
  6501. ;;
  6502. solaris*)
  6503. lt_cv_deplibs_check_method=pass_all
  6504. ;;
  6505. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  6506. lt_cv_deplibs_check_method=pass_all
  6507. ;;
  6508. sysv4 | sysv4.3*)
  6509. case $host_vendor in
  6510. motorola)
  6511. 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]'
  6512. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  6513. ;;
  6514. ncr)
  6515. lt_cv_deplibs_check_method=pass_all
  6516. ;;
  6517. sequent)
  6518. lt_cv_file_magic_cmd='/bin/file'
  6519. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
  6520. ;;
  6521. sni)
  6522. lt_cv_file_magic_cmd='/bin/file'
  6523. lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
  6524. lt_cv_file_magic_test_file=/lib/libc.so
  6525. ;;
  6526. siemens)
  6527. lt_cv_deplibs_check_method=pass_all
  6528. ;;
  6529. pc)
  6530. lt_cv_deplibs_check_method=pass_all
  6531. ;;
  6532. esac
  6533. ;;
  6534. tpf*)
  6535. lt_cv_deplibs_check_method=pass_all
  6536. ;;
  6537. os2*)
  6538. lt_cv_deplibs_check_method=pass_all
  6539. ;;
  6540. esac
  6541. fi
  6542. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
  6543. $as_echo "$lt_cv_deplibs_check_method" >&6; }
  6544. file_magic_glob=
  6545. want_nocaseglob=no
  6546. if test "$build" = "$host"; then
  6547. case $host_os in
  6548. mingw* | pw32*)
  6549. if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
  6550. want_nocaseglob=yes
  6551. else
  6552. file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
  6553. fi
  6554. ;;
  6555. esac
  6556. fi
  6557. file_magic_cmd=$lt_cv_file_magic_cmd
  6558. deplibs_check_method=$lt_cv_deplibs_check_method
  6559. test -z "$deplibs_check_method" && deplibs_check_method=unknown
  6560. if test -n "$ac_tool_prefix"; then
  6561. # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
  6562. set dummy ${ac_tool_prefix}dlltool; ac_word=$2
  6563. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6564. $as_echo_n "checking for $ac_word... " >&6; }
  6565. if ${ac_cv_prog_DLLTOOL+:} false; then :
  6566. $as_echo_n "(cached) " >&6
  6567. else
  6568. if test -n "$DLLTOOL"; then
  6569. ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
  6570. else
  6571. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6572. for as_dir in $PATH
  6573. do
  6574. IFS=$as_save_IFS
  6575. test -z "$as_dir" && as_dir=.
  6576. for ac_exec_ext in '' $ac_executable_extensions; do
  6577. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6578. ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
  6579. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6580. break 2
  6581. fi
  6582. done
  6583. done
  6584. IFS=$as_save_IFS
  6585. fi
  6586. fi
  6587. DLLTOOL=$ac_cv_prog_DLLTOOL
  6588. if test -n "$DLLTOOL"; then
  6589. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
  6590. $as_echo "$DLLTOOL" >&6; }
  6591. else
  6592. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6593. $as_echo "no" >&6; }
  6594. fi
  6595. fi
  6596. if test -z "$ac_cv_prog_DLLTOOL"; then
  6597. ac_ct_DLLTOOL=$DLLTOOL
  6598. # Extract the first word of "dlltool", so it can be a program name with args.
  6599. set dummy dlltool; ac_word=$2
  6600. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6601. $as_echo_n "checking for $ac_word... " >&6; }
  6602. if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
  6603. $as_echo_n "(cached) " >&6
  6604. else
  6605. if test -n "$ac_ct_DLLTOOL"; then
  6606. ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
  6607. else
  6608. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6609. for as_dir in $PATH
  6610. do
  6611. IFS=$as_save_IFS
  6612. test -z "$as_dir" && as_dir=.
  6613. for ac_exec_ext in '' $ac_executable_extensions; do
  6614. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6615. ac_cv_prog_ac_ct_DLLTOOL="dlltool"
  6616. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6617. break 2
  6618. fi
  6619. done
  6620. done
  6621. IFS=$as_save_IFS
  6622. fi
  6623. fi
  6624. ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
  6625. if test -n "$ac_ct_DLLTOOL"; then
  6626. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
  6627. $as_echo "$ac_ct_DLLTOOL" >&6; }
  6628. else
  6629. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6630. $as_echo "no" >&6; }
  6631. fi
  6632. if test "x$ac_ct_DLLTOOL" = x; then
  6633. DLLTOOL="false"
  6634. else
  6635. case $cross_compiling:$ac_tool_warned in
  6636. yes:)
  6637. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6638. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6639. ac_tool_warned=yes ;;
  6640. esac
  6641. DLLTOOL=$ac_ct_DLLTOOL
  6642. fi
  6643. else
  6644. DLLTOOL="$ac_cv_prog_DLLTOOL"
  6645. fi
  6646. test -z "$DLLTOOL" && DLLTOOL=dlltool
  6647. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
  6648. $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
  6649. if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
  6650. $as_echo_n "(cached) " >&6
  6651. else
  6652. lt_cv_sharedlib_from_linklib_cmd='unknown'
  6653. case $host_os in
  6654. cygwin* | mingw* | pw32* | cegcc*)
  6655. # two different shell functions defined in ltmain.sh;
  6656. # decide which one to use based on capabilities of $DLLTOOL
  6657. case `$DLLTOOL --help 2>&1` in
  6658. *--identify-strict*)
  6659. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
  6660. ;;
  6661. *)
  6662. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
  6663. ;;
  6664. esac
  6665. ;;
  6666. *)
  6667. # fallback: assume linklib IS sharedlib
  6668. lt_cv_sharedlib_from_linklib_cmd=$ECHO
  6669. ;;
  6670. esac
  6671. fi
  6672. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
  6673. $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
  6674. sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
  6675. test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
  6676. if test -n "$ac_tool_prefix"; then
  6677. for ac_prog in ar
  6678. do
  6679. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  6680. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  6681. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6682. $as_echo_n "checking for $ac_word... " >&6; }
  6683. if ${ac_cv_prog_AR+:} false; then :
  6684. $as_echo_n "(cached) " >&6
  6685. else
  6686. if test -n "$AR"; then
  6687. ac_cv_prog_AR="$AR" # Let the user override the test.
  6688. else
  6689. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6690. for as_dir in $PATH
  6691. do
  6692. IFS=$as_save_IFS
  6693. test -z "$as_dir" && as_dir=.
  6694. for ac_exec_ext in '' $ac_executable_extensions; do
  6695. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6696. ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
  6697. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6698. break 2
  6699. fi
  6700. done
  6701. done
  6702. IFS=$as_save_IFS
  6703. fi
  6704. fi
  6705. AR=$ac_cv_prog_AR
  6706. if test -n "$AR"; then
  6707. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  6708. $as_echo "$AR" >&6; }
  6709. else
  6710. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6711. $as_echo "no" >&6; }
  6712. fi
  6713. test -n "$AR" && break
  6714. done
  6715. fi
  6716. if test -z "$AR"; then
  6717. ac_ct_AR=$AR
  6718. for ac_prog in ar
  6719. do
  6720. # Extract the first word of "$ac_prog", so it can be a program name with args.
  6721. set dummy $ac_prog; ac_word=$2
  6722. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6723. $as_echo_n "checking for $ac_word... " >&6; }
  6724. if ${ac_cv_prog_ac_ct_AR+:} false; then :
  6725. $as_echo_n "(cached) " >&6
  6726. else
  6727. if test -n "$ac_ct_AR"; then
  6728. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  6729. else
  6730. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6731. for as_dir in $PATH
  6732. do
  6733. IFS=$as_save_IFS
  6734. test -z "$as_dir" && as_dir=.
  6735. for ac_exec_ext in '' $ac_executable_extensions; do
  6736. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6737. ac_cv_prog_ac_ct_AR="$ac_prog"
  6738. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6739. break 2
  6740. fi
  6741. done
  6742. done
  6743. IFS=$as_save_IFS
  6744. fi
  6745. fi
  6746. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  6747. if test -n "$ac_ct_AR"; then
  6748. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
  6749. $as_echo "$ac_ct_AR" >&6; }
  6750. else
  6751. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6752. $as_echo "no" >&6; }
  6753. fi
  6754. test -n "$ac_ct_AR" && break
  6755. done
  6756. if test "x$ac_ct_AR" = x; then
  6757. AR="false"
  6758. else
  6759. case $cross_compiling:$ac_tool_warned in
  6760. yes:)
  6761. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6762. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6763. ac_tool_warned=yes ;;
  6764. esac
  6765. AR=$ac_ct_AR
  6766. fi
  6767. fi
  6768. : ${AR=ar}
  6769. : ${AR_FLAGS=cru}
  6770. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
  6771. $as_echo_n "checking for archiver @FILE support... " >&6; }
  6772. if ${lt_cv_ar_at_file+:} false; then :
  6773. $as_echo_n "(cached) " >&6
  6774. else
  6775. lt_cv_ar_at_file=no
  6776. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6777. /* end confdefs.h. */
  6778. int
  6779. main ()
  6780. {
  6781. ;
  6782. return 0;
  6783. }
  6784. _ACEOF
  6785. if ac_fn_c_try_compile "$LINENO"; then :
  6786. echo conftest.$ac_objext > conftest.lst
  6787. lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
  6788. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  6789. (eval $lt_ar_try) 2>&5
  6790. ac_status=$?
  6791. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6792. test $ac_status = 0; }
  6793. if test 0 -eq "$ac_status"; then
  6794. # Ensure the archiver fails upon bogus file names.
  6795. rm -f conftest.$ac_objext libconftest.a
  6796. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  6797. (eval $lt_ar_try) 2>&5
  6798. ac_status=$?
  6799. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6800. test $ac_status = 0; }
  6801. if test 0 -ne "$ac_status"; then
  6802. lt_cv_ar_at_file=@
  6803. fi
  6804. fi
  6805. rm -f conftest.* libconftest.a
  6806. fi
  6807. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6808. fi
  6809. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
  6810. $as_echo "$lt_cv_ar_at_file" >&6; }
  6811. if test no = "$lt_cv_ar_at_file"; then
  6812. archiver_list_spec=
  6813. else
  6814. archiver_list_spec=$lt_cv_ar_at_file
  6815. fi
  6816. if test -n "$ac_tool_prefix"; then
  6817. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  6818. set dummy ${ac_tool_prefix}strip; ac_word=$2
  6819. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6820. $as_echo_n "checking for $ac_word... " >&6; }
  6821. if ${ac_cv_prog_STRIP+:} false; then :
  6822. $as_echo_n "(cached) " >&6
  6823. else
  6824. if test -n "$STRIP"; then
  6825. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  6826. else
  6827. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6828. for as_dir in $PATH
  6829. do
  6830. IFS=$as_save_IFS
  6831. test -z "$as_dir" && as_dir=.
  6832. for ac_exec_ext in '' $ac_executable_extensions; do
  6833. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6834. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  6835. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6836. break 2
  6837. fi
  6838. done
  6839. done
  6840. IFS=$as_save_IFS
  6841. fi
  6842. fi
  6843. STRIP=$ac_cv_prog_STRIP
  6844. if test -n "$STRIP"; then
  6845. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  6846. $as_echo "$STRIP" >&6; }
  6847. else
  6848. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6849. $as_echo "no" >&6; }
  6850. fi
  6851. fi
  6852. if test -z "$ac_cv_prog_STRIP"; then
  6853. ac_ct_STRIP=$STRIP
  6854. # Extract the first word of "strip", so it can be a program name with args.
  6855. set dummy strip; ac_word=$2
  6856. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6857. $as_echo_n "checking for $ac_word... " >&6; }
  6858. if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
  6859. $as_echo_n "(cached) " >&6
  6860. else
  6861. if test -n "$ac_ct_STRIP"; then
  6862. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  6863. else
  6864. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6865. for as_dir in $PATH
  6866. do
  6867. IFS=$as_save_IFS
  6868. test -z "$as_dir" && as_dir=.
  6869. for ac_exec_ext in '' $ac_executable_extensions; do
  6870. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6871. ac_cv_prog_ac_ct_STRIP="strip"
  6872. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6873. break 2
  6874. fi
  6875. done
  6876. done
  6877. IFS=$as_save_IFS
  6878. fi
  6879. fi
  6880. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  6881. if test -n "$ac_ct_STRIP"; then
  6882. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  6883. $as_echo "$ac_ct_STRIP" >&6; }
  6884. else
  6885. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6886. $as_echo "no" >&6; }
  6887. fi
  6888. if test "x$ac_ct_STRIP" = x; then
  6889. STRIP=":"
  6890. else
  6891. case $cross_compiling:$ac_tool_warned in
  6892. yes:)
  6893. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6894. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6895. ac_tool_warned=yes ;;
  6896. esac
  6897. STRIP=$ac_ct_STRIP
  6898. fi
  6899. else
  6900. STRIP="$ac_cv_prog_STRIP"
  6901. fi
  6902. test -z "$STRIP" && STRIP=:
  6903. if test -n "$ac_tool_prefix"; then
  6904. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  6905. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  6906. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6907. $as_echo_n "checking for $ac_word... " >&6; }
  6908. if ${ac_cv_prog_RANLIB+:} false; then :
  6909. $as_echo_n "(cached) " >&6
  6910. else
  6911. if test -n "$RANLIB"; then
  6912. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  6913. else
  6914. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6915. for as_dir in $PATH
  6916. do
  6917. IFS=$as_save_IFS
  6918. test -z "$as_dir" && as_dir=.
  6919. for ac_exec_ext in '' $ac_executable_extensions; do
  6920. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6921. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  6922. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6923. break 2
  6924. fi
  6925. done
  6926. done
  6927. IFS=$as_save_IFS
  6928. fi
  6929. fi
  6930. RANLIB=$ac_cv_prog_RANLIB
  6931. if test -n "$RANLIB"; then
  6932. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  6933. $as_echo "$RANLIB" >&6; }
  6934. else
  6935. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6936. $as_echo "no" >&6; }
  6937. fi
  6938. fi
  6939. if test -z "$ac_cv_prog_RANLIB"; then
  6940. ac_ct_RANLIB=$RANLIB
  6941. # Extract the first word of "ranlib", so it can be a program name with args.
  6942. set dummy ranlib; ac_word=$2
  6943. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6944. $as_echo_n "checking for $ac_word... " >&6; }
  6945. if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
  6946. $as_echo_n "(cached) " >&6
  6947. else
  6948. if test -n "$ac_ct_RANLIB"; then
  6949. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  6950. else
  6951. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6952. for as_dir in $PATH
  6953. do
  6954. IFS=$as_save_IFS
  6955. test -z "$as_dir" && as_dir=.
  6956. for ac_exec_ext in '' $ac_executable_extensions; do
  6957. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6958. ac_cv_prog_ac_ct_RANLIB="ranlib"
  6959. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6960. break 2
  6961. fi
  6962. done
  6963. done
  6964. IFS=$as_save_IFS
  6965. fi
  6966. fi
  6967. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  6968. if test -n "$ac_ct_RANLIB"; then
  6969. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  6970. $as_echo "$ac_ct_RANLIB" >&6; }
  6971. else
  6972. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6973. $as_echo "no" >&6; }
  6974. fi
  6975. if test "x$ac_ct_RANLIB" = x; then
  6976. RANLIB=":"
  6977. else
  6978. case $cross_compiling:$ac_tool_warned in
  6979. yes:)
  6980. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6981. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6982. ac_tool_warned=yes ;;
  6983. esac
  6984. RANLIB=$ac_ct_RANLIB
  6985. fi
  6986. else
  6987. RANLIB="$ac_cv_prog_RANLIB"
  6988. fi
  6989. test -z "$RANLIB" && RANLIB=:
  6990. # Determine commands to create old-style static archives.
  6991. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
  6992. old_postinstall_cmds='chmod 644 $oldlib'
  6993. old_postuninstall_cmds=
  6994. if test -n "$RANLIB"; then
  6995. case $host_os in
  6996. bitrig* | openbsd*)
  6997. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
  6998. ;;
  6999. *)
  7000. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
  7001. ;;
  7002. esac
  7003. old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
  7004. fi
  7005. case $host_os in
  7006. darwin*)
  7007. lock_old_archive_extraction=yes ;;
  7008. *)
  7009. lock_old_archive_extraction=no ;;
  7010. esac
  7011. # If no C compiler was specified, use CC.
  7012. LTCC=${LTCC-"$CC"}
  7013. # If no C compiler flags were specified, use CFLAGS.
  7014. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  7015. # Allow CC to be a program name with arguments.
  7016. compiler=$CC
  7017. # Check for command to grab the raw symbol name followed by C symbol from nm.
  7018. { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
  7019. $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
  7020. if ${lt_cv_sys_global_symbol_pipe+:} false; then :
  7021. $as_echo_n "(cached) " >&6
  7022. else
  7023. # These are sane defaults that work on at least a few old systems.
  7024. # [They come from Ultrix. What could be older than Ultrix?!! ;)]
  7025. # Character class describing NM global symbol codes.
  7026. symcode='[BCDEGRST]'
  7027. # Regexp to match symbols that can be accessed directly from C.
  7028. sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
  7029. # Define system-specific variables.
  7030. case $host_os in
  7031. aix*)
  7032. symcode='[BCDT]'
  7033. ;;
  7034. cygwin* | mingw* | pw32* | cegcc*)
  7035. symcode='[ABCDGISTW]'
  7036. ;;
  7037. hpux*)
  7038. if test ia64 = "$host_cpu"; then
  7039. symcode='[ABCDEGRST]'
  7040. fi
  7041. ;;
  7042. irix* | nonstopux*)
  7043. symcode='[BCDEGRST]'
  7044. ;;
  7045. osf*)
  7046. symcode='[BCDEGQRST]'
  7047. ;;
  7048. solaris*)
  7049. symcode='[BDRT]'
  7050. ;;
  7051. sco3.2v5*)
  7052. symcode='[DT]'
  7053. ;;
  7054. sysv4.2uw2*)
  7055. symcode='[DT]'
  7056. ;;
  7057. sysv5* | sco5v6* | unixware* | OpenUNIX*)
  7058. symcode='[ABDT]'
  7059. ;;
  7060. sysv4)
  7061. symcode='[DFNSTU]'
  7062. ;;
  7063. esac
  7064. # If we're using GNU nm, then use its standard symbol codes.
  7065. case `$NM -V 2>&1` in
  7066. *GNU* | *'with BFD'*)
  7067. symcode='[ABCDGIRSTW]' ;;
  7068. esac
  7069. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  7070. # Gets list of data symbols to import.
  7071. lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
  7072. # Adjust the below global symbol transforms to fixup imported variables.
  7073. lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
  7074. lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
  7075. lt_c_name_lib_hook="\
  7076. -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
  7077. -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
  7078. else
  7079. # Disable hooks by default.
  7080. lt_cv_sys_global_symbol_to_import=
  7081. lt_cdecl_hook=
  7082. lt_c_name_hook=
  7083. lt_c_name_lib_hook=
  7084. fi
  7085. # Transform an extracted symbol line into a proper C declaration.
  7086. # Some systems (esp. on ia64) link data and code symbols differently,
  7087. # so use this general approach.
  7088. lt_cv_sys_global_symbol_to_cdecl="sed -n"\
  7089. $lt_cdecl_hook\
  7090. " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
  7091. " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
  7092. # Transform an extracted symbol line into symbol name and symbol address
  7093. lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
  7094. $lt_c_name_hook\
  7095. " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
  7096. " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
  7097. # Transform an extracted symbol line into symbol name with lib prefix and
  7098. # symbol address.
  7099. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
  7100. $lt_c_name_lib_hook\
  7101. " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
  7102. " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
  7103. " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
  7104. # Handle CRLF in mingw tool chain
  7105. opt_cr=
  7106. case $build_os in
  7107. mingw*)
  7108. opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  7109. ;;
  7110. esac
  7111. # Try without a prefix underscore, then with it.
  7112. for ac_symprfx in "" "_"; do
  7113. # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  7114. symxfrm="\\1 $ac_symprfx\\2 \\2"
  7115. # Write the raw and C identifiers.
  7116. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  7117. # Fake it for dumpbin and say T for any non-static function,
  7118. # D for any global variable and I for any imported variable.
  7119. # Also find C++ and __fastcall symbols from MSVC++,
  7120. # which start with @ or ?.
  7121. lt_cv_sys_global_symbol_pipe="$AWK '"\
  7122. " {last_section=section; section=\$ 3};"\
  7123. " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
  7124. " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
  7125. " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
  7126. " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
  7127. " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
  7128. " \$ 0!~/External *\|/{next};"\
  7129. " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
  7130. " {if(hide[section]) next};"\
  7131. " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
  7132. " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
  7133. " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
  7134. " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
  7135. " ' prfx=^$ac_symprfx"
  7136. else
  7137. lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  7138. fi
  7139. lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
  7140. # Check to see that the pipe works correctly.
  7141. pipe_works=no
  7142. rm -f conftest*
  7143. cat > conftest.$ac_ext <<_LT_EOF
  7144. #ifdef __cplusplus
  7145. extern "C" {
  7146. #endif
  7147. char nm_test_var;
  7148. void nm_test_func(void);
  7149. void nm_test_func(void){}
  7150. #ifdef __cplusplus
  7151. }
  7152. #endif
  7153. int main(){nm_test_var='a';nm_test_func();return(0);}
  7154. _LT_EOF
  7155. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  7156. (eval $ac_compile) 2>&5
  7157. ac_status=$?
  7158. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  7159. test $ac_status = 0; }; then
  7160. # Now try to grab the symbols.
  7161. nlist=conftest.nm
  7162. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
  7163. (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
  7164. ac_status=$?
  7165. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  7166. test $ac_status = 0; } && test -s "$nlist"; then
  7167. # Try sorting and uniquifying the output.
  7168. if sort "$nlist" | uniq > "$nlist"T; then
  7169. mv -f "$nlist"T "$nlist"
  7170. else
  7171. rm -f "$nlist"T
  7172. fi
  7173. # Make sure that we snagged all the symbols we need.
  7174. if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
  7175. if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
  7176. cat <<_LT_EOF > conftest.$ac_ext
  7177. /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
  7178. #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
  7179. /* DATA imports from DLLs on WIN32 can't be const, because runtime
  7180. relocations are performed -- see ld's documentation on pseudo-relocs. */
  7181. # define LT_DLSYM_CONST
  7182. #elif defined __osf__
  7183. /* This system does not cope well with relocations in const data. */
  7184. # define LT_DLSYM_CONST
  7185. #else
  7186. # define LT_DLSYM_CONST const
  7187. #endif
  7188. #ifdef __cplusplus
  7189. extern "C" {
  7190. #endif
  7191. _LT_EOF
  7192. # Now generate the symbol file.
  7193. eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
  7194. cat <<_LT_EOF >> conftest.$ac_ext
  7195. /* The mapping between symbol names and symbols. */
  7196. LT_DLSYM_CONST struct {
  7197. const char *name;
  7198. void *address;
  7199. }
  7200. lt__PROGRAM__LTX_preloaded_symbols[] =
  7201. {
  7202. { "@PROGRAM@", (void *) 0 },
  7203. _LT_EOF
  7204. $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
  7205. cat <<\_LT_EOF >> conftest.$ac_ext
  7206. {0, (void *) 0}
  7207. };
  7208. /* This works around a problem in FreeBSD linker */
  7209. #ifdef FREEBSD_WORKAROUND
  7210. static const void *lt_preloaded_setup() {
  7211. return lt__PROGRAM__LTX_preloaded_symbols;
  7212. }
  7213. #endif
  7214. #ifdef __cplusplus
  7215. }
  7216. #endif
  7217. _LT_EOF
  7218. # Now try linking the two files.
  7219. mv conftest.$ac_objext conftstm.$ac_objext
  7220. lt_globsym_save_LIBS=$LIBS
  7221. lt_globsym_save_CFLAGS=$CFLAGS
  7222. LIBS=conftstm.$ac_objext
  7223. CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
  7224. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  7225. (eval $ac_link) 2>&5
  7226. ac_status=$?
  7227. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  7228. test $ac_status = 0; } && test -s conftest$ac_exeext; then
  7229. pipe_works=yes
  7230. fi
  7231. LIBS=$lt_globsym_save_LIBS
  7232. CFLAGS=$lt_globsym_save_CFLAGS
  7233. else
  7234. echo "cannot find nm_test_func in $nlist" >&5
  7235. fi
  7236. else
  7237. echo "cannot find nm_test_var in $nlist" >&5
  7238. fi
  7239. else
  7240. echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
  7241. fi
  7242. else
  7243. echo "$progname: failed program was:" >&5
  7244. cat conftest.$ac_ext >&5
  7245. fi
  7246. rm -rf conftest* conftst*
  7247. # Do not use the global_symbol_pipe unless it works.
  7248. if test yes = "$pipe_works"; then
  7249. break
  7250. else
  7251. lt_cv_sys_global_symbol_pipe=
  7252. fi
  7253. done
  7254. fi
  7255. if test -z "$lt_cv_sys_global_symbol_pipe"; then
  7256. lt_cv_sys_global_symbol_to_cdecl=
  7257. fi
  7258. if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  7259. { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
  7260. $as_echo "failed" >&6; }
  7261. else
  7262. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
  7263. $as_echo "ok" >&6; }
  7264. fi
  7265. # Response file support.
  7266. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  7267. nm_file_list_spec='@'
  7268. elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
  7269. nm_file_list_spec='@'
  7270. fi
  7271. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
  7272. $as_echo_n "checking for sysroot... " >&6; }
  7273. # Check whether --with-sysroot was given.
  7274. if test "${with_sysroot+set}" = set; then :
  7275. withval=$with_sysroot;
  7276. else
  7277. with_sysroot=no
  7278. fi
  7279. lt_sysroot=
  7280. case $with_sysroot in #(
  7281. yes)
  7282. if test yes = "$GCC"; then
  7283. lt_sysroot=`$CC --print-sysroot 2>/dev/null`
  7284. fi
  7285. ;; #(
  7286. /*)
  7287. lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
  7288. ;; #(
  7289. no|'')
  7290. ;; #(
  7291. *)
  7292. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
  7293. $as_echo "$with_sysroot" >&6; }
  7294. as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
  7295. ;;
  7296. esac
  7297. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
  7298. $as_echo "${lt_sysroot:-no}" >&6; }
  7299. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
  7300. $as_echo_n "checking for a working dd... " >&6; }
  7301. if ${ac_cv_path_lt_DD+:} false; then :
  7302. $as_echo_n "(cached) " >&6
  7303. else
  7304. printf 0123456789abcdef0123456789abcdef >conftest.i
  7305. cat conftest.i conftest.i >conftest2.i
  7306. : ${lt_DD:=$DD}
  7307. if test -z "$lt_DD"; then
  7308. ac_path_lt_DD_found=false
  7309. # Loop through the user's path and test for each of PROGNAME-LIST
  7310. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7311. for as_dir in $PATH
  7312. do
  7313. IFS=$as_save_IFS
  7314. test -z "$as_dir" && as_dir=.
  7315. for ac_prog in dd; do
  7316. for ac_exec_ext in '' $ac_executable_extensions; do
  7317. ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
  7318. as_fn_executable_p "$ac_path_lt_DD" || continue
  7319. if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
  7320. cmp -s conftest.i conftest.out \
  7321. && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
  7322. fi
  7323. $ac_path_lt_DD_found && break 3
  7324. done
  7325. done
  7326. done
  7327. IFS=$as_save_IFS
  7328. if test -z "$ac_cv_path_lt_DD"; then
  7329. :
  7330. fi
  7331. else
  7332. ac_cv_path_lt_DD=$lt_DD
  7333. fi
  7334. rm -f conftest.i conftest2.i conftest.out
  7335. fi
  7336. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
  7337. $as_echo "$ac_cv_path_lt_DD" >&6; }
  7338. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
  7339. $as_echo_n "checking how to truncate binary pipes... " >&6; }
  7340. if ${lt_cv_truncate_bin+:} false; then :
  7341. $as_echo_n "(cached) " >&6
  7342. else
  7343. printf 0123456789abcdef0123456789abcdef >conftest.i
  7344. cat conftest.i conftest.i >conftest2.i
  7345. lt_cv_truncate_bin=
  7346. if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
  7347. cmp -s conftest.i conftest.out \
  7348. && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
  7349. fi
  7350. rm -f conftest.i conftest2.i conftest.out
  7351. test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
  7352. fi
  7353. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
  7354. $as_echo "$lt_cv_truncate_bin" >&6; }
  7355. # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
  7356. func_cc_basename ()
  7357. {
  7358. for cc_temp in $*""; do
  7359. case $cc_temp in
  7360. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  7361. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  7362. \-*) ;;
  7363. *) break;;
  7364. esac
  7365. done
  7366. func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  7367. }
  7368. # Check whether --enable-libtool-lock was given.
  7369. if test "${enable_libtool_lock+set}" = set; then :
  7370. enableval=$enable_libtool_lock;
  7371. fi
  7372. test no = "$enable_libtool_lock" || enable_libtool_lock=yes
  7373. # Some flags need to be propagated to the compiler or linker for good
  7374. # libtool support.
  7375. case $host in
  7376. ia64-*-hpux*)
  7377. # Find out what ABI is being produced by ac_compile, and set mode
  7378. # options accordingly.
  7379. echo 'int i;' > conftest.$ac_ext
  7380. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  7381. (eval $ac_compile) 2>&5
  7382. ac_status=$?
  7383. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  7384. test $ac_status = 0; }; then
  7385. case `/usr/bin/file conftest.$ac_objext` in
  7386. *ELF-32*)
  7387. HPUX_IA64_MODE=32
  7388. ;;
  7389. *ELF-64*)
  7390. HPUX_IA64_MODE=64
  7391. ;;
  7392. esac
  7393. fi
  7394. rm -rf conftest*
  7395. ;;
  7396. *-*-irix6*)
  7397. # Find out what ABI is being produced by ac_compile, and set linker
  7398. # options accordingly.
  7399. echo '#line '$LINENO' "configure"' > conftest.$ac_ext
  7400. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  7401. (eval $ac_compile) 2>&5
  7402. ac_status=$?
  7403. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  7404. test $ac_status = 0; }; then
  7405. if test yes = "$lt_cv_prog_gnu_ld"; then
  7406. case `/usr/bin/file conftest.$ac_objext` in
  7407. *32-bit*)
  7408. LD="${LD-ld} -melf32bsmip"
  7409. ;;
  7410. *N32*)
  7411. LD="${LD-ld} -melf32bmipn32"
  7412. ;;
  7413. *64-bit*)
  7414. LD="${LD-ld} -melf64bmip"
  7415. ;;
  7416. esac
  7417. else
  7418. case `/usr/bin/file conftest.$ac_objext` in
  7419. *32-bit*)
  7420. LD="${LD-ld} -32"
  7421. ;;
  7422. *N32*)
  7423. LD="${LD-ld} -n32"
  7424. ;;
  7425. *64-bit*)
  7426. LD="${LD-ld} -64"
  7427. ;;
  7428. esac
  7429. fi
  7430. fi
  7431. rm -rf conftest*
  7432. ;;
  7433. mips64*-*linux*)
  7434. # Find out what ABI is being produced by ac_compile, and set linker
  7435. # options accordingly.
  7436. echo '#line '$LINENO' "configure"' > conftest.$ac_ext
  7437. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  7438. (eval $ac_compile) 2>&5
  7439. ac_status=$?
  7440. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  7441. test $ac_status = 0; }; then
  7442. emul=elf
  7443. case `/usr/bin/file conftest.$ac_objext` in
  7444. *32-bit*)
  7445. emul="${emul}32"
  7446. ;;
  7447. *64-bit*)
  7448. emul="${emul}64"
  7449. ;;
  7450. esac
  7451. case `/usr/bin/file conftest.$ac_objext` in
  7452. *MSB*)
  7453. emul="${emul}btsmip"
  7454. ;;
  7455. *LSB*)
  7456. emul="${emul}ltsmip"
  7457. ;;
  7458. esac
  7459. case `/usr/bin/file conftest.$ac_objext` in
  7460. *N32*)
  7461. emul="${emul}n32"
  7462. ;;
  7463. esac
  7464. LD="${LD-ld} -m $emul"
  7465. fi
  7466. rm -rf conftest*
  7467. ;;
  7468. x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
  7469. s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
  7470. # Find out what ABI is being produced by ac_compile, and set linker
  7471. # options accordingly. Note that the listed cases only cover the
  7472. # situations where additional linker options are needed (such as when
  7473. # doing 32-bit compilation for a host where ld defaults to 64-bit, or
  7474. # vice versa); the common cases where no linker options are needed do
  7475. # not appear in the list.
  7476. echo 'int i;' > conftest.$ac_ext
  7477. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  7478. (eval $ac_compile) 2>&5
  7479. ac_status=$?
  7480. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  7481. test $ac_status = 0; }; then
  7482. case `/usr/bin/file conftest.o` in
  7483. *32-bit*)
  7484. case $host in
  7485. x86_64-*kfreebsd*-gnu)
  7486. LD="${LD-ld} -m elf_i386_fbsd"
  7487. ;;
  7488. x86_64-*linux*)
  7489. case `/usr/bin/file conftest.o` in
  7490. *x86-64*)
  7491. LD="${LD-ld} -m elf32_x86_64"
  7492. ;;
  7493. *)
  7494. LD="${LD-ld} -m elf_i386"
  7495. ;;
  7496. esac
  7497. ;;
  7498. powerpc64le-*linux*)
  7499. LD="${LD-ld} -m elf32lppclinux"
  7500. ;;
  7501. powerpc64-*linux*)
  7502. LD="${LD-ld} -m elf32ppclinux"
  7503. ;;
  7504. s390x-*linux*)
  7505. LD="${LD-ld} -m elf_s390"
  7506. ;;
  7507. sparc64-*linux*)
  7508. LD="${LD-ld} -m elf32_sparc"
  7509. ;;
  7510. esac
  7511. ;;
  7512. *64-bit*)
  7513. case $host in
  7514. x86_64-*kfreebsd*-gnu)
  7515. LD="${LD-ld} -m elf_x86_64_fbsd"
  7516. ;;
  7517. x86_64-*linux*)
  7518. LD="${LD-ld} -m elf_x86_64"
  7519. ;;
  7520. powerpcle-*linux*)
  7521. LD="${LD-ld} -m elf64lppc"
  7522. ;;
  7523. powerpc-*linux*)
  7524. LD="${LD-ld} -m elf64ppc"
  7525. ;;
  7526. s390*-*linux*|s390*-*tpf*)
  7527. LD="${LD-ld} -m elf64_s390"
  7528. ;;
  7529. sparc*-*linux*)
  7530. LD="${LD-ld} -m elf64_sparc"
  7531. ;;
  7532. esac
  7533. ;;
  7534. esac
  7535. fi
  7536. rm -rf conftest*
  7537. ;;
  7538. *-*-sco3.2v5*)
  7539. # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  7540. SAVE_CFLAGS=$CFLAGS
  7541. CFLAGS="$CFLAGS -belf"
  7542. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
  7543. $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
  7544. if ${lt_cv_cc_needs_belf+:} false; then :
  7545. $as_echo_n "(cached) " >&6
  7546. else
  7547. ac_ext=c
  7548. ac_cpp='$CPP $CPPFLAGS'
  7549. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  7550. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  7551. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  7552. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7553. /* end confdefs.h. */
  7554. int
  7555. main ()
  7556. {
  7557. ;
  7558. return 0;
  7559. }
  7560. _ACEOF
  7561. if ac_fn_c_try_link "$LINENO"; then :
  7562. lt_cv_cc_needs_belf=yes
  7563. else
  7564. lt_cv_cc_needs_belf=no
  7565. fi
  7566. rm -f core conftest.err conftest.$ac_objext \
  7567. conftest$ac_exeext conftest.$ac_ext
  7568. ac_ext=c
  7569. ac_cpp='$CPP $CPPFLAGS'
  7570. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  7571. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  7572. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  7573. fi
  7574. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
  7575. $as_echo "$lt_cv_cc_needs_belf" >&6; }
  7576. if test yes != "$lt_cv_cc_needs_belf"; then
  7577. # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  7578. CFLAGS=$SAVE_CFLAGS
  7579. fi
  7580. ;;
  7581. *-*solaris*)
  7582. # Find out what ABI is being produced by ac_compile, and set linker
  7583. # options accordingly.
  7584. echo 'int i;' > conftest.$ac_ext
  7585. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  7586. (eval $ac_compile) 2>&5
  7587. ac_status=$?
  7588. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  7589. test $ac_status = 0; }; then
  7590. case `/usr/bin/file conftest.o` in
  7591. *64-bit*)
  7592. case $lt_cv_prog_gnu_ld in
  7593. yes*)
  7594. case $host in
  7595. i?86-*-solaris*|x86_64-*-solaris*)
  7596. LD="${LD-ld} -m elf_x86_64"
  7597. ;;
  7598. sparc*-*-solaris*)
  7599. LD="${LD-ld} -m elf64_sparc"
  7600. ;;
  7601. esac
  7602. # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
  7603. if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
  7604. LD=${LD-ld}_sol2
  7605. fi
  7606. ;;
  7607. *)
  7608. if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
  7609. LD="${LD-ld} -64"
  7610. fi
  7611. ;;
  7612. esac
  7613. ;;
  7614. esac
  7615. fi
  7616. rm -rf conftest*
  7617. ;;
  7618. esac
  7619. need_locks=$enable_libtool_lock
  7620. if test -n "$ac_tool_prefix"; then
  7621. # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
  7622. set dummy ${ac_tool_prefix}mt; ac_word=$2
  7623. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7624. $as_echo_n "checking for $ac_word... " >&6; }
  7625. if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
  7626. $as_echo_n "(cached) " >&6
  7627. else
  7628. if test -n "$MANIFEST_TOOL"; then
  7629. ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
  7630. else
  7631. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7632. for as_dir in $PATH
  7633. do
  7634. IFS=$as_save_IFS
  7635. test -z "$as_dir" && as_dir=.
  7636. for ac_exec_ext in '' $ac_executable_extensions; do
  7637. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7638. ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
  7639. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7640. break 2
  7641. fi
  7642. done
  7643. done
  7644. IFS=$as_save_IFS
  7645. fi
  7646. fi
  7647. MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
  7648. if test -n "$MANIFEST_TOOL"; then
  7649. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
  7650. $as_echo "$MANIFEST_TOOL" >&6; }
  7651. else
  7652. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7653. $as_echo "no" >&6; }
  7654. fi
  7655. fi
  7656. if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
  7657. ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
  7658. # Extract the first word of "mt", so it can be a program name with args.
  7659. set dummy mt; ac_word=$2
  7660. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7661. $as_echo_n "checking for $ac_word... " >&6; }
  7662. if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
  7663. $as_echo_n "(cached) " >&6
  7664. else
  7665. if test -n "$ac_ct_MANIFEST_TOOL"; then
  7666. ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
  7667. else
  7668. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7669. for as_dir in $PATH
  7670. do
  7671. IFS=$as_save_IFS
  7672. test -z "$as_dir" && as_dir=.
  7673. for ac_exec_ext in '' $ac_executable_extensions; do
  7674. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7675. ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
  7676. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7677. break 2
  7678. fi
  7679. done
  7680. done
  7681. IFS=$as_save_IFS
  7682. fi
  7683. fi
  7684. ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
  7685. if test -n "$ac_ct_MANIFEST_TOOL"; then
  7686. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
  7687. $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
  7688. else
  7689. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7690. $as_echo "no" >&6; }
  7691. fi
  7692. if test "x$ac_ct_MANIFEST_TOOL" = x; then
  7693. MANIFEST_TOOL=":"
  7694. else
  7695. case $cross_compiling:$ac_tool_warned in
  7696. yes:)
  7697. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7698. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7699. ac_tool_warned=yes ;;
  7700. esac
  7701. MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
  7702. fi
  7703. else
  7704. MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
  7705. fi
  7706. test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
  7707. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
  7708. $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
  7709. if ${lt_cv_path_mainfest_tool+:} false; then :
  7710. $as_echo_n "(cached) " >&6
  7711. else
  7712. lt_cv_path_mainfest_tool=no
  7713. echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
  7714. $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
  7715. cat conftest.err >&5
  7716. if $GREP 'Manifest Tool' conftest.out > /dev/null; then
  7717. lt_cv_path_mainfest_tool=yes
  7718. fi
  7719. rm -f conftest*
  7720. fi
  7721. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
  7722. $as_echo "$lt_cv_path_mainfest_tool" >&6; }
  7723. if test yes != "$lt_cv_path_mainfest_tool"; then
  7724. MANIFEST_TOOL=:
  7725. fi
  7726. case $host_os in
  7727. rhapsody* | darwin*)
  7728. if test -n "$ac_tool_prefix"; then
  7729. # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
  7730. set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
  7731. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7732. $as_echo_n "checking for $ac_word... " >&6; }
  7733. if ${ac_cv_prog_DSYMUTIL+:} false; then :
  7734. $as_echo_n "(cached) " >&6
  7735. else
  7736. if test -n "$DSYMUTIL"; then
  7737. ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
  7738. else
  7739. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7740. for as_dir in $PATH
  7741. do
  7742. IFS=$as_save_IFS
  7743. test -z "$as_dir" && as_dir=.
  7744. for ac_exec_ext in '' $ac_executable_extensions; do
  7745. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7746. ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
  7747. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7748. break 2
  7749. fi
  7750. done
  7751. done
  7752. IFS=$as_save_IFS
  7753. fi
  7754. fi
  7755. DSYMUTIL=$ac_cv_prog_DSYMUTIL
  7756. if test -n "$DSYMUTIL"; then
  7757. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
  7758. $as_echo "$DSYMUTIL" >&6; }
  7759. else
  7760. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7761. $as_echo "no" >&6; }
  7762. fi
  7763. fi
  7764. if test -z "$ac_cv_prog_DSYMUTIL"; then
  7765. ac_ct_DSYMUTIL=$DSYMUTIL
  7766. # Extract the first word of "dsymutil", so it can be a program name with args.
  7767. set dummy dsymutil; ac_word=$2
  7768. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7769. $as_echo_n "checking for $ac_word... " >&6; }
  7770. if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
  7771. $as_echo_n "(cached) " >&6
  7772. else
  7773. if test -n "$ac_ct_DSYMUTIL"; then
  7774. ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
  7775. else
  7776. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7777. for as_dir in $PATH
  7778. do
  7779. IFS=$as_save_IFS
  7780. test -z "$as_dir" && as_dir=.
  7781. for ac_exec_ext in '' $ac_executable_extensions; do
  7782. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7783. ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
  7784. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7785. break 2
  7786. fi
  7787. done
  7788. done
  7789. IFS=$as_save_IFS
  7790. fi
  7791. fi
  7792. ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
  7793. if test -n "$ac_ct_DSYMUTIL"; then
  7794. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
  7795. $as_echo "$ac_ct_DSYMUTIL" >&6; }
  7796. else
  7797. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7798. $as_echo "no" >&6; }
  7799. fi
  7800. if test "x$ac_ct_DSYMUTIL" = x; then
  7801. DSYMUTIL=":"
  7802. else
  7803. case $cross_compiling:$ac_tool_warned in
  7804. yes:)
  7805. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7806. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7807. ac_tool_warned=yes ;;
  7808. esac
  7809. DSYMUTIL=$ac_ct_DSYMUTIL
  7810. fi
  7811. else
  7812. DSYMUTIL="$ac_cv_prog_DSYMUTIL"
  7813. fi
  7814. if test -n "$ac_tool_prefix"; then
  7815. # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
  7816. set dummy ${ac_tool_prefix}nmedit; ac_word=$2
  7817. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7818. $as_echo_n "checking for $ac_word... " >&6; }
  7819. if ${ac_cv_prog_NMEDIT+:} false; then :
  7820. $as_echo_n "(cached) " >&6
  7821. else
  7822. if test -n "$NMEDIT"; then
  7823. ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
  7824. else
  7825. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7826. for as_dir in $PATH
  7827. do
  7828. IFS=$as_save_IFS
  7829. test -z "$as_dir" && as_dir=.
  7830. for ac_exec_ext in '' $ac_executable_extensions; do
  7831. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7832. ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
  7833. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7834. break 2
  7835. fi
  7836. done
  7837. done
  7838. IFS=$as_save_IFS
  7839. fi
  7840. fi
  7841. NMEDIT=$ac_cv_prog_NMEDIT
  7842. if test -n "$NMEDIT"; then
  7843. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
  7844. $as_echo "$NMEDIT" >&6; }
  7845. else
  7846. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7847. $as_echo "no" >&6; }
  7848. fi
  7849. fi
  7850. if test -z "$ac_cv_prog_NMEDIT"; then
  7851. ac_ct_NMEDIT=$NMEDIT
  7852. # Extract the first word of "nmedit", so it can be a program name with args.
  7853. set dummy nmedit; ac_word=$2
  7854. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7855. $as_echo_n "checking for $ac_word... " >&6; }
  7856. if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
  7857. $as_echo_n "(cached) " >&6
  7858. else
  7859. if test -n "$ac_ct_NMEDIT"; then
  7860. ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
  7861. else
  7862. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7863. for as_dir in $PATH
  7864. do
  7865. IFS=$as_save_IFS
  7866. test -z "$as_dir" && as_dir=.
  7867. for ac_exec_ext in '' $ac_executable_extensions; do
  7868. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7869. ac_cv_prog_ac_ct_NMEDIT="nmedit"
  7870. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7871. break 2
  7872. fi
  7873. done
  7874. done
  7875. IFS=$as_save_IFS
  7876. fi
  7877. fi
  7878. ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
  7879. if test -n "$ac_ct_NMEDIT"; then
  7880. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
  7881. $as_echo "$ac_ct_NMEDIT" >&6; }
  7882. else
  7883. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7884. $as_echo "no" >&6; }
  7885. fi
  7886. if test "x$ac_ct_NMEDIT" = x; then
  7887. NMEDIT=":"
  7888. else
  7889. case $cross_compiling:$ac_tool_warned in
  7890. yes:)
  7891. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7892. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7893. ac_tool_warned=yes ;;
  7894. esac
  7895. NMEDIT=$ac_ct_NMEDIT
  7896. fi
  7897. else
  7898. NMEDIT="$ac_cv_prog_NMEDIT"
  7899. fi
  7900. if test -n "$ac_tool_prefix"; then
  7901. # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
  7902. set dummy ${ac_tool_prefix}lipo; ac_word=$2
  7903. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7904. $as_echo_n "checking for $ac_word... " >&6; }
  7905. if ${ac_cv_prog_LIPO+:} false; then :
  7906. $as_echo_n "(cached) " >&6
  7907. else
  7908. if test -n "$LIPO"; then
  7909. ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
  7910. else
  7911. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7912. for as_dir in $PATH
  7913. do
  7914. IFS=$as_save_IFS
  7915. test -z "$as_dir" && as_dir=.
  7916. for ac_exec_ext in '' $ac_executable_extensions; do
  7917. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7918. ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
  7919. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7920. break 2
  7921. fi
  7922. done
  7923. done
  7924. IFS=$as_save_IFS
  7925. fi
  7926. fi
  7927. LIPO=$ac_cv_prog_LIPO
  7928. if test -n "$LIPO"; then
  7929. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
  7930. $as_echo "$LIPO" >&6; }
  7931. else
  7932. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7933. $as_echo "no" >&6; }
  7934. fi
  7935. fi
  7936. if test -z "$ac_cv_prog_LIPO"; then
  7937. ac_ct_LIPO=$LIPO
  7938. # Extract the first word of "lipo", so it can be a program name with args.
  7939. set dummy lipo; ac_word=$2
  7940. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7941. $as_echo_n "checking for $ac_word... " >&6; }
  7942. if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
  7943. $as_echo_n "(cached) " >&6
  7944. else
  7945. if test -n "$ac_ct_LIPO"; then
  7946. ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
  7947. else
  7948. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7949. for as_dir in $PATH
  7950. do
  7951. IFS=$as_save_IFS
  7952. test -z "$as_dir" && as_dir=.
  7953. for ac_exec_ext in '' $ac_executable_extensions; do
  7954. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7955. ac_cv_prog_ac_ct_LIPO="lipo"
  7956. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7957. break 2
  7958. fi
  7959. done
  7960. done
  7961. IFS=$as_save_IFS
  7962. fi
  7963. fi
  7964. ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
  7965. if test -n "$ac_ct_LIPO"; then
  7966. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
  7967. $as_echo "$ac_ct_LIPO" >&6; }
  7968. else
  7969. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7970. $as_echo "no" >&6; }
  7971. fi
  7972. if test "x$ac_ct_LIPO" = x; then
  7973. LIPO=":"
  7974. else
  7975. case $cross_compiling:$ac_tool_warned in
  7976. yes:)
  7977. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7978. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7979. ac_tool_warned=yes ;;
  7980. esac
  7981. LIPO=$ac_ct_LIPO
  7982. fi
  7983. else
  7984. LIPO="$ac_cv_prog_LIPO"
  7985. fi
  7986. if test -n "$ac_tool_prefix"; then
  7987. # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
  7988. set dummy ${ac_tool_prefix}otool; ac_word=$2
  7989. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7990. $as_echo_n "checking for $ac_word... " >&6; }
  7991. if ${ac_cv_prog_OTOOL+:} false; then :
  7992. $as_echo_n "(cached) " >&6
  7993. else
  7994. if test -n "$OTOOL"; then
  7995. ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
  7996. else
  7997. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7998. for as_dir in $PATH
  7999. do
  8000. IFS=$as_save_IFS
  8001. test -z "$as_dir" && as_dir=.
  8002. for ac_exec_ext in '' $ac_executable_extensions; do
  8003. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  8004. ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
  8005. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  8006. break 2
  8007. fi
  8008. done
  8009. done
  8010. IFS=$as_save_IFS
  8011. fi
  8012. fi
  8013. OTOOL=$ac_cv_prog_OTOOL
  8014. if test -n "$OTOOL"; then
  8015. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
  8016. $as_echo "$OTOOL" >&6; }
  8017. else
  8018. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8019. $as_echo "no" >&6; }
  8020. fi
  8021. fi
  8022. if test -z "$ac_cv_prog_OTOOL"; then
  8023. ac_ct_OTOOL=$OTOOL
  8024. # Extract the first word of "otool", so it can be a program name with args.
  8025. set dummy otool; ac_word=$2
  8026. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8027. $as_echo_n "checking for $ac_word... " >&6; }
  8028. if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
  8029. $as_echo_n "(cached) " >&6
  8030. else
  8031. if test -n "$ac_ct_OTOOL"; then
  8032. ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
  8033. else
  8034. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8035. for as_dir in $PATH
  8036. do
  8037. IFS=$as_save_IFS
  8038. test -z "$as_dir" && as_dir=.
  8039. for ac_exec_ext in '' $ac_executable_extensions; do
  8040. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  8041. ac_cv_prog_ac_ct_OTOOL="otool"
  8042. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  8043. break 2
  8044. fi
  8045. done
  8046. done
  8047. IFS=$as_save_IFS
  8048. fi
  8049. fi
  8050. ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
  8051. if test -n "$ac_ct_OTOOL"; then
  8052. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
  8053. $as_echo "$ac_ct_OTOOL" >&6; }
  8054. else
  8055. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8056. $as_echo "no" >&6; }
  8057. fi
  8058. if test "x$ac_ct_OTOOL" = x; then
  8059. OTOOL=":"
  8060. else
  8061. case $cross_compiling:$ac_tool_warned in
  8062. yes:)
  8063. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  8064. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  8065. ac_tool_warned=yes ;;
  8066. esac
  8067. OTOOL=$ac_ct_OTOOL
  8068. fi
  8069. else
  8070. OTOOL="$ac_cv_prog_OTOOL"
  8071. fi
  8072. if test -n "$ac_tool_prefix"; then
  8073. # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
  8074. set dummy ${ac_tool_prefix}otool64; ac_word=$2
  8075. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8076. $as_echo_n "checking for $ac_word... " >&6; }
  8077. if ${ac_cv_prog_OTOOL64+:} false; then :
  8078. $as_echo_n "(cached) " >&6
  8079. else
  8080. if test -n "$OTOOL64"; then
  8081. ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
  8082. else
  8083. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8084. for as_dir in $PATH
  8085. do
  8086. IFS=$as_save_IFS
  8087. test -z "$as_dir" && as_dir=.
  8088. for ac_exec_ext in '' $ac_executable_extensions; do
  8089. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  8090. ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
  8091. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  8092. break 2
  8093. fi
  8094. done
  8095. done
  8096. IFS=$as_save_IFS
  8097. fi
  8098. fi
  8099. OTOOL64=$ac_cv_prog_OTOOL64
  8100. if test -n "$OTOOL64"; then
  8101. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
  8102. $as_echo "$OTOOL64" >&6; }
  8103. else
  8104. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8105. $as_echo "no" >&6; }
  8106. fi
  8107. fi
  8108. if test -z "$ac_cv_prog_OTOOL64"; then
  8109. ac_ct_OTOOL64=$OTOOL64
  8110. # Extract the first word of "otool64", so it can be a program name with args.
  8111. set dummy otool64; ac_word=$2
  8112. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8113. $as_echo_n "checking for $ac_word... " >&6; }
  8114. if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
  8115. $as_echo_n "(cached) " >&6
  8116. else
  8117. if test -n "$ac_ct_OTOOL64"; then
  8118. ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
  8119. else
  8120. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8121. for as_dir in $PATH
  8122. do
  8123. IFS=$as_save_IFS
  8124. test -z "$as_dir" && as_dir=.
  8125. for ac_exec_ext in '' $ac_executable_extensions; do
  8126. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  8127. ac_cv_prog_ac_ct_OTOOL64="otool64"
  8128. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  8129. break 2
  8130. fi
  8131. done
  8132. done
  8133. IFS=$as_save_IFS
  8134. fi
  8135. fi
  8136. ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
  8137. if test -n "$ac_ct_OTOOL64"; then
  8138. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
  8139. $as_echo "$ac_ct_OTOOL64" >&6; }
  8140. else
  8141. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8142. $as_echo "no" >&6; }
  8143. fi
  8144. if test "x$ac_ct_OTOOL64" = x; then
  8145. OTOOL64=":"
  8146. else
  8147. case $cross_compiling:$ac_tool_warned in
  8148. yes:)
  8149. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  8150. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  8151. ac_tool_warned=yes ;;
  8152. esac
  8153. OTOOL64=$ac_ct_OTOOL64
  8154. fi
  8155. else
  8156. OTOOL64="$ac_cv_prog_OTOOL64"
  8157. fi
  8158. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
  8159. $as_echo_n "checking for -single_module linker flag... " >&6; }
  8160. if ${lt_cv_apple_cc_single_mod+:} false; then :
  8161. $as_echo_n "(cached) " >&6
  8162. else
  8163. lt_cv_apple_cc_single_mod=no
  8164. if test -z "$LT_MULTI_MODULE"; then
  8165. # By default we will add the -single_module flag. You can override
  8166. # by either setting the environment variable LT_MULTI_MODULE
  8167. # non-empty at configure time, or by adding -multi_module to the
  8168. # link flags.
  8169. rm -rf libconftest.dylib*
  8170. echo "int foo(void){return 1;}" > conftest.c
  8171. echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  8172. -dynamiclib -Wl,-single_module conftest.c" >&5
  8173. $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  8174. -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
  8175. _lt_result=$?
  8176. # If there is a non-empty error log, and "single_module"
  8177. # appears in it, assume the flag caused a linker warning
  8178. if test -s conftest.err && $GREP single_module conftest.err; then
  8179. cat conftest.err >&5
  8180. # Otherwise, if the output was created with a 0 exit code from
  8181. # the compiler, it worked.
  8182. elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
  8183. lt_cv_apple_cc_single_mod=yes
  8184. else
  8185. cat conftest.err >&5
  8186. fi
  8187. rm -rf libconftest.dylib*
  8188. rm -f conftest.*
  8189. fi
  8190. fi
  8191. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
  8192. $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
  8193. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
  8194. $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
  8195. if ${lt_cv_ld_exported_symbols_list+:} false; then :
  8196. $as_echo_n "(cached) " >&6
  8197. else
  8198. lt_cv_ld_exported_symbols_list=no
  8199. save_LDFLAGS=$LDFLAGS
  8200. echo "_main" > conftest.sym
  8201. LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
  8202. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8203. /* end confdefs.h. */
  8204. int
  8205. main ()
  8206. {
  8207. ;
  8208. return 0;
  8209. }
  8210. _ACEOF
  8211. if ac_fn_c_try_link "$LINENO"; then :
  8212. lt_cv_ld_exported_symbols_list=yes
  8213. else
  8214. lt_cv_ld_exported_symbols_list=no
  8215. fi
  8216. rm -f core conftest.err conftest.$ac_objext \
  8217. conftest$ac_exeext conftest.$ac_ext
  8218. LDFLAGS=$save_LDFLAGS
  8219. fi
  8220. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
  8221. $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
  8222. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
  8223. $as_echo_n "checking for -force_load linker flag... " >&6; }
  8224. if ${lt_cv_ld_force_load+:} false; then :
  8225. $as_echo_n "(cached) " >&6
  8226. else
  8227. lt_cv_ld_force_load=no
  8228. cat > conftest.c << _LT_EOF
  8229. int forced_loaded() { return 2;}
  8230. _LT_EOF
  8231. echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
  8232. $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
  8233. echo "$AR cru libconftest.a conftest.o" >&5
  8234. $AR cru libconftest.a conftest.o 2>&5
  8235. echo "$RANLIB libconftest.a" >&5
  8236. $RANLIB libconftest.a 2>&5
  8237. cat > conftest.c << _LT_EOF
  8238. int main() { return 0;}
  8239. _LT_EOF
  8240. echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
  8241. $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
  8242. _lt_result=$?
  8243. if test -s conftest.err && $GREP force_load conftest.err; then
  8244. cat conftest.err >&5
  8245. elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
  8246. lt_cv_ld_force_load=yes
  8247. else
  8248. cat conftest.err >&5
  8249. fi
  8250. rm -f conftest.err libconftest.a conftest conftest.c
  8251. rm -rf conftest.dSYM
  8252. fi
  8253. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
  8254. $as_echo "$lt_cv_ld_force_load" >&6; }
  8255. case $host_os in
  8256. rhapsody* | darwin1.[012])
  8257. _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
  8258. darwin1.*)
  8259. _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
  8260. darwin*) # darwin 5.x on
  8261. # if running on 10.5 or later, the deployment target defaults
  8262. # to the OS version, if on x86, and 10.4, the deployment
  8263. # target defaults to 10.4. Don't you love it?
  8264. case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
  8265. 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
  8266. _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
  8267. 10.[012][,.]*)
  8268. _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
  8269. 10.*)
  8270. _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
  8271. esac
  8272. ;;
  8273. esac
  8274. if test yes = "$lt_cv_apple_cc_single_mod"; then
  8275. _lt_dar_single_mod='$single_module'
  8276. fi
  8277. if test yes = "$lt_cv_ld_exported_symbols_list"; then
  8278. _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
  8279. else
  8280. _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
  8281. fi
  8282. if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
  8283. _lt_dsymutil='~$DSYMUTIL $lib || :'
  8284. else
  8285. _lt_dsymutil=
  8286. fi
  8287. ;;
  8288. esac
  8289. # func_munge_path_list VARIABLE PATH
  8290. # -----------------------------------
  8291. # VARIABLE is name of variable containing _space_ separated list of
  8292. # directories to be munged by the contents of PATH, which is string
  8293. # having a format:
  8294. # "DIR[:DIR]:"
  8295. # string "DIR[ DIR]" will be prepended to VARIABLE
  8296. # ":DIR[:DIR]"
  8297. # string "DIR[ DIR]" will be appended to VARIABLE
  8298. # "DIRP[:DIRP]::[DIRA:]DIRA"
  8299. # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
  8300. # "DIRA[ DIRA]" will be appended to VARIABLE
  8301. # "DIR[:DIR]"
  8302. # VARIABLE will be replaced by "DIR[ DIR]"
  8303. func_munge_path_list ()
  8304. {
  8305. case x$2 in
  8306. x)
  8307. ;;
  8308. *:)
  8309. eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
  8310. ;;
  8311. x:*)
  8312. eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
  8313. ;;
  8314. *::*)
  8315. eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
  8316. eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
  8317. ;;
  8318. *)
  8319. eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
  8320. ;;
  8321. esac
  8322. }
  8323. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  8324. $as_echo_n "checking for ANSI C header files... " >&6; }
  8325. if ${ac_cv_header_stdc+:} false; then :
  8326. $as_echo_n "(cached) " >&6
  8327. else
  8328. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8329. /* end confdefs.h. */
  8330. #include <stdlib.h>
  8331. #include <stdarg.h>
  8332. #include <string.h>
  8333. #include <float.h>
  8334. int
  8335. main ()
  8336. {
  8337. ;
  8338. return 0;
  8339. }
  8340. _ACEOF
  8341. if ac_fn_c_try_compile "$LINENO"; then :
  8342. ac_cv_header_stdc=yes
  8343. else
  8344. ac_cv_header_stdc=no
  8345. fi
  8346. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8347. if test $ac_cv_header_stdc = yes; then
  8348. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  8349. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8350. /* end confdefs.h. */
  8351. #include <string.h>
  8352. _ACEOF
  8353. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  8354. $EGREP "memchr" >/dev/null 2>&1; then :
  8355. else
  8356. ac_cv_header_stdc=no
  8357. fi
  8358. rm -f conftest*
  8359. fi
  8360. if test $ac_cv_header_stdc = yes; then
  8361. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  8362. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8363. /* end confdefs.h. */
  8364. #include <stdlib.h>
  8365. _ACEOF
  8366. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  8367. $EGREP "free" >/dev/null 2>&1; then :
  8368. else
  8369. ac_cv_header_stdc=no
  8370. fi
  8371. rm -f conftest*
  8372. fi
  8373. if test $ac_cv_header_stdc = yes; then
  8374. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  8375. if test "$cross_compiling" = yes; then :
  8376. :
  8377. else
  8378. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8379. /* end confdefs.h. */
  8380. #include <ctype.h>
  8381. #include <stdlib.h>
  8382. #if ((' ' & 0x0FF) == 0x020)
  8383. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  8384. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  8385. #else
  8386. # define ISLOWER(c) \
  8387. (('a' <= (c) && (c) <= 'i') \
  8388. || ('j' <= (c) && (c) <= 'r') \
  8389. || ('s' <= (c) && (c) <= 'z'))
  8390. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  8391. #endif
  8392. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  8393. int
  8394. main ()
  8395. {
  8396. int i;
  8397. for (i = 0; i < 256; i++)
  8398. if (XOR (islower (i), ISLOWER (i))
  8399. || toupper (i) != TOUPPER (i))
  8400. return 2;
  8401. return 0;
  8402. }
  8403. _ACEOF
  8404. if ac_fn_c_try_run "$LINENO"; then :
  8405. else
  8406. ac_cv_header_stdc=no
  8407. fi
  8408. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  8409. conftest.$ac_objext conftest.beam conftest.$ac_ext
  8410. fi
  8411. fi
  8412. fi
  8413. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  8414. $as_echo "$ac_cv_header_stdc" >&6; }
  8415. if test $ac_cv_header_stdc = yes; then
  8416. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  8417. fi
  8418. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  8419. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  8420. inttypes.h stdint.h unistd.h
  8421. do :
  8422. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  8423. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  8424. "
  8425. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  8426. cat >>confdefs.h <<_ACEOF
  8427. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  8428. _ACEOF
  8429. fi
  8430. done
  8431. for ac_header in dlfcn.h
  8432. do :
  8433. ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
  8434. "
  8435. if test "x$ac_cv_header_dlfcn_h" = xyes; then :
  8436. cat >>confdefs.h <<_ACEOF
  8437. #define HAVE_DLFCN_H 1
  8438. _ACEOF
  8439. fi
  8440. done
  8441. func_stripname_cnf ()
  8442. {
  8443. case $2 in
  8444. .*) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%\\\\$2\$%%"`;;
  8445. *) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%$2\$%%"`;;
  8446. esac
  8447. } # func_stripname_cnf
  8448. # Set options
  8449. enable_dlopen=no
  8450. enable_win32_dll=no
  8451. # Check whether --enable-shared was given.
  8452. if test "${enable_shared+set}" = set; then :
  8453. enableval=$enable_shared; p=${PACKAGE-default}
  8454. case $enableval in
  8455. yes) enable_shared=yes ;;
  8456. no) enable_shared=no ;;
  8457. *)
  8458. enable_shared=no
  8459. # Look at the argument we got. We use all the common list separators.
  8460. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
  8461. for pkg in $enableval; do
  8462. IFS=$lt_save_ifs
  8463. if test "X$pkg" = "X$p"; then
  8464. enable_shared=yes
  8465. fi
  8466. done
  8467. IFS=$lt_save_ifs
  8468. ;;
  8469. esac
  8470. else
  8471. enable_shared=yes
  8472. fi
  8473. # Check whether --enable-static was given.
  8474. if test "${enable_static+set}" = set; then :
  8475. enableval=$enable_static; p=${PACKAGE-default}
  8476. case $enableval in
  8477. yes) enable_static=yes ;;
  8478. no) enable_static=no ;;
  8479. *)
  8480. enable_static=no
  8481. # Look at the argument we got. We use all the common list separators.
  8482. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
  8483. for pkg in $enableval; do
  8484. IFS=$lt_save_ifs
  8485. if test "X$pkg" = "X$p"; then
  8486. enable_static=yes
  8487. fi
  8488. done
  8489. IFS=$lt_save_ifs
  8490. ;;
  8491. esac
  8492. else
  8493. enable_static=yes
  8494. fi
  8495. # Check whether --with-pic was given.
  8496. if test "${with_pic+set}" = set; then :
  8497. withval=$with_pic; lt_p=${PACKAGE-default}
  8498. case $withval in
  8499. yes|no) pic_mode=$withval ;;
  8500. *)
  8501. pic_mode=default
  8502. # Look at the argument we got. We use all the common list separators.
  8503. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
  8504. for lt_pkg in $withval; do
  8505. IFS=$lt_save_ifs
  8506. if test "X$lt_pkg" = "X$lt_p"; then
  8507. pic_mode=yes
  8508. fi
  8509. done
  8510. IFS=$lt_save_ifs
  8511. ;;
  8512. esac
  8513. else
  8514. pic_mode=default
  8515. fi
  8516. # Check whether --enable-fast-install was given.
  8517. if test "${enable_fast_install+set}" = set; then :
  8518. enableval=$enable_fast_install; p=${PACKAGE-default}
  8519. case $enableval in
  8520. yes) enable_fast_install=yes ;;
  8521. no) enable_fast_install=no ;;
  8522. *)
  8523. enable_fast_install=no
  8524. # Look at the argument we got. We use all the common list separators.
  8525. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
  8526. for pkg in $enableval; do
  8527. IFS=$lt_save_ifs
  8528. if test "X$pkg" = "X$p"; then
  8529. enable_fast_install=yes
  8530. fi
  8531. done
  8532. IFS=$lt_save_ifs
  8533. ;;
  8534. esac
  8535. else
  8536. enable_fast_install=yes
  8537. fi
  8538. shared_archive_member_spec=
  8539. case $host,$enable_shared in
  8540. power*-*-aix[5-9]*,yes)
  8541. { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
  8542. $as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
  8543. # Check whether --with-aix-soname was given.
  8544. if test "${with_aix_soname+set}" = set; then :
  8545. withval=$with_aix_soname; case $withval in
  8546. aix|svr4|both)
  8547. ;;
  8548. *)
  8549. as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
  8550. ;;
  8551. esac
  8552. lt_cv_with_aix_soname=$with_aix_soname
  8553. else
  8554. if ${lt_cv_with_aix_soname+:} false; then :
  8555. $as_echo_n "(cached) " >&6
  8556. else
  8557. lt_cv_with_aix_soname=aix
  8558. fi
  8559. with_aix_soname=$lt_cv_with_aix_soname
  8560. fi
  8561. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
  8562. $as_echo "$with_aix_soname" >&6; }
  8563. if test aix != "$with_aix_soname"; then
  8564. # For the AIX way of multilib, we name the shared archive member
  8565. # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
  8566. # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
  8567. # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
  8568. # the AIX toolchain works better with OBJECT_MODE set (default 32).
  8569. if test 64 = "${OBJECT_MODE-32}"; then
  8570. shared_archive_member_spec=shr_64
  8571. else
  8572. shared_archive_member_spec=shr
  8573. fi
  8574. fi
  8575. ;;
  8576. *)
  8577. with_aix_soname=aix
  8578. ;;
  8579. esac
  8580. # This can be used to rebuild libtool when needed
  8581. LIBTOOL_DEPS=$ltmain
  8582. # Always use our own libtool.
  8583. LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  8584. test -z "$LN_S" && LN_S="ln -s"
  8585. if test -n "${ZSH_VERSION+set}"; then
  8586. setopt NO_GLOB_SUBST
  8587. fi
  8588. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
  8589. $as_echo_n "checking for objdir... " >&6; }
  8590. if ${lt_cv_objdir+:} false; then :
  8591. $as_echo_n "(cached) " >&6
  8592. else
  8593. rm -f .libs 2>/dev/null
  8594. mkdir .libs 2>/dev/null
  8595. if test -d .libs; then
  8596. lt_cv_objdir=.libs
  8597. else
  8598. # MS-DOS does not allow filenames that begin with a dot.
  8599. lt_cv_objdir=_libs
  8600. fi
  8601. rmdir .libs 2>/dev/null
  8602. fi
  8603. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
  8604. $as_echo "$lt_cv_objdir" >&6; }
  8605. objdir=$lt_cv_objdir
  8606. cat >>confdefs.h <<_ACEOF
  8607. #define LT_OBJDIR "$lt_cv_objdir/"
  8608. _ACEOF
  8609. case $host_os in
  8610. aix3*)
  8611. # AIX sometimes has problems with the GCC collect2 program. For some
  8612. # reason, if we set the COLLECT_NAMES environment variable, the problems
  8613. # vanish in a puff of smoke.
  8614. if test set != "${COLLECT_NAMES+set}"; then
  8615. COLLECT_NAMES=
  8616. export COLLECT_NAMES
  8617. fi
  8618. ;;
  8619. esac
  8620. # Global variables:
  8621. ofile=libtool
  8622. can_build_shared=yes
  8623. # All known linkers require a '.a' archive for static linking (except MSVC,
  8624. # which needs '.lib').
  8625. libext=a
  8626. with_gnu_ld=$lt_cv_prog_gnu_ld
  8627. old_CC=$CC
  8628. old_CFLAGS=$CFLAGS
  8629. # Set sane defaults for various variables
  8630. test -z "$CC" && CC=cc
  8631. test -z "$LTCC" && LTCC=$CC
  8632. test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  8633. test -z "$LD" && LD=ld
  8634. test -z "$ac_objext" && ac_objext=o
  8635. func_cc_basename $compiler
  8636. cc_basename=$func_cc_basename_result
  8637. # Only perform the check for file, if the check method requires it
  8638. test -z "$MAGIC_CMD" && MAGIC_CMD=file
  8639. case $deplibs_check_method in
  8640. file_magic*)
  8641. if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  8642. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
  8643. $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
  8644. if ${lt_cv_path_MAGIC_CMD+:} false; then :
  8645. $as_echo_n "(cached) " >&6
  8646. else
  8647. case $MAGIC_CMD in
  8648. [\\/*] | ?:[\\/]*)
  8649. lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
  8650. ;;
  8651. *)
  8652. lt_save_MAGIC_CMD=$MAGIC_CMD
  8653. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  8654. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  8655. for ac_dir in $ac_dummy; do
  8656. IFS=$lt_save_ifs
  8657. test -z "$ac_dir" && ac_dir=.
  8658. if test -f "$ac_dir/${ac_tool_prefix}file"; then
  8659. lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
  8660. if test -n "$file_magic_test_file"; then
  8661. case $deplibs_check_method in
  8662. "file_magic "*)
  8663. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  8664. MAGIC_CMD=$lt_cv_path_MAGIC_CMD
  8665. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  8666. $EGREP "$file_magic_regex" > /dev/null; then
  8667. :
  8668. else
  8669. cat <<_LT_EOF 1>&2
  8670. *** Warning: the command libtool uses to detect shared libraries,
  8671. *** $file_magic_cmd, produces output that libtool cannot recognize.
  8672. *** The result is that libtool may fail to recognize shared libraries
  8673. *** as such. This will affect the creation of libtool libraries that
  8674. *** depend on shared libraries, but programs linked with such libtool
  8675. *** libraries will work regardless of this problem. Nevertheless, you
  8676. *** may want to report the problem to your system manager and/or to
  8677. *** bug-libtool@gnu.org
  8678. _LT_EOF
  8679. fi ;;
  8680. esac
  8681. fi
  8682. break
  8683. fi
  8684. done
  8685. IFS=$lt_save_ifs
  8686. MAGIC_CMD=$lt_save_MAGIC_CMD
  8687. ;;
  8688. esac
  8689. fi
  8690. MAGIC_CMD=$lt_cv_path_MAGIC_CMD
  8691. if test -n "$MAGIC_CMD"; then
  8692. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  8693. $as_echo "$MAGIC_CMD" >&6; }
  8694. else
  8695. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8696. $as_echo "no" >&6; }
  8697. fi
  8698. if test -z "$lt_cv_path_MAGIC_CMD"; then
  8699. if test -n "$ac_tool_prefix"; then
  8700. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
  8701. $as_echo_n "checking for file... " >&6; }
  8702. if ${lt_cv_path_MAGIC_CMD+:} false; then :
  8703. $as_echo_n "(cached) " >&6
  8704. else
  8705. case $MAGIC_CMD in
  8706. [\\/*] | ?:[\\/]*)
  8707. lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
  8708. ;;
  8709. *)
  8710. lt_save_MAGIC_CMD=$MAGIC_CMD
  8711. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  8712. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  8713. for ac_dir in $ac_dummy; do
  8714. IFS=$lt_save_ifs
  8715. test -z "$ac_dir" && ac_dir=.
  8716. if test -f "$ac_dir/file"; then
  8717. lt_cv_path_MAGIC_CMD=$ac_dir/"file"
  8718. if test -n "$file_magic_test_file"; then
  8719. case $deplibs_check_method in
  8720. "file_magic "*)
  8721. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  8722. MAGIC_CMD=$lt_cv_path_MAGIC_CMD
  8723. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  8724. $EGREP "$file_magic_regex" > /dev/null; then
  8725. :
  8726. else
  8727. cat <<_LT_EOF 1>&2
  8728. *** Warning: the command libtool uses to detect shared libraries,
  8729. *** $file_magic_cmd, produces output that libtool cannot recognize.
  8730. *** The result is that libtool may fail to recognize shared libraries
  8731. *** as such. This will affect the creation of libtool libraries that
  8732. *** depend on shared libraries, but programs linked with such libtool
  8733. *** libraries will work regardless of this problem. Nevertheless, you
  8734. *** may want to report the problem to your system manager and/or to
  8735. *** bug-libtool@gnu.org
  8736. _LT_EOF
  8737. fi ;;
  8738. esac
  8739. fi
  8740. break
  8741. fi
  8742. done
  8743. IFS=$lt_save_ifs
  8744. MAGIC_CMD=$lt_save_MAGIC_CMD
  8745. ;;
  8746. esac
  8747. fi
  8748. MAGIC_CMD=$lt_cv_path_MAGIC_CMD
  8749. if test -n "$MAGIC_CMD"; then
  8750. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  8751. $as_echo "$MAGIC_CMD" >&6; }
  8752. else
  8753. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8754. $as_echo "no" >&6; }
  8755. fi
  8756. else
  8757. MAGIC_CMD=:
  8758. fi
  8759. fi
  8760. fi
  8761. ;;
  8762. esac
  8763. # Use C for the default configuration in the libtool script
  8764. lt_save_CC=$CC
  8765. ac_ext=c
  8766. ac_cpp='$CPP $CPPFLAGS'
  8767. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  8768. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  8769. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  8770. # Source file extension for C test sources.
  8771. ac_ext=c
  8772. # Object file extension for compiled C test sources.
  8773. objext=o
  8774. objext=$objext
  8775. # Code to be used in simple compile tests
  8776. lt_simple_compile_test_code="int some_variable = 0;"
  8777. # Code to be used in simple link tests
  8778. lt_simple_link_test_code='int main(){return(0);}'
  8779. # If no C compiler was specified, use CC.
  8780. LTCC=${LTCC-"$CC"}
  8781. # If no C compiler flags were specified, use CFLAGS.
  8782. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  8783. # Allow CC to be a program name with arguments.
  8784. compiler=$CC
  8785. # Save the default compiler, since it gets overwritten when the other
  8786. # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
  8787. compiler_DEFAULT=$CC
  8788. # save warnings/boilerplate of simple test code
  8789. ac_outfile=conftest.$ac_objext
  8790. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  8791. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  8792. _lt_compiler_boilerplate=`cat conftest.err`
  8793. $RM conftest*
  8794. ac_outfile=conftest.$ac_objext
  8795. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  8796. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  8797. _lt_linker_boilerplate=`cat conftest.err`
  8798. $RM -r conftest*
  8799. ## CAVEAT EMPTOR:
  8800. ## There is no encapsulation within the following macros, do not change
  8801. ## the running order or otherwise move them around unless you know exactly
  8802. ## what you are doing...
  8803. if test -n "$compiler"; then
  8804. lt_prog_compiler_no_builtin_flag=
  8805. if test yes = "$GCC"; then
  8806. case $cc_basename in
  8807. nvcc*)
  8808. lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
  8809. *)
  8810. lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
  8811. esac
  8812. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  8813. $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
  8814. if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
  8815. $as_echo_n "(cached) " >&6
  8816. else
  8817. lt_cv_prog_compiler_rtti_exceptions=no
  8818. ac_outfile=conftest.$ac_objext
  8819. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8820. lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
  8821. # Insert the option either (1) after the last *FLAGS variable, or
  8822. # (2) before a word containing "conftest.", or (3) at the end.
  8823. # Note that $ac_compile itself does not contain backslashes and begins
  8824. # with a dollar sign (not a hyphen), so the echo should work correctly.
  8825. # The option is referenced via a variable to avoid confusing sed.
  8826. lt_compile=`echo "$ac_compile" | $SED \
  8827. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  8828. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  8829. -e 's:$: $lt_compiler_flag:'`
  8830. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  8831. (eval "$lt_compile" 2>conftest.err)
  8832. ac_status=$?
  8833. cat conftest.err >&5
  8834. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8835. if (exit $ac_status) && test -s "$ac_outfile"; then
  8836. # The compiler can only warn and ignore the option if not recognized
  8837. # So say no if there are warnings other than the usual output.
  8838. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  8839. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  8840. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  8841. lt_cv_prog_compiler_rtti_exceptions=yes
  8842. fi
  8843. fi
  8844. $RM conftest*
  8845. fi
  8846. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  8847. $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
  8848. if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
  8849. lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
  8850. else
  8851. :
  8852. fi
  8853. fi
  8854. lt_prog_compiler_wl=
  8855. lt_prog_compiler_pic=
  8856. lt_prog_compiler_static=
  8857. if test yes = "$GCC"; then
  8858. lt_prog_compiler_wl='-Wl,'
  8859. lt_prog_compiler_static='-static'
  8860. case $host_os in
  8861. aix*)
  8862. # All AIX code is PIC.
  8863. if test ia64 = "$host_cpu"; then
  8864. # AIX 5 now supports IA64 processor
  8865. lt_prog_compiler_static='-Bstatic'
  8866. fi
  8867. lt_prog_compiler_pic='-fPIC'
  8868. ;;
  8869. amigaos*)
  8870. case $host_cpu in
  8871. powerpc)
  8872. # see comment about AmigaOS4 .so support
  8873. lt_prog_compiler_pic='-fPIC'
  8874. ;;
  8875. m68k)
  8876. # FIXME: we need at least 68020 code to build shared libraries, but
  8877. # adding the '-m68020' flag to GCC prevents building anything better,
  8878. # like '-m68040'.
  8879. lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
  8880. ;;
  8881. esac
  8882. ;;
  8883. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  8884. # PIC is the default for these OSes.
  8885. ;;
  8886. mingw* | cygwin* | pw32* | os2* | cegcc*)
  8887. # This hack is so that the source file can tell whether it is being
  8888. # built for inclusion in a dll (and should export symbols for example).
  8889. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  8890. # (--disable-auto-import) libraries
  8891. lt_prog_compiler_pic='-DDLL_EXPORT'
  8892. case $host_os in
  8893. os2*)
  8894. lt_prog_compiler_static='$wl-static'
  8895. ;;
  8896. esac
  8897. ;;
  8898. darwin* | rhapsody*)
  8899. # PIC is the default on this platform
  8900. # Common symbols not allowed in MH_DYLIB files
  8901. lt_prog_compiler_pic='-fno-common'
  8902. ;;
  8903. haiku*)
  8904. # PIC is the default for Haiku.
  8905. # The "-static" flag exists, but is broken.
  8906. lt_prog_compiler_static=
  8907. ;;
  8908. hpux*)
  8909. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  8910. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  8911. # sets the default TLS model and affects inlining.
  8912. case $host_cpu in
  8913. hppa*64*)
  8914. # +Z the default
  8915. ;;
  8916. *)
  8917. lt_prog_compiler_pic='-fPIC'
  8918. ;;
  8919. esac
  8920. ;;
  8921. interix[3-9]*)
  8922. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  8923. # Instead, we relocate shared libraries at runtime.
  8924. ;;
  8925. msdosdjgpp*)
  8926. # Just because we use GCC doesn't mean we suddenly get shared libraries
  8927. # on systems that don't support them.
  8928. lt_prog_compiler_can_build_shared=no
  8929. enable_shared=no
  8930. ;;
  8931. *nto* | *qnx*)
  8932. # QNX uses GNU C++, but need to define -shared option too, otherwise
  8933. # it will coredump.
  8934. lt_prog_compiler_pic='-fPIC -shared'
  8935. ;;
  8936. sysv4*MP*)
  8937. if test -d /usr/nec; then
  8938. lt_prog_compiler_pic=-Kconform_pic
  8939. fi
  8940. ;;
  8941. *)
  8942. lt_prog_compiler_pic='-fPIC'
  8943. ;;
  8944. esac
  8945. case $cc_basename in
  8946. nvcc*) # Cuda Compiler Driver 2.2
  8947. lt_prog_compiler_wl='-Xlinker '
  8948. if test -n "$lt_prog_compiler_pic"; then
  8949. lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
  8950. fi
  8951. ;;
  8952. esac
  8953. else
  8954. # PORTME Check for flag to pass linker flags through the system compiler.
  8955. case $host_os in
  8956. aix*)
  8957. lt_prog_compiler_wl='-Wl,'
  8958. if test ia64 = "$host_cpu"; then
  8959. # AIX 5 now supports IA64 processor
  8960. lt_prog_compiler_static='-Bstatic'
  8961. else
  8962. lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
  8963. fi
  8964. ;;
  8965. darwin* | rhapsody*)
  8966. # PIC is the default on this platform
  8967. # Common symbols not allowed in MH_DYLIB files
  8968. lt_prog_compiler_pic='-fno-common'
  8969. case $cc_basename in
  8970. nagfor*)
  8971. # NAG Fortran compiler
  8972. lt_prog_compiler_wl='-Wl,-Wl,,'
  8973. lt_prog_compiler_pic='-PIC'
  8974. lt_prog_compiler_static='-Bstatic'
  8975. ;;
  8976. esac
  8977. ;;
  8978. mingw* | cygwin* | pw32* | os2* | cegcc*)
  8979. # This hack is so that the source file can tell whether it is being
  8980. # built for inclusion in a dll (and should export symbols for example).
  8981. lt_prog_compiler_pic='-DDLL_EXPORT'
  8982. case $host_os in
  8983. os2*)
  8984. lt_prog_compiler_static='$wl-static'
  8985. ;;
  8986. esac
  8987. ;;
  8988. hpux9* | hpux10* | hpux11*)
  8989. lt_prog_compiler_wl='-Wl,'
  8990. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  8991. # not for PA HP-UX.
  8992. case $host_cpu in
  8993. hppa*64*|ia64*)
  8994. # +Z the default
  8995. ;;
  8996. *)
  8997. lt_prog_compiler_pic='+Z'
  8998. ;;
  8999. esac
  9000. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  9001. lt_prog_compiler_static='$wl-a ${wl}archive'
  9002. ;;
  9003. irix5* | irix6* | nonstopux*)
  9004. lt_prog_compiler_wl='-Wl,'
  9005. # PIC (with -KPIC) is the default.
  9006. lt_prog_compiler_static='-non_shared'
  9007. ;;
  9008. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  9009. case $cc_basename in
  9010. # old Intel for x86_64, which still supported -KPIC.
  9011. ecc*)
  9012. lt_prog_compiler_wl='-Wl,'
  9013. lt_prog_compiler_pic='-KPIC'
  9014. lt_prog_compiler_static='-static'
  9015. ;;
  9016. # icc used to be incompatible with GCC.
  9017. # ICC 10 doesn't accept -KPIC any more.
  9018. icc* | ifort*)
  9019. lt_prog_compiler_wl='-Wl,'
  9020. lt_prog_compiler_pic='-fPIC'
  9021. lt_prog_compiler_static='-static'
  9022. ;;
  9023. # Lahey Fortran 8.1.
  9024. lf95*)
  9025. lt_prog_compiler_wl='-Wl,'
  9026. lt_prog_compiler_pic='--shared'
  9027. lt_prog_compiler_static='--static'
  9028. ;;
  9029. nagfor*)
  9030. # NAG Fortran compiler
  9031. lt_prog_compiler_wl='-Wl,-Wl,,'
  9032. lt_prog_compiler_pic='-PIC'
  9033. lt_prog_compiler_static='-Bstatic'
  9034. ;;
  9035. tcc*)
  9036. # Fabrice Bellard et al's Tiny C Compiler
  9037. lt_prog_compiler_wl='-Wl,'
  9038. lt_prog_compiler_pic='-fPIC'
  9039. lt_prog_compiler_static='-static'
  9040. ;;
  9041. pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
  9042. # Portland Group compilers (*not* the Pentium gcc compiler,
  9043. # which looks to be a dead project)
  9044. lt_prog_compiler_wl='-Wl,'
  9045. lt_prog_compiler_pic='-fpic'
  9046. lt_prog_compiler_static='-Bstatic'
  9047. ;;
  9048. ccc*)
  9049. lt_prog_compiler_wl='-Wl,'
  9050. # All Alpha code is PIC.
  9051. lt_prog_compiler_static='-non_shared'
  9052. ;;
  9053. xl* | bgxl* | bgf* | mpixl*)
  9054. # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
  9055. lt_prog_compiler_wl='-Wl,'
  9056. lt_prog_compiler_pic='-qpic'
  9057. lt_prog_compiler_static='-qstaticlink'
  9058. ;;
  9059. *)
  9060. case `$CC -V 2>&1 | sed 5q` in
  9061. *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
  9062. # Sun Fortran 8.3 passes all unrecognized flags to the linker
  9063. lt_prog_compiler_pic='-KPIC'
  9064. lt_prog_compiler_static='-Bstatic'
  9065. lt_prog_compiler_wl=''
  9066. ;;
  9067. *Sun\ F* | *Sun*Fortran*)
  9068. lt_prog_compiler_pic='-KPIC'
  9069. lt_prog_compiler_static='-Bstatic'
  9070. lt_prog_compiler_wl='-Qoption ld '
  9071. ;;
  9072. *Sun\ C*)
  9073. # Sun C 5.9
  9074. lt_prog_compiler_pic='-KPIC'
  9075. lt_prog_compiler_static='-Bstatic'
  9076. lt_prog_compiler_wl='-Wl,'
  9077. ;;
  9078. *Intel*\ [CF]*Compiler*)
  9079. lt_prog_compiler_wl='-Wl,'
  9080. lt_prog_compiler_pic='-fPIC'
  9081. lt_prog_compiler_static='-static'
  9082. ;;
  9083. *Portland\ Group*)
  9084. lt_prog_compiler_wl='-Wl,'
  9085. lt_prog_compiler_pic='-fpic'
  9086. lt_prog_compiler_static='-Bstatic'
  9087. ;;
  9088. esac
  9089. ;;
  9090. esac
  9091. ;;
  9092. newsos6)
  9093. lt_prog_compiler_pic='-KPIC'
  9094. lt_prog_compiler_static='-Bstatic'
  9095. ;;
  9096. *nto* | *qnx*)
  9097. # QNX uses GNU C++, but need to define -shared option too, otherwise
  9098. # it will coredump.
  9099. lt_prog_compiler_pic='-fPIC -shared'
  9100. ;;
  9101. osf3* | osf4* | osf5*)
  9102. lt_prog_compiler_wl='-Wl,'
  9103. # All OSF/1 code is PIC.
  9104. lt_prog_compiler_static='-non_shared'
  9105. ;;
  9106. rdos*)
  9107. lt_prog_compiler_static='-non_shared'
  9108. ;;
  9109. solaris*)
  9110. lt_prog_compiler_pic='-KPIC'
  9111. lt_prog_compiler_static='-Bstatic'
  9112. case $cc_basename in
  9113. f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
  9114. lt_prog_compiler_wl='-Qoption ld ';;
  9115. *)
  9116. lt_prog_compiler_wl='-Wl,';;
  9117. esac
  9118. ;;
  9119. sunos4*)
  9120. lt_prog_compiler_wl='-Qoption ld '
  9121. lt_prog_compiler_pic='-PIC'
  9122. lt_prog_compiler_static='-Bstatic'
  9123. ;;
  9124. sysv4 | sysv4.2uw2* | sysv4.3*)
  9125. lt_prog_compiler_wl='-Wl,'
  9126. lt_prog_compiler_pic='-KPIC'
  9127. lt_prog_compiler_static='-Bstatic'
  9128. ;;
  9129. sysv4*MP*)
  9130. if test -d /usr/nec; then
  9131. lt_prog_compiler_pic='-Kconform_pic'
  9132. lt_prog_compiler_static='-Bstatic'
  9133. fi
  9134. ;;
  9135. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  9136. lt_prog_compiler_wl='-Wl,'
  9137. lt_prog_compiler_pic='-KPIC'
  9138. lt_prog_compiler_static='-Bstatic'
  9139. ;;
  9140. unicos*)
  9141. lt_prog_compiler_wl='-Wl,'
  9142. lt_prog_compiler_can_build_shared=no
  9143. ;;
  9144. uts4*)
  9145. lt_prog_compiler_pic='-pic'
  9146. lt_prog_compiler_static='-Bstatic'
  9147. ;;
  9148. *)
  9149. lt_prog_compiler_can_build_shared=no
  9150. ;;
  9151. esac
  9152. fi
  9153. case $host_os in
  9154. # For platforms that do not support PIC, -DPIC is meaningless:
  9155. *djgpp*)
  9156. lt_prog_compiler_pic=
  9157. ;;
  9158. *)
  9159. lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
  9160. ;;
  9161. esac
  9162. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  9163. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  9164. if ${lt_cv_prog_compiler_pic+:} false; then :
  9165. $as_echo_n "(cached) " >&6
  9166. else
  9167. lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
  9168. fi
  9169. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
  9170. $as_echo "$lt_cv_prog_compiler_pic" >&6; }
  9171. lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
  9172. #
  9173. # Check to make sure the PIC flag actually works.
  9174. #
  9175. if test -n "$lt_prog_compiler_pic"; then
  9176. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
  9177. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
  9178. if ${lt_cv_prog_compiler_pic_works+:} false; then :
  9179. $as_echo_n "(cached) " >&6
  9180. else
  9181. lt_cv_prog_compiler_pic_works=no
  9182. ac_outfile=conftest.$ac_objext
  9183. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  9184. lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
  9185. # Insert the option either (1) after the last *FLAGS variable, or
  9186. # (2) before a word containing "conftest.", or (3) at the end.
  9187. # Note that $ac_compile itself does not contain backslashes and begins
  9188. # with a dollar sign (not a hyphen), so the echo should work correctly.
  9189. # The option is referenced via a variable to avoid confusing sed.
  9190. lt_compile=`echo "$ac_compile" | $SED \
  9191. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  9192. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  9193. -e 's:$: $lt_compiler_flag:'`
  9194. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  9195. (eval "$lt_compile" 2>conftest.err)
  9196. ac_status=$?
  9197. cat conftest.err >&5
  9198. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9199. if (exit $ac_status) && test -s "$ac_outfile"; then
  9200. # The compiler can only warn and ignore the option if not recognized
  9201. # So say no if there are warnings other than the usual output.
  9202. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  9203. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  9204. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  9205. lt_cv_prog_compiler_pic_works=yes
  9206. fi
  9207. fi
  9208. $RM conftest*
  9209. fi
  9210. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
  9211. $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
  9212. if test yes = "$lt_cv_prog_compiler_pic_works"; then
  9213. case $lt_prog_compiler_pic in
  9214. "" | " "*) ;;
  9215. *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
  9216. esac
  9217. else
  9218. lt_prog_compiler_pic=
  9219. lt_prog_compiler_can_build_shared=no
  9220. fi
  9221. fi
  9222. #
  9223. # Check to make sure the static flag actually works.
  9224. #
  9225. wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
  9226. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  9227. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  9228. if ${lt_cv_prog_compiler_static_works+:} false; then :
  9229. $as_echo_n "(cached) " >&6
  9230. else
  9231. lt_cv_prog_compiler_static_works=no
  9232. save_LDFLAGS=$LDFLAGS
  9233. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  9234. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  9235. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  9236. # The linker can only warn and ignore the option if not recognized
  9237. # So say no if there are warnings
  9238. if test -s conftest.err; then
  9239. # Append any errors to the config.log.
  9240. cat conftest.err 1>&5
  9241. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  9242. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  9243. if diff conftest.exp conftest.er2 >/dev/null; then
  9244. lt_cv_prog_compiler_static_works=yes
  9245. fi
  9246. else
  9247. lt_cv_prog_compiler_static_works=yes
  9248. fi
  9249. fi
  9250. $RM -r conftest*
  9251. LDFLAGS=$save_LDFLAGS
  9252. fi
  9253. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
  9254. $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
  9255. if test yes = "$lt_cv_prog_compiler_static_works"; then
  9256. :
  9257. else
  9258. lt_prog_compiler_static=
  9259. fi
  9260. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  9261. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  9262. if ${lt_cv_prog_compiler_c_o+:} false; then :
  9263. $as_echo_n "(cached) " >&6
  9264. else
  9265. lt_cv_prog_compiler_c_o=no
  9266. $RM -r conftest 2>/dev/null
  9267. mkdir conftest
  9268. cd conftest
  9269. mkdir out
  9270. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  9271. lt_compiler_flag="-o out/conftest2.$ac_objext"
  9272. # Insert the option either (1) after the last *FLAGS variable, or
  9273. # (2) before a word containing "conftest.", or (3) at the end.
  9274. # Note that $ac_compile itself does not contain backslashes and begins
  9275. # with a dollar sign (not a hyphen), so the echo should work correctly.
  9276. lt_compile=`echo "$ac_compile" | $SED \
  9277. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  9278. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  9279. -e 's:$: $lt_compiler_flag:'`
  9280. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  9281. (eval "$lt_compile" 2>out/conftest.err)
  9282. ac_status=$?
  9283. cat out/conftest.err >&5
  9284. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9285. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  9286. then
  9287. # The compiler can only warn and ignore the option if not recognized
  9288. # So say no if there are warnings
  9289. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  9290. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  9291. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  9292. lt_cv_prog_compiler_c_o=yes
  9293. fi
  9294. fi
  9295. chmod u+w . 2>&5
  9296. $RM conftest*
  9297. # SGI C++ compiler will create directory out/ii_files/ for
  9298. # template instantiation
  9299. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  9300. $RM out/* && rmdir out
  9301. cd ..
  9302. $RM -r conftest
  9303. $RM conftest*
  9304. fi
  9305. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  9306. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  9307. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  9308. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  9309. if ${lt_cv_prog_compiler_c_o+:} false; then :
  9310. $as_echo_n "(cached) " >&6
  9311. else
  9312. lt_cv_prog_compiler_c_o=no
  9313. $RM -r conftest 2>/dev/null
  9314. mkdir conftest
  9315. cd conftest
  9316. mkdir out
  9317. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  9318. lt_compiler_flag="-o out/conftest2.$ac_objext"
  9319. # Insert the option either (1) after the last *FLAGS variable, or
  9320. # (2) before a word containing "conftest.", or (3) at the end.
  9321. # Note that $ac_compile itself does not contain backslashes and begins
  9322. # with a dollar sign (not a hyphen), so the echo should work correctly.
  9323. lt_compile=`echo "$ac_compile" | $SED \
  9324. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  9325. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  9326. -e 's:$: $lt_compiler_flag:'`
  9327. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  9328. (eval "$lt_compile" 2>out/conftest.err)
  9329. ac_status=$?
  9330. cat out/conftest.err >&5
  9331. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9332. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  9333. then
  9334. # The compiler can only warn and ignore the option if not recognized
  9335. # So say no if there are warnings
  9336. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  9337. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  9338. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  9339. lt_cv_prog_compiler_c_o=yes
  9340. fi
  9341. fi
  9342. chmod u+w . 2>&5
  9343. $RM conftest*
  9344. # SGI C++ compiler will create directory out/ii_files/ for
  9345. # template instantiation
  9346. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  9347. $RM out/* && rmdir out
  9348. cd ..
  9349. $RM -r conftest
  9350. $RM conftest*
  9351. fi
  9352. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  9353. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  9354. hard_links=nottested
  9355. if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
  9356. # do not overwrite the value of need_locks provided by the user
  9357. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  9358. $as_echo_n "checking if we can lock with hard links... " >&6; }
  9359. hard_links=yes
  9360. $RM conftest*
  9361. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  9362. touch conftest.a
  9363. ln conftest.a conftest.b 2>&5 || hard_links=no
  9364. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  9365. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  9366. $as_echo "$hard_links" >&6; }
  9367. if test no = "$hard_links"; then
  9368. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
  9369. $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
  9370. need_locks=warn
  9371. fi
  9372. else
  9373. need_locks=no
  9374. fi
  9375. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  9376. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  9377. runpath_var=
  9378. allow_undefined_flag=
  9379. always_export_symbols=no
  9380. archive_cmds=
  9381. archive_expsym_cmds=
  9382. compiler_needs_object=no
  9383. enable_shared_with_static_runtimes=no
  9384. export_dynamic_flag_spec=
  9385. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  9386. hardcode_automatic=no
  9387. hardcode_direct=no
  9388. hardcode_direct_absolute=no
  9389. hardcode_libdir_flag_spec=
  9390. hardcode_libdir_separator=
  9391. hardcode_minus_L=no
  9392. hardcode_shlibpath_var=unsupported
  9393. inherit_rpath=no
  9394. link_all_deplibs=unknown
  9395. module_cmds=
  9396. module_expsym_cmds=
  9397. old_archive_from_new_cmds=
  9398. old_archive_from_expsyms_cmds=
  9399. thread_safe_flag_spec=
  9400. whole_archive_flag_spec=
  9401. # include_expsyms should be a list of space-separated symbols to be *always*
  9402. # included in the symbol list
  9403. include_expsyms=
  9404. # exclude_expsyms can be an extended regexp of symbols to exclude
  9405. # it will be wrapped by ' (' and ')$', so one must not match beginning or
  9406. # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
  9407. # as well as any symbol that contains 'd'.
  9408. exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  9409. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  9410. # platforms (ab)use it in PIC code, but their linkers get confused if
  9411. # the symbol is explicitly referenced. Since portable code cannot
  9412. # rely on this symbol name, it's probably fine to never include it in
  9413. # preloaded symbol tables.
  9414. # Exclude shared library initialization/finalization symbols.
  9415. extract_expsyms_cmds=
  9416. case $host_os in
  9417. cygwin* | mingw* | pw32* | cegcc*)
  9418. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  9419. # When not using gcc, we currently assume that we are using
  9420. # Microsoft Visual C++.
  9421. if test yes != "$GCC"; then
  9422. with_gnu_ld=no
  9423. fi
  9424. ;;
  9425. interix*)
  9426. # we just hope/assume this is gcc and not c89 (= MSVC++)
  9427. with_gnu_ld=yes
  9428. ;;
  9429. openbsd* | bitrig*)
  9430. with_gnu_ld=no
  9431. ;;
  9432. linux* | k*bsd*-gnu | gnu*)
  9433. link_all_deplibs=no
  9434. ;;
  9435. esac
  9436. ld_shlibs=yes
  9437. # On some targets, GNU ld is compatible enough with the native linker
  9438. # that we're better off using the native interface for both.
  9439. lt_use_gnu_ld_interface=no
  9440. if test yes = "$with_gnu_ld"; then
  9441. case $host_os in
  9442. aix*)
  9443. # The AIX port of GNU ld has always aspired to compatibility
  9444. # with the native linker. However, as the warning in the GNU ld
  9445. # block says, versions before 2.19.5* couldn't really create working
  9446. # shared libraries, regardless of the interface used.
  9447. case `$LD -v 2>&1` in
  9448. *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
  9449. *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
  9450. *\ \(GNU\ Binutils\)\ [3-9]*) ;;
  9451. *)
  9452. lt_use_gnu_ld_interface=yes
  9453. ;;
  9454. esac
  9455. ;;
  9456. *)
  9457. lt_use_gnu_ld_interface=yes
  9458. ;;
  9459. esac
  9460. fi
  9461. if test yes = "$lt_use_gnu_ld_interface"; then
  9462. # If archive_cmds runs LD, not CC, wlarc should be empty
  9463. wlarc='$wl'
  9464. # Set some defaults for GNU ld with shared library support. These
  9465. # are reset later if shared libraries are not supported. Putting them
  9466. # here allows them to be overridden if necessary.
  9467. runpath_var=LD_RUN_PATH
  9468. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  9469. export_dynamic_flag_spec='$wl--export-dynamic'
  9470. # ancient GNU ld didn't support --whole-archive et. al.
  9471. if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
  9472. whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
  9473. else
  9474. whole_archive_flag_spec=
  9475. fi
  9476. supports_anon_versioning=no
  9477. case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
  9478. *GNU\ gold*) supports_anon_versioning=yes ;;
  9479. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  9480. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  9481. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  9482. *\ 2.11.*) ;; # other 2.11 versions
  9483. *) supports_anon_versioning=yes ;;
  9484. esac
  9485. # See if GNU ld supports shared libraries.
  9486. case $host_os in
  9487. aix[3-9]*)
  9488. # On AIX/PPC, the GNU linker is very broken
  9489. if test ia64 != "$host_cpu"; then
  9490. ld_shlibs=no
  9491. cat <<_LT_EOF 1>&2
  9492. *** Warning: the GNU linker, at least up to release 2.19, is reported
  9493. *** to be unable to reliably create shared libraries on AIX.
  9494. *** Therefore, libtool is disabling shared libraries support. If you
  9495. *** really care for shared libraries, you may want to install binutils
  9496. *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
  9497. *** You will then need to restart the configuration process.
  9498. _LT_EOF
  9499. fi
  9500. ;;
  9501. amigaos*)
  9502. case $host_cpu in
  9503. powerpc)
  9504. # see comment about AmigaOS4 .so support
  9505. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  9506. archive_expsym_cmds=''
  9507. ;;
  9508. m68k)
  9509. 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)'
  9510. hardcode_libdir_flag_spec='-L$libdir'
  9511. hardcode_minus_L=yes
  9512. ;;
  9513. esac
  9514. ;;
  9515. beos*)
  9516. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  9517. allow_undefined_flag=unsupported
  9518. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  9519. # support --undefined. This deserves some investigation. FIXME
  9520. archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  9521. else
  9522. ld_shlibs=no
  9523. fi
  9524. ;;
  9525. cygwin* | mingw* | pw32* | cegcc*)
  9526. # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
  9527. # as there is no search path for DLLs.
  9528. hardcode_libdir_flag_spec='-L$libdir'
  9529. export_dynamic_flag_spec='$wl--export-all-symbols'
  9530. allow_undefined_flag=unsupported
  9531. always_export_symbols=no
  9532. enable_shared_with_static_runtimes=yes
  9533. 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'
  9534. exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
  9535. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  9536. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  9537. # If the export-symbols file already is a .def file, use it as
  9538. # is; otherwise, prepend EXPORTS...
  9539. archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
  9540. cp $export_symbols $output_objdir/$soname.def;
  9541. else
  9542. echo EXPORTS > $output_objdir/$soname.def;
  9543. cat $export_symbols >> $output_objdir/$soname.def;
  9544. fi~
  9545. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  9546. else
  9547. ld_shlibs=no
  9548. fi
  9549. ;;
  9550. haiku*)
  9551. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  9552. link_all_deplibs=yes
  9553. ;;
  9554. os2*)
  9555. hardcode_libdir_flag_spec='-L$libdir'
  9556. hardcode_minus_L=yes
  9557. allow_undefined_flag=unsupported
  9558. shrext_cmds=.dll
  9559. archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  9560. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  9561. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  9562. $ECHO EXPORTS >> $output_objdir/$libname.def~
  9563. emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
  9564. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  9565. emximp -o $lib $output_objdir/$libname.def'
  9566. archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  9567. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  9568. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  9569. $ECHO EXPORTS >> $output_objdir/$libname.def~
  9570. prefix_cmds="$SED"~
  9571. if test EXPORTS = "`$SED 1q $export_symbols`"; then
  9572. prefix_cmds="$prefix_cmds -e 1d";
  9573. fi~
  9574. prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
  9575. cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
  9576. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  9577. emximp -o $lib $output_objdir/$libname.def'
  9578. old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
  9579. enable_shared_with_static_runtimes=yes
  9580. ;;
  9581. interix[3-9]*)
  9582. hardcode_direct=no
  9583. hardcode_shlibpath_var=no
  9584. hardcode_libdir_flag_spec='$wl-rpath,$libdir'
  9585. export_dynamic_flag_spec='$wl-E'
  9586. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  9587. # Instead, shared libraries are loaded at an image base (0x10000000 by
  9588. # default) and relocated if they conflict, which is a slow very memory
  9589. # consuming and fragmenting process. To avoid this, we pick a random,
  9590. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  9591. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  9592. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  9593. 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'
  9594. ;;
  9595. gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
  9596. tmp_diet=no
  9597. if test linux-dietlibc = "$host_os"; then
  9598. case $cc_basename in
  9599. diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
  9600. esac
  9601. fi
  9602. if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
  9603. && test no = "$tmp_diet"
  9604. then
  9605. tmp_addflag=' $pic_flag'
  9606. tmp_sharedflag='-shared'
  9607. case $cc_basename,$host_cpu in
  9608. pgcc*) # Portland Group C compiler
  9609. 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'
  9610. tmp_addflag=' $pic_flag'
  9611. ;;
  9612. pgf77* | pgf90* | pgf95* | pgfortran*)
  9613. # Portland Group f77 and f90 compilers
  9614. 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'
  9615. tmp_addflag=' $pic_flag -Mnomain' ;;
  9616. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  9617. tmp_addflag=' -i_dynamic' ;;
  9618. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  9619. tmp_addflag=' -i_dynamic -nofor_main' ;;
  9620. ifc* | ifort*) # Intel Fortran compiler
  9621. tmp_addflag=' -nofor_main' ;;
  9622. lf95*) # Lahey Fortran 8.1
  9623. whole_archive_flag_spec=
  9624. tmp_sharedflag='--shared' ;;
  9625. nagfor*) # NAGFOR 5.3
  9626. tmp_sharedflag='-Wl,-shared' ;;
  9627. xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
  9628. tmp_sharedflag='-qmkshrobj'
  9629. tmp_addflag= ;;
  9630. nvcc*) # Cuda Compiler Driver 2.2
  9631. 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'
  9632. compiler_needs_object=yes
  9633. ;;
  9634. esac
  9635. case `$CC -V 2>&1 | sed 5q` in
  9636. *Sun\ C*) # Sun C 5.9
  9637. 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'
  9638. compiler_needs_object=yes
  9639. tmp_sharedflag='-G' ;;
  9640. *Sun\ F*) # Sun Fortran 8.3
  9641. tmp_sharedflag='-G' ;;
  9642. esac
  9643. archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  9644. if test yes = "$supports_anon_versioning"; then
  9645. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  9646. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  9647. echo "local: *; };" >> $output_objdir/$libname.ver~
  9648. $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
  9649. fi
  9650. case $cc_basename in
  9651. tcc*)
  9652. export_dynamic_flag_spec='-rdynamic'
  9653. ;;
  9654. xlf* | bgf* | bgxlf* | mpixlf*)
  9655. # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
  9656. whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
  9657. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  9658. archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
  9659. if test yes = "$supports_anon_versioning"; then
  9660. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  9661. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  9662. echo "local: *; };" >> $output_objdir/$libname.ver~
  9663. $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
  9664. fi
  9665. ;;
  9666. esac
  9667. else
  9668. ld_shlibs=no
  9669. fi
  9670. ;;
  9671. netbsd* | netbsdelf*-gnu)
  9672. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  9673. archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  9674. wlarc=
  9675. else
  9676. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  9677. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  9678. fi
  9679. ;;
  9680. solaris*)
  9681. if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
  9682. ld_shlibs=no
  9683. cat <<_LT_EOF 1>&2
  9684. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  9685. *** create shared libraries on Solaris systems. Therefore, libtool
  9686. *** is disabling shared libraries support. We urge you to upgrade GNU
  9687. *** binutils to release 2.9.1 or newer. Another option is to modify
  9688. *** your PATH or compiler configuration so that the native linker is
  9689. *** used, and then restart.
  9690. _LT_EOF
  9691. elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  9692. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  9693. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  9694. else
  9695. ld_shlibs=no
  9696. fi
  9697. ;;
  9698. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  9699. case `$LD -v 2>&1` in
  9700. *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  9701. ld_shlibs=no
  9702. cat <<_LT_EOF 1>&2
  9703. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
  9704. *** reliably create shared libraries on SCO systems. Therefore, libtool
  9705. *** is disabling shared libraries support. We urge you to upgrade GNU
  9706. *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  9707. *** your PATH or compiler configuration so that the native linker is
  9708. *** used, and then restart.
  9709. _LT_EOF
  9710. ;;
  9711. *)
  9712. # For security reasons, it is highly recommended that you always
  9713. # use absolute paths for naming shared libraries, and exclude the
  9714. # DT_RUNPATH tag from executables and libraries. But doing so
  9715. # requires that you compile everything twice, which is a pain.
  9716. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  9717. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  9718. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  9719. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  9720. else
  9721. ld_shlibs=no
  9722. fi
  9723. ;;
  9724. esac
  9725. ;;
  9726. sunos4*)
  9727. archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  9728. wlarc=
  9729. hardcode_direct=yes
  9730. hardcode_shlibpath_var=no
  9731. ;;
  9732. *)
  9733. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  9734. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  9735. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  9736. else
  9737. ld_shlibs=no
  9738. fi
  9739. ;;
  9740. esac
  9741. if test no = "$ld_shlibs"; then
  9742. runpath_var=
  9743. hardcode_libdir_flag_spec=
  9744. export_dynamic_flag_spec=
  9745. whole_archive_flag_spec=
  9746. fi
  9747. else
  9748. # PORTME fill in a description of your system's linker (not GNU ld)
  9749. case $host_os in
  9750. aix3*)
  9751. allow_undefined_flag=unsupported
  9752. always_export_symbols=yes
  9753. 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'
  9754. # Note: this linker hardcodes the directories in LIBPATH if there
  9755. # are no directories specified by -L.
  9756. hardcode_minus_L=yes
  9757. if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
  9758. # Neither direct hardcoding nor static linking is supported with a
  9759. # broken collect2.
  9760. hardcode_direct=unsupported
  9761. fi
  9762. ;;
  9763. aix[4-9]*)
  9764. if test ia64 = "$host_cpu"; then
  9765. # On IA64, the linker does run time linking by default, so we don't
  9766. # have to do anything special.
  9767. aix_use_runtimelinking=no
  9768. exp_sym_flag='-Bexport'
  9769. no_entry_flag=
  9770. else
  9771. # If we're using GNU nm, then we don't want the "-C" option.
  9772. # -C means demangle to GNU nm, but means don't demangle to AIX nm.
  9773. # Without the "-l" option, or with the "-B" option, AIX nm treats
  9774. # weak defined symbols like other global defined symbols, whereas
  9775. # GNU nm marks them as "W".
  9776. # While the 'weak' keyword is ignored in the Export File, we need
  9777. # it in the Import File for the 'aix-soname' feature, so we have
  9778. # to replace the "-B" option with "-P" for AIX nm.
  9779. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  9780. 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'
  9781. else
  9782. 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'
  9783. fi
  9784. aix_use_runtimelinking=no
  9785. # Test if we are trying to use run time linking or normal
  9786. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  9787. # have runtime linking enabled, and use it for executables.
  9788. # For shared libraries, we enable/disable runtime linking
  9789. # depending on the kind of the shared library created -
  9790. # when "with_aix_soname,aix_use_runtimelinking" is:
  9791. # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
  9792. # "aix,yes" lib.so shared, rtl:yes, for executables
  9793. # lib.a static archive
  9794. # "both,no" lib.so.V(shr.o) shared, rtl:yes
  9795. # lib.a(lib.so.V) shared, rtl:no, for executables
  9796. # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
  9797. # lib.a(lib.so.V) shared, rtl:no
  9798. # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
  9799. # lib.a static archive
  9800. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  9801. for ld_flag in $LDFLAGS; do
  9802. if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
  9803. aix_use_runtimelinking=yes
  9804. break
  9805. fi
  9806. done
  9807. if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
  9808. # With aix-soname=svr4, we create the lib.so.V shared archives only,
  9809. # so we don't have lib.a shared libs to link our executables.
  9810. # We have to force runtime linking in this case.
  9811. aix_use_runtimelinking=yes
  9812. LDFLAGS="$LDFLAGS -Wl,-brtl"
  9813. fi
  9814. ;;
  9815. esac
  9816. exp_sym_flag='-bexport'
  9817. no_entry_flag='-bnoentry'
  9818. fi
  9819. # When large executables or shared objects are built, AIX ld can
  9820. # have problems creating the table of contents. If linking a library
  9821. # or program results in "error TOC overflow" add -mminimal-toc to
  9822. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  9823. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  9824. archive_cmds=''
  9825. hardcode_direct=yes
  9826. hardcode_direct_absolute=yes
  9827. hardcode_libdir_separator=':'
  9828. link_all_deplibs=yes
  9829. file_list_spec='$wl-f,'
  9830. case $with_aix_soname,$aix_use_runtimelinking in
  9831. aix,*) ;; # traditional, no import file
  9832. svr4,* | *,yes) # use import file
  9833. # The Import File defines what to hardcode.
  9834. hardcode_direct=no
  9835. hardcode_direct_absolute=no
  9836. ;;
  9837. esac
  9838. if test yes = "$GCC"; then
  9839. case $host_os in aix4.[012]|aix4.[012].*)
  9840. # We only want to do this on AIX 4.2 and lower, the check
  9841. # below for broken collect2 doesn't work under 4.3+
  9842. collect2name=`$CC -print-prog-name=collect2`
  9843. if test -f "$collect2name" &&
  9844. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  9845. then
  9846. # We have reworked collect2
  9847. :
  9848. else
  9849. # We have old collect2
  9850. hardcode_direct=unsupported
  9851. # It fails to find uninstalled libraries when the uninstalled
  9852. # path is not listed in the libpath. Setting hardcode_minus_L
  9853. # to unsupported forces relinking
  9854. hardcode_minus_L=yes
  9855. hardcode_libdir_flag_spec='-L$libdir'
  9856. hardcode_libdir_separator=
  9857. fi
  9858. ;;
  9859. esac
  9860. shared_flag='-shared'
  9861. if test yes = "$aix_use_runtimelinking"; then
  9862. shared_flag="$shared_flag "'$wl-G'
  9863. fi
  9864. # Need to ensure runtime linking is disabled for the traditional
  9865. # shared library, or the linker may eventually find shared libraries
  9866. # /with/ Import File - we do not want to mix them.
  9867. shared_flag_aix='-shared'
  9868. shared_flag_svr4='-shared $wl-G'
  9869. else
  9870. # not using gcc
  9871. if test ia64 = "$host_cpu"; then
  9872. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  9873. # chokes on -Wl,-G. The following line is correct:
  9874. shared_flag='-G'
  9875. else
  9876. if test yes = "$aix_use_runtimelinking"; then
  9877. shared_flag='$wl-G'
  9878. else
  9879. shared_flag='$wl-bM:SRE'
  9880. fi
  9881. shared_flag_aix='$wl-bM:SRE'
  9882. shared_flag_svr4='$wl-G'
  9883. fi
  9884. fi
  9885. export_dynamic_flag_spec='$wl-bexpall'
  9886. # It seems that -bexpall does not export symbols beginning with
  9887. # underscore (_), so it is better to generate a list of symbols to export.
  9888. always_export_symbols=yes
  9889. if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
  9890. # Warning - without using the other runtime loading flags (-brtl),
  9891. # -berok will link without error, but may produce a broken library.
  9892. allow_undefined_flag='-berok'
  9893. # Determine the default libpath from the value encoded in an
  9894. # empty executable.
  9895. if test set = "${lt_cv_aix_libpath+set}"; then
  9896. aix_libpath=$lt_cv_aix_libpath
  9897. else
  9898. if ${lt_cv_aix_libpath_+:} false; then :
  9899. $as_echo_n "(cached) " >&6
  9900. else
  9901. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9902. /* end confdefs.h. */
  9903. int
  9904. main ()
  9905. {
  9906. ;
  9907. return 0;
  9908. }
  9909. _ACEOF
  9910. if ac_fn_c_try_link "$LINENO"; then :
  9911. lt_aix_libpath_sed='
  9912. /Import File Strings/,/^$/ {
  9913. /^0/ {
  9914. s/^0 *\([^ ]*\) *$/\1/
  9915. p
  9916. }
  9917. }'
  9918. lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  9919. # Check for a 64-bit object if we didn't find anything.
  9920. if test -z "$lt_cv_aix_libpath_"; then
  9921. lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  9922. fi
  9923. fi
  9924. rm -f core conftest.err conftest.$ac_objext \
  9925. conftest$ac_exeext conftest.$ac_ext
  9926. if test -z "$lt_cv_aix_libpath_"; then
  9927. lt_cv_aix_libpath_=/usr/lib:/lib
  9928. fi
  9929. fi
  9930. aix_libpath=$lt_cv_aix_libpath_
  9931. fi
  9932. hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
  9933. 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
  9934. else
  9935. if test ia64 = "$host_cpu"; then
  9936. hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
  9937. allow_undefined_flag="-z nodefs"
  9938. 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"
  9939. else
  9940. # Determine the default libpath from the value encoded in an
  9941. # empty executable.
  9942. if test set = "${lt_cv_aix_libpath+set}"; then
  9943. aix_libpath=$lt_cv_aix_libpath
  9944. else
  9945. if ${lt_cv_aix_libpath_+:} false; then :
  9946. $as_echo_n "(cached) " >&6
  9947. else
  9948. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9949. /* end confdefs.h. */
  9950. int
  9951. main ()
  9952. {
  9953. ;
  9954. return 0;
  9955. }
  9956. _ACEOF
  9957. if ac_fn_c_try_link "$LINENO"; then :
  9958. lt_aix_libpath_sed='
  9959. /Import File Strings/,/^$/ {
  9960. /^0/ {
  9961. s/^0 *\([^ ]*\) *$/\1/
  9962. p
  9963. }
  9964. }'
  9965. lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  9966. # Check for a 64-bit object if we didn't find anything.
  9967. if test -z "$lt_cv_aix_libpath_"; then
  9968. lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  9969. fi
  9970. fi
  9971. rm -f core conftest.err conftest.$ac_objext \
  9972. conftest$ac_exeext conftest.$ac_ext
  9973. if test -z "$lt_cv_aix_libpath_"; then
  9974. lt_cv_aix_libpath_=/usr/lib:/lib
  9975. fi
  9976. fi
  9977. aix_libpath=$lt_cv_aix_libpath_
  9978. fi
  9979. hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
  9980. # Warning - without using the other run time loading flags,
  9981. # -berok will link without error, but may produce a broken library.
  9982. no_undefined_flag=' $wl-bernotok'
  9983. allow_undefined_flag=' $wl-berok'
  9984. if test yes = "$with_gnu_ld"; then
  9985. # We only use this code for GNU lds that support --whole-archive.
  9986. whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
  9987. else
  9988. # Exported symbols can be pulled into shared objects from archives
  9989. whole_archive_flag_spec='$convenience'
  9990. fi
  9991. archive_cmds_need_lc=yes
  9992. archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
  9993. # -brtl affects multiple linker settings, -berok does not and is overridden later
  9994. compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
  9995. if test svr4 != "$with_aix_soname"; then
  9996. # This is similar to how AIX traditionally builds its shared libraries.
  9997. 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'
  9998. fi
  9999. if test aix != "$with_aix_soname"; then
  10000. 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'
  10001. else
  10002. # used by -dlpreopen to get the symbols
  10003. archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
  10004. fi
  10005. archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
  10006. fi
  10007. fi
  10008. ;;
  10009. amigaos*)
  10010. case $host_cpu in
  10011. powerpc)
  10012. # see comment about AmigaOS4 .so support
  10013. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  10014. archive_expsym_cmds=''
  10015. ;;
  10016. m68k)
  10017. 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)'
  10018. hardcode_libdir_flag_spec='-L$libdir'
  10019. hardcode_minus_L=yes
  10020. ;;
  10021. esac
  10022. ;;
  10023. bsdi[45]*)
  10024. export_dynamic_flag_spec=-rdynamic
  10025. ;;
  10026. cygwin* | mingw* | pw32* | cegcc*)
  10027. # When not using gcc, we currently assume that we are using
  10028. # Microsoft Visual C++.
  10029. # hardcode_libdir_flag_spec is actually meaningless, as there is
  10030. # no search path for DLLs.
  10031. case $cc_basename in
  10032. cl*)
  10033. # Native MSVC
  10034. hardcode_libdir_flag_spec=' '
  10035. allow_undefined_flag=unsupported
  10036. always_export_symbols=yes
  10037. file_list_spec='@'
  10038. # Tell ltmain to make .lib files, not .a files.
  10039. libext=lib
  10040. # Tell ltmain to make .dll files, not .so files.
  10041. shrext_cmds=.dll
  10042. # FIXME: Setting linknames here is a bad hack.
  10043. archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
  10044. archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
  10045. cp "$export_symbols" "$output_objdir/$soname.def";
  10046. echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
  10047. else
  10048. $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
  10049. fi~
  10050. $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
  10051. linknames='
  10052. # The linker will not automatically build a static lib if we build a DLL.
  10053. # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
  10054. enable_shared_with_static_runtimes=yes
  10055. exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
  10056. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
  10057. # Don't use ranlib
  10058. old_postinstall_cmds='chmod 644 $oldlib'
  10059. postlink_cmds='lt_outputfile="@OUTPUT@"~
  10060. lt_tool_outputfile="@TOOL_OUTPUT@"~
  10061. case $lt_outputfile in
  10062. *.exe|*.EXE) ;;
  10063. *)
  10064. lt_outputfile=$lt_outputfile.exe
  10065. lt_tool_outputfile=$lt_tool_outputfile.exe
  10066. ;;
  10067. esac~
  10068. if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
  10069. $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
  10070. $RM "$lt_outputfile.manifest";
  10071. fi'
  10072. ;;
  10073. *)
  10074. # Assume MSVC wrapper
  10075. hardcode_libdir_flag_spec=' '
  10076. allow_undefined_flag=unsupported
  10077. # Tell ltmain to make .lib files, not .a files.
  10078. libext=lib
  10079. # Tell ltmain to make .dll files, not .so files.
  10080. shrext_cmds=.dll
  10081. # FIXME: Setting linknames here is a bad hack.
  10082. archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
  10083. # The linker will automatically build a .lib file if we build a DLL.
  10084. old_archive_from_new_cmds='true'
  10085. # FIXME: Should let the user specify the lib program.
  10086. old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
  10087. enable_shared_with_static_runtimes=yes
  10088. ;;
  10089. esac
  10090. ;;
  10091. darwin* | rhapsody*)
  10092. archive_cmds_need_lc=no
  10093. hardcode_direct=no
  10094. hardcode_automatic=yes
  10095. hardcode_shlibpath_var=unsupported
  10096. if test yes = "$lt_cv_ld_force_load"; then
  10097. 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\"`'
  10098. else
  10099. whole_archive_flag_spec=''
  10100. fi
  10101. link_all_deplibs=yes
  10102. allow_undefined_flag=$_lt_dar_allow_undefined
  10103. case $cc_basename in
  10104. ifort*|nagfor*) _lt_dar_can_shared=yes ;;
  10105. *) _lt_dar_can_shared=$GCC ;;
  10106. esac
  10107. if test yes = "$_lt_dar_can_shared"; then
  10108. output_verbose_link_cmd=func_echo_all
  10109. archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
  10110. module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
  10111. 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"
  10112. 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"
  10113. else
  10114. ld_shlibs=no
  10115. fi
  10116. ;;
  10117. dgux*)
  10118. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  10119. hardcode_libdir_flag_spec='-L$libdir'
  10120. hardcode_shlibpath_var=no
  10121. ;;
  10122. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  10123. # support. Future versions do this automatically, but an explicit c++rt0.o
  10124. # does not break anything, and helps significantly (at the cost of a little
  10125. # extra space).
  10126. freebsd2.2*)
  10127. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  10128. hardcode_libdir_flag_spec='-R$libdir'
  10129. hardcode_direct=yes
  10130. hardcode_shlibpath_var=no
  10131. ;;
  10132. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  10133. freebsd2.*)
  10134. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  10135. hardcode_direct=yes
  10136. hardcode_minus_L=yes
  10137. hardcode_shlibpath_var=no
  10138. ;;
  10139. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  10140. freebsd* | dragonfly*)
  10141. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  10142. hardcode_libdir_flag_spec='-R$libdir'
  10143. hardcode_direct=yes
  10144. hardcode_shlibpath_var=no
  10145. ;;
  10146. hpux9*)
  10147. if test yes = "$GCC"; then
  10148. 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'
  10149. else
  10150. 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'
  10151. fi
  10152. hardcode_libdir_flag_spec='$wl+b $wl$libdir'
  10153. hardcode_libdir_separator=:
  10154. hardcode_direct=yes
  10155. # hardcode_minus_L: Not really in the search PATH,
  10156. # but as the default location of the library.
  10157. hardcode_minus_L=yes
  10158. export_dynamic_flag_spec='$wl-E'
  10159. ;;
  10160. hpux10*)
  10161. if test yes,no = "$GCC,$with_gnu_ld"; then
  10162. archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  10163. else
  10164. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  10165. fi
  10166. if test no = "$with_gnu_ld"; then
  10167. hardcode_libdir_flag_spec='$wl+b $wl$libdir'
  10168. hardcode_libdir_separator=:
  10169. hardcode_direct=yes
  10170. hardcode_direct_absolute=yes
  10171. export_dynamic_flag_spec='$wl-E'
  10172. # hardcode_minus_L: Not really in the search PATH,
  10173. # but as the default location of the library.
  10174. hardcode_minus_L=yes
  10175. fi
  10176. ;;
  10177. hpux11*)
  10178. if test yes,no = "$GCC,$with_gnu_ld"; then
  10179. case $host_cpu in
  10180. hppa*64*)
  10181. archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
  10182. ;;
  10183. ia64*)
  10184. archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  10185. ;;
  10186. *)
  10187. archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  10188. ;;
  10189. esac
  10190. else
  10191. case $host_cpu in
  10192. hppa*64*)
  10193. archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
  10194. ;;
  10195. ia64*)
  10196. archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  10197. ;;
  10198. *)
  10199. # Older versions of the 11.00 compiler do not understand -b yet
  10200. # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
  10201. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
  10202. $as_echo_n "checking if $CC understands -b... " >&6; }
  10203. if ${lt_cv_prog_compiler__b+:} false; then :
  10204. $as_echo_n "(cached) " >&6
  10205. else
  10206. lt_cv_prog_compiler__b=no
  10207. save_LDFLAGS=$LDFLAGS
  10208. LDFLAGS="$LDFLAGS -b"
  10209. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  10210. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  10211. # The linker can only warn and ignore the option if not recognized
  10212. # So say no if there are warnings
  10213. if test -s conftest.err; then
  10214. # Append any errors to the config.log.
  10215. cat conftest.err 1>&5
  10216. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  10217. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  10218. if diff conftest.exp conftest.er2 >/dev/null; then
  10219. lt_cv_prog_compiler__b=yes
  10220. fi
  10221. else
  10222. lt_cv_prog_compiler__b=yes
  10223. fi
  10224. fi
  10225. $RM -r conftest*
  10226. LDFLAGS=$save_LDFLAGS
  10227. fi
  10228. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
  10229. $as_echo "$lt_cv_prog_compiler__b" >&6; }
  10230. if test yes = "$lt_cv_prog_compiler__b"; then
  10231. archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  10232. else
  10233. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  10234. fi
  10235. ;;
  10236. esac
  10237. fi
  10238. if test no = "$with_gnu_ld"; then
  10239. hardcode_libdir_flag_spec='$wl+b $wl$libdir'
  10240. hardcode_libdir_separator=:
  10241. case $host_cpu in
  10242. hppa*64*|ia64*)
  10243. hardcode_direct=no
  10244. hardcode_shlibpath_var=no
  10245. ;;
  10246. *)
  10247. hardcode_direct=yes
  10248. hardcode_direct_absolute=yes
  10249. export_dynamic_flag_spec='$wl-E'
  10250. # hardcode_minus_L: Not really in the search PATH,
  10251. # but as the default location of the library.
  10252. hardcode_minus_L=yes
  10253. ;;
  10254. esac
  10255. fi
  10256. ;;
  10257. irix5* | irix6* | nonstopux*)
  10258. if test yes = "$GCC"; then
  10259. 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'
  10260. # Try to use the -exported_symbol ld option, if it does not
  10261. # work, assume that -exports_file does not work either and
  10262. # implicitly export all symbols.
  10263. # This should be the same for all languages, so no per-tag cache variable.
  10264. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
  10265. $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
  10266. if ${lt_cv_irix_exported_symbol+:} false; then :
  10267. $as_echo_n "(cached) " >&6
  10268. else
  10269. save_LDFLAGS=$LDFLAGS
  10270. LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
  10271. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10272. /* end confdefs.h. */
  10273. int foo (void) { return 0; }
  10274. _ACEOF
  10275. if ac_fn_c_try_link "$LINENO"; then :
  10276. lt_cv_irix_exported_symbol=yes
  10277. else
  10278. lt_cv_irix_exported_symbol=no
  10279. fi
  10280. rm -f core conftest.err conftest.$ac_objext \
  10281. conftest$ac_exeext conftest.$ac_ext
  10282. LDFLAGS=$save_LDFLAGS
  10283. fi
  10284. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
  10285. $as_echo "$lt_cv_irix_exported_symbol" >&6; }
  10286. if test yes = "$lt_cv_irix_exported_symbol"; then
  10287. 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'
  10288. fi
  10289. link_all_deplibs=no
  10290. else
  10291. 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'
  10292. 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'
  10293. fi
  10294. archive_cmds_need_lc='no'
  10295. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  10296. hardcode_libdir_separator=:
  10297. inherit_rpath=yes
  10298. link_all_deplibs=yes
  10299. ;;
  10300. linux*)
  10301. case $cc_basename in
  10302. tcc*)
  10303. # Fabrice Bellard et al's Tiny C Compiler
  10304. ld_shlibs=yes
  10305. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  10306. ;;
  10307. esac
  10308. ;;
  10309. netbsd* | netbsdelf*-gnu)
  10310. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  10311. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  10312. else
  10313. archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  10314. fi
  10315. hardcode_libdir_flag_spec='-R$libdir'
  10316. hardcode_direct=yes
  10317. hardcode_shlibpath_var=no
  10318. ;;
  10319. newsos6)
  10320. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  10321. hardcode_direct=yes
  10322. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  10323. hardcode_libdir_separator=:
  10324. hardcode_shlibpath_var=no
  10325. ;;
  10326. *nto* | *qnx*)
  10327. ;;
  10328. openbsd* | bitrig*)
  10329. if test -f /usr/libexec/ld.so; then
  10330. hardcode_direct=yes
  10331. hardcode_shlibpath_var=no
  10332. hardcode_direct_absolute=yes
  10333. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
  10334. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  10335. archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
  10336. hardcode_libdir_flag_spec='$wl-rpath,$libdir'
  10337. export_dynamic_flag_spec='$wl-E'
  10338. else
  10339. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  10340. hardcode_libdir_flag_spec='$wl-rpath,$libdir'
  10341. fi
  10342. else
  10343. ld_shlibs=no
  10344. fi
  10345. ;;
  10346. os2*)
  10347. hardcode_libdir_flag_spec='-L$libdir'
  10348. hardcode_minus_L=yes
  10349. allow_undefined_flag=unsupported
  10350. shrext_cmds=.dll
  10351. archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  10352. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  10353. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  10354. $ECHO EXPORTS >> $output_objdir/$libname.def~
  10355. emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
  10356. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  10357. emximp -o $lib $output_objdir/$libname.def'
  10358. archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  10359. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  10360. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  10361. $ECHO EXPORTS >> $output_objdir/$libname.def~
  10362. prefix_cmds="$SED"~
  10363. if test EXPORTS = "`$SED 1q $export_symbols`"; then
  10364. prefix_cmds="$prefix_cmds -e 1d";
  10365. fi~
  10366. prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
  10367. cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
  10368. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  10369. emximp -o $lib $output_objdir/$libname.def'
  10370. old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
  10371. enable_shared_with_static_runtimes=yes
  10372. ;;
  10373. osf3*)
  10374. if test yes = "$GCC"; then
  10375. allow_undefined_flag=' $wl-expect_unresolved $wl\*'
  10376. 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'
  10377. else
  10378. allow_undefined_flag=' -expect_unresolved \*'
  10379. 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'
  10380. fi
  10381. archive_cmds_need_lc='no'
  10382. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  10383. hardcode_libdir_separator=:
  10384. ;;
  10385. osf4* | osf5*) # as osf3* with the addition of -msym flag
  10386. if test yes = "$GCC"; then
  10387. allow_undefined_flag=' $wl-expect_unresolved $wl\*'
  10388. 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'
  10389. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  10390. else
  10391. allow_undefined_flag=' -expect_unresolved \*'
  10392. 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'
  10393. 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~
  10394. $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'
  10395. # Both c and cxx compiler support -rpath directly
  10396. hardcode_libdir_flag_spec='-rpath $libdir'
  10397. fi
  10398. archive_cmds_need_lc='no'
  10399. hardcode_libdir_separator=:
  10400. ;;
  10401. solaris*)
  10402. no_undefined_flag=' -z defs'
  10403. if test yes = "$GCC"; then
  10404. wlarc='$wl'
  10405. archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
  10406. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  10407. $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'
  10408. else
  10409. case `$CC -V 2>&1` in
  10410. *"Compilers 5.0"*)
  10411. wlarc=''
  10412. archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
  10413. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  10414. $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
  10415. ;;
  10416. *)
  10417. wlarc='$wl'
  10418. archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
  10419. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  10420. $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  10421. ;;
  10422. esac
  10423. fi
  10424. hardcode_libdir_flag_spec='-R$libdir'
  10425. hardcode_shlibpath_var=no
  10426. case $host_os in
  10427. solaris2.[0-5] | solaris2.[0-5].*) ;;
  10428. *)
  10429. # The compiler driver will combine and reorder linker options,
  10430. # but understands '-z linker_flag'. GCC discards it without '$wl',
  10431. # but is careful enough not to reorder.
  10432. # Supported since Solaris 2.6 (maybe 2.5.1?)
  10433. if test yes = "$GCC"; then
  10434. whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
  10435. else
  10436. whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
  10437. fi
  10438. ;;
  10439. esac
  10440. link_all_deplibs=yes
  10441. ;;
  10442. sunos4*)
  10443. if test sequent = "$host_vendor"; then
  10444. # Use $CC to link under sequent, because it throws in some extra .o
  10445. # files that make .init and .fini sections work.
  10446. archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  10447. else
  10448. archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  10449. fi
  10450. hardcode_libdir_flag_spec='-L$libdir'
  10451. hardcode_direct=yes
  10452. hardcode_minus_L=yes
  10453. hardcode_shlibpath_var=no
  10454. ;;
  10455. sysv4)
  10456. case $host_vendor in
  10457. sni)
  10458. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  10459. hardcode_direct=yes # is this really true???
  10460. ;;
  10461. siemens)
  10462. ## LD is ld it makes a PLAMLIB
  10463. ## CC just makes a GrossModule.
  10464. archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  10465. reload_cmds='$CC -r -o $output$reload_objs'
  10466. hardcode_direct=no
  10467. ;;
  10468. motorola)
  10469. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  10470. hardcode_direct=no #Motorola manual says yes, but my tests say they lie
  10471. ;;
  10472. esac
  10473. runpath_var='LD_RUN_PATH'
  10474. hardcode_shlibpath_var=no
  10475. ;;
  10476. sysv4.3*)
  10477. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  10478. hardcode_shlibpath_var=no
  10479. export_dynamic_flag_spec='-Bexport'
  10480. ;;
  10481. sysv4*MP*)
  10482. if test -d /usr/nec; then
  10483. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  10484. hardcode_shlibpath_var=no
  10485. runpath_var=LD_RUN_PATH
  10486. hardcode_runpath_var=yes
  10487. ld_shlibs=yes
  10488. fi
  10489. ;;
  10490. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  10491. no_undefined_flag='$wl-z,text'
  10492. archive_cmds_need_lc=no
  10493. hardcode_shlibpath_var=no
  10494. runpath_var='LD_RUN_PATH'
  10495. if test yes = "$GCC"; then
  10496. archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10497. archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10498. else
  10499. archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10500. archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10501. fi
  10502. ;;
  10503. sysv5* | sco3.2v5* | sco5v6*)
  10504. # Note: We CANNOT use -z defs as we might desire, because we do not
  10505. # link with -lc, and that would cause any symbols used from libc to
  10506. # always be unresolved, which means just about no library would
  10507. # ever link correctly. If we're not using GNU ld we use -z text
  10508. # though, which does catch some bad symbols but isn't as heavy-handed
  10509. # as -z defs.
  10510. no_undefined_flag='$wl-z,text'
  10511. allow_undefined_flag='$wl-z,nodefs'
  10512. archive_cmds_need_lc=no
  10513. hardcode_shlibpath_var=no
  10514. hardcode_libdir_flag_spec='$wl-R,$libdir'
  10515. hardcode_libdir_separator=':'
  10516. link_all_deplibs=yes
  10517. export_dynamic_flag_spec='$wl-Bexport'
  10518. runpath_var='LD_RUN_PATH'
  10519. if test yes = "$GCC"; then
  10520. archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10521. archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10522. else
  10523. archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10524. archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10525. fi
  10526. ;;
  10527. uts4*)
  10528. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  10529. hardcode_libdir_flag_spec='-L$libdir'
  10530. hardcode_shlibpath_var=no
  10531. ;;
  10532. *)
  10533. ld_shlibs=no
  10534. ;;
  10535. esac
  10536. if test sni = "$host_vendor"; then
  10537. case $host in
  10538. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  10539. export_dynamic_flag_spec='$wl-Blargedynsym'
  10540. ;;
  10541. esac
  10542. fi
  10543. fi
  10544. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
  10545. $as_echo "$ld_shlibs" >&6; }
  10546. test no = "$ld_shlibs" && can_build_shared=no
  10547. with_gnu_ld=$with_gnu_ld
  10548. #
  10549. # Do we need to explicitly link libc?
  10550. #
  10551. case "x$archive_cmds_need_lc" in
  10552. x|xyes)
  10553. # Assume -lc should be added
  10554. archive_cmds_need_lc=yes
  10555. if test yes,yes = "$GCC,$enable_shared"; then
  10556. case $archive_cmds in
  10557. *'~'*)
  10558. # FIXME: we may have to deal with multi-command sequences.
  10559. ;;
  10560. '$CC '*)
  10561. # Test whether the compiler implicitly links with -lc since on some
  10562. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  10563. # to ld, don't add -lc before -lgcc.
  10564. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  10565. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  10566. if ${lt_cv_archive_cmds_need_lc+:} false; then :
  10567. $as_echo_n "(cached) " >&6
  10568. else
  10569. $RM conftest*
  10570. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  10571. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  10572. (eval $ac_compile) 2>&5
  10573. ac_status=$?
  10574. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10575. test $ac_status = 0; } 2>conftest.err; then
  10576. soname=conftest
  10577. lib=conftest
  10578. libobjs=conftest.$ac_objext
  10579. deplibs=
  10580. wl=$lt_prog_compiler_wl
  10581. pic_flag=$lt_prog_compiler_pic
  10582. compiler_flags=-v
  10583. linker_flags=-v
  10584. verstring=
  10585. output_objdir=.
  10586. libname=conftest
  10587. lt_save_allow_undefined_flag=$allow_undefined_flag
  10588. allow_undefined_flag=
  10589. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  10590. (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  10591. ac_status=$?
  10592. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10593. test $ac_status = 0; }
  10594. then
  10595. lt_cv_archive_cmds_need_lc=no
  10596. else
  10597. lt_cv_archive_cmds_need_lc=yes
  10598. fi
  10599. allow_undefined_flag=$lt_save_allow_undefined_flag
  10600. else
  10601. cat conftest.err 1>&5
  10602. fi
  10603. $RM conftest*
  10604. fi
  10605. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
  10606. $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
  10607. archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
  10608. ;;
  10609. esac
  10610. fi
  10611. ;;
  10612. esac
  10613. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  10614. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  10615. if test yes = "$GCC"; then
  10616. case $host_os in
  10617. darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
  10618. *) lt_awk_arg='/^libraries:/' ;;
  10619. esac
  10620. case $host_os in
  10621. mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
  10622. *) lt_sed_strip_eq='s|=/|/|g' ;;
  10623. esac
  10624. lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
  10625. case $lt_search_path_spec in
  10626. *\;*)
  10627. # if the path contains ";" then we assume it to be the separator
  10628. # otherwise default to the standard path separator (i.e. ":") - it is
  10629. # assumed that no part of a normal pathname contains ";" but that should
  10630. # okay in the real world where ";" in dirpaths is itself problematic.
  10631. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
  10632. ;;
  10633. *)
  10634. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
  10635. ;;
  10636. esac
  10637. # Ok, now we have the path, separated by spaces, we can step through it
  10638. # and add multilib dir if necessary...
  10639. lt_tmp_lt_search_path_spec=
  10640. lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
  10641. # ...but if some path component already ends with the multilib dir we assume
  10642. # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
  10643. case "$lt_multi_os_dir; $lt_search_path_spec " in
  10644. "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
  10645. lt_multi_os_dir=
  10646. ;;
  10647. esac
  10648. for lt_sys_path in $lt_search_path_spec; do
  10649. if test -d "$lt_sys_path$lt_multi_os_dir"; then
  10650. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
  10651. elif test -n "$lt_multi_os_dir"; then
  10652. test -d "$lt_sys_path" && \
  10653. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
  10654. fi
  10655. done
  10656. lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
  10657. BEGIN {RS = " "; FS = "/|\n";} {
  10658. lt_foo = "";
  10659. lt_count = 0;
  10660. for (lt_i = NF; lt_i > 0; lt_i--) {
  10661. if ($lt_i != "" && $lt_i != ".") {
  10662. if ($lt_i == "..") {
  10663. lt_count++;
  10664. } else {
  10665. if (lt_count == 0) {
  10666. lt_foo = "/" $lt_i lt_foo;
  10667. } else {
  10668. lt_count--;
  10669. }
  10670. }
  10671. }
  10672. }
  10673. if (lt_foo != "") { lt_freq[lt_foo]++; }
  10674. if (lt_freq[lt_foo] == 1) { print lt_foo; }
  10675. }'`
  10676. # AWK program above erroneously prepends '/' to C:/dos/paths
  10677. # for these hosts.
  10678. case $host_os in
  10679. mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
  10680. $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
  10681. esac
  10682. sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
  10683. else
  10684. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  10685. fi
  10686. library_names_spec=
  10687. libname_spec='lib$name'
  10688. soname_spec=
  10689. shrext_cmds=.so
  10690. postinstall_cmds=
  10691. postuninstall_cmds=
  10692. finish_cmds=
  10693. finish_eval=
  10694. shlibpath_var=
  10695. shlibpath_overrides_runpath=unknown
  10696. version_type=none
  10697. dynamic_linker="$host_os ld.so"
  10698. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  10699. need_lib_prefix=unknown
  10700. hardcode_into_libs=no
  10701. # when you set need_version to no, make sure it does not cause -set_version
  10702. # flags to be left without arguments
  10703. need_version=unknown
  10704. case $host_os in
  10705. aix3*)
  10706. version_type=linux # correct to gnu/linux during the next big refactor
  10707. library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
  10708. shlibpath_var=LIBPATH
  10709. # AIX 3 has no versioning support, so we append a major version to the name.
  10710. soname_spec='$libname$release$shared_ext$major'
  10711. ;;
  10712. aix[4-9]*)
  10713. version_type=linux # correct to gnu/linux during the next big refactor
  10714. need_lib_prefix=no
  10715. need_version=no
  10716. hardcode_into_libs=yes
  10717. if test ia64 = "$host_cpu"; then
  10718. # AIX 5 supports IA64
  10719. library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
  10720. shlibpath_var=LD_LIBRARY_PATH
  10721. else
  10722. # With GCC up to 2.95.x, collect2 would create an import file
  10723. # for dependence libraries. The import file would start with
  10724. # the line '#! .'. This would cause the generated library to
  10725. # depend on '.', always an invalid library. This was fixed in
  10726. # development snapshots of GCC prior to 3.0.
  10727. case $host_os in
  10728. aix4 | aix4.[01] | aix4.[01].*)
  10729. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  10730. echo ' yes '
  10731. echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
  10732. :
  10733. else
  10734. can_build_shared=no
  10735. fi
  10736. ;;
  10737. esac
  10738. # Using Import Files as archive members, it is possible to support
  10739. # filename-based versioning of shared library archives on AIX. While
  10740. # this would work for both with and without runtime linking, it will
  10741. # prevent static linking of such archives. So we do filename-based
  10742. # shared library versioning with .so extension only, which is used
  10743. # when both runtime linking and shared linking is enabled.
  10744. # Unfortunately, runtime linking may impact performance, so we do
  10745. # not want this to be the default eventually. Also, we use the
  10746. # versioned .so libs for executables only if there is the -brtl
  10747. # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
  10748. # To allow for filename-based versioning support, we need to create
  10749. # libNAME.so.V as an archive file, containing:
  10750. # *) an Import File, referring to the versioned filename of the
  10751. # archive as well as the shared archive member, telling the
  10752. # bitwidth (32 or 64) of that shared object, and providing the
  10753. # list of exported symbols of that shared object, eventually
  10754. # decorated with the 'weak' keyword
  10755. # *) the shared object with the F_LOADONLY flag set, to really avoid
  10756. # it being seen by the linker.
  10757. # At run time we better use the real file rather than another symlink,
  10758. # but for link time we create the symlink libNAME.so -> libNAME.so.V
  10759. case $with_aix_soname,$aix_use_runtimelinking in
  10760. # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
  10761. # soname into executable. Probably we can add versioning support to
  10762. # collect2, so additional links can be useful in future.
  10763. aix,yes) # traditional libtool
  10764. dynamic_linker='AIX unversionable lib.so'
  10765. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  10766. # instead of lib<name>.a to let people know that these are not
  10767. # typical AIX shared libraries.
  10768. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10769. ;;
  10770. aix,no) # traditional AIX only
  10771. dynamic_linker='AIX lib.a(lib.so.V)'
  10772. # We preserve .a as extension for shared libraries through AIX4.2
  10773. # and later when we are not doing run time linking.
  10774. library_names_spec='$libname$release.a $libname.a'
  10775. soname_spec='$libname$release$shared_ext$major'
  10776. ;;
  10777. svr4,*) # full svr4 only
  10778. dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
  10779. library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
  10780. # We do not specify a path in Import Files, so LIBPATH fires.
  10781. shlibpath_overrides_runpath=yes
  10782. ;;
  10783. *,yes) # both, prefer svr4
  10784. dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
  10785. library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
  10786. # unpreferred sharedlib libNAME.a needs extra handling
  10787. 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"'
  10788. 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"'
  10789. # We do not specify a path in Import Files, so LIBPATH fires.
  10790. shlibpath_overrides_runpath=yes
  10791. ;;
  10792. *,no) # both, prefer aix
  10793. dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
  10794. library_names_spec='$libname$release.a $libname.a'
  10795. soname_spec='$libname$release$shared_ext$major'
  10796. # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
  10797. 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)'
  10798. 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"'
  10799. ;;
  10800. esac
  10801. shlibpath_var=LIBPATH
  10802. fi
  10803. ;;
  10804. amigaos*)
  10805. case $host_cpu in
  10806. powerpc)
  10807. # Since July 2007 AmigaOS4 officially supports .so libraries.
  10808. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  10809. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10810. ;;
  10811. m68k)
  10812. library_names_spec='$libname.ixlibrary $libname.a'
  10813. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  10814. 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'
  10815. ;;
  10816. esac
  10817. ;;
  10818. beos*)
  10819. library_names_spec='$libname$shared_ext'
  10820. dynamic_linker="$host_os ld.so"
  10821. shlibpath_var=LIBRARY_PATH
  10822. ;;
  10823. bsdi[45]*)
  10824. version_type=linux # correct to gnu/linux during the next big refactor
  10825. need_version=no
  10826. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10827. soname_spec='$libname$release$shared_ext$major'
  10828. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  10829. shlibpath_var=LD_LIBRARY_PATH
  10830. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  10831. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  10832. # the default ld.so.conf also contains /usr/contrib/lib and
  10833. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  10834. # libtool to hard-code these into programs
  10835. ;;
  10836. cygwin* | mingw* | pw32* | cegcc*)
  10837. version_type=windows
  10838. shrext_cmds=.dll
  10839. need_version=no
  10840. need_lib_prefix=no
  10841. case $GCC,$cc_basename in
  10842. yes,*)
  10843. # gcc
  10844. library_names_spec='$libname.dll.a'
  10845. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  10846. postinstall_cmds='base_file=`basename \$file`~
  10847. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
  10848. dldir=$destdir/`dirname \$dlpath`~
  10849. test -d \$dldir || mkdir -p \$dldir~
  10850. $install_prog $dir/$dlname \$dldir/$dlname~
  10851. chmod a+x \$dldir/$dlname~
  10852. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  10853. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  10854. fi'
  10855. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  10856. dlpath=$dir/\$dldll~
  10857. $RM \$dlpath'
  10858. shlibpath_overrides_runpath=yes
  10859. case $host_os in
  10860. cygwin*)
  10861. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  10862. soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  10863. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
  10864. ;;
  10865. mingw* | cegcc*)
  10866. # MinGW DLLs use traditional 'lib' prefix
  10867. soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  10868. ;;
  10869. pw32*)
  10870. # pw32 DLLs use 'pw' prefix rather than 'lib'
  10871. library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  10872. ;;
  10873. esac
  10874. dynamic_linker='Win32 ld.exe'
  10875. ;;
  10876. *,cl*)
  10877. # Native MSVC
  10878. libname_spec='$name'
  10879. soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  10880. library_names_spec='$libname.dll.lib'
  10881. case $build_os in
  10882. mingw*)
  10883. sys_lib_search_path_spec=
  10884. lt_save_ifs=$IFS
  10885. IFS=';'
  10886. for lt_path in $LIB
  10887. do
  10888. IFS=$lt_save_ifs
  10889. # Let DOS variable expansion print the short 8.3 style file name.
  10890. lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
  10891. sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
  10892. done
  10893. IFS=$lt_save_ifs
  10894. # Convert to MSYS style.
  10895. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
  10896. ;;
  10897. cygwin*)
  10898. # Convert to unix form, then to dos form, then back to unix form
  10899. # but this time dos style (no spaces!) so that the unix form looks
  10900. # like /cygdrive/c/PROGRA~1:/cygdr...
  10901. sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
  10902. sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
  10903. sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  10904. ;;
  10905. *)
  10906. sys_lib_search_path_spec=$LIB
  10907. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  10908. # It is most probably a Windows format PATH.
  10909. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  10910. else
  10911. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  10912. fi
  10913. # FIXME: find the short name or the path components, as spaces are
  10914. # common. (e.g. "Program Files" -> "PROGRA~1")
  10915. ;;
  10916. esac
  10917. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  10918. postinstall_cmds='base_file=`basename \$file`~
  10919. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
  10920. dldir=$destdir/`dirname \$dlpath`~
  10921. test -d \$dldir || mkdir -p \$dldir~
  10922. $install_prog $dir/$dlname \$dldir/$dlname'
  10923. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  10924. dlpath=$dir/\$dldll~
  10925. $RM \$dlpath'
  10926. shlibpath_overrides_runpath=yes
  10927. dynamic_linker='Win32 link.exe'
  10928. ;;
  10929. *)
  10930. # Assume MSVC wrapper
  10931. library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
  10932. dynamic_linker='Win32 ld.exe'
  10933. ;;
  10934. esac
  10935. # FIXME: first we should search . and the directory the executable is in
  10936. shlibpath_var=PATH
  10937. ;;
  10938. darwin* | rhapsody*)
  10939. dynamic_linker="$host_os dyld"
  10940. version_type=darwin
  10941. need_lib_prefix=no
  10942. need_version=no
  10943. library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
  10944. soname_spec='$libname$release$major$shared_ext'
  10945. shlibpath_overrides_runpath=yes
  10946. shlibpath_var=DYLD_LIBRARY_PATH
  10947. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  10948. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
  10949. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  10950. ;;
  10951. dgux*)
  10952. version_type=linux # correct to gnu/linux during the next big refactor
  10953. need_lib_prefix=no
  10954. need_version=no
  10955. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10956. soname_spec='$libname$release$shared_ext$major'
  10957. shlibpath_var=LD_LIBRARY_PATH
  10958. ;;
  10959. freebsd* | dragonfly*)
  10960. # DragonFly does not have aout. When/if they implement a new
  10961. # versioning mechanism, adjust this.
  10962. if test -x /usr/bin/objformat; then
  10963. objformat=`/usr/bin/objformat`
  10964. else
  10965. case $host_os in
  10966. freebsd[23].*) objformat=aout ;;
  10967. *) objformat=elf ;;
  10968. esac
  10969. fi
  10970. version_type=freebsd-$objformat
  10971. case $version_type in
  10972. freebsd-elf*)
  10973. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10974. soname_spec='$libname$release$shared_ext$major'
  10975. need_version=no
  10976. need_lib_prefix=no
  10977. ;;
  10978. freebsd-*)
  10979. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  10980. need_version=yes
  10981. ;;
  10982. esac
  10983. shlibpath_var=LD_LIBRARY_PATH
  10984. case $host_os in
  10985. freebsd2.*)
  10986. shlibpath_overrides_runpath=yes
  10987. ;;
  10988. freebsd3.[01]* | freebsdelf3.[01]*)
  10989. shlibpath_overrides_runpath=yes
  10990. hardcode_into_libs=yes
  10991. ;;
  10992. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  10993. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  10994. shlibpath_overrides_runpath=no
  10995. hardcode_into_libs=yes
  10996. ;;
  10997. *) # from 4.6 on, and DragonFly
  10998. shlibpath_overrides_runpath=yes
  10999. hardcode_into_libs=yes
  11000. ;;
  11001. esac
  11002. ;;
  11003. haiku*)
  11004. version_type=linux # correct to gnu/linux during the next big refactor
  11005. need_lib_prefix=no
  11006. need_version=no
  11007. dynamic_linker="$host_os runtime_loader"
  11008. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  11009. soname_spec='$libname$release$shared_ext$major'
  11010. shlibpath_var=LIBRARY_PATH
  11011. shlibpath_overrides_runpath=no
  11012. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
  11013. hardcode_into_libs=yes
  11014. ;;
  11015. hpux9* | hpux10* | hpux11*)
  11016. # Give a soname corresponding to the major version so that dld.sl refuses to
  11017. # link against other versions.
  11018. version_type=sunos
  11019. need_lib_prefix=no
  11020. need_version=no
  11021. case $host_cpu in
  11022. ia64*)
  11023. shrext_cmds='.so'
  11024. hardcode_into_libs=yes
  11025. dynamic_linker="$host_os dld.so"
  11026. shlibpath_var=LD_LIBRARY_PATH
  11027. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  11028. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  11029. soname_spec='$libname$release$shared_ext$major'
  11030. if test 32 = "$HPUX_IA64_MODE"; then
  11031. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  11032. sys_lib_dlsearch_path_spec=/usr/lib/hpux32
  11033. else
  11034. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  11035. sys_lib_dlsearch_path_spec=/usr/lib/hpux64
  11036. fi
  11037. ;;
  11038. hppa*64*)
  11039. shrext_cmds='.sl'
  11040. hardcode_into_libs=yes
  11041. dynamic_linker="$host_os dld.sl"
  11042. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  11043. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  11044. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  11045. soname_spec='$libname$release$shared_ext$major'
  11046. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  11047. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  11048. ;;
  11049. *)
  11050. shrext_cmds='.sl'
  11051. dynamic_linker="$host_os dld.sl"
  11052. shlibpath_var=SHLIB_PATH
  11053. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  11054. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  11055. soname_spec='$libname$release$shared_ext$major'
  11056. ;;
  11057. esac
  11058. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  11059. postinstall_cmds='chmod 555 $lib'
  11060. # or fails outright, so override atomically:
  11061. install_override_mode=555
  11062. ;;
  11063. interix[3-9]*)
  11064. version_type=linux # correct to gnu/linux during the next big refactor
  11065. need_lib_prefix=no
  11066. need_version=no
  11067. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  11068. soname_spec='$libname$release$shared_ext$major'
  11069. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  11070. shlibpath_var=LD_LIBRARY_PATH
  11071. shlibpath_overrides_runpath=no
  11072. hardcode_into_libs=yes
  11073. ;;
  11074. irix5* | irix6* | nonstopux*)
  11075. case $host_os in
  11076. nonstopux*) version_type=nonstopux ;;
  11077. *)
  11078. if test yes = "$lt_cv_prog_gnu_ld"; then
  11079. version_type=linux # correct to gnu/linux during the next big refactor
  11080. else
  11081. version_type=irix
  11082. fi ;;
  11083. esac
  11084. need_lib_prefix=no
  11085. need_version=no
  11086. soname_spec='$libname$release$shared_ext$major'
  11087. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
  11088. case $host_os in
  11089. irix5* | nonstopux*)
  11090. libsuff= shlibsuff=
  11091. ;;
  11092. *)
  11093. case $LD in # libtool.m4 will add one of these switches to LD
  11094. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  11095. libsuff= shlibsuff= libmagic=32-bit;;
  11096. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  11097. libsuff=32 shlibsuff=N32 libmagic=N32;;
  11098. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  11099. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  11100. *) libsuff= shlibsuff= libmagic=never-match;;
  11101. esac
  11102. ;;
  11103. esac
  11104. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  11105. shlibpath_overrides_runpath=no
  11106. sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
  11107. sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
  11108. hardcode_into_libs=yes
  11109. ;;
  11110. # No shared lib support for Linux oldld, aout, or coff.
  11111. linux*oldld* | linux*aout* | linux*coff*)
  11112. dynamic_linker=no
  11113. ;;
  11114. linux*android*)
  11115. version_type=none # Android doesn't support versioned libraries.
  11116. need_lib_prefix=no
  11117. need_version=no
  11118. library_names_spec='$libname$release$shared_ext'
  11119. soname_spec='$libname$release$shared_ext'
  11120. finish_cmds=
  11121. shlibpath_var=LD_LIBRARY_PATH
  11122. shlibpath_overrides_runpath=yes
  11123. # This implies no fast_install, which is unacceptable.
  11124. # Some rework will be needed to allow for fast_install
  11125. # before this can be enabled.
  11126. hardcode_into_libs=yes
  11127. dynamic_linker='Android linker'
  11128. # Don't embed -rpath directories since the linker doesn't support them.
  11129. hardcode_libdir_flag_spec='-L$libdir'
  11130. ;;
  11131. # This must be glibc/ELF.
  11132. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  11133. version_type=linux # correct to gnu/linux during the next big refactor
  11134. need_lib_prefix=no
  11135. need_version=no
  11136. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  11137. soname_spec='$libname$release$shared_ext$major'
  11138. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  11139. shlibpath_var=LD_LIBRARY_PATH
  11140. shlibpath_overrides_runpath=no
  11141. # Some binutils ld are patched to set DT_RUNPATH
  11142. if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
  11143. $as_echo_n "(cached) " >&6
  11144. else
  11145. lt_cv_shlibpath_overrides_runpath=no
  11146. save_LDFLAGS=$LDFLAGS
  11147. save_libdir=$libdir
  11148. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
  11149. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
  11150. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11151. /* end confdefs.h. */
  11152. int
  11153. main ()
  11154. {
  11155. ;
  11156. return 0;
  11157. }
  11158. _ACEOF
  11159. if ac_fn_c_try_link "$LINENO"; then :
  11160. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  11161. lt_cv_shlibpath_overrides_runpath=yes
  11162. fi
  11163. fi
  11164. rm -f core conftest.err conftest.$ac_objext \
  11165. conftest$ac_exeext conftest.$ac_ext
  11166. LDFLAGS=$save_LDFLAGS
  11167. libdir=$save_libdir
  11168. fi
  11169. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  11170. # This implies no fast_install, which is unacceptable.
  11171. # Some rework will be needed to allow for fast_install
  11172. # before this can be enabled.
  11173. hardcode_into_libs=yes
  11174. # Ideally, we could use ldconfig to report *all* directores which are
  11175. # searched for libraries, however this is still not possible. Aside from not
  11176. # being certain /sbin/ldconfig is available, command
  11177. # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
  11178. # even though it is searched at run-time. Try to do the best guess by
  11179. # appending ld.so.conf contents (and includes) to the search path.
  11180. if test -f /etc/ld.so.conf; then
  11181. 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' ' '`
  11182. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  11183. fi
  11184. # We used to test for /lib/ld.so.1 and disable shared libraries on
  11185. # powerpc, because MkLinux only supported shared libraries with the
  11186. # GNU dynamic linker. Since this was broken with cross compilers,
  11187. # most powerpc-linux boxes support dynamic linking these days and
  11188. # people can always --disable-shared, the test was removed, and we
  11189. # assume the GNU/Linux dynamic linker is in use.
  11190. dynamic_linker='GNU/Linux ld.so'
  11191. ;;
  11192. netbsdelf*-gnu)
  11193. version_type=linux
  11194. need_lib_prefix=no
  11195. need_version=no
  11196. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  11197. soname_spec='${libname}${release}${shared_ext}$major'
  11198. shlibpath_var=LD_LIBRARY_PATH
  11199. shlibpath_overrides_runpath=no
  11200. hardcode_into_libs=yes
  11201. dynamic_linker='NetBSD ld.elf_so'
  11202. ;;
  11203. netbsd*)
  11204. version_type=sunos
  11205. need_lib_prefix=no
  11206. need_version=no
  11207. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  11208. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  11209. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  11210. dynamic_linker='NetBSD (a.out) ld.so'
  11211. else
  11212. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  11213. soname_spec='$libname$release$shared_ext$major'
  11214. dynamic_linker='NetBSD ld.elf_so'
  11215. fi
  11216. shlibpath_var=LD_LIBRARY_PATH
  11217. shlibpath_overrides_runpath=yes
  11218. hardcode_into_libs=yes
  11219. ;;
  11220. newsos6)
  11221. version_type=linux # correct to gnu/linux during the next big refactor
  11222. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  11223. shlibpath_var=LD_LIBRARY_PATH
  11224. shlibpath_overrides_runpath=yes
  11225. ;;
  11226. *nto* | *qnx*)
  11227. version_type=qnx
  11228. need_lib_prefix=no
  11229. need_version=no
  11230. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  11231. soname_spec='$libname$release$shared_ext$major'
  11232. shlibpath_var=LD_LIBRARY_PATH
  11233. shlibpath_overrides_runpath=no
  11234. hardcode_into_libs=yes
  11235. dynamic_linker='ldqnx.so'
  11236. ;;
  11237. openbsd* | bitrig*)
  11238. version_type=sunos
  11239. sys_lib_dlsearch_path_spec=/usr/lib
  11240. need_lib_prefix=no
  11241. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
  11242. need_version=no
  11243. else
  11244. need_version=yes
  11245. fi
  11246. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  11247. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  11248. shlibpath_var=LD_LIBRARY_PATH
  11249. shlibpath_overrides_runpath=yes
  11250. ;;
  11251. os2*)
  11252. libname_spec='$name'
  11253. version_type=windows
  11254. shrext_cmds=.dll
  11255. need_version=no
  11256. need_lib_prefix=no
  11257. # OS/2 can only load a DLL with a base name of 8 characters or less.
  11258. soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
  11259. v=$($ECHO $release$versuffix | tr -d .-);
  11260. n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
  11261. $ECHO $n$v`$shared_ext'
  11262. library_names_spec='${libname}_dll.$libext'
  11263. dynamic_linker='OS/2 ld.exe'
  11264. shlibpath_var=BEGINLIBPATH
  11265. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  11266. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  11267. postinstall_cmds='base_file=`basename \$file`~
  11268. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
  11269. dldir=$destdir/`dirname \$dlpath`~
  11270. test -d \$dldir || mkdir -p \$dldir~
  11271. $install_prog $dir/$dlname \$dldir/$dlname~
  11272. chmod a+x \$dldir/$dlname~
  11273. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  11274. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  11275. fi'
  11276. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
  11277. dlpath=$dir/\$dldll~
  11278. $RM \$dlpath'
  11279. ;;
  11280. osf3* | osf4* | osf5*)
  11281. version_type=osf
  11282. need_lib_prefix=no
  11283. need_version=no
  11284. soname_spec='$libname$release$shared_ext$major'
  11285. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  11286. shlibpath_var=LD_LIBRARY_PATH
  11287. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  11288. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  11289. ;;
  11290. rdos*)
  11291. dynamic_linker=no
  11292. ;;
  11293. solaris*)
  11294. version_type=linux # correct to gnu/linux during the next big refactor
  11295. need_lib_prefix=no
  11296. need_version=no
  11297. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  11298. soname_spec='$libname$release$shared_ext$major'
  11299. shlibpath_var=LD_LIBRARY_PATH
  11300. shlibpath_overrides_runpath=yes
  11301. hardcode_into_libs=yes
  11302. # ldd complains unless libraries are executable
  11303. postinstall_cmds='chmod +x $lib'
  11304. ;;
  11305. sunos4*)
  11306. version_type=sunos
  11307. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  11308. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  11309. shlibpath_var=LD_LIBRARY_PATH
  11310. shlibpath_overrides_runpath=yes
  11311. if test yes = "$with_gnu_ld"; then
  11312. need_lib_prefix=no
  11313. fi
  11314. need_version=yes
  11315. ;;
  11316. sysv4 | sysv4.3*)
  11317. version_type=linux # correct to gnu/linux during the next big refactor
  11318. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  11319. soname_spec='$libname$release$shared_ext$major'
  11320. shlibpath_var=LD_LIBRARY_PATH
  11321. case $host_vendor in
  11322. sni)
  11323. shlibpath_overrides_runpath=no
  11324. need_lib_prefix=no
  11325. runpath_var=LD_RUN_PATH
  11326. ;;
  11327. siemens)
  11328. need_lib_prefix=no
  11329. ;;
  11330. motorola)
  11331. need_lib_prefix=no
  11332. need_version=no
  11333. shlibpath_overrides_runpath=no
  11334. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  11335. ;;
  11336. esac
  11337. ;;
  11338. sysv4*MP*)
  11339. if test -d /usr/nec; then
  11340. version_type=linux # correct to gnu/linux during the next big refactor
  11341. library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
  11342. soname_spec='$libname$shared_ext.$major'
  11343. shlibpath_var=LD_LIBRARY_PATH
  11344. fi
  11345. ;;
  11346. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  11347. version_type=sco
  11348. need_lib_prefix=no
  11349. need_version=no
  11350. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
  11351. soname_spec='$libname$release$shared_ext$major'
  11352. shlibpath_var=LD_LIBRARY_PATH
  11353. shlibpath_overrides_runpath=yes
  11354. hardcode_into_libs=yes
  11355. if test yes = "$with_gnu_ld"; then
  11356. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  11357. else
  11358. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  11359. case $host_os in
  11360. sco3.2v5*)
  11361. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  11362. ;;
  11363. esac
  11364. fi
  11365. sys_lib_dlsearch_path_spec='/usr/lib'
  11366. ;;
  11367. tpf*)
  11368. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  11369. version_type=linux # correct to gnu/linux during the next big refactor
  11370. need_lib_prefix=no
  11371. need_version=no
  11372. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  11373. shlibpath_var=LD_LIBRARY_PATH
  11374. shlibpath_overrides_runpath=no
  11375. hardcode_into_libs=yes
  11376. ;;
  11377. uts4*)
  11378. version_type=linux # correct to gnu/linux during the next big refactor
  11379. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  11380. soname_spec='$libname$release$shared_ext$major'
  11381. shlibpath_var=LD_LIBRARY_PATH
  11382. ;;
  11383. *)
  11384. dynamic_linker=no
  11385. ;;
  11386. esac
  11387. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  11388. $as_echo "$dynamic_linker" >&6; }
  11389. test no = "$dynamic_linker" && can_build_shared=no
  11390. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  11391. if test yes = "$GCC"; then
  11392. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  11393. fi
  11394. if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
  11395. sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
  11396. fi
  11397. if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
  11398. sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
  11399. fi
  11400. # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
  11401. configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
  11402. # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
  11403. func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
  11404. # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
  11405. configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
  11406. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  11407. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  11408. hardcode_action=
  11409. if test -n "$hardcode_libdir_flag_spec" ||
  11410. test -n "$runpath_var" ||
  11411. test yes = "$hardcode_automatic"; then
  11412. # We can hardcode non-existent directories.
  11413. if test no != "$hardcode_direct" &&
  11414. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  11415. # have to relink, otherwise we might link with an installed library
  11416. # when we should be linking with a yet-to-be-installed one
  11417. ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
  11418. test no != "$hardcode_minus_L"; then
  11419. # Linking always hardcodes the temporary library directory.
  11420. hardcode_action=relink
  11421. else
  11422. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  11423. hardcode_action=immediate
  11424. fi
  11425. else
  11426. # We cannot hardcode anything, or else we can only hardcode existing
  11427. # directories.
  11428. hardcode_action=unsupported
  11429. fi
  11430. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
  11431. $as_echo "$hardcode_action" >&6; }
  11432. if test relink = "$hardcode_action" ||
  11433. test yes = "$inherit_rpath"; then
  11434. # Fast installation is not supported
  11435. enable_fast_install=no
  11436. elif test yes = "$shlibpath_overrides_runpath" ||
  11437. test no = "$enable_shared"; then
  11438. # Fast installation is not necessary
  11439. enable_fast_install=needless
  11440. fi
  11441. if test yes != "$enable_dlopen"; then
  11442. enable_dlopen=unknown
  11443. enable_dlopen_self=unknown
  11444. enable_dlopen_self_static=unknown
  11445. else
  11446. lt_cv_dlopen=no
  11447. lt_cv_dlopen_libs=
  11448. case $host_os in
  11449. beos*)
  11450. lt_cv_dlopen=load_add_on
  11451. lt_cv_dlopen_libs=
  11452. lt_cv_dlopen_self=yes
  11453. ;;
  11454. mingw* | pw32* | cegcc*)
  11455. lt_cv_dlopen=LoadLibrary
  11456. lt_cv_dlopen_libs=
  11457. ;;
  11458. cygwin*)
  11459. lt_cv_dlopen=dlopen
  11460. lt_cv_dlopen_libs=
  11461. ;;
  11462. darwin*)
  11463. # if libdl is installed we need to link against it
  11464. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  11465. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  11466. if ${ac_cv_lib_dl_dlopen+:} false; then :
  11467. $as_echo_n "(cached) " >&6
  11468. else
  11469. ac_check_lib_save_LIBS=$LIBS
  11470. LIBS="-ldl $LIBS"
  11471. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11472. /* end confdefs.h. */
  11473. /* Override any GCC internal prototype to avoid an error.
  11474. Use char because int might match the return type of a GCC
  11475. builtin and then its argument prototype would still apply. */
  11476. #ifdef __cplusplus
  11477. extern "C"
  11478. #endif
  11479. char dlopen ();
  11480. int
  11481. main ()
  11482. {
  11483. return dlopen ();
  11484. ;
  11485. return 0;
  11486. }
  11487. _ACEOF
  11488. if ac_fn_c_try_link "$LINENO"; then :
  11489. ac_cv_lib_dl_dlopen=yes
  11490. else
  11491. ac_cv_lib_dl_dlopen=no
  11492. fi
  11493. rm -f core conftest.err conftest.$ac_objext \
  11494. conftest$ac_exeext conftest.$ac_ext
  11495. LIBS=$ac_check_lib_save_LIBS
  11496. fi
  11497. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  11498. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  11499. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  11500. lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
  11501. else
  11502. lt_cv_dlopen=dyld
  11503. lt_cv_dlopen_libs=
  11504. lt_cv_dlopen_self=yes
  11505. fi
  11506. ;;
  11507. tpf*)
  11508. # Don't try to run any link tests for TPF. We know it's impossible
  11509. # because TPF is a cross-compiler, and we know how we open DSOs.
  11510. lt_cv_dlopen=dlopen
  11511. lt_cv_dlopen_libs=
  11512. lt_cv_dlopen_self=no
  11513. ;;
  11514. *)
  11515. ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
  11516. if test "x$ac_cv_func_shl_load" = xyes; then :
  11517. lt_cv_dlopen=shl_load
  11518. else
  11519. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
  11520. $as_echo_n "checking for shl_load in -ldld... " >&6; }
  11521. if ${ac_cv_lib_dld_shl_load+:} false; then :
  11522. $as_echo_n "(cached) " >&6
  11523. else
  11524. ac_check_lib_save_LIBS=$LIBS
  11525. LIBS="-ldld $LIBS"
  11526. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11527. /* end confdefs.h. */
  11528. /* Override any GCC internal prototype to avoid an error.
  11529. Use char because int might match the return type of a GCC
  11530. builtin and then its argument prototype would still apply. */
  11531. #ifdef __cplusplus
  11532. extern "C"
  11533. #endif
  11534. char shl_load ();
  11535. int
  11536. main ()
  11537. {
  11538. return shl_load ();
  11539. ;
  11540. return 0;
  11541. }
  11542. _ACEOF
  11543. if ac_fn_c_try_link "$LINENO"; then :
  11544. ac_cv_lib_dld_shl_load=yes
  11545. else
  11546. ac_cv_lib_dld_shl_load=no
  11547. fi
  11548. rm -f core conftest.err conftest.$ac_objext \
  11549. conftest$ac_exeext conftest.$ac_ext
  11550. LIBS=$ac_check_lib_save_LIBS
  11551. fi
  11552. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
  11553. $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
  11554. if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
  11555. lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
  11556. else
  11557. ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
  11558. if test "x$ac_cv_func_dlopen" = xyes; then :
  11559. lt_cv_dlopen=dlopen
  11560. else
  11561. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  11562. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  11563. if ${ac_cv_lib_dl_dlopen+:} false; then :
  11564. $as_echo_n "(cached) " >&6
  11565. else
  11566. ac_check_lib_save_LIBS=$LIBS
  11567. LIBS="-ldl $LIBS"
  11568. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11569. /* end confdefs.h. */
  11570. /* Override any GCC internal prototype to avoid an error.
  11571. Use char because int might match the return type of a GCC
  11572. builtin and then its argument prototype would still apply. */
  11573. #ifdef __cplusplus
  11574. extern "C"
  11575. #endif
  11576. char dlopen ();
  11577. int
  11578. main ()
  11579. {
  11580. return dlopen ();
  11581. ;
  11582. return 0;
  11583. }
  11584. _ACEOF
  11585. if ac_fn_c_try_link "$LINENO"; then :
  11586. ac_cv_lib_dl_dlopen=yes
  11587. else
  11588. ac_cv_lib_dl_dlopen=no
  11589. fi
  11590. rm -f core conftest.err conftest.$ac_objext \
  11591. conftest$ac_exeext conftest.$ac_ext
  11592. LIBS=$ac_check_lib_save_LIBS
  11593. fi
  11594. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  11595. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  11596. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  11597. lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
  11598. else
  11599. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
  11600. $as_echo_n "checking for dlopen in -lsvld... " >&6; }
  11601. if ${ac_cv_lib_svld_dlopen+:} false; then :
  11602. $as_echo_n "(cached) " >&6
  11603. else
  11604. ac_check_lib_save_LIBS=$LIBS
  11605. LIBS="-lsvld $LIBS"
  11606. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11607. /* end confdefs.h. */
  11608. /* Override any GCC internal prototype to avoid an error.
  11609. Use char because int might match the return type of a GCC
  11610. builtin and then its argument prototype would still apply. */
  11611. #ifdef __cplusplus
  11612. extern "C"
  11613. #endif
  11614. char dlopen ();
  11615. int
  11616. main ()
  11617. {
  11618. return dlopen ();
  11619. ;
  11620. return 0;
  11621. }
  11622. _ACEOF
  11623. if ac_fn_c_try_link "$LINENO"; then :
  11624. ac_cv_lib_svld_dlopen=yes
  11625. else
  11626. ac_cv_lib_svld_dlopen=no
  11627. fi
  11628. rm -f core conftest.err conftest.$ac_objext \
  11629. conftest$ac_exeext conftest.$ac_ext
  11630. LIBS=$ac_check_lib_save_LIBS
  11631. fi
  11632. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
  11633. $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
  11634. if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
  11635. lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
  11636. else
  11637. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
  11638. $as_echo_n "checking for dld_link in -ldld... " >&6; }
  11639. if ${ac_cv_lib_dld_dld_link+:} false; then :
  11640. $as_echo_n "(cached) " >&6
  11641. else
  11642. ac_check_lib_save_LIBS=$LIBS
  11643. LIBS="-ldld $LIBS"
  11644. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11645. /* end confdefs.h. */
  11646. /* Override any GCC internal prototype to avoid an error.
  11647. Use char because int might match the return type of a GCC
  11648. builtin and then its argument prototype would still apply. */
  11649. #ifdef __cplusplus
  11650. extern "C"
  11651. #endif
  11652. char dld_link ();
  11653. int
  11654. main ()
  11655. {
  11656. return dld_link ();
  11657. ;
  11658. return 0;
  11659. }
  11660. _ACEOF
  11661. if ac_fn_c_try_link "$LINENO"; then :
  11662. ac_cv_lib_dld_dld_link=yes
  11663. else
  11664. ac_cv_lib_dld_dld_link=no
  11665. fi
  11666. rm -f core conftest.err conftest.$ac_objext \
  11667. conftest$ac_exeext conftest.$ac_ext
  11668. LIBS=$ac_check_lib_save_LIBS
  11669. fi
  11670. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
  11671. $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
  11672. if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
  11673. lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
  11674. fi
  11675. fi
  11676. fi
  11677. fi
  11678. fi
  11679. fi
  11680. ;;
  11681. esac
  11682. if test no = "$lt_cv_dlopen"; then
  11683. enable_dlopen=no
  11684. else
  11685. enable_dlopen=yes
  11686. fi
  11687. case $lt_cv_dlopen in
  11688. dlopen)
  11689. save_CPPFLAGS=$CPPFLAGS
  11690. test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  11691. save_LDFLAGS=$LDFLAGS
  11692. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  11693. save_LIBS=$LIBS
  11694. LIBS="$lt_cv_dlopen_libs $LIBS"
  11695. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
  11696. $as_echo_n "checking whether a program can dlopen itself... " >&6; }
  11697. if ${lt_cv_dlopen_self+:} false; then :
  11698. $as_echo_n "(cached) " >&6
  11699. else
  11700. if test yes = "$cross_compiling"; then :
  11701. lt_cv_dlopen_self=cross
  11702. else
  11703. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  11704. lt_status=$lt_dlunknown
  11705. cat > conftest.$ac_ext <<_LT_EOF
  11706. #line $LINENO "configure"
  11707. #include "confdefs.h"
  11708. #if HAVE_DLFCN_H
  11709. #include <dlfcn.h>
  11710. #endif
  11711. #include <stdio.h>
  11712. #ifdef RTLD_GLOBAL
  11713. # define LT_DLGLOBAL RTLD_GLOBAL
  11714. #else
  11715. # ifdef DL_GLOBAL
  11716. # define LT_DLGLOBAL DL_GLOBAL
  11717. # else
  11718. # define LT_DLGLOBAL 0
  11719. # endif
  11720. #endif
  11721. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  11722. find out it does not work in some platform. */
  11723. #ifndef LT_DLLAZY_OR_NOW
  11724. # ifdef RTLD_LAZY
  11725. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  11726. # else
  11727. # ifdef DL_LAZY
  11728. # define LT_DLLAZY_OR_NOW DL_LAZY
  11729. # else
  11730. # ifdef RTLD_NOW
  11731. # define LT_DLLAZY_OR_NOW RTLD_NOW
  11732. # else
  11733. # ifdef DL_NOW
  11734. # define LT_DLLAZY_OR_NOW DL_NOW
  11735. # else
  11736. # define LT_DLLAZY_OR_NOW 0
  11737. # endif
  11738. # endif
  11739. # endif
  11740. # endif
  11741. #endif
  11742. /* When -fvisibility=hidden is used, assume the code has been annotated
  11743. correspondingly for the symbols needed. */
  11744. #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  11745. int fnord () __attribute__((visibility("default")));
  11746. #endif
  11747. int fnord () { return 42; }
  11748. int main ()
  11749. {
  11750. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  11751. int status = $lt_dlunknown;
  11752. if (self)
  11753. {
  11754. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  11755. else
  11756. {
  11757. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  11758. else puts (dlerror ());
  11759. }
  11760. /* dlclose (self); */
  11761. }
  11762. else
  11763. puts (dlerror ());
  11764. return status;
  11765. }
  11766. _LT_EOF
  11767. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  11768. (eval $ac_link) 2>&5
  11769. ac_status=$?
  11770. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11771. test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
  11772. (./conftest; exit; ) >&5 2>/dev/null
  11773. lt_status=$?
  11774. case x$lt_status in
  11775. x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  11776. x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  11777. x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
  11778. esac
  11779. else :
  11780. # compilation failed
  11781. lt_cv_dlopen_self=no
  11782. fi
  11783. fi
  11784. rm -fr conftest*
  11785. fi
  11786. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
  11787. $as_echo "$lt_cv_dlopen_self" >&6; }
  11788. if test yes = "$lt_cv_dlopen_self"; then
  11789. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  11790. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
  11791. $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
  11792. if ${lt_cv_dlopen_self_static+:} false; then :
  11793. $as_echo_n "(cached) " >&6
  11794. else
  11795. if test yes = "$cross_compiling"; then :
  11796. lt_cv_dlopen_self_static=cross
  11797. else
  11798. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  11799. lt_status=$lt_dlunknown
  11800. cat > conftest.$ac_ext <<_LT_EOF
  11801. #line $LINENO "configure"
  11802. #include "confdefs.h"
  11803. #if HAVE_DLFCN_H
  11804. #include <dlfcn.h>
  11805. #endif
  11806. #include <stdio.h>
  11807. #ifdef RTLD_GLOBAL
  11808. # define LT_DLGLOBAL RTLD_GLOBAL
  11809. #else
  11810. # ifdef DL_GLOBAL
  11811. # define LT_DLGLOBAL DL_GLOBAL
  11812. # else
  11813. # define LT_DLGLOBAL 0
  11814. # endif
  11815. #endif
  11816. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  11817. find out it does not work in some platform. */
  11818. #ifndef LT_DLLAZY_OR_NOW
  11819. # ifdef RTLD_LAZY
  11820. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  11821. # else
  11822. # ifdef DL_LAZY
  11823. # define LT_DLLAZY_OR_NOW DL_LAZY
  11824. # else
  11825. # ifdef RTLD_NOW
  11826. # define LT_DLLAZY_OR_NOW RTLD_NOW
  11827. # else
  11828. # ifdef DL_NOW
  11829. # define LT_DLLAZY_OR_NOW DL_NOW
  11830. # else
  11831. # define LT_DLLAZY_OR_NOW 0
  11832. # endif
  11833. # endif
  11834. # endif
  11835. # endif
  11836. #endif
  11837. /* When -fvisibility=hidden is used, assume the code has been annotated
  11838. correspondingly for the symbols needed. */
  11839. #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  11840. int fnord () __attribute__((visibility("default")));
  11841. #endif
  11842. int fnord () { return 42; }
  11843. int main ()
  11844. {
  11845. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  11846. int status = $lt_dlunknown;
  11847. if (self)
  11848. {
  11849. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  11850. else
  11851. {
  11852. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  11853. else puts (dlerror ());
  11854. }
  11855. /* dlclose (self); */
  11856. }
  11857. else
  11858. puts (dlerror ());
  11859. return status;
  11860. }
  11861. _LT_EOF
  11862. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  11863. (eval $ac_link) 2>&5
  11864. ac_status=$?
  11865. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11866. test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
  11867. (./conftest; exit; ) >&5 2>/dev/null
  11868. lt_status=$?
  11869. case x$lt_status in
  11870. x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  11871. x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  11872. x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
  11873. esac
  11874. else :
  11875. # compilation failed
  11876. lt_cv_dlopen_self_static=no
  11877. fi
  11878. fi
  11879. rm -fr conftest*
  11880. fi
  11881. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
  11882. $as_echo "$lt_cv_dlopen_self_static" >&6; }
  11883. fi
  11884. CPPFLAGS=$save_CPPFLAGS
  11885. LDFLAGS=$save_LDFLAGS
  11886. LIBS=$save_LIBS
  11887. ;;
  11888. esac
  11889. case $lt_cv_dlopen_self in
  11890. yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  11891. *) enable_dlopen_self=unknown ;;
  11892. esac
  11893. case $lt_cv_dlopen_self_static in
  11894. yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  11895. *) enable_dlopen_self_static=unknown ;;
  11896. esac
  11897. fi
  11898. striplib=
  11899. old_striplib=
  11900. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
  11901. $as_echo_n "checking whether stripping libraries is possible... " >&6; }
  11902. if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
  11903. test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  11904. test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  11905. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  11906. $as_echo "yes" >&6; }
  11907. else
  11908. # FIXME - insert some real tests, host_os isn't really good enough
  11909. case $host_os in
  11910. darwin*)
  11911. if test -n "$STRIP"; then
  11912. striplib="$STRIP -x"
  11913. old_striplib="$STRIP -S"
  11914. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  11915. $as_echo "yes" >&6; }
  11916. else
  11917. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11918. $as_echo "no" >&6; }
  11919. fi
  11920. ;;
  11921. *)
  11922. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11923. $as_echo "no" >&6; }
  11924. ;;
  11925. esac
  11926. fi
  11927. # Report what library types will actually be built
  11928. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
  11929. $as_echo_n "checking if libtool supports shared libraries... " >&6; }
  11930. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
  11931. $as_echo "$can_build_shared" >&6; }
  11932. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
  11933. $as_echo_n "checking whether to build shared libraries... " >&6; }
  11934. test no = "$can_build_shared" && enable_shared=no
  11935. # On AIX, shared libraries and static libraries use the same namespace, and
  11936. # are all built from PIC.
  11937. case $host_os in
  11938. aix3*)
  11939. test yes = "$enable_shared" && enable_static=no
  11940. if test -n "$RANLIB"; then
  11941. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  11942. postinstall_cmds='$RANLIB $lib'
  11943. fi
  11944. ;;
  11945. aix[4-9]*)
  11946. if test ia64 != "$host_cpu"; then
  11947. case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
  11948. yes,aix,yes) ;; # shared object as lib.so file only
  11949. yes,svr4,*) ;; # shared object as lib.so archive member only
  11950. yes,*) enable_static=no ;; # shared object in lib.a archive as well
  11951. esac
  11952. fi
  11953. ;;
  11954. esac
  11955. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
  11956. $as_echo "$enable_shared" >&6; }
  11957. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
  11958. $as_echo_n "checking whether to build static libraries... " >&6; }
  11959. # Make sure either enable_shared or enable_static is yes.
  11960. test yes = "$enable_shared" || enable_static=yes
  11961. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
  11962. $as_echo "$enable_static" >&6; }
  11963. fi
  11964. ac_ext=c
  11965. ac_cpp='$CPP $CPPFLAGS'
  11966. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  11967. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  11968. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  11969. CC=$lt_save_CC
  11970. if test -n "$CXX" && ( test no != "$CXX" &&
  11971. ( (test g++ = "$CXX" && `g++ -v >/dev/null 2>&1` ) ||
  11972. (test g++ != "$CXX"))); then
  11973. ac_ext=cpp
  11974. ac_cpp='$CXXCPP $CPPFLAGS'
  11975. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  11976. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  11977. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  11978. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
  11979. $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
  11980. if test -z "$CXXCPP"; then
  11981. if ${ac_cv_prog_CXXCPP+:} false; then :
  11982. $as_echo_n "(cached) " >&6
  11983. else
  11984. # Double quotes because CXXCPP needs to be expanded
  11985. for CXXCPP in "$CXX -E" "/lib/cpp"
  11986. do
  11987. ac_preproc_ok=false
  11988. for ac_cxx_preproc_warn_flag in '' yes
  11989. do
  11990. # Use a header file that comes with gcc, so configuring glibc
  11991. # with a fresh cross-compiler works.
  11992. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  11993. # <limits.h> exists even on freestanding compilers.
  11994. # On the NeXT, cc -E runs the code through the compiler's parser,
  11995. # not just through cpp. "Syntax error" is here to catch this case.
  11996. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11997. /* end confdefs.h. */
  11998. #ifdef __STDC__
  11999. # include <limits.h>
  12000. #else
  12001. # include <assert.h>
  12002. #endif
  12003. Syntax error
  12004. _ACEOF
  12005. if ac_fn_cxx_try_cpp "$LINENO"; then :
  12006. else
  12007. # Broken: fails on valid input.
  12008. continue
  12009. fi
  12010. rm -f conftest.err conftest.i conftest.$ac_ext
  12011. # OK, works on sane cases. Now check whether nonexistent headers
  12012. # can be detected and how.
  12013. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12014. /* end confdefs.h. */
  12015. #include <ac_nonexistent.h>
  12016. _ACEOF
  12017. if ac_fn_cxx_try_cpp "$LINENO"; then :
  12018. # Broken: success on invalid input.
  12019. continue
  12020. else
  12021. # Passes both tests.
  12022. ac_preproc_ok=:
  12023. break
  12024. fi
  12025. rm -f conftest.err conftest.i conftest.$ac_ext
  12026. done
  12027. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  12028. rm -f conftest.i conftest.err conftest.$ac_ext
  12029. if $ac_preproc_ok; then :
  12030. break
  12031. fi
  12032. done
  12033. ac_cv_prog_CXXCPP=$CXXCPP
  12034. fi
  12035. CXXCPP=$ac_cv_prog_CXXCPP
  12036. else
  12037. ac_cv_prog_CXXCPP=$CXXCPP
  12038. fi
  12039. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
  12040. $as_echo "$CXXCPP" >&6; }
  12041. ac_preproc_ok=false
  12042. for ac_cxx_preproc_warn_flag in '' yes
  12043. do
  12044. # Use a header file that comes with gcc, so configuring glibc
  12045. # with a fresh cross-compiler works.
  12046. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  12047. # <limits.h> exists even on freestanding compilers.
  12048. # On the NeXT, cc -E runs the code through the compiler's parser,
  12049. # not just through cpp. "Syntax error" is here to catch this case.
  12050. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12051. /* end confdefs.h. */
  12052. #ifdef __STDC__
  12053. # include <limits.h>
  12054. #else
  12055. # include <assert.h>
  12056. #endif
  12057. Syntax error
  12058. _ACEOF
  12059. if ac_fn_cxx_try_cpp "$LINENO"; then :
  12060. else
  12061. # Broken: fails on valid input.
  12062. continue
  12063. fi
  12064. rm -f conftest.err conftest.i conftest.$ac_ext
  12065. # OK, works on sane cases. Now check whether nonexistent headers
  12066. # can be detected and how.
  12067. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12068. /* end confdefs.h. */
  12069. #include <ac_nonexistent.h>
  12070. _ACEOF
  12071. if ac_fn_cxx_try_cpp "$LINENO"; then :
  12072. # Broken: success on invalid input.
  12073. continue
  12074. else
  12075. # Passes both tests.
  12076. ac_preproc_ok=:
  12077. break
  12078. fi
  12079. rm -f conftest.err conftest.i conftest.$ac_ext
  12080. done
  12081. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  12082. rm -f conftest.i conftest.err conftest.$ac_ext
  12083. if $ac_preproc_ok; then :
  12084. else
  12085. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  12086. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  12087. as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
  12088. See \`config.log' for more details" "$LINENO" 5; }
  12089. fi
  12090. ac_ext=c
  12091. ac_cpp='$CPP $CPPFLAGS'
  12092. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  12093. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  12094. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  12095. else
  12096. _lt_caught_CXX_error=yes
  12097. fi
  12098. ac_ext=cpp
  12099. ac_cpp='$CXXCPP $CPPFLAGS'
  12100. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  12101. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  12102. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  12103. archive_cmds_need_lc_CXX=no
  12104. allow_undefined_flag_CXX=
  12105. always_export_symbols_CXX=no
  12106. archive_expsym_cmds_CXX=
  12107. compiler_needs_object_CXX=no
  12108. export_dynamic_flag_spec_CXX=
  12109. hardcode_direct_CXX=no
  12110. hardcode_direct_absolute_CXX=no
  12111. hardcode_libdir_flag_spec_CXX=
  12112. hardcode_libdir_separator_CXX=
  12113. hardcode_minus_L_CXX=no
  12114. hardcode_shlibpath_var_CXX=unsupported
  12115. hardcode_automatic_CXX=no
  12116. inherit_rpath_CXX=no
  12117. module_cmds_CXX=
  12118. module_expsym_cmds_CXX=
  12119. link_all_deplibs_CXX=unknown
  12120. old_archive_cmds_CXX=$old_archive_cmds
  12121. reload_flag_CXX=$reload_flag
  12122. reload_cmds_CXX=$reload_cmds
  12123. no_undefined_flag_CXX=
  12124. whole_archive_flag_spec_CXX=
  12125. enable_shared_with_static_runtimes_CXX=no
  12126. # Source file extension for C++ test sources.
  12127. ac_ext=cpp
  12128. # Object file extension for compiled C++ test sources.
  12129. objext=o
  12130. objext_CXX=$objext
  12131. # No sense in running all these tests if we already determined that
  12132. # the CXX compiler isn't working. Some variables (like enable_shared)
  12133. # are currently assumed to apply to all compilers on this platform,
  12134. # and will be corrupted by setting them based on a non-working compiler.
  12135. if test yes != "$_lt_caught_CXX_error"; then
  12136. # Code to be used in simple compile tests
  12137. lt_simple_compile_test_code="int some_variable = 0;"
  12138. # Code to be used in simple link tests
  12139. lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
  12140. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  12141. # If no C compiler was specified, use CC.
  12142. LTCC=${LTCC-"$CC"}
  12143. # If no C compiler flags were specified, use CFLAGS.
  12144. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  12145. # Allow CC to be a program name with arguments.
  12146. compiler=$CC
  12147. # save warnings/boilerplate of simple test code
  12148. ac_outfile=conftest.$ac_objext
  12149. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  12150. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  12151. _lt_compiler_boilerplate=`cat conftest.err`
  12152. $RM conftest*
  12153. ac_outfile=conftest.$ac_objext
  12154. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  12155. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  12156. _lt_linker_boilerplate=`cat conftest.err`
  12157. $RM -r conftest*
  12158. # Allow CC to be a program name with arguments.
  12159. lt_save_CC=$CC
  12160. lt_save_CFLAGS=$CFLAGS
  12161. lt_save_LD=$LD
  12162. lt_save_GCC=$GCC
  12163. GCC=$GXX
  12164. lt_save_with_gnu_ld=$with_gnu_ld
  12165. lt_save_path_LD=$lt_cv_path_LD
  12166. if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
  12167. lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
  12168. else
  12169. $as_unset lt_cv_prog_gnu_ld
  12170. fi
  12171. if test -n "${lt_cv_path_LDCXX+set}"; then
  12172. lt_cv_path_LD=$lt_cv_path_LDCXX
  12173. else
  12174. $as_unset lt_cv_path_LD
  12175. fi
  12176. test -z "${LDCXX+set}" || LD=$LDCXX
  12177. CC=${CXX-"c++"}
  12178. CFLAGS=$CXXFLAGS
  12179. compiler=$CC
  12180. compiler_CXX=$CC
  12181. func_cc_basename $compiler
  12182. cc_basename=$func_cc_basename_result
  12183. if test -n "$compiler"; then
  12184. # We don't want -fno-exception when compiling C++ code, so set the
  12185. # no_builtin_flag separately
  12186. if test yes = "$GXX"; then
  12187. lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
  12188. else
  12189. lt_prog_compiler_no_builtin_flag_CXX=
  12190. fi
  12191. if test yes = "$GXX"; then
  12192. # Set up default GNU C++ configuration
  12193. # Check whether --with-gnu-ld was given.
  12194. if test "${with_gnu_ld+set}" = set; then :
  12195. withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
  12196. else
  12197. with_gnu_ld=no
  12198. fi
  12199. ac_prog=ld
  12200. if test yes = "$GCC"; then
  12201. # Check if gcc -print-prog-name=ld gives a path.
  12202. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  12203. $as_echo_n "checking for ld used by $CC... " >&6; }
  12204. case $host in
  12205. *-*-mingw*)
  12206. # gcc leaves a trailing carriage return, which upsets mingw
  12207. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  12208. *)
  12209. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  12210. esac
  12211. case $ac_prog in
  12212. # Accept absolute paths.
  12213. [\\/]* | ?:[\\/]*)
  12214. re_direlt='/[^/][^/]*/\.\./'
  12215. # Canonicalize the pathname of ld
  12216. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  12217. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  12218. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  12219. done
  12220. test -z "$LD" && LD=$ac_prog
  12221. ;;
  12222. "")
  12223. # If it fails, then pretend we aren't using GCC.
  12224. ac_prog=ld
  12225. ;;
  12226. *)
  12227. # If it is relative, then search for the first ld in PATH.
  12228. with_gnu_ld=unknown
  12229. ;;
  12230. esac
  12231. elif test yes = "$with_gnu_ld"; then
  12232. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  12233. $as_echo_n "checking for GNU ld... " >&6; }
  12234. else
  12235. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  12236. $as_echo_n "checking for non-GNU ld... " >&6; }
  12237. fi
  12238. if ${lt_cv_path_LD+:} false; then :
  12239. $as_echo_n "(cached) " >&6
  12240. else
  12241. if test -z "$LD"; then
  12242. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  12243. for ac_dir in $PATH; do
  12244. IFS=$lt_save_ifs
  12245. test -z "$ac_dir" && ac_dir=.
  12246. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  12247. lt_cv_path_LD=$ac_dir/$ac_prog
  12248. # Check to see if the program is GNU ld. I'd rather use --version,
  12249. # but apparently some variants of GNU ld only accept -v.
  12250. # Break only if it was the GNU/non-GNU ld that we prefer.
  12251. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  12252. *GNU* | *'with BFD'*)
  12253. test no != "$with_gnu_ld" && break
  12254. ;;
  12255. *)
  12256. test yes != "$with_gnu_ld" && break
  12257. ;;
  12258. esac
  12259. fi
  12260. done
  12261. IFS=$lt_save_ifs
  12262. else
  12263. lt_cv_path_LD=$LD # Let the user override the test with a path.
  12264. fi
  12265. fi
  12266. LD=$lt_cv_path_LD
  12267. if test -n "$LD"; then
  12268. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  12269. $as_echo "$LD" >&6; }
  12270. else
  12271. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12272. $as_echo "no" >&6; }
  12273. fi
  12274. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  12275. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  12276. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  12277. if ${lt_cv_prog_gnu_ld+:} false; then :
  12278. $as_echo_n "(cached) " >&6
  12279. else
  12280. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  12281. case `$LD -v 2>&1 </dev/null` in
  12282. *GNU* | *'with BFD'*)
  12283. lt_cv_prog_gnu_ld=yes
  12284. ;;
  12285. *)
  12286. lt_cv_prog_gnu_ld=no
  12287. ;;
  12288. esac
  12289. fi
  12290. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  12291. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  12292. with_gnu_ld=$lt_cv_prog_gnu_ld
  12293. # Check if GNU C++ uses GNU ld as the underlying linker, since the
  12294. # archiving commands below assume that GNU ld is being used.
  12295. if test yes = "$with_gnu_ld"; then
  12296. archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
  12297. 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'
  12298. hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
  12299. export_dynamic_flag_spec_CXX='$wl--export-dynamic'
  12300. # If archive_cmds runs LD, not CC, wlarc should be empty
  12301. # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
  12302. # investigate it a little bit more. (MM)
  12303. wlarc='$wl'
  12304. # ancient GNU ld didn't support --whole-archive et. al.
  12305. if eval "`$CC -print-prog-name=ld` --help 2>&1" |
  12306. $GREP 'no-whole-archive' > /dev/null; then
  12307. whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
  12308. else
  12309. whole_archive_flag_spec_CXX=
  12310. fi
  12311. else
  12312. with_gnu_ld=no
  12313. wlarc=
  12314. # A generic and very simple default shared library creation
  12315. # command for GNU C++ for the case where it uses the native
  12316. # linker, instead of GNU ld. If possible, this setting should
  12317. # overridden to take advantage of the native linker features on
  12318. # the platform it is being used on.
  12319. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  12320. fi
  12321. # Commands to make compiler produce verbose output that lists
  12322. # what "hidden" libraries, object files and flags are used when
  12323. # linking a shared library.
  12324. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  12325. else
  12326. GXX=no
  12327. with_gnu_ld=no
  12328. wlarc=
  12329. fi
  12330. # PORTME: fill in a description of your system's C++ link characteristics
  12331. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  12332. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  12333. ld_shlibs_CXX=yes
  12334. case $host_os in
  12335. aix3*)
  12336. # FIXME: insert proper C++ library support
  12337. ld_shlibs_CXX=no
  12338. ;;
  12339. aix[4-9]*)
  12340. if test ia64 = "$host_cpu"; then
  12341. # On IA64, the linker does run time linking by default, so we don't
  12342. # have to do anything special.
  12343. aix_use_runtimelinking=no
  12344. exp_sym_flag='-Bexport'
  12345. no_entry_flag=
  12346. else
  12347. aix_use_runtimelinking=no
  12348. # Test if we are trying to use run time linking or normal
  12349. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  12350. # have runtime linking enabled, and use it for executables.
  12351. # For shared libraries, we enable/disable runtime linking
  12352. # depending on the kind of the shared library created -
  12353. # when "with_aix_soname,aix_use_runtimelinking" is:
  12354. # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
  12355. # "aix,yes" lib.so shared, rtl:yes, for executables
  12356. # lib.a static archive
  12357. # "both,no" lib.so.V(shr.o) shared, rtl:yes
  12358. # lib.a(lib.so.V) shared, rtl:no, for executables
  12359. # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
  12360. # lib.a(lib.so.V) shared, rtl:no
  12361. # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
  12362. # lib.a static archive
  12363. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  12364. for ld_flag in $LDFLAGS; do
  12365. case $ld_flag in
  12366. *-brtl*)
  12367. aix_use_runtimelinking=yes
  12368. break
  12369. ;;
  12370. esac
  12371. done
  12372. if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
  12373. # With aix-soname=svr4, we create the lib.so.V shared archives only,
  12374. # so we don't have lib.a shared libs to link our executables.
  12375. # We have to force runtime linking in this case.
  12376. aix_use_runtimelinking=yes
  12377. LDFLAGS="$LDFLAGS -Wl,-brtl"
  12378. fi
  12379. ;;
  12380. esac
  12381. exp_sym_flag='-bexport'
  12382. no_entry_flag='-bnoentry'
  12383. fi
  12384. # When large executables or shared objects are built, AIX ld can
  12385. # have problems creating the table of contents. If linking a library
  12386. # or program results in "error TOC overflow" add -mminimal-toc to
  12387. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  12388. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  12389. archive_cmds_CXX=''
  12390. hardcode_direct_CXX=yes
  12391. hardcode_direct_absolute_CXX=yes
  12392. hardcode_libdir_separator_CXX=':'
  12393. link_all_deplibs_CXX=yes
  12394. file_list_spec_CXX='$wl-f,'
  12395. case $with_aix_soname,$aix_use_runtimelinking in
  12396. aix,*) ;; # no import file
  12397. svr4,* | *,yes) # use import file
  12398. # The Import File defines what to hardcode.
  12399. hardcode_direct_CXX=no
  12400. hardcode_direct_absolute_CXX=no
  12401. ;;
  12402. esac
  12403. if test yes = "$GXX"; then
  12404. case $host_os in aix4.[012]|aix4.[012].*)
  12405. # We only want to do this on AIX 4.2 and lower, the check
  12406. # below for broken collect2 doesn't work under 4.3+
  12407. collect2name=`$CC -print-prog-name=collect2`
  12408. if test -f "$collect2name" &&
  12409. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  12410. then
  12411. # We have reworked collect2
  12412. :
  12413. else
  12414. # We have old collect2
  12415. hardcode_direct_CXX=unsupported
  12416. # It fails to find uninstalled libraries when the uninstalled
  12417. # path is not listed in the libpath. Setting hardcode_minus_L
  12418. # to unsupported forces relinking
  12419. hardcode_minus_L_CXX=yes
  12420. hardcode_libdir_flag_spec_CXX='-L$libdir'
  12421. hardcode_libdir_separator_CXX=
  12422. fi
  12423. esac
  12424. shared_flag='-shared'
  12425. if test yes = "$aix_use_runtimelinking"; then
  12426. shared_flag=$shared_flag' $wl-G'
  12427. fi
  12428. # Need to ensure runtime linking is disabled for the traditional
  12429. # shared library, or the linker may eventually find shared libraries
  12430. # /with/ Import File - we do not want to mix them.
  12431. shared_flag_aix='-shared'
  12432. shared_flag_svr4='-shared $wl-G'
  12433. else
  12434. # not using gcc
  12435. if test ia64 = "$host_cpu"; then
  12436. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  12437. # chokes on -Wl,-G. The following line is correct:
  12438. shared_flag='-G'
  12439. else
  12440. if test yes = "$aix_use_runtimelinking"; then
  12441. shared_flag='$wl-G'
  12442. else
  12443. shared_flag='$wl-bM:SRE'
  12444. fi
  12445. shared_flag_aix='$wl-bM:SRE'
  12446. shared_flag_svr4='$wl-G'
  12447. fi
  12448. fi
  12449. export_dynamic_flag_spec_CXX='$wl-bexpall'
  12450. # It seems that -bexpall does not export symbols beginning with
  12451. # underscore (_), so it is better to generate a list of symbols to
  12452. # export.
  12453. always_export_symbols_CXX=yes
  12454. if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
  12455. # Warning - without using the other runtime loading flags (-brtl),
  12456. # -berok will link without error, but may produce a broken library.
  12457. # The "-G" linker flag allows undefined symbols.
  12458. no_undefined_flag_CXX='-bernotok'
  12459. # Determine the default libpath from the value encoded in an empty
  12460. # executable.
  12461. if test set = "${lt_cv_aix_libpath+set}"; then
  12462. aix_libpath=$lt_cv_aix_libpath
  12463. else
  12464. if ${lt_cv_aix_libpath__CXX+:} false; then :
  12465. $as_echo_n "(cached) " >&6
  12466. else
  12467. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12468. /* end confdefs.h. */
  12469. int
  12470. main ()
  12471. {
  12472. ;
  12473. return 0;
  12474. }
  12475. _ACEOF
  12476. if ac_fn_cxx_try_link "$LINENO"; then :
  12477. lt_aix_libpath_sed='
  12478. /Import File Strings/,/^$/ {
  12479. /^0/ {
  12480. s/^0 *\([^ ]*\) *$/\1/
  12481. p
  12482. }
  12483. }'
  12484. lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  12485. # Check for a 64-bit object if we didn't find anything.
  12486. if test -z "$lt_cv_aix_libpath__CXX"; then
  12487. lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  12488. fi
  12489. fi
  12490. rm -f core conftest.err conftest.$ac_objext \
  12491. conftest$ac_exeext conftest.$ac_ext
  12492. if test -z "$lt_cv_aix_libpath__CXX"; then
  12493. lt_cv_aix_libpath__CXX=/usr/lib:/lib
  12494. fi
  12495. fi
  12496. aix_libpath=$lt_cv_aix_libpath__CXX
  12497. fi
  12498. hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
  12499. 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
  12500. else
  12501. if test ia64 = "$host_cpu"; then
  12502. hardcode_libdir_flag_spec_CXX='$wl-R $libdir:/usr/lib:/lib'
  12503. allow_undefined_flag_CXX="-z nodefs"
  12504. 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"
  12505. else
  12506. # Determine the default libpath from the value encoded in an
  12507. # empty executable.
  12508. if test set = "${lt_cv_aix_libpath+set}"; then
  12509. aix_libpath=$lt_cv_aix_libpath
  12510. else
  12511. if ${lt_cv_aix_libpath__CXX+:} false; then :
  12512. $as_echo_n "(cached) " >&6
  12513. else
  12514. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12515. /* end confdefs.h. */
  12516. int
  12517. main ()
  12518. {
  12519. ;
  12520. return 0;
  12521. }
  12522. _ACEOF
  12523. if ac_fn_cxx_try_link "$LINENO"; then :
  12524. lt_aix_libpath_sed='
  12525. /Import File Strings/,/^$/ {
  12526. /^0/ {
  12527. s/^0 *\([^ ]*\) *$/\1/
  12528. p
  12529. }
  12530. }'
  12531. lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  12532. # Check for a 64-bit object if we didn't find anything.
  12533. if test -z "$lt_cv_aix_libpath__CXX"; then
  12534. lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  12535. fi
  12536. fi
  12537. rm -f core conftest.err conftest.$ac_objext \
  12538. conftest$ac_exeext conftest.$ac_ext
  12539. if test -z "$lt_cv_aix_libpath__CXX"; then
  12540. lt_cv_aix_libpath__CXX=/usr/lib:/lib
  12541. fi
  12542. fi
  12543. aix_libpath=$lt_cv_aix_libpath__CXX
  12544. fi
  12545. hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
  12546. # Warning - without using the other run time loading flags,
  12547. # -berok will link without error, but may produce a broken library.
  12548. no_undefined_flag_CXX=' $wl-bernotok'
  12549. allow_undefined_flag_CXX=' $wl-berok'
  12550. if test yes = "$with_gnu_ld"; then
  12551. # We only use this code for GNU lds that support --whole-archive.
  12552. whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
  12553. else
  12554. # Exported symbols can be pulled into shared objects from archives
  12555. whole_archive_flag_spec_CXX='$convenience'
  12556. fi
  12557. archive_cmds_need_lc_CXX=yes
  12558. archive_expsym_cmds_CXX='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
  12559. # -brtl affects multiple linker settings, -berok does not and is overridden later
  12560. compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
  12561. if test svr4 != "$with_aix_soname"; then
  12562. # This is similar to how AIX traditionally builds its shared
  12563. # libraries. Need -bnortl late, we may have -brtl in LDFLAGS.
  12564. 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'
  12565. fi
  12566. if test aix != "$with_aix_soname"; then
  12567. 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'
  12568. else
  12569. # used by -dlpreopen to get the symbols
  12570. archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
  12571. fi
  12572. archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$RM -r $output_objdir/$realname.d'
  12573. fi
  12574. fi
  12575. ;;
  12576. beos*)
  12577. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  12578. allow_undefined_flag_CXX=unsupported
  12579. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  12580. # support --undefined. This deserves some investigation. FIXME
  12581. archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  12582. else
  12583. ld_shlibs_CXX=no
  12584. fi
  12585. ;;
  12586. chorus*)
  12587. case $cc_basename in
  12588. *)
  12589. # FIXME: insert proper C++ library support
  12590. ld_shlibs_CXX=no
  12591. ;;
  12592. esac
  12593. ;;
  12594. cygwin* | mingw* | pw32* | cegcc*)
  12595. case $GXX,$cc_basename in
  12596. ,cl* | no,cl*)
  12597. # Native MSVC
  12598. # hardcode_libdir_flag_spec is actually meaningless, as there is
  12599. # no search path for DLLs.
  12600. hardcode_libdir_flag_spec_CXX=' '
  12601. allow_undefined_flag_CXX=unsupported
  12602. always_export_symbols_CXX=yes
  12603. file_list_spec_CXX='@'
  12604. # Tell ltmain to make .lib files, not .a files.
  12605. libext=lib
  12606. # Tell ltmain to make .dll files, not .so files.
  12607. shrext_cmds=.dll
  12608. # FIXME: Setting linknames here is a bad hack.
  12609. archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
  12610. archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
  12611. cp "$export_symbols" "$output_objdir/$soname.def";
  12612. echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
  12613. else
  12614. $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
  12615. fi~
  12616. $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
  12617. linknames='
  12618. # The linker will not automatically build a static lib if we build a DLL.
  12619. # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
  12620. enable_shared_with_static_runtimes_CXX=yes
  12621. # Don't use ranlib
  12622. old_postinstall_cmds_CXX='chmod 644 $oldlib'
  12623. postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
  12624. lt_tool_outputfile="@TOOL_OUTPUT@"~
  12625. case $lt_outputfile in
  12626. *.exe|*.EXE) ;;
  12627. *)
  12628. lt_outputfile=$lt_outputfile.exe
  12629. lt_tool_outputfile=$lt_tool_outputfile.exe
  12630. ;;
  12631. esac~
  12632. func_to_tool_file "$lt_outputfile"~
  12633. if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
  12634. $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
  12635. $RM "$lt_outputfile.manifest";
  12636. fi'
  12637. ;;
  12638. *)
  12639. # g++
  12640. # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
  12641. # as there is no search path for DLLs.
  12642. hardcode_libdir_flag_spec_CXX='-L$libdir'
  12643. export_dynamic_flag_spec_CXX='$wl--export-all-symbols'
  12644. allow_undefined_flag_CXX=unsupported
  12645. always_export_symbols_CXX=no
  12646. enable_shared_with_static_runtimes_CXX=yes
  12647. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  12648. 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'
  12649. # If the export-symbols file already is a .def file, use it as
  12650. # is; otherwise, prepend EXPORTS...
  12651. archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
  12652. cp $export_symbols $output_objdir/$soname.def;
  12653. else
  12654. echo EXPORTS > $output_objdir/$soname.def;
  12655. cat $export_symbols >> $output_objdir/$soname.def;
  12656. fi~
  12657. $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'
  12658. else
  12659. ld_shlibs_CXX=no
  12660. fi
  12661. ;;
  12662. esac
  12663. ;;
  12664. darwin* | rhapsody*)
  12665. archive_cmds_need_lc_CXX=no
  12666. hardcode_direct_CXX=no
  12667. hardcode_automatic_CXX=yes
  12668. hardcode_shlibpath_var_CXX=unsupported
  12669. if test yes = "$lt_cv_ld_force_load"; then
  12670. 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\"`'
  12671. else
  12672. whole_archive_flag_spec_CXX=''
  12673. fi
  12674. link_all_deplibs_CXX=yes
  12675. allow_undefined_flag_CXX=$_lt_dar_allow_undefined
  12676. case $cc_basename in
  12677. ifort*|nagfor*) _lt_dar_can_shared=yes ;;
  12678. *) _lt_dar_can_shared=$GCC ;;
  12679. esac
  12680. if test yes = "$_lt_dar_can_shared"; then
  12681. output_verbose_link_cmd=func_echo_all
  12682. 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"
  12683. module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
  12684. 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"
  12685. 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"
  12686. if test yes != "$lt_cv_apple_cc_single_mod"; then
  12687. 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"
  12688. 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"
  12689. fi
  12690. else
  12691. ld_shlibs_CXX=no
  12692. fi
  12693. ;;
  12694. os2*)
  12695. hardcode_libdir_flag_spec_CXX='-L$libdir'
  12696. hardcode_minus_L_CXX=yes
  12697. allow_undefined_flag_CXX=unsupported
  12698. shrext_cmds=.dll
  12699. archive_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  12700. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  12701. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  12702. $ECHO EXPORTS >> $output_objdir/$libname.def~
  12703. emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
  12704. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  12705. emximp -o $lib $output_objdir/$libname.def'
  12706. archive_expsym_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  12707. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  12708. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  12709. $ECHO EXPORTS >> $output_objdir/$libname.def~
  12710. prefix_cmds="$SED"~
  12711. if test EXPORTS = "`$SED 1q $export_symbols`"; then
  12712. prefix_cmds="$prefix_cmds -e 1d";
  12713. fi~
  12714. prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
  12715. cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
  12716. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  12717. emximp -o $lib $output_objdir/$libname.def'
  12718. old_archive_From_new_cmds_CXX='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
  12719. enable_shared_with_static_runtimes_CXX=yes
  12720. ;;
  12721. dgux*)
  12722. case $cc_basename in
  12723. ec++*)
  12724. # FIXME: insert proper C++ library support
  12725. ld_shlibs_CXX=no
  12726. ;;
  12727. ghcx*)
  12728. # Green Hills C++ Compiler
  12729. # FIXME: insert proper C++ library support
  12730. ld_shlibs_CXX=no
  12731. ;;
  12732. *)
  12733. # FIXME: insert proper C++ library support
  12734. ld_shlibs_CXX=no
  12735. ;;
  12736. esac
  12737. ;;
  12738. freebsd2.*)
  12739. # C++ shared libraries reported to be fairly broken before
  12740. # switch to ELF
  12741. ld_shlibs_CXX=no
  12742. ;;
  12743. freebsd-elf*)
  12744. archive_cmds_need_lc_CXX=no
  12745. ;;
  12746. freebsd* | dragonfly*)
  12747. # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
  12748. # conventions
  12749. ld_shlibs_CXX=yes
  12750. ;;
  12751. haiku*)
  12752. archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  12753. link_all_deplibs_CXX=yes
  12754. ;;
  12755. hpux9*)
  12756. hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
  12757. hardcode_libdir_separator_CXX=:
  12758. export_dynamic_flag_spec_CXX='$wl-E'
  12759. hardcode_direct_CXX=yes
  12760. hardcode_minus_L_CXX=yes # Not in the search PATH,
  12761. # but as the default
  12762. # location of the library.
  12763. case $cc_basename in
  12764. CC*)
  12765. # FIXME: insert proper C++ library support
  12766. ld_shlibs_CXX=no
  12767. ;;
  12768. aCC*)
  12769. 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'
  12770. # Commands to make compiler produce verbose output that lists
  12771. # what "hidden" libraries, object files and flags are used when
  12772. # linking a shared library.
  12773. #
  12774. # There doesn't appear to be a way to prevent this compiler from
  12775. # explicitly linking system object files so we need to strip them
  12776. # from the output so that they don't get included in the library
  12777. # dependencies.
  12778. 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"'
  12779. ;;
  12780. *)
  12781. if test yes = "$GXX"; then
  12782. 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'
  12783. else
  12784. # FIXME: insert proper C++ library support
  12785. ld_shlibs_CXX=no
  12786. fi
  12787. ;;
  12788. esac
  12789. ;;
  12790. hpux10*|hpux11*)
  12791. if test no = "$with_gnu_ld"; then
  12792. hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
  12793. hardcode_libdir_separator_CXX=:
  12794. case $host_cpu in
  12795. hppa*64*|ia64*)
  12796. ;;
  12797. *)
  12798. export_dynamic_flag_spec_CXX='$wl-E'
  12799. ;;
  12800. esac
  12801. fi
  12802. case $host_cpu in
  12803. hppa*64*|ia64*)
  12804. hardcode_direct_CXX=no
  12805. hardcode_shlibpath_var_CXX=no
  12806. ;;
  12807. *)
  12808. hardcode_direct_CXX=yes
  12809. hardcode_direct_absolute_CXX=yes
  12810. hardcode_minus_L_CXX=yes # Not in the search PATH,
  12811. # but as the default
  12812. # location of the library.
  12813. ;;
  12814. esac
  12815. case $cc_basename in
  12816. CC*)
  12817. # FIXME: insert proper C++ library support
  12818. ld_shlibs_CXX=no
  12819. ;;
  12820. aCC*)
  12821. case $host_cpu in
  12822. hppa*64*)
  12823. archive_cmds_CXX='$CC -b $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  12824. ;;
  12825. ia64*)
  12826. archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  12827. ;;
  12828. *)
  12829. archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  12830. ;;
  12831. esac
  12832. # Commands to make compiler produce verbose output that lists
  12833. # what "hidden" libraries, object files and flags are used when
  12834. # linking a shared library.
  12835. #
  12836. # There doesn't appear to be a way to prevent this compiler from
  12837. # explicitly linking system object files so we need to strip them
  12838. # from the output so that they don't get included in the library
  12839. # dependencies.
  12840. 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"'
  12841. ;;
  12842. *)
  12843. if test yes = "$GXX"; then
  12844. if test no = "$with_gnu_ld"; then
  12845. case $host_cpu in
  12846. hppa*64*)
  12847. archive_cmds_CXX='$CC -shared -nostdlib -fPIC $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  12848. ;;
  12849. ia64*)
  12850. archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  12851. ;;
  12852. *)
  12853. 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'
  12854. ;;
  12855. esac
  12856. fi
  12857. else
  12858. # FIXME: insert proper C++ library support
  12859. ld_shlibs_CXX=no
  12860. fi
  12861. ;;
  12862. esac
  12863. ;;
  12864. interix[3-9]*)
  12865. hardcode_direct_CXX=no
  12866. hardcode_shlibpath_var_CXX=no
  12867. hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
  12868. export_dynamic_flag_spec_CXX='$wl-E'
  12869. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  12870. # Instead, shared libraries are loaded at an image base (0x10000000 by
  12871. # default) and relocated if they conflict, which is a slow very memory
  12872. # consuming and fragmenting process. To avoid this, we pick a random,
  12873. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  12874. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  12875. 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'
  12876. 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'
  12877. ;;
  12878. irix5* | irix6*)
  12879. case $cc_basename in
  12880. CC*)
  12881. # SGI C++
  12882. 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'
  12883. # Archives containing C++ object files must be created using
  12884. # "CC -ar", where "CC" is the IRIX C++ compiler. This is
  12885. # necessary to make sure instantiated templates are included
  12886. # in the archive.
  12887. old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
  12888. ;;
  12889. *)
  12890. if test yes = "$GXX"; then
  12891. if test no = "$with_gnu_ld"; then
  12892. 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'
  12893. else
  12894. 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'
  12895. fi
  12896. fi
  12897. link_all_deplibs_CXX=yes
  12898. ;;
  12899. esac
  12900. hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
  12901. hardcode_libdir_separator_CXX=:
  12902. inherit_rpath_CXX=yes
  12903. ;;
  12904. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  12905. case $cc_basename in
  12906. KCC*)
  12907. # Kuck and Associates, Inc. (KAI) C++ Compiler
  12908. # KCC will only create a shared library if the output file
  12909. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  12910. # to its proper name (with version) after linking.
  12911. 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'
  12912. 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'
  12913. # Commands to make compiler produce verbose output that lists
  12914. # what "hidden" libraries, object files and flags are used when
  12915. # linking a shared library.
  12916. #
  12917. # There doesn't appear to be a way to prevent this compiler from
  12918. # explicitly linking system object files so we need to strip them
  12919. # from the output so that they don't get included in the library
  12920. # dependencies.
  12921. 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"'
  12922. hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
  12923. export_dynamic_flag_spec_CXX='$wl--export-dynamic'
  12924. # Archives containing C++ object files must be created using
  12925. # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  12926. old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
  12927. ;;
  12928. icpc* | ecpc* )
  12929. # Intel C++
  12930. with_gnu_ld=yes
  12931. # version 8.0 and above of icpc choke on multiply defined symbols
  12932. # if we add $predep_objects and $postdep_objects, however 7.1 and
  12933. # earlier do not add the objects themselves.
  12934. case `$CC -V 2>&1` in
  12935. *"Version 7."*)
  12936. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
  12937. 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'
  12938. ;;
  12939. *) # Version 8.0 or newer
  12940. tmp_idyn=
  12941. case $host_cpu in
  12942. ia64*) tmp_idyn=' -i_dynamic';;
  12943. esac
  12944. archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  12945. 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'
  12946. ;;
  12947. esac
  12948. archive_cmds_need_lc_CXX=no
  12949. hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
  12950. export_dynamic_flag_spec_CXX='$wl--export-dynamic'
  12951. whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
  12952. ;;
  12953. pgCC* | pgcpp*)
  12954. # Portland Group C++ compiler
  12955. case `$CC -V` in
  12956. *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
  12957. prelink_cmds_CXX='tpldir=Template.dir~
  12958. rm -rf $tpldir~
  12959. $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
  12960. compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
  12961. old_archive_cmds_CXX='tpldir=Template.dir~
  12962. rm -rf $tpldir~
  12963. $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
  12964. $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
  12965. $RANLIB $oldlib'
  12966. archive_cmds_CXX='tpldir=Template.dir~
  12967. rm -rf $tpldir~
  12968. $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  12969. $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
  12970. archive_expsym_cmds_CXX='tpldir=Template.dir~
  12971. rm -rf $tpldir~
  12972. $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  12973. $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'
  12974. ;;
  12975. *) # Version 6 and above use weak symbols
  12976. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
  12977. 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'
  12978. ;;
  12979. esac
  12980. hardcode_libdir_flag_spec_CXX='$wl--rpath $wl$libdir'
  12981. export_dynamic_flag_spec_CXX='$wl--export-dynamic'
  12982. 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'
  12983. ;;
  12984. cxx*)
  12985. # Compaq C++
  12986. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
  12987. 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'
  12988. runpath_var=LD_RUN_PATH
  12989. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  12990. hardcode_libdir_separator_CXX=:
  12991. # Commands to make compiler produce verbose output that lists
  12992. # what "hidden" libraries, object files and flags are used when
  12993. # linking a shared library.
  12994. #
  12995. # There doesn't appear to be a way to prevent this compiler from
  12996. # explicitly linking system object files so we need to strip them
  12997. # from the output so that they don't get included in the library
  12998. # dependencies.
  12999. 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'
  13000. ;;
  13001. xl* | mpixl* | bgxl*)
  13002. # IBM XL 8.0 on PPC, with GNU ld
  13003. hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
  13004. export_dynamic_flag_spec_CXX='$wl--export-dynamic'
  13005. archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  13006. if test yes = "$supports_anon_versioning"; then
  13007. archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
  13008. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  13009. echo "local: *; };" >> $output_objdir/$libname.ver~
  13010. $CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
  13011. fi
  13012. ;;
  13013. *)
  13014. case `$CC -V 2>&1 | sed 5q` in
  13015. *Sun\ C*)
  13016. # Sun C++ 5.9
  13017. no_undefined_flag_CXX=' -zdefs'
  13018. archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  13019. 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'
  13020. hardcode_libdir_flag_spec_CXX='-R$libdir'
  13021. 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'
  13022. compiler_needs_object_CXX=yes
  13023. # Not sure whether something based on
  13024. # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
  13025. # would be better.
  13026. output_verbose_link_cmd='func_echo_all'
  13027. # Archives containing C++ object files must be created using
  13028. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  13029. # necessary to make sure instantiated templates are included
  13030. # in the archive.
  13031. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  13032. ;;
  13033. esac
  13034. ;;
  13035. esac
  13036. ;;
  13037. lynxos*)
  13038. # FIXME: insert proper C++ library support
  13039. ld_shlibs_CXX=no
  13040. ;;
  13041. m88k*)
  13042. # FIXME: insert proper C++ library support
  13043. ld_shlibs_CXX=no
  13044. ;;
  13045. mvs*)
  13046. case $cc_basename in
  13047. cxx*)
  13048. # FIXME: insert proper C++ library support
  13049. ld_shlibs_CXX=no
  13050. ;;
  13051. *)
  13052. # FIXME: insert proper C++ library support
  13053. ld_shlibs_CXX=no
  13054. ;;
  13055. esac
  13056. ;;
  13057. netbsd*)
  13058. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  13059. archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
  13060. wlarc=
  13061. hardcode_libdir_flag_spec_CXX='-R$libdir'
  13062. hardcode_direct_CXX=yes
  13063. hardcode_shlibpath_var_CXX=no
  13064. fi
  13065. # Workaround some broken pre-1.5 toolchains
  13066. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
  13067. ;;
  13068. *nto* | *qnx*)
  13069. ld_shlibs_CXX=yes
  13070. ;;
  13071. openbsd* | bitrig*)
  13072. if test -f /usr/libexec/ld.so; then
  13073. hardcode_direct_CXX=yes
  13074. hardcode_shlibpath_var_CXX=no
  13075. hardcode_direct_absolute_CXX=yes
  13076. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  13077. hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
  13078. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`"; then
  13079. archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file,$export_symbols -o $lib'
  13080. export_dynamic_flag_spec_CXX='$wl-E'
  13081. whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
  13082. fi
  13083. output_verbose_link_cmd=func_echo_all
  13084. else
  13085. ld_shlibs_CXX=no
  13086. fi
  13087. ;;
  13088. osf3* | osf4* | osf5*)
  13089. case $cc_basename in
  13090. KCC*)
  13091. # Kuck and Associates, Inc. (KAI) C++ Compiler
  13092. # KCC will only create a shared library if the output file
  13093. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  13094. # to its proper name (with version) after linking.
  13095. 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'
  13096. hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
  13097. hardcode_libdir_separator_CXX=:
  13098. # Archives containing C++ object files must be created using
  13099. # the KAI C++ compiler.
  13100. case $host in
  13101. osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
  13102. *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
  13103. esac
  13104. ;;
  13105. RCC*)
  13106. # Rational C++ 2.4.1
  13107. # FIXME: insert proper C++ library support
  13108. ld_shlibs_CXX=no
  13109. ;;
  13110. cxx*)
  13111. case $host in
  13112. osf3*)
  13113. allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
  13114. 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'
  13115. hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
  13116. ;;
  13117. *)
  13118. allow_undefined_flag_CXX=' -expect_unresolved \*'
  13119. 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'
  13120. archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
  13121. echo "-hidden">> $lib.exp~
  13122. $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~
  13123. $RM $lib.exp'
  13124. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  13125. ;;
  13126. esac
  13127. hardcode_libdir_separator_CXX=:
  13128. # Commands to make compiler produce verbose output that lists
  13129. # what "hidden" libraries, object files and flags are used when
  13130. # linking a shared library.
  13131. #
  13132. # There doesn't appear to be a way to prevent this compiler from
  13133. # explicitly linking system object files so we need to strip them
  13134. # from the output so that they don't get included in the library
  13135. # dependencies.
  13136. 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"'
  13137. ;;
  13138. *)
  13139. if test yes,no = "$GXX,$with_gnu_ld"; then
  13140. allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
  13141. case $host in
  13142. osf3*)
  13143. 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'
  13144. ;;
  13145. *)
  13146. 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'
  13147. ;;
  13148. esac
  13149. hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
  13150. hardcode_libdir_separator_CXX=:
  13151. # Commands to make compiler produce verbose output that lists
  13152. # what "hidden" libraries, object files and flags are used when
  13153. # linking a shared library.
  13154. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  13155. else
  13156. # FIXME: insert proper C++ library support
  13157. ld_shlibs_CXX=no
  13158. fi
  13159. ;;
  13160. esac
  13161. ;;
  13162. psos*)
  13163. # FIXME: insert proper C++ library support
  13164. ld_shlibs_CXX=no
  13165. ;;
  13166. sunos4*)
  13167. case $cc_basename in
  13168. CC*)
  13169. # Sun C++ 4.x
  13170. # FIXME: insert proper C++ library support
  13171. ld_shlibs_CXX=no
  13172. ;;
  13173. lcc*)
  13174. # Lucid
  13175. # FIXME: insert proper C++ library support
  13176. ld_shlibs_CXX=no
  13177. ;;
  13178. *)
  13179. # FIXME: insert proper C++ library support
  13180. ld_shlibs_CXX=no
  13181. ;;
  13182. esac
  13183. ;;
  13184. solaris*)
  13185. case $cc_basename in
  13186. CC* | sunCC*)
  13187. # Sun C++ 4.2, 5.x and Centerline C++
  13188. archive_cmds_need_lc_CXX=yes
  13189. no_undefined_flag_CXX=' -zdefs'
  13190. archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  13191. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  13192. $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'
  13193. hardcode_libdir_flag_spec_CXX='-R$libdir'
  13194. hardcode_shlibpath_var_CXX=no
  13195. case $host_os in
  13196. solaris2.[0-5] | solaris2.[0-5].*) ;;
  13197. *)
  13198. # The compiler driver will combine and reorder linker options,
  13199. # but understands '-z linker_flag'.
  13200. # Supported since Solaris 2.6 (maybe 2.5.1?)
  13201. whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
  13202. ;;
  13203. esac
  13204. link_all_deplibs_CXX=yes
  13205. output_verbose_link_cmd='func_echo_all'
  13206. # Archives containing C++ object files must be created using
  13207. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  13208. # necessary to make sure instantiated templates are included
  13209. # in the archive.
  13210. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  13211. ;;
  13212. gcx*)
  13213. # Green Hills C++ Compiler
  13214. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
  13215. # The C++ compiler must be used to create the archive.
  13216. old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
  13217. ;;
  13218. *)
  13219. # GNU C++ compiler with Solaris linker
  13220. if test yes,no = "$GXX,$with_gnu_ld"; then
  13221. no_undefined_flag_CXX=' $wl-z ${wl}defs'
  13222. if $CC --version | $GREP -v '^2\.7' > /dev/null; then
  13223. archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
  13224. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  13225. $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'
  13226. # Commands to make compiler produce verbose output that lists
  13227. # what "hidden" libraries, object files and flags are used when
  13228. # linking a shared library.
  13229. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  13230. else
  13231. # g++ 2.7 appears to require '-G' NOT '-shared' on this
  13232. # platform.
  13233. archive_cmds_CXX='$CC -G -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
  13234. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  13235. $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'
  13236. # Commands to make compiler produce verbose output that lists
  13237. # what "hidden" libraries, object files and flags are used when
  13238. # linking a shared library.
  13239. output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  13240. fi
  13241. hardcode_libdir_flag_spec_CXX='$wl-R $wl$libdir'
  13242. case $host_os in
  13243. solaris2.[0-5] | solaris2.[0-5].*) ;;
  13244. *)
  13245. whole_archive_flag_spec_CXX='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
  13246. ;;
  13247. esac
  13248. fi
  13249. ;;
  13250. esac
  13251. ;;
  13252. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  13253. no_undefined_flag_CXX='$wl-z,text'
  13254. archive_cmds_need_lc_CXX=no
  13255. hardcode_shlibpath_var_CXX=no
  13256. runpath_var='LD_RUN_PATH'
  13257. case $cc_basename in
  13258. CC*)
  13259. archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13260. archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13261. ;;
  13262. *)
  13263. archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13264. archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13265. ;;
  13266. esac
  13267. ;;
  13268. sysv5* | sco3.2v5* | sco5v6*)
  13269. # Note: We CANNOT use -z defs as we might desire, because we do not
  13270. # link with -lc, and that would cause any symbols used from libc to
  13271. # always be unresolved, which means just about no library would
  13272. # ever link correctly. If we're not using GNU ld we use -z text
  13273. # though, which does catch some bad symbols but isn't as heavy-handed
  13274. # as -z defs.
  13275. no_undefined_flag_CXX='$wl-z,text'
  13276. allow_undefined_flag_CXX='$wl-z,nodefs'
  13277. archive_cmds_need_lc_CXX=no
  13278. hardcode_shlibpath_var_CXX=no
  13279. hardcode_libdir_flag_spec_CXX='$wl-R,$libdir'
  13280. hardcode_libdir_separator_CXX=':'
  13281. link_all_deplibs_CXX=yes
  13282. export_dynamic_flag_spec_CXX='$wl-Bexport'
  13283. runpath_var='LD_RUN_PATH'
  13284. case $cc_basename in
  13285. CC*)
  13286. archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13287. archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13288. old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
  13289. '"$old_archive_cmds_CXX"
  13290. reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
  13291. '"$reload_cmds_CXX"
  13292. ;;
  13293. *)
  13294. archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13295. archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13296. ;;
  13297. esac
  13298. ;;
  13299. tandem*)
  13300. case $cc_basename in
  13301. NCC*)
  13302. # NonStop-UX NCC 3.20
  13303. # FIXME: insert proper C++ library support
  13304. ld_shlibs_CXX=no
  13305. ;;
  13306. *)
  13307. # FIXME: insert proper C++ library support
  13308. ld_shlibs_CXX=no
  13309. ;;
  13310. esac
  13311. ;;
  13312. vxworks*)
  13313. # FIXME: insert proper C++ library support
  13314. ld_shlibs_CXX=no
  13315. ;;
  13316. *)
  13317. # FIXME: insert proper C++ library support
  13318. ld_shlibs_CXX=no
  13319. ;;
  13320. esac
  13321. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
  13322. $as_echo "$ld_shlibs_CXX" >&6; }
  13323. test no = "$ld_shlibs_CXX" && can_build_shared=no
  13324. GCC_CXX=$GXX
  13325. LD_CXX=$LD
  13326. ## CAVEAT EMPTOR:
  13327. ## There is no encapsulation within the following macros, do not change
  13328. ## the running order or otherwise move them around unless you know exactly
  13329. ## what you are doing...
  13330. # Dependencies to place before and after the object being linked:
  13331. predep_objects_CXX=
  13332. postdep_objects_CXX=
  13333. predeps_CXX=
  13334. postdeps_CXX=
  13335. compiler_lib_search_path_CXX=
  13336. cat > conftest.$ac_ext <<_LT_EOF
  13337. class Foo
  13338. {
  13339. public:
  13340. Foo (void) { a = 0; }
  13341. private:
  13342. int a;
  13343. };
  13344. _LT_EOF
  13345. _lt_libdeps_save_CFLAGS=$CFLAGS
  13346. case "$CC $CFLAGS " in #(
  13347. *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
  13348. *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
  13349. *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
  13350. esac
  13351. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  13352. (eval $ac_compile) 2>&5
  13353. ac_status=$?
  13354. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  13355. test $ac_status = 0; }; then
  13356. # Parse the compiler output and extract the necessary
  13357. # objects, libraries and library flags.
  13358. # Sentinel used to keep track of whether or not we are before
  13359. # the conftest object file.
  13360. pre_test_object_deps_done=no
  13361. for p in `eval "$output_verbose_link_cmd"`; do
  13362. case $prev$p in
  13363. -L* | -R* | -l*)
  13364. # Some compilers place space between "-{L,R}" and the path.
  13365. # Remove the space.
  13366. if test x-L = "$p" ||
  13367. test x-R = "$p"; then
  13368. prev=$p
  13369. continue
  13370. fi
  13371. # Expand the sysroot to ease extracting the directories later.
  13372. if test -z "$prev"; then
  13373. case $p in
  13374. -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
  13375. -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
  13376. -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
  13377. esac
  13378. fi
  13379. case $p in
  13380. =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
  13381. esac
  13382. if test no = "$pre_test_object_deps_done"; then
  13383. case $prev in
  13384. -L | -R)
  13385. # Internal compiler library paths should come after those
  13386. # provided the user. The postdeps already come after the
  13387. # user supplied libs so there is no need to process them.
  13388. if test -z "$compiler_lib_search_path_CXX"; then
  13389. compiler_lib_search_path_CXX=$prev$p
  13390. else
  13391. compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} $prev$p"
  13392. fi
  13393. ;;
  13394. # The "-l" case would never come before the object being
  13395. # linked, so don't bother handling this case.
  13396. esac
  13397. else
  13398. if test -z "$postdeps_CXX"; then
  13399. postdeps_CXX=$prev$p
  13400. else
  13401. postdeps_CXX="${postdeps_CXX} $prev$p"
  13402. fi
  13403. fi
  13404. prev=
  13405. ;;
  13406. *.lto.$objext) ;; # Ignore GCC LTO objects
  13407. *.$objext)
  13408. # This assumes that the test object file only shows up
  13409. # once in the compiler output.
  13410. if test "$p" = "conftest.$objext"; then
  13411. pre_test_object_deps_done=yes
  13412. continue
  13413. fi
  13414. if test no = "$pre_test_object_deps_done"; then
  13415. if test -z "$predep_objects_CXX"; then
  13416. predep_objects_CXX=$p
  13417. else
  13418. predep_objects_CXX="$predep_objects_CXX $p"
  13419. fi
  13420. else
  13421. if test -z "$postdep_objects_CXX"; then
  13422. postdep_objects_CXX=$p
  13423. else
  13424. postdep_objects_CXX="$postdep_objects_CXX $p"
  13425. fi
  13426. fi
  13427. ;;
  13428. *) ;; # Ignore the rest.
  13429. esac
  13430. done
  13431. # Clean up.
  13432. rm -f a.out a.exe
  13433. else
  13434. echo "libtool.m4: error: problem compiling CXX test program"
  13435. fi
  13436. $RM -f confest.$objext
  13437. CFLAGS=$_lt_libdeps_save_CFLAGS
  13438. # PORTME: override above test on systems where it is broken
  13439. case $host_os in
  13440. interix[3-9]*)
  13441. # Interix 3.5 installs completely hosed .la files for C++, so rather than
  13442. # hack all around it, let's just trust "g++" to DTRT.
  13443. predep_objects_CXX=
  13444. postdep_objects_CXX=
  13445. postdeps_CXX=
  13446. ;;
  13447. esac
  13448. case " $postdeps_CXX " in
  13449. *" -lc "*) archive_cmds_need_lc_CXX=no ;;
  13450. esac
  13451. compiler_lib_search_dirs_CXX=
  13452. if test -n "${compiler_lib_search_path_CXX}"; then
  13453. compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | $SED -e 's! -L! !g' -e 's!^ !!'`
  13454. fi
  13455. lt_prog_compiler_wl_CXX=
  13456. lt_prog_compiler_pic_CXX=
  13457. lt_prog_compiler_static_CXX=
  13458. # C++ specific cases for pic, static, wl, etc.
  13459. if test yes = "$GXX"; then
  13460. lt_prog_compiler_wl_CXX='-Wl,'
  13461. lt_prog_compiler_static_CXX='-static'
  13462. case $host_os in
  13463. aix*)
  13464. # All AIX code is PIC.
  13465. if test ia64 = "$host_cpu"; then
  13466. # AIX 5 now supports IA64 processor
  13467. lt_prog_compiler_static_CXX='-Bstatic'
  13468. fi
  13469. lt_prog_compiler_pic_CXX='-fPIC'
  13470. ;;
  13471. amigaos*)
  13472. case $host_cpu in
  13473. powerpc)
  13474. # see comment about AmigaOS4 .so support
  13475. lt_prog_compiler_pic_CXX='-fPIC'
  13476. ;;
  13477. m68k)
  13478. # FIXME: we need at least 68020 code to build shared libraries, but
  13479. # adding the '-m68020' flag to GCC prevents building anything better,
  13480. # like '-m68040'.
  13481. lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
  13482. ;;
  13483. esac
  13484. ;;
  13485. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  13486. # PIC is the default for these OSes.
  13487. ;;
  13488. mingw* | cygwin* | os2* | pw32* | cegcc*)
  13489. # This hack is so that the source file can tell whether it is being
  13490. # built for inclusion in a dll (and should export symbols for example).
  13491. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  13492. # (--disable-auto-import) libraries
  13493. lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
  13494. case $host_os in
  13495. os2*)
  13496. lt_prog_compiler_static_CXX='$wl-static'
  13497. ;;
  13498. esac
  13499. ;;
  13500. darwin* | rhapsody*)
  13501. # PIC is the default on this platform
  13502. # Common symbols not allowed in MH_DYLIB files
  13503. lt_prog_compiler_pic_CXX='-fno-common'
  13504. ;;
  13505. *djgpp*)
  13506. # DJGPP does not support shared libraries at all
  13507. lt_prog_compiler_pic_CXX=
  13508. ;;
  13509. haiku*)
  13510. # PIC is the default for Haiku.
  13511. # The "-static" flag exists, but is broken.
  13512. lt_prog_compiler_static_CXX=
  13513. ;;
  13514. interix[3-9]*)
  13515. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  13516. # Instead, we relocate shared libraries at runtime.
  13517. ;;
  13518. sysv4*MP*)
  13519. if test -d /usr/nec; then
  13520. lt_prog_compiler_pic_CXX=-Kconform_pic
  13521. fi
  13522. ;;
  13523. hpux*)
  13524. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  13525. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  13526. # sets the default TLS model and affects inlining.
  13527. case $host_cpu in
  13528. hppa*64*)
  13529. ;;
  13530. *)
  13531. lt_prog_compiler_pic_CXX='-fPIC'
  13532. ;;
  13533. esac
  13534. ;;
  13535. *qnx* | *nto*)
  13536. # QNX uses GNU C++, but need to define -shared option too, otherwise
  13537. # it will coredump.
  13538. lt_prog_compiler_pic_CXX='-fPIC -shared'
  13539. ;;
  13540. *)
  13541. lt_prog_compiler_pic_CXX='-fPIC'
  13542. ;;
  13543. esac
  13544. else
  13545. case $host_os in
  13546. aix[4-9]*)
  13547. # All AIX code is PIC.
  13548. if test ia64 = "$host_cpu"; then
  13549. # AIX 5 now supports IA64 processor
  13550. lt_prog_compiler_static_CXX='-Bstatic'
  13551. else
  13552. lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
  13553. fi
  13554. ;;
  13555. chorus*)
  13556. case $cc_basename in
  13557. cxch68*)
  13558. # Green Hills C++ Compiler
  13559. # _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"
  13560. ;;
  13561. esac
  13562. ;;
  13563. mingw* | cygwin* | os2* | pw32* | cegcc*)
  13564. # This hack is so that the source file can tell whether it is being
  13565. # built for inclusion in a dll (and should export symbols for example).
  13566. lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
  13567. ;;
  13568. dgux*)
  13569. case $cc_basename in
  13570. ec++*)
  13571. lt_prog_compiler_pic_CXX='-KPIC'
  13572. ;;
  13573. ghcx*)
  13574. # Green Hills C++ Compiler
  13575. lt_prog_compiler_pic_CXX='-pic'
  13576. ;;
  13577. *)
  13578. ;;
  13579. esac
  13580. ;;
  13581. freebsd* | dragonfly*)
  13582. # FreeBSD uses GNU C++
  13583. ;;
  13584. hpux9* | hpux10* | hpux11*)
  13585. case $cc_basename in
  13586. CC*)
  13587. lt_prog_compiler_wl_CXX='-Wl,'
  13588. lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
  13589. if test ia64 != "$host_cpu"; then
  13590. lt_prog_compiler_pic_CXX='+Z'
  13591. fi
  13592. ;;
  13593. aCC*)
  13594. lt_prog_compiler_wl_CXX='-Wl,'
  13595. lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
  13596. case $host_cpu in
  13597. hppa*64*|ia64*)
  13598. # +Z the default
  13599. ;;
  13600. *)
  13601. lt_prog_compiler_pic_CXX='+Z'
  13602. ;;
  13603. esac
  13604. ;;
  13605. *)
  13606. ;;
  13607. esac
  13608. ;;
  13609. interix*)
  13610. # This is c89, which is MS Visual C++ (no shared libs)
  13611. # Anyone wants to do a port?
  13612. ;;
  13613. irix5* | irix6* | nonstopux*)
  13614. case $cc_basename in
  13615. CC*)
  13616. lt_prog_compiler_wl_CXX='-Wl,'
  13617. lt_prog_compiler_static_CXX='-non_shared'
  13618. # CC pic flag -KPIC is the default.
  13619. ;;
  13620. *)
  13621. ;;
  13622. esac
  13623. ;;
  13624. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  13625. case $cc_basename in
  13626. KCC*)
  13627. # KAI C++ Compiler
  13628. lt_prog_compiler_wl_CXX='--backend -Wl,'
  13629. lt_prog_compiler_pic_CXX='-fPIC'
  13630. ;;
  13631. ecpc* )
  13632. # old Intel C++ for x86_64, which still supported -KPIC.
  13633. lt_prog_compiler_wl_CXX='-Wl,'
  13634. lt_prog_compiler_pic_CXX='-KPIC'
  13635. lt_prog_compiler_static_CXX='-static'
  13636. ;;
  13637. icpc* )
  13638. # Intel C++, used to be incompatible with GCC.
  13639. # ICC 10 doesn't accept -KPIC any more.
  13640. lt_prog_compiler_wl_CXX='-Wl,'
  13641. lt_prog_compiler_pic_CXX='-fPIC'
  13642. lt_prog_compiler_static_CXX='-static'
  13643. ;;
  13644. pgCC* | pgcpp*)
  13645. # Portland Group C++ compiler
  13646. lt_prog_compiler_wl_CXX='-Wl,'
  13647. lt_prog_compiler_pic_CXX='-fpic'
  13648. lt_prog_compiler_static_CXX='-Bstatic'
  13649. ;;
  13650. cxx*)
  13651. # Compaq C++
  13652. # Make sure the PIC flag is empty. It appears that all Alpha
  13653. # Linux and Compaq Tru64 Unix objects are PIC.
  13654. lt_prog_compiler_pic_CXX=
  13655. lt_prog_compiler_static_CXX='-non_shared'
  13656. ;;
  13657. xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
  13658. # IBM XL 8.0, 9.0 on PPC and BlueGene
  13659. lt_prog_compiler_wl_CXX='-Wl,'
  13660. lt_prog_compiler_pic_CXX='-qpic'
  13661. lt_prog_compiler_static_CXX='-qstaticlink'
  13662. ;;
  13663. *)
  13664. case `$CC -V 2>&1 | sed 5q` in
  13665. *Sun\ C*)
  13666. # Sun C++ 5.9
  13667. lt_prog_compiler_pic_CXX='-KPIC'
  13668. lt_prog_compiler_static_CXX='-Bstatic'
  13669. lt_prog_compiler_wl_CXX='-Qoption ld '
  13670. ;;
  13671. esac
  13672. ;;
  13673. esac
  13674. ;;
  13675. lynxos*)
  13676. ;;
  13677. m88k*)
  13678. ;;
  13679. mvs*)
  13680. case $cc_basename in
  13681. cxx*)
  13682. lt_prog_compiler_pic_CXX='-W c,exportall'
  13683. ;;
  13684. *)
  13685. ;;
  13686. esac
  13687. ;;
  13688. netbsd* | netbsdelf*-gnu)
  13689. ;;
  13690. *qnx* | *nto*)
  13691. # QNX uses GNU C++, but need to define -shared option too, otherwise
  13692. # it will coredump.
  13693. lt_prog_compiler_pic_CXX='-fPIC -shared'
  13694. ;;
  13695. osf3* | osf4* | osf5*)
  13696. case $cc_basename in
  13697. KCC*)
  13698. lt_prog_compiler_wl_CXX='--backend -Wl,'
  13699. ;;
  13700. RCC*)
  13701. # Rational C++ 2.4.1
  13702. lt_prog_compiler_pic_CXX='-pic'
  13703. ;;
  13704. cxx*)
  13705. # Digital/Compaq C++
  13706. lt_prog_compiler_wl_CXX='-Wl,'
  13707. # Make sure the PIC flag is empty. It appears that all Alpha
  13708. # Linux and Compaq Tru64 Unix objects are PIC.
  13709. lt_prog_compiler_pic_CXX=
  13710. lt_prog_compiler_static_CXX='-non_shared'
  13711. ;;
  13712. *)
  13713. ;;
  13714. esac
  13715. ;;
  13716. psos*)
  13717. ;;
  13718. solaris*)
  13719. case $cc_basename in
  13720. CC* | sunCC*)
  13721. # Sun C++ 4.2, 5.x and Centerline C++
  13722. lt_prog_compiler_pic_CXX='-KPIC'
  13723. lt_prog_compiler_static_CXX='-Bstatic'
  13724. lt_prog_compiler_wl_CXX='-Qoption ld '
  13725. ;;
  13726. gcx*)
  13727. # Green Hills C++ Compiler
  13728. lt_prog_compiler_pic_CXX='-PIC'
  13729. ;;
  13730. *)
  13731. ;;
  13732. esac
  13733. ;;
  13734. sunos4*)
  13735. case $cc_basename in
  13736. CC*)
  13737. # Sun C++ 4.x
  13738. lt_prog_compiler_pic_CXX='-pic'
  13739. lt_prog_compiler_static_CXX='-Bstatic'
  13740. ;;
  13741. lcc*)
  13742. # Lucid
  13743. lt_prog_compiler_pic_CXX='-pic'
  13744. ;;
  13745. *)
  13746. ;;
  13747. esac
  13748. ;;
  13749. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  13750. case $cc_basename in
  13751. CC*)
  13752. lt_prog_compiler_wl_CXX='-Wl,'
  13753. lt_prog_compiler_pic_CXX='-KPIC'
  13754. lt_prog_compiler_static_CXX='-Bstatic'
  13755. ;;
  13756. esac
  13757. ;;
  13758. tandem*)
  13759. case $cc_basename in
  13760. NCC*)
  13761. # NonStop-UX NCC 3.20
  13762. lt_prog_compiler_pic_CXX='-KPIC'
  13763. ;;
  13764. *)
  13765. ;;
  13766. esac
  13767. ;;
  13768. vxworks*)
  13769. ;;
  13770. *)
  13771. lt_prog_compiler_can_build_shared_CXX=no
  13772. ;;
  13773. esac
  13774. fi
  13775. case $host_os in
  13776. # For platforms that do not support PIC, -DPIC is meaningless:
  13777. *djgpp*)
  13778. lt_prog_compiler_pic_CXX=
  13779. ;;
  13780. *)
  13781. lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
  13782. ;;
  13783. esac
  13784. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  13785. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  13786. if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
  13787. $as_echo_n "(cached) " >&6
  13788. else
  13789. lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
  13790. fi
  13791. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
  13792. $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
  13793. lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
  13794. #
  13795. # Check to make sure the PIC flag actually works.
  13796. #
  13797. if test -n "$lt_prog_compiler_pic_CXX"; then
  13798. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
  13799. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
  13800. if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
  13801. $as_echo_n "(cached) " >&6
  13802. else
  13803. lt_cv_prog_compiler_pic_works_CXX=no
  13804. ac_outfile=conftest.$ac_objext
  13805. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  13806. lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" ## exclude from sc_useless_quotes_in_assignment
  13807. # Insert the option either (1) after the last *FLAGS variable, or
  13808. # (2) before a word containing "conftest.", or (3) at the end.
  13809. # Note that $ac_compile itself does not contain backslashes and begins
  13810. # with a dollar sign (not a hyphen), so the echo should work correctly.
  13811. # The option is referenced via a variable to avoid confusing sed.
  13812. lt_compile=`echo "$ac_compile" | $SED \
  13813. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  13814. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  13815. -e 's:$: $lt_compiler_flag:'`
  13816. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  13817. (eval "$lt_compile" 2>conftest.err)
  13818. ac_status=$?
  13819. cat conftest.err >&5
  13820. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13821. if (exit $ac_status) && test -s "$ac_outfile"; then
  13822. # The compiler can only warn and ignore the option if not recognized
  13823. # So say no if there are warnings other than the usual output.
  13824. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  13825. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  13826. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  13827. lt_cv_prog_compiler_pic_works_CXX=yes
  13828. fi
  13829. fi
  13830. $RM conftest*
  13831. fi
  13832. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
  13833. $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
  13834. if test yes = "$lt_cv_prog_compiler_pic_works_CXX"; then
  13835. case $lt_prog_compiler_pic_CXX in
  13836. "" | " "*) ;;
  13837. *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
  13838. esac
  13839. else
  13840. lt_prog_compiler_pic_CXX=
  13841. lt_prog_compiler_can_build_shared_CXX=no
  13842. fi
  13843. fi
  13844. #
  13845. # Check to make sure the static flag actually works.
  13846. #
  13847. wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
  13848. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  13849. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  13850. if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
  13851. $as_echo_n "(cached) " >&6
  13852. else
  13853. lt_cv_prog_compiler_static_works_CXX=no
  13854. save_LDFLAGS=$LDFLAGS
  13855. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  13856. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  13857. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  13858. # The linker can only warn and ignore the option if not recognized
  13859. # So say no if there are warnings
  13860. if test -s conftest.err; then
  13861. # Append any errors to the config.log.
  13862. cat conftest.err 1>&5
  13863. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  13864. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  13865. if diff conftest.exp conftest.er2 >/dev/null; then
  13866. lt_cv_prog_compiler_static_works_CXX=yes
  13867. fi
  13868. else
  13869. lt_cv_prog_compiler_static_works_CXX=yes
  13870. fi
  13871. fi
  13872. $RM -r conftest*
  13873. LDFLAGS=$save_LDFLAGS
  13874. fi
  13875. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
  13876. $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
  13877. if test yes = "$lt_cv_prog_compiler_static_works_CXX"; then
  13878. :
  13879. else
  13880. lt_prog_compiler_static_CXX=
  13881. fi
  13882. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  13883. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  13884. if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
  13885. $as_echo_n "(cached) " >&6
  13886. else
  13887. lt_cv_prog_compiler_c_o_CXX=no
  13888. $RM -r conftest 2>/dev/null
  13889. mkdir conftest
  13890. cd conftest
  13891. mkdir out
  13892. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  13893. lt_compiler_flag="-o out/conftest2.$ac_objext"
  13894. # Insert the option either (1) after the last *FLAGS variable, or
  13895. # (2) before a word containing "conftest.", or (3) at the end.
  13896. # Note that $ac_compile itself does not contain backslashes and begins
  13897. # with a dollar sign (not a hyphen), so the echo should work correctly.
  13898. lt_compile=`echo "$ac_compile" | $SED \
  13899. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  13900. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  13901. -e 's:$: $lt_compiler_flag:'`
  13902. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  13903. (eval "$lt_compile" 2>out/conftest.err)
  13904. ac_status=$?
  13905. cat out/conftest.err >&5
  13906. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13907. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  13908. then
  13909. # The compiler can only warn and ignore the option if not recognized
  13910. # So say no if there are warnings
  13911. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  13912. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  13913. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  13914. lt_cv_prog_compiler_c_o_CXX=yes
  13915. fi
  13916. fi
  13917. chmod u+w . 2>&5
  13918. $RM conftest*
  13919. # SGI C++ compiler will create directory out/ii_files/ for
  13920. # template instantiation
  13921. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  13922. $RM out/* && rmdir out
  13923. cd ..
  13924. $RM -r conftest
  13925. $RM conftest*
  13926. fi
  13927. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  13928. $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
  13929. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  13930. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  13931. if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
  13932. $as_echo_n "(cached) " >&6
  13933. else
  13934. lt_cv_prog_compiler_c_o_CXX=no
  13935. $RM -r conftest 2>/dev/null
  13936. mkdir conftest
  13937. cd conftest
  13938. mkdir out
  13939. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  13940. lt_compiler_flag="-o out/conftest2.$ac_objext"
  13941. # Insert the option either (1) after the last *FLAGS variable, or
  13942. # (2) before a word containing "conftest.", or (3) at the end.
  13943. # Note that $ac_compile itself does not contain backslashes and begins
  13944. # with a dollar sign (not a hyphen), so the echo should work correctly.
  13945. lt_compile=`echo "$ac_compile" | $SED \
  13946. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  13947. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  13948. -e 's:$: $lt_compiler_flag:'`
  13949. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  13950. (eval "$lt_compile" 2>out/conftest.err)
  13951. ac_status=$?
  13952. cat out/conftest.err >&5
  13953. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13954. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  13955. then
  13956. # The compiler can only warn and ignore the option if not recognized
  13957. # So say no if there are warnings
  13958. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  13959. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  13960. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  13961. lt_cv_prog_compiler_c_o_CXX=yes
  13962. fi
  13963. fi
  13964. chmod u+w . 2>&5
  13965. $RM conftest*
  13966. # SGI C++ compiler will create directory out/ii_files/ for
  13967. # template instantiation
  13968. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  13969. $RM out/* && rmdir out
  13970. cd ..
  13971. $RM -r conftest
  13972. $RM conftest*
  13973. fi
  13974. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  13975. $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
  13976. hard_links=nottested
  13977. if test no = "$lt_cv_prog_compiler_c_o_CXX" && test no != "$need_locks"; then
  13978. # do not overwrite the value of need_locks provided by the user
  13979. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  13980. $as_echo_n "checking if we can lock with hard links... " >&6; }
  13981. hard_links=yes
  13982. $RM conftest*
  13983. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  13984. touch conftest.a
  13985. ln conftest.a conftest.b 2>&5 || hard_links=no
  13986. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  13987. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  13988. $as_echo "$hard_links" >&6; }
  13989. if test no = "$hard_links"; then
  13990. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
  13991. $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
  13992. need_locks=warn
  13993. fi
  13994. else
  13995. need_locks=no
  13996. fi
  13997. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  13998. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  13999. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  14000. exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  14001. case $host_os in
  14002. aix[4-9]*)
  14003. # If we're using GNU nm, then we don't want the "-C" option.
  14004. # -C means demangle to GNU nm, but means don't demangle to AIX nm.
  14005. # Without the "-l" option, or with the "-B" option, AIX nm treats
  14006. # weak defined symbols like other global defined symbols, whereas
  14007. # GNU nm marks them as "W".
  14008. # While the 'weak' keyword is ignored in the Export File, we need
  14009. # it in the Import File for the 'aix-soname' feature, so we have
  14010. # to replace the "-B" option with "-P" for AIX nm.
  14011. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  14012. 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'
  14013. else
  14014. 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'
  14015. fi
  14016. ;;
  14017. pw32*)
  14018. export_symbols_cmds_CXX=$ltdll_cmds
  14019. ;;
  14020. cygwin* | mingw* | cegcc*)
  14021. case $cc_basename in
  14022. cl*)
  14023. exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
  14024. ;;
  14025. *)
  14026. 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'
  14027. exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
  14028. ;;
  14029. esac
  14030. ;;
  14031. linux* | k*bsd*-gnu | gnu*)
  14032. link_all_deplibs_CXX=no
  14033. ;;
  14034. *)
  14035. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  14036. ;;
  14037. esac
  14038. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
  14039. $as_echo "$ld_shlibs_CXX" >&6; }
  14040. test no = "$ld_shlibs_CXX" && can_build_shared=no
  14041. with_gnu_ld_CXX=$with_gnu_ld
  14042. #
  14043. # Do we need to explicitly link libc?
  14044. #
  14045. case "x$archive_cmds_need_lc_CXX" in
  14046. x|xyes)
  14047. # Assume -lc should be added
  14048. archive_cmds_need_lc_CXX=yes
  14049. if test yes,yes = "$GCC,$enable_shared"; then
  14050. case $archive_cmds_CXX in
  14051. *'~'*)
  14052. # FIXME: we may have to deal with multi-command sequences.
  14053. ;;
  14054. '$CC '*)
  14055. # Test whether the compiler implicitly links with -lc since on some
  14056. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  14057. # to ld, don't add -lc before -lgcc.
  14058. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  14059. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  14060. if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
  14061. $as_echo_n "(cached) " >&6
  14062. else
  14063. $RM conftest*
  14064. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  14065. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  14066. (eval $ac_compile) 2>&5
  14067. ac_status=$?
  14068. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  14069. test $ac_status = 0; } 2>conftest.err; then
  14070. soname=conftest
  14071. lib=conftest
  14072. libobjs=conftest.$ac_objext
  14073. deplibs=
  14074. wl=$lt_prog_compiler_wl_CXX
  14075. pic_flag=$lt_prog_compiler_pic_CXX
  14076. compiler_flags=-v
  14077. linker_flags=-v
  14078. verstring=
  14079. output_objdir=.
  14080. libname=conftest
  14081. lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
  14082. allow_undefined_flag_CXX=
  14083. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  14084. (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  14085. ac_status=$?
  14086. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  14087. test $ac_status = 0; }
  14088. then
  14089. lt_cv_archive_cmds_need_lc_CXX=no
  14090. else
  14091. lt_cv_archive_cmds_need_lc_CXX=yes
  14092. fi
  14093. allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
  14094. else
  14095. cat conftest.err 1>&5
  14096. fi
  14097. $RM conftest*
  14098. fi
  14099. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
  14100. $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
  14101. archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
  14102. ;;
  14103. esac
  14104. fi
  14105. ;;
  14106. esac
  14107. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  14108. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  14109. library_names_spec=
  14110. libname_spec='lib$name'
  14111. soname_spec=
  14112. shrext_cmds=.so
  14113. postinstall_cmds=
  14114. postuninstall_cmds=
  14115. finish_cmds=
  14116. finish_eval=
  14117. shlibpath_var=
  14118. shlibpath_overrides_runpath=unknown
  14119. version_type=none
  14120. dynamic_linker="$host_os ld.so"
  14121. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  14122. need_lib_prefix=unknown
  14123. hardcode_into_libs=no
  14124. # when you set need_version to no, make sure it does not cause -set_version
  14125. # flags to be left without arguments
  14126. need_version=unknown
  14127. case $host_os in
  14128. aix3*)
  14129. version_type=linux # correct to gnu/linux during the next big refactor
  14130. library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
  14131. shlibpath_var=LIBPATH
  14132. # AIX 3 has no versioning support, so we append a major version to the name.
  14133. soname_spec='$libname$release$shared_ext$major'
  14134. ;;
  14135. aix[4-9]*)
  14136. version_type=linux # correct to gnu/linux during the next big refactor
  14137. need_lib_prefix=no
  14138. need_version=no
  14139. hardcode_into_libs=yes
  14140. if test ia64 = "$host_cpu"; then
  14141. # AIX 5 supports IA64
  14142. library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
  14143. shlibpath_var=LD_LIBRARY_PATH
  14144. else
  14145. # With GCC up to 2.95.x, collect2 would create an import file
  14146. # for dependence libraries. The import file would start with
  14147. # the line '#! .'. This would cause the generated library to
  14148. # depend on '.', always an invalid library. This was fixed in
  14149. # development snapshots of GCC prior to 3.0.
  14150. case $host_os in
  14151. aix4 | aix4.[01] | aix4.[01].*)
  14152. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  14153. echo ' yes '
  14154. echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
  14155. :
  14156. else
  14157. can_build_shared=no
  14158. fi
  14159. ;;
  14160. esac
  14161. # Using Import Files as archive members, it is possible to support
  14162. # filename-based versioning of shared library archives on AIX. While
  14163. # this would work for both with and without runtime linking, it will
  14164. # prevent static linking of such archives. So we do filename-based
  14165. # shared library versioning with .so extension only, which is used
  14166. # when both runtime linking and shared linking is enabled.
  14167. # Unfortunately, runtime linking may impact performance, so we do
  14168. # not want this to be the default eventually. Also, we use the
  14169. # versioned .so libs for executables only if there is the -brtl
  14170. # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
  14171. # To allow for filename-based versioning support, we need to create
  14172. # libNAME.so.V as an archive file, containing:
  14173. # *) an Import File, referring to the versioned filename of the
  14174. # archive as well as the shared archive member, telling the
  14175. # bitwidth (32 or 64) of that shared object, and providing the
  14176. # list of exported symbols of that shared object, eventually
  14177. # decorated with the 'weak' keyword
  14178. # *) the shared object with the F_LOADONLY flag set, to really avoid
  14179. # it being seen by the linker.
  14180. # At run time we better use the real file rather than another symlink,
  14181. # but for link time we create the symlink libNAME.so -> libNAME.so.V
  14182. case $with_aix_soname,$aix_use_runtimelinking in
  14183. # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
  14184. # soname into executable. Probably we can add versioning support to
  14185. # collect2, so additional links can be useful in future.
  14186. aix,yes) # traditional libtool
  14187. dynamic_linker='AIX unversionable lib.so'
  14188. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  14189. # instead of lib<name>.a to let people know that these are not
  14190. # typical AIX shared libraries.
  14191. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14192. ;;
  14193. aix,no) # traditional AIX only
  14194. dynamic_linker='AIX lib.a(lib.so.V)'
  14195. # We preserve .a as extension for shared libraries through AIX4.2
  14196. # and later when we are not doing run time linking.
  14197. library_names_spec='$libname$release.a $libname.a'
  14198. soname_spec='$libname$release$shared_ext$major'
  14199. ;;
  14200. svr4,*) # full svr4 only
  14201. dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
  14202. library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
  14203. # We do not specify a path in Import Files, so LIBPATH fires.
  14204. shlibpath_overrides_runpath=yes
  14205. ;;
  14206. *,yes) # both, prefer svr4
  14207. dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
  14208. library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
  14209. # unpreferred sharedlib libNAME.a needs extra handling
  14210. 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"'
  14211. 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"'
  14212. # We do not specify a path in Import Files, so LIBPATH fires.
  14213. shlibpath_overrides_runpath=yes
  14214. ;;
  14215. *,no) # both, prefer aix
  14216. dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
  14217. library_names_spec='$libname$release.a $libname.a'
  14218. soname_spec='$libname$release$shared_ext$major'
  14219. # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
  14220. 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)'
  14221. 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"'
  14222. ;;
  14223. esac
  14224. shlibpath_var=LIBPATH
  14225. fi
  14226. ;;
  14227. amigaos*)
  14228. case $host_cpu in
  14229. powerpc)
  14230. # Since July 2007 AmigaOS4 officially supports .so libraries.
  14231. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  14232. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14233. ;;
  14234. m68k)
  14235. library_names_spec='$libname.ixlibrary $libname.a'
  14236. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  14237. 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'
  14238. ;;
  14239. esac
  14240. ;;
  14241. beos*)
  14242. library_names_spec='$libname$shared_ext'
  14243. dynamic_linker="$host_os ld.so"
  14244. shlibpath_var=LIBRARY_PATH
  14245. ;;
  14246. bsdi[45]*)
  14247. version_type=linux # correct to gnu/linux during the next big refactor
  14248. need_version=no
  14249. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14250. soname_spec='$libname$release$shared_ext$major'
  14251. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  14252. shlibpath_var=LD_LIBRARY_PATH
  14253. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  14254. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  14255. # the default ld.so.conf also contains /usr/contrib/lib and
  14256. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  14257. # libtool to hard-code these into programs
  14258. ;;
  14259. cygwin* | mingw* | pw32* | cegcc*)
  14260. version_type=windows
  14261. shrext_cmds=.dll
  14262. need_version=no
  14263. need_lib_prefix=no
  14264. case $GCC,$cc_basename in
  14265. yes,*)
  14266. # gcc
  14267. library_names_spec='$libname.dll.a'
  14268. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  14269. postinstall_cmds='base_file=`basename \$file`~
  14270. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
  14271. dldir=$destdir/`dirname \$dlpath`~
  14272. test -d \$dldir || mkdir -p \$dldir~
  14273. $install_prog $dir/$dlname \$dldir/$dlname~
  14274. chmod a+x \$dldir/$dlname~
  14275. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  14276. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  14277. fi'
  14278. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  14279. dlpath=$dir/\$dldll~
  14280. $RM \$dlpath'
  14281. shlibpath_overrides_runpath=yes
  14282. case $host_os in
  14283. cygwin*)
  14284. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  14285. soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  14286. ;;
  14287. mingw* | cegcc*)
  14288. # MinGW DLLs use traditional 'lib' prefix
  14289. soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  14290. ;;
  14291. pw32*)
  14292. # pw32 DLLs use 'pw' prefix rather than 'lib'
  14293. library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  14294. ;;
  14295. esac
  14296. dynamic_linker='Win32 ld.exe'
  14297. ;;
  14298. *,cl*)
  14299. # Native MSVC
  14300. libname_spec='$name'
  14301. soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  14302. library_names_spec='$libname.dll.lib'
  14303. case $build_os in
  14304. mingw*)
  14305. sys_lib_search_path_spec=
  14306. lt_save_ifs=$IFS
  14307. IFS=';'
  14308. for lt_path in $LIB
  14309. do
  14310. IFS=$lt_save_ifs
  14311. # Let DOS variable expansion print the short 8.3 style file name.
  14312. lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
  14313. sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
  14314. done
  14315. IFS=$lt_save_ifs
  14316. # Convert to MSYS style.
  14317. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
  14318. ;;
  14319. cygwin*)
  14320. # Convert to unix form, then to dos form, then back to unix form
  14321. # but this time dos style (no spaces!) so that the unix form looks
  14322. # like /cygdrive/c/PROGRA~1:/cygdr...
  14323. sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
  14324. sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
  14325. sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  14326. ;;
  14327. *)
  14328. sys_lib_search_path_spec=$LIB
  14329. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  14330. # It is most probably a Windows format PATH.
  14331. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  14332. else
  14333. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  14334. fi
  14335. # FIXME: find the short name or the path components, as spaces are
  14336. # common. (e.g. "Program Files" -> "PROGRA~1")
  14337. ;;
  14338. esac
  14339. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  14340. postinstall_cmds='base_file=`basename \$file`~
  14341. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
  14342. dldir=$destdir/`dirname \$dlpath`~
  14343. test -d \$dldir || mkdir -p \$dldir~
  14344. $install_prog $dir/$dlname \$dldir/$dlname'
  14345. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  14346. dlpath=$dir/\$dldll~
  14347. $RM \$dlpath'
  14348. shlibpath_overrides_runpath=yes
  14349. dynamic_linker='Win32 link.exe'
  14350. ;;
  14351. *)
  14352. # Assume MSVC wrapper
  14353. library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
  14354. dynamic_linker='Win32 ld.exe'
  14355. ;;
  14356. esac
  14357. # FIXME: first we should search . and the directory the executable is in
  14358. shlibpath_var=PATH
  14359. ;;
  14360. darwin* | rhapsody*)
  14361. dynamic_linker="$host_os dyld"
  14362. version_type=darwin
  14363. need_lib_prefix=no
  14364. need_version=no
  14365. library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
  14366. soname_spec='$libname$release$major$shared_ext'
  14367. shlibpath_overrides_runpath=yes
  14368. shlibpath_var=DYLD_LIBRARY_PATH
  14369. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  14370. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  14371. ;;
  14372. dgux*)
  14373. version_type=linux # correct to gnu/linux during the next big refactor
  14374. need_lib_prefix=no
  14375. need_version=no
  14376. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14377. soname_spec='$libname$release$shared_ext$major'
  14378. shlibpath_var=LD_LIBRARY_PATH
  14379. ;;
  14380. freebsd* | dragonfly*)
  14381. # DragonFly does not have aout. When/if they implement a new
  14382. # versioning mechanism, adjust this.
  14383. if test -x /usr/bin/objformat; then
  14384. objformat=`/usr/bin/objformat`
  14385. else
  14386. case $host_os in
  14387. freebsd[23].*) objformat=aout ;;
  14388. *) objformat=elf ;;
  14389. esac
  14390. fi
  14391. version_type=freebsd-$objformat
  14392. case $version_type in
  14393. freebsd-elf*)
  14394. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14395. soname_spec='$libname$release$shared_ext$major'
  14396. need_version=no
  14397. need_lib_prefix=no
  14398. ;;
  14399. freebsd-*)
  14400. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  14401. need_version=yes
  14402. ;;
  14403. esac
  14404. shlibpath_var=LD_LIBRARY_PATH
  14405. case $host_os in
  14406. freebsd2.*)
  14407. shlibpath_overrides_runpath=yes
  14408. ;;
  14409. freebsd3.[01]* | freebsdelf3.[01]*)
  14410. shlibpath_overrides_runpath=yes
  14411. hardcode_into_libs=yes
  14412. ;;
  14413. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  14414. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  14415. shlibpath_overrides_runpath=no
  14416. hardcode_into_libs=yes
  14417. ;;
  14418. *) # from 4.6 on, and DragonFly
  14419. shlibpath_overrides_runpath=yes
  14420. hardcode_into_libs=yes
  14421. ;;
  14422. esac
  14423. ;;
  14424. haiku*)
  14425. version_type=linux # correct to gnu/linux during the next big refactor
  14426. need_lib_prefix=no
  14427. need_version=no
  14428. dynamic_linker="$host_os runtime_loader"
  14429. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14430. soname_spec='$libname$release$shared_ext$major'
  14431. shlibpath_var=LIBRARY_PATH
  14432. shlibpath_overrides_runpath=no
  14433. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
  14434. hardcode_into_libs=yes
  14435. ;;
  14436. hpux9* | hpux10* | hpux11*)
  14437. # Give a soname corresponding to the major version so that dld.sl refuses to
  14438. # link against other versions.
  14439. version_type=sunos
  14440. need_lib_prefix=no
  14441. need_version=no
  14442. case $host_cpu in
  14443. ia64*)
  14444. shrext_cmds='.so'
  14445. hardcode_into_libs=yes
  14446. dynamic_linker="$host_os dld.so"
  14447. shlibpath_var=LD_LIBRARY_PATH
  14448. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  14449. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14450. soname_spec='$libname$release$shared_ext$major'
  14451. if test 32 = "$HPUX_IA64_MODE"; then
  14452. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  14453. sys_lib_dlsearch_path_spec=/usr/lib/hpux32
  14454. else
  14455. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  14456. sys_lib_dlsearch_path_spec=/usr/lib/hpux64
  14457. fi
  14458. ;;
  14459. hppa*64*)
  14460. shrext_cmds='.sl'
  14461. hardcode_into_libs=yes
  14462. dynamic_linker="$host_os dld.sl"
  14463. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  14464. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  14465. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14466. soname_spec='$libname$release$shared_ext$major'
  14467. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  14468. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  14469. ;;
  14470. *)
  14471. shrext_cmds='.sl'
  14472. dynamic_linker="$host_os dld.sl"
  14473. shlibpath_var=SHLIB_PATH
  14474. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  14475. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14476. soname_spec='$libname$release$shared_ext$major'
  14477. ;;
  14478. esac
  14479. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  14480. postinstall_cmds='chmod 555 $lib'
  14481. # or fails outright, so override atomically:
  14482. install_override_mode=555
  14483. ;;
  14484. interix[3-9]*)
  14485. version_type=linux # correct to gnu/linux during the next big refactor
  14486. need_lib_prefix=no
  14487. need_version=no
  14488. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14489. soname_spec='$libname$release$shared_ext$major'
  14490. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  14491. shlibpath_var=LD_LIBRARY_PATH
  14492. shlibpath_overrides_runpath=no
  14493. hardcode_into_libs=yes
  14494. ;;
  14495. irix5* | irix6* | nonstopux*)
  14496. case $host_os in
  14497. nonstopux*) version_type=nonstopux ;;
  14498. *)
  14499. if test yes = "$lt_cv_prog_gnu_ld"; then
  14500. version_type=linux # correct to gnu/linux during the next big refactor
  14501. else
  14502. version_type=irix
  14503. fi ;;
  14504. esac
  14505. need_lib_prefix=no
  14506. need_version=no
  14507. soname_spec='$libname$release$shared_ext$major'
  14508. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
  14509. case $host_os in
  14510. irix5* | nonstopux*)
  14511. libsuff= shlibsuff=
  14512. ;;
  14513. *)
  14514. case $LD in # libtool.m4 will add one of these switches to LD
  14515. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  14516. libsuff= shlibsuff= libmagic=32-bit;;
  14517. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  14518. libsuff=32 shlibsuff=N32 libmagic=N32;;
  14519. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  14520. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  14521. *) libsuff= shlibsuff= libmagic=never-match;;
  14522. esac
  14523. ;;
  14524. esac
  14525. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  14526. shlibpath_overrides_runpath=no
  14527. sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
  14528. sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
  14529. hardcode_into_libs=yes
  14530. ;;
  14531. # No shared lib support for Linux oldld, aout, or coff.
  14532. linux*oldld* | linux*aout* | linux*coff*)
  14533. dynamic_linker=no
  14534. ;;
  14535. linux*android*)
  14536. version_type=none # Android doesn't support versioned libraries.
  14537. need_lib_prefix=no
  14538. need_version=no
  14539. library_names_spec='$libname$release$shared_ext'
  14540. soname_spec='$libname$release$shared_ext'
  14541. finish_cmds=
  14542. shlibpath_var=LD_LIBRARY_PATH
  14543. shlibpath_overrides_runpath=yes
  14544. # This implies no fast_install, which is unacceptable.
  14545. # Some rework will be needed to allow for fast_install
  14546. # before this can be enabled.
  14547. hardcode_into_libs=yes
  14548. dynamic_linker='Android linker'
  14549. # Don't embed -rpath directories since the linker doesn't support them.
  14550. hardcode_libdir_flag_spec_CXX='-L$libdir'
  14551. ;;
  14552. # This must be glibc/ELF.
  14553. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  14554. version_type=linux # correct to gnu/linux during the next big refactor
  14555. need_lib_prefix=no
  14556. need_version=no
  14557. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14558. soname_spec='$libname$release$shared_ext$major'
  14559. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  14560. shlibpath_var=LD_LIBRARY_PATH
  14561. shlibpath_overrides_runpath=no
  14562. # Some binutils ld are patched to set DT_RUNPATH
  14563. if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
  14564. $as_echo_n "(cached) " >&6
  14565. else
  14566. lt_cv_shlibpath_overrides_runpath=no
  14567. save_LDFLAGS=$LDFLAGS
  14568. save_libdir=$libdir
  14569. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
  14570. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
  14571. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14572. /* end confdefs.h. */
  14573. int
  14574. main ()
  14575. {
  14576. ;
  14577. return 0;
  14578. }
  14579. _ACEOF
  14580. if ac_fn_cxx_try_link "$LINENO"; then :
  14581. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  14582. lt_cv_shlibpath_overrides_runpath=yes
  14583. fi
  14584. fi
  14585. rm -f core conftest.err conftest.$ac_objext \
  14586. conftest$ac_exeext conftest.$ac_ext
  14587. LDFLAGS=$save_LDFLAGS
  14588. libdir=$save_libdir
  14589. fi
  14590. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  14591. # This implies no fast_install, which is unacceptable.
  14592. # Some rework will be needed to allow for fast_install
  14593. # before this can be enabled.
  14594. hardcode_into_libs=yes
  14595. # Ideally, we could use ldconfig to report *all* directores which are
  14596. # searched for libraries, however this is still not possible. Aside from not
  14597. # being certain /sbin/ldconfig is available, command
  14598. # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
  14599. # even though it is searched at run-time. Try to do the best guess by
  14600. # appending ld.so.conf contents (and includes) to the search path.
  14601. if test -f /etc/ld.so.conf; then
  14602. 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' ' '`
  14603. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  14604. fi
  14605. # We used to test for /lib/ld.so.1 and disable shared libraries on
  14606. # powerpc, because MkLinux only supported shared libraries with the
  14607. # GNU dynamic linker. Since this was broken with cross compilers,
  14608. # most powerpc-linux boxes support dynamic linking these days and
  14609. # people can always --disable-shared, the test was removed, and we
  14610. # assume the GNU/Linux dynamic linker is in use.
  14611. dynamic_linker='GNU/Linux ld.so'
  14612. ;;
  14613. netbsdelf*-gnu)
  14614. version_type=linux
  14615. need_lib_prefix=no
  14616. need_version=no
  14617. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  14618. soname_spec='${libname}${release}${shared_ext}$major'
  14619. shlibpath_var=LD_LIBRARY_PATH
  14620. shlibpath_overrides_runpath=no
  14621. hardcode_into_libs=yes
  14622. dynamic_linker='NetBSD ld.elf_so'
  14623. ;;
  14624. netbsd*)
  14625. version_type=sunos
  14626. need_lib_prefix=no
  14627. need_version=no
  14628. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  14629. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  14630. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  14631. dynamic_linker='NetBSD (a.out) ld.so'
  14632. else
  14633. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14634. soname_spec='$libname$release$shared_ext$major'
  14635. dynamic_linker='NetBSD ld.elf_so'
  14636. fi
  14637. shlibpath_var=LD_LIBRARY_PATH
  14638. shlibpath_overrides_runpath=yes
  14639. hardcode_into_libs=yes
  14640. ;;
  14641. newsos6)
  14642. version_type=linux # correct to gnu/linux during the next big refactor
  14643. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14644. shlibpath_var=LD_LIBRARY_PATH
  14645. shlibpath_overrides_runpath=yes
  14646. ;;
  14647. *nto* | *qnx*)
  14648. version_type=qnx
  14649. need_lib_prefix=no
  14650. need_version=no
  14651. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14652. soname_spec='$libname$release$shared_ext$major'
  14653. shlibpath_var=LD_LIBRARY_PATH
  14654. shlibpath_overrides_runpath=no
  14655. hardcode_into_libs=yes
  14656. dynamic_linker='ldqnx.so'
  14657. ;;
  14658. openbsd* | bitrig*)
  14659. version_type=sunos
  14660. sys_lib_dlsearch_path_spec=/usr/lib
  14661. need_lib_prefix=no
  14662. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
  14663. need_version=no
  14664. else
  14665. need_version=yes
  14666. fi
  14667. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  14668. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  14669. shlibpath_var=LD_LIBRARY_PATH
  14670. shlibpath_overrides_runpath=yes
  14671. ;;
  14672. os2*)
  14673. libname_spec='$name'
  14674. version_type=windows
  14675. shrext_cmds=.dll
  14676. need_version=no
  14677. need_lib_prefix=no
  14678. # OS/2 can only load a DLL with a base name of 8 characters or less.
  14679. soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
  14680. v=$($ECHO $release$versuffix | tr -d .-);
  14681. n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
  14682. $ECHO $n$v`$shared_ext'
  14683. library_names_spec='${libname}_dll.$libext'
  14684. dynamic_linker='OS/2 ld.exe'
  14685. shlibpath_var=BEGINLIBPATH
  14686. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  14687. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  14688. postinstall_cmds='base_file=`basename \$file`~
  14689. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
  14690. dldir=$destdir/`dirname \$dlpath`~
  14691. test -d \$dldir || mkdir -p \$dldir~
  14692. $install_prog $dir/$dlname \$dldir/$dlname~
  14693. chmod a+x \$dldir/$dlname~
  14694. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  14695. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  14696. fi'
  14697. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
  14698. dlpath=$dir/\$dldll~
  14699. $RM \$dlpath'
  14700. ;;
  14701. osf3* | osf4* | osf5*)
  14702. version_type=osf
  14703. need_lib_prefix=no
  14704. need_version=no
  14705. soname_spec='$libname$release$shared_ext$major'
  14706. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14707. shlibpath_var=LD_LIBRARY_PATH
  14708. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  14709. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  14710. ;;
  14711. rdos*)
  14712. dynamic_linker=no
  14713. ;;
  14714. solaris*)
  14715. version_type=linux # correct to gnu/linux during the next big refactor
  14716. need_lib_prefix=no
  14717. need_version=no
  14718. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14719. soname_spec='$libname$release$shared_ext$major'
  14720. shlibpath_var=LD_LIBRARY_PATH
  14721. shlibpath_overrides_runpath=yes
  14722. hardcode_into_libs=yes
  14723. # ldd complains unless libraries are executable
  14724. postinstall_cmds='chmod +x $lib'
  14725. ;;
  14726. sunos4*)
  14727. version_type=sunos
  14728. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  14729. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  14730. shlibpath_var=LD_LIBRARY_PATH
  14731. shlibpath_overrides_runpath=yes
  14732. if test yes = "$with_gnu_ld"; then
  14733. need_lib_prefix=no
  14734. fi
  14735. need_version=yes
  14736. ;;
  14737. sysv4 | sysv4.3*)
  14738. version_type=linux # correct to gnu/linux during the next big refactor
  14739. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14740. soname_spec='$libname$release$shared_ext$major'
  14741. shlibpath_var=LD_LIBRARY_PATH
  14742. case $host_vendor in
  14743. sni)
  14744. shlibpath_overrides_runpath=no
  14745. need_lib_prefix=no
  14746. runpath_var=LD_RUN_PATH
  14747. ;;
  14748. siemens)
  14749. need_lib_prefix=no
  14750. ;;
  14751. motorola)
  14752. need_lib_prefix=no
  14753. need_version=no
  14754. shlibpath_overrides_runpath=no
  14755. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  14756. ;;
  14757. esac
  14758. ;;
  14759. sysv4*MP*)
  14760. if test -d /usr/nec; then
  14761. version_type=linux # correct to gnu/linux during the next big refactor
  14762. library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
  14763. soname_spec='$libname$shared_ext.$major'
  14764. shlibpath_var=LD_LIBRARY_PATH
  14765. fi
  14766. ;;
  14767. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  14768. version_type=sco
  14769. need_lib_prefix=no
  14770. need_version=no
  14771. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
  14772. soname_spec='$libname$release$shared_ext$major'
  14773. shlibpath_var=LD_LIBRARY_PATH
  14774. shlibpath_overrides_runpath=yes
  14775. hardcode_into_libs=yes
  14776. if test yes = "$with_gnu_ld"; then
  14777. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  14778. else
  14779. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  14780. case $host_os in
  14781. sco3.2v5*)
  14782. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  14783. ;;
  14784. esac
  14785. fi
  14786. sys_lib_dlsearch_path_spec='/usr/lib'
  14787. ;;
  14788. tpf*)
  14789. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  14790. version_type=linux # correct to gnu/linux during the next big refactor
  14791. need_lib_prefix=no
  14792. need_version=no
  14793. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14794. shlibpath_var=LD_LIBRARY_PATH
  14795. shlibpath_overrides_runpath=no
  14796. hardcode_into_libs=yes
  14797. ;;
  14798. uts4*)
  14799. version_type=linux # correct to gnu/linux during the next big refactor
  14800. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14801. soname_spec='$libname$release$shared_ext$major'
  14802. shlibpath_var=LD_LIBRARY_PATH
  14803. ;;
  14804. *)
  14805. dynamic_linker=no
  14806. ;;
  14807. esac
  14808. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  14809. $as_echo "$dynamic_linker" >&6; }
  14810. test no = "$dynamic_linker" && can_build_shared=no
  14811. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  14812. if test yes = "$GCC"; then
  14813. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  14814. fi
  14815. if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
  14816. sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
  14817. fi
  14818. if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
  14819. sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
  14820. fi
  14821. # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
  14822. configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
  14823. # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
  14824. func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
  14825. # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
  14826. configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
  14827. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  14828. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  14829. hardcode_action_CXX=
  14830. if test -n "$hardcode_libdir_flag_spec_CXX" ||
  14831. test -n "$runpath_var_CXX" ||
  14832. test yes = "$hardcode_automatic_CXX"; then
  14833. # We can hardcode non-existent directories.
  14834. if test no != "$hardcode_direct_CXX" &&
  14835. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  14836. # have to relink, otherwise we might link with an installed library
  14837. # when we should be linking with a yet-to-be-installed one
  14838. ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" &&
  14839. test no != "$hardcode_minus_L_CXX"; then
  14840. # Linking always hardcodes the temporary library directory.
  14841. hardcode_action_CXX=relink
  14842. else
  14843. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  14844. hardcode_action_CXX=immediate
  14845. fi
  14846. else
  14847. # We cannot hardcode anything, or else we can only hardcode existing
  14848. # directories.
  14849. hardcode_action_CXX=unsupported
  14850. fi
  14851. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
  14852. $as_echo "$hardcode_action_CXX" >&6; }
  14853. if test relink = "$hardcode_action_CXX" ||
  14854. test yes = "$inherit_rpath_CXX"; then
  14855. # Fast installation is not supported
  14856. enable_fast_install=no
  14857. elif test yes = "$shlibpath_overrides_runpath" ||
  14858. test no = "$enable_shared"; then
  14859. # Fast installation is not necessary
  14860. enable_fast_install=needless
  14861. fi
  14862. fi # test -n "$compiler"
  14863. CC=$lt_save_CC
  14864. CFLAGS=$lt_save_CFLAGS
  14865. LDCXX=$LD
  14866. LD=$lt_save_LD
  14867. GCC=$lt_save_GCC
  14868. with_gnu_ld=$lt_save_with_gnu_ld
  14869. lt_cv_path_LDCXX=$lt_cv_path_LD
  14870. lt_cv_path_LD=$lt_save_path_LD
  14871. lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
  14872. lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
  14873. fi # test yes != "$_lt_caught_CXX_error"
  14874. ac_ext=c
  14875. ac_cpp='$CPP $CPPFLAGS'
  14876. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  14877. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  14878. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  14879. ac_config_commands="$ac_config_commands libtool"
  14880. # Only expand once:
  14881. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
  14882. $as_echo_n "checking for inline... " >&6; }
  14883. if ${ac_cv_c_inline+:} false; then :
  14884. $as_echo_n "(cached) " >&6
  14885. else
  14886. ac_cv_c_inline=no
  14887. for ac_kw in inline __inline__ __inline; do
  14888. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14889. /* end confdefs.h. */
  14890. #ifndef __cplusplus
  14891. typedef int foo_t;
  14892. static $ac_kw foo_t static_foo () {return 0; }
  14893. $ac_kw foo_t foo () {return 0; }
  14894. #endif
  14895. _ACEOF
  14896. if ac_fn_c_try_compile "$LINENO"; then :
  14897. ac_cv_c_inline=$ac_kw
  14898. fi
  14899. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14900. test "$ac_cv_c_inline" != no && break
  14901. done
  14902. fi
  14903. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
  14904. $as_echo "$ac_cv_c_inline" >&6; }
  14905. case $ac_cv_c_inline in
  14906. inline | yes) ;;
  14907. *)
  14908. case $ac_cv_c_inline in
  14909. no) ac_val=;;
  14910. *) ac_val=$ac_cv_c_inline;;
  14911. esac
  14912. cat >>confdefs.h <<_ACEOF
  14913. #ifndef __cplusplus
  14914. #define inline $ac_val
  14915. #endif
  14916. _ACEOF
  14917. ;;
  14918. esac
  14919. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__" >&5
  14920. $as_echo_n "checking for __attribute__... " >&6; }
  14921. if ${ac_cv___attribute__+:} false; then :
  14922. $as_echo_n "(cached) " >&6
  14923. else
  14924. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14925. /* end confdefs.h. */
  14926. #include <stdlib.h>
  14927. static void foo(void) __attribute__ ((unused));
  14928. void foo(void) { exit(1); }
  14929. int
  14930. main ()
  14931. {
  14932. ;
  14933. return 0;
  14934. }
  14935. _ACEOF
  14936. if ac_fn_c_try_compile "$LINENO"; then :
  14937. ac_cv___attribute__=yes
  14938. else
  14939. ac_cv___attribute__=no
  14940. fi
  14941. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14942. fi
  14943. if test "$ac_cv___attribute__" = "yes"; then
  14944. $as_echo "#define HAVE___ATTRIBUTE__ 1" >>confdefs.h
  14945. fi
  14946. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv___attribute__" >&5
  14947. $as_echo "$ac_cv___attribute__" >&6; }
  14948. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__((aligned(N))) on functions" >&5
  14949. $as_echo_n "checking for __attribute__((aligned(N))) on functions... " >&6; }
  14950. if ${ac_cv___attribute__aligned_fn+:} false; then :
  14951. $as_echo_n "(cached) " >&6
  14952. else
  14953. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14954. /* end confdefs.h. */
  14955. #include <stdlib.h>
  14956. void foo(void) __attribute__((aligned(128)));
  14957. void foo(void) { exit(1); }
  14958. int
  14959. main ()
  14960. {
  14961. ;
  14962. return 0;
  14963. }
  14964. _ACEOF
  14965. if ac_fn_c_try_compile "$LINENO"; then :
  14966. ac_cv___attribute__aligned_fn=yes
  14967. else
  14968. ac_cv___attribute__aligned_fn=no
  14969. fi
  14970. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14971. fi
  14972. if test "$ac_cv___attribute__aligned_fn" = "yes"; then
  14973. $as_echo "#define HAVE___ATTRIBUTE__ALIGNED_FN 1" >>confdefs.h
  14974. fi
  14975. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv___attribute__aligned_fn" >&5
  14976. $as_echo "$ac_cv___attribute__aligned_fn" >&6; }
  14977. # Check whether some low-level functions/files are available
  14978. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  14979. $as_echo_n "checking for ANSI C header files... " >&6; }
  14980. if ${ac_cv_header_stdc+:} false; then :
  14981. $as_echo_n "(cached) " >&6
  14982. else
  14983. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14984. /* end confdefs.h. */
  14985. #include <stdlib.h>
  14986. #include <stdarg.h>
  14987. #include <string.h>
  14988. #include <float.h>
  14989. int
  14990. main ()
  14991. {
  14992. ;
  14993. return 0;
  14994. }
  14995. _ACEOF
  14996. if ac_fn_c_try_compile "$LINENO"; then :
  14997. ac_cv_header_stdc=yes
  14998. else
  14999. ac_cv_header_stdc=no
  15000. fi
  15001. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15002. if test $ac_cv_header_stdc = yes; then
  15003. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  15004. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15005. /* end confdefs.h. */
  15006. #include <string.h>
  15007. _ACEOF
  15008. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  15009. $EGREP "memchr" >/dev/null 2>&1; then :
  15010. else
  15011. ac_cv_header_stdc=no
  15012. fi
  15013. rm -f conftest*
  15014. fi
  15015. if test $ac_cv_header_stdc = yes; then
  15016. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  15017. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15018. /* end confdefs.h. */
  15019. #include <stdlib.h>
  15020. _ACEOF
  15021. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  15022. $EGREP "free" >/dev/null 2>&1; then :
  15023. else
  15024. ac_cv_header_stdc=no
  15025. fi
  15026. rm -f conftest*
  15027. fi
  15028. if test $ac_cv_header_stdc = yes; then
  15029. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  15030. if test "$cross_compiling" = yes; then :
  15031. :
  15032. else
  15033. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15034. /* end confdefs.h. */
  15035. #include <ctype.h>
  15036. #include <stdlib.h>
  15037. #if ((' ' & 0x0FF) == 0x020)
  15038. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  15039. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  15040. #else
  15041. # define ISLOWER(c) \
  15042. (('a' <= (c) && (c) <= 'i') \
  15043. || ('j' <= (c) && (c) <= 'r') \
  15044. || ('s' <= (c) && (c) <= 'z'))
  15045. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  15046. #endif
  15047. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  15048. int
  15049. main ()
  15050. {
  15051. int i;
  15052. for (i = 0; i < 256; i++)
  15053. if (XOR (islower (i), ISLOWER (i))
  15054. || toupper (i) != TOUPPER (i))
  15055. return 2;
  15056. return 0;
  15057. }
  15058. _ACEOF
  15059. if ac_fn_c_try_run "$LINENO"; then :
  15060. else
  15061. ac_cv_header_stdc=no
  15062. fi
  15063. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  15064. conftest.$ac_objext conftest.beam conftest.$ac_ext
  15065. fi
  15066. fi
  15067. fi
  15068. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  15069. $as_echo "$ac_cv_header_stdc" >&6; }
  15070. if test $ac_cv_header_stdc = yes; then
  15071. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  15072. fi
  15073. # TODO(csilvers): we could remove a lot when WITH_CPU_PROFILER etc is "no".
  15074. ac_fn_c_check_type "$LINENO" "__int64" "ac_cv_type___int64" "$ac_includes_default"
  15075. if test "x$ac_cv_type___int64" = xyes; then :
  15076. cat >>confdefs.h <<_ACEOF
  15077. #define HAVE___INT64 1
  15078. _ACEOF
  15079. fi
  15080. # defined in some windows platforms
  15081. ac_fn_c_check_type "$LINENO" "struct mallinfo" "ac_cv_type_struct_mallinfo" "#include <malloc.h>
  15082. "
  15083. if test "x$ac_cv_type_struct_mallinfo" = xyes; then :
  15084. cat >>confdefs.h <<_ACEOF
  15085. #define HAVE_STRUCT_MALLINFO 1
  15086. _ACEOF
  15087. fi
  15088. ac_fn_c_check_type "$LINENO" "Elf32_Versym" "ac_cv_type_Elf32_Versym" "#include <elf.h>
  15089. "
  15090. if test "x$ac_cv_type_Elf32_Versym" = xyes; then :
  15091. cat >>confdefs.h <<_ACEOF
  15092. #define HAVE_ELF32_VERSYM 1
  15093. _ACEOF
  15094. fi
  15095. # for vdso_support.h
  15096. for ac_func in sbrk
  15097. do :
  15098. ac_fn_c_check_func "$LINENO" "sbrk" "ac_cv_func_sbrk"
  15099. if test "x$ac_cv_func_sbrk" = xyes; then :
  15100. cat >>confdefs.h <<_ACEOF
  15101. #define HAVE_SBRK 1
  15102. _ACEOF
  15103. fi
  15104. done
  15105. # for tcmalloc to get memory
  15106. for ac_func in geteuid
  15107. do :
  15108. ac_fn_c_check_func "$LINENO" "geteuid" "ac_cv_func_geteuid"
  15109. if test "x$ac_cv_func_geteuid" = xyes; then :
  15110. cat >>confdefs.h <<_ACEOF
  15111. #define HAVE_GETEUID 1
  15112. _ACEOF
  15113. fi
  15114. done
  15115. # for turning off services when run as root
  15116. for ac_func in fork
  15117. do :
  15118. ac_fn_c_check_func "$LINENO" "fork" "ac_cv_func_fork"
  15119. if test "x$ac_cv_func_fork" = xyes; then :
  15120. cat >>confdefs.h <<_ACEOF
  15121. #define HAVE_FORK 1
  15122. _ACEOF
  15123. fi
  15124. done
  15125. # for the pthread_atfork setup
  15126. for ac_header in features.h
  15127. do :
  15128. ac_fn_c_check_header_mongrel "$LINENO" "features.h" "ac_cv_header_features_h" "$ac_includes_default"
  15129. if test "x$ac_cv_header_features_h" = xyes; then :
  15130. cat >>confdefs.h <<_ACEOF
  15131. #define HAVE_FEATURES_H 1
  15132. _ACEOF
  15133. fi
  15134. done
  15135. # for vdso_support.h
  15136. for ac_header in malloc.h
  15137. do :
  15138. ac_fn_c_check_header_mongrel "$LINENO" "malloc.h" "ac_cv_header_malloc_h" "$ac_includes_default"
  15139. if test "x$ac_cv_header_malloc_h" = xyes; then :
  15140. cat >>confdefs.h <<_ACEOF
  15141. #define HAVE_MALLOC_H 1
  15142. _ACEOF
  15143. fi
  15144. done
  15145. # some systems define stuff there, others not
  15146. for ac_header in glob.h
  15147. do :
  15148. ac_fn_c_check_header_mongrel "$LINENO" "glob.h" "ac_cv_header_glob_h" "$ac_includes_default"
  15149. if test "x$ac_cv_header_glob_h" = xyes; then :
  15150. cat >>confdefs.h <<_ACEOF
  15151. #define HAVE_GLOB_H 1
  15152. _ACEOF
  15153. fi
  15154. done
  15155. # for heap-profile-table (cleaning up profiles)
  15156. for ac_header in execinfo.h
  15157. do :
  15158. ac_fn_c_check_header_mongrel "$LINENO" "execinfo.h" "ac_cv_header_execinfo_h" "$ac_includes_default"
  15159. if test "x$ac_cv_header_execinfo_h" = xyes; then :
  15160. cat >>confdefs.h <<_ACEOF
  15161. #define HAVE_EXECINFO_H 1
  15162. _ACEOF
  15163. fi
  15164. done
  15165. # for stacktrace? and heapchecker_unittest
  15166. for ac_header in unwind.h
  15167. do :
  15168. ac_fn_c_check_header_mongrel "$LINENO" "unwind.h" "ac_cv_header_unwind_h" "$ac_includes_default"
  15169. if test "x$ac_cv_header_unwind_h" = xyes; then :
  15170. cat >>confdefs.h <<_ACEOF
  15171. #define HAVE_UNWIND_H 1
  15172. _ACEOF
  15173. fi
  15174. done
  15175. # for stacktrace
  15176. for ac_header in sched.h
  15177. do :
  15178. ac_fn_c_check_header_mongrel "$LINENO" "sched.h" "ac_cv_header_sched_h" "$ac_includes_default"
  15179. if test "x$ac_cv_header_sched_h" = xyes; then :
  15180. cat >>confdefs.h <<_ACEOF
  15181. #define HAVE_SCHED_H 1
  15182. _ACEOF
  15183. fi
  15184. done
  15185. # for being nice in our spinlock code
  15186. for ac_header in conflict-signal.h
  15187. do :
  15188. ac_fn_c_check_header_mongrel "$LINENO" "conflict-signal.h" "ac_cv_header_conflict_signal_h" "$ac_includes_default"
  15189. if test "x$ac_cv_header_conflict_signal_h" = xyes; then :
  15190. cat >>confdefs.h <<_ACEOF
  15191. #define HAVE_CONFLICT_SIGNAL_H 1
  15192. _ACEOF
  15193. fi
  15194. done
  15195. # defined on some windows platforms?
  15196. for ac_header in sys/prctl.h
  15197. do :
  15198. ac_fn_c_check_header_mongrel "$LINENO" "sys/prctl.h" "ac_cv_header_sys_prctl_h" "$ac_includes_default"
  15199. if test "x$ac_cv_header_sys_prctl_h" = xyes; then :
  15200. cat >>confdefs.h <<_ACEOF
  15201. #define HAVE_SYS_PRCTL_H 1
  15202. _ACEOF
  15203. fi
  15204. done
  15205. # for thread_lister (needed by leak-checker)
  15206. for ac_header in linux/ptrace.h
  15207. do :
  15208. ac_fn_c_check_header_mongrel "$LINENO" "linux/ptrace.h" "ac_cv_header_linux_ptrace_h" "$ac_includes_default"
  15209. if test "x$ac_cv_header_linux_ptrace_h" = xyes; then :
  15210. cat >>confdefs.h <<_ACEOF
  15211. #define HAVE_LINUX_PTRACE_H 1
  15212. _ACEOF
  15213. fi
  15214. done
  15215. # also needed by leak-checker
  15216. for ac_header in sys/syscall.h
  15217. do :
  15218. ac_fn_c_check_header_mongrel "$LINENO" "sys/syscall.h" "ac_cv_header_sys_syscall_h" "$ac_includes_default"
  15219. if test "x$ac_cv_header_sys_syscall_h" = xyes; then :
  15220. cat >>confdefs.h <<_ACEOF
  15221. #define HAVE_SYS_SYSCALL_H 1
  15222. _ACEOF
  15223. fi
  15224. done
  15225. for ac_header in sys/socket.h
  15226. do :
  15227. ac_fn_c_check_header_mongrel "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$ac_includes_default"
  15228. if test "x$ac_cv_header_sys_socket_h" = xyes; then :
  15229. cat >>confdefs.h <<_ACEOF
  15230. #define HAVE_SYS_SOCKET_H 1
  15231. _ACEOF
  15232. fi
  15233. done
  15234. # optional; for forking out to symbolizer
  15235. for ac_header in sys/wait.h
  15236. do :
  15237. ac_fn_c_check_header_mongrel "$LINENO" "sys/wait.h" "ac_cv_header_sys_wait_h" "$ac_includes_default"
  15238. if test "x$ac_cv_header_sys_wait_h" = xyes; then :
  15239. cat >>confdefs.h <<_ACEOF
  15240. #define HAVE_SYS_WAIT_H 1
  15241. _ACEOF
  15242. fi
  15243. done
  15244. # optional; for forking out to symbolizer
  15245. for ac_header in poll.h
  15246. do :
  15247. ac_fn_c_check_header_mongrel "$LINENO" "poll.h" "ac_cv_header_poll_h" "$ac_includes_default"
  15248. if test "x$ac_cv_header_poll_h" = xyes; then :
  15249. cat >>confdefs.h <<_ACEOF
  15250. #define HAVE_POLL_H 1
  15251. _ACEOF
  15252. fi
  15253. done
  15254. # optional; for forking out to symbolizer
  15255. for ac_header in fcntl.h
  15256. do :
  15257. ac_fn_c_check_header_mongrel "$LINENO" "fcntl.h" "ac_cv_header_fcntl_h" "$ac_includes_default"
  15258. if test "x$ac_cv_header_fcntl_h" = xyes; then :
  15259. cat >>confdefs.h <<_ACEOF
  15260. #define HAVE_FCNTL_H 1
  15261. _ACEOF
  15262. fi
  15263. done
  15264. # for tcmalloc_unittest
  15265. for ac_header in grp.h
  15266. do :
  15267. ac_fn_c_check_header_mongrel "$LINENO" "grp.h" "ac_cv_header_grp_h" "$ac_includes_default"
  15268. if test "x$ac_cv_header_grp_h" = xyes; then :
  15269. cat >>confdefs.h <<_ACEOF
  15270. #define HAVE_GRP_H 1
  15271. _ACEOF
  15272. fi
  15273. done
  15274. # for heapchecker_unittest
  15275. for ac_header in pwd.h
  15276. do :
  15277. ac_fn_c_check_header_mongrel "$LINENO" "pwd.h" "ac_cv_header_pwd_h" "$ac_includes_default"
  15278. if test "x$ac_cv_header_pwd_h" = xyes; then :
  15279. cat >>confdefs.h <<_ACEOF
  15280. #define HAVE_PWD_H 1
  15281. _ACEOF
  15282. fi
  15283. done
  15284. # for heapchecker_unittest
  15285. for ac_header in sys/resource.h
  15286. do :
  15287. ac_fn_c_check_header_mongrel "$LINENO" "sys/resource.h" "ac_cv_header_sys_resource_h" "$ac_includes_default"
  15288. if test "x$ac_cv_header_sys_resource_h" = xyes; then :
  15289. cat >>confdefs.h <<_ACEOF
  15290. #define HAVE_SYS_RESOURCE_H 1
  15291. _ACEOF
  15292. fi
  15293. done
  15294. # for memalign_unittest.cc
  15295. for ac_header in valgrind.h
  15296. do :
  15297. ac_fn_c_check_header_mongrel "$LINENO" "valgrind.h" "ac_cv_header_valgrind_h" "$ac_includes_default"
  15298. if test "x$ac_cv_header_valgrind_h" = xyes; then :
  15299. cat >>confdefs.h <<_ACEOF
  15300. #define HAVE_VALGRIND_H 1
  15301. _ACEOF
  15302. fi
  15303. done
  15304. # we have a local copy if this isn't found
  15305. for ac_header in sys/cdefs.h
  15306. do :
  15307. ac_fn_c_check_header_mongrel "$LINENO" "sys/cdefs.h" "ac_cv_header_sys_cdefs_h" "$ac_includes_default"
  15308. if test "x$ac_cv_header_sys_cdefs_h" = xyes; then :
  15309. cat >>confdefs.h <<_ACEOF
  15310. #define HAVE_SYS_CDEFS_H 1
  15311. _ACEOF
  15312. fi
  15313. done
  15314. # Where glibc defines __THROW
  15315. for ac_header in features.h
  15316. do :
  15317. ac_fn_c_check_header_mongrel "$LINENO" "features.h" "ac_cv_header_features_h" "$ac_includes_default"
  15318. if test "x$ac_cv_header_features_h" = xyes; then :
  15319. cat >>confdefs.h <<_ACEOF
  15320. #define HAVE_FEATURES_H 1
  15321. _ACEOF
  15322. fi
  15323. done
  15324. # Where __GLIBC__ is defined
  15325. # We also need <ucontext.h>/<sys/ucontext.h>, but we get those from
  15326. # AC_PC_FROM_UCONTEXT, below.
  15327. # We override a lot of memory allocation routines, not all of which are
  15328. # standard. For those the system doesn't declare, we'll declare ourselves.
  15329. ac_fn_c_check_decl "$LINENO" "cfree" "ac_cv_have_decl_cfree" "#define _XOPEN_SOURCE 600
  15330. #include <stdlib.h>
  15331. #include <malloc.h>
  15332. "
  15333. if test "x$ac_cv_have_decl_cfree" = xyes; then :
  15334. ac_have_decl=1
  15335. else
  15336. ac_have_decl=0
  15337. fi
  15338. cat >>confdefs.h <<_ACEOF
  15339. #define HAVE_DECL_CFREE $ac_have_decl
  15340. _ACEOF
  15341. ac_fn_c_check_decl "$LINENO" "posix_memalign" "ac_cv_have_decl_posix_memalign" "#define _XOPEN_SOURCE 600
  15342. #include <stdlib.h>
  15343. #include <malloc.h>
  15344. "
  15345. if test "x$ac_cv_have_decl_posix_memalign" = xyes; then :
  15346. ac_have_decl=1
  15347. else
  15348. ac_have_decl=0
  15349. fi
  15350. cat >>confdefs.h <<_ACEOF
  15351. #define HAVE_DECL_POSIX_MEMALIGN $ac_have_decl
  15352. _ACEOF
  15353. ac_fn_c_check_decl "$LINENO" "memalign" "ac_cv_have_decl_memalign" "#define _XOPEN_SOURCE 600
  15354. #include <stdlib.h>
  15355. #include <malloc.h>
  15356. "
  15357. if test "x$ac_cv_have_decl_memalign" = xyes; then :
  15358. ac_have_decl=1
  15359. else
  15360. ac_have_decl=0
  15361. fi
  15362. cat >>confdefs.h <<_ACEOF
  15363. #define HAVE_DECL_MEMALIGN $ac_have_decl
  15364. _ACEOF
  15365. ac_fn_c_check_decl "$LINENO" "valloc" "ac_cv_have_decl_valloc" "#define _XOPEN_SOURCE 600
  15366. #include <stdlib.h>
  15367. #include <malloc.h>
  15368. "
  15369. if test "x$ac_cv_have_decl_valloc" = xyes; then :
  15370. ac_have_decl=1
  15371. else
  15372. ac_have_decl=0
  15373. fi
  15374. cat >>confdefs.h <<_ACEOF
  15375. #define HAVE_DECL_VALLOC $ac_have_decl
  15376. _ACEOF
  15377. ac_fn_c_check_decl "$LINENO" "pvalloc" "ac_cv_have_decl_pvalloc" "#define _XOPEN_SOURCE 600
  15378. #include <stdlib.h>
  15379. #include <malloc.h>
  15380. "
  15381. if test "x$ac_cv_have_decl_pvalloc" = xyes; then :
  15382. ac_have_decl=1
  15383. else
  15384. ac_have_decl=0
  15385. fi
  15386. cat >>confdefs.h <<_ACEOF
  15387. #define HAVE_DECL_PVALLOC $ac_have_decl
  15388. _ACEOF
  15389. if test "$ac_cv_type_struct_mallinfo" = yes; then
  15390. ac_cv_have_struct_mallinfo=1
  15391. # gperftools/tcmalloc.h needs this
  15392. else
  15393. ac_cv_have_struct_mallinfo=0
  15394. fi
  15395. # We need to check for mmap. cygwin supports mmap, but the autoconf
  15396. # test doesn't work on cygwin:
  15397. # http://www.cygwin.com/ml/cygwin/2002-04/msg00412.html
  15398. # This workaround comes from
  15399. # http://cygwin.com/ml/cygwin/2004-11/msg00138.html
  15400. case "$host" in
  15401. *-*-mingw*)
  15402. ;;
  15403. *-*-cygwin*)
  15404. ac_cv_func_mmap_fixed_mapped=yes
  15405. $as_echo "#define HAVE_MMAP 1" >>confdefs.h
  15406. ;;
  15407. *) if test "$cross_compiling" = yes; then
  15408. ac_cv_func_mmap_fixed_mapped=yes
  15409. $as_echo "#define HAVE_MMAP 1" >>confdefs.h
  15410. else
  15411. for ac_header in $ac_header_list
  15412. do :
  15413. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  15414. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  15415. "
  15416. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  15417. cat >>confdefs.h <<_ACEOF
  15418. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  15419. _ACEOF
  15420. fi
  15421. done
  15422. for ac_func in getpagesize
  15423. do :
  15424. ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
  15425. if test "x$ac_cv_func_getpagesize" = xyes; then :
  15426. cat >>confdefs.h <<_ACEOF
  15427. #define HAVE_GETPAGESIZE 1
  15428. _ACEOF
  15429. fi
  15430. done
  15431. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
  15432. $as_echo_n "checking for working mmap... " >&6; }
  15433. if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
  15434. $as_echo_n "(cached) " >&6
  15435. else
  15436. if test "$cross_compiling" = yes; then :
  15437. ac_cv_func_mmap_fixed_mapped=no
  15438. else
  15439. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15440. /* end confdefs.h. */
  15441. $ac_includes_default
  15442. /* malloc might have been renamed as rpl_malloc. */
  15443. #undef malloc
  15444. /* Thanks to Mike Haertel and Jim Avera for this test.
  15445. Here is a matrix of mmap possibilities:
  15446. mmap private not fixed
  15447. mmap private fixed at somewhere currently unmapped
  15448. mmap private fixed at somewhere already mapped
  15449. mmap shared not fixed
  15450. mmap shared fixed at somewhere currently unmapped
  15451. mmap shared fixed at somewhere already mapped
  15452. For private mappings, we should verify that changes cannot be read()
  15453. back from the file, nor mmap's back from the file at a different
  15454. address. (There have been systems where private was not correctly
  15455. implemented like the infamous i386 svr4.0, and systems where the
  15456. VM page cache was not coherent with the file system buffer cache
  15457. like early versions of FreeBSD and possibly contemporary NetBSD.)
  15458. For shared mappings, we should conversely verify that changes get
  15459. propagated back to all the places they're supposed to be.
  15460. Grep wants private fixed already mapped.
  15461. The main things grep needs to know about mmap are:
  15462. * does it exist and is it safe to write into the mmap'd area
  15463. * how to use it (BSD variants) */
  15464. #include <fcntl.h>
  15465. #include <sys/mman.h>
  15466. #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
  15467. char *malloc ();
  15468. #endif
  15469. /* This mess was copied from the GNU getpagesize.h. */
  15470. #ifndef HAVE_GETPAGESIZE
  15471. # ifdef _SC_PAGESIZE
  15472. # define getpagesize() sysconf(_SC_PAGESIZE)
  15473. # else /* no _SC_PAGESIZE */
  15474. # ifdef HAVE_SYS_PARAM_H
  15475. # include <sys/param.h>
  15476. # ifdef EXEC_PAGESIZE
  15477. # define getpagesize() EXEC_PAGESIZE
  15478. # else /* no EXEC_PAGESIZE */
  15479. # ifdef NBPG
  15480. # define getpagesize() NBPG * CLSIZE
  15481. # ifndef CLSIZE
  15482. # define CLSIZE 1
  15483. # endif /* no CLSIZE */
  15484. # else /* no NBPG */
  15485. # ifdef NBPC
  15486. # define getpagesize() NBPC
  15487. # else /* no NBPC */
  15488. # ifdef PAGESIZE
  15489. # define getpagesize() PAGESIZE
  15490. # endif /* PAGESIZE */
  15491. # endif /* no NBPC */
  15492. # endif /* no NBPG */
  15493. # endif /* no EXEC_PAGESIZE */
  15494. # else /* no HAVE_SYS_PARAM_H */
  15495. # define getpagesize() 8192 /* punt totally */
  15496. # endif /* no HAVE_SYS_PARAM_H */
  15497. # endif /* no _SC_PAGESIZE */
  15498. #endif /* no HAVE_GETPAGESIZE */
  15499. int
  15500. main ()
  15501. {
  15502. char *data, *data2, *data3;
  15503. const char *cdata2;
  15504. int i, pagesize;
  15505. int fd, fd2;
  15506. pagesize = getpagesize ();
  15507. /* First, make a file with some known garbage in it. */
  15508. data = (char *) malloc (pagesize);
  15509. if (!data)
  15510. return 1;
  15511. for (i = 0; i < pagesize; ++i)
  15512. *(data + i) = rand ();
  15513. umask (0);
  15514. fd = creat ("conftest.mmap", 0600);
  15515. if (fd < 0)
  15516. return 2;
  15517. if (write (fd, data, pagesize) != pagesize)
  15518. return 3;
  15519. close (fd);
  15520. /* Next, check that the tail of a page is zero-filled. File must have
  15521. non-zero length, otherwise we risk SIGBUS for entire page. */
  15522. fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
  15523. if (fd2 < 0)
  15524. return 4;
  15525. cdata2 = "";
  15526. if (write (fd2, cdata2, 1) != 1)
  15527. return 5;
  15528. data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
  15529. if (data2 == MAP_FAILED)
  15530. return 6;
  15531. for (i = 0; i < pagesize; ++i)
  15532. if (*(data2 + i))
  15533. return 7;
  15534. close (fd2);
  15535. if (munmap (data2, pagesize))
  15536. return 8;
  15537. /* Next, try to mmap the file at a fixed address which already has
  15538. something else allocated at it. If we can, also make sure that
  15539. we see the same garbage. */
  15540. fd = open ("conftest.mmap", O_RDWR);
  15541. if (fd < 0)
  15542. return 9;
  15543. if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
  15544. MAP_PRIVATE | MAP_FIXED, fd, 0L))
  15545. return 10;
  15546. for (i = 0; i < pagesize; ++i)
  15547. if (*(data + i) != *(data2 + i))
  15548. return 11;
  15549. /* Finally, make sure that changes to the mapped area do not
  15550. percolate back to the file as seen by read(). (This is a bug on
  15551. some variants of i386 svr4.0.) */
  15552. for (i = 0; i < pagesize; ++i)
  15553. *(data2 + i) = *(data2 + i) + 1;
  15554. data3 = (char *) malloc (pagesize);
  15555. if (!data3)
  15556. return 12;
  15557. if (read (fd, data3, pagesize) != pagesize)
  15558. return 13;
  15559. for (i = 0; i < pagesize; ++i)
  15560. if (*(data + i) != *(data3 + i))
  15561. return 14;
  15562. close (fd);
  15563. free (data);
  15564. free (data3);
  15565. return 0;
  15566. }
  15567. _ACEOF
  15568. if ac_fn_c_try_run "$LINENO"; then :
  15569. ac_cv_func_mmap_fixed_mapped=yes
  15570. else
  15571. ac_cv_func_mmap_fixed_mapped=no
  15572. fi
  15573. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  15574. conftest.$ac_objext conftest.beam conftest.$ac_ext
  15575. fi
  15576. fi
  15577. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
  15578. $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
  15579. if test $ac_cv_func_mmap_fixed_mapped = yes; then
  15580. $as_echo "#define HAVE_MMAP 1" >>confdefs.h
  15581. fi
  15582. rm -f conftest.mmap conftest.txt
  15583. fi
  15584. ;;
  15585. esac
  15586. # If AtomicWord != Atomic32, we need to define two versions of all the
  15587. # atomicops functions. If they're the same, we want to define only one.
  15588. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if int32_t is the same type as intptr_t" >&5
  15589. $as_echo_n "checking if int32_t is the same type as intptr_t... " >&6; }
  15590. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15591. /* end confdefs.h. */
  15592. #include <stdint.h>
  15593. int
  15594. main ()
  15595. {
  15596. int32_t v1 = 0; intptr_t v2 = 0; return (&v1 - &v2)
  15597. ;
  15598. return 0;
  15599. }
  15600. _ACEOF
  15601. if ac_fn_c_try_compile "$LINENO"; then :
  15602. $as_echo "#define INT32_EQUALS_INTPTR 1" >>confdefs.h
  15603. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15604. $as_echo "yes" >&6; }
  15605. else
  15606. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15607. $as_echo "no" >&6; }
  15608. fi
  15609. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15610. # We want to access the "PC" (Program Counter) register from a struct
  15611. # ucontext. Every system has its own way of doing that. We try all the
  15612. # possibilities we know about. Note REG_PC should come first (REG_RIP
  15613. # is also defined on solaris, but does the wrong thing). But don't
  15614. # bother if we're not doing cpu-profiling.
  15615. # [*] means that we've not actually tested one of these systems
  15616. if test "$enable_cpu_profiler" = yes; then
  15617. for ac_header in ucontext.h
  15618. do :
  15619. ac_fn_c_check_header_mongrel "$LINENO" "ucontext.h" "ac_cv_header_ucontext_h" "$ac_includes_default"
  15620. if test "x$ac_cv_header_ucontext_h" = xyes; then :
  15621. cat >>confdefs.h <<_ACEOF
  15622. #define HAVE_UCONTEXT_H 1
  15623. _ACEOF
  15624. fi
  15625. done
  15626. # Redhat 7 has <sys/ucontext.h>, but it barfs if we #include it directly
  15627. # (this was fixed in later redhats). <ucontext.h> works fine, so use that.
  15628. if grep "Red Hat Linux release 7" /etc/redhat-release >/dev/null 2>&1; then
  15629. $as_echo "#define HAVE_SYS_UCONTEXT_H 0" >>confdefs.h
  15630. ac_cv_header_sys_ucontext_h=no
  15631. else
  15632. for ac_header in sys/ucontext.h
  15633. do :
  15634. ac_fn_c_check_header_mongrel "$LINENO" "sys/ucontext.h" "ac_cv_header_sys_ucontext_h" "$ac_includes_default"
  15635. if test "x$ac_cv_header_sys_ucontext_h" = xyes; then :
  15636. cat >>confdefs.h <<_ACEOF
  15637. #define HAVE_SYS_UCONTEXT_H 1
  15638. _ACEOF
  15639. fi
  15640. done
  15641. # ucontext on OS X 10.6 (at least)
  15642. fi
  15643. for ac_header in cygwin/signal.h
  15644. do :
  15645. ac_fn_c_check_header_mongrel "$LINENO" "cygwin/signal.h" "ac_cv_header_cygwin_signal_h" "$ac_includes_default"
  15646. if test "x$ac_cv_header_cygwin_signal_h" = xyes; then :
  15647. cat >>confdefs.h <<_ACEOF
  15648. #define HAVE_CYGWIN_SIGNAL_H 1
  15649. _ACEOF
  15650. fi
  15651. done
  15652. # ucontext on cywgin
  15653. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to access the program counter from a struct ucontext" >&5
  15654. $as_echo_n "checking how to access the program counter from a struct ucontext... " >&6; }
  15655. pc_fields=" uc_mcontext.gregs[REG_PC]" # Solaris x86 (32 + 64 bit)
  15656. pc_fields="$pc_fields uc_mcontext.gregs[REG_EIP]" # Linux (i386)
  15657. pc_fields="$pc_fields uc_mcontext.gregs[REG_RIP]" # Linux (x86_64)
  15658. pc_fields="$pc_fields uc_mcontext.sc_ip" # Linux (ia64)
  15659. pc_fields="$pc_fields uc_mcontext.pc" # Linux (mips)
  15660. pc_fields="$pc_fields uc_mcontext.uc_regs->gregs[PT_NIP]" # Linux (ppc)
  15661. pc_fields="$pc_fields uc_mcontext.psw.addr" # Linux (s390)
  15662. pc_fields="$pc_fields uc_mcontext.gregs[R15]" # Linux (arm old [untested])
  15663. pc_fields="$pc_fields uc_mcontext.arm_pc" # Linux (arm arch 5)
  15664. pc_fields="$pc_fields uc_mcontext.gp_regs[PT_NIP]" # Suse SLES 11 (ppc64)
  15665. pc_fields="$pc_fields uc_mcontext.mc_eip" # FreeBSD (i386)
  15666. pc_fields="$pc_fields uc_mcontext.mc_rip" # FreeBSD (x86_64 [untested])
  15667. pc_fields="$pc_fields uc_mcontext.__gregs[_REG_EIP]" # NetBSD (i386)
  15668. pc_fields="$pc_fields uc_mcontext.__gregs[_REG_RIP]" # NetBSD (x86_64)
  15669. pc_fields="$pc_fields uc_mcontext->ss.eip" # OS X (i386, <=10.4)
  15670. pc_fields="$pc_fields uc_mcontext->__ss.__eip" # OS X (i386, >=10.5)
  15671. pc_fields="$pc_fields uc_mcontext->ss.rip" # OS X (x86_64)
  15672. pc_fields="$pc_fields uc_mcontext->__ss.__rip" # OS X (>=10.5 [untested])
  15673. pc_fields="$pc_fields uc_mcontext->ss.srr0" # OS X (ppc, ppc64 [untested])
  15674. pc_fields="$pc_fields uc_mcontext->__ss.__srr0" # OS X (>=10.5 [untested])
  15675. pc_field_found=false
  15676. for pc_field in $pc_fields; do
  15677. if ! $pc_field_found; then
  15678. # Prefer sys/ucontext.h to ucontext.h, for OS X's sake.
  15679. if test "x$ac_cv_header_cygwin_signal_h" = xyes; then
  15680. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15681. /* end confdefs.h. */
  15682. #define _GNU_SOURCE 1
  15683. #include <cygwin/signal.h>
  15684. int
  15685. main ()
  15686. {
  15687. ucontext_t u; return u.$pc_field == 0;
  15688. ;
  15689. return 0;
  15690. }
  15691. _ACEOF
  15692. if ac_fn_c_try_compile "$LINENO"; then :
  15693. cat >>confdefs.h <<_ACEOF
  15694. #define PC_FROM_UCONTEXT $pc_field
  15695. _ACEOF
  15696. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pc_field" >&5
  15697. $as_echo "$pc_field" >&6; }
  15698. pc_field_found=true
  15699. fi
  15700. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15701. elif test "x$ac_cv_header_sys_ucontext_h" = xyes; then
  15702. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15703. /* end confdefs.h. */
  15704. #define _GNU_SOURCE 1
  15705. #include <sys/ucontext.h>
  15706. int
  15707. main ()
  15708. {
  15709. ucontext_t u; return u.$pc_field == 0;
  15710. ;
  15711. return 0;
  15712. }
  15713. _ACEOF
  15714. if ac_fn_c_try_compile "$LINENO"; then :
  15715. cat >>confdefs.h <<_ACEOF
  15716. #define PC_FROM_UCONTEXT $pc_field
  15717. _ACEOF
  15718. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pc_field" >&5
  15719. $as_echo "$pc_field" >&6; }
  15720. pc_field_found=true
  15721. fi
  15722. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15723. elif test "x$ac_cv_header_ucontext_h" = xyes; then
  15724. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15725. /* end confdefs.h. */
  15726. #define _GNU_SOURCE 1
  15727. #include <ucontext.h>
  15728. int
  15729. main ()
  15730. {
  15731. ucontext_t u; return u.$pc_field == 0;
  15732. ;
  15733. return 0;
  15734. }
  15735. _ACEOF
  15736. if ac_fn_c_try_compile "$LINENO"; then :
  15737. cat >>confdefs.h <<_ACEOF
  15738. #define PC_FROM_UCONTEXT $pc_field
  15739. _ACEOF
  15740. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pc_field" >&5
  15741. $as_echo "$pc_field" >&6; }
  15742. pc_field_found=true
  15743. fi
  15744. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15745. else # hope some standard header gives it to us
  15746. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15747. /* end confdefs.h. */
  15748. int
  15749. main ()
  15750. {
  15751. ucontext_t u; return u.$pc_field == 0;
  15752. ;
  15753. return 0;
  15754. }
  15755. _ACEOF
  15756. if ac_fn_c_try_compile "$LINENO"; then :
  15757. cat >>confdefs.h <<_ACEOF
  15758. #define PC_FROM_UCONTEXT $pc_field
  15759. _ACEOF
  15760. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pc_field" >&5
  15761. $as_echo "$pc_field" >&6; }
  15762. pc_field_found=true
  15763. fi
  15764. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15765. fi
  15766. fi
  15767. done
  15768. if ! $pc_field_found; then
  15769. pc_fields=" sc_eip" # OpenBSD (i386)
  15770. pc_fields="$pc_fields sc_rip" # OpenBSD (x86_64)
  15771. for pc_field in $pc_fields; do
  15772. if ! $pc_field_found; then
  15773. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15774. /* end confdefs.h. */
  15775. #include <signal.h>
  15776. int
  15777. main ()
  15778. {
  15779. ucontext_t u; return u.$pc_field == 0;
  15780. ;
  15781. return 0;
  15782. }
  15783. _ACEOF
  15784. if ac_fn_c_try_compile "$LINENO"; then :
  15785. cat >>confdefs.h <<_ACEOF
  15786. #define PC_FROM_UCONTEXT $pc_field
  15787. _ACEOF
  15788. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pc_field" >&5
  15789. $as_echo "$pc_field" >&6; }
  15790. pc_field_found=true
  15791. fi
  15792. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15793. fi
  15794. done
  15795. fi
  15796. if ! $pc_field_found; then
  15797. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find the PC. Will not try to compile libprofiler..." >&5
  15798. $as_echo "$as_me: WARNING: Could not find the PC. Will not try to compile libprofiler..." >&2;};
  15799. enable_cpu_profiler=no
  15800. fi
  15801. fi
  15802. # Some tests test the behavior of .so files, and only make sense for dynamic.
  15803. if test "$enable_static" = yes; then
  15804. ENABLE_STATIC_TRUE=
  15805. ENABLE_STATIC_FALSE='#'
  15806. else
  15807. ENABLE_STATIC_TRUE='#'
  15808. ENABLE_STATIC_FALSE=
  15809. fi
  15810. # We want to link in libunwind if it is enabled and exists.
  15811. UNWIND_LIBS=
  15812. if test "$enable_libunwind" = yes; then
  15813. for ac_header in libunwind.h
  15814. do :
  15815. ac_fn_c_check_header_mongrel "$LINENO" "libunwind.h" "ac_cv_header_libunwind_h" "$ac_includes_default"
  15816. if test "x$ac_cv_header_libunwind_h" = xyes; then :
  15817. cat >>confdefs.h <<_ACEOF
  15818. #define HAVE_LIBUNWIND_H 1
  15819. _ACEOF
  15820. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for backtrace in -lunwind" >&5
  15821. $as_echo_n "checking for backtrace in -lunwind... " >&6; }
  15822. if ${ac_cv_lib_unwind_backtrace+:} false; then :
  15823. $as_echo_n "(cached) " >&6
  15824. else
  15825. ac_check_lib_save_LIBS=$LIBS
  15826. LIBS="-lunwind $LIBS"
  15827. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15828. /* end confdefs.h. */
  15829. /* Override any GCC internal prototype to avoid an error.
  15830. Use char because int might match the return type of a GCC
  15831. builtin and then its argument prototype would still apply. */
  15832. #ifdef __cplusplus
  15833. extern "C"
  15834. #endif
  15835. char backtrace ();
  15836. int
  15837. main ()
  15838. {
  15839. return backtrace ();
  15840. ;
  15841. return 0;
  15842. }
  15843. _ACEOF
  15844. if ac_fn_c_try_link "$LINENO"; then :
  15845. ac_cv_lib_unwind_backtrace=yes
  15846. else
  15847. ac_cv_lib_unwind_backtrace=no
  15848. fi
  15849. rm -f core conftest.err conftest.$ac_objext \
  15850. conftest$ac_exeext conftest.$ac_ext
  15851. LIBS=$ac_check_lib_save_LIBS
  15852. fi
  15853. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_unwind_backtrace" >&5
  15854. $as_echo "$ac_cv_lib_unwind_backtrace" >&6; }
  15855. if test "x$ac_cv_lib_unwind_backtrace" = xyes; then :
  15856. UNWIND_LIBS=-lunwind
  15857. fi
  15858. will_use_libunwind=yes
  15859. fi
  15860. done
  15861. fi
  15862. # On x86_64, instead of libunwind, we can choose to compile with frame-pointers.
  15863. # Check whether --enable-frame_pointers was given.
  15864. if test "${enable_frame_pointers+set}" = set; then :
  15865. enableval=$enable_frame_pointers;
  15866. else
  15867. enable_frame_pointers=no
  15868. fi
  15869. if test "$enable_frame_pointers" = yes; then
  15870. ENABLE_FRAME_POINTERS_TRUE=
  15871. ENABLE_FRAME_POINTERS_FALSE='#'
  15872. else
  15873. ENABLE_FRAME_POINTERS_TRUE='#'
  15874. ENABLE_FRAME_POINTERS_FALSE=
  15875. fi
  15876. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for x86 without frame pointers" >&5
  15877. $as_echo_n "checking for x86 without frame pointers... " >&6; }
  15878. # Some x86_64 systems do not insert frame pointers by default.
  15879. # We want to see if the current system is one of those.
  15880. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15881. /* end confdefs.h. */
  15882. int
  15883. main ()
  15884. {
  15885. return __x86_64__ == 1 ? 0 : 1
  15886. ;
  15887. return 0;
  15888. }
  15889. _ACEOF
  15890. if ac_fn_c_try_compile "$LINENO"; then :
  15891. is_x86_64=yes
  15892. else
  15893. is_x86_64=no
  15894. fi
  15895. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15896. OLD_CFLAGS="$CFLAGS"
  15897. CFLAGS="$CFLAGS -S -O2 -o fp.s"
  15898. # This test will always fail because we don't name our output file properly.
  15899. # We do our own determination of success/failure in the grep, below.
  15900. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15901. /* end confdefs.h. */
  15902. int f(int x) {return x;}
  15903. int
  15904. main ()
  15905. {
  15906. return f(0);
  15907. ;
  15908. return 0;
  15909. }
  15910. _ACEOF
  15911. if ac_fn_c_try_compile "$LINENO"; then :
  15912. :
  15913. else
  15914. :
  15915. fi
  15916. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15917. x86_no_fp_by_default=no
  15918. if test "$is_x86_64" = yes && ! grep 'mov.*rsp.*rbp' fp.s >/dev/null 2>&1; then :
  15919. x86_no_fp_by_default=yes
  15920. fi
  15921. if test "$x86_no_fp_by_default" = yes; then
  15922. X86_64_AND_NO_FP_BY_DEFAULT_TRUE=
  15923. X86_64_AND_NO_FP_BY_DEFAULT_FALSE='#'
  15924. else
  15925. X86_64_AND_NO_FP_BY_DEFAULT_TRUE='#'
  15926. X86_64_AND_NO_FP_BY_DEFAULT_FALSE=
  15927. fi
  15928. rm fp.s
  15929. CFLAGS="$OLD_CFLAGS"
  15930. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $x86_no_fp_by_default" >&5
  15931. $as_echo "$x86_no_fp_by_default" >&6; }
  15932. # We need to know if we're i386 so we can turn on -mmms, which is not
  15933. # on by default for i386 (it is for x86_64).
  15934. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15935. /* end confdefs.h. */
  15936. int
  15937. main ()
  15938. {
  15939. return __i386__ == 1 ? 0 : 1
  15940. ;
  15941. return 0;
  15942. }
  15943. _ACEOF
  15944. if ac_fn_c_try_compile "$LINENO"; then :
  15945. is_i386=yes
  15946. else
  15947. is_i386=no
  15948. fi
  15949. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15950. if test "$is_i386" = yes; then
  15951. I386_TRUE=
  15952. I386_FALSE='#'
  15953. else
  15954. I386_TRUE='#'
  15955. I386_FALSE=
  15956. fi
  15957. # See if the compiler supports -Wno-unused-result.
  15958. # Newer ubuntu's turn on -D_FORTIFY_SOURCE=2, enabling
  15959. # __attribute__((warn_unused_result)) for things like write(),
  15960. # which we don't care about.
  15961. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the compiler supports -Wno-unused-result" >&5
  15962. $as_echo_n "checking if the compiler supports -Wno-unused-result... " >&6; }
  15963. if ${perftools_cv_w_no_unused_result+:} false; then :
  15964. $as_echo_n "(cached) " >&6
  15965. else
  15966. OLD_CFLAGS="$CFLAGS"
  15967. CFLAGS="$CFLAGS -Wno-error -Wunused-result"
  15968. # gcc doesn't warn about unknown flags unless it's
  15969. # also warning for some other purpose, hence the
  15970. # divide-by-0. (We use -Wno-error to make sure the
  15971. # divide-by-0 doesn't cause this test to fail!)
  15972. #
  15973. # Also gcc is giving only warning for unknown flags of
  15974. # -Wno-XXX form. So in order to detect support we're
  15975. # using -Wunused-result which will cause gcc to give
  15976. # error which we can detect.
  15977. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15978. /* end confdefs.h. */
  15979. int
  15980. main ()
  15981. {
  15982. return 1/0
  15983. ;
  15984. return 0;
  15985. }
  15986. _ACEOF
  15987. if ac_fn_c_try_compile "$LINENO"; then :
  15988. perftools_cv_w_no_unused_result=yes
  15989. else
  15990. perftools_cv_w_no_unused_result=no
  15991. fi
  15992. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15993. CFLAGS="$OLD_CFLAGS"
  15994. fi
  15995. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $perftools_cv_w_no_unused_result" >&5
  15996. $as_echo "$perftools_cv_w_no_unused_result" >&6; }
  15997. if test "$perftools_cv_w_no_unused_result" = yes; then
  15998. HAVE_W_NO_UNUSED_RESULT_TRUE=
  15999. HAVE_W_NO_UNUSED_RESULT_FALSE='#'
  16000. else
  16001. HAVE_W_NO_UNUSED_RESULT_TRUE='#'
  16002. HAVE_W_NO_UNUSED_RESULT_FALSE=
  16003. fi
  16004. # Check whether --enable-dynamic-sized-delete-support was given.
  16005. if test "${enable_dynamic_sized_delete_support+set}" = set; then :
  16006. enableval=$enable_dynamic_sized_delete_support; enable_dyn_sized_delete="$enableval"
  16007. else
  16008. enable_dyn_sized_delete=no
  16009. fi
  16010. if test "x$enable_dyn_sized_delete" = xyes; then :
  16011. $as_echo "#define ENABLE_DYNAMIC_SIZED_DELETE 1" >>confdefs.h
  16012. fi
  16013. # Check whether --enable-sized-delete was given.
  16014. if test "${enable_sized_delete+set}" = set; then :
  16015. enableval=$enable_sized_delete; enable_sized_delete="$enableval"
  16016. else
  16017. enable_sized_delete="no"
  16018. fi
  16019. if test "x$enable_sized_delete" = xyes; then :
  16020. $as_echo "#define ENABLE_SIZED_DELETE 1" >>confdefs.h
  16021. { $as_echo "$as_me:${as_lineno-$LINENO}: Will build sized deallocation operators" >&5
  16022. $as_echo "$as_me: Will build sized deallocation operators" >&6;}
  16023. else
  16024. if test "x$enable_dyn_sized_delete" = xyes; then :
  16025. { $as_echo "$as_me:${as_lineno-$LINENO}: Will build dynamically detected sized deallocation operators" >&5
  16026. $as_echo "$as_me: Will build dynamically detected sized deallocation operators" >&6;}
  16027. else
  16028. { $as_echo "$as_me:${as_lineno-$LINENO}: Will build sized deallocation operators that ignore size" >&5
  16029. $as_echo "$as_me: Will build sized deallocation operators that ignore size" >&6;}
  16030. fi
  16031. fi
  16032. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if C++ compiler supports -fsized-deallocation" >&5
  16033. $as_echo_n "checking if C++ compiler supports -fsized-deallocation... " >&6; }
  16034. if ${perftools_cv_sized_deallocation_result+:} false; then :
  16035. $as_echo_n "(cached) " >&6
  16036. else
  16037. ac_ext=cpp
  16038. ac_cpp='$CXXCPP $CPPFLAGS'
  16039. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  16040. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  16041. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  16042. OLD_CXXFLAGS="$CXXFLAGS"
  16043. CXXFLAGS="$CXXFLAGS -fsized-deallocation"
  16044. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16045. /* end confdefs.h. */
  16046. #include <new>
  16047. #include <stddef.h>
  16048. int
  16049. main ()
  16050. {
  16051. static void (* volatile ptr)(void *, size_t) = ::operator delete; (*ptr)(0, 256);
  16052. ;
  16053. return 0;
  16054. }
  16055. _ACEOF
  16056. if ac_fn_cxx_try_link "$LINENO"; then :
  16057. perftools_cv_sized_deallocation_result=yes
  16058. else
  16059. perftools_cv_sized_deallocation_result=no
  16060. fi
  16061. rm -f core conftest.err conftest.$ac_objext \
  16062. conftest$ac_exeext conftest.$ac_ext
  16063. CXXFLAGS="$OLD_CXXFLAGS"
  16064. ac_ext=c
  16065. ac_cpp='$CPP $CPPFLAGS'
  16066. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  16067. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  16068. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  16069. fi
  16070. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $perftools_cv_sized_deallocation_result" >&5
  16071. $as_echo "$perftools_cv_sized_deallocation_result" >&6; }
  16072. if test "$perftools_cv_sized_deallocation_result" = yes; then
  16073. HAVE_SIZED_DEALLOCATION_TRUE=
  16074. HAVE_SIZED_DEALLOCATION_FALSE='#'
  16075. else
  16076. HAVE_SIZED_DEALLOCATION_TRUE='#'
  16077. HAVE_SIZED_DEALLOCATION_FALSE=
  16078. fi
  16079. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if C++ compiler supports std::align_val_t without options" >&5
  16080. $as_echo_n "checking if C++ compiler supports std::align_val_t without options... " >&6; }
  16081. if ${perftools_cv_have_align_val_t+:} false; then :
  16082. $as_echo_n "(cached) " >&6
  16083. else
  16084. ac_ext=cpp
  16085. ac_cpp='$CXXCPP $CPPFLAGS'
  16086. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  16087. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  16088. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  16089. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16090. /* end confdefs.h. */
  16091. #include <new>
  16092. int
  16093. main ()
  16094. {
  16095. (::operator delete)((::operator new)(256, std::align_val_t(16)), std::align_val_t(16))
  16096. ;
  16097. return 0;
  16098. }
  16099. _ACEOF
  16100. if ac_fn_cxx_try_link "$LINENO"; then :
  16101. perftools_cv_have_align_val_t=yes
  16102. else
  16103. perftools_cv_have_align_val_t=no
  16104. fi
  16105. rm -f core conftest.err conftest.$ac_objext \
  16106. conftest$ac_exeext conftest.$ac_ext
  16107. ac_ext=c
  16108. ac_cpp='$CPP $CPPFLAGS'
  16109. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  16110. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  16111. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  16112. fi
  16113. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $perftools_cv_have_align_val_t" >&5
  16114. $as_echo "$perftools_cv_have_align_val_t" >&6; }
  16115. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if C++ compiler supports -faligned-new" >&5
  16116. $as_echo_n "checking if C++ compiler supports -faligned-new... " >&6; }
  16117. if ${perftools_cv_have_f_aligned_new+:} false; then :
  16118. $as_echo_n "(cached) " >&6
  16119. else
  16120. ac_ext=cpp
  16121. ac_cpp='$CXXCPP $CPPFLAGS'
  16122. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  16123. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  16124. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  16125. OLD_CXXFLAGS="$CXXFLAGS"
  16126. CXXFLAGS="$CXXFLAGS -faligned-new"
  16127. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16128. /* end confdefs.h. */
  16129. #include <new>
  16130. int
  16131. main ()
  16132. {
  16133. (::operator delete)((::operator new)(256, std::align_val_t(16)), std::align_val_t(16))
  16134. ;
  16135. return 0;
  16136. }
  16137. _ACEOF
  16138. if ac_fn_cxx_try_link "$LINENO"; then :
  16139. perftools_cv_have_f_aligned_new=yes
  16140. else
  16141. perftools_cv_have_f_aligned_new=no
  16142. fi
  16143. rm -f core conftest.err conftest.$ac_objext \
  16144. conftest$ac_exeext conftest.$ac_ext
  16145. CXXFLAGS="$OLD_CXXFLAGS"
  16146. ac_ext=c
  16147. ac_cpp='$CPP $CPPFLAGS'
  16148. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  16149. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  16150. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  16151. fi
  16152. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $perftools_cv_have_f_aligned_new" >&5
  16153. $as_echo "$perftools_cv_have_f_aligned_new" >&6; }
  16154. if test "$perftools_cv_have_f_aligned_new" = yes; then
  16155. HAVE_F_ALIGNED_NEW_TRUE=
  16156. HAVE_F_ALIGNED_NEW_FALSE='#'
  16157. else
  16158. HAVE_F_ALIGNED_NEW_TRUE='#'
  16159. HAVE_F_ALIGNED_NEW_FALSE=
  16160. fi
  16161. if test "$perftools_cv_have_align_val_t" = yes || test "$perftools_cv_have_f_aligned_new" = yes; then :
  16162. $as_echo "#define ENABLE_ALIGNED_NEW_DELETE 1" >>confdefs.h
  16163. { $as_echo "$as_me:${as_lineno-$LINENO}: Will build new/delete operators for overaligned types" >&5
  16164. $as_echo "$as_me: Will build new/delete operators for overaligned types" >&6;}
  16165. else
  16166. { $as_echo "$as_me:${as_lineno-$LINENO}: Will not build new/delete operators for overaligned types" >&5
  16167. $as_echo "$as_me: Will not build new/delete operators for overaligned types" >&6;}
  16168. fi
  16169. if test "$perftools_cv_have_align_val_t" = yes || test "$perftools_cv_have_f_aligned_new" = yes; then
  16170. ac_cv_have_std_align_val_t=1
  16171. # gperftools/tcmalloc.h and windows/gperftools/tcmalloc.h need this
  16172. else
  16173. ac_cv_have_std_align_val_t=0
  16174. fi
  16175. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if target has _Unwind_Backtrace" >&5
  16176. $as_echo_n "checking if target has _Unwind_Backtrace... " >&6; }
  16177. if ${perftools_cv_have_unwind_backtrace+:} false; then :
  16178. $as_echo_n "(cached) " >&6
  16179. else
  16180. ac_ext=cpp
  16181. ac_cpp='$CXXCPP $CPPFLAGS'
  16182. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  16183. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  16184. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  16185. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16186. /* end confdefs.h. */
  16187. #include <unwind.h>
  16188. int
  16189. main ()
  16190. {
  16191. &_Unwind_Backtrace
  16192. ;
  16193. return 0;
  16194. }
  16195. _ACEOF
  16196. if ac_fn_cxx_try_compile "$LINENO"; then :
  16197. perftools_cv_have_unwind_backtrace=yes
  16198. else
  16199. perftools_cv_have_unwind_backtrace=no
  16200. fi
  16201. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16202. ac_ext=c
  16203. ac_cpp='$CPP $CPPFLAGS'
  16204. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  16205. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  16206. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  16207. fi
  16208. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $perftools_cv_have_unwind_backtrace" >&5
  16209. $as_echo "$perftools_cv_have_unwind_backtrace" >&6; }
  16210. if test "x$perftools_cv_have_unwind_backtrace" = xyes; then :
  16211. $as_echo "#define HAVE_UNWIND_BACKTRACE 1" >>confdefs.h
  16212. fi
  16213. if test "x$enable_backtrace" = xyes; then :
  16214. default_emergency_malloc=yes
  16215. else
  16216. default_emergency_malloc=no
  16217. fi
  16218. if test "x$will_use_libunwind" = xyes; then :
  16219. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16220. /* end confdefs.h. */
  16221. int
  16222. main ()
  16223. {
  16224. return __arm__
  16225. ;
  16226. return 0;
  16227. }
  16228. _ACEOF
  16229. if ac_fn_c_try_compile "$LINENO"; then :
  16230. default_emergency_malloc=yes
  16231. fi
  16232. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16233. fi
  16234. # Check whether --enable-emergency-malloc was given.
  16235. if test "${enable_emergency_malloc+set}" = set; then :
  16236. enableval=$enable_emergency_malloc; enable_emergency_malloc="$enableval"
  16237. else
  16238. enable_emergency_malloc="$default_emergency_malloc"
  16239. fi
  16240. if test "x$enable_emergency_malloc" = xyes; then
  16241. BUILD_EMERGENCY_MALLOC_TRUE=
  16242. BUILD_EMERGENCY_MALLOC_FALSE='#'
  16243. else
  16244. BUILD_EMERGENCY_MALLOC_TRUE='#'
  16245. BUILD_EMERGENCY_MALLOC_FALSE=
  16246. fi
  16247. # Defines PRIuS
  16248. { $as_echo "$as_me:${as_lineno-$LINENO}: checking printf format code for printing a size_t and ssize_t" >&5
  16249. $as_echo_n "checking printf format code for printing a size_t and ssize_t... " >&6; }
  16250. if ${ac_cv_formatting_prius_prefix+:} false; then :
  16251. $as_echo_n "(cached) " >&6
  16252. else
  16253. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16254. /* end confdefs.h. */
  16255. #include <stddef.h>
  16256. int
  16257. main ()
  16258. {
  16259. unsigned int v1 = 0; size_t v2 = 0; return (&v1 - &v2)
  16260. ;
  16261. return 0;
  16262. }
  16263. _ACEOF
  16264. if ac_fn_c_try_compile "$LINENO"; then :
  16265. ac_cv_formatting_prius_prefix=; ac_cv_prius_defined=1
  16266. fi
  16267. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16268. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16269. /* end confdefs.h. */
  16270. #include <stddef.h>
  16271. int
  16272. main ()
  16273. {
  16274. unsigned long v1 = 0; size_t v2 = 0; return (&v1 - &v2)
  16275. ;
  16276. return 0;
  16277. }
  16278. _ACEOF
  16279. if ac_fn_c_try_compile "$LINENO"; then :
  16280. ac_cv_formatting_prius_prefix=l; ac_cv_prius_defined=1
  16281. fi
  16282. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16283. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16284. /* end confdefs.h. */
  16285. #include <stddef.h>
  16286. int
  16287. main ()
  16288. {
  16289. unsigned long long v1 = 0; size_t v2 = 0; return (&v1 - &v2)
  16290. ;
  16291. return 0;
  16292. }
  16293. _ACEOF
  16294. if ac_fn_c_try_compile "$LINENO"; then :
  16295. ac_cv_formatting_prius_prefix=ll; ac_cv_prius_defined=1
  16296. fi
  16297. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16298. fi
  16299. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_formatting_prius_prefix" >&5
  16300. $as_echo "$ac_cv_formatting_prius_prefix" >&6; }
  16301. if test -z "$ac_cv_prius_defined"; then
  16302. ac_cv_formatting_prius_prefix=z;
  16303. fi
  16304. cat >>confdefs.h <<_ACEOF
  16305. #define PRIuS "${ac_cv_formatting_prius_prefix}u"
  16306. _ACEOF
  16307. cat >>confdefs.h <<_ACEOF
  16308. #define PRIxS "${ac_cv_formatting_prius_prefix}x"
  16309. _ACEOF
  16310. cat >>confdefs.h <<_ACEOF
  16311. #define PRIdS "${ac_cv_formatting_prius_prefix}d"
  16312. _ACEOF
  16313. # Also make sure we get standard PRI... definitions, even with glibc.
  16314. # We have to use AH_VERBATIM because we need the #ifdef guard (gcc buglet)
  16315. # Check if __builtin_stack_pointer() is available (for elfcore.h)
  16316. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_stack_pointer()" >&5
  16317. $as_echo_n "checking for __builtin_stack_pointer()... " >&6; }
  16318. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16319. /* end confdefs.h. */
  16320. int
  16321. main ()
  16322. {
  16323. void *sp = __builtin_stack_pointer()
  16324. ;
  16325. return 0;
  16326. }
  16327. _ACEOF
  16328. if ac_fn_c_try_link "$LINENO"; then :
  16329. $as_echo "#define HAVE_BUILTIN_STACK_POINTER 1" >>confdefs.h
  16330. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  16331. $as_echo "yes" >&6; }
  16332. else
  16333. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16334. $as_echo "no" >&6; }
  16335. fi
  16336. rm -f core conftest.err conftest.$ac_objext \
  16337. conftest$ac_exeext conftest.$ac_ext
  16338. # Check for __builtin_expect()
  16339. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_expect()" >&5
  16340. $as_echo_n "checking for __builtin_expect()... " >&6; }
  16341. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16342. /* end confdefs.h. */
  16343. int
  16344. main ()
  16345. {
  16346. return __builtin_expect(main != 0, 1)
  16347. ;
  16348. return 0;
  16349. }
  16350. _ACEOF
  16351. if ac_fn_c_try_link "$LINENO"; then :
  16352. $as_echo "#define HAVE_BUILTIN_EXPECT 1" >>confdefs.h
  16353. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  16354. $as_echo "yes" >&6; }
  16355. else
  16356. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16357. $as_echo "no" >&6; }
  16358. fi
  16359. rm -f core conftest.err conftest.$ac_objext \
  16360. conftest$ac_exeext conftest.$ac_ext
  16361. # Check if __environ is available (for GetenvBeforeMain)
  16362. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __environ" >&5
  16363. $as_echo_n "checking for __environ... " >&6; }
  16364. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16365. /* end confdefs.h. */
  16366. #include <unistd.h>
  16367. int
  16368. main ()
  16369. {
  16370. char **env = __environ
  16371. ;
  16372. return 0;
  16373. }
  16374. _ACEOF
  16375. if ac_fn_c_try_link "$LINENO"; then :
  16376. $as_echo "#define HAVE___ENVIRON 1" >>confdefs.h
  16377. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  16378. $as_echo "yes" >&6; }
  16379. else
  16380. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16381. $as_echo "no" >&6; }
  16382. fi
  16383. rm -f core conftest.err conftest.$ac_objext \
  16384. conftest$ac_exeext conftest.$ac_ext
  16385. # If we support __thread, that can speed up tcmalloc a bit.
  16386. # Note, however, that our code tickles a bug in gcc < 4.1.2
  16387. # involving TLS and -fPIC (which our libraries will use) on x86:
  16388. # http://gcc.gnu.org/ml/gcc-bugs/2006-09/msg02275.html
  16389. #
  16390. # And mingw also does compile __thread but resultant code actually
  16391. # fails to work correctly at least in some not so ancient version:
  16392. # http://mingw-users.1079350.n2.nabble.com/gcc-4-4-multi-threaded-exception-handling-amp-thread-specifier-not-working-td3440749.html
  16393. #
  16394. # Also it was reported that earlier gcc versions for mips compile
  16395. # __thread but it doesn't really work
  16396. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __thread" >&5
  16397. $as_echo_n "checking for __thread... " >&6; }
  16398. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16399. /* end confdefs.h. */
  16400. #if defined(__GNUC__) && ((__GNUC__ < 4) || (__GNUC__ == 4 && __GNUC_MINOR__ < 1) || (__GNUC__ == 4 && __GNUC_MINOR__ == 1 && __GNUC_PATCHLEVEL__ < 2))
  16401. #error gcc has this bug: http://gcc.gnu.org/ml/gcc-bugs/2006-09/msg02275.html
  16402. #elif defined(__MINGW32__)
  16403. #error mingw doesnt really support tls
  16404. #elif defined(__APPLE__)
  16405. #error OSX __thread support is known to call malloc which makes it unsafe to use from malloc replacement
  16406. #endif
  16407. int
  16408. main ()
  16409. {
  16410. static __thread int p = 0
  16411. ;
  16412. return 0;
  16413. }
  16414. _ACEOF
  16415. if ac_fn_c_try_link "$LINENO"; then :
  16416. $as_echo "#define HAVE_TLS 1" >>confdefs.h
  16417. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  16418. $as_echo "yes" >&6; }
  16419. else
  16420. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16421. $as_echo "no" >&6; }
  16422. fi
  16423. rm -f core conftest.err conftest.$ac_objext \
  16424. conftest$ac_exeext conftest.$ac_ext
  16425. # Nanosleep requires extra libraries on some architectures (solaris).
  16426. # This sets NANOSLEEP_LIBS. nanosleep doesn't exist on mingw, which
  16427. # is fine for us because we don't compile libspinlock, which uses it.
  16428. if test "$need_nanosleep" = yes; then
  16429. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if nanosleep requires any libraries" >&5
  16430. $as_echo_n "checking if nanosleep requires any libraries... " >&6; }
  16431. ac_ext=c
  16432. ac_cpp='$CPP $CPPFLAGS'
  16433. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  16434. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  16435. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  16436. acx_nanosleep_ok="no"
  16437. NANOSLEEP_LIBS=
  16438. # For most folks, this should just work
  16439. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16440. /* end confdefs.h. */
  16441. #include <time.h>
  16442. int
  16443. main ()
  16444. {
  16445. static struct timespec ts; nanosleep(&ts, NULL);
  16446. ;
  16447. return 0;
  16448. }
  16449. _ACEOF
  16450. if ac_fn_c_try_link "$LINENO"; then :
  16451. acx_nanosleep_ok=yes
  16452. fi
  16453. rm -f core conftest.err conftest.$ac_objext \
  16454. conftest$ac_exeext conftest.$ac_ext
  16455. # For solaris, we may need -lrt
  16456. if test "x$acx_nanosleep_ok" != "xyes"; then
  16457. OLD_LIBS="$LIBS"
  16458. LIBS="-lrt $LIBS"
  16459. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16460. /* end confdefs.h. */
  16461. #include <time.h>
  16462. int
  16463. main ()
  16464. {
  16465. static struct timespec ts; nanosleep(&ts, NULL);
  16466. ;
  16467. return 0;
  16468. }
  16469. _ACEOF
  16470. if ac_fn_c_try_link "$LINENO"; then :
  16471. acx_nanosleep_ok=yes
  16472. fi
  16473. rm -f core conftest.err conftest.$ac_objext \
  16474. conftest$ac_exeext conftest.$ac_ext
  16475. if test "x$acx_nanosleep_ok" = "xyes"; then
  16476. NANOSLEEP_LIBS="-lrt"
  16477. fi
  16478. LIBS="$OLD_LIBS"
  16479. fi
  16480. if test "x$acx_nanosleep_ok" != "xyes"; then
  16481. as_fn_error $? "cannot find the nanosleep function" "$LINENO" 5
  16482. else
  16483. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${NANOSLEEP_LIBS:-no}" >&5
  16484. $as_echo "${NANOSLEEP_LIBS:-no}" >&6; }
  16485. fi
  16486. ac_ext=c
  16487. ac_cpp='$CPP $CPPFLAGS'
  16488. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  16489. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  16490. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  16491. fi
  16492. # Solaris 10 6/06 has a bug where /usr/sfw/lib/libstdc++.la is empty.
  16493. # If so, we replace it with our own version.
  16494. LIBSTDCXX_LA_LINKER_FLAG=
  16495. if test -f /usr/sfw/lib/libstdc++.la && ! test -s /usr/sfw/lib/libstdc++.la
  16496. then
  16497. LIBSTDCXX_LA_LINKER_FLAG='-L$(top_srcdir)/src/solaris'
  16498. fi
  16499. # We also need to check if the kernel supports __thread, which requires uname()
  16500. ac_fn_c_check_decl "$LINENO" "uname" "ac_cv_have_decl_uname" "#include <sys/utsname.h>
  16501. "
  16502. if test "x$ac_cv_have_decl_uname" = xyes; then :
  16503. ac_have_decl=1
  16504. else
  16505. ac_have_decl=0
  16506. fi
  16507. cat >>confdefs.h <<_ACEOF
  16508. #define HAVE_DECL_UNAME $ac_have_decl
  16509. _ACEOF
  16510. # In fact, a lot of the code in this directory depends on pthreads
  16511. ac_ext=c
  16512. ac_cpp='$CPP $CPPFLAGS'
  16513. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  16514. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  16515. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  16516. acx_pthread_ok=no
  16517. # We used to check for pthread.h first, but this fails if pthread.h
  16518. # requires special compiler flags (e.g. on True64 or Sequent).
  16519. # It gets checked for in the link test anyway.
  16520. # First of all, check if the user has set any of the PTHREAD_LIBS,
  16521. # etcetera environment variables, and if threads linking works using
  16522. # them:
  16523. if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
  16524. save_CFLAGS="$CFLAGS"
  16525. CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
  16526. save_LIBS="$LIBS"
  16527. LIBS="$PTHREAD_LIBS $LIBS"
  16528. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
  16529. $as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
  16530. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16531. /* end confdefs.h. */
  16532. /* Override any GCC internal prototype to avoid an error.
  16533. Use char because int might match the return type of a GCC
  16534. builtin and then its argument prototype would still apply. */
  16535. #ifdef __cplusplus
  16536. extern "C"
  16537. #endif
  16538. char pthread_join ();
  16539. int
  16540. main ()
  16541. {
  16542. return pthread_join ();
  16543. ;
  16544. return 0;
  16545. }
  16546. _ACEOF
  16547. if ac_fn_c_try_link "$LINENO"; then :
  16548. acx_pthread_ok=yes
  16549. fi
  16550. rm -f core conftest.err conftest.$ac_objext \
  16551. conftest$ac_exeext conftest.$ac_ext
  16552. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_ok" >&5
  16553. $as_echo "$acx_pthread_ok" >&6; }
  16554. if test x"$acx_pthread_ok" = xno; then
  16555. PTHREAD_LIBS=""
  16556. PTHREAD_CFLAGS=""
  16557. fi
  16558. LIBS="$save_LIBS"
  16559. CFLAGS="$save_CFLAGS"
  16560. fi
  16561. # We must check for the threads library under a number of different
  16562. # names; the ordering is very important because some systems
  16563. # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
  16564. # libraries is broken (non-POSIX).
  16565. # Create a list of thread flags to try. Items starting with a "-" are
  16566. # C compiler flags, and other items are library names, except for "none"
  16567. # which indicates that we try without any flags at all, and "pthread-config"
  16568. # which is a program returning the flags for the Pth emulation library.
  16569. acx_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
  16570. # The ordering *is* (sometimes) important. Some notes on the
  16571. # individual items follow:
  16572. # pthreads: AIX (must check this before -lpthread)
  16573. # none: in case threads are in libc; should be tried before -Kthread and
  16574. # other compiler flags to prevent continual compiler warnings
  16575. # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
  16576. # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
  16577. # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
  16578. # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
  16579. # -pthreads: Solaris/gcc
  16580. # -mthreads: Mingw32/gcc, Lynx/gcc
  16581. # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
  16582. # doesn't hurt to check since this sometimes defines pthreads too;
  16583. # also defines -D_REENTRANT)
  16584. # ... -mt is also the pthreads flag for HP/aCC
  16585. # pthread: Linux, etcetera
  16586. # --thread-safe: KAI C++
  16587. # pthread-config: use pthread-config program (for GNU Pth library)
  16588. case "${host_cpu}-${host_os}" in
  16589. *solaris*)
  16590. # On Solaris (at least, for some versions), libc contains stubbed
  16591. # (non-functional) versions of the pthreads routines, so link-based
  16592. # tests will erroneously succeed. (We need to link with -pthreads/-mt/
  16593. # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
  16594. # a function called by this macro, so we could check for that, but
  16595. # who knows whether they'll stub that too in a future libc.) So,
  16596. # we'll just look for -pthreads and -lpthread first:
  16597. acx_pthread_flags="-pthreads pthread -mt -pthread $acx_pthread_flags"
  16598. ;;
  16599. esac
  16600. if test x"$acx_pthread_ok" = xno; then
  16601. for flag in $acx_pthread_flags; do
  16602. case $flag in
  16603. none)
  16604. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
  16605. $as_echo_n "checking whether pthreads work without any flags... " >&6; }
  16606. ;;
  16607. -*)
  16608. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
  16609. $as_echo_n "checking whether pthreads work with $flag... " >&6; }
  16610. PTHREAD_CFLAGS="$flag"
  16611. ;;
  16612. pthread-config)
  16613. # Extract the first word of "pthread-config", so it can be a program name with args.
  16614. set dummy pthread-config; ac_word=$2
  16615. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  16616. $as_echo_n "checking for $ac_word... " >&6; }
  16617. if ${ac_cv_prog_acx_pthread_config+:} false; then :
  16618. $as_echo_n "(cached) " >&6
  16619. else
  16620. if test -n "$acx_pthread_config"; then
  16621. ac_cv_prog_acx_pthread_config="$acx_pthread_config" # Let the user override the test.
  16622. else
  16623. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  16624. for as_dir in $PATH
  16625. do
  16626. IFS=$as_save_IFS
  16627. test -z "$as_dir" && as_dir=.
  16628. for ac_exec_ext in '' $ac_executable_extensions; do
  16629. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  16630. ac_cv_prog_acx_pthread_config="yes"
  16631. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  16632. break 2
  16633. fi
  16634. done
  16635. done
  16636. IFS=$as_save_IFS
  16637. test -z "$ac_cv_prog_acx_pthread_config" && ac_cv_prog_acx_pthread_config="no"
  16638. fi
  16639. fi
  16640. acx_pthread_config=$ac_cv_prog_acx_pthread_config
  16641. if test -n "$acx_pthread_config"; then
  16642. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_config" >&5
  16643. $as_echo "$acx_pthread_config" >&6; }
  16644. else
  16645. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16646. $as_echo "no" >&6; }
  16647. fi
  16648. if test x"$acx_pthread_config" = xno; then continue; fi
  16649. PTHREAD_CFLAGS="`pthread-config --cflags`"
  16650. PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
  16651. ;;
  16652. *)
  16653. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
  16654. $as_echo_n "checking for the pthreads library -l$flag... " >&6; }
  16655. PTHREAD_LIBS="-l$flag"
  16656. ;;
  16657. esac
  16658. save_LIBS="$LIBS"
  16659. save_CFLAGS="$CFLAGS"
  16660. LIBS="$PTHREAD_LIBS $LIBS"
  16661. CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
  16662. # Check for various functions. We must include pthread.h,
  16663. # since some functions may be macros. (On the Sequent, we
  16664. # need a special flag -Kthread to make this header compile.)
  16665. # We check for pthread_join because it is in -lpthread on IRIX
  16666. # while pthread_create is in libc. We check for pthread_attr_init
  16667. # due to DEC craziness with -lpthreads. We check for
  16668. # pthread_cleanup_push because it is one of the few pthread
  16669. # functions on Solaris that doesn't have a non-functional libc stub.
  16670. # We try pthread_create on general principles.
  16671. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16672. /* end confdefs.h. */
  16673. #include <pthread.h>
  16674. int
  16675. main ()
  16676. {
  16677. pthread_t th; pthread_join(th, 0);
  16678. pthread_attr_init(0); pthread_cleanup_push(0, 0);
  16679. pthread_create(0,0,0,0); pthread_cleanup_pop(0);
  16680. ;
  16681. return 0;
  16682. }
  16683. _ACEOF
  16684. if ac_fn_c_try_link "$LINENO"; then :
  16685. acx_pthread_ok=yes
  16686. fi
  16687. rm -f core conftest.err conftest.$ac_objext \
  16688. conftest$ac_exeext conftest.$ac_ext
  16689. LIBS="$save_LIBS"
  16690. CFLAGS="$save_CFLAGS"
  16691. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_ok" >&5
  16692. $as_echo "$acx_pthread_ok" >&6; }
  16693. if test "x$acx_pthread_ok" = xyes; then
  16694. break;
  16695. fi
  16696. PTHREAD_LIBS=""
  16697. PTHREAD_CFLAGS=""
  16698. done
  16699. fi
  16700. # Various other checks:
  16701. if test "x$acx_pthread_ok" = xyes; then
  16702. save_LIBS="$LIBS"
  16703. LIBS="$PTHREAD_LIBS $LIBS"
  16704. save_CFLAGS="$CFLAGS"
  16705. CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
  16706. # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
  16707. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
  16708. $as_echo_n "checking for joinable pthread attribute... " >&6; }
  16709. attr_name=unknown
  16710. for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
  16711. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16712. /* end confdefs.h. */
  16713. #include <pthread.h>
  16714. int
  16715. main ()
  16716. {
  16717. int attr=$attr; return attr;
  16718. ;
  16719. return 0;
  16720. }
  16721. _ACEOF
  16722. if ac_fn_c_try_link "$LINENO"; then :
  16723. attr_name=$attr; break
  16724. fi
  16725. rm -f core conftest.err conftest.$ac_objext \
  16726. conftest$ac_exeext conftest.$ac_ext
  16727. done
  16728. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
  16729. $as_echo "$attr_name" >&6; }
  16730. if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
  16731. cat >>confdefs.h <<_ACEOF
  16732. #define PTHREAD_CREATE_JOINABLE $attr_name
  16733. _ACEOF
  16734. fi
  16735. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
  16736. $as_echo_n "checking if more special flags are required for pthreads... " >&6; }
  16737. flag=no
  16738. case "${host_cpu}-${host_os}" in
  16739. *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
  16740. *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
  16741. esac
  16742. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5
  16743. $as_echo "${flag}" >&6; }
  16744. if test "x$flag" != xno; then
  16745. PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
  16746. fi
  16747. LIBS="$save_LIBS"
  16748. CFLAGS="$save_CFLAGS"
  16749. # More AIX lossage: must compile with xlc_r or cc_r
  16750. if test x"$GCC" != xyes; then
  16751. for ac_prog in xlc_r cc_r
  16752. do
  16753. # Extract the first word of "$ac_prog", so it can be a program name with args.
  16754. set dummy $ac_prog; ac_word=$2
  16755. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  16756. $as_echo_n "checking for $ac_word... " >&6; }
  16757. if ${ac_cv_prog_PTHREAD_CC+:} false; then :
  16758. $as_echo_n "(cached) " >&6
  16759. else
  16760. if test -n "$PTHREAD_CC"; then
  16761. ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
  16762. else
  16763. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  16764. for as_dir in $PATH
  16765. do
  16766. IFS=$as_save_IFS
  16767. test -z "$as_dir" && as_dir=.
  16768. for ac_exec_ext in '' $ac_executable_extensions; do
  16769. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  16770. ac_cv_prog_PTHREAD_CC="$ac_prog"
  16771. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  16772. break 2
  16773. fi
  16774. done
  16775. done
  16776. IFS=$as_save_IFS
  16777. fi
  16778. fi
  16779. PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
  16780. if test -n "$PTHREAD_CC"; then
  16781. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
  16782. $as_echo "$PTHREAD_CC" >&6; }
  16783. else
  16784. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16785. $as_echo "no" >&6; }
  16786. fi
  16787. test -n "$PTHREAD_CC" && break
  16788. done
  16789. test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}"
  16790. else
  16791. PTHREAD_CC=$CC
  16792. fi
  16793. # The next part tries to detect GCC inconsistency with -shared on some
  16794. # architectures and systems. The problem is that in certain
  16795. # configurations, when -shared is specified, GCC "forgets" to
  16796. # internally use various flags which are still necessary.
  16797. #
  16798. # Prepare the flags
  16799. #
  16800. save_CFLAGS="$CFLAGS"
  16801. save_LIBS="$LIBS"
  16802. save_CC="$CC"
  16803. # Try with the flags determined by the earlier checks.
  16804. #
  16805. # -Wl,-z,defs forces link-time symbol resolution, so that the
  16806. # linking checks with -shared actually have any value
  16807. #
  16808. # FIXME: -fPIC is required for -shared on many architectures,
  16809. # so we specify it here, but the right way would probably be to
  16810. # properly detect whether it is actually required.
  16811. CFLAGS="-shared -fPIC -Wl,-z,defs $CFLAGS $PTHREAD_CFLAGS"
  16812. LIBS="$PTHREAD_LIBS $LIBS"
  16813. CC="$PTHREAD_CC"
  16814. # In order not to create several levels of indentation, we test
  16815. # the value of "$done" until we find the cure or run out of ideas.
  16816. done="no"
  16817. # First, make sure the CFLAGS we added are actually accepted by our
  16818. # compiler. If not (and OS X's ld, for instance, does not accept -z),
  16819. # then we can't do this test.
  16820. if test x"$done" = xno; then
  16821. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to check for GCC pthread/shared inconsistencies" >&5
  16822. $as_echo_n "checking whether to check for GCC pthread/shared inconsistencies... " >&6; }
  16823. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16824. /* end confdefs.h. */
  16825. int
  16826. main ()
  16827. {
  16828. ;
  16829. return 0;
  16830. }
  16831. _ACEOF
  16832. if ac_fn_c_try_link "$LINENO"; then :
  16833. else
  16834. done=yes
  16835. fi
  16836. rm -f core conftest.err conftest.$ac_objext \
  16837. conftest$ac_exeext conftest.$ac_ext
  16838. if test "x$done" = xyes ; then
  16839. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16840. $as_echo "no" >&6; }
  16841. else
  16842. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  16843. $as_echo "yes" >&6; }
  16844. fi
  16845. fi
  16846. if test x"$done" = xno; then
  16847. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -pthread is sufficient with -shared" >&5
  16848. $as_echo_n "checking whether -pthread is sufficient with -shared... " >&6; }
  16849. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16850. /* end confdefs.h. */
  16851. #include <pthread.h>
  16852. int
  16853. main ()
  16854. {
  16855. pthread_t th; pthread_join(th, 0);
  16856. pthread_attr_init(0); pthread_cleanup_push(0, 0);
  16857. pthread_create(0,0,0,0); pthread_cleanup_pop(0);
  16858. ;
  16859. return 0;
  16860. }
  16861. _ACEOF
  16862. if ac_fn_c_try_link "$LINENO"; then :
  16863. done=yes
  16864. fi
  16865. rm -f core conftest.err conftest.$ac_objext \
  16866. conftest$ac_exeext conftest.$ac_ext
  16867. if test "x$done" = xyes; then
  16868. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  16869. $as_echo "yes" >&6; }
  16870. else
  16871. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16872. $as_echo "no" >&6; }
  16873. fi
  16874. fi
  16875. #
  16876. # Linux gcc on some architectures such as mips/mipsel forgets
  16877. # about -lpthread
  16878. #
  16879. if test x"$done" = xno; then
  16880. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lpthread fixes that" >&5
  16881. $as_echo_n "checking whether -lpthread fixes that... " >&6; }
  16882. LIBS="-lpthread $PTHREAD_LIBS $save_LIBS"
  16883. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16884. /* end confdefs.h. */
  16885. #include <pthread.h>
  16886. int
  16887. main ()
  16888. {
  16889. pthread_t th; pthread_join(th, 0);
  16890. pthread_attr_init(0); pthread_cleanup_push(0, 0);
  16891. pthread_create(0,0,0,0); pthread_cleanup_pop(0);
  16892. ;
  16893. return 0;
  16894. }
  16895. _ACEOF
  16896. if ac_fn_c_try_link "$LINENO"; then :
  16897. done=yes
  16898. fi
  16899. rm -f core conftest.err conftest.$ac_objext \
  16900. conftest$ac_exeext conftest.$ac_ext
  16901. if test "x$done" = xyes; then
  16902. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  16903. $as_echo "yes" >&6; }
  16904. PTHREAD_LIBS="-lpthread $PTHREAD_LIBS"
  16905. else
  16906. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16907. $as_echo "no" >&6; }
  16908. fi
  16909. fi
  16910. #
  16911. # FreeBSD 4.10 gcc forgets to use -lc_r instead of -lc
  16912. #
  16913. if test x"$done" = xno; then
  16914. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc_r fixes that" >&5
  16915. $as_echo_n "checking whether -lc_r fixes that... " >&6; }
  16916. LIBS="-lc_r $PTHREAD_LIBS $save_LIBS"
  16917. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16918. /* end confdefs.h. */
  16919. #include <pthread.h>
  16920. int
  16921. main ()
  16922. {
  16923. pthread_t th; pthread_join(th, 0);
  16924. pthread_attr_init(0); pthread_cleanup_push(0, 0);
  16925. pthread_create(0,0,0,0); pthread_cleanup_pop(0);
  16926. ;
  16927. return 0;
  16928. }
  16929. _ACEOF
  16930. if ac_fn_c_try_link "$LINENO"; then :
  16931. done=yes
  16932. fi
  16933. rm -f core conftest.err conftest.$ac_objext \
  16934. conftest$ac_exeext conftest.$ac_ext
  16935. if test "x$done" = xyes; then
  16936. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  16937. $as_echo "yes" >&6; }
  16938. PTHREAD_LIBS="-lc_r $PTHREAD_LIBS"
  16939. else
  16940. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16941. $as_echo "no" >&6; }
  16942. fi
  16943. fi
  16944. if test x"$done" = xno; then
  16945. # OK, we have run out of ideas
  16946. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Impossible to determine how to use pthreads with shared libraries" >&5
  16947. $as_echo "$as_me: WARNING: Impossible to determine how to use pthreads with shared libraries" >&2;}
  16948. # so it's not safe to assume that we may use pthreads
  16949. acx_pthread_ok=no
  16950. fi
  16951. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether what we have so far is sufficient with -nostdlib" >&5
  16952. $as_echo_n "checking whether what we have so far is sufficient with -nostdlib... " >&6; }
  16953. CFLAGS="-nostdlib $CFLAGS"
  16954. # we need c with nostdlib
  16955. LIBS="$LIBS -lc"
  16956. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16957. /* end confdefs.h. */
  16958. #include <pthread.h>
  16959. int
  16960. main ()
  16961. {
  16962. pthread_t th; pthread_join(th, 0);
  16963. pthread_attr_init(0); pthread_cleanup_push(0, 0);
  16964. pthread_create(0,0,0,0); pthread_cleanup_pop(0);
  16965. ;
  16966. return 0;
  16967. }
  16968. _ACEOF
  16969. if ac_fn_c_try_link "$LINENO"; then :
  16970. done=yes
  16971. else
  16972. done=no
  16973. fi
  16974. rm -f core conftest.err conftest.$ac_objext \
  16975. conftest$ac_exeext conftest.$ac_ext
  16976. if test "x$done" = xyes; then
  16977. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  16978. $as_echo "yes" >&6; }
  16979. else
  16980. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16981. $as_echo "no" >&6; }
  16982. fi
  16983. if test x"$done" = xno; then
  16984. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lpthread saves the day" >&5
  16985. $as_echo_n "checking whether -lpthread saves the day... " >&6; }
  16986. LIBS="-lpthread $LIBS"
  16987. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16988. /* end confdefs.h. */
  16989. #include <pthread.h>
  16990. int
  16991. main ()
  16992. {
  16993. pthread_t th; pthread_join(th, 0);
  16994. pthread_attr_init(0); pthread_cleanup_push(0, 0);
  16995. pthread_create(0,0,0,0); pthread_cleanup_pop(0);
  16996. ;
  16997. return 0;
  16998. }
  16999. _ACEOF
  17000. if ac_fn_c_try_link "$LINENO"; then :
  17001. done=yes
  17002. else
  17003. done=no
  17004. fi
  17005. rm -f core conftest.err conftest.$ac_objext \
  17006. conftest$ac_exeext conftest.$ac_ext
  17007. if test "x$done" = xyes; then
  17008. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  17009. $as_echo "yes" >&6; }
  17010. PTHREAD_LIBS="$PTHREAD_LIBS -lpthread"
  17011. else
  17012. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17013. $as_echo "no" >&6; }
  17014. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Impossible to determine how to use pthreads with shared libraries and -nostdlib" >&5
  17015. $as_echo "$as_me: WARNING: Impossible to determine how to use pthreads with shared libraries and -nostdlib" >&2;}
  17016. fi
  17017. fi
  17018. CFLAGS="$save_CFLAGS"
  17019. LIBS="$save_LIBS"
  17020. CC="$save_CC"
  17021. else
  17022. PTHREAD_CC="$CC"
  17023. fi
  17024. # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
  17025. if test x"$acx_pthread_ok" = xyes; then
  17026. $as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
  17027. :
  17028. else
  17029. acx_pthread_ok=no
  17030. fi
  17031. ac_ext=c
  17032. ac_cpp='$CPP $CPPFLAGS'
  17033. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  17034. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  17035. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  17036. ac_ext=cpp
  17037. ac_cpp='$CXXCPP $CPPFLAGS'
  17038. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  17039. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  17040. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  17041. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthread symbols are available in C++ without including pthread.h" >&5
  17042. $as_echo_n "checking whether pthread symbols are available in C++ without including pthread.h... " >&6; }
  17043. acx_pthread_despite_asking_for=no
  17044. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17045. /* end confdefs.h. */
  17046. #include <string>
  17047. #include <vector>
  17048. int
  17049. main ()
  17050. {
  17051. pthread_t th; pthread_join(th, 0);
  17052. ;
  17053. return 0;
  17054. }
  17055. _ACEOF
  17056. if ac_fn_cxx_try_link "$LINENO"; then :
  17057. acx_pthread_despite_asking_for=yes
  17058. $as_echo "#define HAVE_PTHREAD_DESPITE_ASKING_FOR 1" >>confdefs.h
  17059. $as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
  17060. fi
  17061. rm -f core conftest.err conftest.$ac_objext \
  17062. conftest$ac_exeext conftest.$ac_ext
  17063. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_despite_asking_for" >&5
  17064. $as_echo "$acx_pthread_despite_asking_for" >&6; }
  17065. ac_ext=c
  17066. ac_cpp='$CPP $CPPFLAGS'
  17067. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  17068. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  17069. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  17070. if test x"$acx_pthread_despite_asking_for" = xyes; then
  17071. HAVE_PTHREAD_DESPITE_ASKING_FOR_TRUE=
  17072. HAVE_PTHREAD_DESPITE_ASKING_FOR_FALSE='#'
  17073. else
  17074. HAVE_PTHREAD_DESPITE_ASKING_FOR_TRUE='#'
  17075. HAVE_PTHREAD_DESPITE_ASKING_FOR_FALSE=
  17076. fi
  17077. # Find out what namespace 'normal' STL code lives in
  17078. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler implements namespaces" >&5
  17079. $as_echo_n "checking whether the compiler implements namespaces... " >&6; }
  17080. if ${ac_cv_cxx_namespaces+:} false; then :
  17081. $as_echo_n "(cached) " >&6
  17082. else
  17083. ac_ext=cpp
  17084. ac_cpp='$CXXCPP $CPPFLAGS'
  17085. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  17086. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  17087. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  17088. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17089. /* end confdefs.h. */
  17090. namespace Outer {
  17091. namespace Inner { int i = 0; }}
  17092. int
  17093. main ()
  17094. {
  17095. using namespace Outer::Inner; return i;
  17096. ;
  17097. return 0;
  17098. }
  17099. _ACEOF
  17100. if ac_fn_cxx_try_compile "$LINENO"; then :
  17101. ac_cv_cxx_namespaces=yes
  17102. else
  17103. ac_cv_cxx_namespaces=no
  17104. fi
  17105. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17106. ac_ext=c
  17107. ac_cpp='$CPP $CPPFLAGS'
  17108. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  17109. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  17110. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  17111. fi
  17112. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_namespaces" >&5
  17113. $as_echo "$ac_cv_cxx_namespaces" >&6; }
  17114. if test "$ac_cv_cxx_namespaces" = yes; then
  17115. $as_echo "#define HAVE_NAMESPACES 1" >>confdefs.h
  17116. fi
  17117. { $as_echo "$as_me:${as_lineno-$LINENO}: checking what namespace STL code is in" >&5
  17118. $as_echo_n "checking what namespace STL code is in... " >&6; }
  17119. if ${ac_cv_cxx_stl_namespace+:} false; then :
  17120. $as_echo_n "(cached) " >&6
  17121. else
  17122. ac_ext=cpp
  17123. ac_cpp='$CXXCPP $CPPFLAGS'
  17124. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  17125. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  17126. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  17127. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17128. /* end confdefs.h. */
  17129. #include <vector>
  17130. int
  17131. main ()
  17132. {
  17133. vector<int> t; return 0;
  17134. ;
  17135. return 0;
  17136. }
  17137. _ACEOF
  17138. if ac_fn_cxx_try_compile "$LINENO"; then :
  17139. ac_cv_cxx_stl_namespace=none
  17140. fi
  17141. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17142. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17143. /* end confdefs.h. */
  17144. #include <vector>
  17145. int
  17146. main ()
  17147. {
  17148. std::vector<int> t; return 0;
  17149. ;
  17150. return 0;
  17151. }
  17152. _ACEOF
  17153. if ac_fn_cxx_try_compile "$LINENO"; then :
  17154. ac_cv_cxx_stl_namespace=std
  17155. fi
  17156. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17157. ac_ext=c
  17158. ac_cpp='$CPP $CPPFLAGS'
  17159. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  17160. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  17161. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  17162. fi
  17163. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_stl_namespace" >&5
  17164. $as_echo "$ac_cv_cxx_stl_namespace" >&6; }
  17165. if test "$ac_cv_cxx_stl_namespace" = none; then
  17166. $as_echo "#define STL_NAMESPACE /**/" >>confdefs.h
  17167. fi
  17168. if test "$ac_cv_cxx_stl_namespace" = std; then
  17169. $as_echo "#define STL_NAMESPACE std" >>confdefs.h
  17170. fi
  17171. # Figure out where libc has program_invocation_name
  17172. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for program_invocation_name" >&5
  17173. $as_echo_n "checking for program_invocation_name... " >&6; }
  17174. if ${ac_cv_have_program_invocation_name+:} false; then :
  17175. $as_echo_n "(cached) " >&6
  17176. else
  17177. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17178. /* end confdefs.h. */
  17179. extern char* program_invocation_name;
  17180. int
  17181. main ()
  17182. {
  17183. return *program_invocation_name;
  17184. ;
  17185. return 0;
  17186. }
  17187. _ACEOF
  17188. if ac_fn_c_try_link "$LINENO"; then :
  17189. ac_cv_have_program_invocation_name=yes
  17190. else
  17191. ac_cv_have_program_invocation_name=no
  17192. fi
  17193. rm -f core conftest.err conftest.$ac_objext \
  17194. conftest$ac_exeext conftest.$ac_ext
  17195. fi
  17196. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_program_invocation_name" >&5
  17197. $as_echo "$ac_cv_have_program_invocation_name" >&6; }
  17198. if test "$ac_cv_have_program_invocation_name" = "yes"; then
  17199. $as_echo "#define HAVE_PROGRAM_INVOCATION_NAME 1" >>confdefs.h
  17200. fi
  17201. # Make the install prefix available, to figure out where to look for pprof
  17202. ac_cv_install_prefix="$prefix";
  17203. if test x"$ac_cv_install_prefix" = x"NONE" ; then
  17204. ac_cv_install_prefix="$ac_default_prefix";
  17205. fi
  17206. cat >>confdefs.h <<_ACEOF
  17207. #define INSTALL_PREFIX "$ac_cv_install_prefix"
  17208. _ACEOF
  17209. case "$host" in
  17210. *-mingw*)
  17211. ac_fn_c_check_decl "$LINENO" "sleep" "ac_cv_have_decl_sleep" "#include <unistd.h>
  17212. "
  17213. if test "x$ac_cv_have_decl_sleep" = xyes; then :
  17214. ac_have_decl=1
  17215. else
  17216. ac_have_decl=0
  17217. fi
  17218. cat >>confdefs.h <<_ACEOF
  17219. #define HAVE_DECL_SLEEP $ac_have_decl
  17220. _ACEOF
  17221. ac_fn_c_check_decl "$LINENO" "nanosleep" "ac_cv_have_decl_nanosleep" "#include <time.h>
  17222. "
  17223. if test "x$ac_cv_have_decl_nanosleep" = xyes; then :
  17224. ac_have_decl=1
  17225. else
  17226. ac_have_decl=0
  17227. fi
  17228. cat >>confdefs.h <<_ACEOF
  17229. #define HAVE_DECL_NANOSLEEP $ac_have_decl
  17230. _ACEOF
  17231. ;;
  17232. esac
  17233. if test "x$enable_backtrace" = xyes; then
  17234. ac_fn_c_check_decl "$LINENO" "backtrace" "ac_cv_have_decl_backtrace" "#include <execinfo.h>
  17235. "
  17236. if test "x$ac_cv_have_decl_backtrace" = xyes; then :
  17237. ac_have_decl=1
  17238. else
  17239. ac_have_decl=0
  17240. fi
  17241. cat >>confdefs.h <<_ACEOF
  17242. #define HAVE_DECL_BACKTRACE $ac_have_decl
  17243. _ACEOF
  17244. save_LIBS=$LIBS
  17245. LIBS=$UNWIND_LIBS
  17246. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing backtrace" >&5
  17247. $as_echo_n "checking for library containing backtrace... " >&6; }
  17248. if ${ac_cv_search_backtrace+:} false; then :
  17249. $as_echo_n "(cached) " >&6
  17250. else
  17251. ac_func_search_save_LIBS=$LIBS
  17252. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17253. /* end confdefs.h. */
  17254. /* Override any GCC internal prototype to avoid an error.
  17255. Use char because int might match the return type of a GCC
  17256. builtin and then its argument prototype would still apply. */
  17257. #ifdef __cplusplus
  17258. extern "C"
  17259. #endif
  17260. char backtrace ();
  17261. int
  17262. main ()
  17263. {
  17264. return backtrace ();
  17265. ;
  17266. return 0;
  17267. }
  17268. _ACEOF
  17269. for ac_lib in '' execinfo; do
  17270. if test -z "$ac_lib"; then
  17271. ac_res="none required"
  17272. else
  17273. ac_res=-l$ac_lib
  17274. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  17275. fi
  17276. if ac_fn_c_try_link "$LINENO"; then :
  17277. ac_cv_search_backtrace=$ac_res
  17278. fi
  17279. rm -f core conftest.err conftest.$ac_objext \
  17280. conftest$ac_exeext
  17281. if ${ac_cv_search_backtrace+:} false; then :
  17282. break
  17283. fi
  17284. done
  17285. if ${ac_cv_search_backtrace+:} false; then :
  17286. else
  17287. ac_cv_search_backtrace=no
  17288. fi
  17289. rm conftest.$ac_ext
  17290. LIBS=$ac_func_search_save_LIBS
  17291. fi
  17292. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_backtrace" >&5
  17293. $as_echo "$ac_cv_search_backtrace" >&6; }
  17294. ac_res=$ac_cv_search_backtrace
  17295. if test "$ac_res" != no; then :
  17296. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  17297. fi
  17298. UNWIND_LIBS=$LIBS
  17299. LIBS=$save_LIBS
  17300. fi
  17301. # For windows, this has a non-trivial value (__declspec(export)), but any
  17302. # system that uses configure wants this to be the empty string.
  17303. $as_echo "#define PERFTOOLS_DLL_DECL /**/" >>confdefs.h
  17304. # In theory, config.h files shouldn't need a header guard, but we do,
  17305. # because we (maybe) #include windows/mingw.h from within config.h,
  17306. # and it #includes other .h files. These all have header guards, so
  17307. # the end result is if config.h is #included twice, its #undefs get
  17308. # evaluated twice, but all the ones in mingw.h/etc only get evaluated
  17309. # once, potentially causing trouble. c.f.
  17310. # http://code.google.com/p/gperftools/issues/detail?id=246
  17311. # MinGW uses autoconf, but also needs the windows shim routines
  17312. # (since it doesn't have its own support for, say, pthreads).
  17313. # This requires us to #include a special header file, and also to
  17314. # link in some windows versions of .o's instead of the unix versions.
  17315. #
  17316. # Also, manually mark systems where we have to be careful how early
  17317. # we run pthreads. TODO(csilvers): turn this into an autoconf check.
  17318. if expr $host : '.*-mingw' >/dev/null 2>&1; then
  17319. MINGW_TRUE=
  17320. MINGW_FALSE='#'
  17321. else
  17322. MINGW_TRUE='#'
  17323. MINGW_FALSE=
  17324. fi
  17325. if expr $host : '.*-apple-darwin.*' >/dev/null 2>&1; then
  17326. OSX_TRUE=
  17327. OSX_FALSE='#'
  17328. else
  17329. OSX_TRUE='#'
  17330. OSX_FALSE=
  17331. fi
  17332. # Export the --enable flags we set above. We do this at the end so
  17333. # other configure rules can enable or disable targets based on what
  17334. # they find.
  17335. if test "$enable_cpu_profiler" = yes; then
  17336. WITH_CPU_PROFILER_TRUE=
  17337. WITH_CPU_PROFILER_FALSE='#'
  17338. else
  17339. WITH_CPU_PROFILER_TRUE='#'
  17340. WITH_CPU_PROFILER_FALSE=
  17341. fi
  17342. if test "$enable_heap_profiler" = yes; then
  17343. WITH_HEAP_PROFILER_TRUE=
  17344. WITH_HEAP_PROFILER_FALSE='#'
  17345. else
  17346. WITH_HEAP_PROFILER_TRUE='#'
  17347. WITH_HEAP_PROFILER_FALSE=
  17348. fi
  17349. if test "$enable_heap_checker" = yes; then
  17350. WITH_HEAP_CHECKER_TRUE=
  17351. WITH_HEAP_CHECKER_FALSE='#'
  17352. else
  17353. WITH_HEAP_CHECKER_TRUE='#'
  17354. WITH_HEAP_CHECKER_FALSE=
  17355. fi
  17356. if test "$enable_debugalloc" = yes; then
  17357. WITH_DEBUGALLOC_TRUE=
  17358. WITH_DEBUGALLOC_FALSE='#'
  17359. else
  17360. WITH_DEBUGALLOC_TRUE='#'
  17361. WITH_DEBUGALLOC_FALSE=
  17362. fi
  17363. # We make tcmalloc.so if either heap-profiler or heap-checker is asked for.
  17364. if test "$enable_heap_profiler" = yes -o \
  17365. "$enable_heap_checker" = yes; then
  17366. WITH_HEAP_PROFILER_OR_CHECKER_TRUE=
  17367. WITH_HEAP_PROFILER_OR_CHECKER_FALSE='#'
  17368. else
  17369. WITH_HEAP_PROFILER_OR_CHECKER_TRUE='#'
  17370. WITH_HEAP_PROFILER_OR_CHECKER_FALSE=
  17371. fi
  17372. # If we don't use any profilers, we don't need stack traces (or pprof)
  17373. if test "$enable_cpu_profiler" = yes -o \
  17374. "$enable_heap_profiler" = yes -o \
  17375. "$enable_heap_checker" = yes; then
  17376. WITH_STACK_TRACE_TRUE=
  17377. WITH_STACK_TRACE_FALSE='#'
  17378. else
  17379. WITH_STACK_TRACE_TRUE='#'
  17380. WITH_STACK_TRACE_FALSE=
  17381. fi
  17382. have_linux_sigev_thread_id=no
  17383. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Linux SIGEV_THREAD_ID" >&5
  17384. $as_echo_n "checking for Linux SIGEV_THREAD_ID... " >&6; }
  17385. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17386. /* end confdefs.h. */
  17387. #include <signal.h>
  17388. #include <time.h>
  17389. int
  17390. main ()
  17391. {
  17392. return SIGEV_THREAD_ID || CLOCK_THREAD_CPUTIME_ID || __linux;
  17393. ;
  17394. return 0;
  17395. }
  17396. _ACEOF
  17397. if ac_fn_c_try_compile "$LINENO"; then :
  17398. $as_echo "#define HAVE_LINUX_SIGEV_THREAD_ID 1" >>confdefs.h
  17399. have_linux_sigev_thread_id=yes
  17400. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  17401. $as_echo "yes" >&6; }
  17402. else
  17403. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17404. $as_echo "no" >&6; }
  17405. fi
  17406. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17407. # Write generated configuration file
  17408. ac_config_files="$ac_config_files Makefile src/gperftools/tcmalloc.h src/windows/gperftools/tcmalloc.h"
  17409. cat >confcache <<\_ACEOF
  17410. # This file is a shell script that caches the results of configure
  17411. # tests run on this system so they can be shared between configure
  17412. # scripts and configure runs, see configure's option --config-cache.
  17413. # It is not useful on other systems. If it contains results you don't
  17414. # want to keep, you may remove or edit it.
  17415. #
  17416. # config.status only pays attention to the cache file if you give it
  17417. # the --recheck option to rerun configure.
  17418. #
  17419. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  17420. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  17421. # following values.
  17422. _ACEOF
  17423. # The following way of writing the cache mishandles newlines in values,
  17424. # but we know of no workaround that is simple, portable, and efficient.
  17425. # So, we kill variables containing newlines.
  17426. # Ultrix sh set writes to stderr and can't be redirected directly,
  17427. # and sets the high bit in the cache file unless we assign to the vars.
  17428. (
  17429. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  17430. eval ac_val=\$$ac_var
  17431. case $ac_val in #(
  17432. *${as_nl}*)
  17433. case $ac_var in #(
  17434. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  17435. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  17436. esac
  17437. case $ac_var in #(
  17438. _ | IFS | as_nl) ;; #(
  17439. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  17440. *) { eval $ac_var=; unset $ac_var;} ;;
  17441. esac ;;
  17442. esac
  17443. done
  17444. (set) 2>&1 |
  17445. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  17446. *${as_nl}ac_space=\ *)
  17447. # `set' does not quote correctly, so add quotes: double-quote
  17448. # substitution turns \\\\ into \\, and sed turns \\ into \.
  17449. sed -n \
  17450. "s/'/'\\\\''/g;
  17451. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  17452. ;; #(
  17453. *)
  17454. # `set' quotes correctly as required by POSIX, so do not add quotes.
  17455. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  17456. ;;
  17457. esac |
  17458. sort
  17459. ) |
  17460. sed '
  17461. /^ac_cv_env_/b end
  17462. t clear
  17463. :clear
  17464. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  17465. t end
  17466. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  17467. :end' >>confcache
  17468. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  17469. if test -w "$cache_file"; then
  17470. if test "x$cache_file" != "x/dev/null"; then
  17471. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  17472. $as_echo "$as_me: updating cache $cache_file" >&6;}
  17473. if test ! -f "$cache_file" || test -h "$cache_file"; then
  17474. cat confcache >"$cache_file"
  17475. else
  17476. case $cache_file in #(
  17477. */* | ?:*)
  17478. mv -f confcache "$cache_file"$$ &&
  17479. mv -f "$cache_file"$$ "$cache_file" ;; #(
  17480. *)
  17481. mv -f confcache "$cache_file" ;;
  17482. esac
  17483. fi
  17484. fi
  17485. else
  17486. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  17487. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  17488. fi
  17489. fi
  17490. rm -f confcache
  17491. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  17492. # Let make expand exec_prefix.
  17493. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  17494. DEFS=-DHAVE_CONFIG_H
  17495. ac_libobjs=
  17496. ac_ltlibobjs=
  17497. U=
  17498. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  17499. # 1. Remove the extension, and $U if already installed.
  17500. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  17501. ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  17502. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  17503. # will be set to the directory where LIBOBJS objects are built.
  17504. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  17505. as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  17506. done
  17507. LIBOBJS=$ac_libobjs
  17508. LTLIBOBJS=$ac_ltlibobjs
  17509. { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
  17510. $as_echo_n "checking that generated files are newer than configure... " >&6; }
  17511. if test -n "$am_sleep_pid"; then
  17512. # Hide warnings about reused PIDs.
  17513. wait $am_sleep_pid 2>/dev/null
  17514. fi
  17515. { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
  17516. $as_echo "done" >&6; }
  17517. if test -n "$EXEEXT"; then
  17518. am__EXEEXT_TRUE=
  17519. am__EXEEXT_FALSE='#'
  17520. else
  17521. am__EXEEXT_TRUE='#'
  17522. am__EXEEXT_FALSE=
  17523. fi
  17524. if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
  17525. as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
  17526. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  17527. fi
  17528. if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
  17529. as_fn_error $? "conditional \"AMDEP\" was never defined.
  17530. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  17531. fi
  17532. if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  17533. as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
  17534. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  17535. fi
  17536. if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
  17537. as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
  17538. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  17539. fi
  17540. if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  17541. as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
  17542. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  17543. fi
  17544. if test -z "${GCC_TRUE}" && test -z "${GCC_FALSE}"; then
  17545. as_fn_error $? "conditional \"GCC\" was never defined.
  17546. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  17547. fi
  17548. if test -z "${HAVE_OBJCOPY_WEAKEN_TRUE}" && test -z "${HAVE_OBJCOPY_WEAKEN_FALSE}"; then
  17549. as_fn_error $? "conditional \"HAVE_OBJCOPY_WEAKEN\" was never defined.
  17550. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  17551. fi
  17552. if test -z "${ENABLE_STATIC_TRUE}" && test -z "${ENABLE_STATIC_FALSE}"; then
  17553. as_fn_error $? "conditional \"ENABLE_STATIC\" was never defined.
  17554. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  17555. fi
  17556. if test -z "${ENABLE_FRAME_POINTERS_TRUE}" && test -z "${ENABLE_FRAME_POINTERS_FALSE}"; then
  17557. as_fn_error $? "conditional \"ENABLE_FRAME_POINTERS\" was never defined.
  17558. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  17559. fi
  17560. if test -z "${X86_64_AND_NO_FP_BY_DEFAULT_TRUE}" && test -z "${X86_64_AND_NO_FP_BY_DEFAULT_FALSE}"; then
  17561. as_fn_error $? "conditional \"X86_64_AND_NO_FP_BY_DEFAULT\" was never defined.
  17562. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  17563. fi
  17564. if test -z "${I386_TRUE}" && test -z "${I386_FALSE}"; then
  17565. as_fn_error $? "conditional \"I386\" was never defined.
  17566. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  17567. fi
  17568. if test -z "${HAVE_W_NO_UNUSED_RESULT_TRUE}" && test -z "${HAVE_W_NO_UNUSED_RESULT_FALSE}"; then
  17569. as_fn_error $? "conditional \"HAVE_W_NO_UNUSED_RESULT\" was never defined.
  17570. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  17571. fi
  17572. if test -z "${HAVE_SIZED_DEALLOCATION_TRUE}" && test -z "${HAVE_SIZED_DEALLOCATION_FALSE}"; then
  17573. as_fn_error $? "conditional \"HAVE_SIZED_DEALLOCATION\" was never defined.
  17574. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  17575. fi
  17576. if test -z "${HAVE_F_ALIGNED_NEW_TRUE}" && test -z "${HAVE_F_ALIGNED_NEW_FALSE}"; then
  17577. as_fn_error $? "conditional \"HAVE_F_ALIGNED_NEW\" was never defined.
  17578. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  17579. fi
  17580. if test -z "${BUILD_EMERGENCY_MALLOC_TRUE}" && test -z "${BUILD_EMERGENCY_MALLOC_FALSE}"; then
  17581. as_fn_error $? "conditional \"BUILD_EMERGENCY_MALLOC\" was never defined.
  17582. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  17583. fi
  17584. if test -z "${HAVE_PTHREAD_DESPITE_ASKING_FOR_TRUE}" && test -z "${HAVE_PTHREAD_DESPITE_ASKING_FOR_FALSE}"; then
  17585. as_fn_error $? "conditional \"HAVE_PTHREAD_DESPITE_ASKING_FOR\" was never defined.
  17586. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  17587. fi
  17588. if test -z "${MINGW_TRUE}" && test -z "${MINGW_FALSE}"; then
  17589. as_fn_error $? "conditional \"MINGW\" was never defined.
  17590. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  17591. fi
  17592. if test -z "${OSX_TRUE}" && test -z "${OSX_FALSE}"; then
  17593. as_fn_error $? "conditional \"OSX\" was never defined.
  17594. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  17595. fi
  17596. if test -z "${WITH_CPU_PROFILER_TRUE}" && test -z "${WITH_CPU_PROFILER_FALSE}"; then
  17597. as_fn_error $? "conditional \"WITH_CPU_PROFILER\" was never defined.
  17598. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  17599. fi
  17600. if test -z "${WITH_HEAP_PROFILER_TRUE}" && test -z "${WITH_HEAP_PROFILER_FALSE}"; then
  17601. as_fn_error $? "conditional \"WITH_HEAP_PROFILER\" was never defined.
  17602. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  17603. fi
  17604. if test -z "${WITH_HEAP_CHECKER_TRUE}" && test -z "${WITH_HEAP_CHECKER_FALSE}"; then
  17605. as_fn_error $? "conditional \"WITH_HEAP_CHECKER\" was never defined.
  17606. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  17607. fi
  17608. if test -z "${WITH_DEBUGALLOC_TRUE}" && test -z "${WITH_DEBUGALLOC_FALSE}"; then
  17609. as_fn_error $? "conditional \"WITH_DEBUGALLOC\" was never defined.
  17610. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  17611. fi
  17612. if test -z "${WITH_HEAP_PROFILER_OR_CHECKER_TRUE}" && test -z "${WITH_HEAP_PROFILER_OR_CHECKER_FALSE}"; then
  17613. as_fn_error $? "conditional \"WITH_HEAP_PROFILER_OR_CHECKER\" was never defined.
  17614. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  17615. fi
  17616. if test -z "${WITH_STACK_TRACE_TRUE}" && test -z "${WITH_STACK_TRACE_FALSE}"; then
  17617. as_fn_error $? "conditional \"WITH_STACK_TRACE\" was never defined.
  17618. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  17619. fi
  17620. : "${CONFIG_STATUS=./config.status}"
  17621. ac_write_fail=0
  17622. ac_clean_files_save=$ac_clean_files
  17623. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  17624. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  17625. $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  17626. as_write_fail=0
  17627. cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  17628. #! $SHELL
  17629. # Generated by $as_me.
  17630. # Run this file to recreate the current configuration.
  17631. # Compiler output produced by configure, useful for debugging
  17632. # configure, is in config.log if it exists.
  17633. debug=false
  17634. ac_cs_recheck=false
  17635. ac_cs_silent=false
  17636. SHELL=\${CONFIG_SHELL-$SHELL}
  17637. export SHELL
  17638. _ASEOF
  17639. cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  17640. ## -------------------- ##
  17641. ## M4sh Initialization. ##
  17642. ## -------------------- ##
  17643. # Be more Bourne compatible
  17644. DUALCASE=1; export DUALCASE # for MKS sh
  17645. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  17646. emulate sh
  17647. NULLCMD=:
  17648. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  17649. # is contrary to our usage. Disable this feature.
  17650. alias -g '${1+"$@"}'='"$@"'
  17651. setopt NO_GLOB_SUBST
  17652. else
  17653. case `(set -o) 2>/dev/null` in #(
  17654. *posix*) :
  17655. set -o posix ;; #(
  17656. *) :
  17657. ;;
  17658. esac
  17659. fi
  17660. as_nl='
  17661. '
  17662. export as_nl
  17663. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  17664. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  17665. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  17666. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  17667. # Prefer a ksh shell builtin over an external printf program on Solaris,
  17668. # but without wasting forks for bash or zsh.
  17669. if test -z "$BASH_VERSION$ZSH_VERSION" \
  17670. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  17671. as_echo='print -r --'
  17672. as_echo_n='print -rn --'
  17673. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  17674. as_echo='printf %s\n'
  17675. as_echo_n='printf %s'
  17676. else
  17677. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  17678. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  17679. as_echo_n='/usr/ucb/echo -n'
  17680. else
  17681. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  17682. as_echo_n_body='eval
  17683. arg=$1;
  17684. case $arg in #(
  17685. *"$as_nl"*)
  17686. expr "X$arg" : "X\\(.*\\)$as_nl";
  17687. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  17688. esac;
  17689. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  17690. '
  17691. export as_echo_n_body
  17692. as_echo_n='sh -c $as_echo_n_body as_echo'
  17693. fi
  17694. export as_echo_body
  17695. as_echo='sh -c $as_echo_body as_echo'
  17696. fi
  17697. # The user is always right.
  17698. if test "${PATH_SEPARATOR+set}" != set; then
  17699. PATH_SEPARATOR=:
  17700. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  17701. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  17702. PATH_SEPARATOR=';'
  17703. }
  17704. fi
  17705. # IFS
  17706. # We need space, tab and new line, in precisely that order. Quoting is
  17707. # there to prevent editors from complaining about space-tab.
  17708. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  17709. # splitting by setting IFS to empty value.)
  17710. IFS=" "" $as_nl"
  17711. # Find who we are. Look in the path if we contain no directory separator.
  17712. as_myself=
  17713. case $0 in #((
  17714. *[\\/]* ) as_myself=$0 ;;
  17715. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  17716. for as_dir in $PATH
  17717. do
  17718. IFS=$as_save_IFS
  17719. test -z "$as_dir" && as_dir=.
  17720. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  17721. done
  17722. IFS=$as_save_IFS
  17723. ;;
  17724. esac
  17725. # We did not find ourselves, most probably we were run as `sh COMMAND'
  17726. # in which case we are not to be found in the path.
  17727. if test "x$as_myself" = x; then
  17728. as_myself=$0
  17729. fi
  17730. if test ! -f "$as_myself"; then
  17731. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  17732. exit 1
  17733. fi
  17734. # Unset variables that we do not need and which cause bugs (e.g. in
  17735. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  17736. # suppresses any "Segmentation fault" message there. '((' could
  17737. # trigger a bug in pdksh 5.2.14.
  17738. for as_var in BASH_ENV ENV MAIL MAILPATH
  17739. do eval test x\${$as_var+set} = xset \
  17740. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  17741. done
  17742. PS1='$ '
  17743. PS2='> '
  17744. PS4='+ '
  17745. # NLS nuisances.
  17746. LC_ALL=C
  17747. export LC_ALL
  17748. LANGUAGE=C
  17749. export LANGUAGE
  17750. # CDPATH.
  17751. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  17752. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  17753. # ----------------------------------------
  17754. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  17755. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  17756. # script with STATUS, using 1 if that was 0.
  17757. as_fn_error ()
  17758. {
  17759. as_status=$1; test $as_status -eq 0 && as_status=1
  17760. if test "$4"; then
  17761. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  17762. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  17763. fi
  17764. $as_echo "$as_me: error: $2" >&2
  17765. as_fn_exit $as_status
  17766. } # as_fn_error
  17767. # as_fn_set_status STATUS
  17768. # -----------------------
  17769. # Set $? to STATUS, without forking.
  17770. as_fn_set_status ()
  17771. {
  17772. return $1
  17773. } # as_fn_set_status
  17774. # as_fn_exit STATUS
  17775. # -----------------
  17776. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  17777. as_fn_exit ()
  17778. {
  17779. set +e
  17780. as_fn_set_status $1
  17781. exit $1
  17782. } # as_fn_exit
  17783. # as_fn_unset VAR
  17784. # ---------------
  17785. # Portably unset VAR.
  17786. as_fn_unset ()
  17787. {
  17788. { eval $1=; unset $1;}
  17789. }
  17790. as_unset=as_fn_unset
  17791. # as_fn_append VAR VALUE
  17792. # ----------------------
  17793. # Append the text in VALUE to the end of the definition contained in VAR. Take
  17794. # advantage of any shell optimizations that allow amortized linear growth over
  17795. # repeated appends, instead of the typical quadratic growth present in naive
  17796. # implementations.
  17797. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  17798. eval 'as_fn_append ()
  17799. {
  17800. eval $1+=\$2
  17801. }'
  17802. else
  17803. as_fn_append ()
  17804. {
  17805. eval $1=\$$1\$2
  17806. }
  17807. fi # as_fn_append
  17808. # as_fn_arith ARG...
  17809. # ------------------
  17810. # Perform arithmetic evaluation on the ARGs, and store the result in the
  17811. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  17812. # must be portable across $(()) and expr.
  17813. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  17814. eval 'as_fn_arith ()
  17815. {
  17816. as_val=$(( $* ))
  17817. }'
  17818. else
  17819. as_fn_arith ()
  17820. {
  17821. as_val=`expr "$@" || test $? -eq 1`
  17822. }
  17823. fi # as_fn_arith
  17824. if expr a : '\(a\)' >/dev/null 2>&1 &&
  17825. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  17826. as_expr=expr
  17827. else
  17828. as_expr=false
  17829. fi
  17830. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  17831. as_basename=basename
  17832. else
  17833. as_basename=false
  17834. fi
  17835. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  17836. as_dirname=dirname
  17837. else
  17838. as_dirname=false
  17839. fi
  17840. as_me=`$as_basename -- "$0" ||
  17841. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  17842. X"$0" : 'X\(//\)$' \| \
  17843. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  17844. $as_echo X/"$0" |
  17845. sed '/^.*\/\([^/][^/]*\)\/*$/{
  17846. s//\1/
  17847. q
  17848. }
  17849. /^X\/\(\/\/\)$/{
  17850. s//\1/
  17851. q
  17852. }
  17853. /^X\/\(\/\).*/{
  17854. s//\1/
  17855. q
  17856. }
  17857. s/.*/./; q'`
  17858. # Avoid depending upon Character Ranges.
  17859. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  17860. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  17861. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  17862. as_cr_digits='0123456789'
  17863. as_cr_alnum=$as_cr_Letters$as_cr_digits
  17864. ECHO_C= ECHO_N= ECHO_T=
  17865. case `echo -n x` in #(((((
  17866. -n*)
  17867. case `echo 'xy\c'` in
  17868. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  17869. xy) ECHO_C='\c';;
  17870. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  17871. ECHO_T=' ';;
  17872. esac;;
  17873. *)
  17874. ECHO_N='-n';;
  17875. esac
  17876. rm -f conf$$ conf$$.exe conf$$.file
  17877. if test -d conf$$.dir; then
  17878. rm -f conf$$.dir/conf$$.file
  17879. else
  17880. rm -f conf$$.dir
  17881. mkdir conf$$.dir 2>/dev/null
  17882. fi
  17883. if (echo >conf$$.file) 2>/dev/null; then
  17884. if ln -s conf$$.file conf$$ 2>/dev/null; then
  17885. as_ln_s='ln -s'
  17886. # ... but there are two gotchas:
  17887. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  17888. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  17889. # In both cases, we have to default to `cp -pR'.
  17890. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  17891. as_ln_s='cp -pR'
  17892. elif ln conf$$.file conf$$ 2>/dev/null; then
  17893. as_ln_s=ln
  17894. else
  17895. as_ln_s='cp -pR'
  17896. fi
  17897. else
  17898. as_ln_s='cp -pR'
  17899. fi
  17900. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  17901. rmdir conf$$.dir 2>/dev/null
  17902. # as_fn_mkdir_p
  17903. # -------------
  17904. # Create "$as_dir" as a directory, including parents if necessary.
  17905. as_fn_mkdir_p ()
  17906. {
  17907. case $as_dir in #(
  17908. -*) as_dir=./$as_dir;;
  17909. esac
  17910. test -d "$as_dir" || eval $as_mkdir_p || {
  17911. as_dirs=
  17912. while :; do
  17913. case $as_dir in #(
  17914. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  17915. *) as_qdir=$as_dir;;
  17916. esac
  17917. as_dirs="'$as_qdir' $as_dirs"
  17918. as_dir=`$as_dirname -- "$as_dir" ||
  17919. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  17920. X"$as_dir" : 'X\(//\)[^/]' \| \
  17921. X"$as_dir" : 'X\(//\)$' \| \
  17922. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  17923. $as_echo X"$as_dir" |
  17924. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  17925. s//\1/
  17926. q
  17927. }
  17928. /^X\(\/\/\)[^/].*/{
  17929. s//\1/
  17930. q
  17931. }
  17932. /^X\(\/\/\)$/{
  17933. s//\1/
  17934. q
  17935. }
  17936. /^X\(\/\).*/{
  17937. s//\1/
  17938. q
  17939. }
  17940. s/.*/./; q'`
  17941. test -d "$as_dir" && break
  17942. done
  17943. test -z "$as_dirs" || eval "mkdir $as_dirs"
  17944. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  17945. } # as_fn_mkdir_p
  17946. if mkdir -p . 2>/dev/null; then
  17947. as_mkdir_p='mkdir -p "$as_dir"'
  17948. else
  17949. test -d ./-p && rmdir ./-p
  17950. as_mkdir_p=false
  17951. fi
  17952. # as_fn_executable_p FILE
  17953. # -----------------------
  17954. # Test if FILE is an executable regular file.
  17955. as_fn_executable_p ()
  17956. {
  17957. test -f "$1" && test -x "$1"
  17958. } # as_fn_executable_p
  17959. as_test_x='test -x'
  17960. as_executable_p=as_fn_executable_p
  17961. # Sed expression to map a string onto a valid CPP name.
  17962. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  17963. # Sed expression to map a string onto a valid variable name.
  17964. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  17965. exec 6>&1
  17966. ## ----------------------------------- ##
  17967. ## Main body of $CONFIG_STATUS script. ##
  17968. ## ----------------------------------- ##
  17969. _ASEOF
  17970. test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  17971. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  17972. # Save the log message, to keep $0 and so on meaningful, and to
  17973. # report actual input values of CONFIG_FILES etc. instead of their
  17974. # values after options handling.
  17975. ac_log="
  17976. This file was extended by gperftools $as_me 2.7, which was
  17977. generated by GNU Autoconf 2.69. Invocation command line was
  17978. CONFIG_FILES = $CONFIG_FILES
  17979. CONFIG_HEADERS = $CONFIG_HEADERS
  17980. CONFIG_LINKS = $CONFIG_LINKS
  17981. CONFIG_COMMANDS = $CONFIG_COMMANDS
  17982. $ $0 $@
  17983. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  17984. "
  17985. _ACEOF
  17986. case $ac_config_files in *"
  17987. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  17988. esac
  17989. case $ac_config_headers in *"
  17990. "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
  17991. esac
  17992. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  17993. # Files that config.status was made for.
  17994. config_files="$ac_config_files"
  17995. config_headers="$ac_config_headers"
  17996. config_commands="$ac_config_commands"
  17997. _ACEOF
  17998. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  17999. ac_cs_usage="\
  18000. \`$as_me' instantiates files and other configuration actions
  18001. from templates according to the current configuration. Unless the files
  18002. and actions are specified as TAGs, all are instantiated by default.
  18003. Usage: $0 [OPTION]... [TAG]...
  18004. -h, --help print this help, then exit
  18005. -V, --version print version number and configuration settings, then exit
  18006. --config print configuration, then exit
  18007. -q, --quiet, --silent
  18008. do not print progress messages
  18009. -d, --debug don't remove temporary files
  18010. --recheck update $as_me by reconfiguring in the same conditions
  18011. --file=FILE[:TEMPLATE]
  18012. instantiate the configuration file FILE
  18013. --header=FILE[:TEMPLATE]
  18014. instantiate the configuration header FILE
  18015. Configuration files:
  18016. $config_files
  18017. Configuration headers:
  18018. $config_headers
  18019. Configuration commands:
  18020. $config_commands
  18021. Report bugs to <gperftools@googlegroups.com>."
  18022. _ACEOF
  18023. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  18024. ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
  18025. ac_cs_version="\\
  18026. gperftools config.status 2.7
  18027. configured by $0, generated by GNU Autoconf 2.69,
  18028. with options \\"\$ac_cs_config\\"
  18029. Copyright (C) 2012 Free Software Foundation, Inc.
  18030. This config.status script is free software; the Free Software Foundation
  18031. gives unlimited permission to copy, distribute and modify it."
  18032. ac_pwd='$ac_pwd'
  18033. srcdir='$srcdir'
  18034. INSTALL='$INSTALL'
  18035. MKDIR_P='$MKDIR_P'
  18036. AWK='$AWK'
  18037. test -n "\$AWK" || AWK=awk
  18038. _ACEOF
  18039. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  18040. # The default lists apply if the user does not specify any file.
  18041. ac_need_defaults=:
  18042. while test $# != 0
  18043. do
  18044. case $1 in
  18045. --*=?*)
  18046. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  18047. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  18048. ac_shift=:
  18049. ;;
  18050. --*=)
  18051. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  18052. ac_optarg=
  18053. ac_shift=:
  18054. ;;
  18055. *)
  18056. ac_option=$1
  18057. ac_optarg=$2
  18058. ac_shift=shift
  18059. ;;
  18060. esac
  18061. case $ac_option in
  18062. # Handling of the options.
  18063. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  18064. ac_cs_recheck=: ;;
  18065. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  18066. $as_echo "$ac_cs_version"; exit ;;
  18067. --config | --confi | --conf | --con | --co | --c )
  18068. $as_echo "$ac_cs_config"; exit ;;
  18069. --debug | --debu | --deb | --de | --d | -d )
  18070. debug=: ;;
  18071. --file | --fil | --fi | --f )
  18072. $ac_shift
  18073. case $ac_optarg in
  18074. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  18075. '') as_fn_error $? "missing file argument" ;;
  18076. esac
  18077. as_fn_append CONFIG_FILES " '$ac_optarg'"
  18078. ac_need_defaults=false;;
  18079. --header | --heade | --head | --hea )
  18080. $ac_shift
  18081. case $ac_optarg in
  18082. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  18083. esac
  18084. as_fn_append CONFIG_HEADERS " '$ac_optarg'"
  18085. ac_need_defaults=false;;
  18086. --he | --h)
  18087. # Conflict between --help and --header
  18088. as_fn_error $? "ambiguous option: \`$1'
  18089. Try \`$0 --help' for more information.";;
  18090. --help | --hel | -h )
  18091. $as_echo "$ac_cs_usage"; exit ;;
  18092. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  18093. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  18094. ac_cs_silent=: ;;
  18095. # This is an error.
  18096. -*) as_fn_error $? "unrecognized option: \`$1'
  18097. Try \`$0 --help' for more information." ;;
  18098. *) as_fn_append ac_config_targets " $1"
  18099. ac_need_defaults=false ;;
  18100. esac
  18101. shift
  18102. done
  18103. ac_configure_extra_args=
  18104. if $ac_cs_silent; then
  18105. exec 6>/dev/null
  18106. ac_configure_extra_args="$ac_configure_extra_args --silent"
  18107. fi
  18108. _ACEOF
  18109. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  18110. if \$ac_cs_recheck; then
  18111. set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  18112. shift
  18113. \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  18114. CONFIG_SHELL='$SHELL'
  18115. export CONFIG_SHELL
  18116. exec "\$@"
  18117. fi
  18118. _ACEOF
  18119. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  18120. exec 5>>config.log
  18121. {
  18122. echo
  18123. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  18124. ## Running $as_me. ##
  18125. _ASBOX
  18126. $as_echo "$ac_log"
  18127. } >&5
  18128. _ACEOF
  18129. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  18130. #
  18131. # INIT-COMMANDS
  18132. #
  18133. AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
  18134. # The HP-UX ksh and POSIX shell print the target directory to stdout
  18135. # if CDPATH is set.
  18136. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  18137. sed_quote_subst='$sed_quote_subst'
  18138. double_quote_subst='$double_quote_subst'
  18139. delay_variable_subst='$delay_variable_subst'
  18140. macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
  18141. macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
  18142. enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
  18143. enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
  18144. pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
  18145. enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
  18146. shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
  18147. SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
  18148. ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
  18149. PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
  18150. host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
  18151. host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
  18152. host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
  18153. build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
  18154. build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
  18155. build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
  18156. SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
  18157. Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
  18158. GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
  18159. EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
  18160. FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
  18161. LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
  18162. NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
  18163. LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
  18164. max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
  18165. ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
  18166. exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
  18167. lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
  18168. lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
  18169. lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
  18170. lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
  18171. lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
  18172. reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
  18173. reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
  18174. OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
  18175. deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
  18176. file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
  18177. file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
  18178. want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
  18179. DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
  18180. sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
  18181. AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
  18182. AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
  18183. archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
  18184. STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
  18185. RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
  18186. old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  18187. old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  18188. old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
  18189. lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
  18190. CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
  18191. CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
  18192. compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
  18193. GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
  18194. lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
  18195. lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
  18196. lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
  18197. lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
  18198. 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"`'
  18199. lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
  18200. nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
  18201. lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
  18202. lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
  18203. objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
  18204. MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
  18205. lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
  18206. lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
  18207. lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
  18208. lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
  18209. lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
  18210. need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
  18211. MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
  18212. DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
  18213. NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
  18214. LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
  18215. OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
  18216. OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
  18217. libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
  18218. shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
  18219. extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  18220. archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
  18221. enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
  18222. export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
  18223. whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
  18224. compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
  18225. old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
  18226. old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  18227. archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
  18228. archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  18229. module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
  18230. module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  18231. with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
  18232. allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
  18233. no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
  18234. hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
  18235. hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
  18236. hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
  18237. hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
  18238. hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
  18239. hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
  18240. hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
  18241. inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
  18242. link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
  18243. always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
  18244. export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
  18245. exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
  18246. include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
  18247. prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
  18248. postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
  18249. file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
  18250. variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
  18251. need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
  18252. need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
  18253. version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
  18254. runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
  18255. shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
  18256. shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
  18257. libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
  18258. library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
  18259. soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
  18260. install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
  18261. postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  18262. postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  18263. finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
  18264. finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
  18265. hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
  18266. sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
  18267. configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
  18268. configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
  18269. hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
  18270. enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
  18271. enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
  18272. enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
  18273. old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
  18274. striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
  18275. compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
  18276. predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
  18277. postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
  18278. predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
  18279. postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
  18280. compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
  18281. LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
  18282. reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
  18283. reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  18284. old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  18285. compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
  18286. GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
  18287. lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
  18288. lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
  18289. lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
  18290. lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
  18291. lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
  18292. archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
  18293. enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
  18294. export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  18295. whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  18296. compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
  18297. old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  18298. old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  18299. archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  18300. archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  18301. module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  18302. module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  18303. with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
  18304. allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
  18305. no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
  18306. hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  18307. hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
  18308. hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
  18309. hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
  18310. hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
  18311. hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
  18312. hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
  18313. inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
  18314. link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
  18315. always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
  18316. export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  18317. exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
  18318. include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
  18319. prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  18320. postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  18321. file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
  18322. hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
  18323. compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
  18324. predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
  18325. postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
  18326. predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
  18327. postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
  18328. compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
  18329. LTCC='$LTCC'
  18330. LTCFLAGS='$LTCFLAGS'
  18331. compiler='$compiler_DEFAULT'
  18332. # A function that is used when there is no print builtin or printf.
  18333. func_fallback_echo ()
  18334. {
  18335. eval 'cat <<_LTECHO_EOF
  18336. \$1
  18337. _LTECHO_EOF'
  18338. }
  18339. # Quote evaled strings.
  18340. for var in SHELL \
  18341. ECHO \
  18342. PATH_SEPARATOR \
  18343. SED \
  18344. GREP \
  18345. EGREP \
  18346. FGREP \
  18347. LD \
  18348. NM \
  18349. LN_S \
  18350. lt_SP2NL \
  18351. lt_NL2SP \
  18352. reload_flag \
  18353. OBJDUMP \
  18354. deplibs_check_method \
  18355. file_magic_cmd \
  18356. file_magic_glob \
  18357. want_nocaseglob \
  18358. DLLTOOL \
  18359. sharedlib_from_linklib_cmd \
  18360. AR \
  18361. AR_FLAGS \
  18362. archiver_list_spec \
  18363. STRIP \
  18364. RANLIB \
  18365. CC \
  18366. CFLAGS \
  18367. compiler \
  18368. lt_cv_sys_global_symbol_pipe \
  18369. lt_cv_sys_global_symbol_to_cdecl \
  18370. lt_cv_sys_global_symbol_to_import \
  18371. lt_cv_sys_global_symbol_to_c_name_address \
  18372. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
  18373. lt_cv_nm_interface \
  18374. nm_file_list_spec \
  18375. lt_cv_truncate_bin \
  18376. lt_prog_compiler_no_builtin_flag \
  18377. lt_prog_compiler_pic \
  18378. lt_prog_compiler_wl \
  18379. lt_prog_compiler_static \
  18380. lt_cv_prog_compiler_c_o \
  18381. need_locks \
  18382. MANIFEST_TOOL \
  18383. DSYMUTIL \
  18384. NMEDIT \
  18385. LIPO \
  18386. OTOOL \
  18387. OTOOL64 \
  18388. shrext_cmds \
  18389. export_dynamic_flag_spec \
  18390. whole_archive_flag_spec \
  18391. compiler_needs_object \
  18392. with_gnu_ld \
  18393. allow_undefined_flag \
  18394. no_undefined_flag \
  18395. hardcode_libdir_flag_spec \
  18396. hardcode_libdir_separator \
  18397. exclude_expsyms \
  18398. include_expsyms \
  18399. file_list_spec \
  18400. variables_saved_for_relink \
  18401. libname_spec \
  18402. library_names_spec \
  18403. soname_spec \
  18404. install_override_mode \
  18405. finish_eval \
  18406. old_striplib \
  18407. striplib \
  18408. compiler_lib_search_dirs \
  18409. predep_objects \
  18410. postdep_objects \
  18411. predeps \
  18412. postdeps \
  18413. compiler_lib_search_path \
  18414. LD_CXX \
  18415. reload_flag_CXX \
  18416. compiler_CXX \
  18417. lt_prog_compiler_no_builtin_flag_CXX \
  18418. lt_prog_compiler_pic_CXX \
  18419. lt_prog_compiler_wl_CXX \
  18420. lt_prog_compiler_static_CXX \
  18421. lt_cv_prog_compiler_c_o_CXX \
  18422. export_dynamic_flag_spec_CXX \
  18423. whole_archive_flag_spec_CXX \
  18424. compiler_needs_object_CXX \
  18425. with_gnu_ld_CXX \
  18426. allow_undefined_flag_CXX \
  18427. no_undefined_flag_CXX \
  18428. hardcode_libdir_flag_spec_CXX \
  18429. hardcode_libdir_separator_CXX \
  18430. exclude_expsyms_CXX \
  18431. include_expsyms_CXX \
  18432. file_list_spec_CXX \
  18433. compiler_lib_search_dirs_CXX \
  18434. predep_objects_CXX \
  18435. postdep_objects_CXX \
  18436. predeps_CXX \
  18437. postdeps_CXX \
  18438. compiler_lib_search_path_CXX; do
  18439. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  18440. *[\\\\\\\`\\"\\\$]*)
  18441. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
  18442. ;;
  18443. *)
  18444. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  18445. ;;
  18446. esac
  18447. done
  18448. # Double-quote double-evaled strings.
  18449. for var in reload_cmds \
  18450. old_postinstall_cmds \
  18451. old_postuninstall_cmds \
  18452. old_archive_cmds \
  18453. extract_expsyms_cmds \
  18454. old_archive_from_new_cmds \
  18455. old_archive_from_expsyms_cmds \
  18456. archive_cmds \
  18457. archive_expsym_cmds \
  18458. module_cmds \
  18459. module_expsym_cmds \
  18460. export_symbols_cmds \
  18461. prelink_cmds \
  18462. postlink_cmds \
  18463. postinstall_cmds \
  18464. postuninstall_cmds \
  18465. finish_cmds \
  18466. sys_lib_search_path_spec \
  18467. configure_time_dlsearch_path \
  18468. configure_time_lt_sys_library_path \
  18469. reload_cmds_CXX \
  18470. old_archive_cmds_CXX \
  18471. old_archive_from_new_cmds_CXX \
  18472. old_archive_from_expsyms_cmds_CXX \
  18473. archive_cmds_CXX \
  18474. archive_expsym_cmds_CXX \
  18475. module_cmds_CXX \
  18476. module_expsym_cmds_CXX \
  18477. export_symbols_cmds_CXX \
  18478. prelink_cmds_CXX \
  18479. postlink_cmds_CXX; do
  18480. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  18481. *[\\\\\\\`\\"\\\$]*)
  18482. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
  18483. ;;
  18484. *)
  18485. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  18486. ;;
  18487. esac
  18488. done
  18489. ac_aux_dir='$ac_aux_dir'
  18490. # See if we are running on zsh, and set the options that allow our
  18491. # commands through without removal of \ escapes INIT.
  18492. if test -n "\${ZSH_VERSION+set}"; then
  18493. setopt NO_GLOB_SUBST
  18494. fi
  18495. PACKAGE='$PACKAGE'
  18496. VERSION='$VERSION'
  18497. RM='$RM'
  18498. ofile='$ofile'
  18499. _ACEOF
  18500. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  18501. # Handling of arguments.
  18502. for ac_config_target in $ac_config_targets
  18503. do
  18504. case $ac_config_target in
  18505. "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h" ;;
  18506. "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
  18507. "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
  18508. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  18509. "src/gperftools/tcmalloc.h") CONFIG_FILES="$CONFIG_FILES src/gperftools/tcmalloc.h" ;;
  18510. "src/windows/gperftools/tcmalloc.h") CONFIG_FILES="$CONFIG_FILES src/windows/gperftools/tcmalloc.h" ;;
  18511. *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  18512. esac
  18513. done
  18514. # If the user did not use the arguments to specify the items to instantiate,
  18515. # then the envvar interface is used. Set only those that are not.
  18516. # We use the long form for the default assignment because of an extremely
  18517. # bizarre bug on SunOS 4.1.3.
  18518. if $ac_need_defaults; then
  18519. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  18520. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  18521. test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  18522. fi
  18523. # Have a temporary directory for convenience. Make it in the build tree
  18524. # simply because there is no reason against having it here, and in addition,
  18525. # creating and moving files from /tmp can sometimes cause problems.
  18526. # Hook for its removal unless debugging.
  18527. # Note that there is a small window in which the directory will not be cleaned:
  18528. # after its creation but before its name has been assigned to `$tmp'.
  18529. $debug ||
  18530. {
  18531. tmp= ac_tmp=
  18532. trap 'exit_status=$?
  18533. : "${ac_tmp:=$tmp}"
  18534. { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
  18535. ' 0
  18536. trap 'as_fn_exit 1' 1 2 13 15
  18537. }
  18538. # Create a (secure) tmp directory for tmp files.
  18539. {
  18540. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  18541. test -d "$tmp"
  18542. } ||
  18543. {
  18544. tmp=./conf$$-$RANDOM
  18545. (umask 077 && mkdir "$tmp")
  18546. } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
  18547. ac_tmp=$tmp
  18548. # Set up the scripts for CONFIG_FILES section.
  18549. # No need to generate them if there are no CONFIG_FILES.
  18550. # This happens for instance with `./config.status config.h'.
  18551. if test -n "$CONFIG_FILES"; then
  18552. ac_cr=`echo X | tr X '\015'`
  18553. # On cygwin, bash can eat \r inside `` if the user requested igncr.
  18554. # But we know of no other shell where ac_cr would be empty at this
  18555. # point, so we can use a bashism as a fallback.
  18556. if test "x$ac_cr" = x; then
  18557. eval ac_cr=\$\'\\r\'
  18558. fi
  18559. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  18560. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  18561. ac_cs_awk_cr='\\r'
  18562. else
  18563. ac_cs_awk_cr=$ac_cr
  18564. fi
  18565. echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
  18566. _ACEOF
  18567. {
  18568. echo "cat >conf$$subs.awk <<_ACEOF" &&
  18569. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  18570. echo "_ACEOF"
  18571. } >conf$$subs.sh ||
  18572. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  18573. ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
  18574. ac_delim='%!_!# '
  18575. for ac_last_try in false false false false false :; do
  18576. . ./conf$$subs.sh ||
  18577. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  18578. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  18579. if test $ac_delim_n = $ac_delim_num; then
  18580. break
  18581. elif $ac_last_try; then
  18582. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  18583. else
  18584. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  18585. fi
  18586. done
  18587. rm -f conf$$subs.sh
  18588. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  18589. cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
  18590. _ACEOF
  18591. sed -n '
  18592. h
  18593. s/^/S["/; s/!.*/"]=/
  18594. p
  18595. g
  18596. s/^[^!]*!//
  18597. :repl
  18598. t repl
  18599. s/'"$ac_delim"'$//
  18600. t delim
  18601. :nl
  18602. h
  18603. s/\(.\{148\}\)..*/\1/
  18604. t more1
  18605. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  18606. p
  18607. n
  18608. b repl
  18609. :more1
  18610. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  18611. p
  18612. g
  18613. s/.\{148\}//
  18614. t nl
  18615. :delim
  18616. h
  18617. s/\(.\{148\}\)..*/\1/
  18618. t more2
  18619. s/["\\]/\\&/g; s/^/"/; s/$/"/
  18620. p
  18621. b
  18622. :more2
  18623. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  18624. p
  18625. g
  18626. s/.\{148\}//
  18627. t delim
  18628. ' <conf$$subs.awk | sed '
  18629. /^[^""]/{
  18630. N
  18631. s/\n//
  18632. }
  18633. ' >>$CONFIG_STATUS || ac_write_fail=1
  18634. rm -f conf$$subs.awk
  18635. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  18636. _ACAWK
  18637. cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
  18638. for (key in S) S_is_set[key] = 1
  18639. FS = ""
  18640. }
  18641. {
  18642. line = $ 0
  18643. nfields = split(line, field, "@")
  18644. substed = 0
  18645. len = length(field[1])
  18646. for (i = 2; i < nfields; i++) {
  18647. key = field[i]
  18648. keylen = length(key)
  18649. if (S_is_set[key]) {
  18650. value = S[key]
  18651. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  18652. len += length(value) + length(field[++i])
  18653. substed = 1
  18654. } else
  18655. len += 1 + keylen
  18656. }
  18657. print line
  18658. }
  18659. _ACAWK
  18660. _ACEOF
  18661. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  18662. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  18663. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  18664. else
  18665. cat
  18666. fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
  18667. || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
  18668. _ACEOF
  18669. # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
  18670. # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
  18671. # trailing colons and then remove the whole line if VPATH becomes empty
  18672. # (actually we leave an empty line to preserve line numbers).
  18673. if test "x$srcdir" = x.; then
  18674. ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
  18675. h
  18676. s///
  18677. s/^/:/
  18678. s/[ ]*$/:/
  18679. s/:\$(srcdir):/:/g
  18680. s/:\${srcdir}:/:/g
  18681. s/:@srcdir@:/:/g
  18682. s/^:*//
  18683. s/:*$//
  18684. x
  18685. s/\(=[ ]*\).*/\1/
  18686. G
  18687. s/\n//
  18688. s/^[^=]*=[ ]*$//
  18689. }'
  18690. fi
  18691. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  18692. fi # test -n "$CONFIG_FILES"
  18693. # Set up the scripts for CONFIG_HEADERS section.
  18694. # No need to generate them if there are no CONFIG_HEADERS.
  18695. # This happens for instance with `./config.status Makefile'.
  18696. if test -n "$CONFIG_HEADERS"; then
  18697. cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
  18698. BEGIN {
  18699. _ACEOF
  18700. # Transform confdefs.h into an awk script `defines.awk', embedded as
  18701. # here-document in config.status, that substitutes the proper values into
  18702. # config.h.in to produce config.h.
  18703. # Create a delimiter string that does not exist in confdefs.h, to ease
  18704. # handling of long lines.
  18705. ac_delim='%!_!# '
  18706. for ac_last_try in false false :; do
  18707. ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
  18708. if test -z "$ac_tt"; then
  18709. break
  18710. elif $ac_last_try; then
  18711. as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
  18712. else
  18713. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  18714. fi
  18715. done
  18716. # For the awk script, D is an array of macro values keyed by name,
  18717. # likewise P contains macro parameters if any. Preserve backslash
  18718. # newline sequences.
  18719. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  18720. sed -n '
  18721. s/.\{148\}/&'"$ac_delim"'/g
  18722. t rset
  18723. :rset
  18724. s/^[ ]*#[ ]*define[ ][ ]*/ /
  18725. t def
  18726. d
  18727. :def
  18728. s/\\$//
  18729. t bsnl
  18730. s/["\\]/\\&/g
  18731. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  18732. D["\1"]=" \3"/p
  18733. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
  18734. d
  18735. :bsnl
  18736. s/["\\]/\\&/g
  18737. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  18738. D["\1"]=" \3\\\\\\n"\\/p
  18739. t cont
  18740. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
  18741. t cont
  18742. d
  18743. :cont
  18744. n
  18745. s/.\{148\}/&'"$ac_delim"'/g
  18746. t clear
  18747. :clear
  18748. s/\\$//
  18749. t bsnlc
  18750. s/["\\]/\\&/g; s/^/"/; s/$/"/p
  18751. d
  18752. :bsnlc
  18753. s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
  18754. b cont
  18755. ' <confdefs.h | sed '
  18756. s/'"$ac_delim"'/"\\\
  18757. "/g' >>$CONFIG_STATUS || ac_write_fail=1
  18758. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  18759. for (key in D) D_is_set[key] = 1
  18760. FS = ""
  18761. }
  18762. /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  18763. line = \$ 0
  18764. split(line, arg, " ")
  18765. if (arg[1] == "#") {
  18766. defundef = arg[2]
  18767. mac1 = arg[3]
  18768. } else {
  18769. defundef = substr(arg[1], 2)
  18770. mac1 = arg[2]
  18771. }
  18772. split(mac1, mac2, "(") #)
  18773. macro = mac2[1]
  18774. prefix = substr(line, 1, index(line, defundef) - 1)
  18775. if (D_is_set[macro]) {
  18776. # Preserve the white space surrounding the "#".
  18777. print prefix "define", macro P[macro] D[macro]
  18778. next
  18779. } else {
  18780. # Replace #undef with comments. This is necessary, for example,
  18781. # in the case of _POSIX_SOURCE, which is predefined and required
  18782. # on some systems where configure will not decide to define it.
  18783. if (defundef == "undef") {
  18784. print "/*", prefix defundef, macro, "*/"
  18785. next
  18786. }
  18787. }
  18788. }
  18789. { print }
  18790. _ACAWK
  18791. _ACEOF
  18792. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  18793. as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
  18794. fi # test -n "$CONFIG_HEADERS"
  18795. eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
  18796. shift
  18797. for ac_tag
  18798. do
  18799. case $ac_tag in
  18800. :[FHLC]) ac_mode=$ac_tag; continue;;
  18801. esac
  18802. case $ac_mode$ac_tag in
  18803. :[FHL]*:*);;
  18804. :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
  18805. :[FH]-) ac_tag=-:-;;
  18806. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  18807. esac
  18808. ac_save_IFS=$IFS
  18809. IFS=:
  18810. set x $ac_tag
  18811. IFS=$ac_save_IFS
  18812. shift
  18813. ac_file=$1
  18814. shift
  18815. case $ac_mode in
  18816. :L) ac_source=$1;;
  18817. :[FH])
  18818. ac_file_inputs=
  18819. for ac_f
  18820. do
  18821. case $ac_f in
  18822. -) ac_f="$ac_tmp/stdin";;
  18823. *) # Look for the file first in the build tree, then in the source tree
  18824. # (if the path is not absolute). The absolute path cannot be DOS-style,
  18825. # because $ac_f cannot contain `:'.
  18826. test -f "$ac_f" ||
  18827. case $ac_f in
  18828. [\\/$]*) false;;
  18829. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  18830. esac ||
  18831. as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
  18832. esac
  18833. case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  18834. as_fn_append ac_file_inputs " '$ac_f'"
  18835. done
  18836. # Let's still pretend it is `configure' which instantiates (i.e., don't
  18837. # use $as_me), people would be surprised to read:
  18838. # /* config.h. Generated by config.status. */
  18839. configure_input='Generated from '`
  18840. $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  18841. `' by configure.'
  18842. if test x"$ac_file" != x-; then
  18843. configure_input="$ac_file. $configure_input"
  18844. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  18845. $as_echo "$as_me: creating $ac_file" >&6;}
  18846. fi
  18847. # Neutralize special characters interpreted by sed in replacement strings.
  18848. case $configure_input in #(
  18849. *\&* | *\|* | *\\* )
  18850. ac_sed_conf_input=`$as_echo "$configure_input" |
  18851. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  18852. *) ac_sed_conf_input=$configure_input;;
  18853. esac
  18854. case $ac_tag in
  18855. *:-:* | *:-) cat >"$ac_tmp/stdin" \
  18856. || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
  18857. esac
  18858. ;;
  18859. esac
  18860. ac_dir=`$as_dirname -- "$ac_file" ||
  18861. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  18862. X"$ac_file" : 'X\(//\)[^/]' \| \
  18863. X"$ac_file" : 'X\(//\)$' \| \
  18864. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  18865. $as_echo X"$ac_file" |
  18866. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  18867. s//\1/
  18868. q
  18869. }
  18870. /^X\(\/\/\)[^/].*/{
  18871. s//\1/
  18872. q
  18873. }
  18874. /^X\(\/\/\)$/{
  18875. s//\1/
  18876. q
  18877. }
  18878. /^X\(\/\).*/{
  18879. s//\1/
  18880. q
  18881. }
  18882. s/.*/./; q'`
  18883. as_dir="$ac_dir"; as_fn_mkdir_p
  18884. ac_builddir=.
  18885. case "$ac_dir" in
  18886. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  18887. *)
  18888. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  18889. # A ".." for each directory in $ac_dir_suffix.
  18890. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  18891. case $ac_top_builddir_sub in
  18892. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  18893. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  18894. esac ;;
  18895. esac
  18896. ac_abs_top_builddir=$ac_pwd
  18897. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  18898. # for backward compatibility:
  18899. ac_top_builddir=$ac_top_build_prefix
  18900. case $srcdir in
  18901. .) # We are building in place.
  18902. ac_srcdir=.
  18903. ac_top_srcdir=$ac_top_builddir_sub
  18904. ac_abs_top_srcdir=$ac_pwd ;;
  18905. [\\/]* | ?:[\\/]* ) # Absolute name.
  18906. ac_srcdir=$srcdir$ac_dir_suffix;
  18907. ac_top_srcdir=$srcdir
  18908. ac_abs_top_srcdir=$srcdir ;;
  18909. *) # Relative name.
  18910. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  18911. ac_top_srcdir=$ac_top_build_prefix$srcdir
  18912. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  18913. esac
  18914. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  18915. case $ac_mode in
  18916. :F)
  18917. #
  18918. # CONFIG_FILE
  18919. #
  18920. case $INSTALL in
  18921. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  18922. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  18923. esac
  18924. ac_MKDIR_P=$MKDIR_P
  18925. case $MKDIR_P in
  18926. [\\/$]* | ?:[\\/]* ) ;;
  18927. */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
  18928. esac
  18929. _ACEOF
  18930. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  18931. # If the template does not know about datarootdir, expand it.
  18932. # FIXME: This hack should be removed a few years after 2.60.
  18933. ac_datarootdir_hack=; ac_datarootdir_seen=
  18934. ac_sed_dataroot='
  18935. /datarootdir/ {
  18936. p
  18937. q
  18938. }
  18939. /@datadir@/p
  18940. /@docdir@/p
  18941. /@infodir@/p
  18942. /@localedir@/p
  18943. /@mandir@/p'
  18944. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  18945. *datarootdir*) ac_datarootdir_seen=yes;;
  18946. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  18947. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  18948. $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  18949. _ACEOF
  18950. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  18951. ac_datarootdir_hack='
  18952. s&@datadir@&$datadir&g
  18953. s&@docdir@&$docdir&g
  18954. s&@infodir@&$infodir&g
  18955. s&@localedir@&$localedir&g
  18956. s&@mandir@&$mandir&g
  18957. s&\\\${datarootdir}&$datarootdir&g' ;;
  18958. esac
  18959. _ACEOF
  18960. # Neutralize VPATH when `$srcdir' = `.'.
  18961. # Shell code in configure.ac might set extrasub.
  18962. # FIXME: do we really want to maintain this feature?
  18963. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  18964. ac_sed_extra="$ac_vpsub
  18965. $extrasub
  18966. _ACEOF
  18967. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  18968. :t
  18969. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  18970. s|@configure_input@|$ac_sed_conf_input|;t t
  18971. s&@top_builddir@&$ac_top_builddir_sub&;t t
  18972. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  18973. s&@srcdir@&$ac_srcdir&;t t
  18974. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  18975. s&@top_srcdir@&$ac_top_srcdir&;t t
  18976. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  18977. s&@builddir@&$ac_builddir&;t t
  18978. s&@abs_builddir@&$ac_abs_builddir&;t t
  18979. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  18980. s&@INSTALL@&$ac_INSTALL&;t t
  18981. s&@MKDIR_P@&$ac_MKDIR_P&;t t
  18982. $ac_datarootdir_hack
  18983. "
  18984. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
  18985. >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  18986. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  18987. { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
  18988. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
  18989. "$ac_tmp/out"`; test -z "$ac_out"; } &&
  18990. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  18991. which seems to be undefined. Please make sure it is defined" >&5
  18992. $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  18993. which seems to be undefined. Please make sure it is defined" >&2;}
  18994. rm -f "$ac_tmp/stdin"
  18995. case $ac_file in
  18996. -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
  18997. *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
  18998. esac \
  18999. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  19000. ;;
  19001. :H)
  19002. #
  19003. # CONFIG_HEADER
  19004. #
  19005. if test x"$ac_file" != x-; then
  19006. {
  19007. $as_echo "/* $configure_input */" \
  19008. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
  19009. } >"$ac_tmp/config.h" \
  19010. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  19011. if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
  19012. { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
  19013. $as_echo "$as_me: $ac_file is unchanged" >&6;}
  19014. else
  19015. rm -f "$ac_file"
  19016. mv "$ac_tmp/config.h" "$ac_file" \
  19017. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  19018. fi
  19019. else
  19020. $as_echo "/* $configure_input */" \
  19021. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
  19022. || as_fn_error $? "could not create -" "$LINENO" 5
  19023. fi
  19024. # Compute "$ac_file"'s index in $config_headers.
  19025. _am_arg="$ac_file"
  19026. _am_stamp_count=1
  19027. for _am_header in $config_headers :; do
  19028. case $_am_header in
  19029. $_am_arg | $_am_arg:* )
  19030. break ;;
  19031. * )
  19032. _am_stamp_count=`expr $_am_stamp_count + 1` ;;
  19033. esac
  19034. done
  19035. echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
  19036. $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  19037. X"$_am_arg" : 'X\(//\)[^/]' \| \
  19038. X"$_am_arg" : 'X\(//\)$' \| \
  19039. X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
  19040. $as_echo X"$_am_arg" |
  19041. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  19042. s//\1/
  19043. q
  19044. }
  19045. /^X\(\/\/\)[^/].*/{
  19046. s//\1/
  19047. q
  19048. }
  19049. /^X\(\/\/\)$/{
  19050. s//\1/
  19051. q
  19052. }
  19053. /^X\(\/\).*/{
  19054. s//\1/
  19055. q
  19056. }
  19057. s/.*/./; q'`/stamp-h$_am_stamp_count
  19058. ;;
  19059. :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
  19060. $as_echo "$as_me: executing $ac_file commands" >&6;}
  19061. ;;
  19062. esac
  19063. case $ac_file$ac_mode in
  19064. "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
  19065. # Older Autoconf quotes --file arguments for eval, but not when files
  19066. # are listed without --file. Let's play safe and only enable the eval
  19067. # if we detect the quoting.
  19068. case $CONFIG_FILES in
  19069. *\'*) eval set x "$CONFIG_FILES" ;;
  19070. *) set x $CONFIG_FILES ;;
  19071. esac
  19072. shift
  19073. for mf
  19074. do
  19075. # Strip MF so we end up with the name of the file.
  19076. mf=`echo "$mf" | sed -e 's/:.*$//'`
  19077. # Check whether this is an Automake generated Makefile or not.
  19078. # We used to match only the files named 'Makefile.in', but
  19079. # some people rename them; so instead we look at the file content.
  19080. # Grep'ing the first line is not enough: some people post-process
  19081. # each Makefile.in and add a new line on top of each file to say so.
  19082. # Grep'ing the whole file is not good either: AIX grep has a line
  19083. # limit of 2048, but all sed's we know have understand at least 4000.
  19084. if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
  19085. dirpart=`$as_dirname -- "$mf" ||
  19086. $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  19087. X"$mf" : 'X\(//\)[^/]' \| \
  19088. X"$mf" : 'X\(//\)$' \| \
  19089. X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
  19090. $as_echo X"$mf" |
  19091. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  19092. s//\1/
  19093. q
  19094. }
  19095. /^X\(\/\/\)[^/].*/{
  19096. s//\1/
  19097. q
  19098. }
  19099. /^X\(\/\/\)$/{
  19100. s//\1/
  19101. q
  19102. }
  19103. /^X\(\/\).*/{
  19104. s//\1/
  19105. q
  19106. }
  19107. s/.*/./; q'`
  19108. else
  19109. continue
  19110. fi
  19111. # Extract the definition of DEPDIR, am__include, and am__quote
  19112. # from the Makefile without running 'make'.
  19113. DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
  19114. test -z "$DEPDIR" && continue
  19115. am__include=`sed -n 's/^am__include = //p' < "$mf"`
  19116. test -z "$am__include" && continue
  19117. am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
  19118. # Find all dependency output files, they are included files with
  19119. # $(DEPDIR) in their names. We invoke sed twice because it is the
  19120. # simplest approach to changing $(DEPDIR) to its actual value in the
  19121. # expansion.
  19122. for file in `sed -n "
  19123. s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
  19124. sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
  19125. # Make sure the directory exists.
  19126. test -f "$dirpart/$file" && continue
  19127. fdir=`$as_dirname -- "$file" ||
  19128. $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  19129. X"$file" : 'X\(//\)[^/]' \| \
  19130. X"$file" : 'X\(//\)$' \| \
  19131. X"$file" : 'X\(/\)' \| . 2>/dev/null ||
  19132. $as_echo X"$file" |
  19133. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  19134. s//\1/
  19135. q
  19136. }
  19137. /^X\(\/\/\)[^/].*/{
  19138. s//\1/
  19139. q
  19140. }
  19141. /^X\(\/\/\)$/{
  19142. s//\1/
  19143. q
  19144. }
  19145. /^X\(\/\).*/{
  19146. s//\1/
  19147. q
  19148. }
  19149. s/.*/./; q'`
  19150. as_dir=$dirpart/$fdir; as_fn_mkdir_p
  19151. # echo "creating $dirpart/$file"
  19152. echo '# dummy' > "$dirpart/$file"
  19153. done
  19154. done
  19155. }
  19156. ;;
  19157. "libtool":C)
  19158. # See if we are running on zsh, and set the options that allow our
  19159. # commands through without removal of \ escapes.
  19160. if test -n "${ZSH_VERSION+set}"; then
  19161. setopt NO_GLOB_SUBST
  19162. fi
  19163. cfgfile=${ofile}T
  19164. trap "$RM \"$cfgfile\"; exit 1" 1 2 15
  19165. $RM "$cfgfile"
  19166. cat <<_LT_EOF >> "$cfgfile"
  19167. #! $SHELL
  19168. # Generated automatically by $as_me ($PACKAGE) $VERSION
  19169. # NOTE: Changes made to this file will be lost: look at ltmain.sh.
  19170. # Provide generalized library-building support services.
  19171. # Written by Gordon Matzigkeit, 1996
  19172. # Copyright (C) 2014 Free Software Foundation, Inc.
  19173. # This is free software; see the source for copying conditions. There is NO
  19174. # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  19175. # GNU Libtool is free software; you can redistribute it and/or modify
  19176. # it under the terms of the GNU General Public License as published by
  19177. # the Free Software Foundation; either version 2 of of the License, or
  19178. # (at your option) any later version.
  19179. #
  19180. # As a special exception to the GNU General Public License, if you
  19181. # distribute this file as part of a program or library that is built
  19182. # using GNU Libtool, you may include this file under the same
  19183. # distribution terms that you use for the rest of that program.
  19184. #
  19185. # GNU Libtool is distributed in the hope that it will be useful, but
  19186. # WITHOUT ANY WARRANTY; without even the implied warranty of
  19187. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  19188. # GNU General Public License for more details.
  19189. #
  19190. # You should have received a copy of the GNU General Public License
  19191. # along with this program. If not, see <http://www.gnu.org/licenses/>.
  19192. # The names of the tagged configurations supported by this script.
  19193. available_tags='CXX '
  19194. # Configured defaults for sys_lib_dlsearch_path munging.
  19195. : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
  19196. # ### BEGIN LIBTOOL CONFIG
  19197. # Which release of libtool.m4 was used?
  19198. macro_version=$macro_version
  19199. macro_revision=$macro_revision
  19200. # Whether or not to build shared libraries.
  19201. build_libtool_libs=$enable_shared
  19202. # Whether or not to build static libraries.
  19203. build_old_libs=$enable_static
  19204. # What type of objects to build.
  19205. pic_mode=$pic_mode
  19206. # Whether or not to optimize for fast installation.
  19207. fast_install=$enable_fast_install
  19208. # Shared archive member basename,for filename based shared library versioning on AIX.
  19209. shared_archive_member_spec=$shared_archive_member_spec
  19210. # Shell to use when invoking shell scripts.
  19211. SHELL=$lt_SHELL
  19212. # An echo program that protects backslashes.
  19213. ECHO=$lt_ECHO
  19214. # The PATH separator for the build system.
  19215. PATH_SEPARATOR=$lt_PATH_SEPARATOR
  19216. # The host system.
  19217. host_alias=$host_alias
  19218. host=$host
  19219. host_os=$host_os
  19220. # The build system.
  19221. build_alias=$build_alias
  19222. build=$build
  19223. build_os=$build_os
  19224. # A sed program that does not truncate output.
  19225. SED=$lt_SED
  19226. # Sed that helps us avoid accidentally triggering echo(1) options like -n.
  19227. Xsed="\$SED -e 1s/^X//"
  19228. # A grep program that handles long lines.
  19229. GREP=$lt_GREP
  19230. # An ERE matcher.
  19231. EGREP=$lt_EGREP
  19232. # A literal string matcher.
  19233. FGREP=$lt_FGREP
  19234. # A BSD- or MS-compatible name lister.
  19235. NM=$lt_NM
  19236. # Whether we need soft or hard links.
  19237. LN_S=$lt_LN_S
  19238. # What is the maximum length of a command?
  19239. max_cmd_len=$max_cmd_len
  19240. # Object file suffix (normally "o").
  19241. objext=$ac_objext
  19242. # Executable file suffix (normally "").
  19243. exeext=$exeext
  19244. # whether the shell understands "unset".
  19245. lt_unset=$lt_unset
  19246. # turn spaces into newlines.
  19247. SP2NL=$lt_lt_SP2NL
  19248. # turn newlines into spaces.
  19249. NL2SP=$lt_lt_NL2SP
  19250. # convert \$build file names to \$host format.
  19251. to_host_file_cmd=$lt_cv_to_host_file_cmd
  19252. # convert \$build files to toolchain format.
  19253. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  19254. # An object symbol dumper.
  19255. OBJDUMP=$lt_OBJDUMP
  19256. # Method to check whether dependent libraries are shared objects.
  19257. deplibs_check_method=$lt_deplibs_check_method
  19258. # Command to use when deplibs_check_method = "file_magic".
  19259. file_magic_cmd=$lt_file_magic_cmd
  19260. # How to find potential files when deplibs_check_method = "file_magic".
  19261. file_magic_glob=$lt_file_magic_glob
  19262. # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
  19263. want_nocaseglob=$lt_want_nocaseglob
  19264. # DLL creation program.
  19265. DLLTOOL=$lt_DLLTOOL
  19266. # Command to associate shared and link libraries.
  19267. sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
  19268. # The archiver.
  19269. AR=$lt_AR
  19270. # Flags to create an archive.
  19271. AR_FLAGS=$lt_AR_FLAGS
  19272. # How to feed a file listing to the archiver.
  19273. archiver_list_spec=$lt_archiver_list_spec
  19274. # A symbol stripping program.
  19275. STRIP=$lt_STRIP
  19276. # Commands used to install an old-style archive.
  19277. RANLIB=$lt_RANLIB
  19278. old_postinstall_cmds=$lt_old_postinstall_cmds
  19279. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  19280. # Whether to use a lock for old archive extraction.
  19281. lock_old_archive_extraction=$lock_old_archive_extraction
  19282. # A C compiler.
  19283. LTCC=$lt_CC
  19284. # LTCC compiler flags.
  19285. LTCFLAGS=$lt_CFLAGS
  19286. # Take the output of nm and produce a listing of raw symbols and C names.
  19287. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  19288. # Transform the output of nm in a proper C declaration.
  19289. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  19290. # Transform the output of nm into a list of symbols to manually relocate.
  19291. global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
  19292. # Transform the output of nm in a C name address pair.
  19293. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  19294. # Transform the output of nm in a C name address pair when lib prefix is needed.
  19295. global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
  19296. # The name lister interface.
  19297. nm_interface=$lt_lt_cv_nm_interface
  19298. # Specify filename containing input files for \$NM.
  19299. nm_file_list_spec=$lt_nm_file_list_spec
  19300. # The root where to search for dependent libraries,and where our libraries should be installed.
  19301. lt_sysroot=$lt_sysroot
  19302. # Command to truncate a binary pipe.
  19303. lt_truncate_bin=$lt_lt_cv_truncate_bin
  19304. # The name of the directory that contains temporary libtool files.
  19305. objdir=$objdir
  19306. # Used to examine libraries when file_magic_cmd begins with "file".
  19307. MAGIC_CMD=$MAGIC_CMD
  19308. # Must we lock files when doing compilation?
  19309. need_locks=$lt_need_locks
  19310. # Manifest tool.
  19311. MANIFEST_TOOL=$lt_MANIFEST_TOOL
  19312. # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
  19313. DSYMUTIL=$lt_DSYMUTIL
  19314. # Tool to change global to local symbols on Mac OS X.
  19315. NMEDIT=$lt_NMEDIT
  19316. # Tool to manipulate fat objects and archives on Mac OS X.
  19317. LIPO=$lt_LIPO
  19318. # ldd/readelf like tool for Mach-O binaries on Mac OS X.
  19319. OTOOL=$lt_OTOOL
  19320. # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
  19321. OTOOL64=$lt_OTOOL64
  19322. # Old archive suffix (normally "a").
  19323. libext=$libext
  19324. # Shared library suffix (normally ".so").
  19325. shrext_cmds=$lt_shrext_cmds
  19326. # The commands to extract the exported symbol list from a shared archive.
  19327. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  19328. # Variables whose values should be saved in libtool wrapper scripts and
  19329. # restored at link time.
  19330. variables_saved_for_relink=$lt_variables_saved_for_relink
  19331. # Do we need the "lib" prefix for modules?
  19332. need_lib_prefix=$need_lib_prefix
  19333. # Do we need a version for libraries?
  19334. need_version=$need_version
  19335. # Library versioning type.
  19336. version_type=$version_type
  19337. # Shared library runtime path variable.
  19338. runpath_var=$runpath_var
  19339. # Shared library path variable.
  19340. shlibpath_var=$shlibpath_var
  19341. # Is shlibpath searched before the hard-coded library search path?
  19342. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  19343. # Format of library name prefix.
  19344. libname_spec=$lt_libname_spec
  19345. # List of archive names. First name is the real one, the rest are links.
  19346. # The last name is the one that the linker finds with -lNAME
  19347. library_names_spec=$lt_library_names_spec
  19348. # The coded name of the library, if different from the real name.
  19349. soname_spec=$lt_soname_spec
  19350. # Permission mode override for installation of shared libraries.
  19351. install_override_mode=$lt_install_override_mode
  19352. # Command to use after installation of a shared archive.
  19353. postinstall_cmds=$lt_postinstall_cmds
  19354. # Command to use after uninstallation of a shared archive.
  19355. postuninstall_cmds=$lt_postuninstall_cmds
  19356. # Commands used to finish a libtool library installation in a directory.
  19357. finish_cmds=$lt_finish_cmds
  19358. # As "finish_cmds", except a single script fragment to be evaled but
  19359. # not shown.
  19360. finish_eval=$lt_finish_eval
  19361. # Whether we should hardcode library paths into libraries.
  19362. hardcode_into_libs=$hardcode_into_libs
  19363. # Compile-time system search path for libraries.
  19364. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  19365. # Detected run-time system search path for libraries.
  19366. sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
  19367. # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
  19368. configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
  19369. # Whether dlopen is supported.
  19370. dlopen_support=$enable_dlopen
  19371. # Whether dlopen of programs is supported.
  19372. dlopen_self=$enable_dlopen_self
  19373. # Whether dlopen of statically linked programs is supported.
  19374. dlopen_self_static=$enable_dlopen_self_static
  19375. # Commands to strip libraries.
  19376. old_striplib=$lt_old_striplib
  19377. striplib=$lt_striplib
  19378. # The linker used to build libraries.
  19379. LD=$lt_LD
  19380. # How to create reloadable object files.
  19381. reload_flag=$lt_reload_flag
  19382. reload_cmds=$lt_reload_cmds
  19383. # Commands used to build an old-style archive.
  19384. old_archive_cmds=$lt_old_archive_cmds
  19385. # A language specific compiler.
  19386. CC=$lt_compiler
  19387. # Is the compiler the GNU compiler?
  19388. with_gcc=$GCC
  19389. # Compiler flag to turn off builtin functions.
  19390. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
  19391. # Additional compiler flags for building library objects.
  19392. pic_flag=$lt_lt_prog_compiler_pic
  19393. # How to pass a linker flag through the compiler.
  19394. wl=$lt_lt_prog_compiler_wl
  19395. # Compiler flag to prevent dynamic linking.
  19396. link_static_flag=$lt_lt_prog_compiler_static
  19397. # Does compiler simultaneously support -c and -o options?
  19398. compiler_c_o=$lt_lt_cv_prog_compiler_c_o
  19399. # Whether or not to add -lc for building shared libraries.
  19400. build_libtool_need_lc=$archive_cmds_need_lc
  19401. # Whether or not to disallow shared libs when runtime libs are static.
  19402. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
  19403. # Compiler flag to allow reflexive dlopens.
  19404. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
  19405. # Compiler flag to generate shared objects directly from archives.
  19406. whole_archive_flag_spec=$lt_whole_archive_flag_spec
  19407. # Whether the compiler copes with passing no objects directly.
  19408. compiler_needs_object=$lt_compiler_needs_object
  19409. # Create an old-style archive from a shared archive.
  19410. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
  19411. # Create a temporary old-style archive to link instead of a shared archive.
  19412. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
  19413. # Commands used to build a shared archive.
  19414. archive_cmds=$lt_archive_cmds
  19415. archive_expsym_cmds=$lt_archive_expsym_cmds
  19416. # Commands used to build a loadable module if different from building
  19417. # a shared archive.
  19418. module_cmds=$lt_module_cmds
  19419. module_expsym_cmds=$lt_module_expsym_cmds
  19420. # Whether we are building with GNU ld or not.
  19421. with_gnu_ld=$lt_with_gnu_ld
  19422. # Flag that allows shared libraries with undefined symbols to be built.
  19423. allow_undefined_flag=$lt_allow_undefined_flag
  19424. # Flag that enforces no undefined symbols.
  19425. no_undefined_flag=$lt_no_undefined_flag
  19426. # Flag to hardcode \$libdir into a binary during linking.
  19427. # This must work even if \$libdir does not exist
  19428. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
  19429. # Whether we need a single "-rpath" flag with a separated argument.
  19430. hardcode_libdir_separator=$lt_hardcode_libdir_separator
  19431. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  19432. # DIR into the resulting binary.
  19433. hardcode_direct=$hardcode_direct
  19434. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  19435. # DIR into the resulting binary and the resulting library dependency is
  19436. # "absolute",i.e impossible to change by setting \$shlibpath_var if the
  19437. # library is relocated.
  19438. hardcode_direct_absolute=$hardcode_direct_absolute
  19439. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  19440. # into the resulting binary.
  19441. hardcode_minus_L=$hardcode_minus_L
  19442. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  19443. # into the resulting binary.
  19444. hardcode_shlibpath_var=$hardcode_shlibpath_var
  19445. # Set to "yes" if building a shared library automatically hardcodes DIR
  19446. # into the library and all subsequent libraries and executables linked
  19447. # against it.
  19448. hardcode_automatic=$hardcode_automatic
  19449. # Set to yes if linker adds runtime paths of dependent libraries
  19450. # to runtime path list.
  19451. inherit_rpath=$inherit_rpath
  19452. # Whether libtool must link a program against all its dependency libraries.
  19453. link_all_deplibs=$link_all_deplibs
  19454. # Set to "yes" if exported symbols are required.
  19455. always_export_symbols=$always_export_symbols
  19456. # The commands to list exported symbols.
  19457. export_symbols_cmds=$lt_export_symbols_cmds
  19458. # Symbols that should not be listed in the preloaded symbols.
  19459. exclude_expsyms=$lt_exclude_expsyms
  19460. # Symbols that must always be exported.
  19461. include_expsyms=$lt_include_expsyms
  19462. # Commands necessary for linking programs (against libraries) with templates.
  19463. prelink_cmds=$lt_prelink_cmds
  19464. # Commands necessary for finishing linking programs.
  19465. postlink_cmds=$lt_postlink_cmds
  19466. # Specify filename containing input files.
  19467. file_list_spec=$lt_file_list_spec
  19468. # How to hardcode a shared library path into an executable.
  19469. hardcode_action=$hardcode_action
  19470. # The directories searched by this compiler when creating a shared library.
  19471. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
  19472. # Dependencies to place before and after the objects being linked to
  19473. # create a shared library.
  19474. predep_objects=$lt_predep_objects
  19475. postdep_objects=$lt_postdep_objects
  19476. predeps=$lt_predeps
  19477. postdeps=$lt_postdeps
  19478. # The library search path used internally by the compiler when linking
  19479. # a shared library.
  19480. compiler_lib_search_path=$lt_compiler_lib_search_path
  19481. # ### END LIBTOOL CONFIG
  19482. _LT_EOF
  19483. cat <<'_LT_EOF' >> "$cfgfile"
  19484. # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
  19485. # func_munge_path_list VARIABLE PATH
  19486. # -----------------------------------
  19487. # VARIABLE is name of variable containing _space_ separated list of
  19488. # directories to be munged by the contents of PATH, which is string
  19489. # having a format:
  19490. # "DIR[:DIR]:"
  19491. # string "DIR[ DIR]" will be prepended to VARIABLE
  19492. # ":DIR[:DIR]"
  19493. # string "DIR[ DIR]" will be appended to VARIABLE
  19494. # "DIRP[:DIRP]::[DIRA:]DIRA"
  19495. # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
  19496. # "DIRA[ DIRA]" will be appended to VARIABLE
  19497. # "DIR[:DIR]"
  19498. # VARIABLE will be replaced by "DIR[ DIR]"
  19499. func_munge_path_list ()
  19500. {
  19501. case x$2 in
  19502. x)
  19503. ;;
  19504. *:)
  19505. eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
  19506. ;;
  19507. x:*)
  19508. eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
  19509. ;;
  19510. *::*)
  19511. eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
  19512. eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
  19513. ;;
  19514. *)
  19515. eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
  19516. ;;
  19517. esac
  19518. }
  19519. # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
  19520. func_cc_basename ()
  19521. {
  19522. for cc_temp in $*""; do
  19523. case $cc_temp in
  19524. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  19525. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  19526. \-*) ;;
  19527. *) break;;
  19528. esac
  19529. done
  19530. func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  19531. }
  19532. # ### END FUNCTIONS SHARED WITH CONFIGURE
  19533. _LT_EOF
  19534. case $host_os in
  19535. aix3*)
  19536. cat <<\_LT_EOF >> "$cfgfile"
  19537. # AIX sometimes has problems with the GCC collect2 program. For some
  19538. # reason, if we set the COLLECT_NAMES environment variable, the problems
  19539. # vanish in a puff of smoke.
  19540. if test set != "${COLLECT_NAMES+set}"; then
  19541. COLLECT_NAMES=
  19542. export COLLECT_NAMES
  19543. fi
  19544. _LT_EOF
  19545. ;;
  19546. esac
  19547. ltmain=$ac_aux_dir/ltmain.sh
  19548. # We use sed instead of cat because bash on DJGPP gets confused if
  19549. # if finds mixed CR/LF and LF-only lines. Since sed operates in
  19550. # text mode, it properly converts lines to CR/LF. This bash problem
  19551. # is reportedly fixed, but why not run on old versions too?
  19552. sed '$q' "$ltmain" >> "$cfgfile" \
  19553. || (rm -f "$cfgfile"; exit 1)
  19554. mv -f "$cfgfile" "$ofile" ||
  19555. (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  19556. chmod +x "$ofile"
  19557. cat <<_LT_EOF >> "$ofile"
  19558. # ### BEGIN LIBTOOL TAG CONFIG: CXX
  19559. # The linker used to build libraries.
  19560. LD=$lt_LD_CXX
  19561. # How to create reloadable object files.
  19562. reload_flag=$lt_reload_flag_CXX
  19563. reload_cmds=$lt_reload_cmds_CXX
  19564. # Commands used to build an old-style archive.
  19565. old_archive_cmds=$lt_old_archive_cmds_CXX
  19566. # A language specific compiler.
  19567. CC=$lt_compiler_CXX
  19568. # Is the compiler the GNU compiler?
  19569. with_gcc=$GCC_CXX
  19570. # Compiler flag to turn off builtin functions.
  19571. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
  19572. # Additional compiler flags for building library objects.
  19573. pic_flag=$lt_lt_prog_compiler_pic_CXX
  19574. # How to pass a linker flag through the compiler.
  19575. wl=$lt_lt_prog_compiler_wl_CXX
  19576. # Compiler flag to prevent dynamic linking.
  19577. link_static_flag=$lt_lt_prog_compiler_static_CXX
  19578. # Does compiler simultaneously support -c and -o options?
  19579. compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
  19580. # Whether or not to add -lc for building shared libraries.
  19581. build_libtool_need_lc=$archive_cmds_need_lc_CXX
  19582. # Whether or not to disallow shared libs when runtime libs are static.
  19583. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
  19584. # Compiler flag to allow reflexive dlopens.
  19585. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
  19586. # Compiler flag to generate shared objects directly from archives.
  19587. whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
  19588. # Whether the compiler copes with passing no objects directly.
  19589. compiler_needs_object=$lt_compiler_needs_object_CXX
  19590. # Create an old-style archive from a shared archive.
  19591. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
  19592. # Create a temporary old-style archive to link instead of a shared archive.
  19593. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
  19594. # Commands used to build a shared archive.
  19595. archive_cmds=$lt_archive_cmds_CXX
  19596. archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
  19597. # Commands used to build a loadable module if different from building
  19598. # a shared archive.
  19599. module_cmds=$lt_module_cmds_CXX
  19600. module_expsym_cmds=$lt_module_expsym_cmds_CXX
  19601. # Whether we are building with GNU ld or not.
  19602. with_gnu_ld=$lt_with_gnu_ld_CXX
  19603. # Flag that allows shared libraries with undefined symbols to be built.
  19604. allow_undefined_flag=$lt_allow_undefined_flag_CXX
  19605. # Flag that enforces no undefined symbols.
  19606. no_undefined_flag=$lt_no_undefined_flag_CXX
  19607. # Flag to hardcode \$libdir into a binary during linking.
  19608. # This must work even if \$libdir does not exist
  19609. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
  19610. # Whether we need a single "-rpath" flag with a separated argument.
  19611. hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
  19612. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  19613. # DIR into the resulting binary.
  19614. hardcode_direct=$hardcode_direct_CXX
  19615. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  19616. # DIR into the resulting binary and the resulting library dependency is
  19617. # "absolute",i.e impossible to change by setting \$shlibpath_var if the
  19618. # library is relocated.
  19619. hardcode_direct_absolute=$hardcode_direct_absolute_CXX
  19620. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  19621. # into the resulting binary.
  19622. hardcode_minus_L=$hardcode_minus_L_CXX
  19623. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  19624. # into the resulting binary.
  19625. hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
  19626. # Set to "yes" if building a shared library automatically hardcodes DIR
  19627. # into the library and all subsequent libraries and executables linked
  19628. # against it.
  19629. hardcode_automatic=$hardcode_automatic_CXX
  19630. # Set to yes if linker adds runtime paths of dependent libraries
  19631. # to runtime path list.
  19632. inherit_rpath=$inherit_rpath_CXX
  19633. # Whether libtool must link a program against all its dependency libraries.
  19634. link_all_deplibs=$link_all_deplibs_CXX
  19635. # Set to "yes" if exported symbols are required.
  19636. always_export_symbols=$always_export_symbols_CXX
  19637. # The commands to list exported symbols.
  19638. export_symbols_cmds=$lt_export_symbols_cmds_CXX
  19639. # Symbols that should not be listed in the preloaded symbols.
  19640. exclude_expsyms=$lt_exclude_expsyms_CXX
  19641. # Symbols that must always be exported.
  19642. include_expsyms=$lt_include_expsyms_CXX
  19643. # Commands necessary for linking programs (against libraries) with templates.
  19644. prelink_cmds=$lt_prelink_cmds_CXX
  19645. # Commands necessary for finishing linking programs.
  19646. postlink_cmds=$lt_postlink_cmds_CXX
  19647. # Specify filename containing input files.
  19648. file_list_spec=$lt_file_list_spec_CXX
  19649. # How to hardcode a shared library path into an executable.
  19650. hardcode_action=$hardcode_action_CXX
  19651. # The directories searched by this compiler when creating a shared library.
  19652. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
  19653. # Dependencies to place before and after the objects being linked to
  19654. # create a shared library.
  19655. predep_objects=$lt_predep_objects_CXX
  19656. postdep_objects=$lt_postdep_objects_CXX
  19657. predeps=$lt_predeps_CXX
  19658. postdeps=$lt_postdeps_CXX
  19659. # The library search path used internally by the compiler when linking
  19660. # a shared library.
  19661. compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
  19662. # ### END LIBTOOL TAG CONFIG: CXX
  19663. _LT_EOF
  19664. ;;
  19665. esac
  19666. done # for ac_tag
  19667. as_fn_exit 0
  19668. _ACEOF
  19669. ac_clean_files=$ac_clean_files_save
  19670. test $ac_write_fail = 0 ||
  19671. as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
  19672. # configure is writing to config.log, and then calls config.status.
  19673. # config.status does its own redirection, appending to config.log.
  19674. # Unfortunately, on DOS this fails, as config.log is still kept open
  19675. # by configure, so config.status won't be able to write to it; its
  19676. # output is simply discarded. So we exec the FD to /dev/null,
  19677. # effectively closing config.log, so it can be properly (re)opened and
  19678. # appended to by config.status. When coming back to configure, we
  19679. # need to make the FD available again.
  19680. if test "$no_create" != yes; then
  19681. ac_cs_success=:
  19682. ac_config_status_args=
  19683. test "$silent" = yes &&
  19684. ac_config_status_args="$ac_config_status_args --quiet"
  19685. exec 5>/dev/null
  19686. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  19687. exec 5>>config.log
  19688. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  19689. # would make configure fail if this is the last instruction.
  19690. $ac_cs_success || as_fn_exit 1
  19691. fi
  19692. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  19693. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  19694. $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  19695. fi
  19696. if test "$x86_no_fp_by_default" = yes && test "x$enable_frame_pointers" != xyes && test "x$UNWIND_LIBS" = x && test "x$enable_minimal" != xyes; then :
  19697. if test "x$perftools_cv_have_unwind_backtrace" = xyes; then :
  19698. { $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
  19699. $as_echo "$as_me: WARNING: No frame pointers and no libunwind. Using experimental backtrace capturing via libgcc. Expect crashy cpu profiler." >&2;}
  19700. else
  19701. if test "x$enable_backtrace" = xyes; then :
  19702. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: No frame pointers and no libunwind. Using experimental backtrace(). Expect crashy cpu profiler." >&5
  19703. $as_echo "$as_me: WARNING: No frame pointers and no libunwind. Using experimental backtrace(). Expect crashy cpu profiler." >&2;}
  19704. else
  19705. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  19706. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  19707. as_fn_error $? "No frame pointers and no libunwind. The compilation will fail
  19708. See \`config.log' for more details" "$LINENO" 5; }
  19709. fi
  19710. fi
  19711. fi